:root{--paper:#f6f1e7;--card:#fffdf8;--ink:#1f2a24;--muted:#6e756f;--line:#e4dccb;--green:#2f5d46;--green-soft:#dde8df;--amber:#d98e4a;--amber-soft:#f7e6d3;--red:#b5543a;--radius:16px;--shadow:0 1px 2px #1f2a240f, 0 6px 20px #1f2a240f;--nav-h:68px;--head:"Fraunces", Georgia, serif;--body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{background:var(--paper);color:var(--ink);font-family:var(--body);-webkit-font-smoothing:antialiased;margin:0;font-size:16px}body{-webkit-tap-highlight-color:transparent;min-height:100dvh}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--green)}h1,h2,h3{font-family:var(--head);letter-spacing:-.01em;margin:0;font-weight:650}h1{font-size:1.75rem}h2{font-size:1.25rem}h3{font-size:1.05rem}.shell{min-height:100dvh;display:flex}.main{min-width:0;padding:calc(env(safe-area-inset-top) + 16px) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);flex:1;width:100%;max-width:860px;margin:0 auto}.page-head{align-items:center;gap:12px;margin-bottom:16px;display:flex}.page-head h1{flex:1}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:.78rem;font-weight:600}.nav{height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:20;background:#fffdf8f0;display:flex;position:fixed;bottom:0;left:0;right:0}.nav a{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:.72rem;font-weight:600;text-decoration:none;display:flex}.nav a.active{color:var(--green)}.nav a.active svg{background:var(--green-soft);border-radius:999px;width:52px;height:28px;padding:3px 14px}.nav .brand{display:none}@media (width>=900px){.nav{border-top:0;border-right:1px solid var(--line);flex-direction:column;justify-content:flex-start;gap:4px;width:220px;height:100dvh;padding:24px 12px;position:sticky;top:0}.nav a{border-radius:12px;flex-direction:row;flex:0;justify-content:flex-start;gap:12px;padding:10px 12px;font-size:.95rem}.nav a.active{background:var(--green-soft)}.nav a.active svg{background:0 0;width:22px;height:22px;padding:0}.nav .brand{font-family:var(--head);align-items:center;gap:10px;padding:0 12px 20px;font-size:1.2rem;font-weight:650;display:flex}.nav .brand img{width:34px;height:34px}.nav .spacer{flex:1}.main{padding-bottom:40px}}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.stack{flex-direction:column;gap:12px;display:flex}.row{align-items:center;gap:10px;display:flex}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:.85rem}.section{margin-top:24px}.section>h2{margin-bottom:10px}.empty{text-align:center;color:var(--muted);padding:32px 16px}.truncate{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.btn{border:1px solid var(--line);background:var(--card);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;font-weight:600;display:inline-flex}.btn:hover{border-color:#cfc5b0}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.primary:hover{background:#264d3a}.btn.danger{color:var(--red)}.btn.ghost{background:0 0;border-color:#0000}.btn.small{min-height:34px;padding:6px 12px;font-size:.9rem}.btn:disabled{opacity:.55;cursor:default}.icon-btn{cursor:pointer;width:40px;height:40px;color:var(--ink);background:0 0;border:0;border-radius:12px;justify-content:center;align-items:center;display:inline-flex}.icon-btn:hover{background:#1f2a240f}.fab{right:20px;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px);background:var(--amber);color:#fff;cursor:pointer;z-index:15;border:0;border-radius:18px;justify-content:center;align-items:center;width:58px;height:58px;display:flex;position:fixed;box-shadow:0 8px 24px #d98e4a73}@media (width>=900px){.fab{bottom:32px;right:32px}}label.field{color:var(--muted);flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;display:flex}.input,select.input,textarea.input{border:1px solid var(--line);width:100%;min-height:44px;color:var(--ink);background:#fff;border-radius:12px;padding:11px 12px;font-size:16px;font-weight:400}.input:focus{outline:2px solid var(--green-soft);border-color:var(--green)}textarea.input{resize:vertical;min-height:96px}.check{color:var(--ink);align-items:center;gap:8px;font-size:.95rem;font-weight:500;display:flex}.tabs{scrollbar-width:none;gap:6px;margin-bottom:14px;padding-bottom:4px;display:flex;overflow-x:auto}.tab{border:1px solid var(--line);background:var(--card);white-space:nowrap;cursor:pointer;border-radius:999px;padding:8px 14px;font-size:.92rem;font-weight:600}.tab.active{background:var(--ink);color:var(--paper);border-color:var(--ink)}.chip{border:1px solid var(--line);background:var(--card);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:4px 10px 4px 6px;font-size:.85rem;font-weight:600;display:inline-flex}.chip.off{opacity:.45}.dot{border-radius:999px;flex:none;width:12px;height:12px;display:inline-block}.avatar{color:#fff;border-radius:999px;flex:none;justify-content:center;align-items:center;width:26px;height:26px;font-size:.75rem;font-weight:700;display:inline-flex}.badge{background:var(--amber-soft);color:#8a5320;border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:700}.list{margin:0;padding:0;list-style:none}.list>li{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:12px 4px;display:flex}.list>li:last-child{border-bottom:0}.checkbox{cursor:pointer;color:#fff;background:#fff;border:2px solid #b9b09d;border-radius:8px;flex:none;justify-content:center;align-items:center;width:26px;height:26px;padding:0;display:inline-flex}.checkbox.on{background:var(--green);border-color:var(--green)}.done-text{color:var(--muted);text-decoration:line-through}.progress{background:#ece5d6;border-radius:999px;height:8px;overflow:hidden}.progress>span{border-radius:999px;height:100%;display:block}.backdrop{z-index:40;background:#1f2a2459;justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--paper);width:100%;max-width:560px;max-height:92dvh;padding:20px 18px calc(20px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;animation:.2s up;overflow-y:auto}.sheet .sheet-head{align-items:center;margin-bottom:14px;display:flex}.sheet .sheet-head h2{flex:1}@media (width>=640px){.backdrop{align-items:center}.sheet{border-radius:22px}}@keyframes fade{0%{opacity:0}}@keyframes up{0%{opacity:.6;transform:translateY(24px)}}.toast{left:50%;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 90px);background:var(--ink);color:var(--paper);z-index:60;max-width:90vw;box-shadow:var(--shadow);border-radius:12px;padding:10px 16px;font-size:.92rem;position:fixed;transform:translate(-50%)}.toast.error{background:var(--red)}.cal-head{text-align:center;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;grid-template-columns:repeat(7,1fr);padding-bottom:6px;font-size:.72rem;font-weight:700;display:grid}.cal-grid{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.cal-day{aspect-ratio:1/1.05;background:var(--card);cursor:pointer;text-align:center;border:1px solid #0000;border-radius:12px;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:5px 4px;display:flex}.cal-day.other{color:#b3ab9b;background:0 0}.cal-day.today .num{background:var(--amber);color:#fff}.cal-day.selected{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.cal-day .num{border-radius:999px;justify-content:center;align-items:center;width:26px;height:26px;font-size:.9rem;font-weight:600;display:flex}.cal-day .dots{flex-wrap:wrap;justify-content:center;gap:3px;display:flex}.cal-day .dots .dot{width:6px;height:6px}.cal-day .pills{flex-direction:column;gap:2px;width:100%;display:none}@media (width>=700px){.cal-day{aspect-ratio:auto;align-items:stretch;min-height:96px}.cal-day .num{align-self:flex-start}.cal-day .dots{display:none}.cal-day .pills{display:flex}.cal-day .pill{text-align:left;white-space:nowrap;text-overflow:ellipsis;color:#fff;border-radius:5px;padding:1px 5px;font-size:.72rem;overflow:hidden}}.event-item{background:var(--card);border:1px solid var(--line);cursor:pointer;text-align:left;border-radius:14px;gap:12px;width:100%;padding:12px;display:flex}.event-item .bar{border-radius:4px;flex:none;width:4px}.event-item .time{width:56px;color:var(--muted);flex:none;font-size:.85rem;font-weight:600}.week-day{border-bottom:1px solid var(--line);gap:14px;padding:12px 0;display:flex}.week-day:last-child{border-bottom:0}.week-day .date{text-align:center;flex:none;width:52px}.week-day .date .d{font-family:var(--head);font-size:1.5rem;line-height:1}.week-day.today .date{color:var(--amber)}.meal{background:var(--green-soft);border-radius:10px;align-items:center;gap:8px;margin-bottom:6px;padding:8px 10px;font-weight:500;display:flex}.meal .slot{text-transform:uppercase;letter-spacing:.06em;color:var(--green);width:52px;font-size:.7rem;font-weight:700}.auth{justify-content:center;align-items:center;min-height:100dvh;padding:24px;display:flex}.auth .card{width:100%;max-width:400px;padding:28px 24px}.auth .logo{width:64px;height:64px;margin-bottom:14px}.stat{font-family:var(--head);font-size:2rem;line-height:1.1}.grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.color-row{flex-wrap:wrap;gap:8px;display:flex}.color-swatch{cursor:pointer;border:3px solid #0000;border-radius:999px;width:32px;height:32px;padding:0}.color-swatch.on{border-color:var(--ink)}.code{border:1px dashed var(--line);word-break:break-all;background:#fff;border-radius:10px;padding:8px 10px;font-family:ui-monospace,monospace;font-size:.85rem}.desktop-only{display:none!important}@media (width>=900px){.desktop-only{display:flex!important}.mobile-only{display:none!important}}.grid-2>*,input[type=datetime-local].input,input[type=date].input{min-width:0}@media (width<=520px){.grid-2.stack-sm{grid-template-columns:1fr}}
