/* Shared semantic themes. The dark fallback palette remains the authored default. */
html[data-theme="dark"]{--theme-page:#0d0c0b;--theme-surface:#191715;--theme-raised:#29241f;--theme-ink:#f5f0e8;--theme-muted:#bcb2a8;--theme-action:#ff813d;--theme-on-action:#211208;--theme-accent-text:#ff9c61;--theme-positive:#76d6cf;--theme-positive-surface:#132e29;--theme-danger:#ffc0b4;--theme-danger-surface:#38201c;--theme-control-border:#807165}
html[data-theme="paper"]{--theme-page:#faf5eb;--theme-surface:#fffdf7;--theme-raised:#eee5d7;--theme-ink:#29221b;--theme-muted:#65584a;--theme-action:#ff813d;--theme-on-action:#211208;--theme-accent-text:#9b3b0b;--theme-positive:#096361;--theme-positive-surface:#d8eee5;--theme-danger:#a12825;--theme-danger-surface:#ffe4dd;--theme-control-border:#827262;--dw-accent-text:var(--theme-accent-text);--dw-action:var(--theme-action);--dw-action-a13:color-mix(in srgb,var(--theme-action) 13%,transparent);--dw-control-border:var(--theme-control-border);--dw-danger-surface:var(--theme-danger-surface);--dw-ink:var(--theme-ink);--dw-muted:var(--theme-muted);--dw-on-action:var(--theme-on-action);--dw-page:var(--theme-page);--dw-page-a74:color-mix(in srgb,var(--theme-page) 74%,transparent);--dw-positive:var(--theme-positive);--dw-positive-surface:var(--theme-positive-surface);--dw-positive-surface-a25:color-mix(in srgb,var(--theme-positive-surface) 25%,transparent);--dw-positive-surface-a33:color-mix(in srgb,var(--theme-positive-surface) 33%,transparent);--dw-positive-surface-a40:color-mix(in srgb,var(--theme-positive-surface) 40%,transparent);--dw-raised:var(--theme-raised);--dw-raised-a13:color-mix(in srgb,var(--theme-raised) 13%,transparent);--dw-raised-a14:color-mix(in srgb,var(--theme-raised) 14%,transparent);--dw-raised-a24:color-mix(in srgb,var(--theme-raised) 24%,transparent);--dw-raised-a27:color-mix(in srgb,var(--theme-raised) 27%,transparent);--dw-surface:var(--theme-surface);--dw-surface-a2:color-mix(in srgb,var(--theme-surface) 2%,transparent);--dw-surface-a33:color-mix(in srgb,var(--theme-surface) 33%,transparent);--paper:var(--theme-page);--bg:var(--theme-page);--surface:var(--theme-surface);--panel:var(--theme-surface);--raised:var(--theme-raised);--ink:var(--theme-ink);--text:var(--theme-ink);--muted:var(--theme-muted);--subtle:var(--theme-muted);--line:var(--theme-control-border);--border:var(--theme-control-border);--accent:var(--theme-accent-text);--accent-hi:var(--theme-accent-text);--orange:var(--theme-accent-text);--mint:var(--theme-positive);--green:var(--theme-positive);--mint-ink:var(--theme-ink);--mint-surface:var(--theme-positive-surface);--mint-border:var(--theme-positive);--red:var(--theme-danger);--pp-surface:var(--theme-surface);--pp-border:var(--theme-control-border);--pp-muted:var(--theme-muted);--pp-accent:var(--theme-accent-text)}
html[data-theme="light"]{--theme-page:#f3f6f8;--theme-surface:#ffffff;--theme-raised:#e4ebf0;--theme-ink:#142c38;--theme-muted:#4a606b;--theme-action:#ff813d;--theme-on-action:#211208;--theme-accent-text:#a13e0e;--theme-positive:#006574;--theme-positive-surface:#d7eef1;--theme-danger:#a32133;--theme-danger-surface:#ffe4e8;--theme-control-border:#6e828e;--dw-accent-text:var(--theme-accent-text);--dw-action:var(--theme-action);--dw-action-a13:color-mix(in srgb,var(--theme-action) 13%,transparent);--dw-control-border:var(--theme-control-border);--dw-danger-surface:var(--theme-danger-surface);--dw-ink:var(--theme-ink);--dw-muted:var(--theme-muted);--dw-on-action:var(--theme-on-action);--dw-page:var(--theme-page);--dw-page-a74:color-mix(in srgb,var(--theme-page) 74%,transparent);--dw-positive:var(--theme-positive);--dw-positive-surface:var(--theme-positive-surface);--dw-positive-surface-a25:color-mix(in srgb,var(--theme-positive-surface) 25%,transparent);--dw-positive-surface-a33:color-mix(in srgb,var(--theme-positive-surface) 33%,transparent);--dw-positive-surface-a40:color-mix(in srgb,var(--theme-positive-surface) 40%,transparent);--dw-raised:var(--theme-raised);--dw-raised-a13:color-mix(in srgb,var(--theme-raised) 13%,transparent);--dw-raised-a14:color-mix(in srgb,var(--theme-raised) 14%,transparent);--dw-raised-a24:color-mix(in srgb,var(--theme-raised) 24%,transparent);--dw-raised-a27:color-mix(in srgb,var(--theme-raised) 27%,transparent);--dw-surface:var(--theme-surface);--dw-surface-a2:color-mix(in srgb,var(--theme-surface) 2%,transparent);--dw-surface-a33:color-mix(in srgb,var(--theme-surface) 33%,transparent);--paper:var(--theme-page);--bg:var(--theme-page);--surface:var(--theme-surface);--panel:var(--theme-surface);--raised:var(--theme-raised);--ink:var(--theme-ink);--text:var(--theme-ink);--muted:var(--theme-muted);--subtle:var(--theme-muted);--line:var(--theme-control-border);--border:var(--theme-control-border);--accent:var(--theme-accent-text);--accent-hi:var(--theme-accent-text);--orange:var(--theme-accent-text);--mint:var(--theme-positive);--green:var(--theme-positive);--mint-ink:var(--theme-ink);--mint-surface:var(--theme-positive-surface);--mint-border:var(--theme-positive);--red:var(--theme-danger);--pp-surface:var(--theme-surface);--pp-border:var(--theme-control-border);--pp-muted:var(--theme-muted);--pp-accent:var(--theme-accent-text)}
html[data-theme="night"]{--theme-page:#081927;--theme-surface:#10283b;--theme-raised:#1b3b51;--theme-ink:#eef8ff;--theme-muted:#b9d0df;--theme-action:#ff9955;--theme-on-action:#211208;--theme-accent-text:#ffa969;--theme-positive:#6bdde9;--theme-positive-surface:#153d47;--theme-danger:#ffc1b8;--theme-danger-surface:#43262e;--theme-control-border:#7096ae;--dw-accent-text:var(--theme-accent-text);--dw-action:var(--theme-action);--dw-action-a13:color-mix(in srgb,var(--theme-action) 13%,transparent);--dw-control-border:var(--theme-control-border);--dw-danger-surface:var(--theme-danger-surface);--dw-ink:var(--theme-ink);--dw-muted:var(--theme-muted);--dw-on-action:var(--theme-on-action);--dw-page:var(--theme-page);--dw-page-a74:color-mix(in srgb,var(--theme-page) 74%,transparent);--dw-positive:var(--theme-positive);--dw-positive-surface:var(--theme-positive-surface);--dw-positive-surface-a25:color-mix(in srgb,var(--theme-positive-surface) 25%,transparent);--dw-positive-surface-a33:color-mix(in srgb,var(--theme-positive-surface) 33%,transparent);--dw-positive-surface-a40:color-mix(in srgb,var(--theme-positive-surface) 40%,transparent);--dw-raised:var(--theme-raised);--dw-raised-a13:color-mix(in srgb,var(--theme-raised) 13%,transparent);--dw-raised-a14:color-mix(in srgb,var(--theme-raised) 14%,transparent);--dw-raised-a24:color-mix(in srgb,var(--theme-raised) 24%,transparent);--dw-raised-a27:color-mix(in srgb,var(--theme-raised) 27%,transparent);--dw-surface:var(--theme-surface);--dw-surface-a2:color-mix(in srgb,var(--theme-surface) 2%,transparent);--dw-surface-a33:color-mix(in srgb,var(--theme-surface) 33%,transparent);--paper:var(--theme-page);--bg:var(--theme-page);--surface:var(--theme-surface);--panel:var(--theme-surface);--raised:var(--theme-raised);--ink:var(--theme-ink);--text:var(--theme-ink);--muted:var(--theme-muted);--subtle:var(--theme-muted);--line:var(--theme-control-border);--border:var(--theme-control-border);--accent:var(--theme-accent-text);--accent-hi:var(--theme-accent-text);--orange:var(--theme-accent-text);--mint:var(--theme-positive);--green:var(--theme-positive);--mint-ink:var(--theme-ink);--mint-surface:var(--theme-positive-surface);--mint-border:var(--theme-positive);--red:var(--theme-danger);--pp-surface:var(--theme-surface);--pp-border:var(--theme-control-border);--pp-muted:var(--theme-muted);--pp-accent:var(--theme-accent-text)}
html[data-theme="contrast"]{--theme-page:#000000;--theme-surface:#000000;--theme-raised:#131313;--theme-ink:#ffffff;--theme-muted:#eeeeee;--theme-action:#ffae70;--theme-on-action:#000000;--theme-accent-text:#ffb980;--theme-positive:#70f2f2;--theme-positive-surface:#002c2c;--theme-danger:#ffc8c0;--theme-danger-surface:#310000;--theme-control-border:#d6d6d6;--dw-accent-text:var(--theme-accent-text);--dw-action:var(--theme-action);--dw-action-a13:color-mix(in srgb,var(--theme-action) 13%,transparent);--dw-control-border:var(--theme-control-border);--dw-danger-surface:var(--theme-danger-surface);--dw-ink:var(--theme-ink);--dw-muted:var(--theme-muted);--dw-on-action:var(--theme-on-action);--dw-page:var(--theme-page);--dw-page-a74:color-mix(in srgb,var(--theme-page) 74%,transparent);--dw-positive:var(--theme-positive);--dw-positive-surface:var(--theme-positive-surface);--dw-positive-surface-a25:color-mix(in srgb,var(--theme-positive-surface) 25%,transparent);--dw-positive-surface-a33:color-mix(in srgb,var(--theme-positive-surface) 33%,transparent);--dw-positive-surface-a40:color-mix(in srgb,var(--theme-positive-surface) 40%,transparent);--dw-raised:var(--theme-raised);--dw-raised-a13:color-mix(in srgb,var(--theme-raised) 13%,transparent);--dw-raised-a14:color-mix(in srgb,var(--theme-raised) 14%,transparent);--dw-raised-a24:color-mix(in srgb,var(--theme-raised) 24%,transparent);--dw-raised-a27:color-mix(in srgb,var(--theme-raised) 27%,transparent);--dw-surface:var(--theme-surface);--dw-surface-a2:color-mix(in srgb,var(--theme-surface) 2%,transparent);--dw-surface-a33:color-mix(in srgb,var(--theme-surface) 33%,transparent);--paper:var(--theme-page);--bg:var(--theme-page);--surface:var(--theme-surface);--panel:var(--theme-surface);--raised:var(--theme-raised);--ink:var(--theme-ink);--text:var(--theme-ink);--muted:var(--theme-muted);--subtle:var(--theme-muted);--line:var(--theme-control-border);--border:var(--theme-control-border);--accent:var(--theme-accent-text);--accent-hi:var(--theme-accent-text);--orange:var(--theme-accent-text);--mint:var(--theme-positive);--green:var(--theme-positive);--mint-ink:var(--theme-ink);--mint-surface:var(--theme-positive-surface);--mint-border:var(--theme-positive);--red:var(--theme-danger);--pp-surface:var(--theme-surface);--pp-border:var(--theme-control-border);--pp-muted:var(--theme-muted);--pp-accent:var(--theme-accent-text)}

html[data-theme]{background:var(--theme-page)}
[data-theme-control]{min-width:0;position:relative}.theme-control{display:flex;gap:8px;align-items:center;color:var(--theme-muted);font-size:12px;line-height:1.3}.theme-control select{color:var(--theme-ink);background:var(--theme-surface);border:1px solid var(--theme-control-border);border-radius:7px;padding:8px 25px 8px 9px;font:inherit;min-height:40px;max-width:210px;width:auto;margin:0}.theme-control select:focus-visible{outline:2px solid var(--theme-positive);outline-offset:3px}.theme-status:not(:empty){display:block;max-width:250px;font-size:11px;color:var(--theme-muted);padding-top:4px;line-height:1.4}
.header{flex-wrap:wrap}.header [data-theme-control]{margin-left:auto;padding-block:8px}.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding-block:10px;gap:10px}.topbar [data-theme-control]{margin-left:auto}.topbar .theme-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html:not([data-theme="dark"]) .button.primary,html:not([data-theme="dark"]) .file-picker{background:var(--theme-action);color:var(--theme-on-action);border-color:var(--theme-action)}
html:not([data-theme="dark"]) input,html:not([data-theme="dark"]) textarea,html:not([data-theme="dark"]) select{color:var(--theme-ink);background-color:var(--theme-surface);border-color:var(--theme-control-border);accent-color:var(--theme-accent-text)}
html:not([data-theme="dark"]) input::placeholder,html:not([data-theme="dark"]) textarea::placeholder{color:var(--theme-muted);opacity:1}
html:not([data-theme="dark"]) .brand-lockup,html:not([data-theme="dark"]) .header .wordmark img{filter:none}
html[data-theme="paper"] .brand-lockup,html[data-theme="light"] .brand-lockup,html[data-theme="paper"] .header .wordmark img,html[data-theme="light"] .header .wordmark img{filter:invert(1)}
/* These are document/image surfaces, not interface paint. */
.ik-preview{background:repeating-conic-gradient(#353535 0 25%,#252525 0 50%) 0/20px 20px}.pt-preview canvas,.pt-preview iframe{background:#fff}
html[data-theme="contrast"] a{text-decoration-thickness:2px}html[data-theme="contrast"] :focus-visible{outline:3px solid #70f2f2!important;outline-offset:4px}html[data-theme="contrast"] .button,html[data-theme="contrast"] .panel{border-width:2px}
@media(max-width:760px){.header [data-theme-control]{flex-basis:100%;margin:0;padding:8px 0 14px}.header .theme-control{justify-content:flex-end}.topbar [data-theme-control]{margin-left:0;flex:1 1 100%}.topbar .theme-control select{width:100%;max-width:none}.topbar .theme-status{max-width:none}.topbar{padding-block:12px}.theme-control select{font-size:16px;max-width:240px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:360px){.header .theme-control{justify-content:flex-start}.header .theme-control select{width:100%;max-width:100%}.header .theme-control>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}}
/* Action fills differ from readable accent text on light surfaces. */
html:not([data-theme="dark"]) .skip-link,html:not([data-theme="dark"]) .skip,html:not([data-theme="dark"]) .home-page .header-workspace{background:var(--theme-action);color:var(--theme-on-action)}
html[data-theme="dark"] .footer{color:#92887e}
/* Keep the theme and account reachable without spending a full mobile row on the selector. */
@media(max-width:560px){
 .home-page .header .wordmark{flex:0 0 100%}
 .home-page .header .dw-account-pill{margin-left:0;max-width:170px}
 .home-page .header .dw-account-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
 .home-page .header [data-theme-control]{flex:1 1 104px;min-width:104px;margin:0;padding:0}
 .home-page .header .theme-control{width:100%;justify-content:stretch}
 .home-page .header .theme-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .home-page .header .theme-control select{width:100%;max-width:none;min-height:39px;padding:6px 22px 6px 8px;font-size:12px}
}
@media(max-width:360px){.home-page .header .dw-account-pill{max-width:160px}}
html[data-theme="dark"] .footer p,html[data-theme="dark"] .footer>span{color:#92887e}
/* Keep task search, balance and theme visible while bringing the first tool into view on phones. */
@media(max-width:600px){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
 .topbar #breadcrumb{grid-column:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .topbar .new-project{grid-column:2;justify-self:end;white-space:nowrap}
 .topbar .dw-account-pill{grid-column:1;min-width:0;max-width:100%;justify-self:start}
 .topbar [data-theme-control]{grid-column:2;width:100%;min-width:0;margin:0}
 .topbar .command-trigger{grid-column:1/-1;width:100%;margin:0}
}
@media(max-width:350px){.catalog-quick{margin-top:-12px}}
