:root{--paper:#f5f4ee;--ink:#173d33;--muted:#647063;--line:#d8ddcf;--green:#39775a;--lime:#dbe987;--serif:Georgia,'Noto Serif CJK SC','Songti SC',serif;--sans:'Avenir Next','Trebuchet MS','PingFang SC','Microsoft YaHei',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);background-image:radial-gradient(#173d330a .7px,transparent .7px);background-size:7px 7px}a{color:inherit;text-decoration:none}button,input{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--green);outline-offset:5px}.wrap{max-width:1280px;padding:0 60px;margin:auto}header{height:96px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-family:var(--serif);font-size:31px;letter-spacing:-1px}.brand span{color:#769058}.back{font-size:13px;min-height:44px;display:flex;align-items:center}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green)}.heading{padding:48px 0 34px;display:flex;align-items:end;justify-content:space-between;gap:30px}h1{font-family:var(--serif);font-size:43px;font-weight:500;margin:14px 0 12px;letter-spacing:-1px}p{font-size:14px;line-height:1.85;color:var(--muted);margin:0}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:15px;padding-bottom:18px}.pill{font-size:11px;background:#e5eadc;padding:8px 12px;border-radius:2px;display:inline-block}.project{display:grid;grid-template-columns:1fr 1.4fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:28px 0;gap:36px}.preview{min-height:220px;background:#e8eddf;display:flex;align-items:center;justify-content:center;position:relative;border:1px solid #dce1d2}.preview-word{font-family:var(--serif);font-size:47px;letter-spacing:-2px}.preview-word span{font-size:24px;color:#789363}.preview:after{content:'';position:absolute;bottom:35px;left:32px;right:32px;height:10px;background:repeating-linear-gradient(90deg,#66815a 0 9px,transparent 9px 14px);opacity:.45}.project-copy{align-self:center}.project h2{font-size:26px;font-weight:500;font-family:var(--serif);margin:17px 0 12px}.project:hover h2{color:var(--green)}.entry{display:inline-flex;gap:40px;border-bottom:1px solid var(--ink);padding:14px 0 8px;margin-top:8px;font-size:13px}.tools{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:0 0 24px}.search{background:transparent;border:0;border-bottom:1px solid #afbba6;min-height:44px;padding:8px 0;width:220px;max-width:100%;font-size:13px;color:var(--ink)}.directory{padding-bottom:65px}.empty{padding:40px 0}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:24px 0 30px;color:var(--muted);font-size:11px}.statusbar{background:var(--ink);color:#fff;padding:23px 26px;display:flex;justify-content:space-between;align-items:center;gap:20px}.statusbar strong{font-weight:500;font-size:15px}.statusbar small{color:#d6e2cb;font-size:12px;line-height:1.8}.statusbar button{background:transparent;color:#fff;border:1px solid #819a83;padding:10px 17px;min-height:44px;cursor:pointer;white-space:nowrap}.statusbar button:disabled{opacity:.5;cursor:wait}.windows{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:28px 0 38px}.window{padding:29px;background:#ecefe4;border:1px solid var(--line);min-width:0}.window-top{display:flex;justify-content:space-between;align-items:center;gap:14px}.window h2{font-size:17px;font-weight:500;margin:0}.window small{color:var(--muted);font-size:11px}.reading{display:flex;align-items:baseline;gap:12px;padding:30px 0 20px}.value{font-family:var(--serif);font-size:70px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-3px}.reading span:last-child{font-size:12px;color:var(--muted)}.track{background:#d7deca;height:13px;overflow:hidden}.fill{height:100%;background:var(--green);width:0}.window.low .fill{background:#b5713f}.window.low .value{color:#a05d30}.legend{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted);padding:14px 0 23px}.reset{border-top:1px solid #d1d9c5;padding-top:18px;display:grid;gap:9px;font-size:12px}.reset strong{font-weight:500;font-size:14px}.notes{display:grid;grid-template-columns:1fr 1fr;gap:35px;padding:0 0 50px}.notes h2{font-size:15px;font-weight:500;margin:0 0 12px}.notes p{font-size:12px}.loading .value{color:#87977a}.error{padding:18px 24px;border:1px solid #ba9372;color:#8d4f2c;background:#f3eadd;margin-top:24px;font-size:13px;line-height:1.8}.updated{font-size:12px;color:var(--muted);line-height:1.9;text-align:right}main{animation:arrive .45s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:700px){.wrap{padding:0 22px}header{height:80px}.brand{font-size:28px}.heading{padding:33px 0 25px;display:block}h1{font-size:34px}.heading p{font-size:13px}.updated{text-align:left;margin-top:20px}.project{grid-template-columns:1fr;gap:24px}.preview{min-height:190px}.project h2{font-size:25px}.windows{grid-template-columns:1fr;gap:18px;padding:20px 0 30px}.window{padding:24px}.value{font-size:66px}.statusbar{padding:20px;align-items:start}.statusbar strong{font-size:14px}.notes{grid-template-columns:1fr;gap:24px}.tools{align-items:end}.search{width:170px}.directory{padding-bottom:40px}footer{font-size:10px}.back{font-size:12px}.pill{font-size:10px}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
/* Codex usage + DeepSeek balance — single screen */
.usage .wrap{max-width:1240px;padding:0 48px;min-height:100dvh;display:flex;flex-direction:column}
.usage header{height:64px;flex:0 0 auto}
.usage main{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:20px 0}
.usage .heading{padding:0}
.usage h1{font-size:34px;margin:8px 0 6px}
.usage .heading p{font-size:13px}
.usage .updated{font-size:11px;line-height:1.8}
.usage .statusbar{padding:13px 20px}
.usage .statusbar small{font-size:11px;line-height:1.6}
.usage .windows{grid-template-columns:repeat(3,1fr);gap:18px;padding:0}
.usage .window{padding:clamp(20px,3.2vh,38px) 22px;display:flex;flex-direction:column;min-height:0}
.usage .window-top h2{font-size:16px}
.usage .reading{padding:clamp(16px,2.4vh,28px) 0 clamp(13px,1.8vh,20px);gap:10px}
.usage .value{font-size:clamp(50px,5.6vh,70px);letter-spacing:-2px;white-space:nowrap}
.usage .track{height:9px}
.usage .legend{padding:9px 0 11px;font-size:11px}
.usage .reset{padding-top:11px;gap:5px;margin-top:auto}
.usage .split{display:flex}
.usage .split .fill{background:var(--green)}
.usage .split .fill.granted{background:var(--lime)}
.usage .money .value{font-size:clamp(46px,5.2vh,64px);letter-spacing:-1.5px}
.usage .money .legend span{display:flex;align-items:center;gap:6px}
.usage .money .legend span::before{content:'';width:8px;height:8px;background:var(--green);flex:0 0 auto}
.usage .money .legend span:last-child::before{background:var(--lime)}
.usage footer{padding:12px 0 16px;flex:0 0 auto}
@media(max-width:700px){
.usage .wrap{padding:0 18px}
.usage header{height:48px}
.usage .brand{font-size:24px}
.usage main{padding:8px 0;gap:8px}
.usage .heading{display:flex;align-items:end;justify-content:space-between;gap:14px}
.usage .eyebrow{font-size:9px;letter-spacing:1.2px}
.usage h1{font-size:26px;margin:5px 0 0;letter-spacing:-.5px}
.usage .heading p{display:none}
.usage .updated{font-size:10px;text-align:right;margin:0;line-height:1.6}
.usage .statusbar{padding:8px 12px;gap:10px}
.usage .statusbar strong{font-size:12px}
.usage .statusbar small{display:none}
.usage .plan-note{display:none}
.usage .statusbar button{padding:7px 11px;min-height:34px;font-size:12px}
.usage .windows{grid-template-columns:1fr;gap:8px}
.usage .window{padding:9px 14px}
.usage .window-top h2{font-size:14px}
.usage .window-top small{font-size:9px}
.usage .reading{padding:3px 0 6px;gap:8px}
.usage .value{font-size:31px;letter-spacing:-1px}
.usage .money .value{font-size:29px;letter-spacing:-1px}
.usage .track{height:6px}
.usage .legend{padding:4px 0 6px;font-size:10px}
.usage .reset{padding-top:6px;gap:1px;font-size:10px}
.usage .reset strong{font-size:11px}
.usage .reset-after{display:none}
.usage footer{padding:7px 0 9px;font-size:9px}
}
@media(max-width:700px) and (max-height:720px){
.usage main{gap:6px}
.usage h1{font-size:24px}
.usage .statusbar{padding:7px 11px}
.usage .statusbar button{min-height:30px;padding:6px 10px}
.usage .window{padding:7px 13px}
.usage .window-top h2{font-size:13px}
.usage .window-top small{font-size:8px}
.usage .reading{padding:2px 0 5px}
.usage .value{font-size:27px}
.usage .money .value{font-size:26px}
.usage .legend{padding:3px 0 5px;font-size:9px}
.usage .reset{padding-top:5px;gap:1px;font-size:9px}
.usage .reset strong{font-size:10px}
.usage footer{padding:6px 0 8px}
}
