/* Soft slate theme. All assets stay local; the preference uses a protected cookie. */
.theme-toggle{margin:0}.theme-toggle button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px}.theme-toggle svg{flex-shrink:0}.guest-theme{display:flex;justify-content:flex-end;padding:20px 28px 0}
html[data-theme=dark]{color-scheme:dark;--ink:#e7edf5;--muted:#b1bfd1;--brand:#a8caff;--pale:#35485f;--line:#4b5d73;--bg:#273547}
[data-theme=dark] body{background:var(--bg);color:var(--ink)}
[data-theme=dark] .sidebar,[data-theme=dark] .panel,[data-theme=dark] .stats article,[data-theme=dark] .login-card{background:#314156;border-color:var(--line);box-shadow:0 8px 28px #14233726}
[data-theme=dark] .topbar{background:#2d3d51;border-color:var(--line)}
[data-theme=dark] .sidebar nav a,[data-theme=dark] .brand,[data-theme=dark] .brand-caption,[data-theme=dark] .stats strong,[data-theme=dark] h1,[data-theme=dark] .login-card h1{color:#e7edf5}
[data-theme=dark] .sidebar nav a:hover{background:#3a4e67}
[data-theme=dark] .sidebar nav a.active{background:#405b7e;color:#deebff;box-shadow:inset 3px 0 0 #91bfff}
[data-theme=dark] .nav-label,[data-theme=dark] .eyebrow,[data-theme=dark] .brand small,[data-theme=dark] .stats span,[data-theme=dark] .private-dot,[data-theme=dark] .generation,[data-theme=dark] .footer,[data-theme=dark] .guidance p,[data-theme=dark] .process{color:var(--muted)}
[data-theme=dark] .brand .eds-logo,[data-theme=dark] .login-logo{background:#edf2f7;border-radius:12px}
[data-theme=dark] .login-card>.eyebrow{color:#bcd5fb}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#29384b;border-color:#71839c;color:#edf3fa}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#adbacb;opacity:1}
[data-theme=dark] button,[data-theme=dark] .button{background:#345d99;border-color:#789bc9;color:#fff}
[data-theme=dark] button.secondary,[data-theme=dark] .button.secondary{background:#35485f;border-color:#7488a3;color:#e3efff}
[data-theme=dark] a{color:#b1d1ff}
[data-theme=dark] th{background:#29394e;color:#bdcce0}
[data-theme=dark] td,[data-theme=dark] th{border-color:#4a5b70}
[data-theme=dark] .badge{background:#47576d;color:#edf3fa}
[data-theme=dark] .badge.review{background:#62533a;color:#ffe0a1}
[data-theme=dark] .badge.approved,[data-theme=dark] .badge.signed{background:#31594f;color:#bce9cc}
[data-theme=dark] .badge.correction{background:#694942;color:#ffd3be}
[data-theme=dark] .generation.failed{color:#ffc6b5}[data-theme=dark] .generation.succeeded{color:#bce9cc}
[data-theme=dark] .guidance{background:linear-gradient(145deg,#354b66,#314156);border-color:#586e8a}
[data-theme=dark] .guidance hr{border-color:#586e8a}
[data-theme=dark] .round-icon,[data-theme=dark] .avatar{background:#405777;color:#d8e8ff;border-color:#718aa9}
[data-theme=dark] .notice,[data-theme=dark] .demo-banner,[data-theme=dark] .import-box{background:#354c6a;color:#dfebfc;border-color:#6884a8}
[data-theme=dark] .error{background:#624a45;border-color:#b18370;color:#ffe0cf}
[data-theme=dark] .auth-shell{background:radial-gradient(ellipse at 0 0,#3a526e,transparent 65%),linear-gradient(140deg,#2d3d51,#273547)}
[data-theme=dark] .empty,[data-theme=dark] .empty h3{color:var(--muted)}
[data-theme=dark] .empty span{color:#c0d7f4}
[data-theme=dark] .sidebar-bottom,[data-theme=dark] .footer{border-color:var(--line)}
[data-theme=dark] :focus-visible{outline-color:#b4d4ff}
@media(max-width:740px){.guest-theme{padding:16px 16px 0}.theme-toggle button{min-height:40px}}
