:root {
  color-scheme: dark;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --gold: #ef7765;
  --gold-soft: #ffab9e;
  --ink: #070708;
  --ink-soft: #0c0c0f;
  --panel: #121218;
  --panel-soft: #1a1a22;
  --panel-lift: #22222c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --muted: rgba(243, 243, 248, 0.58);
  --text: #f4f4f8;
  --danger: #e2564f;
  --success: #3ecf8e;
  --warning: #e0a63c;
  --info: #5b8def;
  --accent-clients: #7c6cff;
  --accent-settings: #2bb7c7;
  --col-prep: #5b8def;
  --col-prep-bg: rgba(91, 141, 239, 0.1);
  --col-prep-border: rgba(91, 141, 239, 0.35);
  --col-review: #e0a63c;
  --col-review-bg: rgba(224, 166, 60, 0.1);
  --col-review-border: rgba(224, 166, 60, 0.35);
  --col-done: #3ecf8e;
  --col-done-bg: rgba(62, 207, 142, 0.1);
  --col-done-border: rgba(62, 207, 142, 0.35);
  --privacy-private: #7c6cff;
  --privacy-protected: #e0a63c;
  --privacy-public: #3ecf8e;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(217, 66, 46, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(91, 141, 239, 0.06), transparent 50%),
    var(--ink);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: var(--gold-soft);
}

h1, h2, h3, h4 {
  margin: 0 0 4px;
  font-weight: 600;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Buttons ---------- */
.primary-button {
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1400;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) ease, filter var(--dur-fast) ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 66, 46, 0.28); }
.primary-button:active { transform: translateY(0) scale(0.98); }
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.ghost-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.ghost-button:hover { border-color: var(--gold-soft); background: rgba(217, 66, 46, 0.08); transform: translateY(-1px); }
.ghost-button:active { transform: scale(0.98); }

.danger-button {
  border: 1px solid rgba(226, 86, 79, 0.5);
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(226, 86, 79, 0.1);
  color: #ff9f99;
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.danger-button:hover { background: rgba(226, 86, 79, 0.2); transform: translateY(-1px); }

.icon-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}
.icon-button:hover { border-color: var(--gold-soft); transform: scale(1.05); }

.link-button {
  border: none;
  background: none;
  color: var(--gold-soft);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

/* ---------- Login ---------- */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(217, 66, 46, 0.12), transparent 60%), var(--ink);
}
.login-shell [hidden],
.login-card [hidden],
[hidden] {
  display: none !important;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  text-transform: uppercase;
}
.login-card h1 { font-size: 22px; }
.login-copy { color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.login-card input[type="email"], .login-card input[type="password"] {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: #f3f3f3;
}
.login-card input:focus { outline: none; border-color: var(--gold-soft); }
.login-remember { flex-direction: row !important; align-items: center; gap: 8px !important; }
.login-remember input { width: 16px; height: 16px; }
.login-feedback {
  font-size: 13px;
  color: #ff9f99;
  background: rgba(226, 86, 79, 0.1);
  border: 1px solid rgba(226, 86, 79, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
}
.login-feedback.is-success {
  color: #b8f0c4;
  background: rgba(61, 160, 94, 0.12);
  border-color: rgba(61, 160, 94, 0.4);
}
.login-feedback.is-error {
  color: #ff9f99;
}
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 44px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 44px 10px 12px;
  color: #f3f3f3;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 14px;
}
.password-toggle:hover,
.password-toggle.is-on {
  color: var(--gold-soft);
  background: rgba(217, 66, 46, 0.08);
}
.login-card .link-button {
  align-self: flex-start;
  font-size: 13px;
}

/* ---------- App shell + sidebar ---------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  background: var(--ink);
}
.admin-sidebar {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  background: #0d0d0d;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.admin-sidebar-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1400;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.admin-sidebar-brand strong { display: block; font-size: 14px; }
.admin-sidebar-brand small { color: var(--muted); font-size: 11px; }

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-sidebar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.admin-sidebar-nav a[data-nav="projects"].active {
  color: var(--gold-soft);
  background: rgba(217, 66, 46, 0.12);
  border-color: rgba(217, 66, 46, 0.28);
  box-shadow: inset 3px 0 0 var(--gold);
}
.admin-sidebar-nav a[data-nav="clients"].active {
  color: #c8c0ff;
  background: rgba(124, 108, 255, 0.14);
  border-color: rgba(124, 108, 255, 0.35);
  box-shadow: inset 3px 0 0 var(--accent-clients);
}
.admin-sidebar-nav a[data-nav="settings"].active {
  color: #9eebf3;
  background: rgba(43, 183, 199, 0.14);
  border-color: rgba(43, 183, 199, 0.35);
  box-shadow: inset 3px 0 0 var(--accent-settings);
}
.admin-sidebar-nav a {
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) ease;
}
.admin-sidebar-nav a:hover { transform: translateX(2px); }
.admin-sidebar-nav .nav-ico {
  width: 22px;
  text-align: center;
  opacity: 0.85;
  font-size: 13px;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}
.admin-sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(239, 119, 101, 0.35), rgba(217, 66, 46, 0.18));
  border: 1px solid rgba(217, 66, 46, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-soft);
}
.admin-sidebar-user strong {
  display: block;
  font-size: 13px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-sidebar-user small { color: var(--muted); font-size: 11px; }
.admin-sidebar-logout { width: 100%; min-height: 44px; }
#sidebar-toggle { width: 44px; height: 44px; }

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-mobilebar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-mobilebar strong { font-size: 14px; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 35;
}

.view-root {
  flex: 1;
  padding: 28px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 920px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.35);
  }
  .app-shell.sidebar-open .admin-sidebar { transform: translateX(0); }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; }
  .admin-mobilebar { display: flex; }
  .view-root { padding: 18px 16px; }
}

/* ---------- Generic headers ---------- */
.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.view-header h1 { font-size: 24px; }
.view-header p { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 520px; }
.view-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar input[type="search"], .toolbar select {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  color: #f3f3f3;
  font-size: 13px;
}
.toolbar input[type="search"] { min-width: 220px; flex: 1; }
.clients-toolbar { align-items: flex-end; }
.clients-sort-field {
  display: grid;
  flex: 0 0 230px;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.clients-sort-field select {
  width: 100%;
  min-height: 44px;
}
@media (max-width: 620px) {
  .clients-sort-field { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .clients-table,
  .clients-table tbody,
  .clients-table tr,
  .clients-table td {
    display: block;
    width: 100%;
  }
  .clients-table thead { display: none; }
  .clients-table tr {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }
  .clients-table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .clients-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .clients-table .row-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}
.tabs button.active { border-color: var(--gold-soft); color: var(--gold-soft); background: rgba(217, 66, 46, 0.1); }

/* ---------- Kanban board ---------- */
.project-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 14px;
}
@media (max-width: 1380px) { .project-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .project-board { grid-template-columns: 1fr; } }
.board-column {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.board-column::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--column-accent, var(--line-strong));
}
.board-column:hover {
  border-color: color-mix(in srgb, var(--column-accent) 55%, var(--line));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.board-column[data-column="preparacao"] {
  --column-accent: var(--col-prep);
  background: linear-gradient(180deg, var(--col-prep-bg), var(--panel) 48%);
  border-color: var(--col-prep-border);
}
.board-column[data-column="aguardando-selecao"] {
  --column-accent: #2fb6c2;
  background: linear-gradient(180deg, rgba(47, 182, 194, 0.12), var(--panel) 48%);
  border-color: rgba(47, 182, 194, 0.38);
}
.board-column[data-column="revisao"] {
  --column-accent: var(--col-review);
  background: linear-gradient(180deg, var(--col-review-bg), var(--panel) 48%);
  border-color: var(--col-review-border);
}
.board-column[data-column="concluido"] {
  --column-accent: var(--col-done);
  background: linear-gradient(180deg, var(--col-done-bg), var(--panel) 48%);
  border-color: var(--col-done-border);
}
.board-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 1px 2px 4px;
}
.board-column-head strong { color: var(--text); letter-spacing: 0.02em; }
.board-column-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, var(--column-accent) 75%, #000);
}
.board-column-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 12px 6px;
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--column-accent) 40%, var(--line));
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.project-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--column-accent, var(--gold));
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) ease, background var(--dur-fast) ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: card-in var(--dur-slow) var(--ease-out) both;
}
.project-card:nth-child(2) { animation-delay: 40ms; }
.project-card:nth-child(3) { animation-delay: 80ms; }
.project-card:nth-child(4) { animation-delay: 120ms; }
.project-card:nth-child(5) { animation-delay: 160ms; }
.project-card:hover {
  border-color: color-mix(in srgb, var(--column-accent) 55%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.3);
  background: var(--panel-lift);
}
.project-card:active { transform: translateY(-1px) scale(0.995); }
.project-card-title,
.project-card-client {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-card-title { font-size: 14px; font-weight: 650; line-height: 1.3; }
.project-card-client { color: var(--muted); font-size: 11px; line-height: 1.35; }
.project-card-meta {
  display: flex;
  align-items: center;
  gap: 5px 7px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.project-card-meta .status-pill { padding: 2px 7px; font-size: 10px; }
.project-card-progress { height: 3px; margin-top: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.project-card-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--column-accent) 70%, var(--gold-soft)), var(--column-accent));
  transition: width var(--dur-slow) var(--ease-out);
}
.project-card-move { display: flex; gap: 6px; margin-top: 4px; }
.project-card-move select {
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

.project-card-workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 5px;
}
.project-stage-note,
.project-purge-notice {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.project-purge-notice {
  grid-column: 1 / -1;
  padding: 7px 8px;
  border: 1px solid rgba(226, 86, 79, 0.28);
  border-radius: 8px;
  background: rgba(226, 86, 79, 0.08);
  color: #ffb1ac;
}
.complete-gallery-button {
  min-height: 34px;
  width: 100%;
  border: 1px solid rgba(239, 119, 101, 0.5);
  border-radius: 8px;
  background: rgba(217, 66, 46, 0.14);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 11px;
}
.project-card-workflow .ghost-button {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
}
.project-card-workflow > button:only-of-type { grid-column: 1 / -1; }
.complete-gallery-button:hover {
  border-color: var(--gold-soft);
  background: rgba(217, 66, 46, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .project-board { gap: 12px; }
  .board-column { padding: 10px; min-height: 0; }
  .project-card { padding: 12px; }
  .project-card-title { font-size: 15px; }
  .project-card-client { font-size: 12px; }
  .project-card-meta { font-size: 11px; }
  .project-card-workflow .ghost-button,
  .complete-gallery-button { min-height: 44px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card { animation: none; transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease; }
  .project-card:hover { transform: none; }
}

.complete-gallery-modal {
  display: grid;
  gap: 18px;
  width: min(100%, 620px);
}
.complete-gallery-modal h2 { margin: 3px 0 0; }
.complete-gallery-intro { margin: 0; color: var(--muted); line-height: 1.55; }
.complete-gallery-warning {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(226, 86, 79, 0.42);
  border-radius: 10px;
  background: rgba(226, 86, 79, 0.09);
}
.complete-gallery-warning strong { color: #ffb1ac; }
.complete-gallery-warning ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.complete-gallery-acknowledgement {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.45;
}
.complete-gallery-acknowledgement input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-pill.neutral { border-color: var(--line); background: rgba(255,255,255,0.04); }
.status-pill.warning {
  border-color: rgba(224, 166, 60, 0.5);
  color: #f0c76a;
  background: rgba(224, 166, 60, 0.12);
}
.status-pill.success {
  border-color: rgba(62, 207, 142, 0.5);
  color: #7ee7b3;
  background: rgba(62, 207, 142, 0.12);
}
.status-pill.danger {
  border-color: rgba(226, 86, 79, 0.5);
  color: #ff9f99;
  background: rgba(226, 86, 79, 0.12);
}
.status-pill.info {
  border-color: rgba(91, 141, 239, 0.5);
  color: #9bb8f8;
  background: rgba(91, 141, 239, 0.12);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Cards / panels ---------- */
.panel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.panel-card h2 { font-size: 16px; margin-bottom: 4px; }
.panel-card > p.hint { color: var(--muted); font-size: 12px; margin-bottom: 14px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 720px) { .field-grid { grid-template-columns: 1fr; } }
.field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  color: #f3f3f3;
  font-size: 13px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gold-soft); }
.form-field textarea { resize: vertical; min-height: 70px; }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #f3f3f3; flex-direction: row; }
.toggle-row input { width: 16px; height: 16px; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.form-feedback { font-size: 12px; padding: 8px 10px; border-radius: 8px; margin-top: 10px; }
.form-feedback.error { color: #ff9f99; background: rgba(226, 86, 79, 0.1); border: 1px solid rgba(226, 86, 79, 0.35); }
.form-feedback.success { color: #8fe0b7; background: rgba(76, 175, 125, 0.1); border: 1px solid rgba(76, 175, 125, 0.35); }

/* ---------- Tables / lists ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state strong { display: block; color: #f3f3f3; margin-bottom: 6px; }

/* ---------- Project detail ---------- */
.project-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.project-detail-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.project-meta-row { display: flex; gap: 14px; color: var(--muted); font-size: 12px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- Photos ---------- */
.upload-dropzone {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  background: var(--panel-soft);
  width: 100%;
}
.upload-dropzone:hover { border-color: var(--gold-soft); }
.upload-progress { margin: 12px 0; font-size: 12px; color: var(--gold-soft); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.photo-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.photo-tile:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile.is-cover { border-color: var(--gold-soft); }
.photo-tile-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--gold-soft);
}
.photo-tile-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: opacity 0.15s ease;
}
.photo-tile:hover .photo-tile-actions { opacity: 1; }
.photo-tile-actions button {
  flex: 1;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 10px;
  padding: 5px 2px;
  cursor: pointer;
}
.photo-tile-actions button:hover { background: rgba(255, 255, 255, 0.28); }
.photo-tile.is-failed .photo-tile-actions {
  opacity: 1;
  transform: translateY(0);
}
.photo-tile.is-failed .photo-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}
.photo-tile-checkbox { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; }
.photo-pending { color: var(--warning); font-size: 9px; }
.photo-tile-badge.is-error {
  background: rgba(226, 86, 79, 0.92);
  color: #fff;
}
.photo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.upload-status {
  display: grid;
  gap: 3px;
  margin: 10px 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(226, 86, 79, 0.38);
  border-radius: 8px;
  background: rgba(226, 86, 79, 0.08);
  color: #ffb1ac;
  font-size: 12px;
}
.upload-status[hidden] { display: none; }
.upload-status span { color: var(--muted); line-height: 1.45; }
.upload-status button { justify-self: start; margin-top: 6px; }
.modal-card.photo-conflict-dialog { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); min-width: 0; color: var(--text); font: inherit; margin: auto; }
.photo-conflict-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.photo-conflict-dialog .photo-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.upload-status .secondary-button, .photo-conflict-dialog .secondary-button { min-height: 40px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--panel-soft); color: var(--text); font: inherit; cursor: pointer; }
.upload-status .secondary-button:hover, .photo-conflict-dialog .secondary-button:hover { background: var(--panel-lift); }
.photo-conflict-dialog button:focus-visible { outline: 2px solid #ef7765; outline-offset: 3px; }
.pagination-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.pagination-page {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), color var(--dur-fast) ease;
}
.pagination-page:hover {
  border-color: rgba(217, 66, 46, 0.45);
  background: rgba(217, 66, 46, 0.08);
  transform: translateY(-1px);
}
.pagination-page.is-active {
  color: #1a1400;
  border-color: rgba(217, 66, 46, 0.7);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 8px 18px rgba(217, 66, 46, 0.22);
}
.pagination-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}
.pagination-nav { min-height: 36px; }
.pagination-meta { font-size: 12px; color: var(--muted); }
.pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination-jump label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.pagination-jump input {
  width: 72px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
}
.pagination-jump input:focus {
  outline: none;
  border-color: var(--gold-soft);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-card h2 { margin-bottom: 4px; }
.modal-card > p.hint { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.modal-close-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }

.client-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 14px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.client-mode-switch button { width: 100%; }
.client-mode-switch button.active { color: #171200; background: var(--gold); border-color: var(--gold); }
.client-existing-picker { margin-bottom: 14px; }
.client-picker-results { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; margin-top: 8px; }
.client-picker-results > .hint { margin: 4px 0; color: var(--muted); font-size: 12px; }
.client-picker-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.client-picker-option:hover, .client-picker-option:focus-visible { border-color: var(--gold-soft); outline: none; }
.client-picker-option small { color: var(--muted); text-align: right; }
.client-picker-selected { margin: 0; padding: 9px 11px; color: #8fe0b7; background: rgba(76, 175, 125, 0.1); border: 1px solid rgba(76, 175, 125, 0.35); border-radius: 8px; font-size: 12px; }
@media (max-width: 560px) {
  .client-picker-option { align-items: flex-start; flex-direction: column; }
  .client-picker-option small { text-align: left; }
}

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  min-width: 220px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.2s ease;
}
.toast.error { border-color: rgba(226, 86, 79, 0.5); color: #ff9f99; }
.toast.success { border-color: rgba(76, 175, 125, 0.5); color: #8fe0b7; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.section-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section-nav button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.section-nav button.active { color: var(--gold-soft); border-color: var(--gold-soft); }

.loading-state { padding: 40px; text-align: center; color: var(--muted); }
.file-input-hidden { display: none; }

/* ---------- Loading and feedback ---------- */
@keyframes view-enter {
  from { opacity: .75; }
  to { opacity: 1; }
}

.page-loader {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 280px;
  padding: 48px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
    var(--panel);
  animation: view-enter var(--dur) var(--ease-out) both;
}
.page-loader-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #1a1400;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 0 0 rgba(217, 66, 46, 0.45);
  animation: pulse-ring 1.6s var(--ease-out) infinite;
}
.page-loader-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--gold-soft);
  animation: spin 0.7s linear infinite;
}
.page-loader strong { font-size: 15px; color: var(--text); }
.page-loader p { font-size: 13px; color: var(--muted); max-width: 320px; }

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  gap: 14px;
  background:
    radial-gradient(700px 400px at 50% 30%, rgba(217, 66, 46, 0.14), transparent 60%),
    var(--ink);
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
.boot-loader.is-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-loader .page-loader-mark { width: 64px; height: 64px; font-size: 18px; border-radius: 16px; }
.boot-loader strong { letter-spacing: 0.12em; font-size: 12px; color: var(--gold-soft); }

.skeleton-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) { .skeleton-board { grid-template-columns: 1fr; } }
.skeleton-column {
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
}
.skeleton-column[data-tone="prep"] { border-color: var(--col-prep-border); background: linear-gradient(180deg, var(--col-prep-bg), var(--panel) 50%); }
.skeleton-column[data-tone="review"] { border-color: var(--col-review-border); background: linear-gradient(180deg, var(--col-review-bg), var(--panel) 50%); }
.skeleton-column[data-tone="done"] { border-color: var(--col-done-border); background: linear-gradient(180deg, var(--col-done-bg), var(--panel) 50%); }
.skeleton-line,
.skeleton-card {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skeleton-line { height: 14px; width: 55%; }
.skeleton-card { height: 84px; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(217, 66, 46, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(217, 66, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 66, 46, 0); }
}

.soft-refresh {
  position: sticky;
  top: 8px;
  z-index: 5;
  margin: 0 auto 12px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--gold-soft);
  background: rgba(18, 18, 24, 0.88);
  border: 1px solid rgba(217, 66, 46, 0.28);
  backdrop-filter: blur(8px);
  animation: view-enter var(--dur) var(--ease-out) both;
}

.gallery-meta-item[data-tone="privacy-privada"] { border-color: rgba(124, 108, 255, 0.35); background: rgba(124, 108, 255, 0.1); }
.gallery-meta-item[data-tone="privacy-protegida"] { border-color: rgba(224, 166, 60, 0.35); background: rgba(224, 166, 60, 0.1); }
.gallery-meta-item[data-tone="privacy-publica"] { border-color: rgba(62, 207, 142, 0.35); background: rgba(62, 207, 142, 0.1); }
.gallery-meta-item[data-tone="status"] { border-color: rgba(91, 141, 239, 0.3); background: rgba(91, 141, 239, 0.08); }

.section-nav button {
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background var(--dur-fast) ease;
  border-radius: 8px 8px 0 0;
  padding: 8px 12px !important;
  min-height: 44px;
}
.section-nav button.active {
  background: rgba(217, 66, 46, 0.08);
}
.tabs button {
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.tabs button:hover { transform: translateY(-1px); color: var(--text); }
.tabs button.active {
  box-shadow: 0 0 0 1px rgba(217, 66, 46, 0.2);
}

.panel-card {
  transition: border-color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.photo-tile {
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.photo-tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.modal-overlay { animation: fade-in var(--dur) ease both; }
.modal-card { animation: modal-in var(--dur-slow) var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Gallery summary (Selpics-inspired) ---------- */
.project-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}
.project-crumb .crumb-sep { opacity: 0.5; }
.project-crumb .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.gallery-summary-card {
  display: grid;
  grid-template-columns: minmax(300px, 36%) 1fr;
  gap: 0;
  margin-bottom: 24px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
}

.gallery-summary-cover {
  position: relative;
  min-height: 390px;
  background: #0f0f0f center / cover no-repeat;
}
.gallery-summary-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.68));
}
.gallery-summary-cover.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(145deg, #1a1a1a, #101010);
}
.gallery-photo-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.gallery-summary-body {
  min-width: 0;
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gallery-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.gallery-summary-heading { min-width: 0; }
.gallery-summary-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.gallery-summary-kicker .eyebrow { margin: 0; }
.gallery-summary-top h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.15;
}
.gallery-summary-client { color: var(--muted); margin-top: 4px; font-size: 14px; }
.gallery-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-summary-actions > * { min-height: 44px; }
.gallery-preview-button {
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(239, 119, 101, 0.42);
  border-radius: 10px;
  background: rgba(217, 66, 46, 0.1);
  color: var(--gold-soft);
  font-weight: 600;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.gallery-preview-button:hover {
  border-color: var(--gold-soft);
  background: rgba(217, 66, 46, 0.16);
  transform: translateY(-1px);
}
.button-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.gallery-selection-summary {
  display: grid;
  gap: 11px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 66, 46, 0.2);
  border-radius: 10px;
  background: rgba(217, 66, 46, 0.055);
}
.gallery-selection-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.gallery-selection-copy > div {
  display: grid;
  gap: 3px;
}
.gallery-selection-copy span {
  color: var(--muted);
  font-size: 12px;
}
.gallery-selection-copy strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.gallery-selection-copy .gallery-selection-remaining {
  color: var(--gold-soft);
  white-space: nowrap;
}
.gallery-selection-bar {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.gallery-selection-bar > span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--gold-soft);
  transition: width var(--dur-slow) var(--ease-out);
}

.gallery-summary-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.gallery-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.gallery-meta-item:last-child { border-right: 0; }
.gallery-meta-item span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-meta-item strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gallery-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 8px 10px 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.gallery-url-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-url {
  flex: 1;
  min-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.gallery-url-row .ghost-button { min-height: 44px; }

.gallery-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.gallery-quick-links > * { min-height: 44px; }
.gallery-danger-action { margin-left: auto; }

.gallery-clients-panel {
  overflow: visible;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.13);
}
.gallery-clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.gallery-clients-header .hint {
  max-width: 620px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.gallery-clients-header .primary-button { min-height: 44px; }
.gallery-client-search-field {
  display: grid;
  gap: 7px;
  margin: 18px 24px 10px;
  color: var(--muted);
  font-size: 12px;
}
.gallery-client-search-field input[type="search"] {
  width: min(100%, 460px);
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  font-size: 14px;
}
.gallery-client-search-field input[type="search"]:focus {
  border-color: rgba(239, 119, 101, 0.7);
  outline: 2px solid rgba(239, 119, 101, 0.14);
  outline-offset: 1px;
}
.client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(239, 119, 101, 0.35), rgba(217, 66, 46, 0.2));
  border: 1px solid rgba(217, 66, 46, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-soft);
}
.client-cell > div { min-width: 0; }
.client-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.client-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.gallery-clients-table th:nth-child(1) { width: 34%; }
.gallery-clients-table th:nth-child(2) { width: 14%; }
.gallery-clients-table th:nth-child(3) { width: 12%; }
.gallery-clients-table th:last-child { width: 40%; }
.gallery-clients-table { margin-top: 2px; }
.gallery-clients-table th { padding-inline: 24px; }
.gallery-clients-table td { padding: 14px 24px; }
.gallery-clients-table tbody tr:last-child td { border-bottom: 0; }
.gallery-clients-table .row-actions {
  position: relative;
  min-width: 350px;
}
.gallery-client-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.gallery-client-actions > .primary-button,
.gallery-client-actions > .ghost-button {
  min-height: 44px;
  white-space: nowrap;
}
.gallery-activity-button {
  border-color: rgba(239, 119, 101, 0.32);
  background: rgba(217, 66, 46, 0.07);
  color: var(--gold-soft);
  font-weight: 600;
}
.client-selection-progress {
  display: grid;
  gap: 7px;
  width: min(100%, 100px);
  font-variant-numeric: tabular-nums;
}
.client-selection-progress strong { font-size: 15px; }
.client-selection-progress span { color: var(--muted); font-size: 12px; }
.client-selection-track {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.client-selection-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}
.client-actions-menu {
  position: relative;
  flex: 0 0 auto;
}
.client-actions-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  list-style: none;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.client-actions-menu summary::-webkit-details-marker { display: none; }
.client-actions-menu summary:hover,
.client-actions-menu summary:focus-visible,
.client-actions-menu[open] summary {
  border-color: rgba(217, 66, 46, 0.5);
  background: rgba(217, 66, 46, 0.08);
  outline: none;
}
.client-actions-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 210px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-lift);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
  animation: client-menu-in var(--dur-fast) var(--ease-out) both;
}
.client-actions-popover button {
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.client-actions-popover button:hover,
.client-actions-popover button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}
.client-actions-popover button.is-danger { color: #ff9f99; }
@keyframes client-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.link-button {
  border: none;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-button:hover { color: #fff; }

/* ---------- Gallery client activity ---------- */
.modal-card.client-activity-modal,
.modal-card:has(.client-activity-modal) {
  max-width: 940px;
}

.client-activity-modal {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.client-activity-modal > *,
.client-activity-modal [data-client-activity-content] {
  min-width: 0;
}

.client-activity-modal .modal-close-row {
  margin-bottom: -8px;
}

.client-activity-heading,
.client-activity-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-activity-heading h2,
.client-activity-section-heading h3,
.client-activity-section-heading p {
  margin: 0;
}

.client-activity-eyebrow,
.client-activity-metric span,
.client-activity-message span {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-activity-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.client-activity-metric {
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.client-activity-metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
}

.client-activity-message {
  padding: 14px;
  border-left: 3px solid var(--gold);
  background: var(--panel-soft);
}

.client-activity-message p {
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.client-activity-section-heading {
  margin-top: 20px;
}

.client-activity-lightroom-export {
  flex: 0 0 auto;
  min-height: 38px;
  border-color: rgba(217, 66, 46, 0.48);
  color: var(--gold-soft);
}

/* ---------- Lightroom export ---------- */
.gallery-lightroom-button {
  border-color: rgba(217, 66, 46, 0.48);
  color: var(--gold-soft);
}

.modal-card:has(.lightroom-export-modal) {
  max-width: 720px;
}

.lightroom-export-modal {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.lightroom-export-modal .modal-close-row {
  margin-bottom: -8px;
}

.lightroom-export-heading h2,
.lightroom-export-heading p {
  margin: 0;
}

.lightroom-export-heading .hint {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.lightroom-client-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.lightroom-client-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lightroom-client-field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
}

.lightroom-export-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.lightroom-export-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lightroom-export-summary strong,
.lightroom-export-summary span {
  overflow-wrap: anywhere;
}

.lightroom-export-summary > div > span {
  color: var(--muted);
  font-size: 12px;
}

.lightroom-export-code-wrap {
  display: grid;
  gap: 10px;
}

.lightroom-export-code {
  width: 100%;
  min-height: 156px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0a0d;
  color: var(--text);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.lightroom-export-code:focus {
  outline: 2px solid rgba(217, 66, 46, 0.38);
  outline-offset: 2px;
}

.lightroom-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  justify-self: end;
  min-width: 174px;
}

.lightroom-copy-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.lightroom-copy-icon-back,
.lightroom-copy-icon-front {
  position: absolute;
  width: 11px;
  height: 12px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.lightroom-copy-icon-back { top: 1px; left: 1px; opacity: 0.72; }
.lightroom-copy-icon-front { right: 1px; bottom: 1px; background: var(--gold); }

.lightroom-export-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .lightroom-export-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightroom-copy-button {
    justify-self: stretch;
    width: 100%;
  }
}

.client-activity-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.client-activity-filters {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  overflow-x: auto;
}

.client-activity-filters button {
  flex: 0 0 auto;
}

.client-activity-filters button.active {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(217, 66, 46, 0.12);
}

.client-activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.client-activity-item {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.client-activity-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 2;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
}

.client-activity-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-activity-photo-placeholder {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.client-activity-item-copy {
  min-width: 0;
  padding: 11px;
}

.client-activity-item-copy > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.client-activity-item-copy p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.client-activity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.activity-badge {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.activity-badge.favorite {
  border-color: rgba(217, 66, 46, 0.42);
  color: var(--gold-soft);
}

.activity-badge.comment {
  border-color: rgba(76, 175, 125, 0.38);
  color: #8fe0b7;
}

@media (max-width: 760px) {
  .client-activity-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-activity-metric:first-child,
  .client-activity-metric:nth-child(2) {
    grid-column: span 1;
  }

  .client-activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .client-activity-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-activity-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .client-activity-lightroom-export {
    width: 100%;
  }

  .client-activity-metrics {
    grid-template-columns: 1fr;
  }

  .client-activity-metric {
    min-height: 0;
  }

  .client-activity-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .gallery-summary-card { grid-template-columns: minmax(0, 1fr); }
  .gallery-summary-cover {
    min-height: 220px;
    aspect-ratio: 16 / 7;
  }
  .gallery-summary-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-meta-item:nth-child(2n) { border-right: 0; }
  .gallery-meta-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .gallery-clients-table,
  .gallery-clients-table tbody,
  .gallery-clients-table tr,
  .gallery-clients-table td {
    display: block;
    width: 100%;
  }
  .gallery-clients-table thead { display: none; }
  .gallery-clients-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "client status"
      "selection actions";
    gap: 14px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .gallery-clients-table td {
    padding: 0;
    border: 0;
  }
  .gallery-clients-table td:nth-child(1) { grid-area: client; }
  .gallery-clients-table td:nth-child(2) { grid-area: status; }
  .gallery-clients-table td:nth-child(3) { grid-area: selection; }
  .gallery-clients-table td:nth-child(4) { grid-area: actions; }
  .gallery-clients-table .row-actions { min-width: 0; }
}

@media (max-width: 560px) {
  .gallery-summary-body { padding: 20px 18px; }
  .gallery-summary-top,
  .gallery-summary-actions { align-items: stretch; }
  .gallery-summary-actions > * { flex: 1 1 auto; justify-content: center; }
  .gallery-selection-copy { align-items: flex-start; flex-direction: column; gap: 6px; }
  .gallery-selection-copy .gallery-selection-remaining { white-space: normal; }
  .gallery-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .gallery-url-label { grid-column: 1 / -1; }
  .gallery-url { min-width: 0; }
  .gallery-danger-action { margin-left: 0; }
  .gallery-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-quick-links > * {
    min-width: 0;
    width: 100%;
    padding-inline: 10px;
    white-space: normal;
  }

  .gallery-clients-header {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 18px 16px;
  }
  .gallery-clients-header .primary-button { min-height: 44px; }
  .gallery-client-search-field { margin: 16px 18px 8px; }

  .gallery-clients-table tr {
    grid-template-columns: 1fr;
    grid-template-areas: "client" "status" "selection" "actions";
  }
  .gallery-client-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 44px;
    width: 100%;
  }
  .client-actions-menu summary {
    width: 44px;
    height: 44px;
  }
  .gallery-client-actions > .primary-button,
  .gallery-client-actions > .ghost-button { min-height: 44px; }
}

/* ---------- Admin photo lightbox ---------- */
body.photo-lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 56px max(18px, env(safe-area-inset-bottom));
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(10px) saturate(1.05);
  animation: fade-in var(--dur) ease both;
}

.photo-lightbox-stage {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  width: min(100%, 1080px);
  max-height: calc(100vh - 120px);
  margin: 0;
}

.photo-lightbox-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.03);
}

.photo-lightbox-stage figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 720px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.photo-lightbox-stage figcaption strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
}

.photo-lightbox-stage figcaption span {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.photo-lightbox-close {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
}

.photo-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.photo-lightbox-nav.is-prev { left: max(12px, env(safe-area-inset-left)); }
.photo-lightbox-nav.is-next { right: max(12px, env(safe-area-inset-right)); }

.photo-lightbox-close:hover,
.photo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%) scale(1.04);
}

.photo-lightbox-close:hover {
  transform: scale(1.04);
}

.photo-lightbox-actions {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.photo-lightbox-actions .ghost-button,
.photo-lightbox-actions .danger-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .photo-lightbox {
    padding: max(12px, env(safe-area-inset-top)) 12px 72px;
  }

  .photo-lightbox-nav,
  .photo-lightbox-close {
    z-index: 1;
  }

  .photo-lightbox-stage img {
    max-height: calc(100vh - 160px);
  }

  .photo-lightbox-actions {
    width: calc(100% - 24px);
    justify-content: center;
  }
}

/* ---------- Premium system layer ---------- */
:root {
  --gold: #c9a94d;
  --gold-soft: #e5cc80;
  --ink: #09090a;
  --panel: #111113;
  --panel-soft: #17171a;
  --panel-raised: #1d1d21;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --muted: rgba(245, 244, 240, 0.62);
  --text: #f5f4f0;
  --radius: 8px;
  --dur-fast: 150ms;
  --dur: 220ms;
  --focus-ring: 0 0 0 3px rgba(229, 204, 128, 0.3);
  --shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.24);
}

* {
  scrollbar-color: rgba(229, 204, 128, 0.34) transparent;
}

html {
  background: var(--ink);
}

body {
  background: var(--ink);
  color: var(--text);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.link-button {
  min-height: 42px;
  border-radius: 7px;
  transition:
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease,
    transform var(--dur-fast) ease;
}

.primary-button {
  border: 1px solid #d7ba62;
  background: #d7ba62;
  box-shadow: none;
  color: #111;
}

.primary-button:not(:disabled):hover {
  border-color: #ead38d;
  background: #ead38d;
  box-shadow: 0 8px 24px rgba(201, 169, 77, 0.16);
  transform: translateY(-1px);
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ghost-button:not(:disabled):hover,
.icon-button:not(:disabled):hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.danger-button {
  background: rgba(205, 83, 83, 0.08);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.icon-button svg,
.password-toggle svg,
.nav-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #17171a;
  color: var(--text);
  box-shadow: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(229, 204, 128, 0.66);
}

.login-shell {
  isolation: isolate;
  background: #09090a;
}

.login-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 49.96%, rgba(255, 255, 255, 0.045) 50%, transparent 50.04%);
  content: "";
  pointer-events: none;
}

.login-card {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.96);
  box-shadow: var(--shadow-panel);
  padding: 34px;
}

.login-eyebrow {
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.login-card h1 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.15;
}

.login-copy {
  max-width: 34ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-card form {
  gap: 16px;
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 6px;
  color: var(--muted);
}

.password-toggle:hover {
  color: var(--text);
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--ink);
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  background: #0d0d0f;
}

.admin-sidebar-brand {
  min-height: 104px;
  border-bottom: 1px solid var(--line);
  padding: 24px 20px;
}

.admin-sidebar-mark,
.admin-sidebar-avatar,
.page-loader-mark {
  border: 1px solid rgba(229, 204, 128, 0.4);
  border-radius: 7px;
  background: #d7ba62;
  box-shadow: none;
  color: #111;
}

.admin-sidebar-nav {
  gap: 4px;
  padding: 18px 12px;
}

.admin-sidebar-nav a {
  min-height: 44px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  color: rgba(245, 244, 240, 0.68);
}

.admin-sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.admin-sidebar-nav a.active {
  border-color: rgba(229, 204, 128, 0.24);
  background: rgba(201, 169, 77, 0.1);
  box-shadow: inset 2px 0 0 var(--gold-soft);
  color: var(--gold-soft);
}

.nav-ico {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 0;
}

.admin-sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.admin-sidebar-logout {
  width: 100%;
}

.admin-main {
  min-width: 0;
  background: var(--ink);
}

.view-root {
  width: min(100%, 1680px);
  margin-inline: auto;
  padding: 34px 36px 56px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 30px;
  line-height: 1.16;
}

.page-header p {
  color: var(--muted);
  font-size: 14px;
}

.panel,
.metric-card,
.kanban-column,
.project-card,
.gallery-summary-card,
.gallery-clients-card,
.client-activity-metric,
.client-activity-item,
.modal-card {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

.panel {
  padding: 22px;
}

.toolbar {
  gap: 10px;
  margin-bottom: 18px;
}

.toolbar input,
.toolbar select {
  min-height: 44px;
}

.kanban-board {
  gap: 14px;
}

.kanban-column {
  min-width: 280px;
  padding: 14px;
}

.kanban-column-header {
  min-height: 42px;
  padding: 0 2px 10px;
}

.kanban-column-list {
  gap: 10px;
}

.project-card {
  gap: 10px;
  min-height: 0;
  padding: 14px;
  transition:
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    transform var(--dur-fast) ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-raised);
  transform: translateY(-1px);
}

.project-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.project-card p,
.project-card small {
  font-size: 12px;
  line-height: 1.4;
}

.project-card .progress-track {
  height: 4px;
}

.status-badge,
.activity-badge,
.project-card .badge {
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

table {
  border-collapse: collapse;
}

th {
  color: rgba(245, 244, 240, 0.48);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  border-color: var(--line);
}

tbody tr {
  transition: background-color var(--dur-fast) ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.gallery-summary-card {
  overflow: hidden;
}

.gallery-summary-cover {
  min-height: 360px;
}

.gallery-summary-body {
  gap: 20px;
  padding: 26px;
}

.gallery-summary-top h1,
.gallery-summary-top h2 {
  font-size: 28px;
  line-height: 1.15;
}

.gallery-summary-actions,
.gallery-quick-links,
.gallery-client-actions,
.row-actions {
  gap: 8px;
}

.gallery-summary-actions > *,
.gallery-quick-links > *,
.gallery-client-actions > *,
.row-actions > * {
  min-height: 40px;
}

.gallery-summary-meta {
  border-color: var(--line);
  border-radius: 7px;
  background: #151517;
}

.gallery-meta-item {
  min-height: 76px;
  padding: 14px;
}

.gallery-url-row,
.gallery-selection-progress {
  border-color: var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
}

.gallery-clients-card {
  margin-top: 20px;
}

.gallery-clients-header {
  padding: 20px 22px 14px;
}

.gallery-client-search-field {
  margin: 0 22px 8px;
}

.client-activity-metrics {
  gap: 10px;
}

.client-activity-metric {
  min-height: 96px;
  padding: 16px;
}

.client-activity-list {
  gap: 10px;
}

.client-activity-item {
  overflow: hidden;
}

.modal-overlay {
  background: rgba(4, 4, 5, 0.78);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(680px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  padding: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.modal-card h2 {
  font-size: 22px;
  line-height: 1.25;
}

.photo-lightbox {
  z-index: 900;
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(8px);
}

.photo-lightbox-stage img {
  border-radius: 6px;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.toast {
  border-color: var(--line);
  border-radius: 7px;
  background: #1b1b1e;
  box-shadow: var(--shadow-panel);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .admin-mobilebar {
    min-height: 60px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 13, 15, 0.94);
    backdrop-filter: blur(14px);
  }

  .view-root {
    padding: 24px 20px 48px;
  }
}

@media (max-width: 620px) {
  .login-card {
    padding: 26px 22px;
  }

  .view-root {
    padding: 18px 14px 36px;
  }

  .page-header {
    align-items: stretch;
    gap: 14px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .panel,
  .modal-card {
    padding: 18px;
  }

  .kanban-board {
    gap: 12px;
    scroll-snap-type: x mandatory;
  }

  .kanban-column {
    width: min(88vw, 340px);
    min-width: min(88vw, 340px);
    scroll-snap-align: start;
  }

  .gallery-summary-body {
    padding: 20px 16px;
  }

  .gallery-summary-top h1,
  .gallery-summary-top h2 {
    font-size: 23px;
  }

  .gallery-quick-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Premium UI system layer - 2026-08-23 */
:root {
  --gold: #ef7765;
  --gold-soft: #ffab9e;
  --gold-strong: #c43726;
  --ink: #080809;
  --panel: #111114;
  --panel-soft: #17171b;
  --panel-strong: #1f1f24;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --muted: rgba(246, 244, 238, 0.62);
  --text: #f6f4ee;
  --danger: #f27a7a;
  --success: #54d69b;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --dur-fast: 160ms;
  --dur-med: 240ms;
}

html,
body {
  min-height: 100%;
  background: #080809;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 320px),
    #080809;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  transition:
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease,
    transform var(--dur-fast) ease,
    opacity var(--dur-fast) ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(239, 119, 101, 0.9);
  outline-offset: 3px;
}

.nav-ico svg,
.password-toggle svg,
.icon-button svg,
.photo-lightbox-close svg,
.photo-lightbox-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-shell {
  min-height: 100vh;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(239, 119, 101, 0.06), transparent 38%),
    #080809;
}

.login-card {
  width: min(100%, 420px);
  max-width: calc(100vw - 32px);
  min-width: 0 !important;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.94);
  box-shadow: var(--shadow);
}

.login-eyebrow,
.section-kicker,
.detail-kicker,
.gallery-summary-card .summary-eyebrow {
  color: var(--gold-soft);
  letter-spacing: 0.16em;
}

.login-card h1,
.page-title,
.detail-title,
.summary-title {
  letter-spacing: 0;
}

input,
select,
textarea,
.search-input {
  min-height: 44px;
  border-radius: 8px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

input:hover,
select:hover,
textarea:hover,
.search-input:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus,
.search-input:focus {
  border-color: rgba(239, 119, 101, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 119, 101, 0.12);
}

.password-field {
  border-radius: 8px;
}

.password-toggle {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  color: rgba(246, 244, 238, 0.68);
}

.primary-button,
.accent-button {
  min-height: 44px;
  border: 1px solid rgba(239, 119, 101, 0.72);
  border-radius: 8px;
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 12px 32px rgba(239, 119, 101, 0.16);
}

.primary-button:hover,
.accent-button:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.ghost-button,
.danger-button,
.link-button,
.icon-button {
  min-height: 44px;
  border-radius: 8px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.032);
  color: var(--text);
}

.ghost-button:hover,
.link-button:hover,
.icon-button:hover {
  border-color: rgba(239, 119, 101, 0.38);
  background: rgba(239, 119, 101, 0.08);
}

.danger-button {
  color: #ffaaa6;
  border-color: rgba(242, 122, 122, 0.42);
  background: rgba(242, 122, 122, 0.08);
}

.app-shell {
  background: #080809;
}

.admin-sidebar {
  width: 252px;
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.96);
}

.admin-sidebar-brand,
.admin-sidebar-footer {
  padding-inline: 20px;
}

.admin-sidebar-mark,
.admin-sidebar-avatar,
.page-loader-mark {
  border-radius: 8px;
  background: var(--gold);
  color: #14110a;
  box-shadow: none;
}

.admin-sidebar-nav {
  padding-inline: 12px;
}

.admin-sidebar-nav a {
  min-height: 46px;
  border-radius: 8px;
  color: rgba(246, 244, 238, 0.72);
}

.admin-sidebar-nav a[aria-current="page"],
.admin-sidebar-nav a.is-active,
.admin-sidebar-nav a:hover {
  border-color: rgba(239, 119, 101, 0.28);
  background: rgba(239, 119, 101, 0.09);
  color: var(--text);
}

.nav-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.admin-main {
  background: transparent;
}

.page-header,
.toolbar-row,
.panel,
.summary-panel,
.settings-panel,
.clients-panel,
.gallery-summary-card,
.modal-card,
.client-activity-modal {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.86);
  box-shadow: none;
}

.page-header {
  gap: 18px;
  padding-block: 4px 18px;
}

.toolbar-row {
  padding: 12px;
}

.project-board,
.kanban-board {
  gap: 14px;
}

.project-column,
.kanban-column {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(15, 15, 18, 0.78);
  box-shadow: none;
}

.project-column-header,
.kanban-column-header {
  min-height: 48px;
  padding: 14px 16px 10px;
}

.project-column-count,
.kanban-count {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
}

.project-card,
.kanban-card,
.photo-card,
.client-row,
.table-row,
.activity-photo-card {
  border-radius: 8px;
  border-color: var(--line);
  background: rgba(29, 29, 34, 0.82);
  box-shadow: none;
}

.project-card,
.kanban-card {
  padding: 16px;
}

.project-card h3,
.kanban-card h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.16;
}

.project-card p,
.kanban-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
}

.project-card-meta,
.kanban-card-meta {
  gap: 8px;
  margin-top: 10px;
}

.status-pill,
.stage-pill,
.client-status,
.pill {
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.progress-bar,
.project-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar > span,
.project-progress > span {
  border-radius: inherit;
  background: var(--gold);
}

.gallery-summary-card {
  overflow: hidden;
}

.gallery-summary-media,
.summary-cover {
  background: #0d0d0f;
}

.gallery-summary-media img,
.summary-cover img,
.photo-card img,
.activity-photo-thumb img {
  object-fit: cover;
}

.summary-metrics,
.metric-grid {
  gap: 10px;
}

.summary-metric,
.metric-card {
  min-height: 76px;
  border-radius: 8px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.modal-backdrop,
.photo-lightbox {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(14px);
}

.modal-card {
  max-width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.modal-close,
.photo-lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.photo-lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 0;
}

.photo-lightbox-nav::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.photo-lightbox-nav.is-prev::before {
  transform: translateX(2px) rotate(-45deg);
}

.photo-lightbox-nav.is-next::before {
  transform: translateX(-2px) rotate(135deg);
}

.photo-lightbox-stage img {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .login-shell {
    padding: 16px;
    overflow-x: hidden;
  }

  .login-card {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .login-card form {
    min-width: 0;
  }

  .login-card .primary-button,
  .login-card .link-button {
    flex: 0 0 auto;
  }

  .admin-sidebar {
    width: min(82vw, 300px);
  }

  .admin-mobilebar {
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 9, 0.92);
    backdrop-filter: blur(18px);
  }

  .admin-main {
    padding-top: 58px;
  }

  .project-board,
  .kanban-board {
    grid-template-columns: 1fr;
  }

  .project-column,
  .kanban-column {
    min-height: 0;
  }

  .toolbar-row,
  .page-header {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.login-card h1,
.view-header h1,
.gallery-summary-body h2,
.gallery-clients-panel h2,
.project-card h3,
.board-column h2,
.panel-card h2,
.modal-card h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.login-card,
.board-column,
.project-card,
.panel-card,
.modal-card,
.gallery-summary-card,
.gallery-clients-panel,
.data-table,
.table-card {
  border-radius: 22px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.login-card {
  padding: clamp(28px, 4vw, 40px);
}

.admin-sidebar-nav a {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
}

.project-board {
  gap: 16px;
}

.board-column {
  padding: 18px;
}

.board-column-header {
  margin-bottom: 14px;
}

.project-card {
  padding: 16px;
  gap: 12px;
}

.project-card h3 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.1;
}

.project-card-meta,
.project-card-workflow,
.project-card-footer,
.gallery-summary-meta,
.gallery-quick-links,
.panel-actions {
  gap: 10px;
}

.project-card-workflow button,
.gallery-quick-links button,
.panel-actions button,
.gallery-summary-actions button,
.modal-actions button,
.table-actions button {
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 12px;
}

.gallery-summary-card {
  overflow: clip;
}

.gallery-summary-body {
  gap: 18px;
}

.gallery-summary-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.gallery-summary-meta .stat-card,
.gallery-summary-meta > * {
  min-height: 86px;
}

.gallery-clients-panel {
  padding: 22px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.modal-card {
  padding: 24px;
}

.modal-card .modal-header {
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  .project-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .login-card,
  .gallery-summary-card,
  .gallery-clients-panel,
  .panel-card,
  .modal-card {
    padding: 18px;
  }

  .project-card {
    padding: 14px;
  }

  .project-card-workflow,
  .gallery-quick-links,
  .panel-actions,
  .modal-actions {
    flex-wrap: wrap;
  }

  .project-card-workflow button,
  .gallery-quick-links button,
  .panel-actions button,
  .gallery-summary-actions button,
  .modal-actions button {
    flex: 1 1 100%;
  }
}

#login-form {
  display: grid;
  gap: 14px;
}

#login-form .primary-button {
  width: 100%;
  justify-self: stretch;
}

.login-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.login-divider:before,.login-divider:after{content:"";height:1px;flex:1;background:var(--line)}.google-login-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:#19221f;text-decoration:none;font-size:13px;font-weight:700;transition:border-color .18s ease,background .18s ease}.google-login-button:hover{border-color:#ef7765;background:#f8f7f3}.google-login-button:focus-visible{outline:2px solid #ef7765;outline-offset:2px}.google-login-button svg{width:19px;height:19px;flex:0 0 auto}

#login-form .link-button {
  width: fit-content;
  justify-self: center;
  text-align: center;
  margin-top: -2px;
}

.credits-summary{display:flex;justify-content:space-between;gap:30px;padding:26px;background:var(--panel-soft);border:1px solid var(--line);margin-bottom:20px}.credits-summary>div:last-child{max-width:370px}.credits-summary p{color:var(--muted)}.credits-balance{font-size:48px;line-height:1.2}.credits-notice{padding:15px;border-left:3px solid #8b7648;background:var(--panel-soft)}.credits-packages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:26px 0 35px}.credits-package{padding:23px 20px;border:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column}.credits-package h2{font-size:23px;margin:0 0 20px}.credits-package p{font-size:13px;color:var(--muted)}.credits-package .credits-price{font-size:30px;color:var(--text);margin:20px 0 10px}.credits-package .primary-button{margin-top:auto}.credits-checkout{border:1px solid #c7b681;padding:24px;margin-bottom:30px;background:var(--panel-soft)}.credits-checkout[hidden]{display:none}.credit-form{max-width:500px}.credit-form label{display:block;margin:17px 0;font-size:14px}.credit-form input,.credit-form select{display:block;width:100%;padding:12px;margin-top:6px;border:1px solid var(--line-strong);background:var(--panel);font:inherit}.credit-form p{font-size:13px}.credit-order{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.credit-order p{font-size:13px;margin:6px 0 0}.credit-actions{display:flex;gap:8px;flex-wrap:wrap}.credit-ledger{display:flex;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.credit-ledger span{flex:1}.credits-footnote{font-size:12px;color:var(--muted);margin-top:20px}@media(max-width:1000px){.credits-packages{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.credits-summary{display:block}.credits-summary>div+div{margin-top:25px}.credits-packages{grid-template-columns:1fr}.credit-order{align-items:flex-start;flex-direction:column}}

/* Configurações do estúdio */
.studio-settings .deadline-toggle { display:flex; align-items:center; gap:10px; margin-top:12px; cursor:pointer; font-size:14px; }
.studio-settings .deadline-toggle input { width:18px; height:18px; accent-color:#D9422E; }
.studio-settings input:disabled { opacity:.45; cursor:not-allowed; }
.studio-settings input[type="file"] { padding:10px; font-size:13px; }
.studio-settings input::file-selector-button { border:1px solid #56675d; border-radius:8px; padding:10px 14px; margin-right:12px; background:#293b31; color:#F4F2ED; font:inherit; cursor:pointer; transition:background .18s, transform .18s; }
.studio-settings input::file-selector-button:hover { background:#395342; }
.studio-settings .primary-button { min-height:44px; padding:12px 22px; border-radius:10px; transition:transform .18s, background .18s, opacity .18s; }
.studio-settings .primary-button:hover { transform:translateY(-2px); }
.studio-settings .primary-button:active { transform:translateY(0) scale(.98); }
.studio-settings .primary-button:disabled { opacity:.65; cursor:wait; transform:none; }
.studio-settings { animation:studio-settings-enter .24s ease-out; }
@keyframes studio-settings-enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .studio-settings, .studio-settings .primary-button, .studio-settings input::file-selector-button { animation:none; transition:none; transform:none; } }

/* Comparação de pacotes: preço total, capacidade e custo por imagem. */
.credits-section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-top:38px}
.credits-section-heading h2{font-size:clamp(24px,2.3vw,34px);margin:8px 0}
.credits-section-heading p:not(.eyebrow){max-width:650px;color:var(--muted);line-height:1.6;margin-bottom:0}
.credits-payment-note{font-size:12px;color:var(--muted);white-space:nowrap;padding-bottom:4px}
.credits-package-detailed{background:#F4F2ED;color:var(--text);border:1px solid #DEDCD4;border-radius:14px;padding:24px 20px;position:relative;transition:transform .2s,box-shadow .2s}
.credits-package-detailed:hover{transform:translateY(-4px);box-shadow:0 12px 25px #0002}
.credits-package-top{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:63px}
.credits-package-top h3{font-size:20px;margin:0;color:var(--text)}
.credits-value-badge{background:#19221F;color:#F4F2ED;font-size:10px;font-weight:700;padding:5px 8px;border-radius:4px}
.credits-package-best{border:2px solid #EF7765;padding:23px 19px}
.credits-package-detailed .credits-package-description{color:var(--muted);line-height:1.55;min-height:42px;margin:10px 0 24px}
.credits-quota{display:flex;flex-direction:column;gap:4px;padding-bottom:22px;border-bottom:1px solid #DEDCD4}
.credits-quota strong{font-size:36px;line-height:1.15;letter-spacing:0}
.credits-quota span{font-size:13px;color:var(--muted)}
.credits-package-detailed .credits-price{font-size:32px;font-weight:750;color:var(--text);margin:22px 0 8px;white-space:nowrap}
.credits-package-detailed .credits-installments{color:var(--muted);min-height:36px;line-height:1.5;margin:0}
.credits-package-detailed .credits-unit-price{color:var(--muted);font-size:12px;margin:12px 0 22px}
.credits-package-detailed .primary-button{background:#C43726;color:white;width:100%;border:0;border-radius:7px;padding:13px 8px;min-height:44px;font-size:13px;margin:0;transition:background .18s,transform .18s}
.credits-package-detailed .primary-button:hover{background:#a62c1e}
.credits-package-detailed .primary-button:active{transform:scale(.98)}
.credits-package-detailed .primary-button:focus-visible{outline:3px solid #19221F;outline-offset:3px}
.credits-package-features{padding:20px 0 0;margin:0;list-style:none;display:grid;gap:12px;border-top:1px solid #DEDCD4;margin-top:22px}
.credits-package-features li{font-size:12px;line-height:1.5;padding-left:19px;position:relative;color:var(--muted)}
.credits-package-features li::before{content:'✓';position:absolute;left:0;color:#C43726;font-weight:700}
.credits-explainer{padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);margin:0 0 36px}
.credits-explainer h2{font-size:22px;margin:0 0 24px}
.credits-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.credits-steps article>span{font-size:12px;font-weight:700;color:#EF7765}
.credits-steps h3{font-size:16px;margin:10px 0}
.credits-steps p,.credits-explainer-note{font-size:13px;color:var(--muted);line-height:1.7;margin:0}
.credits-explainer-note{border-top:1px solid var(--line);padding-top:18px;margin-top:22px;font-size:12px}
@media(max-width:1100px) and (min-width:1001px){.credits-packages{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.credits-section-heading{display:block}.credits-payment-note{display:block;margin-top:16px}.credits-package-top{min-height:0;flex-direction:row;align-items:center;justify-content:space-between}.credits-package-detailed .credits-package-description{min-height:0}.credits-steps{grid-template-columns:1fr;gap:24px}.credits-explainer{padding:22px}.credits-package-detailed{padding:24px}.credits-package-detailed:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.credits-package-detailed,.credits-package-detailed .primary-button{transition:none;transform:none}}

/* Perfil pessoal: separado da identidade pública do estúdio. */
a.admin-sidebar-user{color:inherit;text-decoration:none;border-radius:8px}
a.admin-sidebar-user:focus-visible{outline:2px solid #EF7765;outline-offset:5px}
.profile-hero{display:flex;gap:26px;align-items:center;padding:32px 0 38px;border-bottom:1px solid var(--line);margin-bottom:30px}
.profile-hero h1{font-size:clamp(26px,3vw,40px);margin:8px 0;overflow-wrap:anywhere}
.profile-hero p:last-child{margin:0;color:var(--muted)}
.profile-avatar{display:grid;place-items:center;width:94px;height:94px;flex-shrink:0;background:#F4F2ED;color:#19221F;font-size:40px;font-weight:750;border-radius:20px;border-bottom:5px solid #D9422E}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.profile-card{background:#F4F2ED;color:var(--text);padding:28px;border-radius:12px;min-width:0}
.profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.profile-card h2,.profile-product h2{font-size:20px;margin:0}
.profile-card .secondary-button{color:var(--text);background:transparent;border:1px solid #b6bcb6;min-height:40px;padding:9px 14px;border-radius:6px}
.profile-card .secondary-button:hover{background:#e4e5de}
.profile-data{display:grid;gap:23px;margin:0}
.profile-data dt{font-size:12px;color:var(--muted);margin-bottom:7px}
.profile-data dd{margin:0;font-size:16px;overflow-wrap:anywhere;line-height:1.5}
.profile-note{font-size:12px;line-height:1.65;color:var(--muted);margin:20px 0 0}
.profile-card .profile-note{color:var(--muted)}
.profile-product{background:var(--panel-soft);border:1px solid var(--line);padding:28px;border-radius:12px;margin-top:24px}
.profile-product-row{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:20px;align-items:center}
.profile-product-row p{font-size:12px;color:var(--muted);margin:0 0 8px}
.profile-product-row strong{font-size:15px}
.profile-product-brand{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.profile-account-status{font-size:12px;color:var(--muted)}
.profile-edit{display:grid;gap:18px}
.profile-edit .form-field{color:var(--text);margin:0}
.profile-edit input{background:white;color:var(--text);border:1px solid #b6bcb6;padding:12px;border-radius:6px;width:100%;font:inherit}
.profile-card :focus-visible{outline:2px solid #C43726;outline-offset:3px}
.profile-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.account-profile .primary-button{background:#C43726;color:white;min-height:44px;border-radius:7px;padding:12px 16px;border:0;transition:background .18s}
.account-profile .primary-button:hover{background:#a62c1e}
.account-profile button:disabled{opacity:.6;cursor:wait}
.profile-saved{color:#28603b;font-size:13px}
@media(max-width:1100px){.profile-product-row{grid-template-columns:1fr 1fr;gap:28px}}
@media(max-width:700px){.profile-grid{grid-template-columns:1fr}.profile-hero{gap:18px;padding:18px 0 26px}.profile-avatar{width:65px;height:65px;font-size:28px;border-radius:12px}.profile-card,.profile-product{padding:22px}.profile-card-heading{align-items:flex-start}.profile-product-row{grid-template-columns:1fr}.profile-product .profile-card-heading{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.account-profile .primary-button{transition:none}}

.personalization-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}
.personalization-form{min-width:0;display:grid;gap:20px}
.personalization-section{padding:26px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft);display:grid;gap:18px}
.personalization-section h2{font-size:20px;margin:0}.personalization-section h3{font-size:14px;margin:0}
.personalization-hint{font-size:13px;color:var(--muted);line-height:1.65;margin:0}
.personalization-section .form-field{margin:0}.personalization-section input:not([type=radio]),.personalization-section textarea,.personalization-section select{width:100%;max-width:100%;box-sizing:border-box;font:inherit}
.personalization-section input[type=file]{font-size:11px}.personalization-section input[type=range]{accent-color:#ef7765}
.personalization-assets{display:grid;grid-template-columns:1fr 1fr;gap:18px}.personalization-asset{min-width:0;display:grid;gap:12px}.personalization-asset-image{height:94px;background:#111c16;border:1px dashed #647166;display:grid;place-items:center;border-radius:8px;color:var(--muted);font-size:12px}.personalization-asset-image img{max-height:70px;max-width:90%;object-fit:contain}
.personalization-choices{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.personalization-choices legend{font-size:13px;margin-bottom:10px}.personalization-choices label{display:flex;align-items:center;gap:7px;border:1px solid var(--line-strong);border-radius:7px;padding:10px;font-size:12px;cursor:pointer}.personalization-choices label:has(input:checked){border-color:#ef7765;background:#303a32}.personalization-choices input{accent-color:#ef7765}.personalization-choices i{width:14px;height:14px;border-radius:50%;border:1px solid #fff5}
.personalization-preview{position:sticky;top:24px;display:grid;gap:14px}.personalization-preview-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.personalization-preview-heading strong{font-size:13px}.personalization-preview-heading select{font:inherit;font-size:12px;max-width:180px;padding:9px;border-radius:6px;background:var(--panel);color:var(--text);border:1px solid var(--line-strong)}
.personalization-preview-canvas{border-radius:12px;padding:24px;border:1px solid var(--line-strong);color:#f4f2ed;overflow-wrap:anywhere}.personalization-preview-canvas h3{font-size:24px;margin:24px 0 12px}.personalization-preview-canvas p{font-size:13px;line-height:1.7}.personalization-preview-logo{max-width:160px;max-height:65px;object-fit:contain}.personalization-preview-photo{position:relative;overflow:hidden;border-radius:7px;margin:20px 0}.personalization-preview-photo>img{width:100%;height:220px;object-fit:cover;display:block}.personalization-preview-watermark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:15px;color:#fff;font-size:20px;font-weight:700;text-shadow:0 1px 4px #000;overflow-wrap:anywhere}.personalization-preview-watermark.bottom{align-items:flex-end;justify-content:flex-end;font-size:13px}.personalization-preview-watermark img{max-width:45%;max-height:70px;object-fit:contain}.personalization-preview-button{background:var(--preview-action);color:white;display:block;padding:12px;border-radius:6px;text-align:center;font-size:13px}.personalization-preview-text{white-space:pre-line}
.personalization-savebar{position:sticky;bottom:12px;padding:16px;border:1px solid var(--line-strong);border-radius:10px;background:#19221f;z-index:4;display:flex;gap:12px;align-items:center;flex-wrap:wrap;box-shadow:0 8px 20px #0003}.personalization-savebar p{flex:1 1 100%;font-size:13px;margin:0;color:var(--muted)}.personalization-savebar button{min-height:44px}.personalization-view input:disabled{opacity:.5}
@media(max-width:1100px){.personalization-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:850px){.personalization-layout{grid-template-columns:1fr}.personalization-preview{position:static;grid-row:1}.personalization-preview-photo>img{height:170px}.personalization-preview-canvas{padding:20px}.personalization-section{padding:20px}}
@media(max-width:430px){.personalization-assets{grid-template-columns:1fr}.personalization-savebar button{flex:1 1 100%}}

.personalization-section[hidden]{display:none}
.personalization-tabs{display:flex;gap:8px;flex-wrap:wrap}
.personalization-tabs button,.personalization-view .secondary-button{border:1px solid #59645d;background:transparent;color:#f4f2ed;padding:11px 14px;border-radius:7px;font:inherit;font-size:13px;cursor:pointer;min-height:42px;transition:background .18s,border-color .18s}
.personalization-tabs button[aria-selected=true]{background:#f4f2ed;color:#19221f;border-color:#f4f2ed}
.personalization-tabs button:hover,.personalization-view .secondary-button:hover{border-color:#ef7765}
.personalization-view .primary-button{background:#c43726;color:#fff;border:0;border-radius:7px;font:inherit;font-size:14px;padding:12px 18px;cursor:pointer;transition:background .18s}
.personalization-view .primary-button:hover{background:#a62c1e}
.personalization-view button:disabled{opacity:.45;cursor:default}
.personalization-view :focus-visible{outline:2px solid #ef7765;outline-offset:3px}
.personalization-asset input::file-selector-button{background:#f4f2ed;border:0;border-radius:4px;color:#19221f;padding:8px 10px;margin-right:8px;font:inherit;cursor:pointer}
@media(prefers-reduced-motion:reduce){.personalization-view button{transition:none}}
@media(max-width:850px){.personalization-preview{grid-row:auto}.personalization-savebar{position:static}.personalization-layout{gap:24px}}

/* Email models follow the photographer's workflow. */
.email-template-list{display:grid;border:1px solid var(--select-line,#34423b);border-radius:10px;overflow:hidden;margin:18px 0}
.email-template-option{display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;width:100%;padding:16px!important;background:transparent!important;border:0!important;border-bottom:1px solid #34423b!important;border-radius:0!important;color:inherit!important;font:inherit;cursor:pointer}
.email-template-option:last-child{border-bottom:0!important}
.email-template-option[aria-pressed=true]{background:#293b32!important;box-shadow:inset 3px 0 #ef7765;color:#fff!important}
.email-template-option:hover{background:#24342c!important}
.email-template-option:focus-visible{outline:2px solid #ef7765;outline-offset:-3px}
.email-unavailable{margin-top:24px;color:#acb9af;font-size:13px;line-height:1.6}
.email-unavailable summary{cursor:pointer}
.email-preview-subject{font-size:14px!important;line-height:1.5;color:#f4f2ed!important;overflow-wrap:anywhere}
.email-preview-frame{width:100%;height:600px;border:0;border-radius:8px;background:#050505}
.personalization-preview-canvas:has(.email-preview-frame){padding:12px}
@media(max-width:760px){.email-preview-frame{height:620px}.email-template-option{font-size:14px;padding:14px!important}}

/* Editor de e-mail em modal */
.modal-card.email-editor-modal{width:min(1100px,calc(100vw - 32px));max-width:1100px;padding:0;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;background:#19221f;color:#f4f2ed}
.email-editor-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #ffffff20}
.email-editor-header h2{font-size:21px;margin:4px 0 0}.email-editor-header .eyebrow{font-size:10px;color:#b6beb8}
.email-editor-body{display:grid;grid-template-columns:1fr 1fr;gap:28px;overflow:auto;padding:24px;min-height:0}
.email-editor-fields{display:flex;flex-direction:column;gap:16px;min-width:0}.email-editor-fields textarea{resize:vertical;min-height:90px}.email-editor-fields textarea[name=emailIntro]{min-height:190px}
.email-editor-variables{display:flex;flex-wrap:wrap;gap:8px}.email-editor-variables button{padding:8px 12px;font-size:12px}.email-editor-signature-toggle{display:flex;align-items:center;gap:10px;font-size:14px}.email-editor-signature-toggle input{width:auto}
.email-editor-preview{min-width:0}.email-editor-preview h3{font-size:14px;margin:0 0 12px}.email-editor-preview .email-preview-frame{height:420px}
.email-editor-footer{display:flex;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #ffffff20}.email-editor-footer [role=status]{flex:1;font-size:12px;color:#ef7765;margin:0}
@media(max-width:760px){.modal-card.email-editor-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.email-editor-header{padding:16px}.email-editor-header h2{font-size:18px}.email-editor-body{grid-template-columns:1fr;padding:16px;gap:24px}.email-editor-footer{flex-wrap:wrap;padding:12px;gap:8px}.email-editor-footer [role=status]{flex-basis:100%;order:-1}.email-editor-footer button{flex:1;font-size:12px;padding:10px 8px}}
.email-editor-modal .secondary-button{appearance:none;background:transparent;color:#f4f2ed;border:1px solid #68716a;border-radius:7px;padding:10px 14px;font:inherit;cursor:pointer}
.email-editor-modal .secondary-button:hover{background:#ffffff0c;border-color:#ef7765}.email-editor-modal button:focus-visible{outline:2px solid #ef7765;outline-offset:3px}.email-editor-header>button{min-width:36px;min-height:36px;padding:4px!important;font-size:24px!important}.email-editor-variables .secondary-button{font-size:12px;padding:8px 12px}.email-editor-modal button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){.email-editor-footer .secondary-button{padding:10px 8px;font-size:12px}}

/* Escala compacta do painel: leitura, imagens e densidade por dispositivo. */
.app-shell{font-size:14px;line-height:1.5}
@media(min-width:981px){.admin-sidebar{width:216px;padding-inline:10px}.admin-sidebar-brand{padding-inline:12px}.admin-sidebar-nav{padding-inline:4px}}
.view-root{padding:24px 28px 40px}
.view-header{margin-bottom:18px}.view-header h1,.page-header h1{font-size:24px;line-height:1.25}.view-header p,.page-header p{font-size:14px;line-height:1.5}
.admin-sidebar-brand{min-height:84px;padding:18px 16px}.admin-sidebar-mark{width:32px;height:32px;flex-shrink:0}.admin-sidebar-nav{padding:14px 10px;gap:4px}.admin-sidebar-nav a{font-size:14px;min-height:44px;padding:8px 10px;border-radius:8px}.admin-sidebar-footer{padding:12px}
.credits-summary{padding:16px 20px;gap:20px;margin-bottom:16px}.credits-summary h2{font-size:17px}.credits-summary p,.credits-summary a{font-size:14px;line-height:1.5}.credits-balance{font-size:32px}.credits-summary .eyebrow{font-size:11px}.credits-notice{padding:12px 14px;font-size:14px}
.credits-section-heading{margin-top:24px;gap:16px}.credits-section-heading h2{font-size:22px;line-height:1.3;margin:4px 0 6px}.credits-section-heading p:not(.eyebrow){font-size:14px;line-height:1.5}.credits-packages{gap:12px;margin:18px 0 24px}
.credits-package-detailed{padding:18px 16px;border-radius:10px}.credits-package-best{padding:17px 15px}.credits-package-top{min-height:52px;gap:6px}.credits-package-top h3{font-size:17px}.credits-package-detailed .credits-package-description{margin:8px 0 14px;min-height:40px;font-size:13px}.credits-quota{padding-bottom:14px;gap:2px}.credits-quota strong{font-size:27px}.credits-package-detailed .credits-price{font-size:26px;margin:14px 0 6px}.credits-package-detailed .credits-unit-price{margin:8px 0 14px}.credits-package-features{padding-top:14px;margin-top:14px;gap:8px}.credits-explainer{padding:20px;margin-bottom:24px}.credits-explainer h2{font-size:20px}
.project-card{padding:12px;gap:8px;border-radius:12px}.project-card h3{font-size:16px;line-height:1.35}.board-column{padding:14px}.board-column h2{font-size:16px}
.gallery-summary-card{grid-template-columns:minmax(180px,26%) minmax(0,1fr);border-radius:12px;margin-bottom:18px}.gallery-summary-cover{min-height:240px}.gallery-summary-body{padding:20px;gap:12px}.gallery-summary-body h2,.gallery-summary-top h1,.gallery-summary-top h2{font-size:24px;line-height:1.3}.gallery-summary-meta .stat-card,.gallery-summary-meta>*{min-height:64px}.gallery-clients-panel{padding:18px}.gallery-clients-panel h2,.panel-card h2{font-size:18px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px}
.profile-avatar{width:64px;height:64px;font-size:28px;border-radius:12px}.profile-hero h1{font-size:26px}.personalization-section{padding:20px}.personalization-section h2{font-size:18px}.personalization-preview-photo>img{height:168px}.personalization-preview-canvas{padding:18px}.personalization-preview-canvas h3{font-size:20px;margin:16px 0 10px}.personalization-preview-logo{max-width:130px;max-height:48px}
@media(max-width:980px){.view-root{padding:20px 18px 32px}.gallery-summary-card{grid-template-columns:1fr}.gallery-summary-cover{min-height:0;height:180px}.gallery-summary-body{padding:18px}.admin-sidebar{width:min(82vw,260px)}}
@media(max-width:600px){.app-shell{font-size:16px}.view-root{padding:16px 14px 28px}.view-header h1,.page-header h1{font-size:22px}.credits-summary{padding:16px}.credits-summary>div+div{margin-top:12px}.credits-balance{font-size:28px}.credits-section-heading{margin-top:20px}.credits-section-heading h2{font-size:20px}.credits-payment-note{margin-top:8px}.credits-package-detailed{padding:16px}.credits-package-top{min-height:0}.credits-package-detailed .credits-package-description{min-height:0;margin-bottom:12px}.credits-quota strong{font-size:26px}.credits-package-detailed .credits-price{font-size:24px}.credits-steps{gap:16px}.gallery-summary-cover{height:144px}.gallery-summary-body h2,.gallery-summary-top h1,.gallery-summary-top h2{font-size:22px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}.personalization-section{padding:16px}.personalization-preview-photo>img{height:144px}.personalization-preview-canvas h3{font-size:18px}.app-shell input:not([type=checkbox]):not([type=radio]),.app-shell select,.app-shell textarea{font-size:16px}.app-shell button,.app-shell .primary-button{min-height:44px}}

/* Busca e ações do cadastro de clientes */
.clients-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:0 0 18px}.clients-filters .field{margin:0}.clients-filters input,.clients-filters select{min-height:44px}.clients-table td{overflow-wrap:anywhere}.client-name{text-align:left;font-weight:650}.client-options{min-width:90px}.client-options summary{cursor:pointer;min-height:44px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:8px}.client-options summary:focus-visible{outline:2px solid #ef7765;outline-offset:3px}.client-options-list{display:grid;gap:6px;padding-top:8px;min-width:145px}.client-options-list button{text-align:left;white-space:normal}.client-editor{display:grid;gap:14px}.client-editor h2,.client-editor p{margin:0}.client-editor>p{font-size:14px;color:var(--muted)}[data-clients-list]>.pagination-controls{margin-top:18px;flex-wrap:wrap}[data-clients-list][aria-busy=true]{opacity:.65}
@media(max-width:600px){.clients-filters>*{flex:1 1 140px;min-width:0}.clients-filters input,.clients-filters select{width:100%}.client-editor{max-height:calc(100dvh - 24px);overflow:auto}.client-editor input{font-size:16px}.client-options-list{min-width:0}.clients-table .client-name{padding:0;min-height:44px}}

.clients-create{margin-bottom:18px}.clients-create>summary{display:inline-flex;cursor:pointer;min-height:44px;align-items:center;padding:10px 16px;border:1px solid #ef7765;border-radius:8px;color:#ef7765;font-weight:650}.clients-create>summary:focus-visible{outline:2px solid #ef7765;outline-offset:3px}.clients-create[open]>summary{margin-bottom:12px}

/* Referral program: compact form and sharing controls. */
.referral-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}.referral-stats>div{background:var(--panel);border:1px solid var(--line-strong);border-radius:12px;padding:18px 20px;display:grid;gap:8px}.referral-stats span{color:var(--muted);font-size:13px}.referral-stats strong{font-size:28px;line-height:1.1}.referral-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.referral-card{min-width:0;padding:24px;border:1px solid var(--line-strong);background:var(--panel);border-radius:12px}.referral-card h2,.referral-rules h2,.referral-history h2{font-size:19px;margin:0 0 12px}.referral-card p,.referral-rules p{line-height:1.6}.referral-card form{display:grid;gap:10px}.referral-card textarea,.referral-card input{width:100%;box-sizing:border-box;border:1px solid var(--line-strong);border-radius:8px;padding:12px;font:inherit;background:var(--panel);color:var(--text)}.referral-card textarea{resize:vertical;min-height:100px}.referral-card input{margin:8px 0 12px}.referral-help,.referral-feedback{font-size:13px;margin:0;color:var(--muted)}.referral-feedback{margin-top:10px;overflow-wrap:anywhere}.referral-feedback:empty{display:none}.referral-result{display:block;margin-top:8px}.referral-social{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.referral-rules{margin:24px 0;padding:20px 24px;background:var(--panel-soft);border-radius:12px}.referral-rules p:last-child{margin-bottom:0}.referral-history{margin-top:28px}
@media(max-width:700px){.referral-columns{grid-template-columns:1fr;gap:16px}.referral-card{padding:18px}.referral-stats{gap:8px;margin-bottom:18px}.referral-stats>div{padding:12px 10px}.referral-stats span{font-size:12px}.referral-stats strong{font-size:24px}.referral-card textarea,.referral-card input{font-size:16px}.referral-rules{padding:18px}}

.referral-card .secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--line-strong);border-radius:8px;background:var(--panel-soft);color:var(--text);font:inherit;text-decoration:none;cursor:pointer}.referral-card .secondary-button:hover{background:var(--panel-lift)}.referral-card input:focus-visible,.referral-card textarea:focus-visible,.referral-card button:focus-visible,.referral-card a:focus-visible{outline:2px solid #ef7765;outline-offset:3px}
/* Checkout embedded in the credit workspace. */
.credits-checkout{scroll-margin-top:88px;border:1px solid var(--line-strong);border-top:3px solid #ef7765;padding:28px;margin:28px 0;background:var(--panel-soft);border-radius:16px;max-width:760px;color:var(--text)}
.credits-checkout[hidden],.checkout-card-fields[hidden]{display:none}
.checkout-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.checkout-heading h2{margin:4px 0 0;font-size:24px;line-height:1.3}
.checkout-heading .eyebrow{margin:0}
.checkout-total{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;margin-bottom:20px;border-bottom:1px solid var(--line-strong);font-size:16px}
.checkout-total strong{font-size:28px;white-space:nowrap}
.credits-checkout .credit-form{display:grid;grid-template-columns:1fr;gap:18px;max-width:none}
.credits-checkout label{display:grid;gap:8px;color:var(--text);font-size:14px;font-weight:600;min-width:0}
.credits-checkout input,.credits-checkout select,.credits-checkout textarea{width:100%;min-width:0;box-sizing:border-box;font-size:16px}
.checkout-card-fields{display:grid;gap:18px;border:0;border-top:1px solid var(--line-strong);padding:20px 0 0;margin:0;min-width:0;margin:0}
.checkout-card-fields legend{font-weight:700;padding-right:12px}
.checkout-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:0}
.checkout-security{font-size:13px;line-height:1.65;color:var(--muted);margin:0}
.checkout-body{display:grid;gap:16px}.checkout-body h3,.checkout-body p{margin:0}
.checkout-body>button{justify-self:start}.checkout-body textarea{resize:vertical;font-family:monospace;overflow-wrap:anywhere}
.checkout-qr{display:block;background:white;padding:12px;border-radius:10px;max-width:100%;height:auto;box-sizing:border-box}
.checkout-feedback{color:var(--text);line-height:1.6;margin:16px 0}.checkout-feedback:empty{display:none}
.checkout-success{display:grid;gap:16px;padding:12px 0}.checkout-success h3{color:#9bd9ba}
@media(max-width:600px){.credits-checkout{padding:20px 16px}.checkout-heading h2{font-size:21px}.checkout-heading>button{padding:9px 12px}.checkout-total strong{font-size:24px}.checkout-field-pair{gap:12px}.checkout-qr{justify-self:center}.checkout-body>button{width:100%;justify-self:stretch}}

.select-admin .credits-checkout .credit-form label{margin:0;display:grid;gap:8px}
.select-admin .credits-checkout .credit-form input,.select-admin .credits-checkout .credit-form select{margin-top:0;font-size:16px}
.credits-checkout>.checkout-security{margin-top:16px}
@media(max-width:600px){.credit-form>.checkout-field-pair{grid-template-columns:1fr}}

.select-admin .credits-checkout [hidden]{display:none!important}

#credit-checkout input,#credit-checkout select,#credit-checkout textarea{font-size:16px}

#credit-checkout .checkout-deadline{display:grid;gap:6px;padding:16px 0;border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong)}
#credit-checkout .checkout-deadline strong{font-size:26px;font-variant-numeric:tabular-nums;line-height:1.3}
#credit-checkout .checkout-deadline small{color:var(--muted);line-height:1.5}

/* Área Acervo: produto de armazenamento dentro do ecossistema Select. */
.acervo-product-view{max-width:1040px;margin:0 auto;display:grid;gap:18px}
.acervo-product-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);align-items:center;min-height:360px;padding:48px;border:1px solid #ffffff20;border-radius:20px;background:radial-gradient(circle at 88% 18%,#ef77652e,transparent 34%),linear-gradient(135deg,#17211e 0%,#101715 100%);color:#f7f4ee;box-shadow:0 24px 70px #07100d26}
.acervo-product-hero:after{content:"";position:absolute;inset:auto -80px -130px auto;width:330px;height:330px;border:1px solid #ef77652e;border-radius:50%;z-index:-1}
.acervo-product-copy{max-width:620px}.acervo-product-copy .eyebrow{margin:0 0 12px;color:#ef9d90;letter-spacing:.15em}.acervo-product-copy h1{margin:0;font-size:clamp(36px,5vw,58px);line-height:1.02;letter-spacing:-.035em}.acervo-product-copy>p:not(.eyebrow){max-width:570px;margin:18px 0 0;color:#cbd2ce;font-size:17px;line-height:1.65}
.acervo-product-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.acervo-product-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;text-decoration:none}.acervo-product-actions .secondary-button{color:#f7f4ee;border-color:#ffffff42;background:#ffffff08}.acervo-product-actions .secondary-button:hover{background:#ffffff12}
.acervo-stack-visual{position:relative;width:210px;height:220px;justify-self:center}.acervo-stack-card{position:absolute;inset:18px 12px;display:grid;place-items:center;border-radius:20px;border:1px solid #ffffff25;background:#293530;box-shadow:0 22px 50px #0005}.acervo-stack-card-back{transform:rotate(10deg) translate(14px,-2px);background:#394641}.acervo-stack-card-middle{transform:rotate(-7deg) translate(-12px,6px);background:#222d29}.acervo-stack-card-front{background:linear-gradient(145deg,#ef7765,#c95243);transform:translateY(10px)}.acervo-stack-card-front svg{width:76px;height:76px;stroke:#fff;stroke-width:1.2}
.acervo-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.acervo-info-card{display:flex;gap:16px;align-items:flex-start;padding:24px;border:1px solid var(--line-strong);border-radius:14px;background:var(--panel)}.acervo-info-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:#ef77651a;color:#ef7765}.acervo-info-icon svg{width:24px;height:24px}.acervo-info-card small{display:block;margin-bottom:6px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.12em}.acervo-info-card strong{display:block;font-size:18px}.acervo-info-card p{margin:7px 0 0;color:var(--muted);line-height:1.55}.acervo-security-note{margin:0;padding:2px 4px;color:var(--muted);font-size:13px;line-height:1.6}
.product-only .admin-sidebar-nav{padding-top:24px}.product-only .admin-sidebar-nav a{font-size:15px}.product-only .admin-sidebar-footer .admin-sidebar-user{pointer-events:none}.product-only .admin-bottomnav{grid-template-columns:repeat(2,1fr)}.product-only .admin-bottomnav #mobile-more{display:none}
@media(max-width:760px){.acervo-product-view{gap:14px}.acervo-product-hero{grid-template-columns:1fr;min-height:0;padding:28px 22px}.acervo-product-copy h1{font-size:38px}.acervo-product-copy>p:not(.eyebrow){font-size:16px}.acervo-stack-visual{order:-1;width:124px;height:118px;justify-self:start;margin:0 0 18px 8px}.acervo-stack-card{inset:10px 8px;border-radius:14px}.acervo-stack-card-front svg{width:42px;height:42px}.acervo-product-actions{display:grid}.acervo-product-actions a{width:100%}.acervo-product-grid{grid-template-columns:1fr;gap:12px}.acervo-info-card{padding:18px}.acervo-security-note{font-size:12px}.product-only .admin-bottomnav a{min-height:60px}}

.acervo-workspace{max-width:1120px;margin:0 auto;display:grid;gap:18px}.acervo-workspace-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:4px 2px 6px}.acervo-workspace-head .eyebrow{margin:0 0 8px;color:#d95849;letter-spacing:.14em}.acervo-workspace-head h1{margin:0;font-size:clamp(32px,4vw,48px);line-height:1.02;letter-spacing:-.035em}.acervo-workspace-head p:not(.eyebrow){margin:11px 0 0;color:var(--muted);font-size:15px}.acervo-plan-pill{display:grid;min-width:110px;padding:12px 16px;border:1px solid #d9584933;border-radius:14px;background:#d958490b;text-align:right}.acervo-plan-pill small{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.14em}.acervo-plan-pill strong{margin-top:2px;color:#c8473a;font-size:20px}.acervo-browser{min-height:420px;overflow:hidden;border:1px solid var(--line-strong);border-radius:18px;background:var(--panel);box-shadow:0 18px 55px #1017150d}.acervo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}.acervo-breadcrumbs{display:flex;align-items:center;min-width:0;overflow-x:auto;gap:7px;scrollbar-width:none}.acervo-breadcrumbs::-webkit-scrollbar{display:none}.acervo-breadcrumbs button{border:0;padding:6px 2px;background:none;color:var(--text);font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}.acervo-breadcrumbs button:not(:last-child){color:var(--muted)}.acervo-breadcrumbs span{color:var(--muted-light)}.acervo-toolbar-actions{display:flex;flex:0 0 auto;gap:9px}.acervo-toolbar-actions button{min-height:40px;padding:0 15px}.acervo-feedback{margin:12px 18px 0}.acervo-file-list{display:grid}.acervo-file-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px;padding:9px 18px;border-bottom:1px solid var(--line);transition:background .18s ease}.acervo-file-row:hover{background:var(--surface-soft)}.acervo-file-main{display:flex;align-items:center;min-width:0;flex:1;gap:14px;border:0;padding:0;background:none;color:inherit;text-align:left;cursor:pointer}.acervo-file-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #d9584926;border-radius:12px;background:#d958490d;color:#c8473a;font-size:9px;font-weight:850;letter-spacing:.04em}.acervo-file-main.is-folder .acervo-file-mark{position:relative;border:0;background:#f2b748;color:#6b4812}.acervo-file-main.is-folder .acervo-file-mark:before{content:"";position:absolute;inset:11px 7px 7px;border-radius:3px;background:#e7a62e}.acervo-file-main.is-folder .acervo-file-mark:after{content:"";position:absolute;left:8px;top:7px;width:17px;height:8px;border-radius:3px 3px 0 0;background:#e7a62e}.acervo-file-copy{display:grid;min-width:0;gap:5px}.acervo-file-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.acervo-file-copy small{color:var(--muted);font-size:12px}.acervo-row-action{border:1px solid var(--line-strong);border-radius:9px;padding:8px 12px;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:750;cursor:pointer}.acervo-row-action:hover{border-color:#d9584966;color:#c8473a;background:#d9584908}.acervo-list-footer{padding:14px 18px;color:var(--muted);font-size:12px}.acervo-empty-state{display:grid;place-items:center;align-content:center;min-height:330px;padding:40px;text-align:center}.acervo-empty-state h2{margin:16px 0 7px;font-size:19px}.acervo-empty-state p{max-width:420px;margin:0 0 20px;color:var(--muted);line-height:1.55}.acervo-empty-folder{position:relative;width:62px;height:44px;border-radius:7px;background:#e7a62e}.acervo-empty-folder:before{content:"";position:absolute;left:3px;top:-10px;width:29px;height:13px;border-radius:6px 6px 0 0;background:#e7a62e}.acervo-empty-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#d9584914;color:#c8473a;font-size:22px;font-weight:850}

@media(max-width:760px){.acervo-workspace{gap:14px}.acervo-workspace-head{align-items:flex-start}.acervo-workspace-head h1{font-size:34px}.acervo-workspace-head p:not(.eyebrow){font-size:14px;line-height:1.5}.acervo-plan-pill{min-width:82px;padding:10px 12px}.acervo-plan-pill strong{font-size:17px}.acervo-browser{min-height:390px;border-radius:14px}.acervo-toolbar{display:grid;padding:13px}.acervo-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.acervo-toolbar-actions button{padding:0 10px;font-size:12px}.acervo-file-row{min-height:68px;padding:8px 13px}.acervo-file-mark{flex-basis:40px;width:40px;height:40px}.acervo-row-action{padding:7px 9px}.acervo-security-note{padding:0 2px}}

.acervo-setup{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border:1px solid var(--line-strong);border-radius:16px;background:var(--panel)}.acervo-setup h2{margin:4px 0 7px;font-size:21px}.acervo-setup p:not(.eyebrow){margin:0;color:var(--muted)}.acervo-setup-status{flex:0 0 auto;padding:8px 12px;border-radius:999px;background:#e8b64a1f;color:#bd8421;font-size:12px;font-weight:800}.acervo-setup-status.is-active{background:#4ba77b20;color:#58b98a}.acervo-transfer{min-width:270px}.acervo-transfer summary{cursor:pointer;font-weight:750}.acervo-transfer-form{display:grid;gap:13px;margin-top:18px}.acervo-transfer-form label{display:grid;gap:7px;font-size:13px;font-weight:700}.acervo-transfer-form :is(input,select){width:100%;box-sizing:border-box}.acervo-transfer-latest{margin-top:14px!important;font-size:12px}.product-packages{grid-template-columns:repeat(3,minmax(0,1fr))}.product-checkout-form{display:grid;gap:16px;max-width:520px}.product-checkout-form label{display:grid;gap:8px}.product-pix-qr{display:block;width:220px;max-width:100%;margin:18px 0;border-radius:12px;background:#fff;padding:10px}.product-checkout textarea{display:block;width:100%;box-sizing:border-box;margin:14px 0;resize:none}
@media(max-width:900px){.product-packages{grid-template-columns:repeat(2,minmax(0,1fr))}.acervo-setup{align-items:flex-start;flex-direction:column}.acervo-transfer{width:100%}}@media(max-width:600px){.product-packages{grid-template-columns:1fr}.acervo-setup{padding:18px}}

/* Workspace do Acervo no Select. Implementação independente do produto Acervo original. */
.acervo-command,.acervo-path-search,.acervo-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line)}
.acervo-command-summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.acervo-command-summary>*{padding:7px 10px;border:1px solid var(--line-strong);border-radius:9px;font-size:12px}.acervo-linked{color:#bd8cff}.acervo-path-search .acervo-breadcrumbs{flex:1;padding:12px;border:1px solid var(--line-strong);border-radius:11px}.acervo-path-search input{width:min(480px,50%);min-height:44px}.acervo-controls{justify-content:flex-start}.acervo-controls select{min-height:40px}.acervo-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.acervo-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface-soft)}.acervo-select{position:absolute;z-index:2;top:12px;left:12px}.acervo-card-preview{grid-column:1/-1;display:grid;place-items:center;min-height:150px;border:1px solid var(--line);border-radius:11px;background:linear-gradient(145deg,#ffffff08,#d9584908);color:inherit;cursor:pointer}.acervo-card-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:#d9584917;color:#e46b5b;font-size:11px;font-weight:800}.acervo-card.is-folder .acervo-card-icon{font-size:38px;background:#e7a62e18}.acervo-card-copy{display:grid;min-width:0;gap:5px}.acervo-card-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acervo-card-copy small{color:var(--muted)}.acervo-file-grid.is-list{grid-template-columns:1fr}.acervo-file-grid.is-list .acervo-card{grid-template-columns:80px 1fr auto;align-items:center}.acervo-file-grid.is-list .acervo-card-preview{grid-column:auto;min-height:64px}.acervo-selection{margin:12px 18px 0;padding:10px 12px;border-radius:9px;background:#d9584915;color:#d95849;font-weight:700}
.acervo-load-more{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 0 4px;color:var(--muted);font-size:12px}.acervo-load-more .secondary-button{min-height:36px;padding:7px 12px}
.acervo-explorer{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:12px;padding:12px}.acervo-locations-host{min-width:0}.acervo-content{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.acervo-content .acervo-controls{min-height:58px;padding:9px 12px;gap:8px}.acervo-content .acervo-controls :is(button,select){min-height:36px;padding:0 11px;font-size:12px}.acervo-content .acervo-file-grid{grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px;padding:12px}.acervo-content .acervo-card{padding:11px;border-radius:12px}.acervo-content .acervo-card-preview{min-height:112px;border-radius:10px}.acervo-content .acervo-card-icon{width:48px;height:48px;border-radius:13px}.acervo-content .acervo-card-icon svg{width:24px;height:24px}.acervo-content .acervo-card-copy strong{font-size:13px}.acervo-content .acervo-card-copy small{font-size:11px}.acervo-content .acervo-row-action{min-height:34px;padding:6px 10px;font-size:11px}
.acervo-browser{position:relative}.acervo-browser.is-directory-loading .acervo-explorer{pointer-events:none;opacity:.72;filter:saturate(.72);transition:opacity .16s ease,filter .16s ease}.acervo-navigation-status{position:absolute;z-index:8;top:132px;right:18px;display:flex;align-items:center;gap:9px;min-height:38px;padding:0 13px;border:1px solid var(--line-strong);border-radius:999px;background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--text);box-shadow:0 10px 30px #0005;backdrop-filter:blur(12px);font-size:12px;font-weight:750}.acervo-navigation-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.22);border-top-color:var(--select-accent,#bd8cff);border-radius:50%;animation:acervo-directory-spin .7s linear infinite}.acervo-tree-item.is-pending,.acervo-tree-root.is-pending{border-color:rgba(var(--select-accent-rgb),.55)!important;background:rgba(var(--select-accent-rgb),.1)!important}.acervo-tree-item.is-pending svg:first-child{animation:acervo-folder-nudge .65s ease infinite alternate}@keyframes acervo-directory-spin{to{transform:rotate(360deg)}}@keyframes acervo-folder-nudge{to{transform:translateX(3px)}}
.studio-onboarding{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding:22px;border:1px solid #d9584940;border-radius:16px;background:#d958490b}.studio-onboarding h2,.studio-onboarding p{margin:5px 0}.finance-view{display:grid;gap:24px}.finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.finance-summary article,.finance-history{padding:22px;border:1px solid var(--line-strong);border-radius:16px;background:var(--panel)}.finance-summary small{color:var(--muted);font-weight:800;letter-spacing:.1em}.finance-summary strong{display:block;margin:10px 0 4px;font-size:28px}.finance-summary p{margin:0;color:var(--muted)}.finance-order{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;padding:15px 0;border-top:1px solid var(--line)}.finance-order time{display:block;margin-top:4px;color:var(--muted);font-size:12px}
@media(max-width:900px){.acervo-explorer{grid-template-columns:1fr}.acervo-locations-host{order:0}.acervo-content{order:1}.acervo-navigation-status{top:132px}}@media(max-width:760px){.acervo-command,.acervo-path-search,.acervo-controls{align-items:stretch;flex-direction:column}.acervo-path-search input{width:100%}.acervo-controls select,.acervo-controls button{width:100%}.acervo-file-grid{grid-template-columns:1fr;padding:12px}.acervo-explorer{padding:9px;gap:9px}.acervo-content .acervo-controls{display:grid;grid-template-columns:1fr 1fr}.acervo-content .acervo-file-grid{grid-template-columns:1fr}.acervo-navigation-status{position:sticky;top:8px;float:right;margin:8px 10px -46px}.studio-onboarding{align-items:stretch;flex-direction:column}.finance-summary{grid-template-columns:1fr}.finance-order{grid-template-columns:1fr auto}.finance-order>strong:last-child{grid-column:2;grid-row:1}}
@media(prefers-reduced-motion:reduce){.acervo-navigation-spinner,.acervo-tree-item.is-pending svg:first-child{animation:none}.acervo-browser.is-directory-loading .acervo-explorer{transition:none}}

/* Pré-visualização e densidade do Acervo. Mantém os três tamanhos do Acervo original. */
.acervo-content .acervo-controls{flex-wrap:wrap}
.acervo-size-controls{display:inline-flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.025)}
.acervo-content .acervo-size-button{display:grid;place-items:center;width:34px;min-width:34px;min-height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.acervo-content .acervo-size-button:hover{color:var(--text);transform:translateY(-1px)}
.acervo-content .acervo-size-button[aria-pressed="true"]{background:rgba(var(--select-accent-rgb),.16);color:var(--select-accent,#bd8cff);box-shadow:inset 0 0 0 1px rgba(var(--select-accent-rgb),.3)}
.acervo-size-glyph{display:grid;grid-template-columns:repeat(2,4px);gap:2px}
.acervo-size-glyph:before,.acervo-size-glyph:after{width:4px;height:4px;border:1px solid currentColor;border-radius:1px;content:"";box-shadow:6px 0 0 -1px currentColor}
.acervo-size-glyph.is-sm{transform:scale(.75)}
.acervo-size-glyph.is-lg{transform:scale(1.2)}
.acervo-content .acervo-file-grid{--acervo-thumb-min:160px;--acervo-thumb-ratio:16/11;grid-template-columns:repeat(auto-fill,minmax(var(--acervo-thumb-min),1fr))}
.acervo-content .acervo-file-grid.size-sm{--acervo-thumb-min:142px;--acervo-thumb-ratio:1/1}
.acervo-content .acervo-file-grid.size-md{--acervo-thumb-min:188px;--acervo-thumb-ratio:16/11}
.acervo-content .acervo-file-grid.size-lg{--acervo-thumb-min:252px;--acervo-thumb-ratio:16/10}
.acervo-content .acervo-card-preview{aspect-ratio:var(--acervo-thumb-ratio);min-height:0;overflow:hidden}
.acervo-content .acervo-card-preview.is-folder-preview{cursor:default;isolation:isolate;background:radial-gradient(circle at 50% 72%,rgba(var(--select-accent-rgb),.12),transparent 48%),linear-gradient(145deg,rgba(255,255,255,.045),rgba(var(--select-accent-rgb),.025))}.acervo-folder-host{display:grid;width:100%;height:100%;min-height:96px;place-items:center}.acervo-file-grid.is-list .acervo-folder-host{min-height:58px}.acervo-file-grid.is-list .archive-folder-button{transform:scale(.62)}
.acervo-card-image{display:block;width:100%;height:100%;object-fit:contain;background:#09090a;transition:transform .22s ease,filter .22s ease}
.acervo-card.is-previewable:hover .acervo-card-image{transform:scale(1.025);filter:brightness(1.06)}
.acervo-file-grid.is-list{--acervo-thumb-ratio:auto;grid-template-columns:1fr}
.acervo-file-grid.is-list .acervo-card-preview{aspect-ratio:auto}

/* Barra de filtros e exibição do Acervo. */
.acervo-content .acervo-controls{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding:8px 10px;scrollbar-width:none;background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(var(--select-accent-rgb),.025));backdrop-filter:blur(18px) saturate(135%)}.acervo-content .acervo-controls::-webkit-scrollbar{display:none}
.acervo-list-action-group,.acervo-filter-group{display:flex;align-items:center;gap:6px;flex:0 0 auto}.acervo-filter-group{padding-left:2px}.acervo-content .acervo-tool-button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.acervo-content .acervo-icon-button{display:grid;place-items:center;width:34px;min-width:34px;padding:0}
.acervo-toolbar-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:18px;height:18px}.acervo-toolbar-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.acervo-visible-toggle{display:flex;align-items:center;flex:0 0 auto;min-height:34px;gap:7px;padding:0 10px;border:1px solid var(--line-strong);border-radius:10px;background:color-mix(in srgb,var(--panel) 78%,transparent);color:var(--text);font-size:12px;font-weight:760;white-space:nowrap;cursor:pointer}.acervo-visible-toggle input{width:15px;height:15px;margin:0;accent-color:var(--select-accent,#bd8cff)}
.acervo-view-menu{position:relative;flex:0 0 auto}.acervo-view-menu:last-child{margin-left:auto}.acervo-control-trigger{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 9px;border:1px solid var(--line-strong);border-radius:10px;background:color-mix(in srgb,var(--panel) 78%,transparent);color:var(--text);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.acervo-control-trigger strong{font-weight:800}.acervo-control-trigger .acervo-toolbar-icon:last-child{width:13px;margin-left:2px;transition:transform .2s cubic-bezier(.2,.8,.2,1)}.acervo-control-trigger[aria-expanded="true"]{border-color:rgba(var(--select-accent-rgb),.55);box-shadow:0 0 0 3px rgba(var(--select-accent-rgb),.1)}.acervo-control-trigger[aria-expanded="true"] .acervo-toolbar-icon:last-child{transform:rotate(180deg)}
body.select-admin .acervo-control-popover{position:fixed;inset:unset;top:var(--acervo-menu-top);left:var(--acervo-menu-left);z-index:2147483000;display:none;width:min(220px,calc(100vw - 24px));max-height:min(320px,calc(100vh - 24px));overflow:auto;margin:0;padding:6px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:#0b100e!important;color:#f7f8f7;box-shadow:0 22px 60px rgba(0,0,0,.62),inset 0 1px rgba(255,255,255,.06);opacity:0;transform:translateY(-7px) scale(.975);transform-origin:top center;transition:opacity .18s ease,transform .24s cubic-bezier(.2,.85,.25,1),overlay .18s allow-discrete,display .18s allow-discrete;transition-behavior:allow-discrete;backdrop-filter:none!important}.acervo-control-popover::backdrop{background:transparent}body.select-admin .acervo-control-popover:popover-open{display:grid;opacity:1;transform:none}@starting-style{body.select-admin .acervo-control-popover:popover-open{opacity:0;transform:translateY(-7px) scale(.975)}}body.select-admin .acervo-control-popover button{position:relative;min-height:36px;padding:0 32px 0 11px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:12px;font-weight:700;text-align:left;cursor:pointer;transition:background-color .16s ease,color .16s ease,transform .16s ease}body.select-admin .acervo-control-popover button:is(:hover,:focus-visible){outline:0;background:rgba(var(--select-accent-rgb),.14);color:var(--select-accent,#bd8cff);transform:translateX(2px)}body.select-admin .acervo-control-popover button[aria-checked="true"]{background:rgba(var(--select-accent-rgb),.18);color:var(--select-accent,#bd8cff)}body.select-admin .acervo-control-popover button[aria-checked="true"]::after{position:absolute;right:12px;top:50%;width:7px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;content:"";transform:translateY(-65%) rotate(-45deg);animation:acervo-menu-check .22s cubic-bezier(.2,.9,.25,1)}@keyframes acervo-menu-check{from{opacity:0;transform:translateY(-65%) rotate(-45deg) scale(.55)}to{opacity:1;transform:translateY(-65%) rotate(-45deg) scale(1)}}html[data-select-tone="clean"] body.select-admin .acervo-control-popover{border-color:rgba(28,24,36,.15);background:#fffdfa!important;color:#201d25;box-shadow:0 22px 55px rgba(37,30,48,.2),inset 0 1px rgba(255,255,255,.95)}
.acervo-columns{display:grid;grid-template-columns:minmax(0,1fr) 110px 150px 110px;gap:14px;padding:13px 18px 13px 118px;border-bottom:1px solid var(--line);color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.acervo-columns[hidden]{display:none}
.acervo-card-size,.acervo-card-updated{display:none;color:var(--muted);font-size:12px;font-style:normal}.acervo-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.acervo-content .acervo-card-actions .acervo-row-action{display:grid;place-items:center;width:36px;min-width:36px;height:36px;padding:0}.acervo-card-actions .acervo-toolbar-icon{width:17px;height:17px}
.acervo-file-grid.is-list{display:grid;grid-template-columns:1fr;gap:8px;padding:12px}.acervo-file-grid.is-list .acervo-card{grid-template-columns:32px 58px minmax(0,1fr) 110px 150px 110px;align-items:center;gap:14px;min-height:82px;padding:9px 10px}.acervo-file-grid.is-list .acervo-select{position:static;justify-self:center}.acervo-file-grid.is-list .acervo-card-preview{grid-column:auto;width:58px;height:58px;min-height:58px}.acervo-file-grid.is-list .acervo-card-copy small{display:none}.acervo-file-grid.is-list .acervo-card-size,.acervo-file-grid.is-list .acervo-card-updated{display:block}.acervo-file-grid.is-list .acervo-card-actions{display:flex}.acervo-file-grid.is-list .acervo-folder-host{min-height:54px}.acervo-file-grid.is-list .archive-folder-button{transform:scale(.55)}
.acervo-file-grid:not(.is-list) .acervo-card-actions{grid-column:2}.acervo-file-grid:not(.is-list) .acervo-share-button{display:none}
@media(max-width:760px){.acervo-command,.acervo-path-search{align-items:stretch;flex-direction:column}.acervo-content .acervo-controls{display:flex;flex-direction:row;align-items:center;padding:9px;overscroll-behavior-inline:contain}.acervo-content .acervo-controls :is(button,select){width:auto}.acervo-visible-toggle{min-width:max-content}.acervo-columns{grid-template-columns:minmax(0,1fr) 92px;padding-left:104px}.acervo-columns span:nth-child(2),.acervo-columns span:nth-child(3){display:none}.acervo-file-grid.is-list .acervo-card{grid-template-columns:28px 50px minmax(0,1fr) 82px;gap:9px}.acervo-file-grid.is-list .acervo-card-preview{width:50px;height:50px;min-height:50px}.acervo-file-grid.is-list .acervo-card-size,.acervo-file-grid.is-list .acervo-card-updated{display:none}.acervo-content .acervo-card-actions .acervo-row-action{width:34px;min-width:34px}.acervo-file-grid.is-list .acervo-share-button{display:none}}
@media(prefers-reduced-motion:reduce){.acervo-control-trigger .acervo-toolbar-icon:last-child,body.select-admin .acervo-control-popover,body.select-admin .acervo-control-popover button{transition:none}.acervo-control-popover button[aria-checked="true"]::after{animation:none}}
.acervo-file-grid.is-list .acervo-card-image{height:64px}
.acervo-file-lightbox .photo-lightbox-actions{bottom:max(20px,env(safe-area-inset-bottom))}
@media(max-width:760px){.acervo-content .acervo-size-controls{width:auto;justify-self:stretch}.acervo-content .acervo-size-button{width:100%;min-width:32px}.acervo-content .acervo-file-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--acervo-thumb-min)),1fr))}}
@media(prefers-reduced-motion:reduce){.acervo-content .acervo-size-button,.acervo-card-image{transition:none}.acervo-content .acervo-size-button:hover,.acervo-card.is-previewable:hover .acervo-card-image{transform:none}}
