/* Restrained solar gold and the logo's slate, alongside familiar teal actions. */
:root{--tusc-gold:#e7aa35;--tusc-slate:#514a5e;--tusc-gold-ink:#805619;--tusc-arc-inner:#e7aa3518;--tusc-arc-middle:#e7aa3522;--tusc-arc-outer:#e7aa3530}
.workspace{background:radial-gradient(ellipse at 0% 100%,#e7aa3508,transparent 65%),linear-gradient(135deg,#fbf8f1 0%,#f3f6f7 45%,#eef5f4 100%)}
/* Faint, bounded curves at the sidebar foot echo the main corner accent. */
.workspace .sidebar{--tusc-sidebar-base:linear-gradient(165deg,#f0f2e9 0%,#eaf0e9 70%,#e4ede7 100%);--tusc-sidebar-ink:#17383f;--tusc-sidebar-active-ink:#17383f;--tusc-sidebar-muted:#5f737a;--tusc-sidebar-icon:#087f6e;--tusc-sidebar-active:#d7e9e0;--tusc-sidebar-note:#e0eae1;--tusc-sidebar-background:radial-gradient(ellipse 300px 240px at -70px calc(100% + 45px),transparent 45%,#e7aa3514 45.2% 51%,transparent 51.2% 63%,#e7aa3519 63.2% 69%,transparent 69.2% 81%,#e7aa351e 81.2% 87%,transparent 87.2%) left bottom/100% min(28dvh,260px) no-repeat,radial-gradient(ellipse at 0% 100%,#e7aa3508,transparent 65%),var(--tusc-sidebar-base);background:var(--tusc-sidebar-background);color:var(--tusc-sidebar-ink);border-right:1px solid var(--line)}
.workspace .sidebar .nav-item{color:var(--tusc-sidebar-ink)}
.workspace .sidebar :is(.nav-item.active,.nav-item:hover){background:var(--tusc-sidebar-active);color:var(--tusc-sidebar-active-ink)}
.workspace .sidebar .nav-icon{color:var(--tusc-sidebar-icon)}
.workspace .sidebar :is(.nav-label,.sidebar-bottom){color:var(--tusc-sidebar-muted)}
.workspace .sidebar .side-note{background:var(--tusc-sidebar-note);color:var(--tusc-sidebar-ink)}
/* Softer day surfaces reduce bright white areas without changing status colors. */
:root:not([data-theme="dark"]){--tusc-day-surface:#f0f2eb;--tusc-day-header:#eaf0e8;--tusc-day-input:#f5f6ef}
:root:not([data-theme="dark"]) .auth-panel{background:var(--tusc-day-surface)}
:root:not([data-theme="dark"]) .workspace{--line:#cedad1;--muted:#536970}
:root:not([data-theme="dark"]) .workspace .sidebar{--tusc-sidebar-muted:#536970}
:root:not([data-theme="dark"]) .workspace :is(.card,.metric,.notification-panel,.mobile-record-table tbody tr){background:var(--tusc-day-surface)}
:root:not([data-theme="dark"]) .workspace :is(.topbar,.mobile-menu,th){background:var(--tusc-day-header)}
:root:not([data-theme="dark"]) :is(.workspace,.auth-panel) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--tusc-day-input)}
:root:not([data-theme="dark"]) .workspace :is(.secondary-button:not(.active),.mobile-item:not(.active)){background:var(--tusc-day-input)}
:root:not([data-theme="dark"]) .workspace .work-tabs button.active{background:#078674;color:#fff;border-color:#078674}
:root:not([data-theme="dark"]) .workspace :is(#behalf-site,#worker-assignment input,#worker-assignment select){background:var(--tusc-day-input)}
:root:not([data-theme="dark"]) .workspace :is(.empty,.subtle,.muted){color:var(--muted)}
:root:not([data-theme="dark"]) .workspace :is(.cutoff-sheet .sheet-helper,.registered-workers-table td:first-child){background:var(--tusc-day-surface)}
:root:not([data-theme="dark"]) :is(.tusc-logo-card,.mobile-logo img){background:var(--tusc-day-surface)}
:root:not([data-theme="dark"]) :is(.tusc-logo-card img,.auth-mobile-brand img,.mobile-logo img){mix-blend-mode:multiply}
.workspace .topbar{border-bottom-color:#decfae}
.workspace .eyebrow.dark{color:var(--tusc-gold-ink)}
.workspace .metric{border-top:3px solid #e7aa3560}
.workspace .card{box-shadow:0 3px 14px #27333605}
/* Keep the logo's curved bands within the upper-right quadrant. */
:is(.workspace .content,.auth-panel){position:relative;isolation:isolate}
.workspace .content{min-height:calc(100dvh - 64px)}
:is(.workspace .content,.auth-panel)::before{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 top:0;right:0;width:50%;height:min(50dvh,100%);
 background:
  radial-gradient(ellipse at 100% 0%,#edb94b30 0%,#edb94b0c 42%,transparent 76%),
  radial-gradient(ellipse 100% 100% at 0% 100%,transparent 56%,var(--tusc-arc-inner) 56.2% 62%,transparent 62.2% 72%,var(--tusc-arc-middle) 72.2% 78%,transparent 78.2% 88%,var(--tusc-arc-outer) 88.2% 94%,transparent 94.2%);
 -webkit-mask-image:linear-gradient(to right,transparent,#000 24%),linear-gradient(#000 65%,transparent);
 -webkit-mask-composite:source-in;
 mask-image:linear-gradient(to right,transparent,#000 24%),linear-gradient(#000 65%,transparent);
 mask-composite:intersect;
}
.workspace .content::before{height:min(calc(50dvh - 64px),100%)}
@media(min-width:851px){.auth-panel::before{width:100%}}
.sidebar-brand,.mobile-logo,.auth-mobile-brand,.tusc-logo-card{text-decoration:none;color:inherit}
.sidebar-brand{border-radius:8px;min-height:44px}
.workspace .sidebar-brand{align-items:center;justify-content:center;gap:0;padding:0 0 12px;margin-bottom:16px;border-bottom:1px solid #e7aa3524}
.workspace .sidebar-logo{width:184px;max-width:100%;height:74px;padding:0;background:transparent;border-radius:0;filter:none;mix-blend-mode:multiply}
.sidebar-brand:focus-visible,.mobile-logo:focus-visible,.auth-mobile-brand:focus-visible,.tusc-logo-card:focus-visible{outline:3px solid var(--tusc-gold);outline-offset:4px}
.workspace .nav-item.active{box-shadow:inset 3px 0 var(--tusc-gold)}
.published-preset-prompt{border-left:4px solid var(--tusc-gold)}
.published-preset-prompt form{display:grid;gap:14px;max-width:560px}
.published-preset-prompt label{display:grid;gap:7px}
.published-preset-prompt h2{line-height:1.4}
.published-preset-prompt .signature-actions{margin:0}
:root[data-theme="dark"]{--tusc-arc-inner:#d79b3326;--tusc-arc-middle:#e7aa3536;--tusc-arc-outer:#e7aa3548}
:root[data-theme="dark"] .workspace{background:radial-gradient(ellipse at 0% 100%,#e7aa3506,transparent 65%),linear-gradient(135deg,#18232d 0%,#0c161e 65%,#142630 100%)}
:root[data-theme="dark"] .workspace .sidebar{--tusc-sidebar-base:linear-gradient(165deg,#292b30 0%,#142831 70%,#17252d 100%);--tusc-sidebar-ink:#a9c4c3;--tusc-sidebar-active-ink:#fff;--tusc-sidebar-muted:#7fa9a9;--tusc-sidebar-icon:#79cfbb;--tusc-sidebar-active:#23464b;--tusc-sidebar-note:#1c303b;background:var(--tusc-sidebar-background)}
:root[data-theme="dark"] .workspace .sidebar-logo{filter:invert(1) hue-rotate(180deg) brightness(1.4);mix-blend-mode:screen}
:root[data-theme="dark"] .workspace .topbar{background:linear-gradient(110deg,#13242f,#1a2d39)}
:root[data-theme="dark"] .workspace :is(.card,.metric){background:linear-gradient(110deg,#13242f,#182c38)}
:root[data-theme="dark"] .workspace .topbar{border-bottom-color:#675332}
:root[data-theme="dark"] .workspace .eyebrow.dark{color:#e8c786}
:root[data-theme="dark"] .workspace .metric{border-top-color:#e7aa3545}
@media(max-width:850px){
 .workspace .content{min-height:calc(100dvh - 110px)}
 .workspace .content::before{height:min(calc(50dvh - 110px),100%)}
 .workspace .mobile-logo{display:flex;align-items:center;min-width:0;min-height:48px;flex:1}
 .mobile-logo img{display:block;flex:none;width:160px;height:48px;object-fit:contain;background:white;border-radius:6px;padding:3px}
 .workspace .topbar{padding:0 10px;gap:6px}
 .workspace .topbar-right{flex:none;gap:4px}
 .workspace .topbar-right #logout-button{padding:0 4px;font-size:11px;white-space:nowrap}
 .workspace .content{padding-top:18px}
 .workspace .mobile-menu>summary{border-bottom:1px solid #e7aa3535}
 .published-preset-prompt .signature-actions{display:flex;flex-wrap:wrap;gap:10px}
 .published-preset-prompt .signature-actions button{flex:1;width:auto;min-width:110px}
}
@media(max-width:360px){.mobile-logo img{width:148px}}
