/* Select: shared form and overlay refinement. Theme tokens also reach portals. */
html {
  --select-accent-rgb: 239, 119, 101;
  --select-accent: #ef7765;
  --select-accent-strong: #c43726;
  --select-accent-deep: #7b291f;
  --select-accent-contrast: #fff;
  --select-form-surface: #1c2622;
  --select-form-field: #111a16;
  --select-form-text: #f4f2ed;
  --select-form-muted: #b4bdb7;
  --select-form-line: #48534c;
}
html[data-select-accent="purple"] { --select-accent-rgb: 196, 165, 255; --select-accent: #c4a5ff; --select-accent-strong: #7143b8; --select-accent-deep: #3a1870; }
html[data-select-accent="green"] { --select-accent-rgb: 141, 236, 198; --select-accent: #8decc6; --select-accent-strong: #24734f; --select-accent-deep: #0d603f; }
html[data-select-accent="blue"] { --select-accent-rgb: 125, 211, 252; --select-accent: #7dd3fc; --select-accent-strong: #216d9a; --select-accent-deep: #0c4a6e; }
html[data-select-tone="clean"] { --select-form-surface: #fffdfa; --select-form-field: #fff; --select-form-text: #19221f; --select-form-muted: #526059; --select-form-line: #aab4ac; }
body.select-admin { --gold: var(--select-accent); --gold-soft: var(--select-accent); --gold-deep: var(--select-accent-strong); }
.select-admin .app-shell[data-select-accent="coral"] { --select-accent-rgb: 239, 119, 101; --select-accent: #ef7765; --select-accent-strong: #c43726; --select-accent-deep: #7b291f; --select-accent-contrast: #fff; }
.select-admin [data-select-accent="coral"] { --swatch: #ef7765; }
.select-admin .select-accent-options button[data-select-accent="coral"] { background: #ef7765; }
.select-admin .select-appearance:not(.is-collapsed) { width: 240px; }

/* Labels remain outside controls; fields have one quiet edge in every form. */
body.select-admin :is(.form-field,.login-card label,.client-editor,.settings-panel,.profile-edit) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea),
body.select-admin .select-ui-dialog :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--select-form-line) !important;
  border-radius: 7px;
  background: var(--select-form-field) !important;
  color: var(--select-form-text) !important;
  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: none !important;
  backdrop-filter: none;
  transition: border-color .16s ease;
  caret-color: var(--select-accent);
}
body.select-admin :is(input,select,textarea)::placeholder { color: var(--select-form-muted); opacity: 1; }
body.select-admin :is(.form-field,.login-card label,.client-editor,.settings-panel,.profile-edit,.select-ui-dialog) :is(input,select,textarea):focus-visible {
  border-color: var(--select-accent) !important;
  outline: 2px solid var(--select-accent) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}
body.select-admin :is(.form-field,.select-ui-dialog) { color: var(--select-form-text); }
body.select-admin :is(.form-field,.select-ui-dialog) :is(input,select,textarea):disabled { opacity: .55; cursor: not-allowed; }
body.select-admin .select-ui.select-ui-dialog {
  border: 1px solid var(--select-form-line) !important;
  border-radius: 12px;
  background: var(--select-form-surface) !important;
  color: var(--select-form-text) !important;
  box-shadow: 0 22px 64px rgb(0 0 0 / .34) !important;
}
/* Radix owns the surface. The legacy wrapper must not draw another panel. */
body.select-admin .select-ui-dialog .modal-card {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  animation: none;
  color: inherit !important;
}
body.select-admin .select-ui-dialog :is(.hint,.client-picker-hint,.client-picker-status) { color: var(--select-form-muted); }
body.select-admin .select-ui-dialog :is(.primary-button,.ghost-button,.icon-button) { min-height: 38px; border-radius: 7px; font-size: 13px; box-shadow: none !important; backdrop-filter: none; }
body.select-admin .select-ui-dialog .primary-button,
body.select-admin .app-shell[data-select-accent="coral"] .primary-button { background: var(--select-accent-strong) !important; border-color: var(--select-accent-strong) !important; color: #fff !important; }
body.select-admin .select-ui-dialog .primary-button:hover:not(:disabled),
body.select-admin .app-shell[data-select-accent="coral"] .primary-button:hover:not(:disabled) { background: color-mix(in srgb, var(--select-accent-strong) 86%, #000) !important; }
body.select-admin .select-ui-dialog .ghost-button { color: var(--select-form-text); border: 1px solid var(--select-form-line); background: transparent; }
body.select-admin .select-ui-dialog .ghost-button:hover { background: color-mix(in srgb, var(--select-form-text) 7%, transparent); }
body.select-admin .select-ui-dialog button:disabled { opacity: .55; cursor: not-allowed; }
body.select-admin .select-ui-dialog :is(button,a):focus-visible { outline: 2px solid var(--select-accent) !important; outline-offset: 2px; }
body.select-admin .select-ui-dialog input[type="checkbox"] { accent-color: #c43726; }

/* Keep the client editor's intrinsic field widths inside the mobile dialog. */
body.select-admin .select-ui-dialog:has(.client-editor) { width: min(560px, calc(100vw - 32px)) !important; grid-template-columns: minmax(0, 1fr); }
body.select-admin .select-ui-dialog:has(.client-editor) > div,
body.select-admin .client-editor,
body.select-admin .client-editor > * { min-width: 0; }
body.select-admin .client-editor { grid-template-columns: minmax(0, 1fr); }

/* Create/edit: title, client, gallery settings, then a persistent action row. */
body.select-admin .select-ui-dialog:has(.project-editor) { width: min(660px, calc(100vw - 32px)) !important; }
body.select-admin .select-ui-dialog:has(.project-editor) .modal-card { padding: 0; max-height: none; overflow: visible; }
.project-editor { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.project-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid color-mix(in srgb, var(--select-form-line) 55%, transparent); }
body.select-admin .project-editor-header h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.35; font-weight: 700; letter-spacing: normal; }
body.select-admin .project-editor-header .hint { margin: 0; font-size: 12px; line-height: 1.5; }
body.select-admin .project-editor-header .icon-button { flex: 0 0 34px; width: 34px; height: 34px; min-height: 34px; padding: 0; color: var(--select-form-muted); border: 0; background: transparent; font-size: 22px; }
.project-editor-body { min-height: 0; overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.project-editor .form-field { gap: 5px; font-size: 12px; font-weight: 600; }
.project-editor .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.project-client-section { margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--select-form-line) 55%, transparent); }
.project-client-picker { margin-bottom: 12px; }
body.select-admin .project-editor .client-picker-hint { margin: 6px 0 0; font-size: 11px; line-height: 1.5; }
.project-email-toggle { margin-top: 18px; gap: 9px; font-size: 12px; color: var(--select-form-text); }
.project-email-toggle input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; }
body.select-admin .project-editor .project-editor-footer { flex-shrink: 0; margin: 0; padding: 14px 24px; gap: 9px; border-top: 1px solid color-mix(in srgb, var(--select-form-line) 55%, transparent); background: var(--select-form-surface); }
.project-editor .client-picker-options { max-height: 184px; overflow-y: auto; margin-top: 6px; padding: 4px; border: 1px solid var(--select-form-line); border-radius: 7px; background: var(--select-form-field); overscroll-behavior: contain; }
.project-editor .client-picker-option { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; text-align: left; border: 0; border-radius: 4px; background: transparent; color: var(--select-form-text); }
.project-editor .client-picker-option:hover,.project-editor .client-picker-option[aria-selected="true"] { background: color-mix(in srgb, var(--select-accent) 14%, var(--select-form-field)); }
.project-editor .client-picker-option-main { display: grid; min-width: 0; gap: 2px; }
.project-editor .client-picker-option strong { font-size: 12px; font-weight: 650; }
.project-editor .client-picker-option small { font-size: 11px; color: var(--select-form-muted); overflow-wrap: anywhere; }
.client-picker-source { flex-shrink: 0; color: var(--select-form-muted); font-size: 10px; }
body.select-admin .project-editor .client-picker-status { margin: 6px 0; font-size: 11px; }
.client-picker-more,.client-picker-manual { min-height: 32px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--select-form-text); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.client-picker-more:hover,.client-picker-manual:hover { background: color-mix(in srgb, var(--select-form-text) 7%, transparent); }
.project-editor [hidden] { display: none !important; }
.project-client-names { margin-bottom: 12px; }
.project-phone-fields { margin-top: 12px !important; }
.project-no-surname { margin: 8px 0 0; gap: 8px; font-size: 12px; color: var(--select-form-text); }
body.select-admin .project-editor :is(.form-feedback.error,.project-field-error) { color: #eb9898; }
html[data-select-tone="clean"] body.select-admin .project-editor :is(.form-feedback.error,.project-field-error) { color: #a62626; }
.project-field-error { font-size: 11px; line-height: 1.5; }
body.select-admin [data-sonner-toast] { background: var(--select-form-surface) !important; color: var(--select-form-text) !important; border-color: var(--select-form-line) !important; }
body.select-admin [data-sonner-toast] [data-title] { color: var(--select-form-text) !important; }
body.select-admin .project-editor .project-no-surname input { width: 16px; min-height: 16px; height: 16px; margin: 0; padding: 0; }
.project-editor [aria-invalid="true"] { border-color: #dc7575 !important; }
@media (max-width: 600px) {
  body.select-admin .select-ui-dialog:has(.project-editor) { width: calc(100vw - 20px) !important; max-height: calc(100dvh - 20px); }
  .project-editor { max-height: calc(100dvh - 22px); }
  .project-editor-header { padding: 18px 16px 14px; }
  .project-editor-body { padding: 16px; }
  body.select-admin .project-editor .project-editor-footer { padding: 12px 16px; }
  body.select-admin .project-editor :is(input,select) { font-size: 16px; }
  .project-client-section > .field-grid { grid-template-columns: 1fr; }
  .project-settings-grid { gap: 12px !important; }
  .client-picker-source { max-width: 64px; text-align: right; }
  .project-editor-footer .primary-button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.select-admin .select-ui-dialog * { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* Readable shared controls, including native menus and light-theme portals. */
html[data-select-tone="clean"] body.select-admin { color-scheme: light; }
html:has(body.select-admin),body.select-admin { background: #101916; }
body.select-admin :is(.boot-loader,.login-shell) { background: #101916; }
body.select-admin .login-card { background: #19221f !important; }
body.select-admin :is(.form-field,.field)>span { color: var(--select-form-text); }
body.select-admin .view-header .eyebrow,body.select-admin .admin-sidebar-brand small { display: none; }
body.select-admin .select-ui.select-ui-dialog { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.select-admin .project-editor-header .icon-button svg { width: 18px; height: 18px; }
body.select-admin :is(.project-editor-body,.client-picker-options) { scrollbar-width: thin; scrollbar-color: var(--select-form-line) transparent; }
body.select-admin ::selection { color: var(--select-form-text); background: color-mix(in srgb, var(--select-accent) 30%, var(--select-form-field)); }
body.select-admin :is(.data-table,.client-table,.pagination-meta) { font-variant-numeric: tabular-nums; }
@media (max-width:600px) {
  body.select-admin :is(.form-field,.login-card label,.client-editor,.settings-panel,.profile-edit,.select-ui-dialog) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { font-size:16px; }
}

/* Win the existing glass selector without leaking its tint into form portals. */
body.select-admin .project-editor .client-picker-option { flex-direction: row; align-items: center; text-align: left; }
body.select-admin .project-editor .client-picker-option small { text-align: left; }
body.select-admin .project-editor .project-email-toggle input { min-height: 16px; height: 16px; padding: 0; border: 0; box-shadow: none; }

/* Keep project metadata and workflow status readable across every accent. */
body.select-admin .project-card :is(.project-card-client,.project-card-meta) { color: #b8beb9; }
html[data-select-tone="clean"] body.select-admin .project-card :is(.project-card-client,.project-card-meta) { color: #526059; }
html[data-select-tone="clean"] body.select-admin .status-pill.warning { color: #805100; border-color: #b88a36; background: #fff1d6; }
body.select-admin .project-purge-notice { color: var(--select-form-muted); border-color: var(--select-form-line); background: transparent; }

/* Let the storage workspace shrink inside the mobile canvas. */
body.select-admin :is(.acervo-workspace,.acervo-workspace > *, .acervo-content,.acervo-explorer) { min-width: 0; }
@media (max-width: 600px) {
  body.select-admin .acervo-workspace-head { flex-direction: column; gap: 14px; align-items: stretch; }
  body.select-admin .acervo-plan-pill { width: 100%; min-width: 0; box-sizing: border-box; }
  body.select-admin .acervo-plan-pill > span:first-child { white-space: nowrap; }
  body.select-admin .acervo-plan-pill .acervo-plan-usage { white-space: normal; text-align: right; }
  body.select-admin .acervo-controls { max-width: 100%; overflow-x: auto; }
}

/* Authentication owns its palette and spacing, independent of workspace themes. */
body.select-admin #boot-loader { position: fixed; }
#login-view {
  --select-form-field: #111a16;
  --select-form-text: #f4f2ed;
  --select-form-muted: #b4bdb7;
  --select-form-line: #55635b;
  --select-accent: #ef7765;
  --gold-soft: #ef7765;
  box-sizing: border-box;
  min-height: 100dvh;
  padding: 24px 16px;
}
#auth-card {
  width: 420px !important;
  max-width: 100% !important;
  padding: 30px 32px;
  gap: 0;
  border: 1px solid #3d4c43 !important;
  border-radius: 16px;
  background: #19221f !important;
  box-shadow: 0 18px 60px #0003 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #f4f2ed;
}
#auth-card .select-login-brand { width: 142px; height: auto; margin: 0 0 22px; }
#auth-card h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: normal; }
#auth-card .login-copy { margin: 0 0 24px; max-width: none; color: #b4bdb7; font-size: 13px; line-height: 1.55; }
#auth-card form { display: grid; gap: 14px; }
#auth-card label { color: #d4dcd6; font-size: 13px; line-height: 1.5; gap: 6px; }
#auth-card input:not([type="checkbox"]) { min-height: 46px; padding: 10px 12px; font-size: 16px; border-radius: 8px; }
#auth-card .password-field input { padding-right: 52px; }
#auth-card .password-toggle {
  position: absolute;
  top: 50%;
  right: 1px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d4dcd6;
  box-shadow: none;
}
#auth-card .password-toggle:hover,#auth-card .password-toggle.is-on { color: #ef7765; background: #ef776514; }
#auth-card .password-toggle svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#auth-card .password-toggle svg[hidden] { display: none; }
#auth-card .login-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -6px; }
#auth-card .login-remember { min-height: 44px; cursor: pointer; font-size: 12px; gap: 7px; }
#auth-card .login-remember input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; accent-color: #c43726; }
#auth-card .login-recovery { padding: 4px 0; min-height: 44px; font-size: 12px; white-space: nowrap; color: #d4dcd6 !important; }
#auth-card .primary-button { min-height: 46px; border: 1px solid #c43726 !important; background: #c43726 !important; color: #fff !important; border-radius: 8px; font-size: 14px; font-weight: 700; }
#auth-card .primary-button:hover:not(:disabled) { background: #a92f20 !important; }
#auth-card .primary-button:disabled { opacity: .65; cursor: wait; }
#auth-card .login-divider { color: #b4bdb7; }
#auth-card .google-login-button { min-height: 46px; border-radius: 8px; }
#auth-card .login-secondary-actions { margin-top: 6px; }
#auth-card .login-signup { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 8px; padding-top: 10px; }
#auth-card .login-signup>span { color: #b4bdb7; }
#auth-card .login-create-account { min-height: 44px; padding: 4px 0; border: 0 !important; background: transparent !important; font-size: 13px; color: #ef7765 !important; gap: 5px; }
#auth-card .login-create-account svg { width: 16px; height: 16px; }
#auth-card .login-feedback { margin: 16px 0 0; line-height: 1.5; }
#auth-card #reset-code-fields { display: grid; gap: 14px; }
#auth-card .link-button { color: #d4dcd6; }
#auth-card :is(button,a,input):focus-visible { outline: 2px solid #ef7765 !important; outline-offset: 3px; }
@media (max-width: 480px) {
  #login-view { padding: 20px 12px; }
  #auth-card { padding: 26px 22px; }
  #auth-card h1 { font-size: 24px; }
  #auth-card .login-options { gap: 4px; }
  #auth-card .login-remember,#auth-card .login-recovery { font-size: 11px; }
}

/* Stable photo navigation: preserve the current page while the next arrives. */
body.select-admin .photo-grid.is-refreshing { opacity: .7; }
body.select-admin .photo-grid { transition: opacity 160ms ease; }
body.select-admin .photo-load-status { display: flex; align-items: center; gap: 10px; height: 44px; margin-block: 4px; font-size: .85rem; color: var(--text-muted, #a6b3c4); }
body.select-admin .photo-load-status.is-error { color: var(--text, #eef3fa); }
body.select-admin .pagination-page.is-active { color: #fff !important; background: var(--select-accent-strong, #c43726) !important; border-color: var(--select-accent-strong, #c43726); }
body.select-admin .photo-grid-skeleton { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; grid-column: 1 / -1; width: 100%; }
body.select-admin .photo-skeleton-tile { display: block; aspect-ratio: 1; border-radius: 12px; background: color-mix(in srgb, currentColor 9%, transparent); }
@media(max-width:600px) { body.select-admin .photo-grid-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(prefers-reduced-motion:reduce) { body.select-admin .photo-grid { transition: none; } }

/* Quiet work surfaces; keep the glass on navigation and floating controls. */
body.select-admin .app-shell { --lq-shadow: 0 5px 16px rgb(0 0 0 / 10%); --lq-radius: 14px; }
body.select-admin .app-shell .view-root:not(.is-acervo-view) {
  background: color-mix(in srgb, var(--select-bg) 65%, var(--select-form-surface));
  border-color: transparent;
  box-shadow: none;
}
body.select-admin .app-shell .view-header h1 { font-weight: 700; letter-spacing: normal; line-height: 1.2; }
body.select-admin .app-shell .view-root :is(.board-column, .panel-card, .gallery-summary-card, .gallery-clients-panel, .settings-panel, .profile-card, .clients-panel, .finance-history, .credits-summary) {
  background: var(--select-form-surface) !important;
  border-color: color-mix(in srgb, var(--select-form-muted) 25%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.select-admin .board-column-head { padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--select-form-muted) 18%, transparent); }
body.select-admin .board-column-head strong { font-size: 14px; font-weight: 700; letter-spacing: normal; }
body.select-admin .board-column-empty { border: 0; padding: 8px 0; background: transparent; text-align: start; margin: 4px 0; color: var(--select-form-muted); font-size: 13px; line-height: 1.55; }
body.select-admin .project-card .project-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}
body.select-admin .photo-tile-preview {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: var(--select-form-field);
  cursor: zoom-in;
}
body.select-admin .photo-tile-preview:disabled { cursor: default; }
body.select-admin .photo-tile .photo-tile-preview img { object-fit: contain; }
body.select-admin .photo-tile-preview:focus-visible { outline: 3px solid var(--select-accent); outline-offset: -3px; }
body.select-admin .photo-tile-badge { pointer-events: none; }
body.select-admin .photo-tile:focus-within .photo-tile-actions { opacity: 1; }
@media (hover: none) { body.select-admin .photo-tile-actions { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  body.select-admin .select-ui-dialog :is(.primary-button,.ghost-button,.icon-button) {
    transition: scale 130ms ease-out, background-color 160ms, border-color 160ms;
  }
  body.select-admin .select-ui-dialog button:active:enabled { scale: .97; }
}

/* Let the header allocate space for the optional owner shortcut and the open palette. */
@media (min-width: 761px) {
  body.select-admin .admin-mobilebar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-inline: clamp(16px, 3vw, 48px);
  }
  body.select-admin .admin-mobilebar .page-breadcrumb { margin-inline-end: auto; }
  body.select-admin .admin-mobilebar :is(#select-appearance, #topbar-saas-dashboard:not([hidden]), #topbar-profile-menu) {
    position: relative;
    inset: auto;
    margin: 0;
    flex-shrink: 0;
  }
}
body.select-admin .app-shell {
  --control-edge: color-mix(in srgb, var(--select-form-text) 19%, transparent);
  --control-fill: color-mix(in srgb, var(--select-form-text) 5%, var(--select-form-field));
  --project-action-fill: var(--select-accent);
  --project-action-ink: #151b18;
}
body.select-admin .app-shell[data-select-tone="clean"] {
  --project-action-fill: color-mix(in srgb, var(--select-accent) 55%, #101612);
  --project-action-ink: #fff;
}
body.select-admin .app-shell .admin-mobilebar .topbar-profile,
body.select-admin .admin-mobilebar #select-appearance.is-collapsed,
body.select-admin .projects-search .bencho-search-skin {
  border: 1px solid var(--control-edge) !important;
  border-radius: 11px;
  background: var(--control-fill) !important;
  color: var(--select-form-text) !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.select-admin .admin-mobilebar .topbar-profile,
body.select-admin #select-appearance.is-collapsed { width: 44px; height: 44px; }
body.select-admin #select-appearance.is-collapsed { padding: 0; }
body.select-admin #select-appearance.is-collapsed .select-appearance-toggle {
  flex: 0 0 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.select-admin #select-appearance.is-collapsed .select-appearance-chevron { display: none; }
body.select-admin .admin-mobilebar .topbar-profile svg { width: 18px; height: 18px; }
body.select-admin .projects-search .bencho-search-lens { stroke: var(--select-form-muted); }
body.select-admin .app-shell .view-root:has(> .projects-toolbar-host) { background: transparent; }
body.select-admin .app-shell .view-header-actions .primary-button {
  min-height: 44px;
  padding-inline: 17px;
  border: 1px solid transparent !important;
  border-radius: 10px;
  background: var(--project-action-fill) !important;
  color: var(--project-action-ink) !important;
  font-weight: 650;
  box-shadow: none !important;
  backdrop-filter: none;
}
body.select-admin .app-shell .view-header-actions .primary-button:disabled { opacity: .55; }
body.select-admin .admin-mobilebar .topbar-profile:is(:hover,[data-state="open"]),
body.select-admin .admin-mobilebar #select-appearance.is-collapsed:hover,
body.select-admin .projects-search .bencho-search-skin:is(:hover,:focus-within) {
  border-color: var(--select-form-muted) !important;
}
body.select-admin .app-shell .view-header-actions .primary-button:hover:enabled {
  background: color-mix(in srgb, var(--project-action-fill) 90%, var(--project-action-ink)) !important;
}
body.select-admin .app-shell :is(.view-header-actions .primary-button,.admin-mobilebar .topbar-profile):focus-visible,
body.select-admin #select-appearance:has(.select-appearance-toggle:focus-visible) {
  outline: 2px solid var(--select-form-text);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  body.select-admin .app-shell :is(.view-header-actions .primary-button,.admin-mobilebar .topbar-profile):active { scale: .97; }
}

/* Project tools and settings share the same quiet control hierarchy. */
body.select-admin .app-shell .view-root .primary-button {
  min-height: 44px;
  border: 1px solid transparent !important;
  border-radius: 10px;
  background: var(--project-action-fill) !important;
  color: var(--project-action-ink) !important;
  box-shadow: none !important;
  font-weight: 650;
}
body.select-admin .app-shell .view-root .primary-button:hover:enabled {
  background: color-mix(in srgb, var(--project-action-fill) 88%, var(--project-action-ink)) !important;
}
body.select-admin .app-shell .view-root :is(.secondary-button,.ghost-button) {
  background: var(--control-fill) !important;
  border: 1px solid var(--control-edge) !important;
  color: var(--select-form-text) !important;
  box-shadow: none !important;
}
body.select-admin .app-shell .view-root :is(.secondary-button,.ghost-button):hover:enabled { border-color: var(--select-form-muted) !important; }
body.select-admin .view-root :is(.primary-button,.secondary-button,.ghost-button,.danger-button):focus-visible {
  outline: 2px solid var(--select-form-text);
  outline-offset: 2px;
}
body.select-admin :is(.section-nav,.personalization-tabs) button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
body.select-admin .view-root .credits-pricing-hero h1 { font-size: clamp(28px,3.2vw,44px); line-height: 1.15; }
body.select-admin .view-root .ops-card {
  color: var(--select-form-text);
  background: var(--select-form-surface);
  border-color: var(--control-edge);
}
body.select-admin .view-root .ops-card .ops-card {
  background: transparent;
  border-width: 1px 0 0;
  border-radius: 0;
  padding-inline: 0;
}
body.select-admin .ops-card .ops-muted, body.select-admin .ops-card summary::marker { color: var(--select-form-muted); }
body.select-admin .ops-card summary { min-height: 44px; padding-block: 11px; box-sizing: border-box; }
body.select-admin .ops-card :is(select, input:not([type=checkbox])) {
  background: var(--select-form-field);
  color: var(--select-form-text);
  border-color: var(--select-form-line);
}
body.select-admin .ops-photo img { object-fit: contain; background: var(--control-fill); }
.studio-confirm {
  box-sizing: border-box;
  width: min(26rem,calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px,4vw,28px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--select-form-surface);
  color: var(--select-form-text);
  border: 1px solid var(--select-form-line);
  border-radius: 16px;
  box-shadow: 0 18px 54px #0004;
}
.studio-confirm::backdrop { background: rgb(9 14 12 / 68%); }
.studio-confirm h2 { margin: 0; font-size: 1.2rem; line-height: 1.45; overflow-wrap: anywhere; }
.studio-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.studio-confirm-actions button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--select-form-line);
  border-radius: 9px;
  color: var(--select-form-text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.studio-confirm-actions .confirm-danger { background: #b33525; color: white; border-color: transparent; }
.studio-confirm-actions .confirm-action { background: var(--select-form-text); color: var(--select-form-surface); }
.studio-confirm-actions button:focus-visible { outline: 2px solid var(--select-form-text); outline-offset: 2px; }
body:has(.studio-confirm:modal) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .studio-confirm[open] { animation: studio-confirm-in 150ms ease-out; }
  @keyframes studio-confirm-in { from { opacity: 0; transform: translateY(5px); } }
  body.select-admin .view-root :is(.primary-button,.secondary-button,.ghost-button):enabled:active { scale: .985; }
}

body.select-admin .acervo-folder-dialog[data-slot="dialog-content"] {
  width: min(26rem, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--select-form-line);
  border-radius: 16px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--select-form-surface);
  color: var(--select-form-text);
}
body.select-admin .app-shell[data-select-tone="clean"] .admin-bottomnav :is(a,button) { color: var(--select-form-muted); }
body.select-admin .app-shell[data-select-tone="clean"] .admin-bottomnav :is(a,button).active {
  background: var(--project-action-fill);
  color: var(--project-action-ink);
}
@media (prefers-reduced-motion: reduce) {
  body.select-admin :is(.acervo-folder-dialog,.acervo-folder-dialog-overlay)[data-state] { animation: none !important; }
}

body.select-admin .acervo-folder-dialog .acervo-folder-dialog-input input {
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
body.select-admin .acervo-folder-dialog .acervo-folder-dialog-input:focus-within {
  outline: 2px solid var(--select-form-text);
  outline-offset: 2px;
  box-shadow: none !important;
}
body.select-admin .acervo-folder-dialog .acervo-folder-dialog-footer button { min-height: 44px; border-radius: 9px; }

/* One work surface from navigation through to the inspector. Floating UI keeps its own layer. */
html:not([data-select-tone="clean"]) body.select-admin {
  --select-form-surface: #202223;
  --select-form-field: #181a1b;
  --select-form-text: #f4f3ef;
  --select-form-muted: #b4bab7;
  --select-form-line: #545a57;
}
body.select-admin .app-shell {
  --desk-canvas: #17191a;
  --desk-sidebar: #131516;
  --desk-edge: color-mix(in srgb, var(--select-form-text) 16%, var(--desk-canvas));
  --desk-hover: color-mix(in srgb, var(--select-form-text) 7%, var(--select-form-surface));
}
body.select-admin .app-shell[data-select-tone="clean"] {
  --desk-canvas: #f5f4f0;
  --desk-sidebar: #eeede9;
}
body.select-admin .app-shell .admin-main,
body.select-admin .app-shell .view-root:not(.is-acervo-view) {
  background: var(--desk-canvas);
  box-shadow: none;
}
body.select-admin .admin-main::before { content: none; }
body.select-admin .app-shell[data-select-tone] .admin-sidebar[data-slot="sidebar"],
body.select-admin .app-shell[data-select-tone] .admin-bottomnav {
  background: var(--desk-sidebar) !important;
  border-color: var(--desk-edge);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.select-admin .app-shell[data-select-tone] .admin-sidebar-nav a[aria-current="page"] {
  background: color-mix(in srgb,var(--select-accent) 12%,var(--desk-sidebar)) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
body.select-admin .app-shell .view-root :is(.referral-card,.referral-stats > div,.referral-rules,.profile-product,.personalization-section,.finance-summary article,.ops-card,.acervo-setup,.acervo-browser,.credits-explainer,.acervo-pricing-card) {
  background: var(--select-form-surface) !important;
  border-color: var(--desk-edge) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.select-admin .view-root :is(h1,h2) { text-wrap: balance; }
body.select-admin .app-shell .view-header h1 { font-size: clamp(1.6rem, 2.35vw, 2.125rem); }
body.select-admin .app-shell .view-root :is(.secondary-button,.primary-button,.ghost-button,.icon-button,input,select,textarea,.section-nav,.tabs,.personalization-tabs) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.select-admin .app-shell .view-root .project-service-filter {
  inline-size: min(100%,18rem);
  justify-self: start;
}
body.select-admin .view-root .service-row { gap: 8px 14px; padding-block: 12px; }
body.select-admin .service-row .link-button { font-variant-numeric: tabular-nums; text-underline-offset: .22em; }
body.select-admin .service-row strong { overflow-wrap: anywhere; }
body.select-admin .service-empty { color: var(--select-form-muted); padding: 12px; }
body.select-admin .view-root :is(.acervo-plan-pill,.acervo-controls,.acervo-content,.acervo-locations,.acervo-card:not(.is-drop-target):not(.is-selected)) {
  background: var(--select-form-field) !important;
  border-color: var(--desk-edge) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.select-admin .app-shell .acervo-controls {
  border-width: 0 0 1px;
  border-radius: 0;
  background: var(--select-form-surface) !important;
}
body.select-admin .acervo-path-search .acervo-breadcrumbs {
  border: 0;
  background: transparent;
  padding-inline: 0;
}
body.select-admin .app-shell .acervo-card:not(.is-selected):not(.is-drop-target):focus-within {
  outline: 2px solid var(--select-accent);
  outline-offset: -2px;
}
@media (hover:hover) {
  body.select-admin .view-root .acervo-card:not(.is-selected):not(.is-drop-target):hover { background: var(--desk-hover) !important; }
}
@media (max-width:900px) {
  body.select-admin .acervo-locations.is-collapsed { width: 100%; height: 50px; max-height: 50px; }
  body.select-admin .acervo-locations.is-collapsed .acervo-locations-head { min-height: 50px; padding: 2px 8px 2px 12px; }
  body.select-admin .acervo-locations.is-collapsed .acervo-locations-head > div { flex: 1; max-width: none; opacity: 1; }
  body.select-admin .acervo-locations.is-collapsed .acervo-locations-toggle { margin: 0; }
}
@media (max-width:600px) {
  body.select-admin .app-shell .view-header:has(.view-header-actions > .primary-button:only-child) {
    display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 8px;
  }
  body.select-admin .view-header:has(.view-header-actions > .primary-button:only-child) .view-header-actions { width: auto; }
}

body.select-admin .studio-settings .settings-group {
  min-inline-size: 0;
  margin: 0;
  padding: 0 0 clamp(16px,2vw,24px);
  border: 0;
  border-bottom: 1px solid var(--desk-edge);
}
body.select-admin .settings-group legend {
  width: 100%; padding: 0 0 12px; color: var(--select-form-text);
  font-size: 17px; font-weight: 650; line-height: 1.4;
}
body.select-admin .app-shell .acervo-card:has(> input:checked) {
  border-color: var(--select-accent) !important;
  outline: 1px solid var(--select-accent); outline-offset: -2px;
}

/* Keep scrolled fields from showing through the navigation controls. */
body.select-admin .app-shell[data-select-tone] .admin-mobilebar {
  background: var(--desk-canvas) !important;
  border-bottom: 1px solid var(--desk-edge) !important;
}
@media (min-width:921px) {
  body.select-admin .app-shell .admin-mobilebar {
    inset-block-start: 0;
    min-height: calc(64px + env(safe-area-inset-top));
    padding-top: calc(6px + env(safe-area-inset-top));
  }
}
body.select-admin .select-ui-dialog :is(h1,h2,h3,legend)[tabindex="-1"]:focus { outline: none; }

body.select-admin .project-card-thumb {
  width: 100%; height: 80px; display: block; object-fit: contain;
  background: var(--desk-canvas); border-radius: 5px;
}
body.select-admin .project-card-thumb[hidden] { display: none; }

.gallery-summary-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
