/* Private UI. Artwork and exported media keep their own colours. */
@font-face{font-family:Montserrat;src:url('/assets/fonts/Montserrat-Variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
body[data-admin-refresh]{
 --admin-ground:#0d0d0c;--admin-surface:#191917;--admin-raised:#232320;--admin-hover:#2c2b27;
 --admin-ink:#f2eee6;--admin-muted:#b4b0a5;--admin-faint:#9d998f;--admin-rule:#34332e;
 --admin-control:#8b877b;--admin-accent:#e4b56a;--admin-accent-ink:#251b0e;--admin-negative:#f2a591;
 --ink:var(--admin-ink);--muted:var(--admin-muted);--line:var(--admin-rule);--paper:var(--admin-ground);
 --white:var(--admin-surface);--cream:var(--admin-surface);--pine:var(--admin-accent);--gold:var(--admin-accent);
 --sage:var(--admin-raised);--lime:var(--admin-raised);--rr-pine:var(--admin-ink);--rr-teal:var(--admin-accent);--rr-violet:var(--admin-muted);--rr-line:var(--admin-rule);
 --rr-white:var(--admin-surface);--rr-ink:var(--admin-ink);--rr-green:var(--admin-accent);--rr-green-hover:var(--admin-accent-hover);--rr-soft:var(--admin-raised);--rr-blue:var(--admin-raised);--rr-border:var(--admin-rule);--rr-muted:var(--admin-muted);--rr-focus:var(--admin-accent);--rr-shadow:none;
 --work-ink:var(--admin-ink);--work-muted:var(--admin-muted);--work-line:var(--admin-rule);--work-paper:var(--admin-surface);--work-soft:var(--admin-raised);
 --st-ink:var(--admin-ink);--st-accent:var(--admin-accent);--st-line:var(--admin-rule);--desk-ink:var(--admin-ink);--desk-plum:var(--admin-accent);--desk-line:var(--admin-rule);
 margin:0;background:var(--admin-ground);color:var(--admin-ink);font:16px/1.55 Montserrat,Arial,sans-serif;color-scheme:dark;
 -webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;accent-color:var(--admin-accent);caret-color:var(--admin-accent);scrollbar-color:#69665c var(--admin-ground)

 --admin-selection:#77572c;--admin-selection-ink:#fff8eb;--admin-count-bg:#39372f;--admin-avatar-bg:#3a3327;--admin-avatar-ink:#f1c581;--admin-selected:#302a20;--admin-accent-hover:#f0c784;--admin-danger-bg:#32221e;--admin-danger-border:#9f6657;--admin-notice-bg:#30231d;--admin-notice-border:#8f6252;--admin-notice-ink:#f1b8a6;--admin-step-bg:#3b372e;--admin-success-ink:#9cbea4;--admin-skeleton:#373630;--admin-available-bg:#192a36;--admin-available-hover:#213746;--admin-available-accent:#8cb5db;--admin-available-badge:#233340;--admin-available-ink:#c0def3;--admin-available-border:#6387a4;--admin-reserved-bg:#30271a;--admin-reserved-hover:#3b3020;--admin-reserved-ink:#f0d197;--admin-reserved-border:#9c7f4d;--admin-sold-bg:#1c2d22;--admin-sold-hover:#26372a;--admin-sold-ink:#c1dfc8;--admin-sold-border:#71957a;--admin-pending-bg:#2d222b;--admin-pending-hover:#382d34;--admin-pending-accent:#d2a9ba;--admin-pending-ink:#eac7d7;--admin-pending-border:#a17a8b;--admin-neutral-accent:#99968c;--admin-neutral-badge:#34332f;--admin-neutral-ink:#d3d0c7;--admin-neutral-border:#77736a;--admin-coral-bg:#3b2922;--admin-coral-ink:#f2ba9e;--admin-coral-border:#9e735d;
}
body[data-admin-refresh] *,body[data-admin-refresh] *::before,body[data-admin-refresh] *::after{box-sizing:border-box}
body[data-admin-refresh] :is(.login-intro h1,.wa-intro h1,.wa-panel h2,.wa-review-head h2){font-family:inherit}
body[data-admin-refresh] ::selection{background:var(--admin-selection);color:var(--admin-selection-ink)}
/* 16 + 224 + 16 + flexible canvas + 24 = viewport; canvas owns its content gutter. */
body[data-admin-refresh] .portal-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:16px;min-height:100dvh;padding:16px 24px 0 16px;align-items:start}
body[data-admin-refresh] .sidebar{position:sticky;top:16px;left:auto;bottom:auto;align-self:start;width:224px;height:calc(100dvh - 32px);min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;padding:22px 14px 16px;background:var(--admin-surface);color:var(--admin-ink);border:1px solid var(--admin-rule);border-radius:18px;box-shadow:none;z-index:12}
body[data-admin-refresh] .sidebar .brand{display:flex;gap:10px;font-size:13px;line-height:1.25;letter-spacing:.02em;color:var(--admin-ink);padding:0 5px}
body[data-admin-refresh] .sidebar .brand>span{color:var(--admin-ink)}
body[data-admin-refresh] .sidebar .brand-symbol{background:#f1eadb;padding:4px;border-radius:10px;flex:none}
body[data-admin-refresh] .sidebar .brand img{width:34px;height:34px;object-fit:contain;border-radius:0;transform:none}
body[data-admin-refresh] .sidebar .brand-symbol img{filter:none}
body[data-admin-refresh] .sidebar .brand small{color:var(--admin-muted);font-size:10px;line-height:1.4;letter-spacing:.03em;margin-top:5px}
body[data-admin-refresh] .sidebar-label{margin:14px 10px 0;font-size:11px;font-weight:400;line-height:1.6;letter-spacing:0;color:var(--admin-muted)}
body[data-admin-refresh] .sidebar nav{display:flex;flex-direction:column;gap:5px}
body[data-admin-refresh] .sidebar .nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:11px 12px;background:transparent;border:1px solid transparent;border-radius:9px;color:var(--admin-muted);text-decoration:none;font-family:inherit;font-size:14px;font-weight:500;line-height:1.4;text-align:left;box-shadow:none;white-space:normal;transition:background 140ms ease-out,color 140ms ease-out}
body[data-admin-refresh] .sidebar .nav-item.active,body[data-admin-refresh] .sidebar .nav-item[aria-current=page]{background:var(--admin-hover);color:var(--admin-ink);font-weight:700;border-color:transparent;box-shadow:none}
body[data-admin-refresh] .sidebar .nav-item:not(.active){color:var(--admin-muted)}
body[data-admin-refresh] .sidebar .nav-count{margin-left:auto;background:var(--admin-count-bg);color:var(--admin-ink);font-size:12px;padding:2px 6px}
body[data-admin-refresh] .sidebar .rr-nav-icon{width:18px;height:18px;color:inherit;padding:0;background:none;flex:none}
body[data-admin-refresh] .sidebar .sidebar-note{margin:18px 5px 0;padding:18px 5px 0;border:0;border-top:1px solid var(--admin-rule);border-radius:0;background:transparent}
body[data-admin-refresh] .sidebar-note>span{color:var(--admin-muted)}body[data-admin-refresh] .sidebar-note strong{font-size:12px;color:var(--admin-ink)}body[data-admin-refresh] .sidebar-note p{font-size:12px;line-height:1.65;color:var(--admin-muted)}
body[data-admin-refresh] .sidebar .user-box{margin-top:auto;padding:18px 3px 0;border-top:1px solid var(--admin-rule);color:var(--admin-ink);gap:9px;min-width:0}
body[data-admin-refresh] .user-box>div{min-width:0;overflow-wrap:anywhere}body[data-admin-refresh] .user-box strong{font-size:12px;color:var(--admin-ink)}body[data-admin-refresh] .user-box small{font-size:11px;color:var(--admin-muted);line-height:1.5}
body[data-admin-refresh] .avatar{width:32px;height:32px;border-radius:10px;background:var(--admin-avatar-bg);color:var(--admin-avatar-ink);font-size:11px}
body[data-admin-refresh] .user-box button{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--admin-rule);border-radius:9px;background:transparent;color:var(--admin-ink)}
body[data-admin-refresh] .portal-main{display:flex;flex-direction:column;margin-left:0;width:100%;min-width:0;min-height:calc(100dvh - 16px);padding:0;background:var(--admin-ground)}
body[data-admin-refresh] .portal-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:58px;margin-bottom:10px;padding:4px 12px 14px;background:transparent;color:var(--admin-muted);border:0;box-shadow:none;font-size:13px}
body[data-admin-refresh] .portal-topbar strong{color:var(--admin-ink);font-weight:600}body[data-admin-refresh] .portal-topbar .badge{background:transparent;color:var(--admin-muted);padding:0;font-size:12px}body[data-admin-refresh] .portal-topbar a{color:var(--admin-ink);text-underline-offset:4px}
body[data-admin-refresh] .workspace{flex:1;width:100%;max-width:none;min-width:0;min-height:calc(100dvh - 142px);margin:0;padding:26px;background:var(--admin-ground);color:var(--admin-ink);border:0;border-radius:0;box-shadow:none}
body[data-admin-refresh] :is(.workspace,.shell,.rr-link-main) :is(h1,h2,h3,h4){font-family:inherit;color:var(--admin-ink);letter-spacing:-.02em;line-height:1.3}
body[data-admin-refresh] :is(.workspace,.shell,.rr-link-main) h1{font-size:clamp(25px,2.4vw,32px);font-weight:700;margin:0 0 10px}body[data-admin-refresh] :is(.workspace,.shell,.rr-link-main) h2{font-size:21px;font-weight:650}body[data-admin-refresh] :is(.workspace,.shell,.rr-link-main) h3{font-size:18px;font-weight:650}
body[data-admin-refresh] :is(.workspace-head,.case-heading,.studio-intro,.inventory-desk .desk-heading){padding:0;margin:0 0 24px;align-items:start;border:0;background:transparent;gap:20px}
body[data-admin-refresh] :is(.workspace-head,.case-heading,.studio-intro,.inventory-desk .desk-heading) p{font-size:14px;line-height:1.65;color:var(--admin-muted);max-width:75ch}
body[data-admin-refresh] :is(.eyebrow,.file-label,.desk-eyebrow){font-size:11px;color:var(--admin-muted);font-weight:500;letter-spacing:.02em;text-transform:none}
body[data-admin-refresh] :is(.muted,.form-help,.scope-note,.document-help,.hint,.fine,.hero-lead,.library-filter-summary,.library-caption,.library-row small,.doc-meta,.case-sidebar p,.setup-path p,.queue-operation small,.operation-card>p,.operation-progress small,.workspace-shortcut p,.workspace-empty p,.account-card p,.account-card dt,.case-data dt,.document-count,.library-info small){color:var(--admin-muted);line-height:1.65}
body[data-admin-refresh] :is(.panel,.table-box,.table-wrap,.account-card,.role-card,.operation-card,.workspace-shortcut,.case-directory,.workspace-permissions,.operation-context,.document-workspace,.library-search,.document-group,.studio-form,.project-card,.scene,.lot-row,.studio-output,.studio-project,.studio-auxiliary,.visit-panel,.admin-form,.photo-card,.rr-link-card,.rr-workshop-help){background:var(--admin-surface);color:var(--admin-ink);border:1px solid var(--admin-rule);border-radius:12px;box-shadow:none;min-width:0}
body[data-admin-refresh] :is(.panel,.account-card,.operation-card,.workspace-shortcut,.case-directory,.studio-output,.admin-form,.visit-panel){padding:22px}
body[data-admin-refresh] :is(.workspace-columns,.workspace-launch,.workspace-shortcuts,.case-card-grid,.admin-section,.marketing-layout){gap:20px;align-items:start}
body[data-admin-refresh] :is(.workspace-launch>a,.rr-shortcut){background:var(--admin-surface);color:var(--admin-ink);border:1px solid var(--admin-rule);border-radius:12px;box-shadow:none;padding:20px;min-width:0}
body[data-admin-refresh] .workspace-launch>a::before{display:none}body[data-admin-refresh] .workspace-launch strong{font-size:20px;font-weight:600}
body[data-admin-refresh] .workspace-launch :is(span,b,p),body[data-admin-refresh] .rr-shortcut small{color:var(--admin-muted);font-size:13px;letter-spacing:0;text-transform:none}
body[data-admin-refresh] .rr-shortcut>span{width:22px;height:22px;padding:0;background:none;color:var(--admin-muted);border-radius:0}
body[data-admin-refresh] :is(.work-metrics,.metrics,.desk-shortcuts){gap:0;background:var(--admin-surface);border:1px solid var(--admin-rule);border-radius:12px;overflow:hidden;margin-bottom:24px}
body[data-admin-refresh] :is(.work-metrics>button,.metric,.inventory-desk .desk-metric,.report-buckets button){background:transparent;color:var(--admin-ink);border:0;border-right:1px solid var(--admin-rule);border-radius:0;box-shadow:none;padding:19px;min-height:104px;text-align:left}
body[data-admin-refresh] :is(.work-metrics>button,.metric,.inventory-desk .desk-metric):last-child{border-right:0}
body[data-admin-refresh] :is(.work-metrics strong,.metric strong,.inventory-desk .desk-metric strong,.report-buckets strong){font-size:30px;font-weight:600;line-height:1.2;color:var(--admin-ink);font-variant-numeric:tabular-nums}
body[data-admin-refresh] :is(.work-metrics span,.metric>div>span,.inventory-desk .desk-metric>span,.inventory-desk .desk-metric small){color:var(--admin-muted);font-size:13px;font-weight:400}
body[data-admin-refresh] .inventory-desk .desk-metric svg{color:var(--admin-muted)}body[data-admin-refresh] :is(.work-metrics>button,.inventory-desk .desk-metric)[aria-pressed=true]{background:var(--admin-raised);outline:1px solid var(--admin-accent);outline-offset:-1px}
body[data-admin-refresh] .queue-operation{background:transparent;color:var(--admin-ink);border:0;border-bottom:1px solid var(--admin-rule);border-radius:0;padding:17px 0;min-height:76px;box-shadow:none}body[data-admin-refresh] .queue-operation-icon{background:none;color:var(--admin-muted);border-radius:0;box-shadow:none}
body[data-admin-refresh] :is(.queue-document,.review-composer,.document-queue,.pdf-stage,.case-work-summary,.review-note,.studio-note,.status-note,.report-source,.desk-source,.desk-empty,.desk-other,.creative-note,.creative-advanced,.creative-library,.history-unavailable,.learning-grid article,.cs-import,.cs-photo-process,.rr-welcome-message,.rr-editor-steps button){background:var(--admin-raised);color:var(--admin-muted);border-color:var(--admin-rule);box-shadow:none}
body[data-admin-refresh] .queue-document.selected{background:var(--admin-selected);border-color:var(--admin-accent);box-shadow:none;color:var(--admin-ink)}
body[data-admin-refresh] :is(.case-work-summary h2,.review-counter b,.doc-info h3,.queue-document strong,.review-log-entry p,.desk-source strong){color:var(--admin-ink)}
body[data-admin-refresh] :is(.review-counter span,.context-grid dt,.context-grid small,.queue-document small,.queue-note,.reader-heading p,.reader-tip,.save-state,.review-log-entry>div,.review-log-entry>small,.operation-context summary>span){color:var(--admin-muted);font-size:12px}
body[data-admin-refresh] :is(.doc-row,.doc-list,.timeline li,.case-data dl>div,.notes-list article,.access-list>div,.compact-role-list button,.doc-actions,.history-details){border-color:var(--admin-rule)}
body[data-admin-refresh] :is(.pdf-icon,.library-file-icon,.pdf-mark,.setup-path b,.scene-number,.tabs button>span){background:var(--admin-raised);color:var(--admin-muted);border-color:var(--admin-rule);box-shadow:none}
body[data-admin-refresh] :is(.button,.secondary-button,.studio-button,.studio-tabs a,.quiet,.primary,.btn,.cs-button,.inventory-desk .cs-button,.admin-public-link,.portal-home-link,.account-actions button,.access-list button,.user-toggle){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:11px 16px;border:1px solid var(--admin-control);border-radius:8px;background:transparent;color:var(--admin-ink);font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;box-shadow:none;cursor:pointer;transition:background 140ms ease-out,border-color 140ms ease-out,transform 100ms ease-out}
body[data-admin-refresh] :is(.button.dark,.primary,.btn:not(.secondary),.inventory-desk .desk-primary,.inventory-desk .desk-pdf,.cs-import-link,#openExport){background:var(--admin-accent);border-color:var(--admin-accent);color:var(--admin-accent-ink);box-shadow:none}
/* The incumbent studio uses important fills. Keep its primary on the common palette. */
body[data-admin-refresh].studio-app .studio-primary{background:var(--admin-accent)!important;color:var(--admin-accent-ink)!important;border-color:var(--admin-accent)!important}
body[data-admin-refresh] :is(.text-link,.text-button,.open-case,.case-back,.doc-actions a,.doc-actions button,.library-group-actions button,.compact-role-list button,.inventory-desk .desk-clear,.studio-header-link,.creative-library button,.photo-tools button){color:var(--admin-ink);text-underline-offset:4px;background:transparent}
body[data-admin-refresh] :is(.tabs,.document-sections,.studio-tabs,.admin-tabs,.cs-tabs,.desk-view-tabs){display:flex;gap:12px;flex-wrap:wrap;padding:0 0 1px;border:0;border-bottom:1px solid var(--admin-rule);border-radius:0;background:transparent;box-shadow:none}
body[data-admin-refresh] :is(.tabs button,.document-sections a,.studio-tabs a,.admin-tabs button,.cs-tabs button,.desk-view-tabs button){min-height:46px;padding:11px 5px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--admin-muted);font-size:14px;font-weight:500;box-shadow:none;white-space:nowrap;cursor:pointer}
body[data-admin-refresh] :is(.tabs button.active,.document-sections a[aria-current=page],.admin-tabs button[aria-pressed=true],.cs-tabs button.active,.desk-view-tabs button[aria-pressed=true]){background:transparent;color:var(--admin-ink);border-bottom-color:var(--admin-accent)}
body[data-admin-refresh].studio-app .studio-tabs [aria-current]{background:transparent!important;color:var(--admin-ink)!important;border-color:var(--admin-accent)!important}
body[data-admin-refresh] :is(input,select,textarea){width:100%;max-width:100%;min-width:0;min-height:44px;padding:11px 12px;font-family:inherit;font-size:16px;line-height:1.5;background:var(--admin-ground);color:var(--admin-ink);border:1px solid var(--admin-control);border-radius:8px;box-shadow:none;caret-color:var(--admin-accent)}
body.portal-body[data-admin-refresh] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:var(--admin-ground);color:var(--admin-ink);border-color:var(--admin-control);font-size:16px;box-shadow:none}
body[data-admin-refresh] :is(input,textarea)::placeholder{color:var(--admin-faint);opacity:1}
body[data-admin-refresh] :is(input[type=checkbox],input[type=radio]){display:inline-block;width:19px;height:19px;min-height:19px;padding:0;flex:none;accent-color:var(--admin-accent)}
body[data-admin-refresh] input[type=color]{padding:5px;width:100%;min-height:44px}body[data-admin-refresh] input[type=file]{line-height:1.6;padding:8px}
body[data-admin-refresh] input[type=file]::file-selector-button{border:0;border-radius:4px;background:var(--admin-raised);color:var(--admin-ink);padding:7px 10px;margin-right:12px;font:inherit}
body[data-admin-refresh] :is(label,legend,.inventory-desk label,.creative-controls label,.rr-editor label,.rr-editor summary){color:var(--admin-ink);font-size:14px;line-height:1.5}body[data-admin-refresh] fieldset{min-width:0;border-color:var(--admin-rule)}
body[data-admin-refresh] :is(button,a,summary,[role=button]){touch-action:manipulation}body[data-admin-refresh] :is(button,[role=button]){user-select:none;-webkit-user-select:none}
body[data-admin-refresh] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--admin-accent);outline-offset:3px}
body[data-admin-refresh] :is(button,input,select,textarea):disabled,body[data-admin-refresh] [aria-disabled=true]{opacity:.55;cursor:not-allowed}
body[data-admin-refresh] :is(.button,.studio-button,.cs-button,.quiet,.primary,.btn,.nav-item):active{transform:translateY(1px);filter:brightness(.93)}
body[data-admin-refresh] :is(.form-error,.error,[role=alert],.inventory-desk .desk-age.urgent){color:var(--admin-negative)}
body[data-admin-refresh].studio-app button:not(.rr-menu-toggle):not(#library-logout){background:transparent;color:var(--admin-ink);border:1px solid var(--admin-control);border-radius:8px;font-family:inherit;box-shadow:none;min-height:44px}
body[data-admin-refresh].studio-app .template-choices button[aria-pressed=true]{background:var(--admin-selected);color:var(--admin-ink);border-color:var(--admin-accent);box-shadow:none}
body[data-admin-refresh] :is(.danger,.button.danger,button.danger){color:var(--admin-negative);border-color:var(--admin-danger-border);background:var(--admin-danger-bg)}
body[data-admin-refresh] :is(.workspace-empty,.history-empty,.desk-empty){border:1px dashed var(--admin-control);background:var(--admin-surface);color:var(--admin-muted);border-radius:12px}
body[data-admin-refresh] :is(.empty,.empty-symbol,.desk-empty p,.history-empty p){color:var(--admin-muted)}
body[data-admin-refresh] :is(.table-box,.table-wrap,.report-table){width:100%;max-width:100%;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:thin}
body[data-admin-refresh] table{width:100%;border-collapse:collapse;color:var(--admin-ink);background:transparent;font-size:14px;font-variant-numeric:tabular-nums;text-align:left}
body[data-admin-refresh] :is(th,td){border:0;border-bottom:1px solid var(--admin-rule);background:transparent;padding:16px 18px;vertical-align:middle}
body[data-admin-refresh] th{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--admin-muted);white-space:nowrap}
body[data-admin-refresh] :is(td strong,.inventory-desk .desk-table td strong){color:var(--admin-ink);font-size:14px;line-height:1.4}body[data-admin-refresh] :is(td small,.inventory-desk .desk-table td small){color:var(--admin-muted);font-size:12px;line-height:1.5}
body[data-admin-refresh] :is(.amount,.numeric,[data-numeric=true]){text-align:right;font-variant-numeric:tabular-nums}body[data-admin-refresh] :is(.info-list,.admin-summary,.permission-table,.account-card dl,.document-count){font-variant-numeric:tabular-nums}
body[data-admin-refresh] :is(.account-toolbar,.role-explanation,.photo-access-projects){background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule)}
body[data-admin-refresh] :is(.role-card>span:last-of-type,.admin-summary span,.account-email,.account-results,.access-timeline small,.assignment-list small,.assigned-cases small){color:var(--admin-muted);font-size:13px}
body[data-admin-refresh] .admin-summary strong{color:var(--admin-ink)}
body[data-admin-refresh] .account-card dl>div{border-color:var(--admin-rule)}
body[data-admin-refresh] .button.access-danger{background:var(--admin-danger-bg);color:var(--admin-negative);border-color:var(--admin-danger-border)}
body[data-admin-refresh] .table-box :is(th,td),body[data-admin-refresh] thead th{background:transparent;border-color:var(--admin-rule);color:var(--admin-muted);letter-spacing:0;font-size:12px}
body[data-admin-refresh] .table-box td{color:var(--admin-ink);font-size:14px}
body[data-admin-refresh] .inventory-desk :is(.desk-browser,.desk-other,.control-reports){background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule);border-radius:12px}
body[data-admin-refresh] .inventory-desk :is(.desk-source,.desk-empty){color:var(--admin-muted);background:var(--admin-raised);border-color:var(--admin-rule)}
body[data-admin-refresh] .inventory-desk :is(.desk-age-note,.desk-current-help,.desk-results-head p,.desk-foot,.desk-other p,.desk-connection,.desk-source summary){color:var(--admin-muted);font-size:13px}
body[data-admin-refresh] .inventory-desk .desk-dot{background:var(--admin-accent)}body[data-admin-refresh] .inventory-desk .desk-table :is(th,td){background:transparent;color:var(--admin-ink);border-bottom-color:var(--admin-rule)}body[data-admin-refresh] .inventory-desk .desk-table th{color:var(--admin-muted)}
body[data-admin-refresh] :is(.desk-row,.cs-lot,.cs-state){--lot-row-bg:var(--admin-surface);--lot-hover-bg:var(--admin-raised);--lot-row-ink:var(--admin-ink);--lot-row-muted:var(--admin-muted);--lot-control:var(--admin-control);--lot-accent:var(--admin-neutral-accent);--lot-badge-bg:var(--admin-neutral-badge);--lot-badge-ink:var(--admin-neutral-ink);--lot-badge-border:var(--admin-neutral-border)}
body[data-admin-refresh] :is(.desk-row,.cs-lot,.cs-state).available{--lot-row-bg:var(--admin-available-bg);--lot-hover-bg:var(--admin-available-hover);--lot-row-ink:var(--admin-ink);--lot-row-muted:var(--admin-muted);--lot-control:var(--admin-control);--lot-accent:var(--admin-available-accent);--lot-badge-bg:var(--admin-available-badge);--lot-badge-ink:var(--admin-available-ink);--lot-badge-border:var(--admin-available-border)}
body[data-admin-refresh] :is(.desk-row,.cs-lot,.cs-state).reserved{--lot-row-bg:var(--admin-reserved-bg);--lot-hover-bg:var(--admin-reserved-hover);--lot-row-ink:var(--admin-ink);--lot-row-muted:var(--admin-muted);--lot-control:var(--admin-control);--lot-accent:var(--admin-accent);--lot-badge-bg:var(--admin-reserved-hover);--lot-badge-ink:var(--admin-reserved-ink);--lot-badge-border:var(--admin-reserved-border)}
body[data-admin-refresh] :is(.desk-row,.cs-lot,.cs-state).sold{--lot-row-bg:var(--admin-sold-bg);--lot-hover-bg:var(--admin-sold-hover);--lot-row-ink:var(--admin-ink);--lot-row-muted:var(--admin-muted);--lot-control:var(--admin-control);--lot-accent:var(--admin-success-ink);--lot-badge-bg:var(--admin-sold-hover);--lot-badge-ink:var(--admin-sold-ink);--lot-badge-border:var(--admin-sold-border)}
body[data-admin-refresh] :is(.desk-row,.cs-lot,.cs-state).release_pending{--lot-row-bg:var(--admin-pending-bg);--lot-hover-bg:var(--admin-pending-hover);--lot-row-ink:var(--admin-ink);--lot-row-muted:var(--admin-muted);--lot-control:var(--admin-control);--lot-accent:var(--admin-pending-accent);--lot-badge-bg:var(--admin-pending-hover);--lot-badge-ink:var(--admin-pending-ink);--lot-badge-border:var(--admin-pending-border)}
body[data-admin-refresh] .inventory-desk .desk-table .desk-row>td{background:var(--lot-row-bg)}body[data-admin-refresh] .inventory-desk .desk-table .desk-row>td:first-child{border-left:1px solid var(--lot-accent)}
body[data-admin-refresh] .cs-state{background:var(--lot-badge-bg);color:var(--lot-badge-ink);border-color:var(--lot-badge-border);font-size:12px}body[data-admin-refresh] .inventory-desk .desk-age{color:var(--admin-muted)}
body[data-admin-refresh] #modal{background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule)}
body[data-admin-refresh] #modal :is(h2,h3,label,legend){color:var(--admin-ink)}
body[data-admin-refresh] #modal :is(input,select,textarea){background:var(--admin-ground);color:var(--admin-ink);border-color:var(--admin-control);font-size:16px}
body[data-admin-refresh] #modal .button.dark{background:var(--admin-accent);color:var(--admin-accent-ink);border-color:var(--admin-accent)}
body[data-admin-refresh] :is(.badge.gray,.badge.sage,.history-state,.studio-pill,.status){background:var(--admin-raised);color:var(--admin-ink);border:1px solid var(--admin-rule)}
body[data-admin-refresh] :is(.badge.amber,.state-paused,.state-withdrawn){background:var(--admin-reserved-hover);color:var(--admin-reserved-ink);border-color:var(--admin-reserved-border)}body[data-admin-refresh] .badge.coral{background:var(--admin-coral-bg);color:var(--admin-coral-ink);border-color:var(--admin-coral-border)}
body[data-admin-refresh] .library-shell{padding:26px}body[data-admin-refresh] .library-hero{padding:0 0 22px}body[data-admin-refresh] .library-search{padding:20px}body[data-admin-refresh] .library-main-search input{min-height:48px;font-size:16px}
body[data-admin-refresh] .library-caption{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 12px;font-size:14px}body[data-admin-refresh] .library-caption>span{margin-left:auto}
body[data-admin-refresh] .library-group-actions{display:flex;gap:16px;flex-wrap:wrap;margin-left:auto}body[data-admin-refresh] .library-group-actions button{border:0;min-height:44px;padding:8px 2px;font:inherit;text-decoration:underline;cursor:pointer}
body[data-admin-refresh] .library-filter-summary{grid-column:1/-1;margin:0;font-size:13px}body[data-admin-refresh] .library-filter-summary:empty,body[data-admin-refresh] .library-load-state:empty{display:none}
body[data-admin-refresh] .document-group>summary{min-height:58px;padding:16px;background:transparent;color:var(--admin-ink);font-size:16px;cursor:pointer}body[data-admin-refresh] .document-group[open]>summary{background:var(--admin-raised);border-color:var(--admin-rule)}
body[data-admin-refresh] .library-row{padding:16px 12px;color:var(--admin-ink);border-color:var(--admin-rule);min-height:74px;background:transparent}body[data-admin-refresh] .library-load-state{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--admin-muted);margin:8px 0}
body[data-admin-refresh] #library-notice:not(:empty){padding:12px 16px;border:1px solid var(--admin-notice-border);background:var(--admin-notice-bg);color:var(--admin-notice-ink);border-radius:8px;font-size:14px}body[data-admin-refresh] .document-count strong{color:var(--admin-ink);font-size:24px;font-weight:600}
body[data-admin-refresh] :is(.library-total,.studio-note,.creative-note){background:var(--admin-raised);color:var(--admin-muted);border-color:var(--admin-rule)}
body[data-admin-refresh] :is(.studio-output p,.studio-project small,.history-meta,.history-version,.clip-form-top small,.history-filters label,.creative-controls small,.creative-note,.cs-help,.cs-evidence,.report-help,.report-source,.report-source small){color:var(--admin-muted)}
body[data-admin-refresh] .studio-hero{background:var(--admin-surface);color:var(--admin-ink);border:1px solid var(--admin-rule);border-radius:12px}body[data-admin-refresh] .studio-hero p{color:var(--admin-muted)}body[data-admin-refresh] :is(.film-symbol,.screen-preview){background:var(--admin-raised);color:var(--admin-muted)}
body[data-admin-refresh] .studio-note{border-left:1px solid var(--admin-rule);border-radius:8px;font-size:14px}body[data-admin-refresh] .clip-row{border-color:var(--admin-rule);background:var(--admin-surface)}body[data-admin-refresh] #clip-status{color:var(--admin-muted);font-size:14px}
body[data-admin-refresh] .creative-controls{background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule);box-shadow:none}body[data-admin-refresh] .template-choices button{background:var(--admin-raised);color:var(--admin-ink);border:1px solid var(--admin-rule);box-shadow:none}
body[data-admin-refresh] .template-choices button[aria-pressed=true]{background:var(--admin-selected);color:var(--admin-ink);border-color:var(--admin-accent);box-shadow:none}body[data-admin-refresh] .template-choices button :is(small,span){color:var(--admin-muted);background:none}
body[data-admin-refresh] .preview-label{color:var(--admin-muted);border-color:var(--admin-rule)}body[data-admin-refresh] .creative-step>span{color:var(--admin-accent);background:var(--admin-raised)}body[data-admin-refresh] :is(.creative-library,.creative-advanced,.creative-preview){border-color:var(--admin-rule)}
body[data-admin-refresh] .studio-app .creative-actions,body[data-admin-refresh].studio-app .creative-actions{background:var(--admin-surface);border-color:var(--admin-rule);box-shadow:none}
body[data-admin-refresh].studio-app .template-grid button:not(.rr-menu-toggle):not(#library-logout)[aria-pressed=true]{background:var(--admin-selected);color:var(--admin-ink);border-color:var(--admin-accent)}
body[data-admin-refresh].studio-app .template-grid svg{stroke:var(--admin-muted)}
body[data-admin-refresh].studio-app .creative-step span{background:var(--admin-raised);color:var(--admin-accent)}
body[data-admin-refresh].studio-app .creative-check input{accent-color:var(--admin-accent)}
body[data-admin-refresh].studio-app .canvas-checker{background:var(--admin-raised);border-color:var(--admin-rule)}
body[data-admin-refresh].studio-app .image-project{background:var(--admin-surface)!important;color:var(--admin-ink)}
body[data-admin-refresh].studio-app :is(.image-project small,.preview-label>span){color:var(--admin-muted)}
body[data-admin-refresh].studio-app .creative-advanced a{color:var(--admin-ink)}
/* Video planning and its earlier saved drafts share the same operational surfaces. */
body[data-admin-refresh] :is(.vs-hero,.vs-builder,.vs-library,.vs-project,.vs-savebar,.vs-route,.vs-reading,.vs-toolbox,.vs-scene,.vs-task,.reviewed-grid .reviewed-card){background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule);border-radius:12px;box-shadow:none}
body[data-admin-refresh] .vs-hero{padding:24px;margin-bottom:22px;background-image:none}
body[data-admin-refresh] .vs-hero h1{font-size:30px;color:var(--admin-ink)}
body[data-admin-refresh] :is(.vs-hero p,.vs-hero .eyebrow,.vs-hero-graphic .vs-icon,.vs-help,.vs-section-head>span,.vs-section-head>small,.vs-builder label>small,.vs-summary p,.vs-summary small,.vs-project>small,.vs-project>span:last-child,.vs-empty p,.vs-help-card p,.vs-help-card h3,.vs-project-head p,.vs-route>p,.vs-route small,.vs-reading p,.vs-reading small,.vs-scene>summary small,.vs-pace,.vs-overlay>span,.vs-overlay>small,.vs-task small,.reviewed-card small,.reviewed-card span){color:var(--admin-muted)}
body[data-admin-refresh] :is(.vs-starters button,.vs-steps button,.vs-choice,.vs-tip,.vs-hook,.vs-summary,.vs-empty,.vs-help-card,.vs-tabs,.vs-number,.vs-progress,.vs-reader,.vs-capture,.vs-alternatives button,.vs-template-filters button){background:var(--admin-raised);color:var(--admin-ink);border-color:var(--admin-rule);box-shadow:none}
body[data-admin-refresh] .vs-builder fieldset:not(.vs-plain){background:var(--admin-raised);border-color:var(--admin-rule)}
body[data-admin-refresh] :is(.vs-choice:has(input:checked),.vs-hook:has(input:checked),.vs-task:has(input:checked),.vs-duration input:checked+span,.vs-template-filters [aria-pressed=true]){background:var(--admin-selected);border-color:var(--admin-accent);color:var(--admin-ink)}
body[data-admin-refresh] .vs-tabs [aria-selected=true],body[data-admin-refresh] .vs-steps [aria-current=step]{background:var(--admin-hover);color:var(--admin-ink);box-shadow:none}
body[data-admin-refresh] :is(.vs-steps b,.vs-route b,.vs-steps [aria-current=step] b){background:var(--admin-step-bg);color:var(--admin-ink)}
body[data-admin-refresh] :is(.vs-choice .vs-icon,.vs-tip .vs-icon,.vs-help-card .vs-icon,.vs-empty>.vs-icon,.vs-toolbox button,.vs-route a,.vs-reading strong,.vs-progress strong,.vs-savebar>span,.vs-builder label){color:var(--admin-ink)}
body[data-admin-refresh] .vs-overlay>div{background:var(--admin-raised);color:var(--admin-ink)}
body[data-admin-refresh] .vs-progress progress{accent-color:var(--admin-accent)}
body[data-admin-refresh] .rr-appbar{background:var(--admin-surface);color:var(--admin-ink);border-bottom:1px solid var(--admin-rule);box-shadow:none}body[data-admin-refresh] .rr-appbar :is(.brand,nav a){color:var(--admin-ink)}body[data-admin-refresh] .rr-appbar .brand small{color:var(--admin-muted)}body[data-admin-refresh] .rr-appbar nav a[aria-current=page]{background:var(--admin-hover);color:var(--admin-ink)}
body[data-admin-refresh] :is(.rr-link-main,.rr-link-guide,.rr-editor .controls,.rr-editor .workspace){background:var(--admin-ground);color:var(--admin-ink)}body[data-admin-refresh] .rr-editor .controls details{background:var(--admin-surface);border-color:var(--admin-rule)}
body[data-admin-refresh] .rr-editor :is(.canvas-wrap,.photo-drop,#message,.draft-state,.mobile-editor-actions){background:var(--admin-raised);color:var(--admin-muted);border-color:var(--admin-rule)}
body[data-admin-refresh] :is(.rr-engine-error,.rr-editor .rr-engine-error){background:var(--admin-notice-bg);color:var(--admin-negative);border-color:var(--admin-notice-border)}body[data-admin-refresh] .rr-editor .rr-engine-error button{background:transparent;color:var(--admin-negative);border-color:var(--admin-notice-border)}
body[data-admin-refresh] :is(.rr-engine-status,.rr-new-workspace){background:var(--admin-raised);color:var(--admin-ink);border-color:var(--admin-rule)}
body[data-admin-refresh] .rr-engine-status{flex-wrap:wrap}
body[data-admin-refresh] :is(.rr-lead,.rr-link-card p,.rr-link-guide p,.rr-fine,.rr-field-help,.rr-instructions p){color:var(--admin-muted)}
body[data-admin-refresh] :is(.rr-link-card h2,.rr-link-guide h2,.rr-instructions strong){color:var(--admin-ink)}
body[data-admin-refresh] :is(.rr-primary,.rr-secondary-button){min-height:44px;border:1px solid var(--admin-control);border-radius:8px;background:var(--admin-accent);color:var(--admin-accent-ink);font-size:14px;padding:11px 16px;box-shadow:none}
body[data-admin-refresh] .rr-secondary-button{background:transparent;color:var(--admin-ink)}
body[data-admin-refresh] .rr-error{color:var(--admin-negative)}
body[data-admin-refresh].rr-editor :is(.controls,.workspace){background:var(--admin-ground);color:var(--admin-ink)}
body[data-admin-refresh].rr-editor :is(.controls details,.template-choice,.rr-workshop-help){background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule);box-shadow:none}
body[data-admin-refresh].rr-editor :is(.canvas-wrap,.photo-drop,#message,.draft-state,.mobile-editor-actions){background:var(--admin-raised);color:var(--admin-muted);border-color:var(--admin-rule)}
body[data-admin-refresh].rr-editor :is(h1,h2,h3,label,summary,.canvas-empty h3){color:var(--admin-ink)}
body[data-admin-refresh].rr-editor :is(small,.muted,.canvas-empty p,.rr-workshop-help p){color:var(--admin-muted)}
body[data-admin-refresh].rr-editor .template-choice[aria-pressed=true]{background:var(--admin-selected);color:var(--admin-ink);border-color:var(--admin-accent);box-shadow:none}
body[data-admin-refresh].rr-editor :is(.rr-engine-error,.rr-engine-error button){background:var(--admin-notice-bg);color:var(--admin-negative);border-color:var(--admin-notice-border)}
/* The connected motor adds rr-editor to the body after authentication. Cover its actual raw-button selectors. */
body[data-admin-refresh].rr-editor>header:not(.rr-appbar){background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule)}
body[data-admin-refresh].rr-editor>header:not(.rr-appbar) p,body[data-admin-refresh].rr-editor .editor-intro p{color:var(--admin-muted)}
body[data-admin-refresh].rr-editor :is(button,.import){min-height:44px;background:var(--admin-raised);color:var(--admin-ink);border:1px solid var(--admin-control);border-radius:8px;font-family:inherit;box-shadow:none}
body[data-admin-refresh].rr-editor :is(button.secondary,button.quiet,.import.secondary){background:transparent;color:var(--admin-ink);border-color:var(--admin-control)}
body[data-admin-refresh].rr-editor .rr-editor-steps button{background:var(--admin-raised);color:var(--admin-ink);border-color:var(--admin-control)}
body[data-admin-refresh].rr-editor #openExport{background:var(--admin-accent);color:var(--admin-accent-ink);border-color:var(--admin-accent)}
body[data-admin-refresh].rr-editor .editor-nav{background:var(--admin-raised);border-color:var(--admin-rule)}
body[data-admin-refresh].rr-editor .editor-nav button{background:transparent;color:var(--admin-muted);border-color:transparent}
body[data-admin-refresh].rr-editor .editor-nav button[aria-pressed=true]{background:var(--admin-selected);color:var(--admin-ink);border-color:var(--admin-accent)}
body[data-admin-refresh] .rr-engine-status strong{color:var(--admin-ink)}
body[data-admin-refresh] .rr-engine-status p{color:var(--admin-muted)}
body[data-admin-refresh] .rr-engine-status button{min-height:44px;background:var(--admin-raised);color:var(--admin-ink);border-color:var(--admin-control);font-family:inherit}
body[data-admin-refresh] .rr-engine-status[data-state=error]{background:var(--admin-notice-bg);border-color:var(--admin-notice-border)}
body[data-admin-refresh] .rr-engine-status[data-state=error] strong{color:var(--admin-negative)}
body[data-admin-refresh] .rr-status-dot{background:var(--admin-accent)}
body[data-admin-refresh] .rr-engine-status[data-state=loading] .rr-status-dot{background:var(--admin-accent)}
body[data-admin-refresh] .rr-engine-status[data-state=error] .rr-status-dot{background:var(--admin-negative)}
body[data-admin-refresh] .rr-password{background:var(--admin-ground);border-color:var(--admin-control)}
body[data-admin-refresh] .rr-password button{min-height:44px;background:var(--admin-raised);color:var(--admin-ink);font-family:inherit}
body[data-admin-refresh] .rr-new-workspace summary{min-height:44px;color:var(--admin-ink)}
body[data-admin-refresh] .rr-new-workspace p{color:var(--admin-muted)}
body[data-admin-refresh] :is(.rr-section-icon,.rr-step,.rr-instructions li>span){background:var(--admin-raised);color:var(--admin-muted)}
body[data-admin-refresh] .rr-appbar .brand>img{background:#f1eadb;padding:4px;border-radius:8px;filter:none}
@media(hover:hover) and (pointer:fine){body[data-admin-refresh].rr-editor button:not(:disabled):hover{background:var(--admin-hover);color:var(--admin-ink)}body[data-admin-refresh].rr-editor #openExport:not(:disabled):hover{background:var(--admin-accent-hover);color:var(--admin-accent-ink)}}
body[data-admin-refresh] .shell.marketing{max-width:1250px;padding:36px 0 50px}body[data-admin-refresh] .marketing h1{font-size:32px;line-height:1.2}body[data-admin-refresh] .topbar{background:var(--admin-ground);color:var(--admin-ink);border-color:var(--admin-rule);min-height:78px}
body[data-admin-refresh] .admin-header{padding-top:32px}body[data-admin-refresh] .admin-header h1{font-size:32px;letter-spacing:-.02em}body[data-admin-refresh] .admin-form h2{font-size:21px}body[data-admin-refresh] .account-card h3{font-size:20px;letter-spacing:-.02em}
body[data-admin-refresh] :is(.photo-project,.photo-detail,.photo-info p){color:var(--admin-muted)}body[data-admin-refresh] .photo-info h2{font-size:20px;color:var(--admin-ink)}body[data-admin-refresh] :is(.photo-save,.photo-download){background:var(--admin-raised);color:var(--admin-ink);border-color:var(--admin-control)}
body[data-admin-refresh] dialog{color:var(--admin-ink);background:var(--admin-surface);border:1px solid var(--admin-rule);border-radius:14px;padding:26px;max-height:calc(100dvh - 32px);box-shadow:0 24px 64px #0008}body[data-admin-refresh] dialog::backdrop{background:#060605c9}
body[data-admin-refresh] dialog :is(h2,h3,label,legend){color:var(--admin-ink)}body[data-admin-refresh] dialog :is(.modal-head,.dialog-top,header){background:var(--admin-surface);border-color:var(--admin-rule)}
body[data-admin-refresh] dialog :is(.modal-head button,.dialog-top button,header button){display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:6px;border:1px solid var(--admin-control);border-radius:8px;background:transparent;color:var(--admin-ink);flex:none}
body[data-admin-refresh] .document-dialog{height:calc(100dvh - 32px);padding:0;max-height:calc(100dvh - 32px)}body[data-admin-refresh] .document-dialog header{position:sticky;top:0;z-index:2;padding:14px 20px;min-height:76px;background:var(--admin-surface);border-bottom:1px solid var(--admin-rule)}
body[data-admin-refresh] .document-dialog header h2{font-size:18px;line-height:1.4;overflow-wrap:anywhere}body[data-admin-refresh] .document-body{height:calc(100% - 76px);grid-template-columns:minmax(0,1fr) 320px}body[data-admin-refresh] .library-info{padding:20px;background:var(--admin-surface);color:var(--admin-ink);font-size:14px;gap:16px}body[data-admin-refresh] .library-info a{min-height:44px;display:inline-flex;align-items:center}body[data-admin-refresh] .library-preview{background:var(--admin-ground)}
/* Recovery retains its forms, secret-link lifecycle and hidden panels; only its inherited light surfaces change. */
body[data-admin-refresh]>main.card{background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule);border-radius:16px;box-shadow:none}
body[data-admin-refresh]>main.card :is(h1,h2,h3,label,legend,.brand){color:var(--admin-ink)}
body[data-admin-refresh]>main.card :is(p,small,.brand>span){color:var(--admin-muted)}
body[data-admin-refresh]>main.card a{color:var(--admin-ink);text-underline-offset:4px}
body[data-admin-refresh]>main.card .note{background:var(--admin-raised);color:var(--admin-muted);border:1px solid var(--admin-rule);border-radius:8px}
body[data-admin-refresh]>main.card :is(button,.password-actions button){min-height:44px;border:1px solid var(--admin-control);background:var(--admin-raised);color:var(--admin-ink);font:inherit;font-weight:600;box-shadow:none}
body[data-admin-refresh]>main.card form>button[type=submit]{background:var(--admin-accent);border-color:var(--admin-accent);color:var(--admin-accent-ink)}
body[data-admin-refresh]>main.card :is(.error,[role=alert]){color:var(--admin-negative)}
body[data-admin-refresh]>main.card [role=status]{color:var(--admin-ink)}
body[data-admin-refresh]>main.card :is(.request-item,details){border-color:var(--admin-rule)}
body[data-admin-refresh]>main.card summary{min-height:44px;padding-block:10px;color:var(--admin-ink);font-weight:600;cursor:pointer}
body[data-admin-refresh]>main.card .secret a{padding:16px;background:var(--admin-raised);color:var(--admin-ink);border:1px solid var(--admin-control);border-radius:8px;overflow-wrap:anywhere}
body[data-admin-refresh]>main.card .password-assist{color:var(--admin-muted)}
body[data-admin-refresh]>main.card .password-meter{background:var(--admin-step-bg)}
body[data-admin-refresh]>main.card .password-assist[data-strength=weak] :is([data-pw-label],.password-meter i){color:var(--admin-negative)}
body[data-admin-refresh]>main.card .password-assist[data-strength=weak] .password-meter i{background:var(--admin-negative)}
body[data-admin-refresh]>main.card .password-assist[data-strength=medium] [data-pw-label]{color:var(--admin-accent)}
body[data-admin-refresh]>main.card .password-assist[data-strength=medium] .password-meter i{background:var(--admin-accent)}
body[data-admin-refresh]>main.card .password-assist[data-strength=strong] [data-pw-label]{color:var(--admin-success-ink)}
body[data-admin-refresh]>main.card .password-assist[data-strength=strong] .password-meter i{background:var(--admin-success-ink)}
/* Keep a 300px content lane for the existing flexible Turnstile widget at a 320px viewport. */
@media(max-width:359px){body[data-admin-refresh]:has(>main.card){padding-inline:10px}body[data-admin-refresh]>main.card{padding:20px 0;border:0;background:transparent}}
/* WhatsApp import is still a staged review: upload, proposed changes and saved receipt keep their existing visibility. */
body.wa-body[data-admin-refresh] .wa-header{background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule)}
body.wa-body[data-admin-refresh] .wa-header :is(.brand,a){color:var(--admin-ink)}
body.wa-body[data-admin-refresh] .wa-header .brand small{color:var(--admin-muted)}
body.wa-body[data-admin-refresh] .wa-header .brand-symbol{background:#f1eadb;padding:4px;border-radius:8px;flex:none}
body.wa-body[data-admin-refresh] .wa-header .brand img{width:40px;height:40px;object-fit:contain;transform:none;margin:0;filter:none}
body.wa-body[data-admin-refresh] .wa-main :is(h1,h2,h3,strong,label,summary){color:var(--admin-ink)}
body.wa-body[data-admin-refresh] :is(.wa-panel,.wa-lot,.wa-stat,.wa-history>div,.wa-empty){background:var(--admin-surface);color:var(--admin-ink);border-color:var(--admin-rule);border-radius:12px;box-shadow:none;min-width:0}
body.wa-body[data-admin-refresh] :is(.wa-small,.wa-meta,.wa-group,.wa-file-name,.wa-intro>p,.wa-panel>p,.wa-help p,.wa-help li,.wa-history p,.wa-history small,.wa-apply p,.wa-change span,.wa-source p){color:var(--admin-muted)}
body.wa-body[data-admin-refresh] :is(.wa-help,.wa-note,.wa-progress,.wa-apply,.wa-change){background:var(--admin-raised);color:var(--admin-ink);border-color:var(--admin-rule);box-shadow:none}
body.wa-body[data-admin-refresh] .wa-steps li{background:var(--admin-raised);color:var(--admin-muted)}
body.wa-body[data-admin-refresh] .wa-steps b{background:var(--admin-step-bg);color:var(--admin-ink)}
body.wa-body[data-admin-refresh] .wa-steps [aria-current]{background:var(--admin-selected);color:var(--admin-ink);outline:1px solid var(--admin-control);outline-offset:-1px}
body.wa-body[data-admin-refresh] .wa-steps [aria-current] b{background:var(--admin-accent);color:var(--admin-accent-ink)}
body.wa-body[data-admin-refresh] :is(.wa-primary,.wa-secondary,.wa-text-button){min-height:48px;border-radius:8px;box-shadow:none}
body.wa-body[data-admin-refresh] .wa-primary{background:var(--admin-accent);border-color:var(--admin-accent);color:var(--admin-accent-ink)}
body.wa-body[data-admin-refresh] .wa-secondary{background:transparent;border-color:var(--admin-control);color:var(--admin-ink)}
body.wa-body[data-admin-refresh] .wa-text-button{background:transparent;color:var(--admin-ink)}
body.wa-body[data-admin-refresh] .wa-file-label{background:var(--admin-ground);color:var(--admin-ink);border-color:var(--admin-control)}
body.wa-body[data-admin-refresh] .wa-file-label>span{color:var(--admin-muted)}
body.wa-body[data-admin-refresh] .wa-file-label svg{color:var(--admin-accent)}
body.wa-body[data-admin-refresh] :is(.wa-panel input[type=file],.wa-tools input,.wa-tools select,.wa-parcel input,.wa-source input){background:var(--admin-ground);color:var(--admin-ink);border-color:var(--admin-control);font-size:16px}
body.wa-body[data-admin-refresh] .wa-lot.is-selected{border-color:var(--admin-accent);box-shadow:none}
body.wa-body[data-admin-refresh] .wa-source summary{color:var(--admin-ink)}
body.wa-body[data-admin-refresh] .wa-source blockquote{background:var(--admin-raised);color:var(--admin-ink);border-color:var(--admin-control)}
body.wa-body[data-admin-refresh] .wa-warning{background:var(--admin-reserved-hover);color:var(--admin-reserved-ink)}
body.wa-body[data-admin-refresh] .wa-reason{background:var(--admin-raised);color:var(--admin-muted)}
body.wa-body[data-admin-refresh] .wa-error{background:var(--admin-danger-bg);color:var(--admin-negative);border-color:var(--admin-danger-border)}
body.wa-body[data-admin-refresh] .wa-success-icon{background:var(--admin-sold-hover);color:var(--admin-sold-ink)}
body.wa-body[data-admin-refresh] .wa-history p{border-color:var(--admin-rule)}
body.wa-body[data-admin-refresh] .wa-state{background:var(--admin-available-badge);color:var(--admin-available-ink)}
body.wa-body[data-admin-refresh] .wa-state.reserved{background:var(--admin-reserved-hover);color:var(--admin-reserved-ink)}
body.wa-body[data-admin-refresh] .wa-state.sold{background:var(--admin-sold-hover);color:var(--admin-sold-ink)}
body.wa-body[data-admin-refresh] .wa-state.available{background:var(--admin-available-badge);color:var(--admin-available-ink)}
body.wa-body[data-admin-refresh] .wa-state.release_pending{background:var(--admin-pending-hover);color:var(--admin-pending-ink)}
@media(hover:hover) and (pointer:fine){
 body[data-admin-refresh]>main.card button:not(:disabled):hover{background:var(--admin-hover);color:var(--admin-ink)}
 body[data-admin-refresh]>main.card form>button[type=submit]:not(:disabled):hover,body.wa-body[data-admin-refresh] .wa-primary:not(:disabled):hover{background:var(--admin-accent-hover);color:var(--admin-accent-ink);border-color:var(--admin-accent-hover)}
 body.wa-body[data-admin-refresh] .wa-secondary:not(:disabled):hover{background:var(--admin-hover);color:var(--admin-ink)}
}
body[data-admin-refresh] .toast{background:var(--admin-raised);color:var(--admin-ink);border:1px solid var(--admin-control);border-radius:10px;box-shadow:0 8px 32px #0006}
body[data-admin-refresh] :is(.portal-footer,.footer){padding:20px 12px;border-color:var(--admin-rule);color:var(--admin-muted);background:transparent;font-size:12px;line-height:1.5;gap:14px;flex-wrap:wrap}
/* Flat placeholders attach only to real waiting states. Existing results stay visible. */
body[data-admin-refresh] .rr-loading-skeleton{display:grid;gap:0;width:100%;grid-column:1/-1;border:1px solid var(--admin-rule);border-radius:12px;background:var(--admin-surface);overflow:hidden;margin:16px 0;pointer-events:none}
body[data-admin-refresh] .rr-loading-skeleton>div{display:grid;grid-template-columns:minmax(110px,1.5fr) minmax(50px,.7fr) minmax(40px,.45fr);align-items:center;gap:24px;min-height:76px;padding:18px 22px;border-bottom:1px solid var(--admin-rule)}body[data-admin-refresh] .rr-loading-skeleton>div:last-child{border-bottom:0}
body[data-admin-refresh] .rr-loading-skeleton span{display:block;height:13px;max-width:230px;border-radius:3px;background:var(--admin-skeleton);animation:rr-workspace-pulse 1.3s ease-in-out infinite}body[data-admin-refresh] .rr-loading-skeleton span:first-child{height:17px;width:76%}body[data-admin-refresh] .rr-loading-skeleton span:nth-child(2){width:82%}body[data-admin-refresh] .rr-loading-skeleton span:last-child{width:60%;justify-self:end}
body[data-admin-refresh] .rr-workspace-enter{animation:rr-workspace-enter 280ms cubic-bezier(.22,1,.36,1) both;animation-delay:var(--rr-entry-delay,0ms)}
@keyframes rr-workspace-enter{from{opacity:.78;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes rr-workspace-pulse{50%{opacity:.55}}
@media(hover:hover) and (pointer:fine){body[data-admin-refresh] .sidebar .nav-item:hover{background:var(--admin-hover);color:var(--admin-ink)}body[data-admin-refresh] :is(.button,.studio-button,.quiet,.cs-button,.inventory-desk .cs-button,.portal-home-link,.admin-public-link):hover{background:var(--admin-hover);color:var(--admin-ink);border-color:var(--admin-accent);box-shadow:none}body[data-admin-refresh] :is(.button.dark,.primary,.btn:not(.secondary),.inventory-desk .desk-primary,.inventory-desk .desk-pdf):hover{background:var(--admin-accent-hover);color:var(--admin-accent-ink);border-color:var(--admin-accent-hover)}body[data-admin-refresh] :is(.library-row,.queue-operation,.workspace-launch>a,.rr-shortcut,.document-group>summary):hover{background:var(--admin-raised);box-shadow:none}body[data-admin-refresh] .inventory-desk .desk-table .desk-row:hover>td{background:var(--lot-hover-bg)}body[data-admin-refresh] .desk-metric:hover{background:var(--admin-raised);outline:1px solid var(--admin-control);outline-offset:-1px}}
@media(max-width:1100px){body[data-admin-refresh] .portal-layout{grid-template-columns:200px minmax(0,1fr);gap:12px;padding:12px 16px 0 12px}body[data-admin-refresh] .sidebar{top:12px;width:200px;height:calc(100dvh - 24px);padding:20px 10px 14px}body[data-admin-refresh] .workspace{padding:22px 10px}body[data-admin-refresh] :is(.workspace-columns,.workspace-launch,.review-reading-grid){grid-template-columns:1fr}body[data-admin-refresh] .document-body{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:900px){body[data-admin-refresh] .portal-layout{display:block;min-height:100dvh;padding:12px}body[data-admin-refresh] .sidebar{position:relative;top:auto;width:100%;height:auto;overflow:visible;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 16px;border-radius:14px}body[data-admin-refresh] .sidebar .brand{padding:0}body[data-admin-refresh] .sidebar :is(.sidebar-label,.sidebar-note){display:none}body[data-admin-refresh] .sidebar nav{grid-column:1/-1;display:none;gap:4px;overflow:visible}body[data-admin-refresh] .sidebar.rr-menu-open nav{display:flex}body[data-admin-refresh] .sidebar .user-box{grid-column:1/-1;margin:0;padding:14px 0 0}body[data-admin-refresh] .sidebar:not(.rr-menu-open) .user-box{display:none}body[data-admin-refresh] .rr-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 13px;background:var(--admin-raised);color:var(--admin-ink);border:1px solid var(--admin-control);border-radius:8px;font-size:14px}body[data-admin-refresh] .rr-menu-toggle svg{width:18px;height:18px}body[data-admin-refresh] .sidebar .nav-item{font-size:15px;min-height:46px;padding:12px}body[data-admin-refresh] .portal-main{min-height:calc(100dvh - 108px)}body[data-admin-refresh] .portal-topbar{padding:16px 8px 10px;margin-bottom:0;min-height:60px}body[data-admin-refresh] .workspace{padding:22px 8px;min-height:calc(100dvh - 210px)}body[data-admin-refresh] .document-body{grid-template-columns:minmax(0,1fr) 280px}body[data-admin-refresh] .rr-editor .workspace{position:static;max-height:none}}
@media(max-width:640px){body[data-admin-refresh] .portal-layout{padding:10px max(10px,env(safe-area-inset-right,0px)) 0 max(10px,env(safe-area-inset-left,0px))}body[data-admin-refresh] .sidebar{padding-top:calc(12px + env(safe-area-inset-top,0px))}body[data-admin-refresh] .portal-topbar{font-size:12px;gap:10px}body[data-admin-refresh] .portal-topbar .topbar-right{flex-wrap:wrap}body[data-admin-refresh] :is(.workspace,.library-shell){padding:20px 6px}body[data-admin-refresh] :is(.workspace-head,.case-heading,.studio-intro){flex-wrap:wrap;gap:14px;margin-bottom:22px}body[data-admin-refresh] :is(.workspace,.shell) h1{font-size:26px}body[data-admin-refresh] :is(.workspace,.shell) h2{font-size:20px}body[data-admin-refresh] :is(.panel,.account-card,.operation-card,.workspace-shortcut,.case-directory,.studio-output,.visit-panel,.admin-form){padding:18px}body[data-admin-refresh] :is(.workspace-columns,.workspace-launch,.case-card-grid,.case-content,.context-grid,.marketing-layout,.admin-section){grid-template-columns:1fr;gap:18px}body[data-admin-refresh] :is(.work-metrics,.metrics,.desk-shortcuts){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body[data-admin-refresh] :is(.work-metrics>button,.metric,.inventory-desk .desk-metric){min-height:100px;padding:16px;border:0;border-right:1px solid var(--admin-rule);border-bottom:1px solid var(--admin-rule)}body[data-admin-refresh] :is(.work-metrics>button,.metric,.inventory-desk .desk-metric):nth-child(2n){border-right:0}body[data-admin-refresh] :is(.work-metrics>button,.metric,.inventory-desk .desk-metric):nth-last-child(-n+2){border-bottom:0}body[data-admin-refresh] :is(.work-metrics>button,.metric,.inventory-desk .desk-metric):last-child:nth-child(odd){grid-column:1/-1;border:0}body[data-admin-refresh] :is(.work-metrics strong,.metric strong,.inventory-desk .desk-metric strong){font-size:28px}body[data-admin-refresh] .inventory-desk .desk-browser{padding:16px 12px}body[data-admin-refresh] .inventory-desk .desk-table tr.desk-row{background:var(--lot-row-bg);border:1px solid var(--admin-rule);border-left:1px solid var(--lot-accent);border-radius:10px}body[data-admin-refresh] .inventory-desk .desk-table .desk-row>td{background:transparent;color:var(--admin-ink)}body[data-admin-refresh] .inventory-desk .desk-table td::before{color:var(--admin-muted)}body[data-admin-refresh] .inventory-desk .desk-open{min-height:46px}body[data-admin-refresh] .case-filters{grid-template-columns:1fr;gap:12px}body[data-admin-refresh] :is(.tabs,.document-sections,.studio-tabs,.admin-tabs){flex-wrap:nowrap;overflow-x:auto;overscroll-behavior:contain;gap:16px}body[data-admin-refresh] :is(.tabs button,.document-sections a,.studio-tabs a,.admin-tabs button){flex:none;font-size:14px;min-height:46px}body[data-admin-refresh] .library-caption{display:block}body[data-admin-refresh] .library-caption>span{display:block;margin:7px 0}body[data-admin-refresh] .library-group-actions{margin:8px 0 0}body[data-admin-refresh] .library-search{padding:16px}body[data-admin-refresh] .document-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0 0 env(safe-area-inset-bottom,0px)}body[data-admin-refresh] .document-dialog header{padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px}body[data-admin-refresh] .document-body{display:block;height:auto}body[data-admin-refresh] .library-preview{height:48svh;min-height:240px;padding:8px}body[data-admin-refresh] .library-info{overflow:visible;padding:20px 18px 30px}body[data-admin-refresh] :is(.account-actions,.account-toolbar,.admin-summary){gap:12px;flex-wrap:wrap}body[data-admin-refresh] .account-actions .button{font-size:14px;white-space:normal}body[data-admin-refresh] :is(.portal-footer,.footer){padding:18px 6px calc(18px + env(safe-area-inset-bottom,0px))}body[data-admin-refresh] .rr-loading-skeleton>div{grid-template-columns:minmax(110px,1.5fr) minmax(45px,.7fr);gap:18px;padding:18px;min-height:74px}body[data-admin-refresh] .rr-loading-skeleton span:last-child{display:none}}
@media(hover:none){body[data-admin-refresh] .sidebar .nav-item:not(.active):hover{background:transparent;color:var(--admin-muted)}body[data-admin-refresh] :is(.button,.studio-button,.quiet,.cs-button,.inventory-desk .cs-button):not(.dark):not(.desk-primary):not(.desk-pdf):hover{background:transparent;color:var(--admin-ink);box-shadow:none}body[data-admin-refresh] :is(.library-row,.document-group>summary):hover{background:transparent}}
@media(prefers-reduced-motion:reduce){body[data-admin-refresh] *,body[data-admin-refresh] *::before,body[data-admin-refresh] *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(forced-colors:active){body[data-admin-refresh] :is(.nav-item.active,.desk-row,.button,.cs-state){border:1px solid currentColor}body[data-admin-refresh] .rr-loading-skeleton span{background:GrayText}}
@media print{body[data-admin-refresh]{background:white;color:black;color-scheme:light}body[data-admin-refresh] :is(.sidebar,.portal-topbar,.admin-public-link,.rr-loading-skeleton){display:none!important}body[data-admin-refresh] .portal-layout{display:block;padding:0}body[data-admin-refresh] :is(.portal-main,.workspace){padding:0;background:white;color:black}}
/* Authorization and application state always outrank layout declarations. */
body[data-admin-refresh] .hidden,body[data-admin-refresh] [hidden]{display:none!important}

/* Every status owns its background AND foreground, including descendants and actions. */
body[data-admin-refresh][data-space="control"] .inventory-desk .desk-table .desk-row{color:var(--lot-row-ink);background:var(--lot-row-bg)}
body[data-admin-refresh][data-space="control"] .inventory-desk .desk-table .desk-row :is(td,td strong,td>span,.desk-open){color:var(--lot-row-ink)}
body[data-admin-refresh][data-space="control"] .inventory-desk .desk-table .desk-row :is(td small,.desk-age){color:var(--lot-row-muted)}
body[data-admin-refresh][data-space="control"] .inventory-desk .desk-table .desk-row .desk-age.urgent{color:var(--admin-negative)}
body[data-admin-refresh][data-space="control"] .inventory-desk .desk-table .desk-open{background:var(--lot-row-bg);border-color:var(--lot-control)}
body[data-admin-refresh][data-space="control"] .inventory-desk .desk-table .desk-open:hover{background:var(--lot-hover-bg)}
body[data-admin-refresh][data-space="control"] .inventory-desk .desk-table .desk-open:focus-visible{outline:3px solid var(--admin-accent);outline-offset:3px}

body[data-admin-refresh] :is(.desk-row,.cs-lot,.cs-state).unavailable{--lot-row-bg:var(--admin-surface);--lot-hover-bg:var(--admin-raised);--lot-row-ink:var(--admin-ink);--lot-row-muted:var(--admin-muted);--lot-control:var(--admin-control)}
