/* Presentation-only workspace skin. Legacy page IDs, card data and actions remain intact. */
html[data-ui="workspace"] {
  color-scheme: dark;
  --s-bg:#101112; --s-surface:#1b1d21; --s-surface-hover:#22252a;
  --s-text:#e1e5ee; --s-muted:#9ba3b3; --s-line:rgba(255,255,255,.09);
  --s-accent:#b7bfdc; --s-accent-deep:#d0d8ef; --s-accent-soft:rgba(177,191,226,.09);
  --s-accent-line:rgba(177,191,226,.25); --s-focus:#a6b4dd;
  --s-key:linear-gradient(#282c33,#20232a); --s-lit-rest:linear-gradient(transparent,transparent);
  --s-lit-hover:linear-gradient(rgba(255,255,255,.035),transparent); --s-nav-lit:linear-gradient(transparent,transparent);
  --s-primary-grad:linear-gradient(#e2e6ee,#cdd3df); --s-primary-ink:#242b39;
  --s-primary-fg:#d8dff0; --s-primary-fg-on:#edf2ff; --s-primary-ts:none;
  --s-nav-halo:none; --s-halo:none; --s-halo-strong:none; --s-glow:none; --s-glow-strong:none;
  --s-raised-grad:linear-gradient(130deg,#22252b,#1a1d23);
  --sh-raised:inset 0 1px rgba(255,255,255,.035),0 3px 12px rgba(0,0,0,.12);
  --sh-raised-h:inset 0 1px rgba(255,255,255,.05),0 5px 18px rgba(0,0,0,.16);
  --sh-raised-sm:inset 0 1px rgba(255,255,255,.04);
  --sh-inset:inset 0 1px rgba(255,255,255,.035);
  --sh-btn:inset 0 1px rgba(255,255,255,.05),0 1px 3px rgba(0,0,0,.12);
  --sh-btn-h:inset 0 1px rgba(255,255,255,.1),0 3px 8px rgba(0,0,0,.2);
  --bg-black:#101112; --bg-dark:#15171b; --bg-card:#1b1d21;
  --card-cream:#1b1d21; --card-cream-hover:#22252a;
  --accent:#b7bfdc; --accent-hover:#d0d8ef; --accent-soft:rgba(177,191,226,.09);
  --text-dark:#e1e5ee; --text-light:#e1e5ee; --text-muted:#9ba3b3;
  --text-primary:#e1e5ee; --border-soft:rgba(255,255,255,.09); --hairline:rgba(255,255,255,.09);
  --border:rgba(255,255,255,.09); --card:#1b1d21; --surface:#1b1d21; --surface-raised:#1b1d21;
  --workspace-shade:.55; --workspace-blur:4px; --workspace-sidebar:210px;
}
html[data-ui="workspace"] body {background:#101112;color:var(--s-text);isolation:isolate;}
html[data-ui="workspace"] body, html[data-ui="workspace"] button, html[data-ui="workspace"] input,
html[data-ui="workspace"] select, html[data-ui="workspace"] textarea {font-family:-apple-system,BlinkMacSystemFont,"Inter","PingFang SC","Microsoft YaHei",sans-serif;}
#workspace-backdrop, #workspace-backdrop-shade {position:fixed;pointer-events:none;z-index:-2;inset:0;}
#workspace-backdrop {inset:-32px;filter:blur(var(--workspace-blur));background-size:cover;background-position:center;opacity:0;}
#workspace-backdrop-shade {z-index:-1;background:rgba(7,10,17,var(--workspace-shade));opacity:0;}
body.workspace-wallpaper #workspace-backdrop, body.workspace-wallpaper #workspace-backdrop-shade {opacity:1;}
html[data-ui="workspace"] .app-shell {height:100dvh;min-height:0;display:flex;}
html[data-ui="workspace"] .sidebar {
  position:relative!important;inset:auto!important;transform:none!important;opacity:1!important;pointer-events:auto!important;
  width:var(--workspace-sidebar)!important;flex:0 0 var(--workspace-sidebar);height:100%;margin:0;border:0;
  border-right:1px solid rgba(224,238,244,.18);border-radius:0;background:rgba(15,20,28,.58);
  backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);
  box-shadow:none;padding:0 12px 16px;overflow:visible;
}
html[data-ui="workspace"] .sidebar-brand {display:block!important;padding:27px 7px 29px;border:0;}
html[data-ui="workspace"] .sidebar-brand .workspace-label {display:block;font-size:11px;color:#9199a9;}
html[data-ui="workspace"] .sidebar-brand select {display:block;width:100%;max-width:100%;margin-top:7px;padding:7px 2px;color:#e1e7f2;
  font-size:15px;font-weight:550;border:0;border-radius:6px;background:transparent;box-shadow:none;}
html[data-ui="workspace"] .sidebar-brand select:focus-visible {outline:2px solid #a6b4dd;outline-offset:3px;}
html[data-ui="workspace"] option {background:#22262f;color:#e4eaf6;}
.workspace-brand-note {display:block;font-size:10px;color:#8a94a6;padding-top:7px;line-height:1.7;}
.workspace-brand-note #server-version {display:none;}
html[data-ui="workspace"] .sidebar-nav {padding:0;display:flex;flex-direction:column;gap:6px;overflow-y:auto;min-height:0;flex:1;}
html[data-ui="workspace"] .nav-item {min-height:40px;border:0;padding:10px 12px;margin:0;border-radius:6px;color:#a6afbf;
  font-size:13px;font-weight:450;box-shadow:none;background:transparent;gap:10px;transition:background .16s ease,color .16s ease;}
html[data-ui="workspace"] .nav-item:hover {background:rgba(255,255,255,.04);color:#e8edf6;box-shadow:none;}
html[data-ui="workspace"] .nav-item.active {background:rgba(255,255,255,.07);color:#eef2f8;box-shadow:inset 0 1px rgba(255,255,255,.03);font-weight:500;}
html[data-ui="workspace"] .nav-item.active .nav-icon {color:#c0cae3;filter:none;}
html[data-ui="workspace"] .nav-icon {width:18px;font-size:16px;}
html[data-ui="workspace"] .compact-load-nav {display:flex;}
html[data-ui="workspace"] .workspace-settings-entry {display:flex;align-items:center;gap:10px;margin:15px 0 0;padding:11px 12px;width:100%;color:#b1bcce;
  border:0;border-top:1px solid rgba(255,255,255,.08);border-radius:0;background:transparent;text-align:left;font-size:13px;}
html[data-ui="workspace"] .workspace-settings-entry:hover {color:#eff3fc;background:rgba(255,255,255,.025);}
html[data-ui="workspace"] .sidebar-footer {display:none;}
html[data-ui="workspace"] .sidebar.compact-load-open .sidebar-footer {display:block;position:fixed;left:calc(var(--workspace-sidebar) + 14px);bottom:20px;
  z-index:150;width:340px;max-width:calc(100vw - 28px);max-height:80dvh;overflow:auto;padding:18px;
  border:1px solid #3c4555;background:#1b2330;border-radius:10px;box-shadow:0 20px 60px #0008;}
html[data-ui="workspace"] .sidebar-system-body {display:block;}
html[data-ui="workspace"] .sidebar-mini-chart {display:none;}
html[data-ui="workspace"] #guanguan {display:none;}
html[data-ui="workspace"] .auth-toolbar {position:fixed;top:0;right:36px;left:calc(var(--workspace-sidebar) + 36px);height:64px;padding:0;
  border:0;border-bottom:1px solid rgba(224,238,244,.18);border-radius:0;background:rgba(15,20,28,.58);
  backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);
  box-shadow:none;justify-content:flex-end;transform:none;z-index:110;}
html[data-ui="workspace"] .auth-toolbar::before {content:'观复 / 工作空间';margin-right:auto;font-size:12px;color:#a3adbe;}
html[data-ui="workspace"] .auth-role {font-size:11px;color:#a6b0c3;}
html[data-ui="workspace"] .auth-toolbar .btn {border-radius:5px;font-size:11px;}
html[data-ui="workspace"] .main-content {width:auto;flex:1;min-width:0;height:100dvh;overflow:auto;padding:82px 36px 32px!important;}
html[data-ui="workspace"] .page {max-width:1500px;margin-inline:auto;}
html[data-ui="workspace"] .page-title {font-size:26px;font-weight:550;letter-spacing:-.8px;color:var(--text-dark);}
html[data-ui="workspace"] .page-title::after {display:none;}
html[data-ui="workspace"] #page-dashboard {margin:0 auto;}
html[data-ui="workspace"] #page-dashboard > .page-title {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
html[data-ui="workspace"] #page-dashboard .command-hero {height:auto;min-height:260px;margin:0 0 24px;padding:0;background:transparent;
  border:0;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;box-shadow:none;overflow:hidden;position:relative;isolation:isolate;}
html[data-ui="workspace"] .command-hero::before,html[data-ui="workspace"] .command-hero::after {display:none;}
html[data-ui="workspace"] #page-dashboard .command-hero-copy {height:auto;min-height:0;width:65%;max-width:760px;padding:24px 0 32px;position:relative;z-index:2;}
.workspace-eyebrow {display:block;color:#a2aec2;font-size:11px;letter-spacing:.1px;margin-bottom:14px;}
html[data-ui="workspace"] .command-hero h2 {font-family:inherit;font-size:clamp(30px,3.2vw,46px);font-weight:550;letter-spacing:-1.4px;line-height:1.35;color:#ecf1fa;}
html[data-ui="workspace"] .command-hero h2 span {color:#bac5d8;}
html[data-ui="workspace"] .command-hero p {font-size:13px;line-height:1.8;color:#a4b2c8;max-width:420px;margin-top:15px;}
html[data-ui="workspace"] .command-hero-actions {margin-top:20px;gap:12px;}
html[data-ui="workspace"] .hero-primary,html[data-ui="workspace"] .hero-secondary {padding:8px 12px;font-size:11px;border-radius:5px;box-shadow:inset 0 1px #ffffff0a;border:1px solid #ffffff1d;background:#252c39;color:#dbe5f6;}
html[data-ui="workspace"] .hero-primary {background:linear-gradient(#e2e7f1,#cbd5e5);border-color:#e7eefd;color:#283243;}
html[data-ui="workspace"] .hero-rule,html[data-ui="workspace"] .hero-live-panel {display:none;}
.workspace-product-visual {position:absolute;right:18px;top:22px;width:305px;height:210px;perspective:700px;pointer-events:none;}
.workspace-product-visual::before {content:'';position:absolute;inset:0;background:radial-gradient(ellipse,#a6b7e218,transparent 70%);filter:blur(15px);}
.workspace-evidence-window {position:absolute;right:20px;top:12px;width:243px;height:160px;background:linear-gradient(130deg,#252b36,#1a202b);
  border:1px solid #ffffff21;border-radius:8px;box-shadow:inset 0 1px #ffffff09,0 12px 30px #0005;transform:rotateY(-12deg) rotateX(6deg);overflow:hidden;}
.workspace-window-bar {padding:9px 12px;border-bottom:1px solid #ffffff0d;color:#b3bfd2;font-size:10px;}
.workspace-window-bar span {float:right;font-size:9px;color:#91a0b9;}
.workspace-evidence-window strong {display:block;font-weight:500;font-size:12px;margin:13px 12px 8px;color:#d3dced;}
.workspace-evidence-line {font-size:10px;margin:7px 12px;color:#a3b2ca;}.workspace-evidence-line span {float:right;color:#879bbd;}
.workspace-evidence-float {position:absolute;right:0;bottom:4px;padding:14px;width:209px;border:1px solid #ffffff26;border-radius:7px;
  background:linear-gradient(130deg,#303a4b,#222d3f);box-shadow:inset 0 1px #ffffff08,0 12px 28px #0005;transform:rotateY(-8deg);}
.workspace-evidence-float strong {display:block;color:#d7e4fa;font-size:11px;font-weight:500;}.workspace-evidence-float span {display:block;color:#a5b8d8;font-size:10px;margin-top:7px;}
/* Original three cards: retain ordering, children, IDs and click destinations. */
html[data-ui="workspace"] .command-deck {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 15px;}
html[data-ui="workspace"] .command-deck-card {position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:254px;padding:23px;
  border:1px solid rgba(255,255,255,.16);border-radius:11px;background:linear-gradient(130deg,#242a35,#19202c);
  box-shadow:inset 0 1px rgba(255,255,255,.045),0 4px 16px #00000015;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;}
html[data-ui="workspace"] .command-deck-card::before {content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at var(--card-x,70%) var(--card-y,0%),#a4b8ee10,transparent 65%);opacity:.35;transition:opacity .18s ease;}
html[data-ui="workspace"] .command-deck-card:hover {transform:none;border-color:#ffffff35;box-shadow:inset 0 1px #ffffff0b,0 7px 20px #00000024;}
html[data-ui="workspace"] .command-deck-card:hover::before {opacity:1;}
html[data-ui="workspace"] .deck-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;}
html[data-ui="workspace"] .deck-head h3 {font-size:16px;color:#e5ecf8;font-weight:550;letter-spacing:-.3px;}
html[data-ui="workspace"] .deck-head>span {font-size:10px;color:#a4b5ce;background:#ffffff03;border:1px solid #ffffff16;border-radius:4px;padding:3px 6px;white-space:normal;}
html[data-ui="workspace"] .deck-kpi {display:flex;align-items:baseline;gap:10px;margin-bottom:18px;}
html[data-ui="workspace"] .deck-kpi strong {font-size:34px;line-height:1.2;font-weight:500;letter-spacing:-1px;color:#e9f0fc;font-variant-numeric:tabular-nums;}
html[data-ui="workspace"] .deck-kpi>span {font-size:12px;color:#afbed5;}
html[data-ui="workspace"] .deck-evidence-row {display:grid;grid-template-columns:82px minmax(0,1fr) 33px;align-items:center;gap:9px;margin:7px 0;}
html[data-ui="workspace"] .deck-evidence-row strong {font-size:11px;font-weight:450;color:#abbdd7;}
html[data-ui="workspace"] .deck-evidence-row em {font-style:normal;font-size:10px;color:#a5b5d0;text-align:right;}
html[data-ui="workspace"] :is(.deck-track,.deck-segments,.deck-evidence-track) {height:5px;border:0;border-radius:3px;background:#ffffff0c;box-shadow:none;overflow:hidden;}
html[data-ui="workspace"] .deck-evidence-track {display:block;}
html[data-ui="workspace"] .deck-evidence-fill {display:block;height:100%;background:#929fb8;border-radius:3px;}
html[data-ui="workspace"] .deck-evidence-fill.ledger {background:#aaa5c2;}
html[data-ui="workspace"] .deck-evidence-fill.strict {background:#8bafa9;}
html[data-ui="workspace"] .deck-fill {background:#a7b9da;box-shadow:none;}
html[data-ui="workspace"] .deck-breakdown {font-size:11px;color:#b0bdd4;gap:9px;flex-wrap:wrap;}
html[data-ui="workspace"] .command-deck-card>p {font-size:11px;line-height:1.8;color:#a3b5d2;margin-top:17px;}
html[data-ui="workspace"] .command-scope {font-size:11px;color:#96a8c6;margin-bottom:26px;}
html[data-ui="workspace"] #page-dashboard #command-observatory {border:1px solid var(--s-line);border-radius:10px;padding:20px;background:var(--s-surface);margin-bottom:22px;}
html[data-ui="workspace"] .operate-section-head h2 {font-size:15px;font-weight:550;color:#dce5f6;}
html[data-ui="workspace"] .operate-section-head p,html[data-ui="workspace"] .operate-live {color:#a3b1cb;font-size:11px;}
html[data-ui="workspace"] .operate-live i {background:#90a4c8;box-shadow:none;animation:none;}
html[data-ui="workspace"] .operate-metrics .stat-card {padding:14px;min-height:98px;}
html[data-ui="workspace"] .operate-metrics .stat-value {font-size:25px;font-weight:500;}
html[data-ui="workspace"] .command-priorities {gap:14px;margin-bottom:22px;}
html[data-ui="workspace"] .command-priority {background:var(--s-surface);border:1px solid var(--s-line);border-radius:9px;box-shadow:none;}
html[data-ui="workspace"] :is(.cream-card,.stat-card,.daily-report-card,.graph-detail,.graph-order-list,.filter-bar,.ai-status-card,.result-box) {border-radius:9px;background:var(--s-surface);border-color:var(--s-line);box-shadow:var(--sh-raised);}
html[data-ui="workspace"] .cream-card:hover {border-color:#ffffff25;box-shadow:var(--sh-raised-h);transform:none;}
html[data-ui="workspace"] .btn {border-radius:5px;font-weight:500;text-shadow:none;transition:background .16s ease,box-shadow .16s ease;}
html[data-ui="workspace"] .btn::before {display:none;}
html[data-ui="workspace"] .btn-primary {background:linear-gradient(#dde5f2,#c5d0e4);color:#263248;border:1px solid #e5edfc;box-shadow:inset 0 1px #ffffff80,0 2px 4px #0003;}
html[data-ui="workspace"] .btn-primary:hover {background:#edf3ff;color:#263248;}
html[data-ui="workspace"] .btn-ghost {background:rgba(255,255,255,.03);color:#c4d2e9;border:1px solid #ffffff14;box-shadow:inset 0 1px #ffffff03;}
html[data-ui="workspace"] .form-select,html[data-ui="workspace"] .form-input {border-radius:6px;box-shadow:inset 0 1px #ffffff04;}
html[data-ui="workspace"] .card-title {font-size:15px;font-weight:550;}
html[data-ui="workspace"] .data-table th {font-weight:500;}
html[data-ui="workspace"] .employee-more-menu {background:#202937!important;border-color:#3c4a5d!important;}
html[data-ui="workspace"] body.workspace-wallpaper .sidebar {background:rgba(15,20,28,.58);backdrop-filter:blur(20px) saturate(150%);}
html[data-ui="workspace"] body.workspace-wallpaper .main-content {background:rgba(10,15,23,.18);}
html[data-ui="workspace"] body.workspace-wallpaper .auth-toolbar {background:rgba(15,20,28,.58);backdrop-filter:blur(20px) saturate(150%);}
html[data-ui="workspace"] body.workspace-wallpaper .command-deck-card {background:linear-gradient(125deg,rgba(30,39,55,.74),rgba(17,24,38,.79));backdrop-filter:blur(22px);}
html[data-ui="workspace"] body.workspace-wallpaper :is(.cream-card,.stat-card,.command-priority,#command-observatory) {background:rgba(24,32,47,.82);backdrop-filter:blur(18px);}
html[data-ui="workspace"] .skin-fab {display:none;}
/* Settings use the native dialog top layer and native focus trapping. */
#workspace-settings {width:min(490px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;margin:auto;padding:25px;border:1px solid #ffffff29;border-radius:13px;
  background:linear-gradient(140deg,#232a36,#1c2432);color:#e5ebf7;box-shadow:0 25px 90px #0008,inset 0 1px #ffffff09;}
#workspace-settings::backdrop {background:#070b138c;backdrop-filter:blur(5px);}
.workspace-settings-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;}
.workspace-settings-heading .workspace-eyebrow {margin-bottom:5px;}
#workspace-settings h2 {font-size:24px;font-weight:550;letter-spacing:-.6px;margin:0;}
#workspace-settings h3 {font-size:15px;font-weight:550;margin:0 0 6px;}
#workspace-settings-close {font-size:24px;line-height:1;width:32px;height:32px;border:1px solid #ffffff15;border-radius:6px;background:#ffffff05;color:#c4d1e9;}
.workspace-settings-description {font-size:12px;color:#a7b6cf;line-height:1.8;}
#workspace-appearance-fields {border:0;padding:0;margin:0;min-width:0;}
#workspace-appearance-fields:disabled {opacity:.65;}
.workspace-background-options {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:20px 0;}
.workspace-background-options button {font-size:11px;color:#a8b9d5;padding:0;border:0;background:none;}
.workspace-background-options button>span {height:54px;display:block;border:1px solid #ffffff17;border-radius:7px;margin-bottom:7px;background-size:cover;background-position:center;}
.workspace-background-options button[aria-pressed="true"]>span {outline:2px solid #b0c4e7;outline-offset:3px;}
.workspace-background-options button[aria-pressed="true"] {color:#eef4ff;}
.workspace-background-options button:disabled {opacity:.4;cursor:not-allowed;}
.workspace-swatch-none {background:#12151b;}.workspace-swatch-aurora {background:linear-gradient(135deg,#193a46,#336569,#45406a);}.workspace-swatch-dusk {background:linear-gradient(145deg,#ca927f,#725478,#203954);}.workspace-swatch-custom {background:#334055;}
.workspace-upload {position:relative;overflow:hidden;display:block;border:1px solid #e3edfe;border-radius:6px;background:linear-gradient(#dfe8f7,#c6d4e9);color:#28364e;text-align:center;padding:10px;font-size:12px;cursor:pointer;}
.workspace-upload input {position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;}
.workspace-upload:focus-within {outline:2px solid #b0c4e7;outline-offset:3px;}
.workspace-file-help {font-size:11px;color:#93a7c6;margin-top:8px;}
.workspace-range-label {display:flex;justify-content:space-between;font-size:12px;color:#c2d1ea;margin-top:20px;}
.workspace-range-label output {font-variant-numeric:tabular-nums;color:#9aafd1;}
#workspace-settings input[type="range"] {display:block;width:100%;margin:9px 0 0;accent-color:#b4c8e8;height:24px;cursor:pointer;}
.workspace-reset {background:none;border:0;font-size:11px;color:#b3c4df;margin-top:22px;padding:0;}
.workspace-reset:hover {color:#e4edff;text-decoration:underline;}
#workspace-appearance-status {min-height:36px;margin-top:16px;padding-top:13px;border-top:1px solid #ffffff0e;font-size:11px;line-height:1.8;color:#a1b4d4;overflow-wrap:anywhere;}
.workspace-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
html[data-ui="workspace"] :focus-visible {outline:2px solid #a6b4dd;outline-offset:3px;}
@media(min-width:1600px) {html[data-ui="workspace"] {--workspace-sidebar:235px;}html[data-ui="workspace"] .main-content {padding-inline:48px!important;}html[data-ui="workspace"] .command-deck-card {min-height:280px;padding:26px;}}
@media(max-width:1080px) {html[data-ui="workspace"] {--workspace-sidebar:178px;}html[data-ui="workspace"] .main-content {padding-inline:24px!important;}
  html[data-ui="workspace"] .auth-toolbar {left:calc(var(--workspace-sidebar) + 24px);right:24px;}
  html[data-ui="workspace"] .command-deck {gap:11px;}html[data-ui="workspace"] .command-deck-card {padding:16px;}
  html[data-ui="workspace"] .deck-head {gap:7px;align-items:flex-start;flex-wrap:wrap;}
  html[data-ui="workspace"] .deck-head h3 {font-size:14px;}html[data-ui="workspace"] .deck-evidence-row {grid-template-columns:75px minmax(0,1fr) 25px;gap:5px;}
  .workspace-product-visual {right:-50px;opacity:.6;}html[data-ui="workspace"] .operate-metrics {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:820px) {html[data-ui="workspace"] {--workspace-sidebar:154px;}html[data-ui="workspace"] .sidebar-brand select {font-size:13px;}
  html[data-ui="workspace"] .sidebar {padding-inline:8px;}html[data-ui="workspace"] .nav-item {font-size:12px;padding-inline:9px;}
  html[data-ui="workspace"] .command-deck {grid-template-columns:1fr;}html[data-ui="workspace"] .command-deck-card {min-height:0;padding:21px;}
  html[data-ui="workspace"] .deck-head {margin-bottom:18px;}html[data-ui="workspace"] .command-priorities {grid-template-columns:1fr;}
  html[data-ui="workspace"] #page-dashboard .command-hero-copy {width:100%;}.workspace-product-visual {display:none;}
  html[data-ui="workspace"] .hero-primary,html[data-ui="workspace"] .hero-secondary {font-size:11px;}}
@media(max-width:620px) {html[data-ui="workspace"] body {overflow:auto;}html[data-ui="workspace"] .app-shell {display:block;height:auto;min-height:100dvh;}
  html[data-ui="workspace"] .sidebar {width:100%!important;height:auto;padding:14px 16px 10px;border:0;border-bottom:1px solid #ffffff14;display:block;}
  html[data-ui="workspace"] .sidebar-brand {padding:0 0 12px;max-width:calc(100% - 62px);}
  html[data-ui="workspace"] .sidebar-brand .workspace-label {font-size:10px;}html[data-ui="workspace"] .sidebar-brand select {font-size:16px;margin-top:2px;padding:4px 0;}
  .workspace-brand-note {display:none;}html[data-ui="workspace"] .sidebar-nav {display:flex;flex-direction:row;flex-wrap:wrap;gap:3px;overflow:visible;}
  html[data-ui="workspace"] .nav-item {padding:8px 9px;min-height:40px;font-size:11px;white-space:nowrap;}
  html[data-ui="workspace"] .nav-item .nav-icon {display:none;}html[data-ui="workspace"] .workspace-settings-entry {position:absolute;right:16px;top:23px;width:auto;margin:0;padding:8px;border:0;font-size:12px;}
  html[data-ui="workspace"] .sidebar.compact-load-open .sidebar-footer {left:14px;bottom:14px;max-height:75dvh;}
  html[data-ui="workspace"] .auth-toolbar {position:relative;inset:auto;margin:0;padding:10px 18px;height:auto;border:0;background:transparent!important;backdrop-filter:none!important;}
  html[data-ui="workspace"] .auth-toolbar::before {font-size:11px;}html[data-ui="workspace"] .auth-role {max-width:48%;overflow-wrap:anywhere;}
  html[data-ui="workspace"] .main-content {height:auto;overflow:visible;width:100%;padding:21px 18px 30px!important;}
  html[data-ui="workspace"] #page-dashboard .command-hero {min-height:0;margin-bottom:22px;}
  html[data-ui="workspace"] #page-dashboard .command-hero-copy {padding:5px 0 26px;}
  html[data-ui="workspace"] .command-hero h2 {font-size:33px;}
  html[data-ui="workspace"] .command-hero p {font-size:12px;}
  html[data-ui="workspace"] .command-deck {gap:13px;}
  html[data-ui="workspace"] .operate-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  html[data-ui="workspace"] .operate-section-head {align-items:start;flex-wrap:wrap;gap:9px;}
  html[data-ui="workspace"] .data-table {min-width:0;}html[data-ui="workspace"] .data-table th,html[data-ui="workspace"] .data-table td {overflow-wrap:anywhere;}
  #workspace-settings {padding:22px;}#workspace-settings input[type="range"] {height:32px;}
}
@supports not (backdrop-filter:blur(1px)) {html[data-ui="workspace"] body.workspace-wallpaper .sidebar,html[data-ui="workspace"] body.workspace-wallpaper .command-deck-card {background:#1b2536;}}
@media(prefers-reduced-motion:reduce) {html[data-ui="workspace"] *,html[data-ui="workspace"] *::before {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

/* Global popover layer keeps the load panel above filtered/translucent cards. */
html[data-ui="workspace"] .workspace-sidebar-tools {display:flex;gap:6px;border-top:1px solid #ffffff14;margin-top:15px;padding-top:9px;flex:none;}
html[data-ui="workspace"] .workspace-sidebar-tools>button {position:static!important;display:flex;align-items:center;justify-content:center;gap:8px;flex:1;width:auto;min-width:0;margin:0;padding:11px 6px;border:0;border-radius:6px;font-size:13px;}
html[data-ui="workspace"] .workspace-sidebar-tools>button[hidden],.workspace-messages-badge[hidden] {display:none!important;}
.workspace-messages-entry {position:relative;color:#b1bcce;background:transparent;cursor:pointer;}
.workspace-messages-entry:hover {color:#eff3fc;background:rgba(255,255,255,.04);}
.workspace-messages-badge {display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#d8e4f5;color:#1d293a;font-size:10px;font-weight:700;line-height:1;}
#workspace-settings {width:min(880px,calc(100vw - 32px));height:min(680px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden;}
.workspace-settings-heading {height:76px;margin:0;padding:16px 24px;border-bottom:1px solid #ffffff19;}
.workspace-settings-layout {display:grid;grid-template-columns:220px minmax(0,1fr);height:calc(100% - 76px);min-height:0;}
.workspace-settings-nav {min-width:0;padding:18px 12px;border-right:1px solid #ffffff16;background:rgba(10,14,21,.24);}
.workspace-settings-search-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
#workspace-settings-search {width:100%;margin:0 0 18px;padding:9px 11px;border:1px solid #ffffff27;border-radius:8px;background:#ffffff0c;color:#edf2fb;font-size:12px;}
.workspace-settings-nav button {display:flex;align-items:center;gap:10px;width:100%;margin:4px 0;padding:11px 12px;border:0;border-radius:8px;background:transparent;color:#b8c5d8;text-align:left;font-size:13px;cursor:pointer;}
.workspace-settings-nav button>span:first-child {width:20px;text-align:center;color:#9eafd0;}
.workspace-settings-nav button>span:last-child {margin-left:auto;color:#77859a;}
.workspace-settings-nav button[aria-current="page"] {background:rgba(183,197,226,.18);color:#f2f6fe;}
.workspace-settings-nav button:hover {background:rgba(183,197,226,.11);color:#f2f6fe;}
.workspace-settings-nav button[hidden],#workspace-settings [data-settings-panel][hidden] {display:none!important;}
.workspace-settings-content {min-width:0;overflow:auto;padding:30px 32px 44px;}
.workspace-settings-content h3 {font-size:21px!important;font-weight:560!important;margin:0 0 12px!important;}
.workspace-settings-back {display:none;}
.workspace-settings-toggle {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px;padding:16px 18px;border:1px solid #ffffff1f;border-radius:10px;background:#ffffff08;cursor:pointer;}
.workspace-settings-toggle strong,.workspace-settings-toggle small {display:block;}
.workspace-settings-toggle strong {font-size:13px;color:#e7edfa;}
.workspace-settings-toggle small {margin-top:5px;font-size:11px;line-height:1.5;color:#9dacbf;}
.workspace-settings-toggle input {flex:none;width:19px;height:19px;accent-color:#b7c9e8;}
#workspace-notification-status {margin-top:12px;}
#workspace-messages {width:min(580px,calc(100vw - 28px));height:min(700px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #ffffff29;border-radius:14px;background:linear-gradient(140deg,#232a36,#1c2432);color:#e5ebf7;box-shadow:0 25px 90px #0008;overflow:hidden;}
#workspace-messages::backdrop {background:#070b138c;backdrop-filter:blur(5px);}
.workspace-messages-heading {display:flex;justify-content:space-between;align-items:center;padding:20px 22px 10px;}
.workspace-messages-heading h2 {margin:4px 0 0;font-size:23px;font-weight:550;}
#workspace-messages-close {font-size:24px;line-height:1;width:32px;height:32px;border:1px solid #ffffff15;border-radius:6px;background:#ffffff05;color:#c4d1e9;cursor:pointer;}
.workspace-messages-intro {margin:0;padding:0 22px 18px;color:#a7b6cf;font-size:12px;line-height:1.6;}
.workspace-messages-toolbar {display:flex;justify-content:space-between;align-items:center;padding:10px 22px;border-block:1px solid #ffffff16;color:#b8c6dd;font-size:12px;}
.workspace-messages-toolbar button,.workspace-message-read {border:1px solid #ffffff29;border-radius:6px;background:#ffffff0c;color:#dae5f6;padding:6px 10px;font-size:12px;cursor:pointer;}
.workspace-messages-list {height:calc(100% - 160px);overflow:auto;padding:14px 22px 24px;}
.workspace-message-card {padding:17px 18px;margin:0 0 10px;border:1px solid #ffffff1c;border-radius:10px;background:#ffffff08;}
.workspace-message-card.is-unread {border-color:#aebfdf80;background:#b2c5e514;}
.workspace-message-card h3 {margin:0;font-size:15px;font-weight:560;}
.workspace-message-meta {display:flex;justify-content:space-between;gap:12px;margin:0 0 10px;color:#9eb0c9;font-size:11px;}
.workspace-message-card p {margin:8px 0;color:#c5d2e5;font-size:12px;line-height:1.65;overflow-wrap:anywhere;}
.workspace-message-card a {color:#d8e8ff;text-decoration:underline;}
.workspace-message-card .workspace-message-read {margin-top:8px;}
@media(max-width:620px) {
  #workspace-settings {width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);}
  .workspace-settings-heading {height:68px;padding:13px 18px;}
  .workspace-settings-layout {display:block;height:calc(100% - 68px);}
  .workspace-settings-nav {height:100%;border:0;padding:18px;}
  .workspace-settings-layout[data-mobile-view="detail"] .workspace-settings-nav {display:none;}
  .workspace-settings-layout[data-mobile-view="list"] .workspace-settings-content {display:none;}
  .workspace-settings-content {height:100%;padding:16px 20px 34px;}
  .workspace-settings-back {display:block;margin:0 0 20px;padding:4px 0;border:0;background:none;color:#b7c9e9;font-size:13px;}
  #workspace-messages {height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);}
}
html[data-ui="workspace"] #workspace-load-panel {position:fixed;inset:auto auto 20px calc(var(--workspace-sidebar) + 14px);margin:0;padding:20px;width:360px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #414650;border-radius:12px;background:#1b1e24;color:var(--s-text);box-shadow:0 18px 60px #0009;z-index:1000;}
html[data-ui="workspace"] #workspace-load-panel:popover-open,html[data-ui="workspace"] #workspace-load-panel.load-fallback-open {display:block!important;}
#workspace-load-panel::backdrop {background:transparent;}
.workspace-load-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:15px;}
.workspace-load-heading button {border:0;background:transparent;color:#b8c1d2;font-size:23px;padding:0 7px;cursor:pointer;}
html[data-ui="workspace"] #workspace-load-panel .sidebar-system-body {display:block;}
@media(max-width:620px) {
 html[data-ui="workspace"] .workspace-sidebar-tools {position:absolute;right:16px;top:22px;border:0;margin:0;padding:0;gap:3px;}
 html[data-ui="workspace"] .workspace-sidebar-tools>button {font-size:11px;padding:7px;white-space:nowrap;}
 html[data-ui="workspace"] .sidebar-brand {max-width:calc(100% - 132px);}
 html[data-ui="workspace"] #workspace-load-panel {left:14px;bottom:14px;max-height:calc(100dvh - 28px);}
}
/* Keep the wallpaper continuous behind the same glass used by the marketing nav. */
html[data-ui="workspace"] .auth-toolbar {left:var(--workspace-sidebar);right:0;padding:0 36px;border-radius:0;background:rgba(15,20,28,.58);}
html[data-ui="workspace"] body.workspace-wallpaper .main-content {background:transparent;backdrop-filter:none;}
html[data-ui="workspace"] body.workspace-wallpaper .sidebar,
html[data-ui="workspace"] body.workspace-wallpaper .auth-toolbar {background:rgba(15,20,28,.58);backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);}
.learning-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.learning-heading .page-title {margin:0;}
.learning-intro {font-size:12px;line-height:1.8;color:var(--text-muted);margin:12px 0 20px;}
.learning-tabs {display:flex;gap:24px;border-bottom:1px solid #ffffff18;margin:20px 0 24px;}
.learning-tabs button {border:0;border-bottom:2px solid transparent;background:none;color:#98a4b8;padding:12px 0;font-size:13px;cursor:pointer;}
.learning-tabs button[aria-selected="true"] {color:#edf2fc;border-bottom-color:#bac9e8;}
.learning-panel[hidden] {display:none!important;}
.learning-advanced {margin:18px 0;padding:20px;}
.learning-advanced>summary {cursor:pointer;font-size:14px;font-weight:550;}
.learning-advanced[open]>summary {margin-bottom:18px;}
.learning-create-dialog {width:min(880px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:26px;border:1px solid #ffffff30;border-radius:14px;background:#1c2028;color:#e1e5ee;box-shadow:0 24px 90px #0009;}
.learning-create-dialog::backdrop {background:#090c14a6;backdrop-filter:blur(5px);}
.learning-create-dialog h2 {font-size:21px;}
.learning-create-dialog #full-analysis-filter-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.learning-panel .evidence-package-grid-wrap {max-width:100%;overflow-x:auto;}
.learning-panel .orch-zone {min-width:0;}
.learning-panel .orch-zone h3 {font-size:15px;margin-bottom:14px;}
.learning-panel .orch-kicker {display:none;}
@media(max-width:1080px){html[data-ui="workspace"] .auth-toolbar{left:var(--workspace-sidebar);right:0;padding-inline:24px;}}
@media(max-width:620px){html[data-ui="workspace"] .auth-toolbar{left:auto;right:auto;margin:-21px -18px 20px;padding:16px 18px;border-bottom:1px solid #ffffff14;}
.learning-tabs {gap:20px;}.learning-tabs button{font-size:12px;}.learning-create-dialog {padding:20px;}.learning-create-dialog #full-analysis-filter-grid{grid-template-columns:1fr!important;}}
.learning-task-list {margin-bottom:20px;}
.learning-task-list h3 {font-size:15px;}
.learning-job-group {border-top:1px solid #ffffff12;padding:14px 0;}
.learning-job-group summary {cursor:pointer;font-size:13px;color:#ccd5e6;}
.learning-job-row {display:flex;justify-content:space-between;gap:16px;text-align:left;width:100%;padding:13px 10px;border:0;border-bottom:1px solid #ffffff0b;background:transparent;color:#b8c6dc;font-size:12px;}
.learning-job-row:hover {background:#ffffff08;}
.learning-panel section {scroll-margin-top:80px;}
.learning-evidence-detail {margin-top:15px;border-top:1px solid #ffffff12;padding-top:12px;}
.learning-evidence-detail summary {font-size:12px;color:#aebbd0;cursor:pointer;}
.learning-create-dialog #full-analysis-filter-grid>label {display:block;min-width:0;}
.learning-create-dialog .form-select {display:block;width:100%;}
.learning-create-dialog #full-analysis-start {white-space:nowrap;flex-shrink:0;}
.learning-create-dialog #full-analysis-hint {flex:1 1 240px;line-height:1.7;}
.learning-create-dialog .learning-create-actions {flex-wrap:wrap;}
/* Toolbox keeps the same workspace shell and presents each release as a product. */
.toolbox-head {padding:6px 0 23px;}
.toolbox-head .workspace-eyebrow {color:#abb7cd;font-size:11px;letter-spacing:.12em;}
.toolbox-head h2 {margin:9px 0 5px;}
.toolbox-head p {color:#9da9bc;font-size:13px;}
.toolbox-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;}
html[data-ui="workspace"] .toolbox-product {display:flex;flex-direction:column;align-items:stretch;gap:0;padding:24px;max-width:none;min-width:0;height:100%;}
.toolbox-product-mark {display:grid;place-items:center;width:62px;flex:0 0 62px;height:62px;margin-bottom:20px;border-radius:14px;background:radial-gradient(circle at 70% 25%,#77513c,#2a2930 65%);color:#f2c49b;font-size:42px;line-height:1;box-shadow:inset 0 1px #ffffff28;}
.toolbox-product-body {display:flex;flex:1;flex-direction:column;min-width:0;}
.toolbox-kicker {font-size:11px;color:#9fb4d1;letter-spacing:.06em;}
.toolbox-product h3 {font-size:25px;font-weight:600;color:#edf1f8;letter-spacing:-.03em;margin:3px 0 9px;}
.toolbox-product-body>p {font-size:13px;line-height:1.8;color:#bac4d5;margin:0 0 16px;}
.toolbox-tags {display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 20px;}
.toolbox-tags span {padding:5px 8px;border:1px solid #ffffff19;border-radius:5px;color:#a6b4ca;font-size:11px;}
.toolbox-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:auto;margin-bottom:18px;}
.toolbox-actions a:not(.btn) {font-size:12px;color:#bcd1ee;text-decoration:underline;text-underline-offset:3px;}
.toolbox-product .toolbox-fineprint {border-top:1px solid #ffffff14;padding-top:14px;color:#a1acbe;font-size:11px;}
.toolbox-product + .toolbox-product {margin-top:0;}
.toolbox-product-mark-video {font-size:38px;background:radial-gradient(circle at 65% 20%,#43685c,#1d3236 70%);color:#c7e1dc;}
@media(max-width:1180px){.toolbox-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.toolbox-grid{grid-template-columns:minmax(0,1fr);}html[data-ui="workspace"] .toolbox-product{padding:22px;}.toolbox-product-mark{width:58px;height:58px;flex-basis:58px;margin-bottom:16px;}}
/* Wallpaper mode: let the same background show through surfaces and controls. */
html[data-ui="workspace"] body.workspace-wallpaper {
  --workspace-glass:rgba(13,20,24,.46);
  --workspace-glass-inner:rgba(7,11,14,.30);
  --workspace-glass-edge:rgba(224,238,244,.18);
}
html[data-ui="workspace"] body.workspace-wallpaper :is(.cream-card,.stat-card,.command-priority,.command-deck-card,.daily-report-card,.graph-detail,.graph-order-list,.filter-bar,.ai-status-card,#command-observatory,.toolbox-product) {
  background:linear-gradient(145deg,rgba(255,255,255,.035),transparent 58%),var(--workspace-glass);
  border-color:var(--workspace-glass-edge);
  backdrop-filter:blur(15px) saturate(1.12);
  -webkit-backdrop-filter:blur(15px) saturate(1.12);
  box-shadow:inset 0 1px rgba(255,255,255,.07),0 10px 28px rgba(0,0,0,.11);
}
html[data-ui="workspace"] body.workspace-wallpaper :is(.result-box,.plan-progress-card,.progress-bar,.ai-status-card,.learning-job-group,.graph-metric,.graph-evidence) {
  background:var(--workspace-glass-inner);
  border-color:rgba(224,238,244,.11);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
html[data-ui="workspace"] body.workspace-wallpaper :is(.btn-primary,.btn-secondary,.btn-ghost,.btn-danger,.learning-job-row) {
  background:rgba(216,231,245,.085);
  background-image:none;
  border:1px solid rgba(227,240,251,.20);
  color:#e7effb;
  text-shadow:none;
  box-shadow:inset 0 1px rgba(255,255,255,.08);
}
html[data-ui="workspace"] body.workspace-wallpaper .btn-primary {background:rgba(217,232,251,.16);border-color:rgba(230,241,255,.36);font-weight:600;}
html[data-ui="workspace"] body.workspace-wallpaper .btn-danger {background:rgba(162,71,68,.19);border-color:rgba(239,151,144,.30);color:#ffd4cf;}
html[data-ui="workspace"] body.workspace-wallpaper :is(.btn-primary,.btn-secondary,.btn-ghost,.btn-danger,.learning-job-row):hover {background:rgba(231,241,255,.20);border-color:rgba(240,248,255,.42);color:#fff;}
html[data-ui="workspace"] body.workspace-wallpaper .btn-danger:hover {background:rgba(174,66,66,.31);border-color:rgba(249,166,155,.5);color:#fff0ed;}
html[data-ui="workspace"] body.workspace-wallpaper :is(.toolbox-tags span,.deck-head>span) {background:rgba(218,232,245,.055);border-color:rgba(227,240,251,.16);}
@supports not (backdrop-filter:blur(1px)) {html[data-ui="workspace"] body.workspace-wallpaper :is(.cream-card,.stat-card,.command-priority,.command-deck-card,.result-box,.toolbox-product) {background:rgba(13,20,24,.80);}}
/* The legacy theme still supplies solid fills to fields and a few nested panels. */
html[data-ui="workspace"] body.workspace-wallpaper .main-content :is(.form-select,.form-input) {
  background:rgba(13,20,24,.32);
  border-color:rgba(224,238,244,.19);
  color:var(--text-dark);
  box-shadow:inset 0 1px rgba(255,255,255,.055);
}
html[data-ui="workspace"] body.workspace-wallpaper .main-content :is(.form-select,.form-input):focus-visible {
  border-color:rgba(218,235,255,.58);
  outline:2px solid rgba(188,213,247,.65);
  outline-offset:2px;
}
html[data-ui="workspace"] body.workspace-wallpaper .main-content :is(.form-select,.form-input):disabled {
  opacity:.55;
}
html[data-ui="workspace"] body.workspace-wallpaper .main-content .form-select option {
  background:#1e282c;
  color:#edf4f5;
}
html[data-ui="workspace"] body.workspace-wallpaper #page-dashboard #command-observatory {
  background:linear-gradient(145deg,rgba(255,255,255,.03),transparent 58%),rgba(13,20,24,.36);
  border-color:var(--workspace-glass-edge);
  backdrop-filter:blur(15px) saturate(1.12);
  -webkit-backdrop-filter:blur(15px) saturate(1.12);
}
html[data-ui="workspace"] body.workspace-wallpaper #command-observatory .operate-metrics .stat-card,
html[data-ui="workspace"] body.workspace-wallpaper #page-graph .graph-metric {
  background:rgba(7,11,14,.20);
  border-color:rgba(224,238,244,.16);
  backdrop-filter:blur(12px) saturate(1.05);
  -webkit-backdrop-filter:blur(12px) saturate(1.05);
  box-shadow:inset 0 1px rgba(255,255,255,.045);
}
html[data-ui="workspace"] body.workspace-wallpaper #page-graph .graph-notice {
  background:rgba(13,20,24,.32);
  border:1px solid rgba(224,238,244,.15);
  backdrop-filter:blur(12px) saturate(1.05);
  -webkit-backdrop-filter:blur(12px) saturate(1.05);
}
/* The optional hybrid skin uses important fills; wallpaper takes precedence when selected. */
html[data-ui="workspace"] body.hybrid-ui.workspace-wallpaper .main-content :is(.form-select,.form-input) {background:rgba(13,20,24,.32)!important;border-color:rgba(224,238,244,.19)!important;}
html[data-ui="workspace"] body.hybrid-ui.workspace-wallpaper .main-content :is(.graph-notice,#command-observatory,.operate-metrics .stat-card,.graph-metric) {background:rgba(13,20,24,.32)!important;border-color:rgba(224,238,244,.16)!important;}

/* Original workspace appearance and optional local wallpaper. */
.workspace-setting-subtitle {margin-top:19px;font-size:11px;font-weight:600;letter-spacing:.04em;color:#b8c7df;}
.workspace-setting-hint {font-weight:400;letter-spacing:0;opacity:.75;}
.workspace-tone-options {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:10px 0 22px;}
.workspace-tone-options button {min-width:0;padding:0;border:0;background:none;color:#a8b9d5;font-size:11px;cursor:pointer;}
.workspace-tone-preview {position:relative;display:block;height:54px;margin-bottom:7px;border:1px solid #ffffff2a;border-radius:7px;overflow:hidden;}
.workspace-tone-preview::before {content:'';position:absolute;left:13px;top:12px;width:23%;height:30px;border-radius:3px;background:var(--preview-side);}
.workspace-tone-preview::after {content:'';position:absolute;left:41%;right:12px;top:13px;height:28px;border-radius:4px;background:var(--preview-card);box-shadow:0 0 0 1px #0000000c;}
.tone-original {background:#171a20;--preview-side:#242933;--preview-card:#3c4555;}
.workspace-tone-options button[aria-pressed="true"] .workspace-tone-preview {outline:2px solid #b0c4e7;outline-offset:3px;}
.workspace-tone-options button[aria-pressed="true"] {color:#eef4ff;}
/* The standard workspace also needs a complete narrow layout. Earlier generic
   .sidebar rules lose to the workspace selectors and leave a tall rail above
   the content when the app shell becomes a block. */
@media (max-width:960px) {
  html[data-ui="workspace"] body:not(.hybrid-ui) {overflow-x:hidden;overflow-y:auto;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .app-shell {display:block!important;height:auto!important;min-height:100dvh!important;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .sidebar {
    position:relative!important;inset:auto!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px;
    width:100%!important;height:auto!important;margin:0!important;padding:14px 18px 10px!important;
    overflow:visible!important;border:0;border-bottom:1px solid var(--s-line)!important;
    border-radius:0!important;box-shadow:none!important;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .sidebar-brand {
    grid-column:1;grid-row:1;max-width:none!important;padding:0!important;min-width:0;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .sidebar-brand select {max-width:100%;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .workspace-brand-note {display:none;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .workspace-sidebar-tools {
    position:static!important;grid-column:2;grid-row:1;display:flex;gap:4px;
    margin:0;padding:0;border:0;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .workspace-sidebar-tools>button {
    position:static!important;flex:none;width:auto;min-height:36px;padding:7px 9px;
    font-size:11px;white-space:nowrap;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .sidebar-nav {
    grid-column:1/-1;grid-row:2;display:flex!important;flex-direction:row;
    flex-wrap:nowrap;flex:none!important;gap:5px;min-width:0;width:100%;
    padding:0 0 2px!important;overflow-x:auto!important;overflow-y:hidden!important;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .nav-item {
    display:inline-flex!important;flex:0 0 auto!important;min-height:40px;
    padding:8px 11px!important;gap:7px;white-space:nowrap;scroll-snap-align:start;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .nav-item .nav-icon {display:inline-flex;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .main-content {
    display:block;width:100%!important;height:auto!important;min-height:0!important;
    overflow:visible!important;padding:0 18px 30px!important;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .auth-toolbar {
    position:relative!important;inset:auto!important;left:auto!important;right:auto!important;
    display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;width:auto;height:auto;
    min-height:56px;margin:0 -18px 18px;padding:10px 18px!important;
    border:0;border-bottom:1px solid var(--s-line);border-radius:0;box-shadow:none;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .auth-toolbar::before {margin-right:auto;}
  html[data-ui="workspace"] body:not(.hybrid-ui) #page-dashboard .command-hero-copy {width:100%;}
}
@media (max-width:620px) {
  html[data-ui="workspace"] body:not(.hybrid-ui) .sidebar {padding:12px 14px 8px!important;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .sidebar-brand {max-width:none!important;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .workspace-sidebar-tools>button {padding:7px;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .sidebar-nav {
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
    overflow:visible!important;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .nav-item {
    display:flex!important;justify-content:center;min-width:0;width:100%;padding:8px 4px!important;
    font-size:11px;
  }
  html[data-ui="workspace"] body:not(.hybrid-ui) .main-content {padding:0 14px 30px!important;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .auth-toolbar {margin:0 -14px 16px;padding:10px 14px!important;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .auth-toolbar::before {display:none;}
  html[data-ui="workspace"] body:not(.hybrid-ui) .auth-role {margin-right:auto;max-width:100%;}
}
