:root{color-scheme:light dark;--bg: #f5f1e8;--surface: #fffdf8;--surface-2: #efe8da;--text: #2d2a24;--muted: #6d665a;--border: #ddd3c1;--accent: #4d6b3c;--accent-strong: #3c5530;--accent-text: #ffffff;--accent-soft: #e2ead8;--egg: #d9a441;--danger: #a63d2f;--warn: #a8701a;--ok: #4d6b3c;--radius: 14px;--shadow: 0 1px 2px rgb(45 42 36 / .06), 0 4px 14px rgb(45 42 36 / .05);--tap: 48px;--nav-h: 64px}@media (prefers-color-scheme: dark){:root{--bg: #1b1a17;--surface: #25231f;--surface-2: #2f2c27;--text: #ede6d8;--muted: #a69d8c;--border: #3d3933;--accent: #8db174;--accent-strong: #a5c78d;--accent-text: #15200f;--accent-soft: #2e3a26;--egg: #e3b55a;--danger: #e07a6a;--warn: #e0a94f;--ok: #8db174;--shadow: none}}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:1.6rem}h2{font-size:1.15rem}h3{font-size:1.05rem}p{margin:0}.muted{color:var(--muted)}.small{font-size:.875rem}.block{display:block}.center{text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.shell{min-height:100vh;min-height:100dvh}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-mark{display:inline-flex;width:34px;height:34px;flex:none}.brand-mark svg,.landing-mark svg{width:100%;height:100%;fill:var(--egg)}.brand-farm{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-app{font-size:.75rem;color:var(--muted)}.content{max-width:720px;margin:0 auto;padding:16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom))}.stack{display:flex;flex-direction:column;gap:14px}.row{display:flex;align-items:center;gap:8px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.row-end{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.row-stretch{display:flex;gap:8px;align-items:flex-end}.grow{flex:1;min-width:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}.card.row-between{flex-direction:row}.empty,.centered{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:48px 16px}.centered{min-height:60vh;justify-content:center;max-width:420px;margin:0 auto}.tabs{position:fixed;left:0;right:0;bottom:0;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border)}.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);text-decoration:none;font-size:.75rem;font-weight:550}.tab-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tab-active{color:var(--accent)}.tab:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}@media (min-width: 760px){.tabs{position:sticky;top:57px;bottom:auto;height:auto;padding:0;display:flex;justify-content:center;gap:4px;border-top:0;border-bottom:1px solid var(--border)}.tab{flex-direction:row;gap:8px;padding:12px 18px;font-size:.95rem;border-bottom:3px solid transparent}.tab-active{border-bottom-color:var(--accent)}.content{padding-bottom:48px}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}.btn:hover:not(:disabled){filter:brightness(.97)}.btn:disabled{opacity:.5;cursor:default}.btn:focus-visible,.seg:focus-visible,.stepper-btn:focus-visible,.list-row:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-danger-outline{background:transparent;border-color:var(--danger);color:var(--danger)}.btn-link{background:none;border:0;color:var(--accent);padding:0 4px;min-height:36px;align-self:flex-start}.btn-sm{min-height:36px;padding:0 12px;font-size:.9rem}.btn-lg{min-height:var(--tap);padding:0 22px;font-size:1.05rem}.btn-block{width:100%}.btn-icon{width:40px;height:40px;border-radius:50%;border:0;background:var(--surface-2);color:var(--text);font-size:1.4rem;cursor:pointer}.field{display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0}.field>span,.field>legend{font-size:.875rem;font-weight:600;color:var(--muted);padding:0}.field-inline select{min-width:160px}input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px;min-height:44px;width:100%}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}.date-input{width:auto;min-height:36px;padding:4px 8px}.segmented{display:flex;gap:6px;flex-wrap:wrap}.seg{min-height:40px;padding:0 14px;border-radius:999px;font:inherit;font-weight:550;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}.seg-active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-strong)}.stepper{display:grid;grid-template-columns:72px 1fr 72px;gap:10px;align-items:center}.stepper-btn{height:72px;border-radius:16px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:2rem;font-weight:600;cursor:pointer;touch-action:manipulation}.stepper-btn:active:not(:disabled){background:var(--accent-soft)}.stepper-btn:disabled{opacity:.4}.stepper-input{height:72px;text-align:center;font-size:2.25rem;font-weight:700;font-variant-numeric:tabular-nums;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.stepper-input::-webkit-outer-spin-button,.stepper-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.entry{display:flex;flex-direction:column;gap:10px}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}.tile{background:var(--surface-2);border-radius:12px;padding:10px;text-align:center}.tile dt{font-size:.75rem;color:var(--muted);font-weight:600}.tile dd{margin:2px 0 0;font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums}.h-day{font-size:1.3rem}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.list li+li{border-top:1px solid var(--border)}.list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:var(--tap);padding:8px 4px;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}.list-row.static{cursor:default}.count{font-weight:700;font-size:1.15rem;font-variant-numeric:tabular-nums}.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0}.kv dt{color:var(--muted);font-size:.875rem}.kv dd{margin:0;overflow-wrap:anywhere}.chart{margin:0}.chart svg{width:100%;height:auto;display:block}.chart-bar{fill:var(--accent);opacity:.75}.chart-bar-today{fill:var(--egg);opacity:1}.chart-axis{stroke:var(--border);stroke-width:1}.chart-grid{stroke:var(--border);stroke-width:1;stroke-dasharray:3 3}.chart-label{fill:var(--muted);font-size:9px}.badge{display:inline-flex;align-items:center;gap:6px;flex:none;font-size:.8rem;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--surface-2)}.badge-dot{width:8px;height:8px;border-radius:50%;background:currentColor}.badge-ok{color:var(--ok)}.badge-busy{color:var(--muted)}.badge-warn{color:var(--warn)}.badge-error{color:var(--danger)}.alert{padding:10px 12px;border-radius:10px;font-size:.9rem}.alert-error{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}.alert-ok{background:var(--accent-soft);color:var(--accent-strong)}.spinner{width:32px;height:32px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--accent);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.spinner{animation-duration:3s}}.landing{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px}.landing-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:28px 22px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px;text-align:center}.landing-card .field{text-align:left}.landing-card .btn-link{align-self:center}.landing-mark{width:56px;height:56px;margin:0 auto}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#00000073;display:flex;align-items:flex-end;justify-content:center}.modal{width:100%;max-width:520px;max-height:92vh;overflow:auto;background:var(--surface);border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px}@media (min-width: 760px){.modal-backdrop{align-items:center}.modal{border-radius:20px}}
