:root{--forest:#12382d;--deep:#0d2d24;--orange:#d9572b;--gold:#d8b778;--cream:#f7f5ef;--bg:#f7f6f1;--ink:#1c2924;--muted:#77817c;--line:#e8e7e0;--card:#fff;--greenlight:#ecf3ed;--shadow:0 10px 30px #163b2709;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}input,select,button,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #d8b778;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,3vw,42px);letter-spacing:-1.5px;line-height:1.1;margin:10px 0 13px}h1 em{font-weight:760;font-style:normal;color:var(--orange)}h2{font-size:20px;letter-spacing:-.5px;margin:0 0 5px}h3{font-size:17px;letter-spacing:-.3px}p{line-height:1.55}.hidden{display:none!important}.topbar{height:85px;background:#fff;border-bottom:1px solid #e8ebe5;position:sticky;top:0;z-index:50}.bar-inner{height:100%;display:flex;align-items:center;justify-content:space-between;max-width:1600px;margin:auto;padding:0 32px}.identity{display:flex;align-items:center;gap:12px}.mark{height:51px;width:51px;background:var(--forest);border-radius:15px;display:grid;place-items:center;color:#fff;box-shadow:0 5px 15px #12382d25}.mark svg{width:38px;height:38px}.brand-copy{display:flex;flex-direction:column;line-height:1.05}.brand-name{font-weight:950;font-size:25px;letter-spacing:1.8px;color:var(--forest)}.brand-spark{color:var(--orange)}.brand-sub{color:var(--orange);font-size:10px;font-weight:850;letter-spacing:2.5px;margin-top:7px}.top-actions{display:flex;align-items:center;gap:12px}.status-pill{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border-radius:100px;background:#f6f0e2;color:#8a632f;font-size:12px;font-weight:750}.status-dot{background:#d8a556;width:7px;height:7px;border-radius:50%}.top-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:var(--forest);background:#eaf2eb;font-size:12px;font-weight:800}.site-layout{max-width:1600px;min-height:calc(100vh - 85px);margin:auto;display:grid;grid-template-columns:240px minmax(0,1fr)}.sidebar{background:#fbfbf8;border-right:1px solid var(--line);padding:33px 16px 25px;display:flex;flex-direction:column;min-width:0}.sidebar-title{color:#a4aaa5;font-size:10px;letter-spacing:2.1px;font-weight:850;padding:0 16px;margin-bottom:15px}.nav-links{display:grid;gap:5px}.nav-link{width:100%;text-align:left;border:0;background:transparent;color:#65736b;border-radius:12px;padding:13px 12px;display:flex;gap:12px;align-items:center;font-size:13px;font-weight:750}.nav-link:hover{background:#edf2ed}.nav-link.active{background:var(--forest);color:#fff;box-shadow:0 6px 16px #12382d1c}.nav-icon{display:inline-grid;place-items:center;width:25px;font-size:18px;font-weight:500}.nav-count{margin-left:auto;border-radius:99px;background:#e7ece6;padding:3px 7px;font-size:11px;color:var(--forest)}.nav-link.active .nav-count{background:#ffffff2a;color:#fff}.sidebar-tip{margin-top:65px;border:1px solid #e8e5d9;border-radius:18px;padding:18px;background:#f2efe6}.tip-icon{font-size:28px;color:#b18445;margin-bottom:7px}.sidebar-tip strong{font-size:14px}.sidebar-tip p{font-size:12px;color:#7e857a;margin:9px 0 0}.sidebar-footer{margin-top:auto;padding:35px 12px 0;font-size:11px;color:#9aa29b;line-height:1.75}.sidebar-footer strong{color:#71867a;letter-spacing:2px}.main{min-width:0;padding:35px clamp(18px,3.6vw,54px) 75px}.intro{background:linear-gradient(106deg,#0d2d24,#1b4c38 68%,#2d563e);color:white;border-radius:23px;padding:31px 35px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 13px 32px #12382d17;margin-bottom:26px;overflow:hidden;position:relative}.intro:before{content:"";position:absolute;width:290px;height:290px;border:1px solid #ffffff1b;border-radius:50%;right:-35px;top:-150px;box-shadow:0 0 0 28px #ffffff08,0 0 0 65px #ffffff07}.intro>div,.intro-icon{position:relative;z-index:1}.intro h1{color:#fff}.intro h1 em{color:#f0c36e}.intro p{max-width:740px;color:#dce8df;font-size:14px;margin-bottom:0}.intro-icon{font-size:120px;font-weight:300;color:#ffffff20;line-height:1}.eyebrow{font-weight:900;font-size:10px;letter-spacing:2.2px;color:#e3ba70}.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.9fr);gap:20px;align-items:start}.editor{min-width:0;display:grid;gap:15px}.step-card,.result-card,.results-info,.guide-card,.recipe-card{background:white;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.step-card{padding:24px}.step-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:23px}.step-number{width:34px;height:34px;border-radius:11px;background:#e8f0e9;display:grid;place-items:center;color:#35674a;font-weight:900;font-size:12px;flex-shrink:0}.step-heading p{color:var(--muted);font-size:12px;margin:0}.field-grid{display:grid;gap:13px}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#536058;font-size:12px;font-weight:750}.field input,.field select,.recipes-toolbar input{width:100%;border:1px solid #dfe5dd;background:#fff;color:#25382d;height:43px;padding:0 12px;border-radius:11px;outline:0;min-width:0}.field input:hover,.field select:hover{border-color:#a9bfae}.field input:focus,.field select:focus,.recipes-toolbar input:focus{border-color:#577963;box-shadow:0 0 0 3px #34774b13}.field input[type=number]{font-variant-numeric:tabular-nums}.label-title{font-size:12px;font-weight:800;color:#526357;margin:21px 0 10px}.segment{display:flex;background:#f0f2ed;border-radius:11px;padding:4px;gap:4px}.segment button{flex:1;min-width:0;background:transparent;border:none;border-radius:8px;padding:11px 8px;color:#68776d;font-weight:800;font-size:12px}.segment button.selected{background:white;color:var(--forest);box-shadow:0 2px 8px #183a2814}.mode-section{margin-top:18px}.tray-row{display:grid;grid-template-columns:minmax(103px,1.2fr) repeat(5,minmax(48px,.8fr)) 28px;gap:8px;align-items:end;padding:13px 0;border-top:1px solid #f0f1eb}.tray-row:first-child{border-top:0}.tray-row.round{grid-template-columns:minmax(103px,1.2fr) repeat(4,minmax(56px,1fr)) 28px}.tray-row .field{font-size:10px;gap:5px}.tray-row input,.tray-row select{padding:0 7px;height:39px;border-radius:9px;font-size:12px}.delete-mini{height:35px;width:28px;border:0;background:transparent;color:#ad7b70;font-size:20px;line-height:1}.delete-mini:hover{color:#ca4d31}.outline-button{border:1px solid #dbe6db;background:#f7faf7;color:#28533a;border-radius:11px;padding:10px 13px;font-weight:800;font-size:12px}.outline-button:hover{background:#e9f3ea}.add-button{width:100%;margin-top:8px;min-height:43px}.hint{color:#929b92;font-size:11px;margin:13px 0 0;line-height:1.6}details{border-top:1px solid #edf0eb;margin-top:19px;padding-top:15px}details summary{font-size:12px;color:#27513b;font-weight:850;cursor:pointer}details summary span{font-weight:500;color:#96a197;margin-left:4px}.extra-grid{margin-top:17px}.table-head{display:grid;gap:7px;color:#98a09a;font-size:10px;letter-spacing:1px;font-weight:800;padding:0 0 9px}.flour-head{grid-template-columns:minmax(150px,1fr) 75px 75px 28px}.flour-row{display:grid;grid-template-columns:minmax(150px,1fr) 75px 75px 28px;gap:7px;align-items:center;margin-bottom:8px}.flour-row input{min-width:0;width:100%;border:1px solid #dde5dd;border-radius:9px;height:40px;padding:0 9px;color:#22372b;font-size:12px}.flour-row input:focus{outline:2px solid #b0c8b2;outline-offset:1px}.mix-foot{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:15px}.mix-foot .mix-total{margin-right:auto}.mix-total{color:#276044;font-size:12px;font-weight:850}.mix-total.invalid{color:#bb4837}.editor-footer{display:flex;flex-wrap:wrap;gap:10px;margin:3px 0}.button{border-radius:100px;padding:13px 20px;min-height:44px;font-weight:850;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}.button-primary{background:var(--orange);color:#fff;border:1px solid var(--orange);box-shadow:0 6px 16px #d9572b20}.button-primary:hover{background:#bb451f}.button-ghost{background:white;color:#245039;border:1px solid #e2e7df}.button-ghost:hover{background:#eff6ef}.results{position:sticky;top:109px;display:grid;gap:13px}.result-card{padding:22px 22px 19px}.result-heading{display:flex;justify-content:space-between;align-items:center;gap:7px}.result-label{font-size:10px;letter-spacing:1.5px;font-weight:900;color:#567161}.live-chip{background:#ebf5e9;border-radius:100px;color:#3c7652;padding:7px 10px;font-size:10px;font-weight:800;white-space:nowrap}.live-chip i{display:inline-block;width:6px;height:6px;background:#4b9b62;border-radius:50%;margin-right:4px}.mass-value{font-size:clamp(36px,3vw,46px);font-weight:900;letter-spacing:-1.4px;color:var(--forest);margin-top:14px;line-height:1.1}.mass-value span{font-size:16px;color:#6f7b73;font-weight:650;letter-spacing:0}.mass-caption{font-size:12px;color:#8b958d;margin:5px 0 17px}.kpi-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:19px}.kpi-chip{border:1px solid #e7ede5;background:#fafcf9;border-radius:12px;padding:11px}.kpi-chip small{display:block;color:#97a098;font-size:10px;font-weight:700;margin-bottom:3px}.kpi-chip strong{font-size:15px;color:#275139;display:block}.result-divider{height:1px;background:#edf0ec;margin:18px 0}.result-subtitle{font-size:12px;letter-spacing:.2px;margin:0 0 12px;font-weight:850;color:#263f32}.ingredient-row{display:flex;justify-content:space-between;align-items:baseline;gap:15px;font-size:13px;padding:8px 0;color:#66766a}.ingredient-row span:last-child{font-weight:850;color:#223a2d;font-variant-numeric:tabular-nums;white-space:nowrap}.ingredient-row.highlight{color:#1e5a36}.ingredient-row.highlight span:last-child{color:#1e5a36}.est-w{display:flex;justify-content:space-between;margin-top:10px;border-radius:11px;background:#f4f3eb;padding:11px;color:#79623d;font-weight:750;font-size:11px}.result-actions{display:flex;gap:8px;margin-top:17px}.result-actions .button{flex:1;padding:11px 8px;min-width:0}.result-error{background:#fff2ed;border:1px solid #f4d9cf;padding:14px;border-radius:12px;color:#a33e2b;font-size:13px;line-height:1.5;margin:19px 0}.pre-box{background:#f6f9f5;padding:12px;border-radius:12px;margin:14px 0}.pre-box strong{font-size:12px;color:var(--forest)}.pre-box p{font-size:11px;color:#78887e;margin:5px 0 0}.results-info{background:#f1efe4;border-color:#e7e2d0;padding:17px 20px}.results-info strong{font-size:12px;color:#6a603f}.results-info p{font-size:11px;color:#928979;margin:7px 0 0}.intro.compact{min-height:145px}.intro.compact h1{font-size:35px}.recipes-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:19px}.recipes-toolbar>input{max-width:400px;background:white;height:47px}.recipe-tools{display:flex;gap:8px;flex-wrap:wrap}.import-label{cursor:pointer}.visually-hidden{position:absolute!important;clip:rect(0 0 0 0);height:1px;width:1px;overflow:hidden;white-space:nowrap}.recipes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.recipe-card{padding:20px;display:flex;flex-direction:column;gap:9px;min-height:190px}.recipe-card .recipe-type{font-size:10px;color:#9d7b46;letter-spacing:1px;font-weight:850}.recipe-card h3{margin:0}.recipe-card p{font-size:12px;color:#8b968b;margin:0}.recipe-card .recipe-buttons{display:flex;gap:7px;margin-top:auto;flex-wrap:wrap}.recipe-card .recipe-buttons button{border:1px solid #e4e9e2;background:#f9fbf8;color:#31563d;font-size:11px;border-radius:9px;padding:8px 11px;font-weight:800}.recipe-card .recipe-buttons button.danger{color:#b25748}.empty-state{padding:50px 20px;text-align:center;border:1px dashed #d4ded2;border-radius:19px;background:#fff;color:#7b867c;grid-column:1/-1}.empty-state strong{display:block;color:#294b36;margin:6px 0;font-size:17px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.guide-card{padding:24px}.guide-card h3{margin:8px 0}.guide-card p{color:#7e8a80;font-size:13px;margin:0}.guide-num{font-weight:900;color:#d3a357;font-size:12px;letter-spacing:2px}.toast{position:fixed;bottom:26px;right:26px;padding:13px 20px;background:var(--forest);color:white;border-radius:14px;z-index:100;box-shadow:0 12px 30px #12382d2e;font-size:13px;font-weight:700;max-width:340px}.toast.error{background:#a84332}.small-note{color:#96a29a;font-size:10px;line-height:1.5}.tray-listing{background:#f9faf7;border-radius:11px;padding:10px;margin:8px 0;font-size:11px;color:#6f7f73}.tray-listing div{display:flex;justify-content:space-between;gap:10px;margin:5px 0}.print-only{display:none!important}@media(max-width:1250px){.site-layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}.main{padding:28px 20px 60px}.workspace{grid-template-columns:minmax(0,1fr) minmax(260px,.75fr)}.step-card{padding:19px}.field-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.tray-row,.tray-row.round{grid-template-columns:repeat(3,minmax(0,1fr)) 28px}.tray-row .field:first-child{grid-column:span 3}.flour-head,.flour-row{grid-template-columns:minmax(110px,1fr) 64px 64px 27px}.recipes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.site-layout{grid-template-columns:1fr}.sidebar{padding:0 14px;border-right:0;background:var(--bg);border-bottom:1px solid var(--line)}.sidebar-title,.sidebar-tip,.sidebar-footer{display:none}.nav-links{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:10px 0}.nav-link{white-space:nowrap;width:auto;font-size:12px;padding:10px 13px}.nav-icon{font-size:16px;width:20px}.main{padding:20px 14px 60px}.workspace{grid-template-columns:minmax(0,1fr)}.results{position:static;grid-row:1}.editor{grid-row:2}.result-card{padding:20px}.result-actions{max-width:500px}.intro{padding:24px}.intro-icon{display:none}}@media(max-width:520px){.topbar{height:72px}.bar-inner{padding:0 14px}.mark{height:42px;width:42px;border-radius:12px}.mark svg{width:31px;height:31px}.brand-name{font-size:21px}.brand-sub{font-size:8px;letter-spacing:2px}.status-pill{display:none}.top-avatar{width:31px;height:31px}.site-layout{min-height:calc(100vh - 72px)}.intro{padding:21px 18px;margin-bottom:13px;border-radius:18px}.intro h1{font-size:29px;letter-spacing:-1px}.intro p{font-size:12px}.intro.compact h1{font-size:29px}.step-card{padding:17px;border-radius:17px}.step-heading{gap:10px;margin-bottom:18px}.step-heading h2{font-size:17px}.step-heading p{font-size:11px}.step-number{height:31px;width:31px;font-size:11px}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.field{font-size:11px}.field input,.field select{height:42px;font-size:13px}.segment button{font-size:11px;padding:10px 2px}.editor-footer .button{flex:1}.result-card{border-radius:17px}.results-info{display:none}.recipes-grid,.guide-grid{grid-template-columns:1fr}.recipes-toolbar>input{max-width:none}.recipe-tools{width:100%}.recipe-tools .button{flex:1}.result-actions .button{font-size:11px}.toast{left:14px;right:14px;bottom:14px}}@media print{.topbar,.sidebar,.intro,.editor,.results-info,.result-actions,.toast{display:none!important}.site-layout,.workspace{display:block}.main{padding:0}.results{display:block;position:static}.result-card{border:0;box-shadow:none;padding:0}.print-only{display:block!important}.result-heading{padding-top:16px}body{background:white}.mass-value{color:#111}}

/* Calcolo lievito napoletana: modulo progressivo, coerente con POREM */
.yeast-tool{margin-top:17px;border:1px solid #d9e6d8;border-radius:16px;background:linear-gradient(150deg,#f6faf5,#fff);padding:17px}
.yeast-tool-head{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.yeast-tool-head strong{font-size:14px;color:var(--forest)}
.yeast-tool-head p{font-size:11px;color:#76867b;margin:3px 0 0}
.yeast-tool-icon{width:34px;height:34px;border-radius:10px;flex:0 0 34px;display:grid;place-items:center;background:#e5efe5;color:var(--forest);font-size:21px}
.yeast-segment{margin-bottom:9px}
.yeast-conditions{margin:18px 0 0}
.yeast-conditions .field{font-size:11px}
.yeast-preview{background:#e9f3e9;color:#204b31;border-radius:11px;padding:13px 14px;font-weight:800;font-size:12px;margin-top:14px;line-height:1.7}
.yeast-scope{padding:12px 14px;background:#fff4e6;border:1px solid #f2ddbe;border-radius:11px;color:#79562d;font-size:12px;line-height:1.55;margin-top:11px}
.yeast-scope .outline-button{display:block;margin-top:9px}
.yeast-model-disclaimer{font-size:11px;margin-top:12px}
.yeast-result-note{background:#eef6ea;border:1px solid #d8e8d3;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:5px;margin-top:14px;color:#315c3a;font-size:12px}
.yeast-result-note strong{font-size:12px}
@media(max-width:520px){.yeast-tool{padding:13px}.yeast-conditions{grid-template-columns:1fr!important}.yeast-segment button{font-size:11px}.yeast-tool-head p{font-size:11px}}

/* V0.4 · Modalità lievito teglia e autolisi */
.teglia-dose-segment{margin-top:9px;margin-bottom:12px}
.teglia-yeast-inputs{margin:13px 0 0;max-width:480px}
.dose-profile{margin-top:14px;padding:13px 15px;background:#f2f5ea;border:1px solid #dce5d2;border-radius:12px;color:#345342;font-size:12px;line-height:1.6}
.dose-profile strong{font-size:13px;color:var(--forest)}
.dose-profile p{margin:5px 0 0;font-size:11px}
#autolysis-fields{margin-top:14px;padding:14px;border-radius:12px;background:#f4f8f1;border:1px solid #e0e9da}
#autolysis-fields .hint{margin-top:10px}
.yeast-result-note small{color:#5b765f;line-height:1.5;font-size:10px}
@media(max-width:520px){.yeast-segment button{font-size:10px;padding:11px 4px}}

/* POREM UX 0.5 — logo ufficiale dell'Hub, maggiore leggibilità e formati espliciti */
:root{--forest:#2f2926;--deep:#2f2926;--orange:#c0583f;--gold:#d7c6b1;--cream:#f8f1e7;--bg:#f8f5ee;--ink:#2b2a28;--muted:#6b6965;--line:#e6ded3;--card:#fffefa;--greenlight:#f5f0e9;--shadow:0 9px 28px #4e332014}
html,body{background:var(--bg);color:var(--ink)}
.topbar{height:auto;min-height:91px;position:sticky;background:#f8f1e7;border-bottom:1px solid #e5dccc}
.bar-inner{min-height:91px;gap:22px;padding:14px 30px}
.identity{gap:13px;min-width:0}.mark{height:58px;width:58px;background:#fffdf9;box-shadow:none;border:1px solid #f1e8df;border-radius:12px;flex:0 0 auto}
.mark img{height:47px;width:45px;object-fit:contain}.brand-name{font-size:29px;letter-spacing:-1px;color:#242323;font-weight:850}
.brand-copy{line-height:1.12;gap:4px;min-width:0}.brand-payoff{color:#67625d;font-size:12px;letter-spacing:0;font-weight:500;white-space:normal}
.product-identity{border-left:2px solid #d2c3b5;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:10px 0 10px 25px;margin-left:6px;flex:1;min-width:180px}
.product-identity strong{font-size:19px;letter-spacing:-.4px;font-weight:850;line-height:1.1;color:#2b2928;white-space:nowrap}
.product-identity span{font-size:10px;letter-spacing:2.1px;color:#877e76;font-weight:800}
.top-actions{margin-left:auto}.status-pill{background:#efe4d5;color:#69574a;border:1px solid #e8dbcc;font-weight:700;white-space:nowrap}
.status-dot{background:#b65d43}.sidebar{background:#f8f5ee;border-color:var(--line)}
.nav-link.active{background:#c0583f;color:#fff;box-shadow:0 6px 16px #c0583f27}.nav-link:hover{background:#f1e8de}.nav-link.active:hover{background:#b44e36}
.step-number{background:#f3e7df;color:#ac5139}.intro{background:#322d2b;box-shadow:0 12px 28px #332b2518;padding:27px 30px;margin-bottom:14px}
.intro h1,.intro h1 em{color:#fff}.intro h1 em{color:#edbba2}.intro p{color:#f1e5dc}
.quick-features{display:flex;align-items:stretch;flex-wrap:wrap;gap:9px;margin:0 0 14px}
.quick-features button{display:inline-flex;align-items:center;gap:7px;background:#fffefa;border:1px solid #e1d6c8;border-radius:13px;padding:11px 14px;color:#514139;font-size:12px;font-weight:600;box-shadow:0 3px 10px #56402908;cursor:pointer}
.quick-features button span{color:#c0583f;font-weight:850;font-size:17px}.quick-features button strong{font-weight:850}.quick-features button:hover,.quick-features button:focus-visible{border-color:#c0583f;background:#fff6f0}
.view-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 16px;color:#746c65;font-size:12px}.view-toolbar>span:first-child{font-weight:850}
.view-segment{background:#eee6db;display:flex;border:1px solid #dfd3c6;border-radius:12px;padding:3px;gap:3px}.view-segment button{border:0;background:none;padding:8px 13px;border-radius:9px;font-size:12px;color:#685d55;font-weight:800}.view-segment button.selected{background:#fffdfa;color:#a14c39;box-shadow:0 2px 8px #46311f0d}
.view-hint{color:#8f867e}.step-card,.result-card,.results-info,.guide-card,.recipe-card{background:#fffefa;border-color:#e5dfd6}
.step-card{scroll-margin-top:113px}.step-heading p{font-size:12px;color:#77706b}.label-title{color:#5c514c}
.segment{background:#f0ece5}.segment button{color:#746b62}.segment button.selected{color:#a7523c;background:#fffefa}
.production-segment{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-radius:16px}
.production-segment button{padding:13px 6px;font-size:12px;font-weight:800;line-height:1.2;min-height:46px}
.summary-inline{background:#fbf3eb;border:1px solid #ebdbcf;color:#914c37;border-radius:11px;padding:9px 12px;font-size:12px;font-weight:800;line-height:1.45;margin:14px 0}
.mode-callout{font-size:12px;line-height:1.55;padding:11px 13px;border-radius:12px;background:#f8f3ea;border:1px solid #ede4da;color:#5e524b;margin:9px 0 16px}
.action-tiles{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0}.action-tiles button,.prominent-add{border:1px solid #cb806b!important;background:#fbefea!important;color:#9b472e!important;border-radius:11px;font-weight:850;font-size:12px;padding:11px 15px;cursor:pointer;min-height:44px}
.action-tiles button:hover,.prominent-add:hover{background:#f3d9cf!important}
.group-subheading{font-size:15px;letter-spacing:-.1px;margin:20px 0 8px;border-left:3px solid #c0583f;padding:2px 0 2px 10px}
.tray-row,.tray-row.round,.piece-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-items:end;background:#fbf9f4;border:1px solid #ece4da;border-radius:13px;padding:13px 12px;margin:10px 0}
.tray-row .form-row-title,.piece-row .form-row-title{grid-column:1 / -1;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:0 0 6px;border-bottom:1px solid #ebe1d8}
.form-row-title strong{font-size:12px;color:#8c4a39}.form-row-title span{font-size:11px;color:#877c74}
.tray-row .field,.piece-row .field{font-size:11px;gap:6px}.tray-row input,.tray-row select,.piece-row input{height:43px!important;font-size:13px!important}
.tray-row .delete-mini,.piece-row .delete-mini{grid-column:3;justify-self:end;border-radius:8px;border:1px solid #e8d8d0;background:#fff;min-width:35px;min-height:36px;color:#a55a4d}
.flour-head,.flour-row{grid-template-columns:minmax(110px,1fr) 70px 70px 32px;gap:8px}.flour-row input{height:44px;background:#fff}
.mix-example{font-size:11px;color:#77716b;margin:0 0 14px}.mix-foot{justify-content:space-between}
.mix-total{color:#90614a}.outline-button{color:#9f533d;border-color:#e5cfc4;background:#fbf5ef}.outline-button:hover{background:#f8e4db}
.yeast-tool{background:#fcfaf6;border-color:#e8ded3}.yeast-tool-head strong{color:#5a4339}.yeast-tool-icon{background:#f4e6dc;color:#b85a42}
.yeast-preview,.yeast-result-note{background:#f6eee6;color:#60473d;border-color:#ebdcd1}.yeast-result-note strong,.yeast-result-note small{color:#754b3b}
.dose-profile,#autolysis-fields{background:#f8f2e9;border-color:#e8dacc;color:#59483e}.dose-profile strong{color:#8c4534}
.method-summary{cursor:pointer;font-weight:850;color:#523f37;display:flex;justify-content:space-between;gap:10px;border-radius:11px;padding:12px 13px;border:1px solid #eadacc;background:#fbf3ec;font-size:12px}
.method-summary span{font-weight:800;color:#9e5948}.method-fields{padding:14px 0 0}
body[data-view="advanced"] #method-disclosure .method-summary{display:none}
body[data-view="advanced"] #method-disclosure .method-fields{padding:0}
.result-card .mass-value,.kpi-chip strong,.ingredient-row.highlight span:last-child{color:#3a2d28}.result-label{color:#99735d}.live-chip{background:#f6ebdf;color:#a05b40}.live-chip i{background:#ba6b4c}
.kpi-chip{background:#fdf8f1;border-color:#eee0d3}.result-subtitle{color:#594036}.ingredient-row{color:#655b53}.ingredient-row span:last-child{color:#3b302a}.est-w{background:#f7ede0;color:#866244}
.button-primary{background:#c0583f;border-color:#c0583f;box-shadow:0 6px 16px #ba533b25}.button-primary:hover{background:#a74733}
.button-ghost{color:#8e4937;border-color:#ead7cc;background:#fffefa}.button-ghost:hover{background:#fcf1ec}
.recipe-meta{display:flex;gap:6px;flex-wrap:wrap}.recipe-meta span{background:#f8e9df;border-radius:6px;padding:5px 7px;font-size:10px;font-weight:750;color:#9f553f}
.empty-state strong{color:#644437}.toast{background:#4f3025}.toast.error{background:#9f4538}
.site-layout .sidebar-tip{background:#f1e7d9;border-color:#e6d7c3}.sidebar-tip strong{color:#644537}
@media(max-width:1100px){.bar-inner{gap:16px;padding:12px 19px}.product-identity{padding-left:17px}.product-identity strong{font-size:17px}.status-pill{display:none}}
@media(max-width:900px){.topbar{position:sticky}.bar-inner{min-height:82px}.intro{padding:22px}.main{padding-top:18px}.results{grid-row:unset}.editor{grid-row:1}.results{grid-row:2}}
@media(max-width:620px){.topbar{min-height:78px}.bar-inner{min-height:78px;padding:10px 12px;gap:10px}.mark{width:42px;height:45px;border-radius:9px}.mark img{width:34px;height:36px}.brand-name{font-size:19px;letter-spacing:-.7px}.brand-payoff{font-size:9px;max-width:146px;line-height:1.2}.product-identity{min-width:0;flex:1;margin-left:0;padding:5px 0 5px 10px;gap:6px;border-left:1px solid #d2c3b5}.product-identity strong{font-size:12px;white-space:normal;line-height:1.08;letter-spacing:-.1px}.product-identity span{font-size:8px;letter-spacing:1.2px}.sidebar{padding:0 9px}.nav-links{padding:8px 0}.main{padding:14px 12px 55px}.intro{margin-bottom:11px;padding:20px 17px;border-radius:17px}.intro h1{font-size:26px}.intro p{font-size:12px}.quick-features{display:grid;grid-template-columns:1fr 1fr;gap:7px}.quick-features button{font-size:11px;padding:9px 10px;justify-content:flex-start}.quick-features button:last-child{grid-column:1/-1}.view-toolbar{gap:8px;flex-wrap:wrap}.view-hint{display:none}.production-segment{grid-template-columns:repeat(2,minmax(0,1fr))}.production-segment button{font-size:12px;padding:11px 7px}.action-tiles button{flex:1;min-width:130px}.tray-row,.tray-row.round,.piece-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px}.tray-row .delete-mini,.piece-row .delete-mini{grid-column:2}.flour-row,.flour-head{grid-template-columns:minmax(95px,1fr) 65px 65px 26px;gap:6px}.flour-row input{font-size:12px;padding:0 7px}.step-card{scroll-margin-top:88px}.result-card{padding:18px}.recipe-meta span{font-size:9px}}
@media(max-width:380px){.brand-payoff{font-size:8px;max-width:115px}.product-identity strong{font-size:11px}.product-identity span{font-size:7.5px}.flour-head,.flour-row{grid-template-columns:minmax(85px,1fr) 54px 54px 24px}}
@media print{.quick-features,.view-toolbar{display:none!important}.results{grid-row:unset!important}.editor{display:none!important}}

/* POREM v0.5.2 — due livelli davvero distinti, senza perdere i dati nascosti. */
body[data-view="simple"] .advanced-only{display:none!important}
body[data-view="advanced"] .simple-only{display:none!important}
.view-explainer{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 12px;background:#fff5ec;border:1px solid #ead6c5;border-left:4px solid #c0583f;color:#5e4538;border-radius:12px;padding:13px 16px;margin:-5px 0 18px;font-size:12px;line-height:1.55}
.view-explainer strong{font-size:13px;color:#99442f}
.view-explainer span{flex:1;min-width:180px;color:#6d6057}
body[data-view="advanced"] .view-explainer{background:#f1e6d9;border-left-color:#8f5543}
.method-quick-row{display:flex;align-items:center;gap:12px}
.method-quick-copy{min-width:0;flex:1}
.method-quick-copy h2{font-size:17px;margin:0 0 4px}
.method-quick-copy p{font-size:12px;color:#756b64;margin:0}
#method-simple-card{padding:17px 20px}
.advanced-active-note{background:#fff1e9;border:1px solid #ecd2c1;border-radius:12px;margin:14px 0 0;padding:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:#67493a}
.advanced-active-note span{flex:1;min-width:150px}
.advanced-active-note button{background:#fff;border:1px solid #d6a995;color:#98452e;border-radius:8px;padding:9px 12px;font-weight:800;font-size:12px}
body[data-view="advanced"] .advanced-active-note{display:none!important}
body[data-view="simple"] .flour-row,body[data-view="simple"] .flour-head{grid-template-columns:minmax(135px,1fr) 90px 32px}
body[data-view="simple"] .tray-row{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-view="simple"] .tray-row .form-row-title{grid-column:1/-1}
body[data-view="simple"] .tray-row .simple-tech-note{grid-column:1/span 2;align-self:center;color:#806c5d;font-size:11px;line-height:1.45}
body[data-view="simple"] .tray-row .delete-mini{grid-column:3}
@media(max-width:620px){
 .view-explainer{margin:0 0 13px;padding:11px 13px;font-size:11px}
 .method-quick-row{gap:9px}.method-quick-row .outline-button{padding:9px 10px}
 body[data-view="simple"] .tray-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-view="simple"] .tray-row .simple-tech-note{grid-column:1;grid-row:auto}
 body[data-view="simple"] .tray-row .delete-mini{grid-column:2}
 body[data-view="simple"] .flour-row,body[data-view="simple"] .flour-head{grid-template-columns:minmax(95px,1fr) 76px 26px}
}

/* POREM 0.6 — registrazione, cloud e distinzione esplicita dall'archivio locale */
.account-chip{border:1px solid #d9c3ae;background:#fffaf2;color:#8b4b39;font-size:12px;font-weight:850;border-radius:11px;padding:10px 12px;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.account-chip.connected{background:#f5e6da}.top-actions{display:flex;align-items:center;gap:9px}
.account-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.account-card{background:#fffefa;border:1px solid #e7dacf;border-radius:18px;padding:25px;display:flex;flex-direction:column;gap:13px;box-shadow:0 3px 20px #2f170607}
.account-card h2{font-size:24px;margin:0;color:#422b21}.account-card p{font-size:13px;color:#75655d;line-height:1.55;margin:0}
.account-card label{display:flex;flex-direction:column;gap:6px;font-weight:800;font-size:12px;color:#65524a}
.account-card input{height:46px;padding:0 13px;border:1px solid #dbd0c4;background:white;color:#2f2925;border-radius:10px;font-size:15px;max-width:100%}
.account-card input:focus-visible{outline:3px solid #e5b6a6;outline-offset:1px}
.account-card .button{min-height:45px}.text-action{color:#a24b32;background:none;border:0;text-align:left;font-size:12px;font-weight:800;cursor:pointer;padding:5px 0}
.account-card .honeypot{display:none!important}.account-feedback{background:#f6ebdf;border-radius:10px;padding:11px 13px;color:#694936;font-size:12px;font-weight:700;line-height:1.6}
.account-privacy{font-size:11px;color:#75675d;line-height:1.55}.account-explainer{background:#fbf3e9}
.cloud-button{background:#fff0e7;border:1px solid #bb654b;color:#97452e;font-weight:850}.cloud-button:disabled{opacity:.46;cursor:not-allowed}
.cloud-lock{background:#fff4e8;border:1px solid #e9d2bf;border-radius:14px;padding:18px;color:#714b39;line-height:1.55;margin:18px 0;font-size:13px}
.cloud-top{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#776559;font-size:13px}.cloud-badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eee6db;font-size:11px;font-weight:850;color:#796451}
.cloud-badge.active{background:#e4efe5;color:#2a6b42}.cloud-footnote{font-size:12px;color:#847268;line-height:1.6;margin-top:15px}.cloud-tools{margin-top:22px}
.cloud-search-label{font-size:12px;color:#7e6558;font-weight:750}.account-card.hidden,.cloud-lock.hidden,.recipes-grid.hidden{display:none!important}
@media(max-width:800px){.account-layout{grid-template-columns:1fr}.account-card{padding:20px}}
@media(max-width:620px){.top-actions{margin-left:auto;min-width:0}.account-chip{max-width:77px;min-height:39px;font-size:11px;padding:7px 9px}.account-layout{gap:12px}.account-card h2{font-size:20px}.editor-footer{flex-wrap:wrap}.editor-footer .cloud-button{min-width:140px}}
@media print{.account-chip,.cloud-top,.account-layout{display:none!important}}
