
:root{--p:#6d28d9;--p2:#8b5cf6;--bg:#f7f7fb;--card:#fff;--ink:#1f2937;--muted:#6b7280;--line:#e5e7eb;--ok:#0f766e}
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--ink);padding-bottom:86px}
header{position:sticky;top:0;z-index:4;background:#fff;padding:18px 18px 12px;border-bottom:1px solid var(--line);display:flex;gap:12px;justify-content:space-between;align-items:start}
h1{font-size:22px;margin:0 0 4px}header p{margin:0;color:var(--muted);font-size:13px}main{max-width:760px;margin:auto;padding:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;margin:0 0 14px;box-shadow:0 2px 10px #0000000a}
.hero{background:linear-gradient(135deg,#ede9fe,#faf5ff)}h2{margin:0 0 10px;font-size:21px}h3{margin:0 0 8px;font-size:17px}p{line-height:1.45}
button,.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:700;background:var(--p);color:white;font-size:15px;cursor:pointer}
button.ghost,.ghost{background:#fff;color:var(--p);border:1px solid #c4b5fd}.danger{background:#fff;color:#b91c1c;border:1px solid #fecaca}
input,select,textarea{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:11px;background:#fff;font:inherit;margin:6px 0 12px}
label{font-weight:700;font-size:14px}.muted{color:var(--muted);font-size:13px}.pill{display:inline-block;background:#ede9fe;color:#5b21b6;border-radius:999px;padding:5px 9px;font-size:12px;margin:2px}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.row>*{flex:1}.recipe{border-top:1px solid var(--line);padding:14px 0}.recipe:first-child{border-top:0}
ul,ol{padding-left:22px}li{margin:7px 0}.notice{background:#fff7ed;border:1px solid #fed7aa;padding:12px;border-radius:12px}.ok{background:#ecfdf5;border:1px solid #a7f3d0;padding:12px;border-radius:12px}
#nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:5;padding-bottom:env(safe-area-inset-bottom)}
#nav button{background:#fff;color:#4b5563;border-radius:0;padding:10px 2px;font-size:20px}#nav button span{display:block;font-size:11px;margin-top:3px}
#nav button.active{color:var(--p)}.step{font-size:18px}.heat{background:#f3f4f6;border-radius:12px;padding:10px}.timer{font-variant-numeric:tabular-nums;font-size:20px}
details{border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:10px}summary{font-weight:700}
.smallbtn{padding:8px 10px;font-size:13px}.right{text-align:right}.hidden{display:none}
@media(min-width:700px){main{padding:28px}header{padding-left:calc((100% - 760px)/2 + 18px);padding-right:calc((100% - 760px)/2 + 18px)}}
footer{max-width:900px;margin:28px auto 100px;padding:18px;color:var(--muted);font-size:.85rem;text-align:center}footer p{margin:8px 0}.linkbtn{background:transparent;color:var(--primary);padding:4px 8px;text-decoration:underline}.printable{max-width:720px}@media print{header,#nav,footer,.printable button{display:none!important}body{background:#fff}.card{box-shadow:none;border:0}}

.lead{font-size:16px}.termlist .term{padding:12px 0;border-top:1px solid var(--line)}.termlist .term:first-child{border-top:0}.termlist .term h3{margin-bottom:3px}.termlist .term p{margin:0}.directions li{padding:5px 0 9px}.rescuegrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.rescuegrid button{width:100%}@media(max-width:390px){.rescuegrid{grid-template-columns:1fr}}

.termlink{display:inline;background:transparent;color:var(--p);padding:0;border:0;border-bottom:1px dotted currentColor;border-radius:0;font:inherit;font-weight:inherit}.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:20;padding:18px;display:flex;align-items:center;justify-content:center}.modal[hidden]{display:none}.modalbox{background:#fff;max-width:520px;width:100%;border-radius:18px;padding:22px;box-shadow:0 16px 50px rgba(0,0,0,.25);position:relative}.modalclose{position:absolute;right:10px;top:8px;background:transparent;color:#555;font-size:28px;padding:4px 10px}.librarygrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.helpstep{padding:12px 0;border-top:1px solid var(--line)}.helpstep:first-of-type{border-top:0}.rescueanswer{margin-top:12px}.motto{text-align:center;font-size:1.2rem;font-weight:800;color:var(--p)}blockquote{margin:18px 0;padding:14px;border-left:4px solid var(--p);background:#f8f5ff}@media(max-width:430px){.librarygrid{grid-template-columns:1fr}}

:root[data-theme="dark"]{--bg:#121018;--card:#1d1926;--ink:#f5f3ff;--muted:#c4bcd1;--line:#3b3348;--p:#a78bfa;--p2:#c4b5fd;--ok:#5eead4}
:root[data-theme="dark"] body,:root[data-theme="dark"] header,:root[data-theme="dark"] #nav,:root[data-theme="dark"] #nav button{background:var(--bg);color:var(--ink)}
:root[data-theme="dark"] .card,:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] button.ghost,:root[data-theme="dark"] .modalbox{background:var(--card);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .hero{background:linear-gradient(135deg,#2b2140,#21182f)}
:root[data-theme="dark"] .notice{background:#332414;border-color:#6b4b22}:root[data-theme="dark"] .ok{background:#12342d;border-color:#285f52}:root[data-theme="dark"] blockquote{background:#2a2039}
@media(prefers-color-scheme:dark){:root[data-theme="system"]{--bg:#121018;--card:#1d1926;--ink:#f5f3ff;--muted:#c4bcd1;--line:#3b3348;--p:#a78bfa;--p2:#c4b5fd}:root[data-theme="system"] body,:root[data-theme="system"] header,:root[data-theme="system"] #nav,:root[data-theme="system"] #nav button{background:var(--bg);color:var(--ink)}:root[data-theme="system"] .card,:root[data-theme="system"] input,:root[data-theme="system"] select,:root[data-theme="system"] textarea,:root[data-theme="system"] button.ghost{background:var(--card);color:var(--ink);border-color:var(--line)}}
.potgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.potcard{background:var(--card);color:var(--ink);border:1px solid var(--line);text-align:left;display:flex;flex-direction:column;gap:7px}.potcard small{color:var(--muted);font-weight:400;line-height:1.35}.poticon{font-size:28px;color:var(--p)}@media(max-width:520px){.potgrid{grid-template-columns:1fr}}

/* Compact recipe-level safety reminder (V13 final polish). */
.recipe-safety{display:flex;align-items:flex-start;gap:.5rem;margin:.65rem 0 .8rem;padding:.55rem .7rem;border:1px solid #ead8aa;border-radius:12px;background:#fffaf0;font-size:.88rem;line-height:1.3}
.recipe-safety .safety-link{appearance:none;border:0;background:transparent;color:#6d28d9;font:inherit;font-weight:800;padding:0;text-decoration:underline;white-space:nowrap;cursor:pointer}
@media(max-width:420px){.recipe-safety{font-size:.82rem;gap:.4rem;padding:.5rem .6rem}.recipe-safety .safety-link{white-space:normal}}

/* Brand-board visual integration — V13 image pass */
.brand-hero{position:relative;overflow:hidden;border-radius:22px;margin:0 0 14px;min-height:350px;background:#2d0a4b;box-shadow:0 8px 24px #4c1d951f}
.brand-hero>img{width:100%;height:350px;display:block;object-fit:cover;object-position:58% center}
.brand-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(24,6,40,.04) 20%,rgba(24,6,40,.82) 100%);pointer-events:none}
.brand-hero-copy{position:absolute;z-index:1;left:0;right:0;bottom:0;padding:24px;color:white;text-shadow:0 1px 3px #0008}
.brand-hero-copy h2{font-size:28px;margin:4px 0 8px}.brand-hero-copy p{margin:0 0 16px;max-width:560px}.brand-hero-copy button{background:white;color:#5b167d;text-shadow:none}
.eyebrow{font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.brand-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}
.brand-shortcuts button{position:relative;overflow:hidden;min-height:120px;padding:0;border-radius:16px;border:1px solid #dcccf0;background:#3d0c61;text-align:left}
.brand-shortcuts img{width:100%;height:120px;display:block;object-fit:cover}
.brand-shortcuts span{position:absolute;left:0;right:0;bottom:0;padding:10px 12px;background:linear-gradient(transparent,rgba(46,7,72,.94));color:white;font-size:15px;text-shadow:0 1px 2px #0008}
@media(min-width:620px){.brand-shortcuts{grid-template-columns:repeat(4,1fr)}.brand-shortcuts button,.brand-shortcuts img{height:135px}}
@media(max-width:430px){.brand-hero{min-height:320px}.brand-hero>img{height:320px}.brand-hero-copy{padding:18px}.brand-hero-copy h2{font-size:24px}}

/* V13.2 brand polish */
.brand-heading{display:flex;align-items:center;gap:10px;min-width:0}.header-logo{width:54px;height:54px;object-fit:contain;flex:0 0 54px;border-radius:50%}header>button{flex:0 0 auto}
.brand-hero>img{object-position:72% center}.brand-hero:after{background:linear-gradient(90deg,rgba(24,6,40,.78) 0%,rgba(24,6,40,.34) 58%,rgba(24,6,40,.10) 100%),linear-gradient(180deg,rgba(24,6,40,.02) 35%,rgba(24,6,40,.78) 100%)}
.brand-hero-copy{max-width:92%}.brand-shortcuts button{background:#3d0c61}.brand-shortcuts img{height:100%;min-height:120px;object-fit:cover}.brand-shortcuts span{display:none}
@media(max-width:520px){header{padding:12px 12px 10px;gap:8px}.header-logo{width:46px;height:46px;flex-basis:46px}h1{font-size:19px;line-height:1.12}header p{font-size:11px;line-height:1.25}#accountBtn{padding:10px 11px;font-size:13px}.brand-hero>img{object-position:74% center}}
