/*
 * Sistema visual do Acervo aplicado ao Select.
 * Esta folha e independente: nao importa codigo nem assets do produto Acervo.
 */
.select-admin {
  color-scheme: dark;
  --gold: #d4af37;
  --gold-soft: #f6d365;
  --gold-deep: #9f7715;
  --ink: #030303;
  --ink-soft: #070706;
  --panel: #0b0b0a;
  --panel-soft: #11110f;
  --panel-lift: #181714;
  --surface-soft: #11110f;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(246, 211, 101, .18);
  --muted: rgba(247, 247, 245, .58);
  --muted-light: rgba(247, 247, 245, .72);
  --text: #f7f7f5;
  --font-sans: "Satoshi", "Inter", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #030303;
  color: var(--text);
}

html:has(body.select-admin), body.select-admin {
  background:
    radial-gradient(1200px 760px at 84% -12%, rgba(212, 175, 55, .17), transparent 62%),
    radial-gradient(980px 640px at 32% 18%, rgba(246, 211, 101, .075), transparent 68%),
    linear-gradient(180deg, #090908 0%, #050505 42%, #030303 100%);
}

body.select-admin::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 65% 20%, #000, transparent 78%);
}

.select-admin :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gold-soft) !important;
  outline-offset: 3px;
}

.select-admin .boot-loader,
.select-admin .login-shell {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(820px 520px at 78% 0%, rgba(212, 175, 55, .18), transparent 64%),
    radial-gradient(680px 480px at 18% 90%, rgba(246, 211, 101, .07), transparent 65%),
    #050505;
}

.select-admin .login-card {
  background: linear-gradient(145deg, rgba(15,15,13,.98), rgba(6,6,6,.98));
  border: 1px solid rgba(246, 211, 101, .2);
  border-radius: 26px;
  padding: 38px;
  box-shadow: 0 32px 100px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.035);
}

.select-admin .select-login-brand { width: 142px; margin-bottom: 8px; }
.select-admin .login-card h1 { font-size: 26px; letter-spacing: -.025em; }
.select-admin .login-card :is(input[type=email], input[type=password]) {
  min-height: 48px;
  background: #121210;
  border-color: rgba(255,255,255,.13);
  border-radius: 12px;
}
.select-admin .login-card :is(input[type=email], input[type=password]):focus { border-color: var(--gold); }
.select-admin .google-login-button { background: #f7f7f5; color: #090909; border: 0; border-radius: 12px; }
.select-admin .login-divider::before,
.select-admin .login-divider::after { background: rgba(255,255,255,.1); }

.select-admin .app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
}

.select-admin .admin-sidebar {
  width: 244px;
  flex-basis: 244px;
  padding: 20px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(8,8,7,.97), rgba(4,4,4,.97));
  border-right: 1px solid rgba(246, 211, 101, .13);
  box-shadow: 18px 0 60px rgba(0,0,0,.25);
}

.select-admin .admin-sidebar-brand {
  min-height: 102px;
  padding: 18px 16px 20px;
  gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.select-admin .sidebar-wordmark { width: 134px; height: auto; }
.select-admin .admin-sidebar-brand small { color: rgba(246,211,101,.55); letter-spacing: .15em; }

.select-admin .admin-sidebar-nav { gap: 9px; padding: 12px 0; }
.select-admin .admin-sidebar-nav a {
  min-height: 58px;
  padding: 13px 16px;
  gap: 14px;
  color: rgba(247,247,245,.7);
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  font-size: 14px;
  font-weight: 700;
  transform: none;
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.select-admin .admin-sidebar-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
  border-color: rgba(246,211,101,.22);
  transform: none;
}
.select-admin .admin-sidebar-nav a.active,
.select-admin .admin-sidebar-nav a[aria-current="page"],
.select-admin .admin-sidebar-nav a.is-active {
  color: var(--gold-soft) !important;
  background:
    radial-gradient(circle at 28% 20%, rgba(246,211,101,.17), transparent 58%),
    rgba(212,175,55,.12) !important;
  border-color: rgba(212,175,55,.55) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 32px rgba(212,175,55,.08) !important;
}
.select-admin .admin-sidebar-nav a.active .nav-ico { color: var(--gold-soft) !important; }
.select-admin .nav-ico { width: 22px; height: 22px; }
.select-admin .nav-ico svg { width: 22px; height: 22px; stroke-width: 1.8; }

.select-admin .admin-sidebar-footer {
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: transparent;
}
.select-admin .admin-sidebar-user,
.select-admin .admin-sidebar-logout {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.select-admin .admin-sidebar-user { padding: 12px; }
.select-admin .admin-sidebar-avatar {
  width: 42px; height: 42px;
  color: #080808;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  border: 0;
  border-radius: 12px;
}
.select-admin .admin-sidebar-logout { margin-top: 9px; padding: 11px 14px; text-align: center; }

.select-admin .admin-main {
  min-width: 0;
  padding: 28px 28px 40px;
  background: transparent;
}
.select-admin .admin-mobilebar {
  min-height: 56px;
  margin: 0 auto;
  padding: 5px 12px 5px 16px;
  gap: 10px;
  max-width: 1680px;
  background: rgba(10,10,9,.82);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom-color: rgba(246,211,101,.16);
  border-radius: 18px 18px 0 0;
  backdrop-filter: blur(18px);
}

/* O bundle de UI otimiza propriedades experimentais. Preserve o vidro real neste CSS servido sem transformação. */
.select-admin .acervo-locations-toggle {
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.select-admin .page-breadcrumb { flex: 1 1 auto; color: var(--muted); }
.select-admin .page-breadcrumb strong { color: var(--text); }
.select-admin .topbar-profile,
.select-admin .icon-button {
  color: var(--text);
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.025);
  border-radius: 12px;
}
.select-admin .topbar-profile:hover,
.select-admin .icon-button:hover { color: var(--gold-soft); border-color: rgba(212,175,55,.5); }

.select-admin .view-root {
  width: 100%;
  max-width: 1680px;
  min-height: calc(100vh - 136px);
  margin: 0 auto;
  padding: 42px 38px 56px;
  background:
    radial-gradient(760px 380px at 100% 0%, rgba(212,175,55,.07), transparent 70%),
    rgba(7,7,6,.92);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 26px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.02);
}
.select-admin .view-root.is-acervo-view {
  max-width: none;
  padding-top: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.select-admin :is(.view-header, .page-header) { margin-bottom: 28px; }
.select-admin :is(.view-header, .page-header) h1 { letter-spacing: -.035em; }
.select-admin .eyebrow { color: var(--gold); }

.select-admin :is(.primary-button, .personalization-view .primary-button) {
  color: #090806 !important;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)) !important;
  border: 1px solid rgba(246,211,101,.65) !important;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(212,175,55,.12), inset 0 1px rgba(255,255,255,.28);
}
.select-admin :is(.primary-button, .personalization-view .primary-button):hover {
  color: #050505 !important;
  background: linear-gradient(135deg, #ffe582, #d9b640) !important;
  box-shadow: 0 14px 34px rgba(212,175,55,.21);
}
.select-admin :is(.secondary-button, .ghost-button, .row-action, .acervo-row-action) {
  color: var(--text);
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.13);
  border-radius: 12px;
}
.select-admin :is(.secondary-button, .ghost-button, .row-action, .acervo-row-action):hover {
  color: var(--gold-soft);
  background: rgba(212,175,55,.07);
  border-color: rgba(212,175,55,.45);
}

.select-admin :is(input:not([type=checkbox]):not([type=radio]), textarea, select) {
  color: var(--text);
  background: #121210;
  border-color: rgba(255,255,255,.13);
  border-radius: 11px;
}
.select-admin :is(input:not([type=checkbox]):not([type=radio]), textarea, select):focus {
  outline: none;
  border-color: rgba(246,211,101,.65);
  box-shadow: 0 0 0 3px rgba(212,175,55,.1);
}
.select-admin :is(input[type=checkbox], input[type=radio]) { accent-color: var(--gold); }

.select-admin :is(
  .panel-card, .settings-panel, .settings-card, .clients-panel, .client-card,
  .profile-card, .profile-product, .personalization-section, .credits-summary,
  .credits-explainer, .credits-package, .credits-checkout, .referral-card,
  .referral-stats > div, .referral-rules, .finance-summary article, .finance-history,
  .gallery-clients-panel, .modal-card, .acervo-setup, .acervo-browser
) {
  color: var(--text);
  background: linear-gradient(145deg, rgba(18,18,16,.94), rgba(9,9,8,.96));
  border-color: rgba(255,255,255,.1);
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 16px 50px rgba(0,0,0,.16);
}
.select-admin :is(.settings-panel, .clients-panel, .profile-card, .personalization-section, .credits-summary, .credits-package):hover {
  border-color: rgba(212,175,55,.22);
}
.select-admin .profile-card :is(input, select, textarea) { color: var(--text); background: #121210; border-color: rgba(255,255,255,.13); }
.select-admin .profile-avatar { color: #080808; background: linear-gradient(145deg, var(--gold-soft), var(--gold)); border: 0; }

.select-admin .tabs,
.select-admin .personalization-tabs {
  background: #0d0d0c;
  border-color: rgba(255,255,255,.09);
}
.select-admin .tabs button.active,
.select-admin .personalization-tabs button[aria-selected=true] {
  color: #090806;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
}

.select-admin :is(.clients-table, .credit-ledger, table) { color: var(--text); }
.select-admin :is(.clients-table th, table th) { color: rgba(246,211,101,.66); }
.select-admin :is(.clients-table td, .clients-table th, table td, table th, .credit-ledger, .finance-order) { border-color: rgba(255,255,255,.08); }

.select-admin .board-column {
  background: rgba(12,12,11,.88);
  border-color: rgba(255,255,255,.09);
  border-top-color: rgba(212,175,55,.5) !important;
  border-radius: 18px;
}
.select-admin .project-card {
  color: var(--text);
  background: linear-gradient(145deg, #151512, #0e0e0c);
  border-color: rgba(255,255,255,.1);
  border-radius: 14px;
}
.select-admin .project-card:hover { background: #191813; border-color: rgba(212,175,55,.4); }
.select-admin .project-card-progress { background: rgba(255,255,255,.09); }
.select-admin .project-card-progress > span { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }

.select-admin .studio-onboarding {
  color: var(--text);
  background: rgba(212,175,55,.07);
  border-color: rgba(212,175,55,.3);
  border-radius: 18px;
}
.select-admin .credits-package-best { background: rgba(212,175,55,.065); border-color: rgba(212,175,55,.5); }
.select-admin .credits-value-badge,
.select-admin .acervo-setup-status { color: #0a0906; background: var(--gold-soft); }

/* Workspace de arquivos com a mesma linguagem do Acervo original. */
.select-admin .acervo-workspace { max-width: none; gap: 20px; }
.select-admin .acervo-workspace-head { padding: 8px 2px 10px; }
.select-admin .acervo-workspace-head .eyebrow { color: var(--gold); }
.select-admin .acervo-workspace-head h1 { font-size: clamp(30px, 3vw, 42px); }
.select-admin .acervo-brand-title { display: flex; align-items: center; min-height: 52px; }
.select-admin .acervo-brand-title img { display: block; width: clamp(168px, 16vw, 222px); height: auto; }
.select-admin .acervo-plan-pill {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 2px 10px;
  min-width: 0;
  padding: 8px 11px;
  color: var(--gold-soft);
  background: rgba(212,175,55,.06);
  border-color: rgba(212,175,55,.34);
  border-radius: 13px;
}
.select-admin .acervo-plan-pill > span:first-child { display: flex; align-items: baseline; gap: 7px; }
.select-admin .acervo-plan-pill small { font-size: 8px; }
.select-admin .acervo-plan-pill strong { color: var(--gold-soft); }
.select-admin .acervo-plan-pill .acervo-plan-usage { color: var(--muted); font-size: 10px; white-space: nowrap; }
.select-admin .acervo-plan-progress { grid-column: 1 / -1; width: 100%; height: 2px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.select-admin .acervo-plan-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--select-accent); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.select-admin .acervo-browser { border-radius: 22px; background: rgba(7,7,6,.92); }
.select-admin .acervo-explorer { align-items: start; }
.select-admin .acervo-locations-host {
  position: sticky;
  top: 12px;
  align-self: start;
  height: calc(100dvh - 24px);
  max-height: none;
}
.select-admin .acervo-locations {
  height: 100%;
  max-height: none;
  overflow: hidden;
}
.select-admin .acervo-tree-scroll {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  overscroll-behavior: contain;
}
.select-admin .acervo-tree-scroll [data-slot="scroll-area-viewport"] {
  height: 100%;
  max-height: none;
  overscroll-behavior: contain;
}
.select-admin .acervo-workspace-head p:not(.eyebrow) { font-size: 13px; }
.select-admin .acervo-command { padding-block: 12px; }
.select-admin .acervo-toolbar-actions :is(.primary-button,.secondary-button) { min-height: 38px; padding-inline: 13px; font-size: 12px; }
.select-admin :is(.acervo-command, .acervo-path-search, .acervo-controls, .acervo-toolbar) { border-color: rgba(255,255,255,.085); }
.select-admin .acervo-command-summary > * { background: #0b0b0a; border-color: rgba(212,175,55,.22); }
.select-admin .acervo-command-summary > *:first-child { color: var(--gold-soft); border-color: rgba(212,175,55,.52); }
.select-admin .acervo-linked { color: #c7a2ff; }
.select-admin .acervo-path-search .acervo-breadcrumbs { background: #0d0d0c; border-color: rgba(255,255,255,.1); }
.select-admin .acervo-path-search.is-root { justify-content: flex-end; }
.select-admin .acervo-path-search.is-root {
  padding: 0;
  background: transparent;
  border: 0;
}
.select-admin .acervo-path-search.is-root .acervo-search-host { width: min(100%, 720px); }
.select-admin .acervo-card {
  color: var(--text);
  background: linear-gradient(145deg, rgba(18,18,16,.96), rgba(8,8,7,.98));
  border-color: rgba(255,255,255,.1);
  border-radius: 18px;
}
.select-admin .acervo-card:hover { border-color: rgba(212,175,55,.33); }
.select-admin .acervo-card-preview {
  background:
    radial-gradient(circle at 70% 18%, rgba(212,175,55,.08), transparent 52%),
    #0b0b0a;
  border-color: rgba(255,255,255,.08);
  border-radius: 15px;
}
.select-admin .acervo-card-icon {
  color: #d9c2ff;
  background: linear-gradient(145deg, #7040b5, #3f1b74);
  border: 1px solid rgba(216,190,255,.25);
  box-shadow: 0 10px 28px rgba(108,55,174,.35), inset 0 1px rgba(255,255,255,.14);
}
.select-admin .acervo-card.is-folder .acervo-card-icon { color: #e1caff; background: linear-gradient(145deg, #7142b5, #421d78); }
.select-admin .acervo-selection-bar {
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}
.select-admin .acervo-file-row { border-color: rgba(255,255,255,.08); }
.select-admin .acervo-file-row:hover { background: rgba(212,175,55,.045); }

.select-admin .modal-backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.select-admin .toast { background: #11110f; border-color: rgba(212,175,55,.3); color: var(--text); }
.select-admin ::selection { color: #050505; background: var(--gold-soft); }
.select-admin * { scrollbar-color: rgba(212,175,55,.42) transparent; }

@media (max-width: 1100px) {
  .select-admin .admin-main { padding: 18px; }
  .select-admin .view-root { padding: 32px 24px 44px; }
}

@media (max-width: 920px) {
  .select-admin .admin-sidebar { width: min(306px, 88vw); flex-basis: auto; padding: 18px; }
  .select-admin .admin-main { padding: 0; }
  .select-admin .admin-mobilebar { margin: 0; border-radius: 0; border-inline: 0; }
  .select-admin .view-root { min-height: calc(100vh - 58px); border: 0; border-radius: 0; }
  .select-admin .acervo-locations-host {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    max-height: none;
  }
  .select-admin .acervo-locations { height: auto; max-height: 360px; }
}

@media (max-width: 620px) {
  .select-admin .login-card { padding: 28px 22px; border-radius: 20px; }
  .select-admin .view-root { padding: 24px 15px 36px; }
  .select-admin .admin-mobilebar { padding: 10px 15px; }
  .select-admin .acervo-workspace-head { align-items: flex-start; }
  .select-admin .acervo-workspace-head h1 { font-size: 30px; }
  .select-admin .acervo-plan-pill { min-width: 80px; }
  .select-admin :is(.panel-card, .settings-card, .profile-card, .personalization-section, .credits-explainer, .referral-card) { padding: 18px; }
}

/* Controles e temas portados do cockpit atual do Acervo. */
.select-admin .app-shell {
  --select-accent-rgb: 196, 165, 255;
  --select-accent: #c4a5ff;
  --select-accent-strong: #7c3aed;
  --select-accent-deep: #3a1870;
  --select-accent-contrast: #fff;
  --gold: var(--select-accent);
  --gold-soft: color-mix(in srgb, var(--select-accent) 72%, white);
  --gold-deep: var(--select-accent-strong);
  --line-strong: rgba(var(--select-accent-rgb), .24);
  --select-bg: #030303;
  --select-panel: #0b0b0a;
  --select-raised: #151411;
  --select-copy: #f7f7f5;
  --select-subtle: rgba(247,247,245,.58);
  --select-rule: rgba(255,255,255,.09);
  color: var(--select-copy);
}
.select-admin .app-shell[data-select-accent="green"] {
  --select-accent-rgb: 141, 236, 198;
  --select-accent: #8decc6;
  --select-accent-strong: #22c55e;
  --select-accent-deep: #0d603f;
  --select-accent-contrast: #04110a;
}
.select-admin .app-shell[data-select-accent="blue"] {
  --select-accent-rgb: 125, 211, 252;
  --select-accent: #7dd3fc;
  --select-accent-strong: #0ea5e9;
  --select-accent-deep: #0c4a6e;
  --select-accent-contrast: #031019;
}
.select-admin .sidebar-wordmark-clean { display: none; }
.select-admin .admin-mobilebar {
  padding-inline-end: 238px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.select-admin .page-breadcrumb {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.select-admin .page-breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.select-admin .select-appearance {
  position: fixed;
  inset-block-start: max(10px, env(safe-area-inset-top));
  inset-inline-end: max(12px, env(safe-area-inset-right));
  z-index: 60;
  display: flex;
  width: 218px;
  height: 42px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 198, 255, .2);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(17, 31, 51, .68), rgba(5, 12, 24, .52)),
    rgba(6, 12, 22, .66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 10px 30px rgba(2, 10, 25, .18);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  transform-origin: right center;
  transition: width .5s cubic-bezier(.22,1,.36,1), border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.select-admin .select-appearance.is-collapsed { width: 42px; }
.select-admin .select-appearance-controls {
  display: grid;
  width: 168px;
  min-width: 168px;
  grid-template-rows: auto auto;
  opacity: 1;
  transform: translateX(0) scale(.99);
  transition: opacity .2s ease .12s, transform .42s cubic-bezier(.22,1,.36,1) .04s;
}
.select-admin .select-appearance.is-collapsed .select-appearance-controls {
  pointer-events: none;
  opacity: 0;
  transform: translateX(12px) scale(.96);
  transition-delay: 0s;
}
.select-admin .select-appearance-toggle {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: var(--select-accent);
  border: 1px solid rgba(var(--select-accent-rgb),.24);
  border-radius: 11px;
  background: rgba(var(--select-accent-rgb),.09);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
}
.select-admin .select-appearance-toggle:hover { background: rgba(var(--select-accent-rgb),.16); border-color: rgba(var(--select-accent-rgb),.48); }
.select-admin .select-appearance-toggle:active { transform: scale(.94); }
.select-admin .select-appearance-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.select-admin .select-appearance-toggle .select-appearance-chevron {
  width: 0;
  opacity: 0;
  transform: rotate(180deg);
  transition: width .3s cubic-bezier(.22,1,.36,1), opacity .2s ease, transform .38s cubic-bezier(.22,1,.36,1);
}
.select-admin .select-appearance.is-collapsed .select-appearance-toggle .select-appearance-chevron {
  width: 10px;
  opacity: .82;
  transform: rotate(0);
}
.select-admin .select-tone-options {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(169, 211, 255, .13);
  border-radius: 13px;
  background: rgba(2, 8, 18, .34);
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, .2);
}
.select-admin .select-tone-options::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc((100% - 6px) / 2);
  border: 1px solid rgba(207, 231, 255, .26);
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .28), transparent 44%),
    linear-gradient(135deg, rgba(122, 187, 255, .4), rgba(70, 122, 199, .24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 4px 16px rgba(68, 143, 232, .18);
  transform: translateX(calc(100% + 2px));
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), background .32s ease, box-shadow .32s ease;
}
.select-admin .app-shell[data-select-tone="clean"] .select-tone-options::before {
  transform: translateX(0);
  background:
    radial-gradient(circle at 26% 16%, rgba(255, 255, 255, .88), transparent 46%),
    linear-gradient(135deg, rgba(213, 235, 255, .88), rgba(139, 192, 241, .58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 4px 16px rgba(70, 137, 203, .15);
}
.select-admin .select-tone-options button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  color: rgba(219, 233, 249, .66);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .24s ease, transform .24s cubic-bezier(.22,1,.36,1);
}
.select-admin .select-tone-options button svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.select-admin .select-tone-options button:hover { color: var(--select-copy); }
.select-admin .select-tone-options button:active { transform: scale(.97); }
.select-admin .select-tone-options button[aria-pressed="true"] {
  color: #f5f9ff;
  text-shadow: 0 1px 8px rgba(173, 216, 255, .22);
}
.select-admin .select-tone-options button:focus-visible {
  outline: 2px solid rgba(145, 204, 255, .92);
  outline-offset: -2px;
}
.select-admin .select-accent-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 3px 8px 0;
}
.select-admin .select-accent-options button {
  height: 5px;
  min-height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  opacity: .56;
  transform: scaleX(.88);
  transition: opacity .18s ease, transform .24s cubic-bezier(.22,1,.36,1), box-shadow .24s ease;
}
.select-admin .select-accent-options button:hover { opacity: .84; transform: scaleX(.96); }
.select-admin .select-accent-options button:nth-child(1) { background: linear-gradient(90deg,#8b5cf6,#f5eaff); }
.select-admin .select-accent-options button:nth-child(2) { background: linear-gradient(90deg,#268b68,#b7e1d2); }
.select-admin .select-accent-options button:nth-child(3) { background: linear-gradient(90deg,#17698d,#a6d5e5); }
.select-admin .select-accent-options button[aria-pressed="true"] {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 18px rgba(var(--select-accent-rgb),.62);
  animation: select-accent-settle .3s cubic-bezier(.22,1,.36,1);
}
.select-admin .select-appearance + .topbar-profile { margin-left: auto; margin-right: 226px; transition: margin-right .5s cubic-bezier(.22,1,.36,1); }
.select-admin .select-appearance.is-collapsed + .topbar-profile { margin-right: 50px; }
@keyframes select-accent-settle { from { transform: scaleX(.82); opacity: .62 } to { transform: scaleX(1); opacity: 1 } }
.select-admin .app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 78% 5%, rgba(var(--select-accent-rgb),.18), transparent 42%);
}
.select-admin .app-shell.is-tone-transitioning::after,
.select-admin .app-shell.is-accent-transitioning::after { animation: select-skin-flash .44s ease; }
@keyframes select-skin-flash { 0% { opacity: 0 } 35% { opacity: 1 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  .select-admin .app-shell.is-tone-transitioning::after,
  .select-admin .app-shell.is-accent-transitioning::after { animation: none; }
  .select-admin .select-tone-options::before,
  .select-admin .select-tone-options button,
  .select-admin .select-accent-options button,
  .select-admin .select-appearance,
  .select-admin .select-appearance-controls,
  .select-admin .select-appearance-toggle,
  .select-admin .select-appearance-toggle .select-appearance-chevron { animation: none; transition: none; }
}

/* A cor escolhida controla as ações e os destaques, sem alterar estados semânticos. */
.select-admin .app-shell .admin-sidebar-nav a.active,
.select-admin .app-shell .admin-sidebar-nav a[aria-current="page"] {
  color: var(--select-accent) !important;
  background: radial-gradient(circle at 28% 20%, rgba(var(--select-accent-rgb),.16), transparent 58%), rgba(var(--select-accent-rgb),.07) !important;
  border-color: rgba(var(--select-accent-rgb),.48) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 30px rgba(var(--select-accent-rgb),.08) !important;
}
.select-admin .app-shell .admin-sidebar-nav a.active .nav-ico { color: var(--select-accent) !important; }
.select-admin .app-shell .acervo-linked { color: var(--select-accent); }
.select-admin .app-shell .acervo-card-icon,
.select-admin .app-shell .acervo-card.is-folder .acervo-card-icon {
  color: color-mix(in srgb, var(--select-accent) 70%, white);
  background: linear-gradient(145deg, var(--select-accent-strong), var(--select-accent-deep));
  border-color: rgba(var(--select-accent-rgb),.3);
  box-shadow: 0 10px 28px rgba(var(--select-accent-rgb),.26), inset 0 1px rgba(255,255,255,.14);
}

/* Bom dia: a mesma organização, em papel claro, sem perder a hierarquia dourada. */
.select-admin .app-shell[data-select-tone="clean"] {
  color-scheme: light;
  --select-bg: #f2f0e9;
  --select-panel: #fbfaf6;
  --select-raised: #ffffff;
  --select-copy: #17140e;
  --select-subtle: rgba(23,20,14,.58);
  --select-rule: rgba(34,29,17,.13);
  --text: var(--select-copy);
  --muted: var(--select-subtle);
  --muted-light: rgba(23,20,14,.72);
  --line: var(--select-rule);
  background: var(--select-bg);
}
.select-admin .app-shell[data-select-tone="clean"] .sidebar-wordmark-dark { display: none; }
.select-admin .app-shell[data-select-tone="clean"] .sidebar-wordmark-clean { display: block; }
.select-admin .app-shell[data-select-tone="clean"] .admin-sidebar {
  background: linear-gradient(180deg,#fffdf8,#f7f4eb);
  border-right-color: rgba(129,96,19,.17);
  box-shadow: 18px 0 60px rgba(73,58,24,.08);
}
.select-admin .app-shell[data-select-tone="clean"] .admin-sidebar-brand,
.select-admin .app-shell[data-select-tone="clean"] .admin-sidebar-footer { border-color: var(--select-rule); }
.select-admin .app-shell[data-select-tone="clean"] .admin-sidebar-nav a,
.select-admin .app-shell[data-select-tone="clean"] .admin-sidebar-user,
.select-admin .app-shell[data-select-tone="clean"] .admin-sidebar-logout {
  color: rgba(23,20,14,.72);
  background: rgba(255,255,255,.62);
  border-color: var(--select-rule);
}
.select-admin .app-shell[data-select-tone="clean"] .admin-main { background: #f2f0e9; }
.select-admin .app-shell[data-select-tone="clean"] .admin-mobilebar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.select-admin .app-shell[data-select-tone="clean"] .select-appearance {
  border-color: rgba(71, 128, 184, .22);
  background:
    linear-gradient(145deg, rgba(248, 252, 255, .8), rgba(221, 236, 249, .66)),
    rgba(238, 247, 255, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 30px rgba(64, 113, 155, .1);
}
.select-admin .app-shell[data-select-tone="clean"] .select-tone-options {
  border-color: rgba(68, 124, 178, .16);
  background: rgba(98, 151, 200, .1);
  box-shadow: inset 0 1px 5px rgba(42, 88, 128, .08);
}
.select-admin .app-shell[data-select-tone="clean"] .select-tone-options button { color: rgba(31, 64, 94, .64); }
.select-admin .app-shell[data-select-tone="clean"] .select-tone-options button:hover { color: #12334f; }
.select-admin .app-shell[data-select-tone="clean"] .select-tone-options button[aria-pressed="true"] {
  color: #102b43;
  text-shadow: none;
}
.select-admin .app-shell[data-select-tone="clean"] .view-root {
  color: var(--select-copy);
  background: radial-gradient(760px 380px at 100% 0%,rgba(var(--select-accent-rgb),.08),transparent 70%),#fbfaf6;
  border-color: var(--select-rule);
  box-shadow: 0 26px 80px rgba(73,58,24,.09);
}
.select-admin .app-shell[data-select-tone="clean"] :is(.topbar-profile,.icon-button,.secondary-button,.ghost-button,.row-action,.acervo-row-action) {
  color: var(--select-copy);
  background: rgba(255,255,255,.82);
  border-color: var(--select-rule);
}
.select-admin .app-shell[data-select-tone="clean"] :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  color: var(--select-copy);
  background: #fff;
  border-color: rgba(34,29,17,.16);
}
.select-admin .app-shell[data-select-tone="clean"] :is(.panel-card,.settings-panel,.settings-card,.clients-panel,.client-card,.profile-card,.profile-product,.personalization-section,.credits-summary,.credits-explainer,.credits-package,.credits-checkout,.referral-card,.referral-stats > div,.referral-rules,.finance-summary article,.finance-history,.gallery-clients-panel,.modal-card,.acervo-setup,.acervo-browser,.board-column,.project-card,.acervo-card) {
  color: var(--select-copy);
  background: linear-gradient(145deg,#fff,#f8f6ef);
  border-color: var(--select-rule);
  box-shadow: inset 0 1px rgba(255,255,255,.8),0 16px 50px rgba(73,58,24,.06);
}
.select-admin .app-shell[data-select-tone="clean"] :is(.tabs,.personalization-tabs,.acervo-command-summary > *, .acervo-path-search .acervo-breadcrumbs) {
  color: var(--select-copy);
  background: #f4f1e8;
  border-color: var(--select-rule);
}
.select-admin .app-shell[data-select-tone="clean"] .acervo-card-preview { background: #f4f1e8; border-color: var(--select-rule); }
.select-admin .app-shell[data-select-tone="clean"] :is(.clients-table td,.clients-table th,table td,table th,.credit-ledger,.finance-order,.acervo-file-row) { border-color: var(--select-rule); }
.select-admin .app-shell[data-select-tone="clean"] .toast { color: var(--select-copy); background: #fff; }

@media (max-width: 1180px) { .select-admin .select-tone-options button { padding-inline: 8px; } }
@media (max-width: 760px) {
  .select-admin .admin-mobilebar { gap: 8px; padding-inline-end: 226px; }
  .select-admin .page-breadcrumb { display: none; }
  .select-admin .select-appearance { inset-block-start: max(8px, env(safe-area-inset-top)); inset-inline-end: max(8px, env(safe-area-inset-right)); }
  .select-admin .select-tone-options button { min-height: 24px; padding: 0 5px; font-size: 9px; }
  .select-admin .select-accent-options { padding: 3px 8px 1px; gap: 5px; }
  .select-admin .topbar-profile { display: none; }
}

/* Barra lateral compacta. O controle usa Button e Tooltip do shadcn. */
.select-admin .sidebar-symbol,
.select-admin .sidebar-logout-icon { display: none; }

@media (min-width: 921px) {
  .select-admin .admin-sidebar {
    width: 212px;
    flex-basis: 212px;
    padding: 10px;
    will-change: width, flex-basis;
    transition: width .34s cubic-bezier(.22,1,.36,1), flex-basis .34s cubic-bezier(.22,1,.36,1), box-shadow .24s ease;
  }

  .select-admin .admin-sidebar-brand {
    position: relative;
    min-height: 78px;
    padding: 14px 38px 14px 10px;
    gap: 7px;
  }

  .select-admin .sidebar-wordmark { width: 112px; height: 31px; }
  .select-admin .desktop-sidebar-toggle-host {
    position: absolute;
    right: -27px;
    bottom: -17px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
  }
  .select-admin .desktop-sidebar-toggle[data-slot="button"] {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--select-rule);
    border-radius: 9px;
    color: var(--select-subtle);
    background: color-mix(in srgb,var(--select-raised) 80%,transparent);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  }
  .select-admin .desktop-sidebar-toggle[data-slot="button"]:hover { color: var(--select-copy); border-color: rgba(var(--select-accent-rgb),.38); background: rgba(var(--select-accent-rgb),.1); }
  .select-admin .desktop-sidebar-toggle[data-slot="button"]:active { transform: scale(.94); }
  .select-admin .desktop-sidebar-toggle[data-slot="button"]:focus-visible {
    border-color: rgba(var(--select-accent-rgb),.72);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--select-accent-rgb),.18), 0 6px 18px rgba(0,0,0,.18);
  }
  .select-admin .sidebar-toggle-icon { animation: sidebar-icon-swap .2s cubic-bezier(.2,.8,.2,1); }

  .select-admin .admin-sidebar-nav { gap: 3px; padding: 8px 0; }
  .select-admin .admin-sidebar-nav a {
    min-height: 40px;
    padding: 8px 10px;
    gap: 10px;
    border-color: transparent;
    border-radius: 9px;
    background: transparent;
    font-size: 12px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, padding .34s cubic-bezier(.22,1,.36,1), gap .34s cubic-bezier(.22,1,.36,1);
  }
  .select-admin .admin-sidebar-nav a > span:last-child,
  .select-admin .admin-sidebar-user > div,
  .select-admin .admin-sidebar-logout > span {
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
    transition: max-width .3s cubic-bezier(.22,1,.36,1), opacity .18s ease, transform .3s cubic-bezier(.22,1,.36,1);
  }
  .select-admin .admin-sidebar-nav a:hover { transform: none; }
  .select-admin .admin-sidebar-nav a.active,
  .select-admin .admin-sidebar-nav a[aria-current="page"] { border-color: rgba(var(--select-accent-rgb),.22); }
  .select-admin .admin-sidebar-footer { padding: 10px 0 0; }
  .select-admin .admin-sidebar-user { min-height: 44px; padding: 5px; gap: 9px; background: transparent; }
  .select-admin .admin-sidebar-avatar { width: 32px; height: 32px; border-radius: 9px; }
  .select-admin .admin-sidebar-logout { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 36px; padding: 7px 9px; }
  .select-admin .sidebar-logout-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

  .select-admin .app-shell.sidebar-collapsed .admin-sidebar { width: 68px; flex-basis: 68px; }
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-brand { min-height: 78px; align-items: center; padding: 14px 0; }
  .select-admin .app-shell.sidebar-collapsed .sidebar-wordmark,
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-brand small { display: none; }
  .select-admin .app-shell.sidebar-collapsed .sidebar-symbol { display: block; width: 29px; height: 29px; object-fit: contain; }
  .select-admin .app-shell.sidebar-collapsed .sidebar-symbol-clean { display: none; }
  .select-admin .app-shell.sidebar-collapsed[data-select-tone="clean"] .sidebar-symbol-dark { display: none; }
  .select-admin .app-shell.sidebar-collapsed[data-select-tone="clean"] .sidebar-symbol-clean { display: block; }
  .select-admin .app-shell.sidebar-collapsed .desktop-sidebar-toggle[data-slot="button"] { background: var(--select-panel); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-nav { padding-top: 8px; }
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-nav a { justify-content: center; min-height: 40px; padding-inline: 0; gap: 0; }
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-nav a > span:last-child,
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-user > div,
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-logout > span { max-width: 0; opacity: 0; transform: translateX(-6px); pointer-events: none; }
  .select-admin .app-shell.sidebar-collapsed #switch-saas-dashboard { width: 0; min-width: 0; height: 0; margin: 0; padding: 0; overflow: hidden; opacity: 0; pointer-events: none; }
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-user,
  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-logout { justify-content: center; padding-inline: 0; }
  .select-admin .app-shell.sidebar-collapsed .sidebar-logout-icon { display: block; }
}

@keyframes sidebar-icon-swap {
  from { opacity: 0; transform: scale(.72) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 920px) {
  .select-admin .desktop-sidebar-toggle-host,
  .select-admin .sidebar-symbol { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .select-admin .admin-sidebar,
  .select-admin .admin-sidebar-nav a,
  .select-admin .admin-sidebar-nav a > span:last-child,
  .select-admin .admin-sidebar-user > div,
  .select-admin .admin-sidebar-logout > span,
  .select-admin .desktop-sidebar-toggle[data-slot="button"] { transition: none; }
  .select-admin .sidebar-toggle-icon { animation: none; }
}

/* Sidebar Select. Estrutura e estados seguem o componente Sidebar do shadcn/ui. */
.select-admin .app-shell {
  --sidebar-width: 13.25rem;
  --sidebar-width-icon: 4.25rem;
  --sidebar-background: #101713;
  --sidebar-foreground: #f4f2ed;
  --sidebar-accent: rgba(217,66,46,.12);
  --sidebar-accent-foreground: #f4f2ed;
  --sidebar-border: rgba(244,242,237,.09);
  --sidebar-ring: #ef7765;
}

@media (min-width: 921px) {
  .select-admin .admin-sidebar[data-slot="sidebar"] {
    position: sticky;
    inset-block-start: 0;
    isolation: isolate;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100svh;
    min-height: 0;
    padding: 10px;
    gap: 0;
    overflow: visible;
    background: var(--sidebar-background);
    border-inline-end: 1px solid var(--sidebar-border);
    box-shadow: none;
    transition: width 200ms ease-linear, min-width 200ms ease-linear;
  }

  .select-admin .admin-sidebar-brand[data-slot="sidebar-header"] {
    flex: 0 0 auto;
    min-height: 76px;
    margin: 0;
    padding: 14px 10px;
    border-bottom: 1px solid var(--sidebar-border);
  }

  .select-admin .admin-sidebar-nav[data-slot="sidebar-content"] {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 0;
    gap: 3px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(244,242,237,.2) transparent;
  }

  .select-admin .admin-sidebar-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    color: rgba(244,242,237,.68);
  }

  .select-admin .admin-sidebar-nav a:hover {
    color: var(--sidebar-accent-foreground);
    background: rgba(244,242,237,.055);
  }

  .select-admin .app-shell .admin-sidebar-nav a.active,
  .select-admin .app-shell .admin-sidebar-nav a[aria-current="page"] {
    color: var(--sidebar-accent-foreground) !important;
    background: var(--sidebar-accent) !important;
    border-color: rgba(217,66,46,.28) !important;
    box-shadow: inset 2px 0 0 #d9422e !important;
  }

  .select-admin .app-shell .admin-sidebar-nav a.active .nav-ico,
  .select-admin .app-shell .admin-sidebar-nav a[aria-current="page"] .nav-ico {
    color: #ef7765 !important;
  }

  .select-admin .admin-sidebar-footer[data-slot="sidebar-footer"] {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 0 0;
    gap: 5px;
    border-top: 1px solid var(--sidebar-border);
    background: var(--sidebar-background);
  }

  .select-admin .desktop-sidebar-toggle-host[data-slot="sidebar-rail"] {
    position: absolute;
    inset-block: 0;
    inset-inline-end: -8px;
    z-index: 50;
    display: flex;
    width: 16px;
    height: auto;
    place-items: initial;
    align-items: flex-start;
    justify-content: center;
    padding-top: 24px;
  }

  .select-admin .desktop-sidebar-toggle-host[data-slot="sidebar-rail"]::after {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 50%;
    width: 1px;
    content: "";
    background: transparent;
    transition: background-color 160ms ease;
  }

  .select-admin .desktop-sidebar-toggle-host[data-slot="sidebar-rail"]:hover::after {
    background: rgba(239,119,101,.4);
  }

  .select-admin .desktop-sidebar-toggle[data-slot="button"] {
    position: sticky;
    top: 24px;
    z-index: 1;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    color: rgba(244,242,237,.72);
    background: #151e19;
    border-color: var(--sidebar-border);
    box-shadow: 0 6px 16px rgba(0,0,0,.28);
  }

  .select-admin .desktop-sidebar-toggle[data-slot="button"] svg {
    width: 15px;
    height: 15px;
  }

  .select-admin .app-shell.sidebar-collapsed .admin-sidebar[data-slot="sidebar"] {
    width: var(--sidebar-width-icon);
    min-width: var(--sidebar-width-icon);
  }

  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-brand[data-slot="sidebar-header"] {
    min-height: 76px;
    padding: 14px 0;
  }

  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-nav a {
    width: 40px;
    margin-inline: auto;
  }

  .select-admin .app-shell.sidebar-collapsed .admin-sidebar-footer[data-slot="sidebar-footer"] {
    align-items: center;
  }
}

/* Barra de contexto fixa. As ações vivem no canto superior direito. */
@media (min-width: 921px) {
  .select-admin .app-shell {
    --active-sidebar-width: var(--sidebar-width);
  }

  .select-admin .app-shell.sidebar-collapsed {
    --active-sidebar-width: var(--sidebar-width-icon);
  }

  .select-admin .admin-main {
    padding-top: 82px;
  }

  .select-admin .admin-mobilebar {
    position: fixed;
    inset-block-start: max(12px, env(safe-area-inset-top));
    inset-inline-start: var(--active-sidebar-width);
    inset-inline-end: 0;
    z-index: 55;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 6px 8px 6px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    transform: none;
    transition:
      inset-inline-start 420ms cubic-bezier(.22, 1, .36, 1),
      width 420ms cubic-bezier(.22, 1, .36, 1);
    will-change: inset-inline-start, width;
    border: 0 !important;
    box-shadow: none !important;
  }

  .select-admin .admin-mobilebar::before,
  .select-admin .admin-mobilebar::after,
  .select-admin .topbar-profile-menu::before,
  .select-admin .topbar-profile-menu::after {
    display: none !important;
    content: none !important;
  }

  .select-admin .page-breadcrumb {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
  }

  .select-admin .select-appearance {
    position: fixed;
    inset-block-start: max(12px, env(safe-area-inset-top));
    inset-inline-end: max(116px, calc(env(safe-area-inset-right) + 116px));
    z-index: 57;
    grid-column: auto;
    justify-self: auto;
    transform-origin: right center;
  }

  .select-admin .select-appearance.is-collapsed .select-appearance-toggle {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .select-admin .select-appearance.is-collapsed .select-appearance-toggle .select-appearance-chevron {
    width: 0;
    opacity: 0;
  }

  .select-admin .topbar-profile-menu {
    position: fixed;
    inset-block-start: max(15px, calc(env(safe-area-inset-top) + 15px));
    inset-inline-end: max(64px, calc(env(safe-area-inset-right) + 64px));
    z-index: 58;
    grid-column: auto;
    justify-self: auto;
    flex: 0 0 auto;
    margin-inline: 0;
  }

  .select-admin #topbar-saas-dashboard:not([hidden]) {
    position: fixed;
    inset-block-start: max(15px, calc(env(safe-area-inset-top) + 15px));
    inset-inline-end: max(116px, calc(env(safe-area-inset-right) + 116px));
    z-index: 58;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .select-admin .admin-mobilebar {
    transition: none;
  }
}

/* Tokens globais de destaque. A escolha do cliente atravessa toda a interface. */
html[data-select-accent="purple"] { --select-page-accent-rgb: 196,165,255; }
html[data-select-accent="green"] { --select-page-accent-rgb: 141,236,198; }
html[data-select-accent="blue"] { --select-page-accent-rgb: 125,211,252; }
html:has(body.select-admin), body.select-admin {
  background:
    radial-gradient(1100px 680px at 88% -12%, rgba(var(--select-page-accent-rgb,196,165,255),.13), transparent 62%),
    linear-gradient(180deg,#090908 0%,#050505 44%,#030303 100%);
}

.select-admin .app-shell {
  --sidebar-accent: rgba(var(--select-accent-rgb),.12);
  --sidebar-ring: var(--select-accent);
}

.select-admin .app-shell :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color: var(--select-accent-strong); }
.select-admin .app-shell :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select):focus {
  border-color: rgba(var(--select-accent-rgb),.72) !important;
  box-shadow: 0 0 0 3px rgba(var(--select-accent-rgb),.12) !important;
}
.select-admin .app-shell :is(button,a,summary,input,select,textarea):focus-visible { outline-color: var(--select-accent) !important; }
.select-admin .app-shell :is(.primary-button,.accent-button,.clients-create > summary,.personalization-view .primary-button) {
  color: var(--select-accent-contrast) !important;
  border-color: var(--select-accent-strong) !important;
  background: linear-gradient(135deg,var(--select-accent-strong),var(--select-accent-deep)) !important;
  box-shadow: 0 10px 28px rgba(var(--select-accent-rgb),.18) !important;
}
.select-admin .app-shell :is(.view-header .eyebrow,.eyebrow,.acervo-kicker,.acervo-logo,.link-button,.text-button) { color: var(--select-accent) !important; }
.select-admin .app-shell :is(.tabs button.active,.tabs [aria-selected="true"],.personalization-tabs button.active,.personalization-tabs [aria-selected="true"]) {
  color: var(--select-accent) !important;
  border-color: rgba(var(--select-accent-rgb),.42) !important;
  background: rgba(var(--select-accent-rgb),.1) !important;
}

@media (min-width: 921px) {
  .select-admin .app-shell .admin-sidebar-nav a.active,
  .select-admin .app-shell .admin-sidebar-nav a[aria-current="page"] {
    color: var(--select-accent) !important;
    background: rgba(var(--select-accent-rgb),.12) !important;
    border-color: rgba(var(--select-accent-rgb),.28) !important;
    box-shadow: inset 2px 0 0 var(--select-accent-strong) !important;
  }
  .select-admin .app-shell .admin-sidebar-nav a.active .nav-ico,
  .select-admin .app-shell .admin-sidebar-nav a[aria-current="page"] .nav-ico { color: var(--select-accent) !important; }
  .select-admin .desktop-sidebar-toggle-host[data-slot="sidebar-rail"]:hover::after { background: rgba(var(--select-accent-rgb),.4); }
}

@media (max-width: 920px) {
  .select-admin .admin-sidebar[data-slot="sidebar"] {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(18rem, 88vw);
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    background: var(--sidebar-background, #101713);
    transition: transform 200ms ease-linear;
  }

  .select-admin .admin-sidebar-nav[data-slot="sidebar-content"] {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* The current folder and a targeted subfolder share the studio's accent. */
.select-admin .acervo-command-summary { min-width: 0; }
.select-admin .acervo-command-summary strong { overflow-wrap: anywhere; }
.select-admin .acervo-drop-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 10px 12px 2px;
  padding: 8px 12px;
  border: 1px dashed var(--select-form-line);
  border-radius: 8px;
  color: var(--select-form-muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.select-admin .acervo-drop-hint .acervo-toolbar-icon { color: var(--select-accent); }
.select-admin .is-file-drag .acervo-drop-hint,
.select-admin .acervo-browser .is-drop-target {
  outline: 2px solid var(--select-accent);
  outline-offset: -2px;
  background-color: color-mix(in srgb, var(--select-accent) 13%, var(--select-form-surface));
  color: var(--select-form-text);
}
.select-admin .acervo-feedback:not([hidden]) { overflow-wrap: anywhere; }
@media (hover: none) and (pointer: coarse) {
  .select-admin .acervo-browser:not(.is-file-drag) .acervo-drop-hint { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .select-admin .acervo-drop-hint { transition: background-color .14s ease, color .14s ease; }
}
.select-admin .acervo-workspace .acervo-command-summary {
  display: grid;
  gap: 3px;
}
.select-admin .app-shell .acervo-workspace .acervo-command-summary > * {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--select-form-muted);
}
.select-admin .app-shell .acervo-workspace .acervo-command-summary strong {
  font-size: 18px;
  line-height: 1.35;
  color: var(--select-form-text);
}
.select-admin .acervo-toolbar-actions :is(.primary-button,.secondary-button) { min-height: 44px; }
@media (min-width: 921px) {
  body.select-admin .admin-main:has(.is-acervo-view) { padding-top: 12px; }
  body.select-admin .admin-main:has(.is-acervo-view) .admin-mobilebar {
    position: relative;
    inset: auto;
  }
}
@media (min-width: 921px) {
  .select-admin .acervo-locations-host:has(.acervo-tree-list):not(:has(.acervo-tree-item:nth-child(5))),
  .select-admin .acervo-locations-host:has(.acervo-locations.is-collapsed) { height: auto; }
}

.select-admin .acervo-file-grid > .acervo-empty-state { grid-column: 1 / -1; }
.select-admin .acervo-toolbar-actions [data-acervo-reset][hidden] { display: none; }
.select-admin .acervo-card[data-acervo-file-path] .acervo-card-copy { cursor: grab; }

.select-admin .acervo-breadcrumbs .acervo-up {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  min-height: 36px;
  border-inline-end: 1px solid var(--line);
  margin-inline-end: 3px;
}
.select-admin .acervo-breadcrumbs [aria-current] { white-space: nowrap; color: var(--text); }
@media (pointer: coarse) {
  .select-admin .acervo-breadcrumbs .acervo-up { min-height: 44px; flex-basis: 44px; }
}

/* A single aligned file list, with room for touch targets and long names. */
.select-admin .acervo-content {
  container: acervo-files / inline-size;
  --file-columns: 24px 40px minmax(0,1fr) 76px 110px 88px;
}
.select-admin .acervo-file-grid.is-list { gap: 0; padding: 0; }
.select-admin .acervo-columns,
body.select-admin .acervo-file-grid.is-list > .acervo-card {
  grid-template-columns: var(--file-columns);
  column-gap: 10px;
  padding-inline: 14px;
}
.select-admin .acervo-columns > :first-child { grid-column: 3; }
.select-admin .acervo-columns > :last-child { text-align: end; }
body.select-admin .acervo-file-grid.is-list > .acervo-card {
  min-height: 56px;
  padding-block: 5px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}
.select-admin .acervo-file-grid.is-list .acervo-card-preview,
.select-admin .acervo-file-grid.is-list .acervo-folder-host {
  width: 40px; height: 40px; min-height: 40px;
}
.select-admin .acervo-file-grid.is-list .acervo-card-image { width: 100%; height: 100%; object-fit: contain; }
.select-admin .acervo-file-grid.is-list .acervo-card-actions { gap: 0; }
.select-admin .acervo-file-grid.is-list .acervo-card-actions button { min-width: 44px; width: 44px; height: 44px; }
@container acervo-files (max-width: 620px) {
  .select-admin .acervo-columns,
  body.select-admin .acervo-file-grid.is-list > .acervo-card {
    grid-template-columns: 24px 40px minmax(0,1fr) 44px;
    column-gap: 8px; padding-inline: 8px;
  }
  .select-admin .acervo-file-grid.is-list :is(.acervo-card-size,.acervo-card-updated,.acervo-share-button),
  .select-admin .acervo-columns > :is(:nth-child(2),:nth-child(3)) { display: none; }
  .select-admin .acervo-columns > :last-child { font-size: 0; }
}

.select-admin .acervo-card-copy .acervo-item-name {
  display: block; width: fit-content; max-width: 100%; min-width: 0; min-height: 32px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.select-admin .acervo-item-name:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.select-admin .acervo-file-grid.is-list .acervo-list-folder {
  display: grid; place-items: center; color: var(--text);
}
.select-admin .acervo-list-folder .acervo-toolbar-icon { width: 22px; height: 22px; }
