@charset "UTF-8";
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#243b34;background:#f5f6f0;font-synthesis:none;--green:#1b6154;--muted:#7b8981;--line:#e7ebe2;--paper:#fffef9;--lime:#d8ebaf}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7cad69;outline-offset:4px}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.4}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:16px}p{line-height:1.7}small{font-size:12px}.muted{color:var(--muted)}.eyebrow{display:block;font-size:11px;letter-spacing:2px;font-weight:700;color:var(--muted);margin-bottom:8px}.loading{padding:100px 24px;text-align:center}.shell{max-width:1080px;margin:auto;padding:30px 36px max(28px,env(safe-area-inset-bottom))}.topbar,.brand,.row,.section-head,.card-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{justify-content:flex-start;gap:10px}.brand img{width:37px;height:37px}.brand strong{font-size:22px;letter-spacing:3px}.brand span{font-size:12px;letter-spacing:1px;color:var(--muted);border-left:1px solid #d8dfd3;padding-left:13px}.avatar{display:grid;place-items:center;background:#e6eddf;border:1px solid #d4dfcd;border-radius:50%;width:40px;height:40px;font-weight:600}.welcome{padding:36px 0 25px}.welcome p{font-size:13px;color:var(--muted);margin-top:8px}.pill{padding:6px 10px;border-radius:24px;background:#eaf0e2;color:#4a6653;font-size:11px;white-space:nowrap}.layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:22px;align-items:start}.stack{display:grid;gap:20px}.card{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:25px}.hero{position:relative;overflow:hidden;background:var(--green);color:white;border:0;min-height:260px}.hero:after{content:"";position:absolute;width:205px;height:205px;border:1px solid #ffffff13;border-radius:50%;right:-48px;top:-42px;box-shadow:0 0 0 35px #ffffff05,0 0 0 70px #ffffff04;pointer-events:none}.hero .eyebrow{color:#c4d9cb}.hero .pill{background:#ffffff15;color:#d9e7cf}.hero-number{display:flex;align-items:baseline;gap:10px;margin:16px 0 8px}.hero-number strong{font-size:76px;font-weight:500;line-height:1;letter-spacing:-4px;font-variant-numeric:tabular-nums}.hero-number span{font-size:13px;color:#ccded2}.hero-note{font-size:12px;color:#c2d7ca;margin-bottom:24px}.record-button{position:relative;z-index:1;width:100%;border-radius:14px;background:var(--lime);padding:17px;color:#214e3c;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px}.record-button svg{width:20px;height:20px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{padding:20px 22px;min-width:0}.metric .value{margin:10px 0 7px;white-space:nowrap}.metric strong{font-size:35px;font-weight:550;letter-spacing:-1px}.metric .value span{font-size:12px;color:var(--muted);padding-left:6px}.metric p,.metric small{font-size:11px;color:var(--muted)}.metric .eyebrow{font-size:12px;letter-spacing:0}.section-head{margin-bottom:22px}.section-head h2{display:flex;align-items:center;gap:8px}.section-head small{font-size:11px;color:var(--muted)}.segments{background:#f0f2eb;padding:3px;border-radius:10px;display:flex;gap:1px}.segments button{padding:7px 10px;font-size:11px;border-radius:7px;white-space:nowrap}.segments button.active{background:white;color:var(--green);box-shadow:0 1px 4px #243b3410;font-weight:600}.chart{width:100%;display:block;overflow:visible}.chart text{font-family:inherit;fill:#879388;font-size:10px}.chart .bar{fill:#7baa83}.chart .bar.peak{fill:#275f4b}.chart .grid{stroke:#e9ede4;stroke-dasharray:3 4}.chart-note{font-size:11px;color:var(--muted);margin-top:16px;display:flex;justify-content:space-between;gap:10px;line-height:1.6}.chart-note strong{color:#477055;font-weight:500}.chart-legend{display:inline-block;width:7px;height:7px;border-radius:2px;background:#7baa83;margin-right:6px}.history .section-head{margin-bottom:8px}.day{border-bottom:1px solid var(--line)}.day:last-of-type{border:0}.day summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 0;cursor:pointer;list-style:none}.day summary::-webkit-details-marker{display:none}.date-name{font-size:13px;font-weight:550}.date-name small{display:block;font-weight:400;color:var(--muted);margin-top:5px;font-size:10px}.day-total{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.day-total strong{font-size:21px;color:#3f6751;font-weight:500}.chevron{display:inline-block;transition:transform .15s;font-size:16px}.day[open] .chevron{transform:rotate(90deg)}.record-list{padding-bottom:12px}.record-item{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:9px 12px;margin-bottom:5px;background:#f5f7f0;border-radius:10px}.record-item time{font-variant-numeric:tabular-nums}.record-item span{color:var(--muted);font-size:11px}.delete{font-size:11px;color:#a16e5b;padding:8px}.empty{padding:26px 10px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.soft-card{background:#eaf0df;border:0}.soft-card p{font-size:12px;color:#647660;margin-top:10px}.soft-card h3{font-weight:500}.primary,.secondary,.danger{padding:13px 18px;border-radius:12px;font-size:14px;font-weight:600}.primary{background:var(--green);color:white}.secondary{background:#edf1e7;color:#3e624c}.danger{background:#f6e9e3;color:#99563f}.full{width:100%}.text-button{color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:10px}.back{margin-bottom:16px;padding:8px 0;color:#4c725a;font-size:13px}.code-box{background:#edf2e4;border-radius:16px;padding:20px;margin:18px 0}.code-box strong{display:block;font-family:ui-monospace,Consolas,monospace;letter-spacing:3px;font-size:23px;margin:6px 0}.code-box small{color:var(--muted)}.narrow{max-width:650px;margin:0 auto}.member{border-top:1px solid var(--line);padding:18px 0;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.member:first-of-type{border-top:0}.member .member-info{flex:1;min-width:120px}.member h3{font-size:14px}.member small{color:var(--muted);display:block;margin-top:6px;font-size:11px}.member button{font-size:12px;padding:10px 13px}.member-actions{display:flex;gap:5px}.form-row{display:flex;gap:10px;margin-top:18px}.form-row input{flex:1;min-width:0}input{width:100%;border:1px solid #dce3d5;background:#fffefa;border-radius:12px;padding:14px;color:#244834;outline:none}input:focus{border-color:#729e6f;box-shadow:0 0 0 3px #aac49525}label.field{display:block;font-size:12px;margin:18px 0;color:#5e7465}.field input{display:block;margin-top:8px}.check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.7;color:var(--muted);margin:22px 0}.check input{width:17px;height:17px;flex:none;accent-color:var(--green);margin:2px 0}.auth{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;max-width:1000px;margin:auto;align-items:center;padding:40px;gap:80px}.auth-story h1{font-size:50px;line-height:1.35;letter-spacing:-2px;margin:28px 0 20px}.auth-story p{color:#718371;font-size:14px}.auth-story .brand img{width:48px;height:48px}.auth-story .brand strong{font-size:26px}.auth .card{padding:32px}.auth-tabs{display:flex;margin:22px 0;gap:20px}.auth-tabs button{padding:7px 2px;color:var(--muted);border-bottom:2px solid transparent}.auth-tabs button.active{border-color:var(--green);color:var(--green);font-weight:600}.form-error{color:#a45c45;font-size:12px;line-height:1.7;margin:12px 0}.auth-footer{font-size:11px;color:var(--muted);text-align:center;margin-top:18px;line-height:1.8}.profile-item{border-top:1px solid var(--line);padding:18px 0}.profile-item p{font-size:12px;color:var(--muted);margin-top:6px}.profile-item strong{font-size:14px}#toast{position:fixed;z-index:100;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:90%;width:max-content;padding:13px 20px;background:#244c40;color:white;border-radius:13px;font-size:13px;box-shadow:0 8px 25px #0002;display:none}#toast.visible{display:block}dialog{border:1px solid var(--line);border-radius:22px;max-width:380px;width:calc(100% - 40px);padding:28px;color:#243b34;background:var(--paper)}dialog::backdrop{background:#1c34254d;backdrop-filter:blur(3px)}dialog p{font-size:13px;color:var(--muted);margin:14px 0 24px}.dialog-actions button{flex:1}.view-banner{padding:12px 16px;background:#eaf0df;border-radius:12px;font-size:12px;margin-bottom:20px;line-height:1.7}.error-card{padding:30px;text-align:center}.error-card p{margin-bottom:18px;font-size:14px}.footer-note{text-align:center;color:#8c9686;font-size:10px;letter-spacing:1px;margin:30px 0 0}
@media(max-width:700px){.shell{padding:20px 20px max(24px,env(safe-area-inset-bottom))}.topbar .brand span{display:none}.welcome{padding:26px 0 22px}h1{font-size:27px}.layout{grid-template-columns:1fr;gap:18px}.stack{gap:16px}.card{padding:22px;border-radius:22px}.hero{min-height:255px}.hero-number strong{font-size:72px}.metric{padding:18px}.metric strong{font-size:32px}.metrics{gap:12px}.section-head{gap:8px}.section-head h2{font-size:17px}.segments button{padding:7px 9px;font-size:10px}.auth{display:block;padding:38px 22px}.auth-story h1{font-size:34px;margin:22px 0 14px}.auth-story p{font-size:13px}.auth .card{margin-top:28px;padding:26px}.auth-story .brand img{width:38px;height:38px}.auth-story .brand strong{font-size:23px}.soft-card{display:none}.code-box strong{font-size:21px;letter-spacing:2px}.form-row{flex-wrap:wrap}.form-row .primary{white-space:nowrap} .welcome .row{align-items:flex-start}.chart-note{font-size:10px}.member-actions{margin-left:auto}}
.space-top{margin-top:18px}h1,h2,h3,.member-info{overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Single dashboard with the same top member selector pattern as Qingji. */
.topbar{margin-bottom:26px}.account-button{display:flex;align-items:center;gap:7px;padding:4px;font-size:12px;flex-shrink:0}.account-button .avatar{width:34px;height:34px}.members-panel{margin-bottom:20px;min-width:0}.members-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;margin-bottom:10px}.members-title strong{font-weight:600;white-space:nowrap}.members-title small{color:var(--muted);font-weight:400;margin-left:6px}.member-tools{display:flex;align-items:center;gap:6px}.member-tools button{font-size:12px;min-height:40px;color:var(--green);padding:6px}.request-badge{display:inline-block;border-radius:12px;margin-left:5px;padding:3px 6px;background:#f5e7ce;color:#86622b;font-size:10px}.member-strip{display:flex;gap:9px;overflow-x:auto;scrollbar-width:thin;padding:3px 2px 8px}.member-button{display:flex;align-items:center;gap:8px;flex-shrink:0;max-width:220px;border:1px solid #dce5d5;background:var(--paper);border-radius:30px;min-height:44px;padding:7px 14px 7px 8px;font-size:12px}.member-button .avatar{width:28px;height:28px;font-size:12px;flex-shrink:0}.member-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-button.active{background:var(--green);color:white;border-color:var(--green)}.member-button.active .avatar{background:#ffffff24;color:white;border-color:transparent}.welcome{padding:8px 0 22px}.view-banner{display:flex;align-items:center;justify-content:space-between;gap:10px}.view-banner button{flex-shrink:0}.management-dialog{max-width:580px;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.close-dialog{width:44px;height:44px;flex-shrink:0;font-size:27px;border-radius:50%;background:#edf1e7}.management-dialog .dialog-intro{margin:10px 0 16px;font-size:12px}.management-dialog .section-head{margin-bottom:8px}.management-dialog .profile-item p{margin:7px 0 0}.management-dialog .code-box{margin:18px 0 24px}.management-dialog .empty{padding:18px 4px}.management-dialog .member-actions{flex-wrap:wrap}.management-dialog #pin-widget{margin-top:12px}.management-dialog #logout{margin-top:12px}.management-dialog .form-row{margin-top:12px}
@media(max-width:420px){.shell{padding-left:16px;padding-right:16px}.topbar{margin-bottom:22px}.members-title{align-items:flex-start;font-size:12px}.member-tools{justify-content:flex-end;gap:0}.member-tools button{font-size:11px}.request-badge{display:block;margin:0}.management-dialog{padding:20px;width:calc(100% - 24px)}.view-banner{align-items:flex-start;font-size:11px}.view-banner button{font-size:11px;padding:4px}.metric .value span{font-size:10px}.section-head{flex-wrap:wrap}.form-row .primary{padding-left:12px;padding-right:12px}}
