/* Optional dark palette. The light palette remains the default. */
:root[data-theme="dark"]{color-scheme:dark;--ink:#eaf1fc;--muted:#b5c4da;--paper:#101827;--line:#3b4b63;--green:#81b7ff;--soft:#25364e;--white:#1c2a40;--glass-shadow:0 10px 32px #060b16a8,inset 0 1px 0 #ffffff12}
:root[data-theme="dark"] body{background:#101827;color:var(--ink)}
:root[data-theme="dark"] .ambient-scene{opacity:.15}
:root[data-theme="dark"] .sidebar{background:#172438;border-color:#3b4b63}
:root[data-theme="dark"] .topbar{background:#101827d9}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] section,
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .callout,
:root[data-theme="dark"] .auth-main,
:root[data-theme="dark"] .notice{background:#1b2a40e8;border-color:#3b4b63;box-shadow:var(--glass-shadow)}
:root[data-theme="dark"] .clock-card,
:root[data-theme="dark"] .stat.featured{background:linear-gradient(130deg,#223c60,#1b2a40)}
:root[data-theme="dark"] .workspace,
:root[data-theme="dark"] .contract-facts>div,
:root[data-theme="dark"] .audit-detail,
:root[data-theme="dark"] .time-row-actions details[open] form{background:#24354c;border-color:#536780}
:root[data-theme="dark"] .nav-link{color:#c4d2e6}
:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .nav-link.active,
:root[data-theme="dark"] .page-tabs a.selected{background:#314b6a;color:#f4f8ff;border-color:#536b86}
:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .people-wordmark,
:root[data-theme="dark"] .breadcrumb strong,
:root[data-theme="dark"] .card-top h2,
:root[data-theme="dark"] .stat-value,
:root[data-theme="dark"] .clock-value,
:root[data-theme="dark"] .callout h2,
:root[data-theme="dark"] .list-row strong,
:root[data-theme="dark"] .profile-name,
:root[data-theme="dark"] .row-title strong{color:#f1f6ff}
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .heading-date,
:root[data-theme="dark"] .stat-label,
:root[data-theme="dark"] .stat-caption,
:root[data-theme="dark"] .clock-caption,
:root[data-theme="dark"] .clock-foot,
:root[data-theme="dark"] .callout p,
:root[data-theme="dark"] .list-row p,
:root[data-theme="dark"] .profile-email,
:root[data-theme="dark"] .page-foot{color:#b5c4da}
:root[data-theme="dark"] th{background:#263953;color:#c4d3e9}
:root[data-theme="dark"] td{color:#e0ebfa;border-color:#3b4b63}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea{background:#17263b;border-color:#4c6381;color:#f1f6ff}
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus{background:#223854}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{color:#9fb1cc}
:root[data-theme="dark"] select option{background:#17263b;color:#f1f6ff}
:root[data-theme="dark"] label,
:root[data-theme="dark"] form p label,
:root[data-theme="dark"] legend,
:root[data-theme="dark"] .contract-facts dt{color:#c3d3e8}
:root[data-theme="dark"] fieldset{background:#1e3048;border-color:#536780}
:root[data-theme="dark"] .secondary,
:root[data-theme="dark"] button.secondary,
:root[data-theme="dark"] .back-link,
:root[data-theme="dark"] .auth-form .google-button{background:#29415e;color:#f1f6ff;border-color:#5b7390}
:root[data-theme="dark"] .secondary:hover,
:root[data-theme="dark"] button.secondary:hover,
:root[data-theme="dark"] .back-link:hover{background:#345473;color:#fff}
:root[data-theme="dark"] .text-button{color:#c8d8ee}
:root[data-theme="dark"] .text-button:hover{color:#fff;background:#2b405d}
:root[data-theme="dark"] .badge{background:#293c55;color:#dfebfa;border-color:#526b89}
:root[data-theme="dark"] .badge.live,
:root[data-theme="dark"] .badge.approved{background:#17463f;color:#b7f4d9}
:root[data-theme="dark"] .badge.pending{background:#5e4623;color:#ffe3a8}
:root[data-theme="dark"] .badge.rejected{background:#57313b;color:#ffd4dc}
:root[data-theme="dark"] .clock-orbit:before,
:root[data-theme="dark"] .clock-orbit:after{background:#273c56;border-color:#567395;box-shadow:none}
:root[data-theme="dark"] .clock-face,
:root[data-theme="dark"] .clock-face:after{border-color:#90b9ee}
:root[data-theme="dark"] .callout:after{border-color:#536780;box-shadow:none}
:root[data-theme="dark"] .row-icon,
:root[data-theme="dark"] .workspace-icon,
:root[data-theme="dark"] .avatar{background:#344b68;color:#eef5ff;border-color:#60799a}
:root[data-theme="dark"] .nav-group summary{color:#b5c4da}
:root[data-theme="dark"] .time-row-actions summary{color:#ffb3c0}
:root[data-theme="dark"] .contextual-wordmark{filter:brightness(0) invert(1)}
:root[data-theme="dark"] .page-heading p,
:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .stat-value small,
:root[data-theme="dark"] .company-pill,
:root[data-theme="dark"] .quick-link{color:#c7d7ec}
:root[data-theme="dark"] .company-pill{background:#2a3d56;border-color:#526b89}
:root[data-theme="dark"] .callout .eyebrow{color:#e6b9d0}
:root[data-theme="dark"] .callout a,
:root[data-theme="dark"] .card-top a{color:#a8cdff}
@media(max-width:600px){.theme-label{display:none}}
