:root{--bg:#faf6ef;--surface:#fff;--surface-2:#f3ece0;--text:#2a1d12;--muted:#76664f;--border:#e4d9c6;--accent:#b5651d;--accent-strong:#8a4a12;--accent-text:#fff;--brand:#7a3e0c;--danger:#b3261e;--success:#2e7d32;--shadow:0 1px 2px #3c281414, 0 2px 8px #3c28140f;--radius:14px;--nav-height:64px;color:var(--text);background:var(--bg);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45}@media (prefers-color-scheme:dark){:root{--bg:#17120d;--surface:#221a13;--surface-2:#2c2219;--text:#f3e9dc;--muted:#b3a18a;--border:#3b2e22;--accent:#e0943f;--accent-strong:#f0a95a;--accent-text:#1b130c;--danger:#ef6f66;--success:#74c27a;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}body{background:var(--bg);min-height:100dvh;margin:0}a{color:var(--accent-strong)}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3{margin:0;line-height:1.2}.app{min-height:100dvh;padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom))}.page-header{z-index:10;min-height:56px;padding:env(safe-area-inset-top) 8px 0;background:var(--brand);color:#fff6e0;align-items:center;gap:8px;display:flex;position:sticky;top:0}.page-header h1{text-overflow:ellipsis;white-space:nowrap;flex:1;padding-left:8px;font-size:1.15rem;overflow:hidden}.page-header .icon-button{color:inherit}.page-content{flex-direction:column;gap:16px;max-width:720px;margin:0 auto;padding:16px;display:flex}.bottom-nav{z-index:10;height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);display:flex;position:fixed;inset:auto 0 0}.bottom-nav a{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.75rem;text-decoration:none;display:flex}.bottom-nav a[aria-current=page]{color:var(--accent-strong);font-weight:600}.bottom-nav svg{width:24px;height:24px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card>h2{margin-bottom:12px;font-size:1rem}.muted{color:var(--muted)}.small{font-size:.85rem}.button{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-weight:600;text-decoration:none;display:inline-flex}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.button.danger{color:var(--danger)}.button:disabled{opacity:.5;cursor:default}.button-row{flex-wrap:wrap;gap:8px;display:flex}.icon-button{width:44px;height:44px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.icon-button svg{width:24px;height:24px}.banner{border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);align-items:center;gap:12px;margin:12px 16px 0;padding:12px 16px;display:flex}.banner p{flex:1;margin:0;font-size:.9rem}.empty{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;display:flex}.fab{right:16px;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);z-index:11;background:var(--accent);width:56px;height:56px;color:var(--accent-text);border-radius:18px;justify-content:center;align-items:center;display:flex;position:fixed;box-shadow:0 4px 12px #00000040}.fab svg{width:28px;height:28px}.input{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;min-height:44px;padding:8px 12px}.input:focus{outline:2px solid var(--accent);outline-offset:-1px}.list-toolbar{grid-template-columns:1fr auto;gap:8px;display:grid}.recipe-list{flex-direction:column;gap:12px;margin:0;padding:0 0 72px;list-style:none;display:flex}.recipe-card{color:inherit;align-items:center;gap:12px;text-decoration:none;display:flex}.recipe-card h2{font-size:1.05rem}.recipe-card p{margin:2px 0 0}.beer-swatch{color:var(--text);flex:none}.recipe-head{align-items:center;gap:12px;margin-bottom:12px;display:flex}.recipe-head p{margin:0}.stat-grid{grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 16px;display:grid}.stat-grid div{background:var(--surface-2);border-radius:10px;padding:8px 10px}.stat-grid dt{color:var(--muted);font-size:.75rem}.stat-grid dd{white-space:nowrap;margin:0;font-size:1.05rem;font-weight:700}.rows{margin:0;padding:0;list-style:none}.rows li{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.rows li:first-child{border-top:0;padding-top:0}.rows li>div:first-child{flex-direction:column;min-width:0;display:flex}.row-value{text-align:right;white-space:nowrap;flex-direction:column;align-items:flex-end;display:flex}.notes{white-space:pre-wrap;margin:0}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.form{flex-direction:column;gap:12px;display:flex}.form>h2,.form summary h2{margin:0;font-size:1rem}details.form summary{cursor:pointer;list-style-position:inside}details.form summary h2{display:inline}.field{flex-direction:column;gap:4px;min-width:0;display:flex}.field-label{color:var(--muted);font-size:.8rem}.field-control{align-items:center;display:flex;position:relative}.field-control .input{padding-right:44px}.field-unit{color:var(--muted);pointer-events:none;font-size:.8rem;position:absolute;right:10px}.input[aria-invalid=true]{border-color:var(--danger);outline-color:var(--danger)}textarea.input{resize:vertical}.field-grid{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px;display:grid}.item-card{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;flex-direction:column;gap:10px;min-width:0;margin:0;padding:12px;display:flex}.item-card-head{align-items:center;gap:8px;margin:-4px -8px -4px 0;display:flex}.item-card-head strong{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.add-button{align-self:flex-start}.editor-summary{top:calc(56px + env(safe-area-inset-top));z-index:5;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:10px;margin:-16px -16px 0;padding:8px 16px;font-size:.9rem;font-weight:600;display:flex;position:sticky}.editor-actions{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--border);justify-content:flex-end;gap:8px;margin:0 -16px;padding:12px 16px;display:flex;position:sticky}.error-box{border-color:var(--danger);color:var(--danger)}.error-box ul{margin:8px 0 0;padding-left:20px}.checkbox{align-items:center;gap:10px;font-size:.9rem;display:flex}.checkbox input{width:20px;height:20px;accent-color:var(--accent)}.compare{border-collapse:collapse;width:100%;font-size:.9rem}.compare th,.compare td{border-top:1px solid var(--border);text-align:right;white-space:nowrap;padding:6px 0}.compare thead th{color:var(--muted);border-top:0;font-size:.75rem;font-weight:400}.compare th[scope=row]{text-align:left;white-space:normal;padding-right:8px;font-weight:400}.compare th[scope=row] span{display:block}.compare td+td{padding-left:12px}.compare tr.changed td:last-child{color:var(--accent-strong);font-weight:700}.compare .compare-group{text-align:left;padding-top:16px;font-size:.95rem}.section-title{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:4px 0 0;font-size:.85rem}.start-row{justify-content:space-between;align-items:center;gap:12px;padding:10px 12px 10px 16px;display:flex}.step-dots{gap:4px;margin:0;padding:0;list-style:none;display:flex}.step-dots li{background:var(--border);border-radius:3px;flex:1;height:6px}.step-dots li.done{background:var(--accent);opacity:.5}.step-dots li.current{background:var(--accent)}.brew-step{flex-direction:column;gap:12px;display:flex}.brew-step>h2{margin:0;font-size:1.5rem}.brew-step>p{margin:0}.timer{text-align:center;border-radius:var(--radius);background:var(--surface-2);padding:16px 8px}.timer-value{font-variant-numeric:tabular-nums;font-size:clamp(3.5rem,20vw,5.5rem);font-weight:700;line-height:1}.timer-status{color:var(--muted);margin:6px 0 14px}.timer-finished{background:color-mix(in srgb, var(--accent) 22%, var(--surface))}.timer-finished .timer-value{color:var(--accent-strong)}.timer-paused .timer-value{opacity:.6}.timer-controls{flex-wrap:nowrap;justify-content:center}.timer-controls .button:not(.timer-main){padding:0 12px}.timer-main{min-width:112px;min-height:56px;font-size:1.15rem}.events{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.events li{align-items:baseline;gap:12px;display:flex}.event-time{font-variant-numeric:tabular-nums;min-width:76px;color:var(--accent-strong);flex:none;font-weight:600}.event-done{opacity:.55}.checklist{border:0;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}.checklist legend{margin-bottom:8px;font-weight:600}.step-nav{justify-content:space-between}.step-nav .button.primary{text-overflow:ellipsis;white-space:nowrap;flex:1;line-height:44px;display:block;overflow:hidden}.extra-timer{background:var(--surface-2);border-radius:12px;align-items:center;gap:8px;padding:8px 12px;display:flex}.extra-timer .extra-label{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.extra-timer strong{font-variant-numeric:tabular-nums;font-size:1.2rem}.extra-add{grid-template-columns:1fr 96px auto;align-items:end;gap:8px;display:grid}.alert-stack{top:calc(env(safe-area-inset-top) + 8px);z-index:30;flex-direction:column;gap:8px;max-width:560px;margin:0 auto;display:flex;position:fixed;left:8px;right:8px}.alert-toast{border-radius:var(--radius);background:var(--accent);color:var(--accent-text);flex-direction:column;gap:10px;padding:14px 16px;animation:.2s ease-out alert-in;display:flex;box-shadow:0 8px 24px #0000004d}.alert-toast strong{font-size:1.1rem}.alert-toast p{margin:4px 0 0}.alert-toast .button-row{justify-content:flex-end}.alert-toast.missed{background:var(--surface);color:var(--text);border:1px solid var(--border)}@keyframes alert-in{0%{opacity:0;transform:translateY(-12px)}}@media (prefers-reduced-motion:reduce){.alert-toast{animation:none}}.batch-card{flex:1;min-width:0}.batch-card-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.badge{background:var(--surface-2);color:var(--muted);border-radius:999px;flex:none;padding:2px 10px;font-size:.75rem;font-weight:600}.badge-brewing,.badge-fermenting{background:var(--accent);color:var(--accent-text)}.badge-conditioning{background:color-mix(in srgb, var(--accent) 30%, var(--surface));color:var(--text)}.timeline{margin:0;padding:0;list-style:none}.timeline li{border-top:1px solid var(--border);grid-template-columns:110px 1fr;gap:12px;padding:10px 0;display:grid}.timeline li:first-child{border-top:0;padding-top:0}.timeline li.past{opacity:.55}.timeline-when{flex-direction:column;display:flex}.timeline p{margin:2px 0 0}
