:root { color-scheme: light; --ink:#111827; --muted:#64748b; --line:#e4e9f2; --bg:#f5f7fd; --blue:#4f46e5; --green:#0f9f8d; }
*{box-sizing:border-box} body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}button{font:inherit}
.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,5vw,72px)}
.wordmark{font-size:25px;font-weight:800;letter-spacing:-1px}.back{font-size:14px;color:#334155}.back:hover{color:var(--blue)}
.dashboard{max-width:1370px;padding:38px clamp(14px,4vw,42px) 48px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.heading h1{margin:4px 0 8px;font-size:clamp(28px,3.5vw,39px);letter-spacing:-1px}.eyebrow{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:1.6px;margin:0}.muted{color:var(--muted);font-size:13px;margin:5px 0 0}.upgrade{background:#315ee9;color:white;border-radius:11px;padding:13px 19px;font-size:14px;font-weight:700;white-space:nowrap}.upgrade:hover{background:#2149ca}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.periods{background:#e8ecf4;border-radius:13px;display:flex;gap:3px;padding:4px}.periods button{border:0;background:transparent;color:#64748b;padding:9px 15px;border-radius:10px;font-weight:700;cursor:pointer}.periods button.selected{background:white;color:#172554;box-shadow:0 1px 5px #c9d0e0}.updated{font-size:12px;color:var(--muted)}.notice{padding:13px 16px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:10px;margin:0 0 15px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 20px rgba(28,52,89,.035)}.stat-card{padding:24px 22px;min-height:148px}.stat-card p{margin:0 0 19px;color:#49576b;font-size:14px}.stat-card strong{display:block;font-size:34px;letter-spacing:-1px;font-weight:800}.stat-card small{color:var(--muted);display:block;margin-top:8px;font-size:12px}
.split{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);gap:16px;margin-top:16px}.split.below{grid-template-columns:minmax(280px,.85fr) minmax(0,2fr)}.panel{padding:24px;min-width:0}.panel h2{margin:0;font-size:18px;letter-spacing:-.3px}.panel-top{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.legend{display:flex;flex-wrap:wrap;gap:15px;font-size:12px;color:#64748b;align-items:center}.legend>span{white-space:nowrap}.legend-dot{width:9px;height:9px;display:inline-block;border-radius:3px;margin-right:5px}.purchase-dot{background:var(--green)}.used-dot{background:var(--blue)}
.chart{height:275px;display:flex;align-items:stretch;gap:8px;padding:34px 0 0;overflow-x:auto;overflow-y:hidden}.chart-item{flex:1 0 20px;min-width:20px;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;gap:9px}.bar-group{width:100%;display:flex;gap:3px;align-items:end;justify-content:center;flex:1;border-bottom:1px solid var(--line)}.bar{width:42%;max-width:18px;min-height:2px;border-radius:5px 5px 0 0}.bar.purchase{background:var(--green)}.bar.used{background:var(--blue)}.tick{font-size:10px;color:var(--muted);text-align:center;white-space:nowrap;height:20px}.chart-empty{width:100%;align-self:center;text-align:center;color:var(--muted);font-size:13px}
.breakdown{margin-top:26px;display:grid;gap:24px}.breakdown-row>div:first-child{display:flex;justify-content:space-between;font-size:13px;gap:10px;margin-bottom:9px}.track{height:9px;background:#eef1fa;border-radius:30px;overflow:hidden}.fill{height:100%;background:var(--blue);border-radius:30px}.metric{display:flex;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);font-size:14px}.metric span{color:var(--muted)}.metric strong{font-size:16px}.fineprint{font-size:12px;color:var(--muted);line-height:1.7;margin:20px 0 0}.table-wrap{overflow-x:auto;margin-top:18px}table{border-collapse:collapse;width:100%;min-width:510px;text-align:left}th,td{padding:14px 12px 14px 0;border-bottom:1px solid #edf0f5;font-size:12px}th{color:#64748b;font-weight:700}td:first-child{font-weight:600}.positive{color:#068675}.negative{color:#4f46e5}.neutral{color:#64748b}.pill{font-size:11px;padding:5px 9px;border-radius:16px;background:#f0f4f9;color:#475569}.pill.credited,.pill.charged{color:#087c69;background:#e5f8f2}.pill.refunded{color:#9a6700;background:#fff7df}.footer-note{text-align:center;font-size:11px;color:#94a3b8;margin-top:25px}
@media(max-width:950px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split,.split.below{grid-template-columns:1fr}}
@media(max-width:540px){.topbar{height:62px;padding:0 16px}.wordmark{font-size:21px}.dashboard{padding:22px 14px}.heading{align-items:flex-start}.upgrade{padding:11px 12px;font-size:12px}.heading h1{font-size:27px}.toolbar{align-items:flex-start;flex-direction:column}.periods{width:100%;justify-content:space-between}.periods button{flex:1;padding:8px}.stat-grid{gap:9px}.stat-card{padding:17px 13px;min-height:133px}.stat-card p{font-size:12px;line-height:1.5}.stat-card strong{font-size:29px}.stat-card small{font-size:10px}.panel{padding:19px 15px}.panel-top{flex-direction:column;gap:12px}.chart{height:235px}.chart-item{flex-basis:22px}.tick{font-size:9px}}
