/* The 2D desk owns these tokens. No rules target the studio or the 3D dashboard. */
body:not(.dashboard-3d-active):not(.intro-active) { background: #f7f5f9; }
body[data-workbench-theme="dark"]:not(.dashboard-3d-active):not(.intro-active) { background: #181220; }
body:not(.dashboard-3d-active) #appShell {
  --wb-page: #f7f5f9; --wb-surface: #fff; --wb-soft: #faf8fc; --wb-line: #e7dfec;
  --wb-ink: #2d2039; --wb-secondary: #695771; --wb-muted: #776b7f; --wb-accent: #7b3d99;
  --wb-tint: #f1e8f8; --wb-purple: #ad3b82; --wb-purple-tint: #faeaf3; --wb-danger: #b24e55;
  --wb-danger-tint: #fbf0f1; --wb-shadow: 0 8px 28px #5425680d;
  color: var(--wb-ink); background: var(--wb-page); color-scheme: light;
}
body[data-workbench-theme="dark"]:not(.dashboard-3d-active) #appShell {
  --wb-page: #181220; --wb-surface: #241b30; --wb-soft: #2c2238; --wb-line: #483751;
  --wb-ink: #f5eff9; --wb-secondary: #d1c0db; --wb-muted: #b9a6c5; --wb-accent: #d2a9ec;
  --wb-tint: #382548; --wb-purple: #f2a1cd; --wb-purple-tint: #402737; --wb-danger: #efa5ac;
  --wb-danger-tint: #38282c; --wb-shadow: 0 8px 28px #0000001f; color-scheme: dark;
}
body:not(.dashboard-3d-active) #appShell :is(button,a,input):focus-visible,
body:not(.dashboard-3d-active) #appShell .dropzone:focus-within { outline: 3px solid var(--wb-accent); outline-offset: 4px; }
body:not(.dashboard-3d-active) #appShell .topbar { min-height: 80px; background: var(--wb-surface); color: var(--wb-ink); box-shadow: none; border-bottom: 1px solid var(--wb-line); }
body:not(.dashboard-3d-active) #appShell :is(.topbar-inner,.main-content,.footer-inner) { max-width: 1360px; width: calc(100% - 80px); }
body:not(.dashboard-3d-active) #appShell .topbar-inner { min-height: 80px; gap: 24px; }
body:not(.dashboard-3d-active) #appShell .brand-image { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; box-shadow: none; border: 1px solid var(--wb-line); background: #fff; }
body:not(.dashboard-3d-active) #appShell .brand-titles strong { font-size: 16px; color: var(--wb-ink); }
body:not(.dashboard-3d-active) #appShell .brand-titles small { color: var(--wb-muted); font-size: 8px; }
body:not(.dashboard-3d-active) #appShell .topbar-actions { gap: 12px; }
body:not(.dashboard-3d-active) #appShell .system-tag { display: none; }
body:not(.dashboard-3d-active) #appShell .header-divider { background: var(--wb-line); height: 23px; }
body:not(.dashboard-3d-active) #appShell .top-version { color: var(--wb-muted); font-size: 11px; }
body:not(.dashboard-3d-active) #appShell .top-version b { background: var(--wb-purple-tint); color: var(--wb-purple); }
body:not(.dashboard-3d-active) #appShell .top-version-separator { color: var(--wb-muted); padding-inline: 5px; }
body:not(.dashboard-3d-active) #appShell .dashboard-switch { background: var(--wb-soft); border-color: var(--wb-line); padding: 4px; border-radius: 10px; }
body:not(.dashboard-3d-active) #appShell .dashboard-switch button { color: var(--wb-muted); min-height: 34px; }
body:not(.dashboard-3d-active) #appShell .dashboard-switch button[aria-pressed="true"] { color: var(--wb-ink); background: var(--wb-surface); box-shadow: 0 2px 6px #173a2510; }
body:not(.dashboard-3d-active) #appShell .replay-intro { color: var(--wb-secondary); border: 1px solid var(--wb-line); background: transparent; min-height: 42px; border-radius: 10px; font-size: 10px; }
.wb-theme { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 7px 12px; border: 1px solid var(--wb-line); border-radius: 10px; background: var(--wb-surface); color: var(--wb-secondary); font-size: 10px; }
.wb-theme-symbol { font: 23px/1 Arial,sans-serif; }
.dashboard-3d-active .wb-theme { display: none; }
.wb-breadcrumb { display: flex; align-items: center; gap: 12px; margin: 25px 0 8px; color: var(--wb-muted); font-size: 10px; }
.wb-breadcrumb strong { font-weight: 500; color: var(--wb-secondary); }
.wb-edition { margin-inline-start: auto; font: 500 9px/1.5 'Segoe UI',sans-serif; letter-spacing: 1.7px; }
body:not(.dashboard-3d-active) #appShell .hero { min-height: 0; grid-template-columns: 1.1fr 1fr; gap: 50px; padding: 18px 0 32px; align-items: center; border-bottom: 1px solid var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .hero::before { display: none; }
body:not(.dashboard-3d-active) #appShell .hero-copy { padding: 8px 0; }
body:not(.dashboard-3d-active) #appShell .eyebrow { margin-bottom: 14px; color: var(--wb-accent); font-size: 11px; font-weight: 500; }
body:not(.dashboard-3d-active) #appShell .eyebrow-line { background: var(--wb-accent); height: 6px; width: 6px; border-radius: 50%; box-shadow: 0 0 0 4px var(--wb-tint); }
body:not(.dashboard-3d-active) #appShell .hero h1 { margin-bottom: 13px; font-size: clamp(28px,3.2vw,47px); line-height: 1.7; letter-spacing: -1.4px; color: var(--wb-ink); }
body:not(.dashboard-3d-active) #appShell .hero h1 span { color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .hero-description { max-width: 530px; margin-bottom: 15px; font-size: 12px; line-height: 2.2; color: var(--wb-secondary); }
.wb-domains { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--wb-muted); font-size: 10px; margin-bottom: 22px; }
.wb-domains i { width: 3px; height: 3px; background: var(--wb-muted); border-radius: 50%; }
body:not(.dashboard-3d-active) #appShell .hero-link { display: flex; align-items: center; gap: 18px; color: var(--wb-accent); padding: 0; border: 0; min-height: 36px; font-size: 11px; }
body:not(.dashboard-3d-active) #appShell .hero-link span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--wb-line); font-size: 17px; transition: background .2s; }
body:not(.dashboard-3d-active) #appShell .hero-link:hover span { background: var(--wb-tint); }
body:not(.dashboard-3d-active) #appShell .hero-visual { display: block; height: 270px; width: 100%; margin: 0; max-width: none; transform: none; overflow: hidden; border-radius: 18px; border: 1px solid var(--wb-line); background: #edf1ed; }
.wb-city-image { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; display: block; }
.wb-city-label { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #ffffffa6; border-radius: 10px; color: #603677; background: #ffffffec; box-shadow: 0 4px 15px #5425680d; }
.wb-city-label strong { font-size: 10px; font-weight: 700; display: block; }
.wb-city-label small { display: block; font: 500 7px/1.7 'Segoe UI',sans-serif; letter-spacing: 1.7px; margin-top: 3px; }
.wb-lens { width: 24px; height: 24px; border: 1px solid #a580b4; border-radius: 50%; display: grid; place-items: center; }
.wb-lens::before { content: ''; width: 12px; height: 12px; border: 2px solid #ad3b82; border-radius: 50%; }
.wb-concept { position: absolute; bottom: 12px; left: 14px; font-size: 8px; color: #603677; background: #ffffffe6; border-radius: 5px; padding: 4px 7px; }
body[data-workbench-theme="dark"] .wb-city-image { filter: brightness(.72) saturate(.8); }
body:not(.dashboard-3d-active) #appShell .workspace-section { padding: 30px 0 0; margin: 0; position: relative; }
body:not(.dashboard-3d-active) #appShell .workspace-section::before,
body:not(.dashboard-3d-active) #appShell .workspace-section::after { display: none; }
body:not(.dashboard-3d-active) #appShell .workspace-heading { padding: 0; margin-bottom: 22px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
body:not(.dashboard-3d-active) #appShell .section-overline { color: var(--wb-muted); font-size: 9px; font-weight: 400; margin-bottom: 5px; }
body:not(.dashboard-3d-active) #appShell .section-overline span { background: var(--wb-purple); width: 14px; }
body:not(.dashboard-3d-active) #appShell .workspace-heading h2 { color: var(--wb-ink); font-size: 22px; letter-spacing: -.5px; line-height: 1.6; margin-bottom: 3px; }
body:not(.dashboard-3d-active) #appShell .workspace-heading p { font-size: 10px; color: var(--wb-muted); }
.wb-workflow { margin: 0; padding: 0; list-style: none; display: flex; gap: 28px; }
.wb-workflow li { display: flex; align-items: center; gap: 9px; color: var(--wb-muted); font-size: 10px; position: relative; }
.wb-workflow li:not(:last-child)::after { content: ''; position: absolute; width: 15px; height: 1px; left: -22px; top: 15px; background: var(--wb-line); }
.wb-workflow b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--wb-line); border-radius: 50%; font-size: 11px; font-weight: 400; background: var(--wb-surface); }
.wb-workflow .is-current { color: var(--wb-accent); }
.wb-workflow .is-current b { background: var(--wb-accent); color: var(--wb-surface); border-color: var(--wb-accent); }
.wb-workflow .is-done b { background: var(--wb-tint); color: var(--wb-accent); border-color: var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .workspace-grid { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 22px; border: 0; background: none; box-shadow: none; padding: 0; border-radius: 0; }
body:not(.dashboard-3d-active) #appShell .workspace-grid::after { display: none; }
body:not(.dashboard-3d-active) #appShell .panel { background: var(--wb-surface); border: 1px solid var(--wb-line); border-radius: 16px; padding: 24px; box-shadow: var(--wb-shadow); }
body:not(.dashboard-3d-active) #appShell .panel-heading { border-color: var(--wb-line); padding-bottom: 18px; margin-bottom: 18px; gap: 12px; }
body:not(.dashboard-3d-active) #appShell .panel-step { border: 1px solid var(--wb-line); border-radius: 10px; background: var(--wb-soft); color: var(--wb-accent); height: 40px; width: 40px; font-size: 13px; }
body:not(.dashboard-3d-active) #appShell .output-step { background: var(--wb-purple-tint); color: var(--wb-purple); border-color: transparent; }
body:not(.dashboard-3d-active) #appShell .panel-heading-copy h3 { color: var(--wb-ink); font-size: 15px; }
body:not(.dashboard-3d-active) #appShell .panel-heading-copy p { color: var(--wb-muted); font-size: 10px; }
body:not(.dashboard-3d-active) #appShell .panel-heading-icon { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .dropzone { height: 236px; border: 1px dashed #bb9ccb; background: var(--wb-soft); border-radius: 12px; box-shadow: none; }
body:not(.dashboard-3d-active) #appShell .dropzone::before,
body:not(.dashboard-3d-active) #appShell .dropzone::after { display: none; }
body:not(.dashboard-3d-active) #appShell .dropzone:hover,
body:not(.dashboard-3d-active) #appShell .dropzone.is-dragging { border-color: var(--wb-accent); background: var(--wb-tint); box-shadow: inset 0 0 0 1px var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .dropzone[data-has-file="true"] { background: #21162c; border-style: solid; border-color: var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .upload-mark { height: 52px; width: 52px; border-radius: 13px; background: var(--wb-tint); color: var(--wb-accent); box-shadow: none; animation: none; margin-bottom: 12px; }
body:not(.dashboard-3d-active) #appShell .upload-mark::before,
body:not(.dashboard-3d-active) #appShell .upload-mark::after { display: none; }
body:not(.dashboard-3d-active) #appShell .upload-mark svg { width: 30px; height: 30px; }
body:not(.dashboard-3d-active) #appShell .drop-empty strong { color: var(--wb-ink); font-size: 13px; }
body:not(.dashboard-3d-active) #appShell .drop-empty p { color: var(--wb-muted); font-size: 10px; }
body:not(.dashboard-3d-active) #appShell .choose-file { color: var(--wb-accent); background: var(--wb-surface); border: 1px solid var(--wb-line); box-shadow: none; font-size: 10px; min-height: 34px; }
body:not(.dashboard-3d-active) #appShell .drop-empty small { color: var(--wb-muted); font-weight: 400; letter-spacing: 1px; }
body:not(.dashboard-3d-active) #appShell .file-meta { padding: 12px 1px 14px; color: var(--wb-muted); border-color: var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .file-size { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .file-status-dot { background: var(--wb-accent); }
.wb-preview-tools { display: flex; justify-content: flex-end; margin-top: 7px; }
body:not(.dashboard-3d-active) #appShell .access-card { padding-top: 18px; }
body:not(.dashboard-3d-active) #appShell .access-label { color: var(--wb-ink); font-size: 11px; margin-bottom: 9px; }
body:not(.dashboard-3d-active) #appShell .access-icon { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .password-wrap input { color: var(--wb-ink); background: var(--wb-soft); border-color: var(--wb-line); border-radius: 9px; height: 46px; }
body:not(.dashboard-3d-active) #appShell .password-wrap input::placeholder { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .password-wrap input:focus { border-color: var(--wb-accent); box-shadow: 0 0 0 3px var(--wb-tint); }
body:not(.dashboard-3d-active) #appShell .visibility-button { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .visibility-button:hover { background: var(--wb-tint); color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .remember-access { color: var(--wb-secondary); font-size: 9px; }
body:not(.dashboard-3d-active) #appShell .remember-access input { accent-color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .access-hint { color: var(--wb-muted); font-size: 9px; margin-bottom: 17px; }
body:not(.dashboard-3d-active) #appShell .primary-button { background: linear-gradient(110deg,#9342a0,#a13c85 45%,#743b94); color: #fff; border-radius: 9px; font-size: 12px; min-height: 48px; box-shadow: 0 5px 15px #77388922; }
body:not(.dashboard-3d-active) #appShell .primary-button:hover:not(:disabled) { box-shadow: 0 6px 18px #77388933; transform: translateY(-1px); }
body[data-workbench-theme="dark"]:not(.dashboard-3d-active) #appShell .primary-button { background: linear-gradient(110deg,#d1a7ed,#efa3d0); color: #281633; }
body:not(.dashboard-3d-active) #appShell .upload-footnote { color: var(--wb-muted); font-size: 9px; margin-top: 12px; }
body:not(.dashboard-3d-active) #appShell .upload-footnote svg { color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .output-panel { min-height: 595px; }
body:not(.dashboard-3d-active) #appShell .output-panel::after { display: none; }
.wb-report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wb-report-toolbar>div { display: flex; gap: 5px; }
.wb-report-status { font-size: 9px; color: var(--wb-muted); display: flex; align-items: center; gap: 7px; }
.wb-report-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--wb-muted); }
.wb-report-status[data-state="result"] { color: var(--wb-accent); }
.wb-report-status[data-state="result"] i { background: var(--wb-accent); }
.wb-report-status[data-state="error"] { color: var(--wb-danger); }
.wb-report-status[data-state="error"] i { background: var(--wb-danger); }
.wb-tool { min-height: 34px; border: 1px solid var(--wb-line); background: transparent; color: var(--wb-secondary); padding: 6px 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; font-size: 9px; white-space: nowrap; }
.wb-tool:hover:not(:disabled) { background: var(--wb-soft); color: var(--wb-accent); }
.wb-tool:disabled { opacity: .45; }
.wb-expand-icon { display: inline-block; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.wb-expand-icon::before { content: ''; position: absolute; inset: 3px -2px; background: var(--wb-surface); }
.wb-expand-icon::after { content: ''; position: absolute; inset: -2px 3px; background: var(--wb-surface); }
body:not(.dashboard-3d-active) #appShell .empty-state { min-height: 410px; padding: 28px 16px 0; }
.wb-report-paper { width: 190px; height: 142px; position: relative; border: 1px solid var(--wb-line); background: var(--wb-surface); border-radius: 10px; box-shadow: 7px 8px 0 var(--wb-soft),7px 8px 0 1px var(--wb-line); padding: 21px; margin-bottom: 35px; transform: rotate(-5deg); }
.wb-paper-top { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--wb-line); padding-bottom: 13px; }
.wb-paper-top span { width: 26px; height: 7px; border-radius: 4px; background: var(--wb-accent); opacity: .6; }
.wb-paper-top i { width: 69px; height: 5px; border-radius: 4px; background: var(--wb-line); }
.wb-paper-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0 13px; }
.wb-paper-lines { display: grid; gap: 7px; flex: 1; }
.wb-paper-lines i { background: var(--wb-line); height: 4px; width: 100%; border-radius: 4px; }
.wb-paper-lines i:nth-child(2) { width: 70%; background: var(--wb-accent); opacity: .25; }
.wb-paper-lines i:nth-child(3) { width: 45%; }
.wb-paper-ring { height: 38px; width: 38px; border: 5px solid var(--wb-tint); border-top-color: var(--wb-accent); border-right-color: var(--wb-accent); border-radius: 50%; opacity: .55; }
.wb-paper-bottom { display: flex; gap: 5px; }
.wb-paper-bottom i { width: 22px; height: 4px; background: var(--wb-line); border-radius: 3px; }
.wb-paper-seal { position: absolute; bottom: -12px; left: -12px; height: 36px; width: 36px; border: 5px solid var(--wb-surface); background: var(--wb-tint); color: var(--wb-accent); border-radius: 50%; display: grid; place-items: center; font: 16px Arial; }
body:not(.dashboard-3d-active) #appShell .empty-ready { background: var(--wb-tint); color: var(--wb-accent); font-size: 9px; font-weight: 400; margin-bottom: 13px; padding: 5px 10px; }
body:not(.dashboard-3d-active) #appShell .empty-ready i { background: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .empty-state>strong { color: var(--wb-ink); font-size: 20px; margin-bottom: 10px; }
body:not(.dashboard-3d-active) #appShell .empty-state>p { color: var(--wb-muted); font-size: 10px; max-width: 360px; margin-bottom: 28px; line-height: 2.2; }
.wb-quality-note { display: flex; align-items: center; gap: 12px; width: min(100%,370px); text-align: right; padding: 13px 15px; background: var(--wb-soft); border: 1px solid var(--wb-line); border-radius: 9px; }
.wb-quality-note>span:first-child { font-size: 23px; color: var(--wb-purple); }
.wb-quality-note strong { display: block; font-size: 10px; color: var(--wb-secondary); margin: 0; }
.wb-quality-note small { display: block; font-size: 9px; color: var(--wb-muted); margin-top: 3px; }
body:not(.dashboard-3d-active) #appShell .processing-state { min-height: 410px; padding: 35px 16px; }
body:not(.dashboard-3d-active) #appShell .processing-animation { background: var(--wb-soft); border: 1px solid var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .scan-frame { color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .scan-line { background: var(--wb-accent); box-shadow: 0 0 12px var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .processing-tag { background: var(--wb-tint); color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .processing-state strong { color: var(--wb-ink); }
body:not(.dashboard-3d-active) #appShell :is(.processing-state p,.processing-foot) { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .progress-track { background: var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .progress-track span { background: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .result-state { padding-top: 22px; }
body:not(.dashboard-3d-active) #appShell .result-success { background: var(--wb-tint); border: 1px solid var(--wb-line); color: var(--wb-accent); box-shadow: none; }
body:not(.dashboard-3d-active) #appShell .result-success::after { display: none; }
body:not(.dashboard-3d-active) #appShell .success-icon { background: var(--wb-surface); color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell :is(.success-copy small,.success-status) { color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .success-status i { background: var(--wb-accent); box-shadow: 0 0 0 4px var(--wb-tint); }
body:not(.dashboard-3d-active) #appShell .primary-detection { background: var(--wb-soft); border: 1px solid var(--wb-line); box-shadow: none; padding: 22px; grid-template-columns: minmax(0,1fr) 100px; gap: 15px; border-radius: 12px; }
body:not(.dashboard-3d-active) #appShell .primary-detection::before { height: 3px; background: var(--wb-accent); box-shadow: none; }
body:not(.dashboard-3d-active) #appShell :is(.primary-detection::after,.result-aura) { display: none; }
body:not(.dashboard-3d-active) #appShell .primary-badge { background: var(--wb-tint); color: var(--wb-accent); box-shadow: none; font-size: 9px; }
body:not(.dashboard-3d-active) #appShell .primary-detection .result-label-caption { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .primary-detection .result-label { color: var(--wb-ink); font-size: 23px; line-height: 1.8; min-height: 0; padding-left: 0; }
body:not(.dashboard-3d-active) #appShell .primary-confidence { color: var(--wb-muted); border-color: var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .primary-confidence strong { color: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .score-ring { background: conic-gradient(var(--wb-accent) calc(var(--score)*1%),var(--wb-line) 0); width: 100px; height: 100px; box-shadow: none; border: 0; animation: none; grid-row: auto; justify-self: center; margin-bottom: 0; }
body:not(.dashboard-3d-active) #appShell .score-ring::before,
body:not(.dashboard-3d-active) #appShell .score-ring::after { display: none; }
body:not(.dashboard-3d-active) #appShell .score-ring-inner { background: var(--wb-surface); color: var(--wb-ink); box-shadow: none; width: 82px; height: 82px; }
body:not(.dashboard-3d-active) #appShell .score-ring-inner span { color: var(--wb-ink); font-size: 22px; }
body:not(.dashboard-3d-active) #appShell .score-ring-inner small { color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .primary-foot { border-color: var(--wb-line); color: var(--wb-muted); }
body:not(.dashboard-3d-active) #appShell .primary-foot strong { color: var(--wb-accent); background: var(--wb-tint); }
body:not(.dashboard-3d-active) #appShell .primary-foot i { background: var(--wb-accent); }
body:not(.dashboard-3d-active) #appShell .observed-heading h4 { color: var(--wb-ink); }
body:not(.dashboard-3d-active) #appShell .observed-count { color: var(--wb-muted); background: var(--wb-soft); border-color: var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .observed-item { background: var(--wb-surface); border: 1px solid var(--wb-line); box-shadow: none; border-radius: 8px; }
body:not(.dashboard-3d-active) #appShell .observed-order { background: var(--wb-purple-tint); color: var(--wb-purple); }
body:not(.dashboard-3d-active) #appShell .observed-copy strong { color: var(--wb-secondary); white-space: normal; overflow-wrap: anywhere; }
body:not(.dashboard-3d-active) #appShell .observed-meter { background: var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .observed-meter i { background: var(--wb-purple); }
body:not(.dashboard-3d-active) #appShell .observed-confidence { color: var(--wb-accent); background: var(--wb-tint); }
body:not(.dashboard-3d-active) #appShell .secondary-button { color: var(--wb-accent); background: var(--wb-surface); border-color: var(--wb-line); border-radius: 9px; box-shadow: none; }
body:not(.dashboard-3d-active) #appShell .secondary-button:hover { background: var(--wb-soft); }
body:not(.dashboard-3d-active) #appShell .error-state { min-height: 410px; padding: 40px 16px; }
body:not(.dashboard-3d-active) #appShell .error-graphic { background: var(--wb-danger-tint); color: var(--wb-danger); }
body:not(.dashboard-3d-active) #appShell .error-state strong { color: var(--wb-ink); }
body:not(.dashboard-3d-active) #appShell .error-state p { color: var(--wb-secondary); }
body:not(.dashboard-3d-active) #appShell .process-strip { justify-content: flex-start; flex-wrap: nowrap; gap: 10px; padding: 19px 0 30px; font-size: 9px; color: var(--wb-muted); }
.wb-note-mark { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border: 1px solid var(--wb-muted); border-radius: 50%; font: italic 11px Georgia,serif; }
.wb-desk-note p { margin: 0; font-size: 9px; }
.wb-desk-note>span:last-child { font: 500 8px 'Segoe UI',sans-serif; letter-spacing: 1px; margin-inline-start: auto; white-space: nowrap; }
body:not(.dashboard-3d-active) #appShell .site-footer { background: var(--wb-surface); border-top: 1px solid var(--wb-line); }
body:not(.dashboard-3d-active) #appShell .footer-inner { min-height: 76px; flex-direction: row; justify-content: space-between; }
body:not(.dashboard-3d-active) #appShell .footer-brand { color: var(--wb-secondary); font-size: 9px; }
body:not(.dashboard-3d-active) #appShell .footer-brand img { width: 32px; height: 32px; background: #fff; border-radius: 7px; padding: 2px; }
body:not(.dashboard-3d-active) #appShell :is(.footer-brand small,.footer-product) { color: var(--wb-muted); font-size: 8px; }
.wb-preview-dialog { width: min(1080px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid var(--wb-line); border-radius: 16px; color: var(--wb-ink); background: var(--wb-surface); padding: 0; box-shadow: 0 30px 100px #0007; overflow: hidden; }
.wb-preview-dialog::backdrop { background: #160d21b8; }
.wb-preview-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--wb-line); }
.wb-preview-header>div { min-width: 0; }
.wb-preview-header strong { font-size: 13px; display: block; }
.wb-preview-header small { font-size: 10px; color: var(--wb-muted); display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-preview-canvas { height: min(65dvh,650px); overflow: auto; display: block; background: var(--wb-soft); direction: ltr; }
.wb-preview-canvas img { display: block; width: 100%; height: 100%; object-fit: contain; max-width: none; }
.wb-preview-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 12px; color: var(--wb-muted); font-size: 9px; }
.wb-preview-footer>div { display: flex; gap: 5px; }
.wb-preview-footer button { min-width: 36px; }
.wb-print-heading { display: none; }
body:not(.dashboard-3d-active) #appShell.wb-is-focused :is(.hero,.wb-breadcrumb,.upload-panel,.wb-workflow,.wb-desk-note) { display: none; }
body:not(.dashboard-3d-active) #appShell.wb-is-focused .main-content { max-width: 980px; padding-top: 8px; }
body:not(.dashboard-3d-active) #appShell.wb-is-focused .workspace-grid { grid-template-columns: minmax(0,1fr); }
body:not(.dashboard-3d-active) #appShell.wb-is-focused .output-panel { min-height: min(650px,75vh); margin-bottom: 35px; }
/* Quiet entrance without delaying access to the desk. */
body:not(.dashboard-3d-active) #appShell.entering :is(.topbar,.hero-copy,.hero-visual,.workspace-section,.site-footer,.process-strip) { animation: wb-enter .5s ease both; }
body:not(.dashboard-3d-active) #appShell.entering :is(.topbar::after,.site-footer::after) { display: none; }
@keyframes wb-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width:1100px) {
  body:not(.dashboard-3d-active) #appShell :is(.topbar-inner,.main-content,.footer-inner) { width: calc(100% - 48px); }
  body:not(.dashboard-3d-active) #appShell .top-version, .wb-theme-label { display: none; }
  body:not(.dashboard-3d-active) #appShell .hero { gap: 24px; }
  body:not(.dashboard-3d-active) #appShell .hero-visual { height: 250px; }
  .wb-workflow { gap: 22px; }.wb-workflow li:not(:last-child)::after { width: 11px; left: -17px; }
}
@media (max-width:850px) {
  body:not(.dashboard-3d-active) #appShell .topbar-actions { gap: 7px; }
  body:not(.dashboard-3d-active) #appShell .replay-intro { font-size: 0; width: 38px; padding: 0; justify-content: center; }
  body:not(.dashboard-3d-active) #appShell .replay-intro>span { font-size: 17px; }
  body:not(.dashboard-3d-active) #appShell .hero { grid-template-columns: 1.1fr .9fr; gap: 18px; }
  body:not(.dashboard-3d-active) #appShell .hero-visual { height: 230px; }
  body:not(.dashboard-3d-active) #appShell .hero h1 { font-size: 29px; }
  body:not(.dashboard-3d-active) #appShell .hero-description { font-size: 10px; }
  body:not(.dashboard-3d-active) #appShell .workspace-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .wb-workflow { width: 100%; justify-content: flex-start; gap: 35px; }
  body:not(.dashboard-3d-active) #appShell .panel { padding: 20px; }
  body:not(.dashboard-3d-active) #appShell .workspace-grid { gap: 16px; }
  .wb-report-toolbar { flex-wrap: wrap; gap: 8px; }
  .wb-quality-note small { font-size: 8px; }
  body:not(.dashboard-3d-active) #appShell .primary-detection { grid-template-columns: minmax(0,1fr) 80px; padding: 15px; }
  body:not(.dashboard-3d-active) #appShell .score-ring { width: 80px; height: 80px; }
  body:not(.dashboard-3d-active) #appShell .score-ring-inner { width: 64px; height: 64px; }
  body:not(.dashboard-3d-active) #appShell .score-ring-inner span { font-size: 18px; }
  body:not(.dashboard-3d-active) #appShell .primary-detection .result-label { font-size: 18px; }
}
@media (max-width:700px) {
  body:not(.dashboard-3d-active) #appShell :is(.topbar-inner,.main-content,.footer-inner) { width: calc(100% - 32px); }
  body:not(.dashboard-3d-active) #appShell :is(.topbar,.topbar-inner) { min-height: 72px; }
  body:not(.dashboard-3d-active) #appShell .brand-image { width: 37px; height: 37px; flex-basis: 37px; border-radius: 9px; }
  body:not(.dashboard-3d-active) #appShell .brand-titles strong { font-size: 11px; }
  body:not(.dashboard-3d-active) #appShell .brand-titles small { font-size: 6px; letter-spacing: .5px; }
  body:not(.dashboard-3d-active) #appShell .topbar-inner { gap: 10px; flex-wrap: wrap; padding: 14px 0; }
  body:not(.dashboard-3d-active) #appShell .topbar-actions { gap: 6px; }
  body:not(.dashboard-3d-active) #appShell .dashboard-switch button { min-height: 30px; font-size: 9px; padding: 4px 7px; gap: 4px; }
  body:not(.dashboard-3d-active) #appShell .header-divider { display: none; }
  .wb-theme { min-height: 38px; width: 38px; padding: 0; }
  .wb-breadcrumb { margin-top: 20px; font-size: 9px; }.wb-edition { font-size: 7px; letter-spacing: .9px; }
  body:not(.dashboard-3d-active) #appShell .hero { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 19px 0 24px; }
  body:not(.dashboard-3d-active) #appShell .hero h1 { font-size: clamp(29px,7.5vw,38px); letter-spacing: -.8px; }
  body:not(.dashboard-3d-active) #appShell .hero-description { font-size: 11px; max-width: 540px; }
  body:not(.dashboard-3d-active) #appShell .eyebrow { font-size: 10px; }
  .wb-domains { font-size: 9px; margin-bottom: 10px; }
  body:not(.dashboard-3d-active) #appShell .hero-visual { height: 185px; border-radius: 12px; }
  .wb-city-image { object-position: center 8%; }
  .wb-city-label { top: 12px; right: 12px; padding: 8px 10px; }.wb-city-label strong { font-size: 9px; }
  body:not(.dashboard-3d-active) #appShell .workspace-section { padding-top: 25px; }
  body:not(.dashboard-3d-active) #appShell .workspace-heading { gap: 15px; margin-bottom: 20px; }
  body:not(.dashboard-3d-active) #appShell .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .wb-workflow { justify-content: space-between; gap: 18px; }.wb-workflow li { font-size: 9px; gap: 6px; }.wb-workflow b { width: 26px; height: 26px; }
  .wb-workflow li:not(:last-child)::after { display: none; }
  body:not(.dashboard-3d-active) #appShell .panel { padding: 20px; border-radius: 13px; }
  body:not(.dashboard-3d-active) #appShell .dropzone { height: 220px; }
  body:not(.dashboard-3d-active) #appShell .output-panel { min-height: 520px; }
  .wb-report-toolbar { flex-wrap: nowrap; }.wb-report-status { font-size: 8px; }.wb-tool { font-size: 8px; }
  body:not(.dashboard-3d-active) #appShell .password-wrap input { font-size: 16px; }
  body:not(.dashboard-3d-active) #appShell :is(.empty-state,.error-state,.processing-state) { min-height: 365px; padding-inline: 0; }
  body:not(.dashboard-3d-active) #appShell .empty-state>strong { font-size: 18px; }
  body:not(.dashboard-3d-active) #appShell .process-strip { padding: 18px 0 24px; align-items: flex-start; }
  .wb-desk-note>span:last-child { display: none; }.wb-desk-note p { font-size: 8px; }
  .wb-preview-footer { padding: 12px; }.wb-preview-footer>span { display: none; }.wb-preview-footer>div { margin: auto; }
}
@media (max-width:380px) {
  body:not(.dashboard-3d-active) #appShell .topbar-actions { width: 100%; justify-content: space-between; }
  body:not(.dashboard-3d-active) #appShell .brand-titles strong { font-size: 12px; }
  .wb-edition { display: none; }
  body:not(.dashboard-3d-active) #appShell .panel { padding: 16px; }
  .wb-workflow li { font-size: 8px; gap: 5px; }.wb-workflow { gap: 8px; }
  body:not(.dashboard-3d-active) #appShell .drop-empty strong { font-size: 11px; }
  .wb-report-toolbar { gap: 6px; }.wb-report-toolbar>div { gap: 4px; }.wb-tool { padding: 6px 7px; }
}
@media (prefers-reduced-motion:reduce) { #appShell.entering :is(.topbar,.hero-copy,.hero-visual,.workspace-section,.site-footer,.process-strip) { animation: none !important; } }
@media print {
  body:not(.dashboard-3d-active) { margin: 0; background: #fff !important; color: #222 !important; }
  body:not(.dashboard-3d-active) #appShell { --wb-surface: #fff !important; --wb-soft: #fff !important; --wb-ink: #222 !important; --wb-secondary: #444 !important; --wb-muted: #555 !important; --wb-accent: #743b94 !important; --wb-line: #ddd !important; --wb-tint: #f4f1f6 !important; --wb-purple: #a13c85 !important; --wb-purple-tint: #faf0f5 !important; background: #fff; color-scheme: light; display: block; min-height: 0; overflow: visible; }
  body:not(.dashboard-3d-active) :is(#studio,.analysis-cinema,.animation-dialog,.topbar,.hero,.wb-breadcrumb,.workspace-heading,.upload-panel,.wb-workflow,.wb-desk-note,.site-footer,.wb-report-toolbar,.secondary-button,.wb-preview-dialog) { display: none !important; }
  body:not(.dashboard-3d-active) #appShell :is(.main-content,.workspace-section,.workspace-grid,.output-panel) { display: block; max-width: none; width: 100%; margin: 0; padding: 0; min-height: 0; border: 0; box-shadow: none; overflow: visible; }
  body:not(.dashboard-3d-active) #appShell .output-panel .panel-heading { display: none; }
  body:not(.dashboard-3d-active) #appShell .wb-print-heading { display: block; border-bottom: 1px solid #ddd; padding-bottom: 18px; margin-bottom: 18px; }
  .wb-print-heading h2 { font-size: 22px; margin: 0 0 8px; }.wb-print-heading p { font-size: 11px; margin: 0; overflow-wrap: anywhere; }.wb-print-heading small { font-size: 10px; }
  body:not(.dashboard-3d-active) #appShell :is(.primary-detection,.observed-item,.result-success) { break-inside: avoid; animation: none; opacity: 1; transform: none; box-shadow: none; }
  body:not(.dashboard-3d-active) #appShell .observed-list { max-height: none; overflow: visible; }
  body:not(.dashboard-3d-active) #appShell .result-state { padding: 0; }
  @page { size: A4; margin: 18mm; }
}
