:root{color-scheme:dark;--bg:#171b18;--surface:#212722;--text:#edf0e7;--muted:#a8b2a7;--line:#384139;--mint:#d1e8a2;--peach:#f2bd96;--warn:#ffd17b}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 'Avenir Next','PingFang SC','Noto Sans CJK SC',sans-serif;-webkit-font-smoothing:antialiased}button,summary{-webkit-tap-highlight-color:transparent}button{font:inherit}button:focus-visible,summary:focus-visible{outline:2px solid var(--mint);outline-offset:5px}button:disabled{cursor:wait}button{cursor:pointer}[hidden]{display:none!important}
.app{max-width:940px;margin:auto;padding:calc(25px + env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}header{display:flex;align-items:center;justify-content:space-between;padding-bottom:25px;border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:9px;font-weight:600;font-size:19px;letter-spacing:2px}.mark{color:var(--mint);font-size:29px;line-height:1;transform:rotate(-90deg);display:inline-block}.wordmark-en{font:10px 'Menlo',monospace;letter-spacing:1.4px;color:var(--muted);margin-left:5px}.private{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:3px 10px}.intro{display:flex;align-items:center;justify-content:space-between;margin:29px 0 19px}.eyebrow{font:10px 'Menlo',monospace;letter-spacing:2px;color:var(--muted);margin:0 0 11px}h1{font-size:29px;letter-spacing:-.8px;font-weight:500;line-height:1.3;margin:0}#refresh{background:transparent;width:44px;height:44px;border:1px solid #4a554b;border-radius:50%;color:var(--text);display:grid;place-items:center}#refresh:hover{background:#2b332c}#refresh svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#refresh.busy svg{animation:spin 1.5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.connection{display:flex;gap:7px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:24px}.dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--mint)}.dot.pending{background:var(--warn)}#clock{margin-left:auto;font:10px 'Menlo',monospace}.notice{border-left:2px solid var(--warn);padding:10px 12px;margin-bottom:16px;color:var(--warn);background:#332f22;font-size:12px}
main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.provider{--accent:var(--mint);background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:23px;overflow:hidden;animation:enter .45s ease-out both}.provider.claude{--accent:var(--peach);animation-delay:.06s}@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.card-head{display:flex;gap:10px;align-items:center}.provider-icon{width:29px;height:29px;display:grid;place-items:center;font:18px 'Menlo',monospace;color:var(--accent);border:1px solid #586251;border-radius:9px}.claude .provider-icon{border-color:#6b5545}.card-head h2{font-size:19px;font-weight:600;margin:0;letter-spacing:-.4px}.plan{margin-left:auto;color:var(--muted);font-size:10px;letter-spacing:1px}.hero{display:flex;align-items:flex-end;justify-content:space-between;margin:24px 0 13px}.amount{font-family:'Avenir Next','Menlo',monospace;color:var(--accent);font-size:64px;letter-spacing:-4px;line-height:1;font-weight:500}.amount i{font-style:normal;font-size:23px;letter-spacing:-1px;margin-left:5px}.hero-label{text-align:right;color:var(--muted);font-size:11px;line-height:1.8;padding-bottom:3px}.hero-label strong{font-weight:500;color:var(--text);font-size:12px}.bar{height:6px;background:#3b443c;border-radius:4px;overflow:hidden}.bar>span{display:block;height:100%;width:var(--fill);background:var(--accent);border-radius:4px}.bar.low>span{background:var(--warn)}.hero-reset{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:10px;margin:10px 0 21px}.hero-reset time{color:var(--text)}.quota-row{padding:13px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:4px 10px}.quota-name{font-size:12px}.quota-number{font-family:'Menlo',monospace;font-size:12px;color:var(--accent)}.quota-reset{font-size:10px;color:var(--muted);grid-column:1/-1}.quota-reset time{color:#c4ccc1}.extras{border-top:1px solid var(--line);padding:12px 0 0}.extras summary{font-size:11px;cursor:pointer;color:var(--muted);min-height:32px;display:flex;align-items:center;justify-content:space-between;list-style:none}.extras summary::-webkit-details-marker{display:none}.extras summary::after{content:'+';font:16px 'Menlo',monospace}.extras[open] summary::after{content:'−'}.extras .quota-row{padding:10px 0}.card-meta{font-size:10px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;margin-top:11px;gap:8px}.card-meta.stale,.provider-error{color:var(--warn)}.provider-error{font-size:11px;line-height:1.8;margin:10px 0}.loading{grid-column:1/-1;padding:70px 20px;text-align:center;border:1px solid var(--line);border-radius:19px;color:var(--muted)}.loading span{display:block;font-size:11px;margin-top:9px}footer{color:var(--muted);font-size:11px;margin-top:25px}footer>p{margin-bottom:16px}footer details{border-top:1px solid var(--line);padding:12px 0}footer summary{cursor:pointer;min-height:32px;line-height:32px}footer details p{max-width:560px;line-height:1.9}footer small{display:block;font:9px 'Menlo',monospace;letter-spacing:1px;margin-top:12px;opacity:.8}@media(max-width:640px){.app{max-width:480px;padding-top:calc(19px + env(safe-area-inset-top))}header{padding-bottom:18px}.intro{margin-top:23px}h1{font-size:27px}.connection{margin-bottom:18px}main{grid-template-columns:1fr;gap:14px}.provider{padding:20px}.hero{margin-top:19px}.amount{font-size:62px}.hero-reset{margin-bottom:17px}.provider-icon{width:27px;height:27px}.wordmark-en{font-size:9px;letter-spacing:1px}.quota-row{padding:11px 0}footer{margin-top:22px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:640px){.provider{padding:18px}.hero{margin:16px 0 10px}.hero-reset{margin:8px 0 12px}.quota-row{padding:9px 0}.extras{padding-top:8px}.extras summary{min-height:26px}.card-meta{margin-top:8px}.intro{margin:20px 0 16px}}
body.ready .provider{animation:none}
.setup{margin-top:40px;padding-top:27px;border-top:1px solid var(--line);scroll-margin-top:20px}.setup-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px;gap:15px}.setup h2{font-size:23px;font-weight:500;letter-spacing:-.6px;line-height:1.45;margin:0}.setup-note{font-size:10px;color:var(--muted);white-space:nowrap}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.setup-panel{min-width:0}.step-label{font:10px 'Menlo',monospace;color:var(--muted);letter-spacing:1px;margin-bottom:12px}.setup h3{font-size:19px;font-weight:500;margin:0 0 9px}.setup-panel>p{font-size:12px;color:var(--muted);max-width:360px;margin:0 0 17px;line-height:1.85}.setup-panel:first-child{border-right:1px solid var(--line);padding-right:27px}.widget-example{background:#232a23;border:1px solid #424e3e;border-radius:17px;padding:15px 18px;margin:18px 0 15px;max-width:340px}.widget-example>span{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.widget-example small{font-size:9px}.widget-example>div{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:14px}.widget-example b{color:var(--mint);font-size:17px;font-weight:500}.widget-example b:last-child{color:var(--peach)}.widget-example i{display:block;font-size:11px;color:var(--muted);font-style:normal;margin-top:5px}.setup-details{border-top:1px solid var(--line);margin-top:16px;padding-top:8px}.setup-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;cursor:pointer;font-size:12px}.setup-details summary::-webkit-details-marker{display:none}.setup-details summary span{color:var(--muted);font-size:15px}.setup-details p,.setup-details li{font-size:12px;line-height:1.95;color:var(--muted)}.setup-details ol{padding-left:20px;margin:12px 0 18px}.setup-details li{padding-left:3px;margin:10px 0}.setup a{color:var(--mint);text-underline-offset:4px}.thresholds{display:grid;grid-template-columns:repeat(3,1fr);margin:17px 0 20px;border-block:1px solid var(--line);padding:15px 0}.thresholds>div+div{border-left:1px solid var(--line);padding-left:17px}.thresholds strong{font-size:28px;color:var(--mint);font-weight:500;line-height:1.1;letter-spacing:-1px}.thresholds>div:nth-child(2) strong{color:var(--peach)}.thresholds>div:nth-child(3) strong{color:var(--warn)}.thresholds strong span{font-size:13px;margin-left:2px;letter-spacing:0}.thresholds small{display:block;font-size:10px;color:var(--muted);margin-top:8px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}.action{font-size:12px;font-weight:500;border-radius:10px;min-height:44px;padding:10px 15px;border:1px solid var(--mint)}.action.primary{background:var(--mint);color:#202719}.action.secondary{background:transparent;color:var(--mint)}.action:disabled{opacity:.5;cursor:default}.text-button{font:inherit;font-size:12px;color:var(--muted);background:none;border:0;min-height:44px;padding:9px}.text-link{font-size:11px;min-height:44px;display:inline-flex;align-items:center;padding-inline:4px}.setup .action-status{font-size:12px;color:var(--mint);line-height:1.8;margin:10px 0;min-height:22px}.setup .action-status:empty{display:none}.setup .action-status.error{color:var(--warn)}.setup p.fineprint{font-size:10px;color:var(--muted);line-height:1.85;margin:14px 0}.setup textarea{width:100%;height:130px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;font-size:12px;padding:10px}.setup a:focus-visible,.setup button:focus-visible{outline:2px solid var(--mint);outline-offset:3px}@media(max-width:640px){.setup{margin-top:29px;padding-top:23px}.setup-heading{display:block}.setup-note{display:block;margin-top:9px}.setup h2{font-size:22px}.setup-grid{grid-template-columns:1fr;gap:29px}.setup-panel:first-child{border-right:0;padding-right:0}.setup-panel+ .setup-panel{border-top:1px solid var(--line);padding-top:25px}.setup-panel>p{max-width:none}.widget-example{max-width:none}.thresholds strong{font-size:31px}}
