:root{--bg:#faf7f2;--surface:#fff;--text:#1f1d1a;--muted:#5f5a52;--border:#ddd5c8;--accent:#b4441b;--accent-text:#fff;--accent-soft:#fbeee7;--danger:#a11d1d;--warn-bg:#fff6db;--warn-border:#e5c55a;--focus:#1a5fb4;--radius:10px;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}@media (prefers-color-scheme:dark){:root{--bg:#171513;--surface:#221f1c;--text:#f1ece5;--muted:#b3aba0;--border:#3d3832;--accent:#e0703f;--accent-text:#1a0f0a;--accent-soft:#3a2519;--danger:#ff8a80;--warn-bg:#3a3116;--warn-border:#8a7330;--focus:#8ab4f8}}*,:before,:after{box-sizing:border-box}body{background:var(--bg);min-width:320px;margin:0}h1{margin:0 0 .75rem;font-size:1.6rem;line-height:1.2}a{color:var(--accent)}img{max-width:100%;height:auto}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.muted{color:var(--muted)}.site-header{background:var(--surface);border-bottom:1px solid var(--border);padding:.75rem 1rem}.brand{color:var(--text);font-size:1.2rem;font-weight:700;text-decoration:none}.page{max-width:1100px;margin:0 auto;padding:1rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem}.card.narrow{max-width:34rem;margin:0 auto}.form{gap:1rem;display:grid}label{gap:.35rem;font-weight:600;display:grid}input,textarea{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;width:100%;padding:.6rem .7rem;font-weight:400}input[type=file]{padding:.5rem}.editor{resize:vertical;min-height:22rem;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.95rem}.button{font:inherit;cursor:pointer;border:1px solid #0000;border-radius:8px;min-height:44px;padding:.6rem 1.2rem;font-weight:600}.button:disabled{opacity:.55;cursor:not-allowed}.button.primary{background:var(--accent);color:var(--accent-text)}.button.secondary{color:var(--text);border-color:var(--border);background:0 0}.button.danger{background:var(--danger);color:#fff}.actions{flex-wrap:wrap;justify-content:flex-end;gap:.75rem;display:flex}.actions.start{justify-content:flex-start;margin-bottom:1rem}.tabs{border-bottom:1px solid var(--border);gap:.25rem;display:flex}.tab{font:inherit;min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-bottom:3px solid #0000;padding:.5rem 1rem}.tab.active{color:var(--text);border-bottom-color:var(--accent);font-weight:600}.error{color:var(--danger);margin:0;font-weight:600}.notice,.warnings{background:var(--warn-bg);border:1px solid var(--warn-border);border-radius:8px;padding:.75rem 1rem}.warnings{padding-left:2rem}.waking-banner{z-index:20;background:var(--warn-bg);border-bottom:1px solid var(--warn-border);text-align:center;justify-content:center;align-items:center;gap:.6rem;padding:.6rem 1rem;font-weight:600;display:flex;position:sticky;top:0}.spinner-wrap{align-items:center;gap:.75rem;font-weight:600;display:flex}.spinner{border:4px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:2rem;height:2rem;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}.overlay-host{position:relative}.overlay{border-radius:var(--radius);color:#fff;background:#0009;place-items:center;display:grid;position:absolute;inset:0}.dialog{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);max-width:min(28rem,100vw - 2rem);padding:1.25rem}.dialog::backdrop{background:#00000080}.dialog h2{margin-top:0;font-size:1.25rem}.home-actions{gap:.75rem;margin-top:1rem;display:grid}.home-action{text-align:left;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;gap:.25rem;min-height:44px;padding:1.1rem 1.25rem;text-decoration:none;display:grid}.home-action:hover{border-color:var(--accent);background:var(--accent-soft)}.home-action-title{font-size:1.15rem;font-weight:700}.recipe-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none}.recipe-list li+li{border-top:1px solid var(--border)}.recipe-row{min-height:52px;color:var(--text);justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;text-decoration:none;display:flex}.recipe-row:hover{background:var(--accent-soft)}.recipe-title{overflow-wrap:anywhere;font-weight:600}.recipe-date{color:var(--muted);white-space:nowrap;display:none}.recipe-body{overflow-wrap:anywhere}.recipe-body h2{margin-top:1.5rem;font-size:1.25rem}.preview{border:1px solid var(--border);border-radius:8px;min-height:22rem;padding:0 1rem}.detail{gap:1.5rem;display:grid}.photo{margin:0}.photo img{border:1px solid var(--border);border-radius:8px}@media (width>=640px){.page{padding:1.5rem 2rem}.home-actions{grid-template-columns:repeat(3,1fr)}.recipe-date{display:inline}}@media (width>=960px){.detail{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}}.danger-zone{border-top:1px solid var(--border);margin-top:1.5rem;padding-top:1rem}
