:root{--bg: #f7f7f8;--panel: #ffffff;--text: #1a1a1a;--muted: #6b7280;--border: #e5e7eb;--accent: #2563eb;--green: #22c55e;--yellow: #eab308;--red: #ef4444;--paused: #9ca3af;--neutral: #e5e7eb}@media (prefers-color-scheme: dark){:root{--bg: #121212;--panel: #1c1c1e;--text: #f2f2f2;--muted: #9ca3af;--border: #2e2e32;--neutral: #2a2a2e}}*{box-sizing:border-box}html,body{margin:0;overflow-x:hidden;width:100%}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}#app{max-width:920px;margin:0 auto;padding:24px 16px 64px}header.app-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}header.app-header h1{margin:0 0 4px;font-size:22px}header.app-header p.goal-line{margin:0;color:var(--muted);font-size:13px;max-width:480px}.header-actions{display:flex;gap:8px;flex-wrap:wrap}button{font:inherit;border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:8px;padding:8px 12px;cursor:pointer}button:hover{border-color:var(--accent)}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.danger{color:var(--red);border-color:var(--red);background:transparent}.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:16px;margin-bottom:16px}.suggestions-banner{display:flex;flex-direction:column;gap:8px}.suggestion-item{font-size:13px;padding:8px 10px;border-radius:8px;background:var(--neutral)}.calendar-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.calendar-nav h2{margin:0;font-size:16px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-weekday{text-align:center;font-size:11px;color:var(--muted);padding-bottom:4px}.day-cell{aspect-ratio:1;border-radius:8px;border:1px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-size:13px;gap:2px;position:relative}.day-cell.empty{visibility:hidden;cursor:default}.day-cell.status-neutral{background:var(--neutral)}.day-cell.status-green{background:var(--green);color:#fff}.day-cell.status-yellow{background:var(--yellow);color:#1a1a1a}.day-cell.status-red{background:var(--red);color:#fff}.day-cell.status-paused{background:var(--paused);color:#fff}.day-cell.today{box-shadow:0 0 0 2px var(--accent)}.day-cell .cat-dot{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.7}.legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:var(--muted)}.legend-swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px;vertical-align:middle}.pause-ranges{margin-top:10px;display:flex;flex-direction:column;gap:6px}.pause-range-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;background:var(--neutral);border-radius:8px;padding:6px 10px}.weight-section{display:grid;grid-template-columns:1fr 1fr;gap:16px}.weight-stats{display:flex;flex-direction:column;gap:6px;font-size:13px}.weight-stats .big{font-size:24px;font-weight:600}form.inline-form{display:flex;flex-direction:column;gap:8px}form.inline-form label{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:4px}form.inline-form input,form.inline-form select,form.inline-form textarea{font:inherit;padding:8px;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text)}form.inline-form .row{display:flex;gap:8px}form.inline-form .row>label{flex:1}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{background:var(--panel);border-radius:12px;padding:20px;width:100%;max-width:440px;max-height:90vh;overflow-y:auto}.modal h3{margin-top:0}.modal-close{float:right}.section-title{font-size:13px;font-weight:600;margin:16px 0 8px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.list-item{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:6px 0;border-bottom:1px solid var(--border)}.list-item:last-child{border-bottom:none}.onboarding-wrap{max-width:480px;margin:40px auto}.onboarding-wrap h1{font-size:24px}.onboarding-wrap p.lead{color:var(--muted);margin-bottom:20px}@media (max-width: 560px){.weight-section{grid-template-columns:1fr}.day-cell{font-size:11px}.header-actions button{padding:6px 10px;font-size:13px}form.inline-form .row{flex-direction:column}}
