html[data-theme=light]{color-scheme:light}
.theme-toggle{display:inline-grid;place-items:center;flex:0 0 auto;width:42px;height:42px;padding:10px;border:1px solid #dbe3ef;border-radius:13px;background:#eef3ff;color:#385b95;cursor:pointer}
.theme-toggle:hover{background:#dfeaff}.theme-toggle:focus-visible{outline:3px solid #2563eb;outline-offset:3px}.theme-toggle svg{width:20px;height:20px}.theme-toggle .theme-sun{display:none}
.guest-theme-control{display:flex;justify-content:flex-end;margin-bottom:12px}.login-form .guest-theme-control{margin-bottom:0}
html[data-theme=dark]{color-scheme:dark;--ink:#e4ecf8;--slate:#16305a;--muted:#a8b8d0;--paper:#101827;--line:#324159;--primary:#2563eb;--accent:#223c61;--white:#192537;--amber:#4b3b20}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] .shell{background:radial-gradient(ellipse at 100% 0,#1c2947 0,transparent 55%),#101827}
html[data-theme=dark] .shell>.side,html[data-theme=dark] .nav-drawer>.side,html[data-theme=dark] .side>.bottom,html[data-theme=dark] .card,html[data-theme=dark] .main .card,html[data-theme=dark] dialog,html[data-theme=dark] .account-panel,html[data-theme=dark] .donut-chart>div,html[data-theme=dark] .auth-form,html[data-theme=dark] .guest-content,html[data-theme=dark] .login-form{background:#192537;border-color:#324159;color:#e4ecf8}
html[data-theme=dark] .side .workspace,html[data-theme=dark] .account-panel-header{background:linear-gradient(120deg,#203453,#302948);border-color:#3b4d6e}
html[data-theme=dark] .side .nav a,html[data-theme=dark] .side .nav button,html[data-theme=dark] .account-links a,html[data-theme=dark] .account-signout button{color:#c9d6e9;background:transparent}
html[data-theme=dark] .side .nav a.active{background:linear-gradient(100deg,#243b60,#302c50);border-color:#40577f;color:#c6daff}
html[data-theme=dark] .side .nav a:hover,html[data-theme=dark] .side .nav button:hover,html[data-theme=dark] .account-links a:hover,html[data-theme=dark] .account-trigger:hover,html[data-theme=dark] .account-menu[open] .account-trigger{background:#24364e;border-color:#4d6792}
html[data-theme=dark] .side .sidebar-account.notice{background:#223651;color:#c6d7ef;border-color:#3b5576}
html[data-theme=dark] .main .cardhead,html[data-theme=dark] th,html[data-theme=dark] .main th{background:#1e2d43;border-color:#324159;color:#b6c8e3}
html[data-theme=dark] td,html[data-theme=dark] .activity,html[data-theme=dark] .review-links a,html[data-theme=dark] .account-signout,html[data-theme=dark] .app-configuration,html[data-theme=dark] .topbar{border-color:#324159}
html[data-theme=dark] .main tbody tr:hover{background:#22324a}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] .btn.secondary,html[data-theme=dark] .account-trigger,html[data-theme=dark] .account-role-pill{background:#152034;color:#e4ecf8;border-color:#415473}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#8da1bd}
html[data-theme=dark] input:disabled,html[data-theme=dark] select:disabled,html[data-theme=dark] textarea:disabled{background:#253247;color:#9bacc4}
html[data-theme=dark] .main .pagehead h1,html[data-theme=dark] .account-panel-header strong,html[data-theme=dark] .donut-chart strong,html[data-theme=dark] .login-heading h2,html[data-theme=dark] .brand,html[data-theme=dark] .mobile-app-card h2{color:#edf3ff}
html[data-theme=dark] .topbar .header-identity small,html[data-theme=dark] .topbar .timezone,html[data-theme=dark] .account-email,html[data-theme=dark] .account-panel-label,html[data-theme=dark] .account-links small,html[data-theme=dark] .dashboard-context,html[data-theme=dark] .chart-data,html[data-theme=dark] .chart-select,html[data-theme=dark] .dashboard-definitions,html[data-theme=dark] .mobile-coming-soon,html[data-theme=dark] .subscription-summary span,html[data-theme=dark] .subscription-summary small,html[data-theme=dark] .dashboard-report-grid span,html[data-theme=dark] .help-topic p,html[data-theme=dark] .help-topic li{color:#afc0d9}
html[data-theme=dark] .dashboard-context>span:first-child,html[data-theme=dark] .review-links a,html[data-theme=dark] .dashboard-report-grid>a,html[data-theme=dark] .account-role-pill{color:#c7daf8}
html[data-theme=dark] .dashboard-stats .stat,html[data-theme=dark] .dashboard-stats .stat:nth-child(2),html[data-theme=dark] .dashboard-stats .stat:nth-child(3),html[data-theme=dark] .dashboard-stats .stat:nth-child(4){border-color:#3a4b68;background:linear-gradient(135deg,#1b293f,#243452);box-shadow:none}
html[data-theme=dark] .dashboard-stats .stat:nth-child(2){background:linear-gradient(135deg,#1b293f,#193d46)}
html[data-theme=dark] .dashboard-stats .stat:nth-child(3){background:linear-gradient(135deg,#1b293f,#342b4e)}
html[data-theme=dark] .dashboard-stats .stat:nth-child(4){background:linear-gradient(135deg,#1b293f,#423722)}
html[data-theme=dark] .dashboard-stats .stat strong{color:#a4c7ff}
html[data-theme=dark] .dashboard-stats .stat:nth-child(2) strong{color:#80d2e5}
html[data-theme=dark] .dashboard-stats .stat:nth-child(3) strong{color:#c9acfa}
html[data-theme=dark] .dashboard-stats .stat:nth-child(4) strong{color:#edd097}
html[data-theme=dark] .dashboard-report-grid>a,html[data-theme=dark] .dashboard-report-grid>a:nth-child(2),html[data-theme=dark] .dashboard-report-grid>a:nth-child(3),html[data-theme=dark] .main .mobile-app-card:first-child,html[data-theme=dark] .main .mobile-app-card:nth-child(2),html[data-theme=dark] .chart-empty{background:#203149;border-color:#3a4b68;color:#c9d6e9}
html[data-theme=dark] .portal-icon{--tone:#9bbfff;--tint:#273e62}
html[data-theme=dark] .portal-icon[data-tone=cyan]{--tone:#88d9e9;--tint:#21414d}
html[data-theme=dark] .portal-icon[data-tone=violet]{--tone:#cdadff;--tint:#3a2e55}
html[data-theme=dark] .portal-icon[data-tone=amber]{--tone:#efd29a;--tint:#4a3b24}
html[data-theme=dark] .portal-icon[data-tone=rose]{--tone:#f2a3c0;--tint:#502b41}
html[data-theme=dark] .portal-icon[data-tone=indigo]{--tone:#b8b7ff;--tint:#33375d}
html[data-theme=dark] .portal-icon[data-tone=slate]{--tone:#c3cfe0;--tint:#354255}
html[data-theme=dark] .badge,html[data-theme=dark] .review-links strong,html[data-theme=dark] .app-symbol,html[data-theme=dark] .avatar{background:#24436c;color:#b9d3ff}
html[data-theme=dark] .badge.pending,html[data-theme=dark] .notice{background:#403621;border-color:#69532a;color:#f0d6a3}
html[data-theme=dark] .badge.rejected{background:#502b37;color:#ffc1cc}
html[data-theme=dark] .badge.neutral,html[data-theme=dark] .app-features>span{background:#2c3a50;color:#c9d5e8}
html[data-theme=dark] .error,html[data-theme=dark] .account-signout button{color:#ffb1c3}
html[data-theme=dark] .account-signout button:hover{background:#402738}
html[data-theme=dark] .link,html[data-theme=dark] .help-contents a,html[data-theme=dark] a:not(.btn):not(.account-links a):not(.nav a):not(.notification-bell):not(.brand){color:#9cc0ff}
html[data-theme=dark] .notification-bell,html[data-theme=dark] .topbar .notification-bell{background:#423922;color:#f1cf8c;border-color:#655133}
html[data-theme=dark] .notification-count{border-color:#192537}
html[data-theme=dark] .bar-track,html[data-theme=dark] .progress{background:#30405a}
html[data-theme=dark] .trend-graph text{fill:#afc0d9}
html[data-theme=dark] .trend-graph line{stroke:#394960}
html[data-theme=dark] .trend-graph path[fill="#dbeafe"]{fill:#284e81;opacity:.5}
html[data-theme=dark] .theme-toggle,html[data-theme=dark] .shell .workspace-menu-toggle{background:#283955;color:#c9dcff;border-color:#435776}
html[data-theme=dark] .theme-toggle:hover{background:#354b70}
html[data-theme=dark] .theme-toggle .theme-moon{display:none}
html[data-theme=dark] .theme-toggle .theme-sun{display:block}
html[data-theme=dark] .help-chat-message,html[data-theme=dark] .help-chat-composer,html[data-theme=dark] .help-chat-answer,html[data-theme=dark] .help-note,html[data-theme=dark] .subscription-plan-card,html[data-theme=dark] .subscription-request-card{background:#1d2d44;color:#e4ecf8;border-color:#3a4b68}
html[data-theme=dark] pre,html[data-theme=dark] code{color:#d4e4ff}
html[data-theme=dark] .account-menu{color:#e4ecf8}
html[data-theme=dark] dialog::backdrop{background:#060b16b3}
@media(max-width:700px){.theme-toggle{width:38px;height:38px;border-radius:11px}.topbar .top-actions{gap:7px}}
@media print{.theme-toggle{display:none!important}html[data-theme=dark]{color-scheme:light;--ink:#172b4d;--muted:#52647b;--paper:white;--line:#dbe3ef;--white:white}html[data-theme=dark] body,html[data-theme=dark] .shell,html[data-theme=dark] .card,html[data-theme=dark] .main .card{background:white!important;color:#172b4d!important}html[data-theme=dark] .main *{color:#172b4d!important;box-shadow:none!important}html[data-theme=dark] .main th,html[data-theme=dark] .main .stat,html[data-theme=dark] .main .cardhead{background:#f1f5f9!important}}

html[data-theme=dark] .login-page{background:#192537}
html[data-theme=dark] .login-page .field,html[data-theme=dark] .login-heading>p:last-child,html[data-theme=dark] .login-create p{color:#b9c9e0}
html[data-theme=dark] .login-heading .eyebrow{color:#9cc0ff}
html[data-theme=dark] .login-create,html[data-theme=dark] .chat-message{background:#23344d;color:#e4ecf8;border-color:#405370}
html[data-theme=dark] .login-page .login-error{background:#492c36;border-color:#855362;color:#ffd1db}

html[data-theme=dark] .main tbody tr.attendance-correction-pending>td{background:#382f20;border-bottom-color:#67512c}
html[data-theme=dark] .main tbody tr.attendance-correction-pending:hover>td{background:#453822}
html[data-theme=dark] .main tbody tr.attendance-correction-pending>td:first-child{box-shadow:inset 4px 0 #edba58}
html[data-theme=dark] .correction-pending-label{background:#504020;color:#ffe1a0;border-color:#80612d}

html[data-theme=dark] input[readonly],html[data-theme=dark] textarea[readonly],html[data-theme=dark] input:disabled,html[data-theme=dark] select:disabled,html[data-theme=dark] textarea:disabled{background:#283345;color:#adbacd;border-color:#4b596e;border-style:dashed;box-shadow:none;opacity:1;-webkit-text-fill-color:currentColor}

html[data-theme=dark] .pay-status{background:#30405a;color:#cad6e9}html[data-theme=dark] .pay-status-paid{background:#254575;color:#c4daff}html[data-theme=dark] .pay-status-part_paid,html[data-theme=dark] .pay-status-awaiting_payment{background:#493a23;color:#f2d69f}html[data-theme=dark] .pay-breakdown summary{color:#a8c9ff}

html[data-theme=dark] .notification-panel{background:#192537;color:#e4ecf8;border-color:#3a4b68;box-shadow:0 18px 55px -15px #020610b3}html[data-theme=dark] .notification-panel-heading,html[data-theme=dark] .notification-item,html[data-theme=dark] .notification-view-all{border-color:#324159}html[data-theme=dark] .notification-unread-label,html[data-theme=dark] .notification-meta,html[data-theme=dark] .notification-empty{color:#adbed7}html[data-theme=dark] .notification-panel a.notification-item{color:#d7e3f5}html[data-theme=dark] .notification-item.is-unread{background:#223653}html[data-theme=dark] .notification-item.is-unread:before{background:#91b8ff}html[data-theme=dark] .notification-item:hover{background:#2b4264}html[data-theme=dark] .notification-view-all{background:#1d2e46;color:#b8d2ff}html[data-theme=dark] .notification-view-all:hover{background:#2b4264}html[data-theme=dark] .activity[id^="notice-"]:target{background:#223653}

html[data-theme="dark"] .correction-comparison article{background:#182337;border-color:#334155}html[data-theme="dark"] .correction-comparison .correction-proposed{background:#152d4b;border-color:#315983}html[data-theme="dark"] .correction-comparison dt,html[data-theme="dark"] .correction-message small{color:#a8b8cf}html[data-theme="dark"] .correction-review-option,html[data-theme="dark"] .correction-message{border-color:#334155}
