:root{color-scheme:light;--bg:#f4f7fb;--surface:#fff;--ink:#17253a;--muted:#64748b;--line:#e2e8f0;--accent:#2463eb;--soft:#edf3ff;--green:#15805c;--green-bg:#e9f8f0;--amber:#925b16;--amber-bg:#fff4dc;--shadow:0 8px 30px #1c355608}html[data-theme=dark]{color-scheme:dark;--bg:#0e1624;--surface:#172234;--ink:#edf3ff;--muted:#a0b0c8;--line:#2a3850;--accent:#8eb3ff;--soft:#223655;--green:#8bdfb6;--green-bg:#193b32;--amber:#f3cb85;--amber-bg:#3b3021;--shadow:0 8px 30px #0002}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button,input{border:1px solid var(--line);border-radius:11px}button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--surface);color:var(--ink);padding:10px 15px;font-weight:600}button:hover:not(:disabled){background:var(--soft);border-color:var(--accent)}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.site-header{border-bottom:1px solid var(--line);background:var(--surface)}.header-inner{max-width:1280px;margin:auto;padding:22px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:750;letter-spacing:-.5px;color:var(--ink);text-decoration:none}.brand-mark{display:grid;place-items:center;background:#2463eb;color:#fff;border-radius:12px;width:40px;height:40px}.header-actions{display:flex;gap:10px;align-items:center}.account-chip{display:flex;align-items:center;gap:10px;margin-right:8px}.avatar{background:var(--soft);color:var(--accent);border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:12px;font-weight:750}.account-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.account-label{font-size:11px;color:var(--muted)}.customer-main{max-width:1280px;margin:auto;padding:48px 36px 28px}.eyebrow{text-transform:uppercase;letter-spacing:1.9px;color:var(--accent);font-size:11px;font-weight:750}h1{font-size:clamp(30px,4vw,40px);line-height:1.2;letter-spacing:-1.4px;margin:9px 0 12px;font-weight:750}p{margin:0}.subtitle,.muted{color:var(--muted)}.program-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.program-card{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.program-icon{display:grid;place-items:center;width:51px;height:51px;background:var(--soft);color:var(--accent);border-radius:14px}.program-icon svg{width:26px;height:26px}.status{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:var(--muted);background:var(--bg);border-radius:7px;padding:5px 9px}.status.active{color:var(--green);background:var(--green-bg)}.status.expired{color:var(--amber);background:var(--amber-bg)}.status-dot{width:5px;height:5px;background:currentColor;border-radius:50%}.program-card h2{font-size:20px;font-weight:700;letter-spacing:-.5px;margin:0 0 7px}.program-card p{font-size:13px;color:var(--muted);min-height:42px;margin-bottom:22px}.expiry{border-top:1px solid var(--line);padding-top:17px;margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.expiry strong{color:var(--ink);font-size:12px;font-weight:600}.open-program{background:#2463eb;color:#fff;border-color:#2463eb;width:100%;margin-top:20px;padding:11px 16px;font-size:13px}.open-program:hover:not(:disabled){background:#194ec3;color:#fff;border-color:#194ec3}.open-program svg{width:17px}.open-program:disabled{background:var(--bg);color:var(--muted);border-color:var(--line)}.notice{display:flex;align-items:flex-start;gap:12px;background:var(--amber-bg);color:var(--amber);padding:16px 20px;border-radius:12px;font-size:13px;margin-bottom:24px}.empty-state{grid-column:1/-1;padding:64px 24px;text-align:center;border:1px dashed var(--line);border-radius:16px}.empty-state h2{font-size:18px;margin:10px 0}.empty-state svg{color:var(--muted);width:32px;height:32px}.customer-footer{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin:34px 0 12px;gap:16px}.footer-note{display:flex;gap:7px;align-items:center}.footer-note svg{width:14px;height:14px}.page-state{min-height:75vh;display:grid;place-content:center;text-align:center;padding:30px}.page-state p{max-width:440px;color:var(--muted);margin:0 auto 20px}.spinner{border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:30px;height:30px;margin:0 auto 16px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 20px;background:var(--ink);color:var(--surface);border-radius:12px;z-index:20;font-size:13px}html[data-theme=dark] .toast{background:#edf3ff;color:#17253a}[hidden]{display:none!important}@media(max-width:960px){.program-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-chip{display:none}}@media(max-width:600px){.header-inner{padding:16px 20px}.brand{font-size:17px}.brand-mark{width:34px;height:34px}.header-actions{gap:6px}.header-actions button{padding:9px}.header-actions button span{display:none}.customer-main{padding:30px 20px 20px}.program-grid{grid-template-columns:1fr;gap:16px}.customer-footer{flex-direction:column;align-items:flex-start}.program-card{padding:22px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

.current-program{padding:10px 12px;margin:0 0 16px;border-radius:9px;background:var(--soft);color:var(--accent);font-size:12px}.order-program{width:100%;margin-top:20px;padding:11px 16px;font-size:13px;color:var(--accent);border-color:var(--accent);background:var(--soft)}.order-program svg{width:17px}
.language-picker{display:inline-flex;align-items:center}.language-picker>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.language-picker select{width:108px;max-width:100%;font:inherit;font-size:13px;padding:11px 8px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink)}.language-picker select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:600px){.header-inner{flex-wrap:wrap;gap:12px}.header-actions{margin-left:auto}.language-picker select{width:92px;padding:10px 6px;font-size:12px}}
/* Device reset dialog keeps the portal's existing card and theme styles. */
.customer-dialog{max-width:min(440px,calc(100vw - 32px));padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 20px 80px #0004}
.customer-dialog::backdrop{background:#101d3566}.customer-dialog h2{margin-top:0}.customer-dialog p{line-height:1.6}.customer-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.customer-dialog button{min-height:40px;border-radius:10px;padding:10px 16px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}.customer-dialog [data-action=reset-confirm]{background:#2563eb;color:white}.customer-dialog button:disabled{opacity:.45;cursor:not-allowed}.reset-availability{color:var(--muted)}

.trial-clock{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:14px 0 0;background:var(--soft);border-radius:10px;color:var(--accent);font-size:12px}.trial-clock strong{font-size:21px;font-variant-numeric:tabular-nums;letter-spacing:1px}

/* Program-specific decorative icons retain the existing card layout. */
.program-icon svg{width:28px;height:28px;stroke-width:1.7}
.program-icon-manual{color:#13796c;background:#e9f7f2}
.program-icon-workshop{color:#3a7736;background:#edf6e9}
.program-icon-car{color:#087a99;background:#e6f7fb}
.program-icon-motorcycle{color:#7b49b6;background:#f1ebfb}
.program-icon-circuit{color:#4757b6;background:#eef0ff}
.program-icon-diagnosis{color:#b05a15;background:#fff1e4}
.program-icon-labor{color:#967018;background:#fff5db}
.program-icon-truck{color:#48637d;background:#edf1f6}
html[data-theme=dark] .program-icon-manual{color:#79d5c4;background:#193832}
html[data-theme=dark] .program-icon-workshop{color:#a0d98f;background:#243728}
html[data-theme=dark] .program-icon-car{color:#79d5ec;background:#183644}
html[data-theme=dark] .program-icon-motorcycle{color:#c8a5fa;background:#302745}
html[data-theme=dark] .program-icon-circuit{color:#acb8ff;background:#272f50}
html[data-theme=dark] .program-icon-diagnosis{color:#f2bb87;background:#443024}
html[data-theme=dark] .program-icon-labor{color:#f3d58f;background:#3b3422}
html[data-theme=dark] .program-icon-truck{color:#b3c9df;background:#293846}
