:root{color-scheme:dark;--bg:#101217;--panel:#1c222d;--card:#121822;--border:#384252;--ink:#f5f6f8;--muted:#b2bdcd;--accent:#e44340}*{box-sizing:border-box}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--ink)}body{margin:0;background:radial-gradient(circle at 50% -10%,#2a303a 0,transparent 60%);min-height:100vh}.wrap{width:min(1080px,100%);padding:20px 14px 50px;margin:auto}header{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:20px 0 26px;flex-wrap:wrap}.eyebrow,.fine{color:var(--muted);font-size:13px}.eyebrow{letter-spacing:.08em}h1{font-size:clamp(28px,6vw,43px);line-height:1.05;margin:8px 0}h1 em{font-style:normal;color:var(--accent)}header p,.muted{color:var(--muted)}.top-tools,.heading,.subrow,.bar,.actions,.summary-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.top-tools{justify-content:flex-end}.panel{border:1px solid var(--border);background:var(--panel);border-radius:18px;padding:20px;margin:14px 0}.heading{margin-bottom:18px}.heading.space{justify-content:space-between}.heading h2{margin:0;font-size:21px}.section-num{border:1px solid #566275;color:#c6cfdd;border-radius:10px;display:grid;place-items:center;width:38px;height:38px;font-weight:800}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field label{display:block;font-weight:700;font-size:14px;margin-bottom:7px}input:not([type=checkbox]),select{width:100%;min-width:0;background:#111722;color:white;border:1px solid #536076;border-radius:10px;padding:13px 12px;font-size:16px;min-height:51px}button{background:var(--accent);color:white;border:1px solid var(--accent);border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;padding:11px 14px;min-height:42px}.secondary{background:#303a49;border-color:#66768d}.subrow{margin-top:20px}.check{display:flex;gap:8px;align-items:center;cursor:pointer;font-size:14px}.check input{width:20px;height:20px;accent-color:var(--accent)}.pill,.tag{font-size:12px;border:1px solid #596579;border-radius:50px;padding:5px 10px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.tag{border-radius:7px;font-weight:800;white-space:normal}.good{border-color:#39886c;color:#b4f3d5}.warn{border-color:#a67b37;color:#f8d297}.mutedtag{border-color:#617b9f;color:#b7d1f2}.bar{margin:12px 0 17px}.bar input{flex:1;min-width:160px}.recipe-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:11px}.recipe-card{display:block;text-align:left;width:100%;background:var(--card);border:1px solid var(--border);padding:15px;border-radius:12px}.recipe-card.selected{outline:2px solid var(--accent)}.recipe-title{font-size:17px;font-weight:800;line-height:1.3;margin:0 0 8px}.byline{font-size:13px;color:var(--muted);margin:10px 0 0}.card-row{display:flex;gap:7px;flex-wrap:wrap}.recipe-card small{display:block;color:var(--muted);margin-top:7px}.detailhead{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}h3{margin:0 0 8px}.detailbody{line-height:1.55}.notice{border-left:4px solid #d3a352;background:#2b281e;padding:14px;border-radius:8px;margin:16px 0}.notice.goodnote{border-color:#4da987;background:#1a302b}a{color:#ffb2a7;overflow-wrap:anywhere}table{width:100%;border-collapse:collapse;margin:12px 0}th,td{padding:11px 8px;border-bottom:1px solid #384252;text-align:left}th:last-child,td:last-child{text-align:right}.actions{margin-top:14px}.shopping-row{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #384252;align-items:center}.shopping-row span{flex:1}.shopping-row input{height:20px;width:20px;accent-color:var(--accent)}.empty{color:var(--muted);padding:20px;text-align:center}.alert{padding:14px;border:1px solid #ba7043;border-radius:10px;background:#392820}footer{padding:24px 0 35px;color:var(--muted);font-size:12px}@media(max-width:580px){.wrap{padding:12px 10px 35px}.panel{padding:15px}.formgrid{gap:12px}.heading h2{font-size:19px}.recipe-list{grid-template-columns:1fr}.bar input{flex-basis:100%}header{padding:16px 5px}.pill{font-size:11px}}
.method{padding-left:1.5rem;line-height:1.7}.method li{padding:.18rem 0} .detailbody{line-height:1.65} .notice{line-height:1.55}

#units{width:auto;max-width:100%;background:#1b2029;color:#fff;border:1px solid #4c515b;border-radius:8px;padding:8px 10px}

[hidden]{display:none!important}.main-nav,.mode-options{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.main-nav button,.mode-options button{background:#242c38;border:1px solid #526076}.main-nav .nav-active,.mode-options .mode-active{background:#ad3031;border-color:#e34b47;color:white}.mode-options button{flex:1;min-width:120px}.cut-card{background:#121822;border:1px solid var(--border);padding:18px;border-radius:12px;margin-top:18px;line-height:1.55}.cut-card h3{margin-top:15px}.field select:disabled{opacity:.6}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ff9891;outline-offset:2px}@media(max-width:500px){.mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mode-options button{min-width:0}.main-nav button{flex:1}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v6: schematic explorer and actual-weight harvest ledger */
.butchery-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start;margin-top:16px}.diagram-panel{background:#121822;border:1px solid var(--border);border-radius:12px;padding:14px}.cut-map{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:6px;min-height:125px;margin:14px 0}.cut-zone{border:1px solid #536076;background:#263242;border-radius:15px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:7px;gap:6px}.cut-zone:last-child{grid-column:1/-1;min-height:42px}.cut-zone-active{background:#932f32;border:2px solid #ff9f96}.cut-zone strong{font-size:13px}.cut-zone span{font-size:11px;color:#d4d9e3}.cut-buttons{display:flex;flex-wrap:wrap;gap:7px}.cut-chip{background:#253244;border:1px solid #657086;min-height:34px;padding:7px 10px}.cut-chip.active-chip{background:#af3736;border-color:#ff9d94}.yield-rows{display:grid;gap:4px;margin:15px 0}.yield-row{display:grid;grid-template-columns:minmax(0,1fr) 125px 125px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #364255}.yield-row label{font-size:14px}.yield-row input{min-height:40px;padding:9px}.yield-row button{padding:8px;min-height:40px}.yield-row button:disabled{opacity:.5;cursor:not-allowed}#yieldSummary{padding:14px;background:#111822;border-radius:10px;line-height:1.5}.yield-warning{color:#ffb1a7;font-weight:700}.cut-card{margin-top:0}@media(max-width:740px){.butchery-layout{grid-template-columns:1fr}.yield-row{grid-template-columns:minmax(0,1fr) 95px 112px}}

/* v6 legal acknowledgement */
.safety-overlay[hidden]{display:none!important}.safety-overlay{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:14px;overflow:auto}.safety-dialog{width:min(100%,660px);max-height:calc(100vh - 28px);overflow:auto;border:1px solid #b64b45;border-radius:14px;padding:24px;background:#1a202a;box-shadow:0 16px 70px #000c}.safety-dialog p{line-height:1.6}.safety-dialog h2{margin:12px 0}.safety-dialog button{margin-top:12px;width:100%}footer a,.safety-dialog a{color:#ffb5ad}footer a:hover,.safety-dialog a:hover{text-decoration:underline}.legal-page{line-height:1.65}.legal-page h2{margin-top:25px}.legal-page ul{padding-left:22px}.legal-page li{margin-bottom:10px}.legal-page a{color:#ffb5ad}

/* v7 multi-harvest management */
.harvest-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}.harvest-toolbar .field{flex:1;min-width:210px}.harvest-toolbar button{margin-bottom:0}@media(max-width:580px){.harvest-toolbar button{width:100%}}

/* v8 private My Lab notebook */
#journalNote{width:100%;min-height:130px;resize:vertical;background:#131923;border:1px solid #556273;color:#f6f7f9;border-radius:9px;padding:12px;font:inherit}#myLabView .notice{line-height:1.55}.stat-strip{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.stat-strip>span{padding:8px 12px;background:#202c3b;border:1px solid #485367;border-radius:9px}.journal-entry{display:flex;justify-content:space-between;align-items:center;gap:10px}.journal-entry button{min-width:100px}@media(max-width:580px){.journal-entry{flex-direction:column;align-items:stretch}}

/* v11 private family recipe vault */
.vault-ingredients{display:grid;gap:8px;margin:10px 0}.vault-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(85px,1fr) auto;gap:8px;align-items:end}.vault-row label{font-size:.8rem}.vault-row input{width:100%;min-width:0}.vault-row button{padding:10px}.vault-preview{max-height:270px;max-width:100%;object-fit:contain;border-radius:8px;border:1px solid #444}.vault-badge{font-weight:700;color:#e6a178}.vault-print{display:none}@media(max-width:480px){.vault-row{grid-template-columns:minmax(0,1.8fr) minmax(78px,1fr) auto}}

/* v12 workshop */ .suite-results{display:grid;gap:9px;margin-top:18px}.suite-card{border:1px solid var(--border);border-radius:10px;background:#141b26;padding:12px;line-height:1.5}.suite-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(75px,1fr) minmax(80px,1fr) auto;gap:8px;margin-bottom:8px;align-items:center}.suite-row input,.suite-row select{min-height:44px}.suite-row button{min-height:40px}.suite-summary{margin:15px 0;padding:14px;border:1px solid #647088;border-radius:10px}.suite-card .actions{margin-top:8px}.suite-card small{color:var(--muted)} textarea{width:100%;background:#111722;color:white;border:1px solid #536076;border-radius:10px;padding:12px;font:inherit} @media(max-width:580px){.suite-row{grid-template-columns:minmax(0,1fr) 94px;}.suite-row>*:nth-child(3){grid-column:1}.suite-row>*:nth-child(4){grid-column:2}}
