
    :root{--blue:#2563eb;--blue2:#1d4ed8;--navy:#17213b;--ink:#1f2937;--muted:#6b7280;--line:#e5e7eb;--bg:#f5f7fb;--white:#fff;--green:#16a34a;--red:#dc2626;--amber:#d97706;--side:224px}
    *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}button,input{font:inherit}.icon{width:18px;height:18px;stroke-width:1.8}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);background:#fff;border-right:1px solid var(--line);z-index:30;display:flex;flex-direction:column}.brand{height:64px;display:flex;align-items:center;gap:10px;padding:0 22px;color:var(--navy);font-weight:700;font-size:17px;border-bottom:1px solid var(--line)}.brand-mark{width:30px;height:30px;border-radius:6px;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:11px}.nav{padding:16px 12px}.nav-label{padding:8px 10px;color:#9ca3af;font-size:11px}.nav-btn{width:100%;height:42px;border:0;border-radius:6px;background:none;color:#526078;display:flex;align-items:center;gap:11px;padding:0 12px;cursor:pointer;margin:2px 0}.nav-btn:hover{background:#f3f6fb}.nav-btn.active{background:#edf3ff;color:var(--blue);font-weight:600}.side-foot{margin-top:auto;padding:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
    .app{margin-left:var(--side);min-height:100vh}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.page-name{font-weight:600;font-size:16px}.top-user{display:flex;align-items:center;gap:12px}.balance-chip{background:#f0f5ff;color:#1d4ed8;padding:6px 10px;border-radius:5px;font-weight:600}.avatar{width:30px;height:30px;border-radius:50%;background:#e8edf7;display:grid;place-items:center;color:#516078;font-weight:700}.menu-btn{display:none;border:0;background:none;padding:8px}.logout{border:0;background:none;color:var(--muted);cursor:pointer;padding:5px}.main{max-width:1320px;margin:auto;padding:28px}.view{display:none}.view.active{display:block}.title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.title-row h1{font-size:22px;margin:0;letter-spacing:0}.title-row p{margin:4px 0 0;color:var(--muted)}
    .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat,.panel{background:#fff;border:1px solid var(--line);border-radius:7px}.stat{padding:18px}.stat-head{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}.stat-icon{width:34px;height:34px;border-radius:6px;background:#eff4ff;color:var(--blue);display:grid;place-items:center}.stat-value{font-size:25px;font-weight:700;margin-top:14px;letter-spacing:0}.stat-note{font-size:12px;color:#9ca3af;margin-top:4px}.grid-2{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.panel{padding:20px;margin-bottom:16px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.panel h2{font-size:16px;margin:0}.panel-sub{font-size:12px;color:var(--muted);margin-top:3px}.quick-row{display:grid;grid-template-columns:110px 1fr auto;align-items:center;border-top:1px solid #eef0f4;padding:14px 0}.quick-row:first-of-type{border-top:0}.quick-label{color:var(--muted)}code,.mono{font-family:"SFMono-Regular",Consolas,monospace;font-size:12px;word-break:break-all}.copy{width:32px;height:32px;border:1px solid var(--line);background:#fff;border-radius:5px;display:grid;place-items:center;color:#667085;cursor:pointer}.copy:hover{color:var(--blue);border-color:#a9c2fa}.recharge{background:#f8faff;border:1px solid #dbe7ff}.redeem-line{display:flex;gap:8px;margin-top:16px}.input{height:40px;border:1px solid #d6dbe5;border-radius:6px;padding:0 12px;outline:0;background:#fff;min-width:0}.input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb14}.redeem-line .input{flex:1}.btn{height:38px;border-radius:6px;border:1px solid var(--line);background:#fff;padding:0 15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:500;color:#39445a}.btn:hover{background:#f8fafc}.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue2)}.btn-danger{color:var(--red)}.btn-small{height:30px;padding:0 9px;font-size:12px}.buy{margin-top:12px;color:var(--blue);text-decoration:none;display:inline-flex;gap:6px;align-items:center}
    .table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;border-bottom:1px solid #edf0f4;padding:13px 12px;white-space:nowrap}th{background:#fafbfc;color:var(--muted);font-size:12px;font-weight:600}td{font-size:13px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:3px 7px;font-size:11px}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.success{color:var(--green);background:#f0fdf4}.disabled,.failed{color:var(--red);background:#fef2f2}.empty{text-align:center;padding:50px 20px;color:var(--muted)}.empty .icon{width:30px;height:30px;margin-bottom:8px;color:#aeb6c5}.actions{display:flex;gap:6px}.loading{padding:38px;text-align:center;color:var(--muted)}
    .modal{position:fixed;inset:0;background:#10182870;z-index:50;display:none;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.dialog{background:#fff;border-radius:8px;width:min(460px,100%);padding:22px;box-shadow:0 20px 60px #0003}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h3{margin:0;font-size:17px}.close{border:0;background:none;cursor:pointer;color:var(--muted)}.dialog-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.field label{display:block;font-weight:600;margin-bottom:7px}.field .input{width:100%}.key-result{background:#f4f6fa;border:1px solid var(--line);border-radius:6px;padding:13px;margin:14px 0}.warn{font-size:12px;color:var(--amber)}.toast{position:fixed;right:22px;top:80px;z-index:90;padding:11px 15px;border-radius:6px;background:#17213b;color:#fff;box-shadow:0 8px 24px #0002;display:none}.toast.show{display:block}.overlay{display:none}
    @media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}}
    @media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.overlay.open{display:block;position:fixed;inset:0;background:#0005;z-index:25}.app{margin-left:0}.menu-btn{display:grid}.topbar{padding:0 14px}.page-name{display:none}.main{padding:18px 14px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:14px}.stat-value{font-size:20px}.username{display:none}.quick-row{grid-template-columns:1fr auto}.quick-label{grid-column:1/-1;margin-bottom:5px}.title-row{align-items:flex-start}.balance-chip{font-size:12px}}
    @media(max-width:430px){.stats{grid-template-columns:1fr}.title-row{gap:10px}.redeem-line{flex-direction:column}.redeem-line .btn{width:100%}}
    /* code-s-inspired visual layer: airy teal workspace, rounded cards, calm hierarchy */
    :root{--teal:#14b8a6;--teal-dark:#0f9f91;--side:254px;--bg:#f2fbfb;--line:#e7eeee;--ink:#182230;--muted:#7a8794}
    body{background:linear-gradient(135deg,#f4fbfb 0%,#eef8fa 55%,#f6f8fb 100%);color:var(--ink);font-size:14px}
    .sidebar{width:var(--side);background:rgba(255,255,255,.92);border-right:1px solid #edf2f2;box-shadow:4px 0 24px #163b4a08}
    .brand{height:76px;padding:0 24px;border-bottom:0;font-size:18px;gap:12px}.brand-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#0ea5e9,#14b8a6);box-shadow:0 7px 18px #14b8a633}
    .nav{padding:18px 12px}.nav-label{padding:8px 14px;color:#a0acb5;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.nav-btn{height:44px;border-radius:13px;color:#60707c;padding:0 15px;margin:3px 0;gap:12px}.nav-btn:hover{background:#f0faf9;color:#168f84}.nav-btn.active{background:#e8f9f7;color:#129d90;box-shadow:inset 3px 0 0 var(--teal);font-weight:700}.nav-sep{margin:15px 12px;background:#edf2f2}.side-foot{padding:18px 20px;border-top:1px solid #edf2f2;color:#a2adb5}
    .app{margin-left:var(--side)}.topbar{height:76px;background:rgba(255,255,255,.78);border-bottom:1px solid #edf2f2;padding:0 34px;backdrop-filter:blur(14px)}.page-name{font-weight:700;font-size:18px}.balance-chip{background:#e9fbf7;color:#128f83;border-radius:999px;padding:8px 14px}.avatar{width:34px;height:34px;background:#20b7a7;color:#fff}.logout{display:none}
    .main{max-width:1440px;padding:30px 34px}.title-row{margin-bottom:24px}.title-row h1{font-size:25px;letter-spacing:-.02em}.title-row p{color:#8a969f}.btn{border-radius:11px;border-color:#e1eaea;height:40px}.btn-primary{background:var(--teal);border-color:var(--teal);box-shadow:0 7px 16px #14b8a624}.btn-primary:hover{background:var(--teal-dark)}
    .stats{gap:18px;margin-bottom:24px}.stat,.panel{border:1px solid #e5eeee;border-radius:18px;box-shadow:0 9px 24px #2456670b}.stat{padding:20px;background:rgba(255,255,255,.94)}.stat-head{font-size:13px}.stat-icon{width:38px;height:38px;border-radius:12px;background:#e8faf6;color:var(--teal)}.stat-value{font-size:26px;margin-top:16px}.stat-note{color:#9ba7af}.grid-2{gap:18px}.panel{padding:22px;margin-bottom:18px;background:rgba(255,255,255,.94)}.panel-head{margin-bottom:18px}.panel h2{font-size:17px}.panel-sub{color:#96a1a9}.quick-row{padding:15px 0;border-top-color:#eff3f3}.copy{border-radius:10px}.recharge{background:linear-gradient(145deg,#f0fffc,#f8ffff);border-color:#d9f2ee}.input{height:42px;border-radius:11px;border-color:#dce8e8}.input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #14b8a61c}.table-wrap{border:1px solid #edf2f2;border-radius:13px;overflow:auto}table{min-width:720px}th,td{padding:14px 13px;border-bottom-color:#eef3f3}th{background:#f8fbfb}.badge{border-radius:999px;padding:4px 9px}.dialog{border-radius:18px}.toast{border-radius:12px;background:#17333b}
    @media(max-width:760px){.main{padding:22px 14px}.topbar{padding:0 16px}.sidebar{width:254px}}
    .recent-overview{min-height:250px}.analytics-toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;margin-bottom:18px}.toolbar-group{display:flex;align-items:center;gap:10px;color:#6f7d86}.filter-btn{min-width:126px;justify-content:space-between}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.analytics-panel{min-height:350px}.model-layout{min-height:260px}.model-table{width:100%;min-width:0}.model-table th,.model-table td{padding:10px 8px}.model-table th{background:none}.model-table td:nth-child(n+2),.model-table th:nth-child(n+2){text-align:right}.model-table td:nth-child(4){color:#16a34a;font-weight:600}.model-table td:nth-child(5){color:#a2acb5}.model-donut{float:left;width:180px;height:180px;margin:18px 22px 18px 4px;border-radius:50%;background:conic-gradient(#3b82f6 0 42%,#10b981 42% 75%,#f59e0b 75% 90%,#ef4444 90% 100%);position:relative}.model-donut:after{content:"";position:absolute;inset:42px;background:#fff;border-radius:50%}.trend-chart{padding:8px 0 0}.trend-chart svg{width:100%;height:230px;display:block}.grid-line{stroke:#e7edf0;stroke-width:1}.trend-area{fill:#19b5c522}.trend-line{fill:none;stroke:#19b5c5;stroke-width:4}.trend-output{fill:none;stroke:#4f8cf7;stroke-width:3}.trend-chart circle{fill:#fff;stroke:#19b5c5;stroke-width:3}.trend-legend{display:flex;justify-content:center;gap:18px;color:#697882;font-size:12px}.dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:5px;vertical-align:-1px}.input-dot{background:#7ca4ff}.output-dot{background:#27ba98}.cache-dot{background:#f5ab39}.trend-axis{display:flex;justify-content:space-between;color:#89969e;font-size:11px;padding:0 24px}.bottom-grid{display:grid;grid-template-columns:1.55fr .8fr;gap:18px}.recent-list,.quick-actions{min-height:360px}.recent-list .panel-head,.quick-actions .panel-head{padding-bottom:16px;border-bottom:1px solid #edf2f2}.usage-cards{display:grid;gap:10px}.usage-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:14px 16px;background:#f8fafb;border-radius:14px}.usage-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#d7faf2;color:#18ae9a}.usage-main strong,.usage-main small{display:block}.usage-main small{color:#82909a;margin-top:2px}.usage-cost{text-align:right;color:#13a66f}.usage-cost strong,.usage-cost small{display:block}.usage-cost small{color:#95a0a8;margin-top:2px}.quick-action{width:100%;display:flex;align-items:center;gap:14px;border:0;background:#f8fafb;border-radius:14px;padding:16px;margin:10px 0;text-align:left;cursor:pointer;color:var(--ink)}.quick-action:hover{background:#effaf8}.quick-action span:nth-child(2){flex:1}.quick-action strong,.quick-action small{display:block}.quick-action small{color:#87949d;margin-top:3px}.quick-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center}.quick-icon.teal{background:#d7faf2;color:#10a795}.quick-icon.green{background:#d9f8e8;color:#1ca56b}.quick-icon.amber{background:#fff2c8;color:#e28b13}.quick-action .arrow{color:#a4afb5}
    @media(max-width:1050px){.analytics-grid,.bottom-grid{grid-template-columns:1fr}.analytics-panel{min-height:0}}
    @media(max-width:760px){.analytics-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.toolbar-group{width:100%;justify-content:space-between}.model-donut{float:none;margin:8px auto 18px}.model-table{font-size:12px}}
    .stats{grid-template-columns:repeat(4,1fr)}.stat-secondary{font-size:14px;color:#a4adb6;font-weight:500}.unit{font-size:14px;color:#74808a;font-weight:500}.highlight{color:#7c4dff;font-weight:700}.stat-icon.mint{background:#d5fae8;color:#16a66b}.stat-icon.blue{background:#dceaff;color:#3976ef}.stat-icon.green{background:#ddf9e9;color:#20a86c}.stat-icon.purple{background:#f0e1ff;color:#9144ed}.stat-icon.amber{background:#fff0c6;color:#e99315}.stat-icon.indigo{background:#e1e0ff;color:#5d58d9}.stat-icon.violet{background:#eee2ff;color:#8151ec}.stat-icon.rose{background:#ffe0e4;color:#ed5263}.title-actions{display:flex;gap:10px}.keys-tools{display:flex;gap:18px;align-items:center;margin:12px 0 16px}.keys-tools .input{width:365px}.endpoint-strip{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 18px}.endpoint-strip>span{background:#fff;border:1px solid #e6eeee;border-radius:9px;padding:8px 14px;color:#71808a}.endpoint-strip b{color:#16a893;font-size:12px}.endpoint-strip code{color:#6b7785}.keys-tools+.endpoint-strip+.panel{padding:0;overflow:hidden}.keys-tools+.endpoint-strip+.panel table{min-width:1240px}.keys-tools+.endpoint-strip+.panel th,.keys-tools+.endpoint-strip+.panel td{height:100px;vertical-align:middle}.key-dialog{width:min(760px,100%);max-height:90vh;overflow:auto}.provider-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.provider{height:170px;background:#fff;border:1px solid #dfe7ea;border-radius:16px;color:#223044;font-size:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;overflow:hidden}.provider strong{font-size:17px}.provider.active{border:2px solid var(--teal);background:#f1fffd}.switch-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;font-size:16px}.switch-row input{appearance:none;width:46px;height:27px;border:0;border-radius:20px;background:#e4e8ed;position:relative;cursor:pointer}.switch-row input:before{content:"";position:absolute;width:23px;height:23px;left:2px;top:2px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:.15s}.switch-row input:checked{background:var(--teal)}.switch-row input:checked:before{transform:translateX(19px)}
    @media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.stats{grid-template-columns:1fr 1fr}.keys-tools{flex-wrap:wrap}.keys-tools .input{width:100%}.title-actions{flex-wrap:wrap}.provider-grid{grid-template-columns:repeat(2,1fr)}.provider{height:150px}}
    .key-chip,.provider-tag{display:inline-flex;padding:5px 8px;border-radius:6px;background:#f1f7f7;color:#20a69a}.provider-tag{background:#fff5dc;color:#bc7011}.icon-btn,.key-actions button{border:0;background:none;color:#80909a;cursor:pointer;font-size:17px}.key-actions{display:flex;gap:14px;align-items:center}.key-actions button:hover{color:var(--teal)}.provider-logo{width:100%;height:100%;object-fit:contain;background:#fff}.keys-table th:first-child,.keys-table td:first-child{position:sticky;left:0;background:#fff;box-shadow:5px 0 10px #17333b0a;z-index:1}.keys-table th:first-child{background:#f8fbfb}.keys-table th{font-size:15px}.keys-table .check-cell{width:58px;text-align:center}.keys-table input{width:21px;height:21px;accent-color:var(--teal)}.concurrency{display:inline-grid;place-items:center;min-width:40px;height:36px;background:#f3f5f7;border-radius:6px;font-weight:700;color:#6e7b87}.key-actions{gap:18px}.key-action{min-width:44px;display:grid;justify-items:center;gap:4px;font-size:12px}.key-action span{font-size:18px;line-height:1}.key-actions .key-action{font-size:12px}.date-cell{white-space:nowrap;color:#71808a}.usage-cell{line-height:1.65}.usage-cell strong{color:#263548}
    .nav-btn.active{background:#e9f8f6;color:#0d9488}.nav-sep{height:1px;background:var(--line);margin:12px 10px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric{background:#f8fafc;border:1px solid #edf0f4;border-radius:6px;padding:14px}.metric strong{display:block;font-size:20px;margin-top:4px}.muted{color:var(--muted)}.empty-state{padding:54px 20px;text-align:center;color:var(--muted)}.empty-state .icon{width:34px;height:34px;margin-bottom:10px;color:#aeb6c5}.pill{display:inline-flex;padding:4px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:20px}.profile-card h2{font-size:16px;margin:0 0 16px}.profile-row{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #edf0f4}.profile-row:last-child{border-bottom:0}@media(max-width:760px){.profile-grid,.metric-grid{grid-template-columns:1fr}}
  
.page-view{display:block}
.nav-btn{text-decoration:none}

/* Provider picker: compact, scannable cards for the key dialog. */
.provider-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.provider{position:relative;min-height:112px;height:auto;padding:18px;background:linear-gradient(145deg,#fff,#fbfdfd);border:1px solid #dfe7ea;border-radius:14px;color:#223044;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:13px;text-align:left;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.provider:hover{border-color:#9ddfd7;box-shadow:0 8px 20px #0f766e14;transform:translateY(-1px)}
.provider strong,.provider small{display:block}.provider strong{font-size:16px;line-height:1.25}.provider small{margin-top:5px;color:#8b98a2;font-size:12px}
.provider.active{border:1.5px solid var(--teal);background:linear-gradient(145deg,#f1fffd,#f8fffe);box-shadow:0 0 0 3px #14b8a614}
.provider-mark{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;font-size:25px;font-weight:700}.anthropic-mark{background:#fff0e6;color:#ec5b16}.openai-mark{background:#e9f9f1;color:#16a66b}
.provider-copy{min-width:0}.provider-check{position:absolute;top:12px;right:12px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#d8f8f2;color:var(--teal-dark);font-size:12px;font-weight:700;opacity:0;transform:scale(.75);transition:.18s}.provider.active .provider-check{opacity:1;transform:scale(1)}
@media(max-width:760px){.provider{min-height:100px;padding:14px}.provider-mark{width:36px;height:36px;flex-basis:36px;font-size:21px}}

/* Overview dashboard: mirrors the compact analysis rhythm used in the reference dashboards. */
body[data-page="overview"] .dashboard-filters{display:flex;align-items:center;justify-content:space-between;min-height:86px;padding:16px 20px;margin-top:4px}
body[data-page="overview"] .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-page="overview"] .filter-set{display:flex;align-items:center;gap:10px;color:#71808a}
body[data-page="overview"] .dashboard-analysis{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
body[data-page="overview"] .analysis-card{height:344px;overflow:hidden}
body[data-page="overview"] .analysis-card .panel-head{padding-bottom:14px;border-bottom:1px solid #edf2f2}
body[data-page="overview"] .model-layout{min-height:248px;display:flex;align-items:center}
body[data-page="overview"] .dashboard-empty{display:grid;place-items:center;gap:10px;width:100%;min-height:210px;color:#a4b0ba}
body[data-page="overview"] .dashboard-empty .icon{width:36px;height:36px}
body[data-page="overview"] .model-donut{width:166px;height:166px;margin:18px 20px 18px 0}
body[data-page="overview"] .model-donut:after{inset:40px}
body[data-page="overview"] .model-layout .table-wrap{flex:1;border:0;border-radius:0}
body[data-page="overview"] .model-layout table{min-width:0}
body[data-page="overview"] .model-layout th,body[data-page="overview"] .model-layout td{padding:8px 6px;font-size:12px}
body[data-page="overview"] .trend-chart{padding:8px 0 0}
body[data-page="overview"] .trend-chart svg{height:214px}
body[data-page="overview"] .dashboard-bottom{display:grid;grid-template-columns:1.55fr .8fr;gap:18px}
body[data-page="overview"] .usage-panel,body[data-page="overview"] .action-panel{min-height:372px}
body[data-page="overview"] .usage-panel .panel-head,body[data-page="overview"] .action-panel .panel-head{padding-bottom:16px;border-bottom:1px solid #edf2f2}
body[data-page="overview"] .range-tag{border:0;background:#edfaf7;color:#129e8f;border-radius:999px;padding:6px 10px;display:inline-flex;align-items:center;gap:5px;cursor:pointer}
body[data-page="overview"] .range-tag .icon{width:15px;height:15px}
body[data-page="overview"] .usage-card{background:#f8fafb;border:1px solid transparent;padding:15px 16px}
body[data-page="overview"] .usage-card:hover{border-color:#dff0ed;background:#fbfefe}
@media(max-width:1050px){body[data-page="overview"] .stats{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-page="overview"] .dashboard-analysis,body[data-page="overview"] .dashboard-bottom{grid-template-columns:1fr}body[data-page="overview"] .analysis-card{height:auto;min-height:310px}}
@media(max-width:760px){body[data-page="overview"] .app{margin-left:0}body[data-page="overview"] .stat{min-width:0}body[data-page="overview"] .stat-value{font-size:20px;overflow-wrap:anywhere}body[data-page="overview"] .dashboard-filters{align-items:flex-start;flex-direction:column}body[data-page="overview"] .filter-set{width:100%;justify-content:space-between}body[data-page="overview"] .analysis-card{min-height:280px}body[data-page="overview"] .model-donut{float:none;margin:12px auto}body[data-page="overview"] .model-layout{display:block}}

body[data-page="usage"] .main{max-width:1440px}
body[data-page="usage"] .usage-page>.title-row{margin-bottom:22px}
.usage-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
.usage-stat{display:flex;align-items:center;gap:14px;min-height:132px;padding:20px;background:rgba(255,255,255,.94);border:1px solid #e5eeee;border-radius:18px;box-shadow:0 9px 24px #2456670b}
.usage-stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none}.usage-stat-icon.blue{background:#dceaff;color:#3976ef}.usage-stat-icon.amber{background:#fff0c6;color:#e99315}.usage-stat-icon.green{background:#d9f8e8;color:#1ca56b}.usage-stat-icon.purple{background:#f0e1ff;color:#9144ed}
.usage-stat small,.usage-stat em{display:block;color:#84919b;font-style:normal}.usage-stat strong{display:block;margin:2px 0;font-size:25px;color:#1a2635}.usage-stat em{font-size:12px}
.usage-filter-panel{padding:0;overflow:hidden;margin-bottom:18px}.usage-toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #edf2f2}.toolbar-group{display:flex;align-items:center;gap:10px;color:#71808a}.filter-btn{min-width:142px;justify-content:space-between}
.usage-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;padding:18px 20px}.usage-filter-field{display:grid;gap:6px;color:#77858f;font-size:12px}.usage-filter-field select{height:40px;border:1px solid #dce8e8;border-radius:10px;padding:0 10px;background:#fff;color:#334155}.usage-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:2px}
.usage-analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.usage-analysis-card{min-height:320px;margin:0;overflow:hidden}.usage-analysis-card .panel-head{padding-bottom:14px;border-bottom:1px solid #edf2f2}.usage-switch{display:flex;border:1px solid #e5eeee;border-radius:9px;overflow:hidden}.usage-switch button{border:0;background:#fff;color:#87939a;padding:7px 10px;font-size:12px}.usage-switch button.active{color:#334155;background:#f5f8f9}.usage-distribution{display:grid;grid-template-columns:210px 1fr;align-items:center;gap:14px;min-height:248px}.usage-donut{width:178px;height:178px;border-radius:50%;display:grid;place-items:center;margin:auto;position:relative}.usage-donut:after{content:"";position:absolute;inset:42px;background:#fff;border-radius:50%}.usage-donut span{position:relative;z-index:1;font-weight:700;color:#344254;font-size:13px}.usage-breakdown{min-width:0}.usage-breakdown table{min-width:0}.usage-breakdown th,.usage-breakdown td{padding:9px 6px;font-size:12px}.usage-breakdown th{background:none}.usage-breakdown td:nth-child(n+2),.usage-breakdown th:nth-child(n+2){text-align:right}.usage-breakdown td:first-child{max-width:142px;overflow:hidden;text-overflow:ellipsis}.trend-card{grid-column:1/-1;min-height:300px}.trend-legend{display:flex;justify-content:center;gap:18px;color:#697882;font-size:12px;margin:4px 0 0}.dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:5px;vertical-align:-1px}.input-dot{background:#7ca4ff}.output-dot{background:#27ba98}.cache-dot{background:#f5ab39}.cache-read-dot{background:#8f6cff}.usage-trend-svg{display:block;width:100%;height:220px;margin-top:2px}.usage-trend-line{fill:none;stroke:#19b5c5;stroke-width:3}.usage-trend-svg circle{fill:#fff;stroke:#19b5c5;stroke-width:2}.trend-axis{display:flex;justify-content:space-between;color:#89969e;font-size:10px;padding:0 20px;overflow:hidden}.usage-table-panel{padding:0;overflow:hidden}.usage-table-head{display:flex;justify-content:space-between;padding:16px 20px;color:#52606d;border-bottom:1px solid #edf2f2}.usage-record-table{min-width:1160px}.usage-record-table th,.usage-record-table td{padding:13px 12px}.usage-tag{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e9f8f5;color:#138f81;font-size:11px}.usage-tag.blue{background:#edf3ff;color:#3f74dc}.token-cell span,.token-cell small{display:block;font-size:11px}.token-input{color:#477be8}.token-output{color:#13a879}.token-cell small{color:#9aa5ad}.cost-cell{color:#16a66b;font-weight:600}.latency-cell{color:#536272}.date-cell .usage-status{display:block;width:max-content;margin-top:4px;padding:2px 6px;border-radius:999px;font-size:10px}.usage-status.success{color:#15956d;background:#e9faf3}.usage-status.failed{color:#cf4d5c;background:#fff0f2}.usage-empty-panel,.usage-filter-empty{text-align:center;padding:56px 20px;color:#87949d}.usage-empty-panel .icon,.usage-filter-empty .icon{width:34px;height:34px;display:block;margin:0 auto 10px;color:#aeb8bf}
@media(max-width:1050px){.usage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.usage-analysis-grid{grid-template-columns:1fr}.trend-card{grid-column:auto}}
@media(max-width:760px){body[data-page="usage"] .main{padding:22px 14px}.usage-stats{grid-template-columns:1fr 1fr;gap:10px}.usage-stat{min-height:112px;padding:14px;gap:10px}.usage-stat strong{font-size:20px}.usage-stat em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}.usage-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.usage-filter-grid{grid-template-columns:1fr 1fr;padding:14px}.usage-filter-actions{justify-content:flex-start;flex-wrap:wrap}.usage-distribution{grid-template-columns:1fr}.usage-donut{width:150px;height:150px}.usage-donut:after{inset:36px}.usage-breakdown{padding:0 8px}.trend-legend{gap:8px;flex-wrap:wrap}}
@media(max-width:430px){.usage-stats{grid-template-columns:1fr}.usage-filter-grid{grid-template-columns:1fr}.usage-stat em{max-width:240px}}
