:root{--bg:#f6f3ea;--surface:#fff;--surface-2:#efebdf;--border:#e0dbcc;--text:#22301e;--muted:#6a7363;--leaf:#2e6b45;--leaf-strong:#245638;--leaf-soft:#e1eedb;--sprout:#a9d18e;--soil:#7a5a3a;--soil-soft:#f1e6d6;--sun:#e8b44a;--sun-soft:#fbf0d4;--berry:#c2463a;--berry-soft:#f8e1dd;--sky:#3f7fa6;--sky-soft:#deedf5;--on-leaf:#fff;--sun-text:#7a5512;--sky-text:#1f4f6e;--toast-bg:#22301e;--toast-action:#a9d18e;--backdrop:#22301e59;--fab-shadow:0 6px 18px #2e6b4559;--radius:18px;--radius-sm:12px;--tap:52px;--nav-h:72px;--shadow:0 1px 2px #22301e0f, 0 4px 14px #22301e0f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:17px;line-height:1.4}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#121813;--surface:#1b231c;--surface-2:#263027;--border:#354236;--text:#e4ebdd;--muted:#9ba895;--leaf:#5fae7a;--leaf-strong:#9fd8ae;--leaf-soft:#1f3727;--sprout:#4f8f60;--on-leaf:#0c1a10;--soil:#cfa77d;--soil-soft:#2f261a;--sun:#e0b04f;--sun-soft:#362d17;--sun-text:#f0cf86;--berry:#ec8174;--berry-soft:#3b201d;--sky:#74b4da;--sky-soft:#172c39;--sky-text:#a9d3ec;--toast-bg:#2f3b30;--backdrop:#0000008c;--fab-shadow:0 6px 18px #00000073;--shadow:0 1px 2px #00000059, 0 4px 14px #00000040;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#121813;--surface:#1b231c;--surface-2:#263027;--border:#354236;--text:#e4ebdd;--muted:#9ba895;--leaf:#5fae7a;--leaf-strong:#9fd8ae;--leaf-soft:#1f3727;--sprout:#4f8f60;--on-leaf:#0c1a10;--soil:#cfa77d;--soil-soft:#2f261a;--sun:#e0b04f;--sun-soft:#362d17;--sun-text:#f0cf86;--berry:#ec8174;--berry-soft:#3b201d;--sky:#74b4da;--sky-soft:#172c39;--sky-text:#a9d3ec;--toast-bg:#2f3b30;--backdrop:#0000008c;--fab-shadow:0 6px 18px #00000073;--shadow:0 1px 2px #00000059, 0 4px 14px #00000040;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;margin:0}body{overscroll-behavior-y:none}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:1.6rem;font-weight:750}h2{font-size:1.15rem;font-weight:700}h3{font-size:1rem;font-weight:650}p{margin:0}.app{max-width:640px;min-height:100dvh;margin:0 auto}.page{padding:calc(env(safe-area-inset-top) + 16px) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 96px);flex-direction:column;gap:16px;display:flex}.page-head{min-height:var(--tap);align-items:center;gap:8px;display:flex}.page-head h1{flex:1;min-width:0}.page-head .sub{color:var(--muted);font-size:.95rem}.stack{flex-direction:column;gap:12px;display:flex}.row{align-items:center;gap:10px;display:flex}.row.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:.88rem}.center{text-align:center}.bottom-nav{z-index:20;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:0;left:0;right:0}.bottom-nav ul{grid-template-columns:repeat(5,1fr);max-width:640px;margin:0 auto;padding:0;list-style:none;display:grid}.bottom-nav a{height:var(--nav-h);color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:.78rem;font-weight:600;display:flex}.bottom-nav a .pill{border-radius:16px;place-items:center;width:56px;height:32px;transition:background .15s;display:grid}.bottom-nav a.active{color:var(--leaf-strong)}.bottom-nav a.active .pill{background:var(--leaf-soft)}.fab{z-index:21;right:max(16px,50% - 304px);bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);background:var(--leaf);width:64px;height:64px;color:var(--on-leaf);box-shadow:var(--fab-shadow);cursor:pointer;border:0;border-radius:22px;place-items:center;display:grid;position:fixed}.fab:active{transform:scale(.96)}.btn{min-height:var(--tap);border-radius:var(--radius-sm);cursor:pointer;background:var(--leaf);color:var(--on-leaf);text-align:center;border:0;justify-content:center;align-items:center;gap:10px;padding:0 20px;font-size:1rem;font-weight:650;display:inline-flex}.btn:active{filter:brightness(.94)}.btn:disabled{opacity:.55;cursor:default}.icon-btn:disabled{opacity:.45;cursor:default}.btn.block{width:100%}.btn.secondary{background:var(--leaf-soft);color:var(--leaf-strong)}.btn.ghost{color:var(--leaf-strong);background:0 0}.btn.outline{background:var(--surface);color:var(--text);border:1.5px solid var(--border)}.btn.danger{background:var(--berry-soft);color:var(--berry)}.icon-btn{width:var(--tap);height:var(--tap);border-radius:var(--radius-sm);color:var(--text);cursor:pointer;background:0 0;border:0;flex:none;place-items:center;display:grid}.icon-btn:active{background:var(--surface-2)}.icon-btn.filled{background:var(--surface);box-shadow:var(--shadow)}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card.flat{box-shadow:none;border:1px solid var(--border)}.list{flex-direction:column;gap:10px;display:flex}.item{background:var(--surface);border-radius:var(--radius);min-height:76px;box-shadow:var(--shadow);align-items:center;gap:14px;padding:12px;display:flex}.item:active{background:var(--surface-2)}.item .title{font-weight:650}.item .meta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;overflow:hidden}.thumb{background:var(--leaf-soft);width:56px;height:56px;color:var(--leaf);border-radius:14px;flex:none;place-items:center;display:grid;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.thumb img.art{object-fit:contain;padding:4px}.empty-art{object-fit:contain;width:180px;height:180px}.crop-art{object-fit:contain;align-self:center;place-items:center;width:128px;height:128px;display:grid}.emoji{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;line-height:1}.welcome-art{aspect-ratio:4/3;object-fit:contain;width:min(280px,70vw)}.thumb.soil{background:var(--soil-soft);color:var(--soil)}.chip{background:var(--surface-2);color:var(--text);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.85rem;font-weight:600;display:inline-flex}.chip.leaf{background:var(--leaf-soft);color:var(--leaf-strong)}.chip.sun{background:var(--sun-soft);color:var(--sun-text)}.chip.soil{background:var(--soil-soft);color:var(--soil)}.chip.sky{background:var(--sky-soft);color:var(--sky)}.scroller{scrollbar-width:none;gap:8px;margin:0 -16px;padding:2px 16px;display:flex;overflow-x:auto}.scroller::-webkit-scrollbar{display:none}.filter{border:1.5px solid var(--border);background:var(--surface);white-space:nowrap;cursor:pointer;border-radius:999px;align-items:center;gap:6px;min-height:44px;padding:0 16px;font-weight:600;display:inline-flex}.filter.on{background:var(--leaf);border-color:var(--leaf);color:var(--on-leaf)}.segmented{background:var(--surface-2);border-radius:16px;grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segmented button{cursor:pointer;min-height:48px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-width:0;padding:0 4px;font-weight:650;display:inline-flex;overflow:hidden}.segmented button.on{background:var(--surface);color:var(--leaf-strong);box-shadow:var(--shadow)}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:var(--muted);font-size:.92rem;font-weight:600}.input,.select,.textarea{width:100%;min-height:var(--tap);border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--surface);outline:none;padding:12px 14px;font-size:1.05rem}.textarea{resize:vertical;min-height:110px}.input:focus,.select:focus,.textarea:focus{border-color:var(--leaf);box-shadow:0 0 0 3px var(--leaf-soft)}.grid-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;display:grid}.grid-2>*{min-width:0}.input[type=date]{appearance:none;min-width:0}.check{min-height:var(--tap);cursor:pointer;align-items:center;gap:12px;font-weight:600;display:flex}.check input{width:26px;height:26px;accent-color:var(--leaf)}.error{background:var(--berry-soft);color:var(--berry);border-radius:var(--radius-sm);padding:12px 14px;font-weight:600}.sheet-backdrop{z-index:40;background:var(--backdrop);justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;max-width:640px;padding:10px 16px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;flex-direction:column;gap:10px;animation:.2s ease-out up;display:flex}.sheet .grabber{background:var(--border);border-radius:3px;width:44px;height:5px;margin:0 auto 6px}.sheet-action{border-radius:var(--radius);background:var(--surface);text-align:left;cursor:pointer;border:0;align-items:center;gap:14px;width:100%;min-height:68px;padding:0 16px;font-weight:650;display:flex}.sheet-action .ico{background:var(--leaf-soft);width:44px;height:44px;color:var(--leaf);border-radius:14px;flex:none;place-items:center;display:grid}.sheet-action:disabled{opacity:.5}@keyframes up{0%{opacity:0;transform:translateY(40px)}}@keyframes fade{0%{opacity:0}}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:32px 16px;display:flex}.empty .ico{background:var(--leaf-soft);width:72px;height:72px;color:var(--leaf);border-radius:24px;place-items:center;display:grid}.hero{border-radius:var(--radius);color:#fff;background-color:var(--leaf);background-position:100%;background-size:cover;justify-content:flex-end;min-height:140px;padding:18px}.hero .muted{color:#fffc}.stats{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.stat{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);text-align:center;padding:12px}.stat b{color:var(--leaf-strong);font-size:1.5rem;display:block}.stat span{color:var(--muted);font-size:.82rem}.kv{grid-template-columns:auto 1fr;align-items:center;gap:10px 16px;display:grid}.kv dt{color:var(--muted);font-size:.92rem}.kv dd{text-align:right;margin:0;font-weight:600}.photos{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.photos .ph{aspect-ratio:1;background:var(--surface-2);cursor:pointer;border:0;border-radius:14px;padding:0;position:relative;overflow:hidden}.photos img{object-fit:cover;width:100%;height:100%;display:block}.lightbox{z-index:50;background:#000000eb;flex-direction:column;display:flex;position:fixed;inset:0}.lightbox img{object-fit:contain;flex:1;width:100%;min-height:0}.lightbox .bar{padding:calc(env(safe-area-inset-top) + 8px) 8px 8px;justify-content:space-between;display:flex}.lightbox .icon-btn{color:#fff}.stages{scrollbar-width:none;gap:6px;margin:0 -16px;padding:4px 16px;display:flex;position:relative;overflow-x:auto}.stages::-webkit-scrollbar{display:none}.stage{border:1.5px solid var(--border);background:var(--surface);cursor:pointer;min-height:48px;color:var(--muted);border-radius:14px;flex:none;padding:0 14px;font-size:.9rem;font-weight:600}.stage.done{background:var(--leaf-soft);border-color:var(--leaf-soft);color:var(--leaf-strong)}.stage.current{background:var(--leaf);border-color:var(--leaf);color:var(--on-leaf)}.stage{flex-direction:column;justify-content:center;align-items:center;gap:1px;display:inline-flex}.stage-date{opacity:.85;font-size:.74rem;font-weight:500}.timeline-month{color:var(--soil);text-transform:capitalize;margin-top:6px;font-weight:700}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.auth{flex-direction:column;justify-content:center;gap:20px;max-width:460px;min-height:100dvh;margin:0 auto;padding:24px 16px;display:flex}.logo{border-radius:26px;width:84px;height:84px}.task{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);align-items:stretch;min-height:72px;display:flex}.task-check{cursor:pointer;background:0 0;border:0;flex:none;place-items:center;width:64px;padding:0;display:grid}.task-check:before{content:"";border:2.5px solid var(--leaf);background:var(--surface);border-radius:50%;grid-area:1/1;width:34px;height:34px}.task-check svg{z-index:1;color:var(--on-leaf);grid-area:1/1}.task-check.done:before{background:var(--leaf)}.task-check.skipped:before{background:var(--muted);border-color:var(--muted)}.task-check:disabled{cursor:default}.task-check:not(:disabled):active:before{transform:scale(.9)}.task-body{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:12px;min-width:0;padding:10px 14px 10px 0;display:flex}.task-body .title{font-weight:650;display:block}.task-body .meta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.88rem;display:block;overflow:hidden}.task.closed .title{color:var(--muted);text-decoration:line-through}.task.projected{opacity:.55;box-shadow:none;border:1.5px dashed var(--border)}.task-icon{border-radius:12px;flex:none;place-items:center;width:40px;height:40px;display:grid}.task-icon.lg{border-radius:16px;width:52px;height:52px}.section-title{align-items:center;gap:8px;font-weight:700;display:flex}.section-title.overdue{color:var(--berry)}.toast{z-index:60;max-width:616px;left:12px;right:12px;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);background:var(--toast-bg);color:#fff;border-radius:16px;align-items:center;gap:8px;min-height:56px;margin:0 auto;padding:6px 6px 6px 16px;animation:.2s ease-out up;display:flex;position:fixed;box-shadow:0 8px 24px #00000040}.cal-nav{align-items:center;gap:4px;display:flex}.cal-nav h2{text-align:center;flex:1}.cal-grid{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.cal-wd{text-align:center;color:var(--muted);padding:4px 0;font-size:.8rem;font-weight:700}.cal-day{aspect-ratio:1/1.05;background:var(--surface);cursor:pointer;min-height:44px;color:var(--text);border:0;border-radius:12px;flex-direction:column;justify-content:flex-start;align-items:center;gap:4px;padding:6px 2px 4px;font-weight:650;display:flex}.cal-day.out{color:var(--muted);opacity:.6;background:0 0}.cal-day.today{box-shadow:inset 0 0 0 2px var(--leaf)}.cal-day.sel{background:var(--leaf);color:var(--on-leaf)}.cal-dots{flex-wrap:wrap;justify-content:center;gap:3px;max-width:34px;display:flex}.cal-dots i{border-radius:50%;width:7px;height:7px;display:block}.cal-day.sel .cal-dots i{outline:1.5px solid var(--on-leaf)}.cal-overdue{color:var(--berry);font-size:.7rem;font-weight:800;line-height:1}.cal-day.sel .cal-overdue{color:var(--on-leaf)}.weather{grid-template-columns:auto 1fr;align-items:center;gap:4px 14px;display:grid}.weather .now{font-size:2.2rem;font-weight:750;line-height:1}.forecast{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.forecast>div{background:var(--surface-2);text-align:center;border-radius:12px;padding:8px;font-size:.88rem}.alert{border-radius:var(--radius);align-items:flex-start;gap:12px;padding:14px;font-weight:600;display:flex}.alert.frost{background:var(--sky-soft);color:var(--sky-text)}.alert.rain{background:var(--surface-2)}.bar{background:var(--surface-2);border-radius:4px;height:8px;overflow:hidden}.bar i{border-radius:4px;height:100%;display:block}.md p{margin:0 0 8px}.md p:last-child{margin-bottom:0}.md-list{margin:0 0 8px;padding-left:20px}.md-list li{margin-bottom:4px}.chat{flex-direction:column;gap:10px;display:flex}.bubble{border-radius:18px;max-width:88%;padding:10px 14px;line-height:1.45}.bubble.user{background:var(--leaf);color:var(--on-leaf);border-bottom-right-radius:6px;align-self:flex-end}.bubble.assistant{background:var(--surface);box-shadow:var(--shadow);border-bottom-left-radius:6px;align-self:flex-start}.bubble img{object-fit:cover;border-radius:12px;width:100%;max-height:240px;margin-bottom:6px;display:block}.composer{z-index:22;max-width:640px;left:0;right:0;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--border);flex-direction:column;gap:4px;margin:0 auto;padding:8px 12px;display:flex;position:fixed}.card.soon{background:var(--leaf-soft);box-shadow:none;align-items:flex-start;gap:14px;display:flex}.soon-ico{background:var(--surface);width:48px;height:48px;color:var(--leaf-strong);border-radius:14px;flex:none;place-items:center;display:grid}.plan-wrap{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);height:62vh;min-height:320px;position:relative;overflow:hidden}.plan-wrap.tall{height:calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom) - 330px);min-height:360px}.plan-canvas{touch-action:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0}.plan-canvas svg{display:block}.plan-zoom{flex-direction:column;gap:8px;display:flex;position:absolute;top:10px;right:10px}.plan-scale{color:var(--muted);pointer-events:none;align-items:center;gap:6px;font-size:13px;font-weight:600;display:flex;position:absolute;bottom:10px;left:12px}.plan-scale i{border:2px solid var(--muted);border-top:0;height:8px;display:block}.plan-tools{flex-wrap:wrap;gap:8px;display:flex}.plan-tools .btn{white-space:nowrap;flex:auto;padding:0 12px}.danger-text{color:var(--berry)}.offline-bar{z-index:25;padding:calc(env(safe-area-inset-top) + 8px) 16px 8px;background:var(--sun-soft);color:var(--sun-text);align-items:center;gap:10px;font-size:.9rem;font-weight:600;display:flex;position:sticky;top:0}.offline-bar .btn{min-height:40px;padding:0 12px;font-size:.9rem}.offline-bar+.page{padding-top:12px}.plan-badge{background:var(--surface);box-shadow:var(--shadow);pointer-events:none;border-radius:10px;padding:6px 10px;font-size:.9rem;font-weight:650;position:absolute;top:10px;left:12px}.plan-hint{background:var(--leaf);color:var(--on-leaf);border-radius:12px;align-items:center;gap:8px;padding:8px 12px;font-size:.92rem;font-weight:650;display:flex;position:absolute;top:10px;left:10px;right:64px}.plan-hint button{min-height:36px;color:inherit;background:#ffffff38;border:0;border-radius:10px;margin-left:auto;padding:0 10px;font-weight:650}.num-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.num-row .field>span{font-size:.82rem}.num-row .input{text-align:center;padding:10px}.chip.planned{border:1.5px dashed var(--leaf);color:var(--leaf-strong);background:0 0}.cell-pick{border-radius:var(--radius-sm);background:var(--soil-soft);gap:4px;padding:6px;display:grid}.cell-pick button{border:1.5px dashed var(--soil);min-height:40px;color:var(--soil);cursor:pointer;background:0 0;border-radius:8px;font-size:.82rem;font-weight:600}.cell-pick button.on{background:var(--leaf);border:1.5px solid var(--leaf);color:var(--on-leaf)}.crumbs{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;font-weight:650;display:flex}.crumbs a{color:var(--leaf-strong);align-items:center;min-height:44px;display:inline-flex}.pick-bar{bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);z-index:15;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-wrap:wrap;align-items:center;gap:8px;padding:8px;display:flex;position:sticky}.no-fab .fab{display:none}
