:root{font:16px/1.5 "Segoe UI",system-ui,sans-serif;color:#2a2d34;background:#ecebe6;--paper:#ecebe6;--ink:#2a2d34;--blue:#2f5bff;--line:#dfdfd8;--muted:#585b64;--card:#fff;--radius:20px}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #6f8bff;outline-offset:3px}
a{color:var(--blue)}
h1,h2,p{margin:0}
h1{font-size:clamp(2.1rem,4vw,3.35rem);line-height:1.07;letter-spacing:-.07em;font-weight:750}
h2{font-size:1.12rem;line-height:1.26;letter-spacing:-.025em}
small{font-size:.875rem}
[hidden]{display:none!important}
.app-shell{min-height:100dvh;display:grid;grid-template-columns:230px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100dvh;background:var(--ink);color:var(--paper);display:flex;flex-direction:column;padding:36px 19px 24px;gap:55px}
.brand{display:inline-flex;align-items:center;gap:10px;width:max-content;text-decoration:none;color:inherit;font-size:1.7rem;font-weight:750;letter-spacing:-.08em;line-height:1}
.brand span{color:#7692ff;margin-left:-9px}
.sidebar .brand{margin-left:12px}
.sidebar nav{display:grid;gap:8px}
.nav-item{border:0;background:transparent;color:#dedee4;display:flex;align-items:center;gap:12px;text-align:left;width:100%;border-radius:12px;padding:13px 12px;font-weight:600;font-size:.91rem}
.nav-item:hover{background:#3b3f4a}
.nav-item[aria-current]{background:var(--blue);color:#fff}
.logout{margin-top:auto}
.workspace{width:min(100%,1340px);margin-inline:auto;padding:42px clamp(20px,4vw,62px) 56px}
.topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:30px}
.header-actions,.month-control{display:flex;align-items:center;gap:12px}
.month-control{gap:6px;border:1px solid #d5d5ce;border-radius:12px;padding:3px;font-size:.91rem;font-weight:650;white-space:nowrap}
.month-control span{text-align:center;min-width:112px}
.month-control button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:8px;color:var(--ink);background:transparent}
.month-control button:hover{background:white}
.primary,.secondary{border:0;border-radius:11px;padding:11px 15px;background:var(--blue);color:white;font-weight:650;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap}
.primary:hover:not(:disabled){background:#2248da}
.secondary{border:1px solid var(--line);background:white}
.secondary:hover{background:#f8f6f4}
.text-btn{border:0;padding:5px 0;color:#2349d5;background:none;text-align:left;font-weight:650;white-space:nowrap;font-size:.89rem}
.text-btn:hover{text-decoration:underline}
.danger{color:#a4312b}
.kicker{color:var(--muted);font-size:.87rem;font-weight:700;margin-bottom:6px}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px;margin-bottom:16px}
.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hero,.card{border-radius:var(--radius);padding:clamp(18px,2.4vw,28px)}
.hero{background:var(--blue);color:white;position:relative;display:flex;flex-direction:column;justify-content:center;min-height:214px;overflow:hidden;isolation:isolate}
.hero p{font-weight:650}
.hero strong{font-size:clamp(2.65rem,5.2vw,4.9rem);letter-spacing:-.09em;line-height:1.15;overflow-wrap:anywhere}
.hero span{margin-top:8px;color:#f0f2ff;font-size:.91rem}
.hero-lines{z-index:-1;position:absolute;width:440px;height:440px;right:-220px;bottom:-270px;border-radius:50%;border:1px solid #ffffff38;box-shadow:0 0 0 21px #ffffff13,0 0 0 45px #ffffff13,0 0 0 73px #ffffff12,0 0 0 104px #ffffff12}
.card{background:var(--card);border:1px solid var(--line);min-width:0}
.strike-card{display:grid;align-content:center;gap:12px;background:var(--ink);color:var(--paper);border-color:transparent}
.strike-card .kicker,.strike-card p{color:#d1d3dc}
.strike-card h2{font-size:2rem;margin-bottom:3px}
.strike-card .text-btn{color:#b9c7ff;width:max-content}
.card-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#ebefff;color:#2349d5;flex-shrink:0}
.strike-card .card-icon{background:#41485d;color:#c2ccff}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:16px}
.section-heading>span,.amount-pair>span,.metric p,.hint,.empty,.day-detail p{color:var(--muted)}
.section-heading>span{font-size:.89rem;text-align:right}
.amount-pair{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.amount-pair strong{font-size:clamp(1.65rem,3vw,2.25rem);letter-spacing:-.07em;overflow-wrap:anywhere}
.metric progress{display:block;width:100%;height:8px;margin:0 0 12px;appearance:none;border:0;border-radius:99px;overflow:hidden;background:#edf0f6;color:var(--blue)}
.metric progress::-webkit-progress-bar{background:#edf0f6}
.metric progress::-webkit-progress-value{background:var(--blue);border-radius:99px}
.metric progress::-moz-progress-bar{background:var(--blue);border-radius:99px}
.metric p{font-size:.89rem}
.ledger-line,.record{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e9e9e4}
.ledger-line:last-child,.record:last-child{border-bottom:0}
.ledger-line strong,.record>strong{font-variant-numeric:tabular-nums;text-align:right}
.ledger-line small,.record small,.reward small{display:block;color:var(--muted)}
.ledger-line.total{font-weight:760}
.record>div,.record>strong:first-child{margin-right:auto;overflow-wrap:anywhere;text-align:left}
.record>strong.credit{color:#255d48}
.empty{padding:20px 0}
.hint{margin-bottom:14px}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}
.calendar>span{font-size:.875rem;color:var(--muted);padding-bottom:4px}
.calendar button{border:1px solid transparent;background:#f3f3ef;color:var(--ink);border-radius:8px;min-height:36px;padding:0}
.calendar button.met{background:#e4ebff;color:#2349d5;font-weight:750}
.calendar button.reviewed{background:#f8eae3}
.calendar button[aria-pressed="true"]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.day-detail{margin-top:18px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px}
.day-detail .day-note{flex-basis:100%;overflow-wrap:anywhere;white-space:pre-wrap}
.reward{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e9e9e4}
.reward:last-child{border-bottom:0}
.reward .card-icon:not(.earned){color:var(--muted);background:#f0f0eb}
.reward>span:last-child{margin-left:auto;font-size:.875rem;color:var(--muted)}
.weeks{margin-bottom:16px}
.lock-screen{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 55% 0%,#404861,var(--ink) 63%)}
.lock-card{width:min(100%,420px);padding:clamp(18px,6vw,38px);border-radius:24px;background:var(--paper);box-shadow:0 20px 80px #0003}
.lock-card h1{font-size:2.2rem;margin-top:12px}
.lock-card>p{color:var(--muted);margin-top:10px}
.lock-symbol{display:grid;place-items:center;width:45px;height:45px;color:#2349d5;background:#dde5ff;border-radius:13px;margin-top:32px}
.lock-card form{margin-top:20px}
.wide{width:100%}
label{display:grid;gap:6px;font-size:.9rem;font-weight:650;margin-bottom:14px}
input,textarea,select{width:100%;min-height:44px;border:1px solid #cacbd1;border-radius:9px;padding:9px 11px;color:var(--ink);background:white}
textarea{resize:vertical}
select{appearance:none;padding-right:30px;background:white linear-gradient(45deg,transparent 50%,var(--ink) 50%) calc(100% - 15px) 50%/6px 6px no-repeat}
.form-error{color:#a4312b;font-size:.9rem}
.form-error:not(:empty){margin:9px 0}
.captcha-status{color:var(--muted);font-size:.9rem}
.captcha-status:not(:empty){margin:9px 0}
[data-retry-captcha]{margin-bottom:9px}
dialog{border:0;border-radius:20px;width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:24px;box-shadow:0 10px 70px #1418274a;color:var(--ink)}
dialog::backdrop{background:#1e2435a0}
.dialog-actions{margin-top:15px;display:flex;justify-content:flex-end;gap:17px}
.notice{position:fixed;right:20px;bottom:20px;z-index:5;background:var(--ink);color:white;padding:12px 16px;border-radius:12px;box-shadow:0 8px 22px #0003;max-width:calc(100% - 40px)}
@media(max-width:1050px){.topbar{align-items:flex-start;flex-direction:column}.workspace{padding-top:32px}.sidebar{padding-top:30px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{z-index:4;height:auto;padding:12px 14px;gap:11px;display:grid;grid-template-columns:1fr auto}.sidebar .brand{margin-left:0}.sidebar nav{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.nav-item{width:auto;justify-content:center;padding:8px 5px;gap:4px;font-size:.77rem;white-space:normal}.nav-item svg{width:16px;height:16px;flex-shrink:0}.logout{grid-column:2;grid-row:1;margin:0;padding-inline:10px}.workspace{padding:24px 15px 36px}}
@media(max-width:530px){.overview-grid{grid-template-columns:1fr;gap:11px;margin-bottom:11px}.hero{min-height:160px}.strike-card{grid-template-columns:auto 1fr;align-items:center}.strike-card .text-btn{grid-column:2}.topbar{margin-bottom:20px}.header-actions{gap:8px}.new-entry{padding-inline:10px}.month-control span{min-width:99px}.month-control button{width:29px}.record{flex-wrap:wrap}.record>div{min-width:26%}.hero-line{opacity:.65}.sidebar nav .nav-item{flex-direction:column;text-align:center}}
