:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172e2a;background:#f4f8f5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:#176a50;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,.button{min-height:44px;border:0;border-radius:12px;background:#176a50;color:white;padding:10px 16px;font-weight:650;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}button:hover,.button:hover{background:#12533f;text-decoration:none}.secondary{background:#e1efe8;color:#155841}.secondary:hover{background:#cde5d8}.shell{max-width:1180px;margin:auto;padding:0 22px 56px}.topbar{min-height:74px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d7e5dc;gap:16px}.brand{font-weight:800;font-size:1.15rem;color:#153f32}.topbar nav{display:flex;align-items:center;gap:20px}.topbar form{margin:0}.text-button{background:none;color:#176a50;padding:4px;min-height:36px}.text-button:hover{background:#e1efe8}.danger{color:#a33a35}.heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:32px 0 22px}.heading h1,h1{margin:0 0 7px;font-size:clamp(1.6rem,4vw,2.3rem);line-height:1.15}.eyebrow{font-size:.79rem;text-transform:uppercase;letter-spacing:.1em;color:#337961;font-weight:750;margin:0 0 8px}.muted{color:#62766d;font-size:.92rem}.heading .muted{margin:0}.week-nav{display:flex;gap:6px;align-items:center}.week-nav a{padding:10px 12px;min-height:44px;display:inline-flex;align-items:center;border-radius:10px;background:#e1efe8;white-space:nowrap}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.metric,.panel,.form-card,.login-card{background:#fff;border:1px solid #dce9df;border-radius:20px;box-shadow:0 5px 22px #244d3510}.metric{padding:22px}.metric p{font-size:.9rem;color:#5d7067;margin:0 0 12px}.metric strong{display:block;font-size:clamp(1.45rem,3vw,2.15rem);line-height:1.1;overflow-wrap:anywhere}.metric small{display:block;color:#64776e;margin-top:13px;line-height:1.4}.panel{margin-top:18px;padding:24px}.section-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.section-head h2{margin:0 0 5px;font-size:1.24rem}.section-head p{margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap}.chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-top:24px}.chart-day{min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:.78rem}.chart-track{height:140px;width:100%;max-width:80px;border-radius:12px;background:#eff5f0;display:flex;align-items:flex-end;overflow:hidden}.chart-fill{width:100%;min-height:2px;background:linear-gradient(#6dc5a0,#278969);border-radius:10px 10px 0 0}.chart-day strong,.chart-day a{white-space:nowrap}.chart-day a{font-size:.75rem}.entry-list{list-style:none;margin:20px 0 0;padding:0}.entry-list li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-top:1px solid #e5eee7}.entry-list li>div:first-child{display:flex;flex-direction:column;gap:4px}.entry-tail{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.entry-tail form{margin:0}.empty{padding:24px;background:#f6faf6;border-radius:12px;color:#64776e}.form-page{max-width:650px;margin:34px auto}.back-link{display:inline-block;margin-bottom:20px}.form-page>.muted{line-height:1.5;margin-bottom:20px}.form-card{display:flex;flex-direction:column;padding:24px;gap:8px}.form-card label,.login-card label{font-weight:650;margin-top:10px}.form-card input,.form-card select,.login-card input{width:100%;min-height:46px;border:1px solid #bdcfc3;border-radius:10px;padding:10px 12px;color:#172e2a;background:white}.form-card input:focus,.form-card select:focus,.login-card input:focus{outline:3px solid #abdcc4}.form-actions{display:flex;align-items:center;gap:18px;margin-top:18px}.error{padding:14px 16px;background:#fff0ed;color:#943d35;border-radius:12px;margin:18px 0}.success{padding:14px 16px;background:#e9f5ec;color:#206845;border-radius:12px}.login-card{max-width:420px;margin:12vh auto;padding:30px}.login-card form{display:flex;flex-direction:column;gap:10px}.login-card button{margin-top:16px}
@media(max-width:760px){.shell{padding:0 14px 38px}.topbar{min-height:64px}.topbar nav{gap:10px}.heading{align-items:start;flex-direction:column;margin-top:24px}.metrics{grid-template-columns:1fr}.metric{padding:19px}.panel{padding:18px}.section-head{align-items:start;flex-direction:column}.actions{width:100%}.actions .button{flex:1}.chart{gap:3px}.chart-track{height:110px}.chart-day{font-size:.68rem;gap:5px}.chart-day a{font-size:.59rem;writing-mode:vertical-rl;transform:rotate(180deg);min-height:66px}.chart-day strong{font-size:.65rem}.entry-list li{align-items:start;flex-direction:column}.entry-tail{width:100%;justify-content:space-between;gap:8px}.form-page{margin-top:22px}.form-card{padding:18px}.login-card{margin:7vh 14px;padding:22px}}
.form-section{display:flex;flex-direction:column;border:1px solid #dce9df;border-radius:12px;padding:12px 14px;margin:12px 0;gap:8px}.form-section legend{font-weight:750;padding:0 5px}.form-section .muted{margin:0}
.form-section[hidden]{display:none}
.measurement-chart{display:block;width:100%;height:260px;margin-top:16px;background:#f6faf6;border-radius:12px;overflow:visible}.measurement-axis{stroke:#b7c9bc;stroke-width:.3}.measurement-point{fill:#176a50;stroke:white;stroke-width:.35}
.warning-inline{color:#943d35;font-size:.86rem}.draft-preview{margin:16px 0}.draft-preview h2,.draft-preview p{margin:0 0 8px}.draft-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.draft-actions form{margin:0}
.label-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.label-media figure{margin:0;background:#fff;border:1px solid #dce9df;border-radius:16px;overflow:hidden}.label-media img{display:block;width:100%;max-height:360px;object-fit:contain;background:#eef4ef}.label-media figcaption{padding:10px 12px;color:#62766d;font-size:.86rem}.ai-badge{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;background:#e0f0e8;color:#176a50;font-size:.72rem;font-weight:750;vertical-align:middle}.label-review{margin-top:18px}.draft-cancel{margin-top:18px}.draft-cancel button{width:100%}
@media(max-width:760px){.topbar{align-items:start;flex-wrap:wrap;padding:12px 0}.topbar nav{flex-wrap:wrap;gap:8px 14px}.measurement-chart{height:190px}.label-media{grid-template-columns:1fr}}
