:root{--bg: #0f172a;--surface: #1e293b;--surface-2: #273549;--border: #334155;--text: #e2e8f0;--text-muted: #94a3b8;--accent: #38bdf8;--danger: #f87171;--warning: #fbbf24;--success: #4ade80;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.5}h1,h2,h3,p{margin:0}code{font-family:ui-monospace,Consolas,monospace;font-size:.85em}button{font:inherit;cursor:pointer;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);padding:9px 16px}button:hover{border-color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:#06202e;font-weight:600}.btn-danger{background:transparent;border-color:var(--danger);color:var(--danger)}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-muted)}input,select,textarea{font:inherit;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:9px 12px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px}label{display:flex;flex-direction:column;gap:4px;font-size:.88rem;color:var(--text-muted)}.muted{color:var(--text-muted)}.error-text{color:var(--danger);font-size:.9rem}.login-screen{min-height:100%;display:grid;place-items:center;padding:16px}.login-card{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:32px 28px;display:flex;flex-direction:column;gap:16px;text-align:center}.login-card h1{font-size:1.3rem}.login-oauth{display:flex;flex-direction:column;gap:10px}.login-oauth button{display:flex;align-items:center;justify-content:center;gap:10px}.login-mock-note{font-size:.78rem;color:var(--warning);background:#fbbf241a;border:1px dashed var(--warning);border-radius:8px;padding:8px 10px}.login-identity{font-size:.9rem;background:var(--surface-2);border-radius:8px;padding:8px 12px}.login-key-form{display:flex;flex-direction:column;gap:10px}.shell{min-height:100%;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;border-bottom:1px solid var(--border);background:var(--surface)}.topbar h1{font-size:1.1rem}.tabs{display:flex;gap:4px;padding:10px 24px 0}.tabs button{border:0;border-radius:8px 8px 0 0;background:transparent;color:var(--text-muted)}.tabs button.is-active{background:var(--surface);color:var(--text);font-weight:600}.content{flex:1;padding:24px;display:flex;flex-direction:column;gap:24px;max-width:1100px;width:100%;margin:0 auto}.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 18px;display:flex;flex-direction:column;gap:4px}.stat-card .value{font-size:1.8rem;font-weight:700}.stat-card .label{font-size:.82rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px 20px;display:flex;flex-direction:column;gap:14px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{font-size:1.05rem}.chart-svg{width:100%;height:160px;overflow:visible}.chart-bar{fill:var(--accent)}.chart-bar:hover{fill:#7cd4f7}.chart-axis-label{fill:var(--text-muted);font-size:10px}.chart-tooltip{position:absolute;background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:4px 8px;font-size:.78rem;pointer-events:none;transform:translate(-50%,-115%);white-space:nowrap}table{width:100%;border-collapse:collapse;font-size:.92rem}th,td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--border)}th{color:var(--text-muted);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}tr:last-child td{border-bottom:0}.merchant-logo{width:28px;height:28px;border-radius:6px;object-fit:cover;background:var(--surface-2)}.row-actions{display:flex;gap:6px}.row-actions button{padding:5px 10px;font-size:.82rem}.badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.74rem;font-weight:600}.badge--on{background:#4ade8026;color:var(--success)}.badge--off{background:#f8717126;color:var(--danger)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:grid;place-items:center;padding:16px;z-index:10}.modal{width:100%;max-width:480px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px 24px;display:flex;flex-direction:column;gap:14px;max-height:90vh;overflow-y:auto}.modal-head{display:flex;align-items:center;justify-content:space-between}.form-row{display:flex;flex-direction:column;gap:6px}.segmented{display:flex;gap:8px}.segmented button{flex:1}.segmented button.is-active{background:var(--accent);color:#06202e;border-color:var(--accent)}.checkbox-list{display:flex;flex-direction:column;gap:6px;max-height:200px;overflow-y:auto;border:1px solid var(--border);border-radius:8px;padding:10px}.checkbox-list label{flex-direction:row;align-items:center;gap:8px;color:var(--text);font-size:.92rem}
