@charset "UTF-8";
:root{--paper:#f4f1eb;--card:#fffcf6;--ink:#282d2a;--muted:#6b716b;--line:#deded3;--green:#36564a;--soft:#e6eee6;--rust:#92583f;--radius:26px;font-family:"Noto Sans CJK SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a48b4f;outline-offset:3px}button,input,select{min-height:44px}button{border:1px solid var(--line);border-radius:13px;background:var(--card);padding:10px 17px;color:var(--ink)}button:hover{background:#eeeade}button.primary{border-color:var(--green);background:var(--green);color:#fff}button.primary:hover{background:#284236}.danger{color:#923c2e}input,select{background:#fffdf8;border:1px solid #b8bcb2;border-radius:11px;padding:11px 13px;width:100%;color:var(--ink)}input::placeholder{color:#80867e}label{display:grid;gap:8px;font-size:13px;font-weight:600}.field-hint,.muted{color:var(--muted);font-size:13px;line-height:1.7}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;letter-spacing:-.04em;line-height:1.35}h2{font-size:18px;font-weight:600}h3{font-size:14px;font-weight:600}p{line-height:1.8}code{font-family:"DejaVu Sans Mono",Consolas,monospace;font-size:.87em;overflow-wrap:anywhere}small{font-size:12px}.skip{position:fixed;top:-80px;left:10px;z-index:10;padding:12px;background:#fff}.skip:focus{top:10px}.loading{padding:70px;color:var(--muted)}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}.sidebar{padding:32px 19px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#eeede5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:0 12px 26px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--green);color:#faf8e9;font-family:Georgia,serif;font-style:italic;font-size:23px}.brand strong{font:600 20px Georgia,serif}.brand small{display:block;font-size:10px;letter-spacing:.12em;color:var(--muted);margin-top:5px}.nav-label{font-size:10px;color:var(--muted);letter-spacing:.1em;margin:20px 14px 9px}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:11px;padding:11px 14px;text-decoration:none;border-radius:12px;font-size:13px;color:#616b62;min-height:44px}.nav a.active{background:#fcfaf4;color:#284c3c;box-shadow:0 2px 9px #1f281009}.nav a:hover{background:#e5e8dc}.nav .nav-dot{width:6px;height:6px;border-radius:50%;background:#a4afa1}.nav a.active .nav-dot{background:#406249}.account{margin-top:auto;padding:24px 12px 0;border-top:1px solid var(--line);display:grid;gap:7px;font-size:13px}.account-email{overflow-wrap:anywhere;color:var(--muted);font-size:11px}.account button{margin-top:8px;text-align:left;background:transparent;border:0;padding-left:0;width:max-content}.main{padding:38px 44px 60px;max-width:1440px;width:100%;margin:auto;align-self:start}.topline{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:32px}.topline .note{font-size:11px;color:var(--muted);padding:8px 13px;border-radius:30px;background:#e7eadf}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:27px}.page-head p{margin-top:9px;color:var(--muted);font-size:13px}.grid-overview{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,1fr);gap:20px}.balance-shell{background:#e1e6da;border-radius:32px;padding:7px}.balance{padding:32px;border-radius:26px;background:linear-gradient(120deg,#fbfaf1,#f1f3e5);min-height:270px;display:flex;flex-direction:column;position:relative;overflow:hidden}.balance:after{content:"";width:200px;height:200px;border:1px solid #cbd6bc;border-radius:50%;position:absolute;right:-100px;top:-60px;pointer-events:none;box-shadow:0 0 0 25px #e4eaca70,0 0 0 55px #e7ecd250}.balance-label{font-size:13px;color:var(--green)}.balance-number{font-size:clamp(38px,5vw,64px);font-weight:500;letter-spacing:-.055em;margin:22px 0 28px;line-height:1}.balance-number small{font-size:25px;margin-right:7px;vertical-align:top;line-height:1.4}.balance-details{display:flex;gap:35px;margin-top:auto;flex-wrap:wrap}.balance-details dt{font-size:11px;color:var(--muted);margin-bottom:7px}.balance-details dd{margin:0;font-size:14px}.side-stats{display:grid;gap:16px}.stat{background:var(--card);border:1px solid #e2e0d6;border-radius:var(--radius);padding:23px 27px;display:flex;justify-content:space-between;align-items:center;gap:15px}.stat-value{font-size:28px;letter-spacing:-.04em;margin:8px 0 3px}.stat-decoration{color:#bcc7b2;font-family:Georgia,serif;font-size:40px}.panel{border:1px solid #dfded4;border-radius:var(--radius);background:var(--card);padding:25px;margin-top:24px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.panel-head a{font-size:12px;color:var(--green)}.chart{display:flex;align-items:flex-end;gap:8px;height:140px;padding-top:10px}.chart-col{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:9px;flex:1;height:100%;min-width:0}.chart-bar{width:100%;max-width:45px;background:#9baf91;border-radius:6px 6px 2px 2px;min-height:3px}.chart-col small{font-size:9px;color:var(--muted)}.empty{padding:38px 15px;text-align:center;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--ink);font-weight:500;font-size:16px;margin-bottom:8px}.table-wrap{overflow:auto;margin:0 -5px;padding:0 5px}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-size:10px;color:var(--muted);font-weight:500;white-space:nowrap;padding:0 12px 13px}td{border-top:1px solid #ebe8df;padding:15px 12px;vertical-align:middle}th:first-child,td:first-child{padding-left:0}td:last-child{text-align:right;padding-right:0}td small{display:block;color:var(--muted);margin-top:5px}.status{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;border-radius:20px;padding:4px 9px;font-size:10px;background:#e7eee5;color:#426044}.status.warn{background:#f1e9d8;color:#886334}.status.off{background:#ebe9e5;color:#777568}.form{display:grid;gap:19px;max-width:540px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:20px}.toolbar label{min-width:140px;max-width:230px;flex:1}.toolbar button{flex-shrink:0}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:24px;gap:15px;font-size:12px;color:var(--muted)}.pagination div{display:flex;gap:8px}.secret{background:#edf0e6;padding:20px;border-radius:15px;user-select:all;word-break:break-all;margin:16px 0}.notice{padding:14px 18px;background:#f5ecd9;color:#78572f;border-radius:14px;font-size:12px;line-height:1.8;margin-bottom:20px}.inline-error{color:#9b3a30;font-size:13px;line-height:1.6}.error-panel{padding:24px;border-radius:18px;background:#f5e8e0;color:#7b392a}.login{display:grid;grid-template-columns:1.1fr 1fr;min-height:100dvh}.login-story{background:#dce3d3;padding:48px 60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story .brand{padding-left:0}.login-story h1{font-size:clamp(38px,4vw,58px);line-height:1.4;position:relative;z-index:1;letter-spacing:-.06em}.login-story p{margin-top:20px;font-size:14px;max-width:310px;color:#54634f}.orbit{position:absolute;width:410px;height:410px;border:1px solid #bccbb0;right:-220px;top:25%;border-radius:50%;box-shadow:0 0 0 45px #c9d5be55,0 0 0 90px #d0dac744}.login-foot{font-size:11px;color:#63745d;margin-top:50px}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-form section{width:100%;max-width:360px}.login-form h2{font-size:26px;margin:10px 0 12px}.login-form .form{margin-top:30px}.login-form button{width:100%;margin-top:8px}.login-note{margin-top:23px;font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#2e4135;color:#fff;border-radius:15px;padding:13px 23px;max-width:90vw;z-index:30;font-size:13px;box-shadow:0 5px 30px #1112;display:none}#toast.visible{display:block}dialog{border:1px solid var(--line);border-radius:28px;padding:34px;max-width:560px;width:calc(100% - 32px);color:var(--ink);background:var(--card);box-shadow:0 30px 100px #16201333}dialog::backdrop{background:#29372c66;backdrop-filter:blur(3px)}dialog h2{margin-bottom:22px;padding-right:28px}dialog .form{width:100%}.dialog-close{position:absolute;top:15px;right:15px;border:0;background:transparent;font-size:25px;padding:5px 10px}.model-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:15px}.model-card{padding:23px;background:var(--card);border:1px solid var(--line);border-radius:22px}.model-card h3{margin:13px 0 18px;overflow-wrap:anywhere}.model-prices{display:flex;gap:20px;font-size:12px;margin:16px 0}.model-prices small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.model-card button{margin-top:16px}.section-gap{margin-top:26px}.mobile-brand{display:none}.mono{font-variant-numeric:tabular-nums}.footer-note{font-size:11px;color:var(--muted);margin-top:32px}.checklist{display:grid;gap:12px}.checklist label{display:flex;align-items:center;gap:10px}.checklist input{width:18px;min-height:18px}.actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1050px){.main{padding:30px 25px}.shell{grid-template-columns:205px minmax(0,1fr)}.grid-overview{grid-template-columns:1fr}.side-stats{grid-template-columns:1fr 1fr}.login-story{padding:40px}.balance{min-height:250px}}
@media(max-width:700px){.shell{display:block}.sidebar{position:relative;height:auto;padding:15px 18px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{padding:0 0 15px}.brand-mark{width:32px;height:32px;font-size:20px}.brand strong{font-size:18px}.sidebar .brand small{display:none}.nav{display:flex;gap:4px;overflow:auto;padding-bottom:3px}.nav a{white-space:nowrap;padding:9px 12px;font-size:12px}.nav-label{margin:10px 0 6px}.nav-dot{display:none}.account{display:none}.mobile-brand{display:flex;align-items:center;gap:10px}.mobile-brand button{min-height:35px;padding:5px 10px;font-size:11px}.main{padding:25px 18px 45px}.topline{margin-bottom:24px}.topline .note{display:none}h1{font-size:26px}.page-head{align-items:flex-start;margin-bottom:22px}.page-head button{padding:9px 12px;font-size:12px;white-space:nowrap}.balance{padding:25px;min-height:235px}.balance-number{font-size:49px}.side-stats{gap:12px}.stat{padding:19px 16px;display:block}.stat-value{font-size:24px}.stat-decoration{display:none}.panel{padding:20px 17px}.panel-head{margin-bottom:20px}td{padding:13px 9px}.login{grid-template-columns:1fr}.login-story{padding:28px 28px 32px}.login-story h1{font-size:34px}.login-story p{margin-top:14px}.login-story .brand{padding-bottom:24px}.login-foot{display:none}.login-form{padding:35px 28px}.orbit{width:260px;height:260px;right:-190px}.form-row{grid-template-columns:1fr}.toolbar{gap:9px}.toolbar label{min-width:110px}.model-grid{grid-template-columns:1fr}dialog{padding:28px 23px}.chart{gap:4px}.chart-col small{font-size:8px}.footer-note{line-height:1.7}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s ease}.panel,.balance-shell,.stat{animation:arrive .25s ease-out}@keyframes arrive{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}}

[hidden]{display:none!important}

/* Chat follows the existing console's paper and green palette. */
.chat-panel{margin-top:0}.chat-history{margin:24px 0;max-height:60dvh;min-height:160px;overflow:auto;overscroll-behavior:contain}.chat-turn{border-top:1px solid var(--line);padding:22px 0;overflow-wrap:anywhere}.chat-turn h2{font-size:12px;color:var(--green);margin:12px 0 9px}.chat-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;margin-bottom:16px}.chat-actions,.chat-receipt{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.chat-actions [role=status]{flex:1;min-width:160px}.chat-receipt small{overflow-wrap:anywhere}.chat-receipt button{font-size:12px}#chat-form textarea{font:inherit;width:100%;min-height:110px;resize:vertical;border:1px solid #b8bcb2;border-radius:13px;padding:13px;background:#fffdf8;color:var(--ink);margin-top:10px}#chat-form textarea:focus-visible{outline:3px solid #a48b4f;outline-offset:3px}.chat-panel .toolbar label{max-width:100%;min-width:0}.chat-panel select{max-width:100%}@media(max-width:700px){.chat-history{max-height:55dvh}.chat-panel .toolbar{display:grid}.chat-actions [role=status]{flex-basis:100%}.chat-actions button{flex:1}}

.chat-library{border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:20px;background:var(--card)}.chat-library summary{cursor:pointer;font-weight:600;min-height:30px}.chat-library p{margin:12px 0}.chat-saved{padding:18px 0;border-top:1px solid var(--line);display:grid;gap:10px;overflow-wrap:anywhere}.chat-import{padding:16px 0;overflow-wrap:anywhere}.chat-import h2{font-size:16px}.chat-library button{font-size:12px}.chat-library .actions{margin:12px 0}.chat-import ol{padding-left:22px;font-size:13px;line-height:1.8}
.chat-context{padding:16px 0;border-bottom:1px solid var(--line)}.chat-context>label{display:block;font-size:13px;margin-bottom:8px}.chat-context select{width:100%;max-width:300px}.chat-context p{font-size:13px;line-height:1.8;margin:10px 0}.chat-context summary,.chat-sources summary{cursor:pointer;padding:8px 0;font-size:13px}.chat-context ol,.chat-sources ul{padding-left:22px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.chat-context ol{max-height:200px;overflow:auto}.chat-sources{margin:10px 0}.chat-sources a{text-decoration:underline;text-underline-offset:3px}.chat-history>[data-earlier]{display:block;margin:0 auto 12px;min-height:40px}

.ops-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.ops-grid .stat-value{font-size:clamp(16px,2vw,25px);overflow-wrap:anywhere}.ops-grid .stat{min-width:0}.ops-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.ops-filters label{display:grid;gap:8px;font-size:12px;flex:1 1 150px;min-width:0}.ops-filters select{width:100%;max-width:100%}.ops-tabs{margin-bottom:18px}.ops-tabs a{padding:9px 14px;border-radius:10px;border:1px solid var(--line)}.ops-tabs a[aria-current=page]{background:var(--green);color:white}.ops-pagination{justify-content:center;margin-top:16px;flex-wrap:wrap}.ops-error{max-width:360px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:850px){.ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.ops-grid{grid-template-columns:1fr}.ops-filters label{flex-basis:100%}.ops-filters button{flex:1}}

.ops-bars{display:flex;height:130px;gap:4px;border-bottom:1px solid var(--line);margin-top:20px}.ops-bars>div{display:flex;flex:1;min-width:0;align-items:flex-end}.ops-bars span{width:100%;background:var(--green);border-radius:3px 3px 0 0}.ops-trend-caption{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:10px}

.chat-attachments{display:flex;flex-wrap:wrap;gap:.5rem;margin:.65rem 0}.chat-attachments>div{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem;border:1px solid var(--line);border-radius:8px;max-width:100%}.chat-attachments span,.chat-attachments button{overflow-wrap:anywhere;white-space:normal;max-width:100%}.chat-attachments span{font-size:.85rem}

.chat-search{margin:1rem 0}.chat-search label{display:flex;align-items:center;gap:.65rem;font-size:.9rem}.chat-search input{width:18px;min-height:18px}.chat-search p{margin-top:.5rem}.chat-text a{text-decoration:underline;text-underline-offset:.15em}

/* API distribution reuses the console palette with cards that fit narrow screens. */
.distribution-endpoint{display:flex;align-items:start;justify-content:space-between;gap:20px}.distribution-endpoint code{display:block;margin:16px 0;overflow-wrap:anywhere}.distribution-endpoint p{font-size:12px;max-width:680px}.distribution-endpoint button{flex-shrink:0}.distribution-list{display:grid;gap:16px;margin-top:22px}.distribution-card{border:1px solid var(--line);border-radius:18px;padding:22px;min-width:0}.distribution-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.distribution-heading h3,.distribution-heading p{overflow-wrap:anywhere}.distribution-heading p{color:var(--muted);font-size:12px;margin:7px 0 12px}.distribution-heading code{font-size:12px;overflow-wrap:anywhere}.distribution-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.distribution-balances dt{font-size:11px;color:var(--muted);margin-bottom:6px}.distribution-balances dd{margin:0;font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.distribution-card .actions button{font-size:12px}.distribution-share{width:100%;font:inherit;font-size:12px;line-height:1.8;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--bg);color:var(--ink);overflow-wrap:anywhere}.distribution-history{display:grid;gap:14px;margin-top:18px;font-size:13px;overflow-wrap:anywhere}.distribution-history small{display:block;color:var(--muted);margin-top:5px}@media(max-width:600px){.distribution-endpoint{flex-direction:column}.distribution-balances{grid-template-columns:1fr;gap:14px}.distribution-card{padding:17px}.distribution-card .actions button{flex:1 1 110px}}

.provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}.provider-card{min-width:0;border:1px solid var(--line);border-radius:18px;padding:22px}.provider-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.provider-card .muted{font-size:12px;margin-top:12px}.provider-count{margin-top:20px;font-size:12px}.provider-count strong{font-size:26px;margin-right:4px}.provider-count span{color:var(--muted)}.provider-card button{margin-top:20px;width:100%}.provider-panel{margin-bottom:25px}@media(max-width:700px){.provider-grid{grid-template-columns:1fr}.provider-card{padding:18px}}
