:root { color-scheme: light; --ink:#172033; --muted:#667085; --line:#e6e9ef; --panel:#fff; --bg:#f4f6fa; --accent:#315efb; --danger:#c4320a; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--bg); }
h1,h2,h3,p { margin-top:0; }
button,input,select { font:inherit; }
.topbar { min-height:88px; padding:20px clamp(20px,5vw,72px); background:#101828; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.topbar h1 { margin:0; font-size:24px; }
.topbar-actions,.dashboard-heading,.card-header,.usage-main { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.heading-actions,.card-actions { display:flex; align-items:center; gap:10px; }
.topbar-actions form { margin:0; }
.eyebrow { margin:0 0 3px; font-size:11px; font-weight:800; letter-spacing:.14em; color:#98a2b3; }
.muted { color:var(--muted); }
.dashboard-shell { max-width:1180px; margin:0 auto; padding:44px 24px 80px; }
.dashboard-heading h2 { margin-bottom:4px; }
.button { border:0; border-radius:10px; padding:10px 15px; font-weight:750; cursor:pointer; }
.button:disabled { opacity:.5; cursor:wait; }
.primary { background:var(--accent); color:#fff; box-shadow:0 5px 16px rgba(49,94,251,.2); }
.secondary { width:100%; background:#eef2ff; color:#2947bd; }
.card-actions .secondary { flex:1; }
.ghost { color:#fff; background:rgba(255,255,255,.1); }
.full { width:100%; }
.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.account-card { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:0 8px 28px rgba(16,24,40,.05); }
.account-card.needs-auth { border-color:#fecdca; }
.provider { display:inline-block; margin-bottom:7px; font-size:10px; font-weight:850; letter-spacing:.1em; color:#475467; }
.account-card h3 { margin:0; font-size:19px; }
.status-badge { border-radius:999px; padding:5px 9px; font-size:12px; font-weight:750; }
.success { color:#027a48; background:#ecfdf3; }.danger { color:#b42318; background:#fef3f2; }.warning { color:#b54708; background:#fffaeb; }.working { color:#2947bd; background:#eef2ff; }.neutral { color:#475467; background:#f2f4f7; }
.usage-main { margin-top:25px; }
.metric-label { display:block; color:var(--muted); font-size:12px; }
.usage-main strong { font-size:29px; letter-spacing:-.03em; }
.align-right { text-align:right; }
progress { appearance:none; width:100%; height:9px; margin:12px 0 22px; border:0; border-radius:999px; overflow:hidden; background:#eaecf0; }
progress::-webkit-progress-bar { background:#eaecf0; } progress::-webkit-progress-value { background:linear-gradient(90deg,#315efb,#7f56d9); } progress::-moz-progress-bar { background:#315efb; }
.account-meta { margin:0 0 18px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.account-meta div { min-width:0; }.account-meta dt { color:var(--muted); font-size:12px; }.account-meta dd { margin:3px 0 0; font-weight:650; font-size:13px; }
.card-error { margin:0 0 14px; color:var(--danger); background:#fff6ed; border-radius:8px; padding:9px 10px; font-size:12px; }
.job-status { min-height:28px; margin:10px 0 12px; color:#475467; }
.agent-status { display:flex; align-items:center; gap:9px; width:fit-content; margin:10px 0 18px; padding:8px 11px; border-radius:10px; font-size:12px; color:#475467; background:#fff; border:1px solid var(--line); }
.agent-status.online { color:#027a48; background:#ecfdf3; border-color:#abefc6; }.agent-status.offline { color:#b54708; background:#fffaeb; border-color:#fedf89; }
.agent-dot { width:8px; height:8px; border-radius:50%; background:currentColor; }
.empty-state { grid-column:1/-1; padding:70px 20px; text-align:center; color:var(--muted); background:#fff; border:1px dashed #cfd4dc; border-radius:16px; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at top,#e4eaff 0,#f5f7fb 42%,#eef1f7 100%); }
.login-card { width:min(100%,420px); background:#fff; padding:36px; border-radius:22px; box-shadow:0 24px 80px rgba(16,24,40,.14); }
.brand-mark { display:grid; place-items:center; width:46px; height:46px; margin-bottom:20px; border-radius:14px; color:#fff; background:linear-gradient(135deg,#315efb,#7f56d9); font-weight:900; }
.login-form { display:grid; gap:16px; margin-top:26px; }.login-form label { display:grid; gap:7px; font-size:13px; font-weight:700; }.login-form input { width:100%; border:1px solid #d0d5dd; border-radius:10px; padding:11px 12px; outline:none; }.login-form input:focus { border-color:#315efb; box-shadow:0 0 0 3px rgba(49,94,251,.12); }
.alert { border-radius:10px; padding:10px 12px; margin:14px 0; }.alert-error { background:#fef3f2; color:#b42318; }
@media (max-width:760px) { .account-grid { grid-template-columns:1fr; }.topbar,.dashboard-heading { align-items:flex-start; }.topbar,.dashboard-heading { flex-direction:column; }.account-meta { grid-template-columns:1fr; }.heading-actions { width:100%; }.heading-actions .button { flex:1; } }
