:root{--ink:#213b30;--deep:#163f32;--muted:#748077;--paper:#f6f7f3;--white:#fff;--line:#e5e9e1;--lime:#e2f2b7;--green:#568268;--amber:#a56b23;--amber-bg:#fbf1df;--danger:#b34f41;--radius:18px;--shadow:0 8px 30px #1e392508;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8ead6d;outline-offset:3px}button,input,select{touch-action:manipulation}svg{width:20px;height:20px;vertical-align:middle}h1,h2,h3,p{margin:0}button{min-height:40px}select,input{min-height:44px}input,select{max-width:100%;border:1px solid #dce3d9;border-radius:10px;padding:10px 12px;background:var(--white);color:var(--ink)}input[type=number]{font-variant-numeric:tabular-nums}input[type=range]{padding:0;accent-color:var(--deep);border:0;min-height:28px;width:100%}input[type=checkbox]{min-height:auto}button svg{pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:240px;top:-100px;background:var(--deep);color:white;padding:12px;z-index:30}.skip-link:focus-visible{top:0}
.sidebar{width:230px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:35px 23px 24px;border-right:1px solid var(--line);background:#fcfdf9;z-index:10}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:22px;font-weight:750;letter-spacing:-.7px}.brand-light{font-weight:430}.brand small{display:block;font-size:7px;letter-spacing:1.5px;font-weight:650;margin-top:5px}.brand-mark{width:35px;height:42px;background:var(--deep);color:var(--lime);border-radius:11px;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:27px;height:27px}.nav-caption{font-size:9px;letter-spacing:1.9px;font-weight:700;color:#879085;margin:59px 12px 15px}.navigation{display:grid;gap:7px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 14px;text-align:left;border-radius:11px;color:#727f74;font-size:13px;font-weight:560;min-height:48px}.nav-item:hover{background:#eff3e9}.nav-item.active{background:#eaf0e2;color:var(--deep)}.nav-item svg{width:18px;height:18px}.nav-dot{display:none;width:5px;height:5px;border-radius:50%;background:var(--deep);margin-left:auto}.nav-item.active .nav-dot{display:block}.sidebar-note{background:#f0f3e9;border-radius:16px;padding:22px 18px;margin-top:auto;margin-bottom:26px}.small-leaf{color:var(--green)}.small-leaf svg{width:25px;height:25px}.sidebar-note h3{font-family:Georgia,serif;font-weight:400;font-size:19px;letter-spacing:-.4px;margin:13px 0 8px}.sidebar-note p{font-size:11px;line-height:1.8;color:var(--muted)}.sidebar-bottom{display:grid;gap:23px}.help-button{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.prototype-label{font-size:8px;font-weight:700;letter-spacing:1.3px;display:flex;align-items:center;gap:6px;color:#7f897e}.prototype-label i,.device-badge i{width:5px;height:5px;border-radius:50%;background:#85a579;display:inline-block}.app-shell{margin-left:230px}.topbar{height:82px;border-bottom:1px solid var(--line);padding:0 44px;display:flex;justify-content:space-between;align-items:center;background:#ffffff66}.breadcrumb{font-size:12px;color:var(--muted);display:flex;gap:14px;align-items:center}.breadcrumb span{color:#b9c0b5}.breadcrumb strong{font-weight:550;color:var(--ink)}.topbar-actions{display:flex;align-items:center;gap:16px}.device-badge{font-size:10px;display:flex;align-items:center;gap:6px;color:var(--muted)}.currency-select select{border:1px solid var(--line);background:transparent;font-size:11px;font-weight:650;min-height:34px;border-radius:8px;padding:7px 25px 7px 10px}.icon-button{min-width:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;color:var(--muted)}.icon-button:hover{background:#ecf0e5}.icon-button svg{width:18px;height:18px}main{max-width:1435px;padding:38px 44px 0;margin:0 auto;outline:none}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.eyebrow{color:#738065;font-size:9px;font-weight:700;letter-spacing:2px;margin-bottom:11px}.page-heading h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:37px;letter-spacing:-1.5px;line-height:1.12}.page-heading p{font-size:12px;color:var(--muted);margin-top:12px;line-height:1.6}.button{display:inline-flex;gap:9px;align-items:center;justify-content:center;border-radius:10px;font-size:12px;font-weight:600;padding:12px 17px;border:1px solid transparent;white-space:nowrap;min-height:44px}.button svg{width:16px;height:16px}.button.primary{background:var(--deep);color:#fff}.button.primary:hover{background:#24523f}.button.secondary{border-color:#dce3d4;background:white}.button.secondary:hover{background:#f0f5e9}.button.text{color:var(--green);padding:8px 0;min-height:36px}.button.danger{background:#fff3ef;color:var(--danger)}.button.small{padding:8px 12px;min-height:36px;font-size:11px}.heading-actions{display:flex;align-items:center;gap:8px}.sample-banner{display:flex;gap:9px;align-items:center;font-size:11px;line-height:1.5;margin:0 0 24px;color:#798274}.sample-banner svg{width:15px;height:15px;flex-shrink:0}.sample-banner strong{font-weight:600;color:#56664e}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:29px}.stat-card{background:white;border:1px solid var(--line);border-radius:14px;padding:19px 22px;display:grid;grid-template-columns:1fr auto;column-gap:7px}.stat-card .stat-label{font-size:11px;font-weight:500;color:var(--muted)}.stat-card .stat-number{font-size:29px;letter-spacing:-1px;line-height:1;margin:14px 0 8px;font-weight:520;font-variant-numeric:tabular-nums}.stat-card .stat-number small{font-size:15px;letter-spacing:0}.stat-card .stat-note{font-size:9px;color:#8a9487;line-height:1.5}.stat-icon{width:31px;height:31px;background:#f1f5eb;border-radius:10px;display:grid;place-items:center;grid-column:2;grid-row:1 / 4;color:#7b9570}.stat-icon svg{width:16px;height:16px}.stat-card.attention .stat-icon{background:var(--amber-bg);color:var(--amber)}.stat-card.attention .stat-number{color:var(--amber)}.workspace-grid{display:grid;grid-template-columns:minmax(230px,.88fr) minmax(400px,1.65fr);gap:23px;align-items:start}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-label h2{font-size:14px;font-weight:650;letter-spacing:-.2px}.section-label span{font-size:10px;color:var(--muted)}.product-list{display:grid;gap:11px}.product-card{background:white;border:1px solid var(--line);border-radius:14px;padding:17px;text-align:left;width:100%;position:relative;min-height:145px;transition:border-color .18s,background .18s}.product-card:hover{border-color:#aaba9e}.product-card.selected{border:1.5px solid #8fa97a;background:#fbfdf6;padding:16.5px}.product-top{display:flex;align-items:center;gap:11px}.product-icon{display:grid;place-items:center;width:41px;height:43px;flex-shrink:0;border-radius:12px;color:#7d9361;background:#eff3df}.product-icon svg{width:27px;height:27px}.product-icon.milk{background:#ebf1f0;color:#6e9794}.product-icon.cheese{background:#fbf0d4;color:#b39052}.product-icon.butter{background:#f9ecd9;color:#b28f51}.product-title{font-size:13px;font-weight:650;line-height:1.4}.product-meta{font-size:10px;color:var(--muted);margin-top:3px}.product-mini{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:17px;padding-top:13px;border-top:1px solid #e9ede3}.product-mini label{display:block;font-size:9px;color:var(--muted);margin-bottom:5px}.product-mini strong{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.product-mini .amber{color:var(--amber)}.add-product-card{border:1px dashed #cbd5bf;border-radius:13px;min-height:56px;font-size:11px;color:#708565;display:flex;align-items:center;justify-content:center;gap:7px}.add-product-card:hover{background:#edf3e4}.add-product-card svg{width:15px;height:15px}.detail-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.detail-header{padding:23px 26px 17px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.detail-header h2{font-size:19px;font-weight:600;letter-spacing:-.6px;margin-bottom:7px}.detail-header p{font-size:10px;line-height:1.6;color:var(--muted)}.detail-header-buttons{display:flex;gap:2px}.badge{display:inline-flex;font-size:9px;font-weight:600;padding:5px 8px;border-radius:6px;gap:4px;align-items:center;background:#edf5e5;color:#668052;white-space:nowrap}.badge.amber{background:var(--amber-bg);color:var(--amber)}.badge.neutral{background:#f1f3ef;color:#7b8377}.detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 26px 23px;gap:8px;border-bottom:1px solid var(--line)}.detail-metrics label{font-size:10px;color:var(--muted);display:block;margin-bottom:9px}.detail-metrics strong{font-size:25px;font-weight:540;letter-spacing:-1px;font-variant-numeric:tabular-nums}.detail-metrics small{display:block;font-size:9px;color:var(--muted);margin-top:6px}.detail-metrics .margin-value{color:#598042}.detail-metrics .margin-value.amber{color:var(--amber)}.detail-section{padding:23px 26px;border-bottom:1px solid var(--line)}.detail-section h3{font-size:12px;font-weight:650}.cost-stack{display:flex;height:11px;overflow:hidden;border-radius:10px;margin:17px 0}.cost-segment{min-width:0}.ingredients-fill{background:#244d3c}.packaging-fill{background:#8baf7d}.labour-fill{background:#c5d7a1}.overhead-fill{background:#e7dabb}.cost-legend{display:grid;grid-template-columns:1fr 1fr;gap:11px 20px}.legend-row{display:flex;align-items:center;font-size:10px;gap:7px;color:var(--muted)}.legend-row i{width:6px;height:6px;border-radius:2px;flex-shrink:0}.legend-row strong{margin-left:auto;color:#536447;font-weight:550;font-variant-numeric:tabular-nums}.text-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-top:13px}.text-row b{font-size:12px;font-weight:600;color:var(--ink)}.cost-breakdown{margin-top:16px;border-top:1px solid var(--line);padding-top:3px}.cost-breakdown summary{font-size:10px;color:#75866a;padding:12px 0 0;cursor:pointer;min-height:35px}.line-item{display:flex;justify-content:space-between;gap:14px;font-size:10px;padding:8px 0;color:var(--muted);line-height:1.6}.line-item span:last-child{color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}.pricing-box{margin:22px 26px 25px;background:#f2f6e9;border:1px solid #e5ecd8;border-radius:13px;padding:18px 20px}.pricing-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.pricing-heading h3{font-size:12px;font-weight:650}.pricing-heading span{font-size:9px;color:#8c987f}.target-input{display:flex;justify-content:space-between;align-items:center;margin:14px 0 8px;gap:10px}.target-input label{font-size:10px;color:var(--muted)}.target-input input{width:70px;text-align:center;min-height:34px;font-size:12px;padding:7px;background:#ffffffc9}.target-value{font-size:27px;font-weight:600;letter-spacing:-1px}.target-value small{font-size:10px;font-weight:400;letter-spacing:0;color:var(--muted)}.target-result{display:flex;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid #e0e7d4;margin-top:13px;gap:14px}.target-result>span{font-size:10px;line-height:1.6;color:#6d7c60}.pricing-note{font-size:9px;color:#839176;line-height:1.7;margin-top:12px}.scenario-caption{font-size:9px;color:#818c77;margin-top:9px;line-height:1.5}.main-footer{display:flex;justify-content:space-between;gap:12px;padding:32px 0 23px;font-size:9px;color:#98a08f;line-height:1.6}.footer-dot{margin:0 7px}.empty-state{border:1px dashed #d1dbc7;border-radius:16px;padding:42px 24px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.empty-state h2{font-family:Georgia,serif;color:var(--ink);font-weight:400;font-size:26px;margin-bottom:10px}.empty-state p{margin-bottom:18px}.info-strip{border:1px solid #e1e8d8;background:#f0f5e7;border-radius:12px;padding:15px 18px;font-size:11px;color:#6c7e5c;line-height:1.8;margin-bottom:22px;display:flex;gap:12px;align-items:flex-start}.info-strip svg{flex-shrink:0;margin-top:2px}.cost-table{width:100%;border-collapse:collapse;background:white}.table-panel{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;margin-bottom:24px}.cost-table th{text-align:left;padding:15px 22px;font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#89907f;background:#fbfcf9;border-bottom:1px solid var(--line);font-weight:600}.cost-table td{padding:19px 22px;font-size:12px;border-bottom:1px solid #edf0e8}.cost-table tr:last-child td{border-bottom:0}.cost-table th:last-child,.cost-table td:last-child{text-align:right}.table-item{display:flex;align-items:center;gap:11px}.table-item .product-icon{width:34px;height:35px;border-radius:9px}.table-item .product-icon svg{width:19px;height:19px}.table-item strong{font-size:12px;font-weight:600}.table-item small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.cost-price{font-weight:600;font-variant-numeric:tabular-nums}.cost-price small{font-weight:400;color:var(--muted);font-size:10px}.usage-count{font-size:10px;color:var(--muted)}.history-list{padding:0 24px}.history-row{padding:17px 0;border-bottom:1px solid var(--line);display:flex;gap:14px;justify-content:space-between;align-items:center}.history-row:last-child{border-bottom:0}.history-row h3{font-size:12px;font-weight:600}.history-row p{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}.history-values{text-align:right;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}.history-values small{display:block;font-size:9px;color:var(--muted);margin-top:6px}.results-note{font-size:11px;color:var(--muted);line-height:1.8;margin:12px 0 24px}.backup-controls{display:flex;gap:9px;flex-wrap:wrap}.backup-panel{border-top:1px solid var(--line);padding-top:20px;margin-top:26px;display:flex;justify-content:space-between;gap:16px;align-items:center}.backup-panel h3{font-size:12px;margin-bottom:6px}.backup-panel p{font-size:10px;color:var(--muted);line-height:1.6}
dialog{border:0;border-radius:20px;box-shadow:0 24px 120px #102f2533;padding:0;width:min(680px,calc(100vw - 32px));max-height:90dvh;color:var(--ink);background:#fff}dialog::backdrop{background:#122d2755;backdrop-filter:blur(3px)}.dialog-head{padding:24px 28px 18px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.dialog-head h2{font-family:Georgia,serif;font-size:27px;font-weight:400;letter-spacing:-.8px}.dialog-head p{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.6}.dialog-body{padding:23px 28px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:grid;gap:7px}.field.full{grid-column:1 / -1}.field>span{font-size:11px;font-weight:600}.field input,.field select{width:100%;font-size:14px}.field small{font-size:10px;line-height:1.65;color:var(--muted);font-weight:400}.form-section{border-top:1px solid var(--line);padding-top:21px;margin-top:23px}.form-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.form-section h3{font-size:13px;font-weight:600}.form-section>p{font-size:10px;color:var(--muted);line-height:1.7;margin-bottom:14px}.recipe-line{display:grid;grid-template-columns:minmax(110px,1fr) 80px 85px 32px;gap:7px;align-items:center;margin-bottom:9px}.recipe-line input,.recipe-line select{width:100%;font-size:12px;min-height:42px;padding:8px}.recipe-labels{display:grid;grid-template-columns:minmax(110px,1fr) 80px 85px 32px;gap:7px;font-size:9px;color:var(--muted);margin-bottom:8px}.dialog-foot{padding:17px 28px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fbfcf8}.dialog-foot .buttons{display:flex;gap:8px;margin-left:auto}.form-error{background:#fff0ec;color:var(--danger);border-radius:9px;padding:11px 14px;font-size:12px;line-height:1.6;margin-bottom:16px}.form-error:empty{display:none}.field-hint{font-size:10px;color:var(--muted);line-height:1.7;margin-top:13px}.help-steps{display:grid;gap:22px;margin:5px 0 25px}.help-step{display:flex;gap:14px;align-items:flex-start}.step-number{background:var(--lime);color:var(--deep);width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-size:12px;flex-shrink:0}.help-step h3{font-size:13px;margin:3px 0 6px}.help-step p,.help-copy p{font-size:12px;color:var(--muted);line-height:1.8}.help-copy{border-top:1px solid var(--line);padding-top:20px}.help-copy p+p{margin-top:12px}.help-copy strong{color:var(--ink);font-weight:600}.formula{background:#f2f5ed;padding:14px;border-radius:10px;font-size:11px;color:#5a7050;line-height:1.9;margin:17px 0}.toast{position:fixed;bottom:28px;left:calc(50% + 115px);transform:translate(-50%,20px);background:var(--deep);color:#fff;box-shadow:0 8px 25px #14392425;border-radius:12px;padding:13px 20px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;max-width:calc(100vw - 32px);line-height:1.6}.toast.show{opacity:1;transform:translate(-50%,0)}.warning-banner{padding:13px 16px;border-radius:10px;background:#fff0e7;color:#974a28;font-size:12px;line-height:1.7;margin-bottom:18px}.negative{color:var(--danger)}.no-wrap{white-space:nowrap}
@media(min-width:1600px){main{padding-top:46px}.page-heading h1{font-size:43px}.workspace-grid{grid-template-columns:minmax(300px,.95fr) minmax(480px,1.6fr)}.product-card{min-height:158px;padding:20px}.product-card.selected{padding:19.5px}.detail-header,.detail-section{padding-left:30px;padding-right:30px}.detail-metrics{padding-left:30px;padding-right:30px}}
@media(max-width:1150px){.sidebar{width:200px;padding-left:17px;padding-right:17px}.app-shell{margin-left:200px}.brand{font-size:20px}.brand small{font-size:6px}.topbar{padding:0 27px}main{padding:30px 27px 0}.workspace-grid{grid-template-columns:250px minmax(0,1fr);gap:17px}.detail-header{padding:20px}.detail-metrics{padding:0 20px 21px}.detail-section{padding:21px 20px}.pricing-box{margin:20px}.detail-metrics strong{font-size:23px}.toast{left:calc(50% + 100px)}}
@media(max-width:970px){.sidebar{width:178px;padding-left:12px;padding-right:12px}.app-shell{margin-left:178px}.brand{font-size:18px;gap:7px}.brand small{font-size:5px;letter-spacing:1.3px}.brand-mark{width:31px;height:37px}.nav-item{font-size:12px;padding-left:12px;gap:9px}.topbar{padding:0 22px}.device-badge{display:none}main{padding:28px 22px 0}.page-heading h1{font-size:32px}.workspace-grid{grid-template-columns:1fr}.product-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.product-card{padding:13px;min-height:150px}.product-card.selected{padding:12.5px}.product-icon{width:30px;height:34px}.product-icon svg{width:23px;height:23px}.product-title{font-size:11px}.product-top{gap:7px;align-items:flex-start}.product-mini{grid-template-columns:1fr 1fr}.product-mini>div:nth-child(2){display:none}.product-mini strong{font-size:12px}.product-meta{font-size:9px}.add-product-card{grid-column:1 / -1;min-height:40px}.stat-card{padding:16px}.stat-icon{display:none}.stat-card .stat-number{font-size:26px}.stat-card .stat-label{font-size:10px}.stats-grid{gap:10px;margin-bottom:23px}.main-footer{flex-direction:column;gap:3px}.sidebar-note{padding:16px 12px}.sidebar-note h3{font-size:17px}.prototype-label{font-size:7px;letter-spacing:.6px}.toast{left:calc(50% + 89px)}.cost-table th,.cost-table td{padding-left:16px;padding-right:16px}.cost-table th:nth-child(3),.cost-table td:nth-child(3){display:none}}
@media(max-width:700px){.sidebar{position:relative;width:auto;height:70px;padding:0 19px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--line);justify-content:space-between;background:#fcfdf9}.brand{font-size:22px;gap:9px}.brand small{font-size:6px;letter-spacing:1.5px}.brand-mark{width:33px;height:38px}.sidebar .nav-caption,.sidebar-note,.sidebar-bottom{display:none}.navigation{position:fixed;bottom:0;left:0;right:0;background:#fcfdf9f7;backdrop-filter:blur(12px);border-top:1px solid #e0e6d8;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));z-index:20}.nav-item{flex-direction:column;gap:5px;font-size:9px;text-align:center;padding:8px 6px;min-height:53px;justify-content:center}.nav-item.active .nav-dot{display:none}.nav-item svg{width:19px;height:19px}.app-shell{margin:0}.topbar{position:absolute;top:0;right:10px;border:0;background:none;height:70px;padding:0;z-index:11}.breadcrumb{display:none}.topbar-actions{gap:5px}.topbar .icon-button{width:32px;min-width:32px}.currency-select select{font-size:10px;min-height:34px;padding-left:8px}.skip-link{left:10px}main{padding:27px 18px 90px}.page-heading{align-items:flex-start;gap:10px;margin-bottom:21px}.page-heading h1{font-size:31px;letter-spacing:-1.3px;max-width:245px}.page-heading p{font-size:11px;max-width:250px;line-height:1.7;margin-top:10px}.eyebrow{font-size:8px;letter-spacing:1.7px;margin-bottom:9px}.heading-actions .button{font-size:10px;padding:9px 11px;min-height:39px}.heading-actions{padding-top:19px}.heading-actions .hide-mobile{display:none}.stats-grid{gap:7px;margin-bottom:22px}.stat-card{padding:13px 10px;border-radius:11px}.stat-card .stat-number{font-size:24px;margin:12px 0 7px}.stat-card .stat-label{font-size:9px;line-height:1.4}.stat-card .stat-note{font-size:8px;line-height:1.4}.stat-card .stat-number small{font-size:13px}.sample-banner{align-items:flex-start;font-size:10px;gap:7px;margin-bottom:20px}.sample-banner svg{margin-top:1px}.product-list{grid-template-columns:1fr}.product-card{min-height:0;padding:14px;display:flex;align-items:center;gap:10px;justify-content:space-between}.product-card.selected{padding:13.5px}.product-top{align-items:center;gap:10px}.product-icon{width:37px;height:40px}.product-icon svg{width:25px;height:25px}.product-title{font-size:12px}.product-meta{font-size:9px}.product-mini{display:flex;border:0;margin:0;padding:0;gap:15px;text-align:right}.product-mini>div:first-child{display:none}.product-mini label{font-size:8px}.product-mini strong{font-size:13px}.add-product-card{min-height:45px}.section-label{margin-bottom:12px}.section-label h2{font-size:13px}.section-label span{font-size:9px}.workspace-grid{gap:22px}.detail-header{padding:20px 18px 18px}.detail-header h2{font-size:18px}.detail-metrics{padding:0 18px 21px;gap:4px}.detail-metrics strong{font-size:24px}.detail-metrics label{font-size:9px}.detail-metrics small{font-size:8px}.detail-section{padding:21px 18px}.cost-legend{gap:11px 14px}.legend-row{font-size:9px}.pricing-box{margin:18px;padding:17px}.pricing-heading span{font-size:8px}.cost-table th,.cost-table td{padding:15px 12px}.table-item{gap:7px}.table-item strong{font-size:11px}.table-item .product-icon{width:28px;height:31px}.cost-price{font-size:12px}.cost-price small{display:block;font-size:9px;margin-top:4px}.cost-table .button.small{font-size:10px;padding:7px 9px}.backup-panel{display:grid;gap:12px}.history-list{padding:0 16px}.history-row{gap:10px}.history-row h3{font-size:11px}.history-row p{font-size:9px}.history-values{font-size:12px}.dialog-head{padding:21px 20px 17px}.dialog-head h2{font-size:25px}.dialog-body{padding:20px}.dialog-foot{padding:15px 20px;flex-wrap:wrap}.dialog-foot>.button.danger{padding-left:0}.field-grid{gap:16px 12px}.field input,.field select{font-size:16px}.recipe-line{grid-template-columns:minmax(95px,1fr) 64px 76px 27px;gap:5px}.recipe-labels{grid-template-columns:minmax(95px,1fr) 64px 76px 27px;gap:5px}.recipe-line input,.recipe-line select{font-size:16px;min-height:44px;padding:8px 5px}.recipe-line .icon-button{min-width:27px}.toast{bottom:92px;left:50%;font-size:11px}.main-footer{font-size:8px;padding-top:25px}.backup-controls .button{font-size:11px}.help-copy p,.help-step p{font-size:11px}.info-strip{font-size:10px;padding:13px}}
@media(max-width:970px){.product-mini>span:nth-child(2){display:none}}
@media(max-width:700px){.product-mini>span:first-child{display:none}}
.product-title,.detail-header h2,.table-item strong,.history-row h3{overflow-wrap:anywhere}.table-item>span:last-child{min-width:0}.product-top>span:last-child{min-width:0}
@media(max-width:700px){.page-heading p{font-size:12px}.sample-banner{font-size:11px}.product-title{font-size:14px}.product-meta{font-size:11px}.product-mini label{font-size:10px}.product-mini strong{font-size:15px}.product-mini{flex-shrink:0}.detail-header p{font-size:11px}.detail-metrics label{font-size:11px}.detail-metrics small{font-size:10px}.detail-section h3,.pricing-heading h3{font-size:14px}.legend-row{font-size:11px}.target-input label,.target-result>span{font-size:12px}.pricing-note,.scenario-caption{font-size:11px}.line-item,.cost-breakdown summary{font-size:12px}.nav-item{font-size:11px}.table-item strong{font-size:12px}.table-item small{font-size:11px}.field>span{font-size:12px}.field small,.form-section>p,.field-hint{font-size:11px}.recipe-labels{font-size:11px}.backup-panel p{font-size:11px}.button,.button.small{min-height:44px}.icon-button{min-height:44px;min-width:40px}.recipe-line .icon-button{min-width:27px}.pricing-heading{flex-wrap:wrap}.topbar .icon-button{min-width:40px}.currency-select select{min-height:40px}.history-row p{font-size:11px}.history-values small{font-size:10px}}
@media(max-width:360px){.brand{font-size:19px}.brand small{font-size:5px}.topbar-actions>.icon-button{display:none}.detail-metrics strong{font-size:21px}.heading-actions .button{padding:8px;font-size:10px}.product-title{font-size:13px}.recipe-line,.recipe-labels{grid-template-columns:minmax(85px,1fr) 57px 65px 24px;gap:4px}.recipe-line .icon-button{min-width:24px}.dialog-body{padding:17px}}
.account-link{font-size:12px;font-weight:600;color:var(--green,#163f32);text-decoration:none;margin-right:10px}.cloud-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border:1px solid var(--line);background:#f0f3e8;border-radius:11px;margin-bottom:24px;font-size:12px;line-height:1.5}.cloud-toolbar>div{display:flex;gap:8px;flex-shrink:0}.cloud-toolbar button{padding:9px 12px;min-height:44px;border:1px solid #becbb1;border-radius:8px;background:#fcfdf8;color:#163f32;font-weight:600;font-size:12px;cursor:pointer}.cloud-toolbar button:disabled{opacity:.5;cursor:wait}#cookie-settings{border:0;background:none;color:inherit;text-decoration:underline;font:inherit;padding:0;cursor:pointer}.main-footer a{color:inherit}@media(max-width:700px){.account-link{margin-right:2px;padding:12px 6px;min-height:44px;display:inline-flex;align-items:center}.account-link .long{display:none}.cloud-toolbar{align-items:stretch;flex-direction:column;gap:8px;font-size:11px;padding:12px}.cloud-toolbar>div{justify-content:flex-end}.cloud-toolbar button{font-size:11px}.main-footer{line-height:1.8}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.heading-actions,.backup-panel,.detail-header-buttons,.add-product-card,.toast,dialog{display:none!important}.app-shell{margin:0}main{padding:0}.workspace-grid{display:block}.product-list{margin-bottom:20px}.detail-card,.stat-card{break-inside:avoid}.main-footer{color:#555}.button{display:none}}

/* Mobile: keep stat values inside their cards */
@media(max-width:700px){.stat-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}.stat-card .stat-label{order:1}.stat-card .stat-number{order:2;margin:8px 0 6px}.stat-card .stat-note{order:3}.stat-card .stat-number{font-size:clamp(18px,5.6vw,24px);white-space:nowrap}.stat-card .stat-number small{font-size:.55em}}
.energy-fill{background:#d9a441}.distribution-fill{background:#7d9bb0}
.channel-note{font-size:12px;color:var(--muted,#6b786e);margin:12px 0 0;line-height:1.5}

/* Pro tools */
.pro-teaser{background:#fffffa;border:1px solid var(--line,#dfe5d8);border-radius:20px;padding:32px;max-width:920px}
.pro-teaser h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:30px;letter-spacing:-.8px;line-height:1.2;margin:14px 0 10px}
.pro-teaser>p{color:#6b786e;max-width:640px;margin:0 0 22px}
.pro-badge{display:inline-block;background:#163f32;color:#f1f3e5;font-size:11px;font-weight:700;letter-spacing:2px;padding:5px 10px;border-radius:6px}
.pro-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 24px}
.pro-feature{border:1px solid #e3e8dc;border-radius:14px;padding:18px;background:#f8f9f1}.pro-feature h3{font-size:15px;margin:10px 0 6px}.pro-feature p{font-size:13px;color:#6b786e;margin:0;line-height:1.55}
.pro-glyph{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e7efdd;color:#163f32;font-size:18px}
.pro-note{font-size:12px;color:#6b786e;margin:12px 0 0;line-height:1.5}
.pro-section{margin-bottom:34px}.pro-empty{color:#6b786e;font-size:14px;padding:18px;border:1px dashed #d5dccc;border-radius:12px}
.pro-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-bottom:14px}.pro-controls .field{min-width:200px;flex:1 1 220px;max-width:340px;margin:0}
.pro-chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #c8d2bf;background:#fffffa;border-radius:20px;padding:8px 14px;min-height:40px;font-weight:600;font-size:13px;color:#173e32}
.pro-summary{font-size:14px;font-weight:600;color:#173e32;margin:0 0 12px}
.pro-table td,.pro-table th{vertical-align:top}.pro-table th small{display:block;color:#8a978a;font-weight:400;font-size:11px}
.pro-was{color:#96a08e}.pro-same{color:#6b786e}.pro-unaffected{opacity:.62}
.pro-chart{position:relative;background:#fffffa;border:1px solid var(--line,#dfe5d8);border-radius:14px;padding:10px 6px 4px;overflow:hidden;min-height:120px}
.pro-chart svg{display:block;max-width:100%;outline:none}.pro-chart svg:focus-visible{outline:3px solid #c9a358;outline-offset:2px}
.pro-chart .grid{stroke:#ecefe6;stroke-width:1}.pro-chart .axis{stroke:#cbd3c2;stroke-width:1}.pro-chart .tick{font-size:11px;fill:#6b786e;font-variant-numeric:tabular-nums}
.pro-chart .crosshair{stroke:#9aa595;stroke-width:1}
.chart-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:#52514e;margin:0 0 8px}.chart-legend span{display:inline-flex;align-items:center;gap:6px}
.chart-tooltip{position:absolute;background:#fffffa;border:1px solid #d5dccc;border-radius:10px;padding:10px 12px;font-size:12px;box-shadow:0 6px 18px #173e3214;pointer-events:none;min-width:150px}
.tip-date{color:#6b786e;margin-bottom:6px}.tip-row{display:flex;align-items:center;gap:7px;margin:3px 0}.tip-row strong{font-variant-numeric:tabular-nums;color:#0b0b0b}.tip-row span{color:#6b786e}.tip-reason{margin-top:6px;color:#6b786e;font-size:11px}
.pro-table-view{margin-top:12px;font-size:13px}.pro-table-view summary{cursor:pointer;color:#173e32;font-weight:600;padding:8px 0}
.pro-export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pro-export{display:flex;gap:12px;align-items:flex-start;text-align:left;border:1px solid #d5dccc;background:#fffffa;border-radius:14px;padding:16px;color:#173e32;min-height:44px}
.pro-export svg{width:20px;height:20px;flex-shrink:0;margin-top:2px}.pro-export strong{display:block;font-size:14px}.pro-export small{display:block;color:#6b786e;font-size:12px;margin-top:3px;line-height:1.45}
#print-report{display:none}
@media(max-width:700px){.pro-teaser{padding:22px}.pro-teaser h2{font-size:24px}.pro-features,.pro-export-grid{grid-template-columns:1fr}.pro-controls .field{max-width:none}.pro-table{font-size:12px}}
@media print{body.printing-report>*:not(#print-report){display:none!important}body.printing-report #print-report{display:block;font-family:Arial,Helvetica,sans-serif;color:#000}
#print-report h1{font-size:20px;margin:0 0 4px}#print-report h2{font-size:15px;margin:22px 0 8px}#print-report header p,.report-note{font-size:11px;color:#444}
#print-report table{width:100%;border-collapse:collapse;font-size:11px}#print-report th,#print-report td{border-bottom:1px solid #ccc;padding:5px 6px;text-align:left}#print-report th{background:#f2f2f2}}
.pro-table th:nth-child(3),.pro-table td:nth-child(3){display:table-cell!important}
.pro-table tbody th{text-transform:none;letter-spacing:0;font-size:13px;color:#173e32;font-weight:600;background:transparent}
@media(max-width:700px){.pro-table th,.pro-table td{padding:12px 8px}.pro-table tbody th{font-size:12px}}
.pro-chart.narrow .chart-tooltip{position:static;box-shadow:none;margin:6px 8px 8px;display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}.pro-chart.narrow .chart-tooltip[hidden]{display:none}.pro-chart.narrow .tip-date,.pro-chart.narrow .tip-reason{flex-basis:100%;margin:0}

/* ---------- Dashboard ---------- */
.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:6px;min-width:0;box-shadow:0 1px 2px #1e39250a,0 10px 28px -16px #1e392529}
.kpi-label{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.3px}
.kpi-value{font-size:32px;line-height:1.05;font-weight:560;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--deep)}
.kpi-value small{font-size:15px;letter-spacing:0;font-weight:500;color:var(--muted)}
.kpi-note{font-size:12px;color:var(--muted);display:flex;gap:5px;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kpi-note svg{width:14px;height:14px;flex-shrink:0}
.kpi.attention .kpi-value{color:var(--amber)}.kpi.attention .kpi-note{color:var(--amber)}
.kpi.good .kpi-note{color:#2e7d4f}
.dash-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:28px}
.dash-panel{min-width:0;margin-bottom:28px}.dash-grid .dash-panel{margin-bottom:0}
.dash-panel .section-label .button.text{min-height:32px}
.dash-actions{display:grid;gap:12px}
.dash-action{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 1px 2px #1e39250a,0 10px 28px -18px #1e392529}
.dash-action.attention{background:#fffcf5;border-color:#f0e2c4}
.dash-action.good{background:#f6faf1;border-color:#dbe8cf}
.dash-action-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:12px;background:var(--paper);color:var(--deep)}
.dash-action.attention .dash-action-icon{background:var(--amber-bg);color:var(--amber)}
.dash-action.trend .dash-action-icon{background:#eaf0fb;color:#3b5fb0}
.dash-action.good .dash-action-icon{background:#e3efd8;color:#2e7d4f}
.dash-action-icon svg{width:19px;height:19px}
.dash-action-body{min-width:0;display:grid;gap:6px}
.dash-action h3{font-size:15px;line-height:1.35;color:var(--deep)}
.dash-action p{font-size:13px;line-height:1.55;color:var(--muted)}.dash-action p strong{color:var(--deep);font-variant-numeric:tabular-nums}
.dash-action-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.dash-action-buttons:empty{display:none}
.dash-more{justify-self:start}
.dash-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 1px 2px #1e39250a,0 10px 28px -18px #1e392529}
.margin-chart{display:grid;gap:14px}
.margin-row{display:grid;grid-template-columns:minmax(0,9rem) minmax(0,1fr) 5.2rem;gap:12px;align-items:center}
.margin-name{font-size:13px;font-weight:600;color:var(--deep);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.margin-track{position:relative;height:14px;background:#f1f4ec;border-radius:4px}
.margin-bar{position:absolute;left:0;top:0;bottom:0;background:#2e7d4f;border-radius:0 4px 4px 0;transition:width .45s cubic-bezier(.2,.8,.2,1)}
.margin-bar.below{background:#b8741a}
.margin-target{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--deep);border-radius:1px}
.margin-value{font-size:13px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;color:var(--deep)}
.margin-value small{display:block;font-size:10px;font-weight:600;color:var(--amber)}.margin-value .muted{color:var(--muted);font-weight:500}
.margin-key{display:flex;gap:16px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding-top:4px;border-top:1px solid var(--line)}
.margin-key span{display:inline-flex;gap:6px;align-items:center;padding-top:10px}.key-bar{width:14px;height:8px;border-radius:2px;background:#2e7d4f;display:inline-block}.key-target{width:2px;height:12px;background:var(--deep);display:inline-block}
.share-bar{display:flex;gap:2px;height:12px;border-radius:4px;overflow:hidden;margin-bottom:12px}.share-bar span{min-width:2px}
.share-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--muted);margin-bottom:18px}
.share-legend span{display:inline-flex;gap:6px;align-items:center}.share-legend i{width:9px;height:9px;border-radius:2px;display:inline-block}.share-legend strong{color:var(--deep);font-variant-numeric:tabular-nums}
.driver-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.driver-list li{display:grid;grid-template-columns:minmax(0,10rem) minmax(0,1fr) 5rem;gap:12px;align-items:center}
.driver-name{font-size:13px;font-weight:600;color:var(--deep);min-width:0}.driver-name small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.driver-bar{height:8px;background:#f1f4ec;border-radius:4px;overflow:hidden}.driver-bar span{display:block;height:100%;background:var(--deep);border-radius:0 4px 4px 0}
.driver-value{text-align:right;font-variant-numeric:tabular-nums;font-size:13px}.driver-value small{display:block;font-size:11px;color:var(--muted)}
.dash-foot{font-size:13px;color:var(--muted);margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
@media(max-width:970px){.dash-grid{grid-template-columns:1fr}.dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dash-kpis{gap:10px;margin-bottom:22px}.kpi{padding:14px;border-radius:14px}.kpi-value{font-size:26px}.dash-action{padding:15px;gap:12px}.dash-card{padding:16px}
  .margin-row{grid-template-columns:minmax(0,1fr) 4.4rem;row-gap:6px}.margin-name{grid-column:1/-1}.margin-track{grid-column:1}
  .driver-list li{grid-template-columns:minmax(0,1fr) 4.4rem;row-gap:6px}.driver-name{grid-column:1/-1}}

/* ---------- Premium finish: depth, motion, comfortable sizes (no glass) ---------- */
.button.primary{background:linear-gradient(180deg,#1f5242 0%,#163f32 100%);box-shadow:inset 0 1px 0 #ffffff26,0 1px 2px #0f2b2233,0 8px 18px -8px #163f3299;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.button.primary:hover{transform:translateY(-1px);filter:brightness(1.06);box-shadow:inset 0 1px 0 #ffffff2e,0 2px 4px #0f2b2233,0 12px 24px -10px #163f32aa}
.button.primary:active{transform:translateY(0);filter:brightness(.97);box-shadow:inset 0 1px 2px #0000002e}
.button.secondary{background:linear-gradient(180deg,#fff 0%,#fafbf7 100%);box-shadow:0 1px 2px #1e39250f;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.button.secondary:hover{border-color:#bfcbb4;transform:translateY(-1px);box-shadow:0 4px 12px -6px #1e392533}
.button.secondary:active{transform:translateY(0);box-shadow:none}
.stat-card,.detail-card,.table-panel{box-shadow:0 1px 2px #1e39250a,0 10px 28px -18px #1e392529}
.product-card{transition:border-color .18s,background .18s,transform .18s ease,box-shadow .18s ease}
.product-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px -18px #1e392540}
.view-enter{animation:dm-enter .24s cubic-bezier(.2,.8,.2,1)}
@keyframes dm-enter{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:700px){.button{font-size:12px;padding:10px 13px;min-height:42px}.button.small{font-size:12px;min-height:38px}}
@media(prefers-reduced-motion:reduce){.view-enter{animation:none}.button,.product-card,.margin-bar{transition:none!important}.button:hover,.product-card:hover{transform:none}}
@media(max-width:700px){.kpi-note{white-space:normal;align-items:flex-start}}.nowrap{white-space:nowrap}
/* Dairy facts, channel ladder, business settings, monthly panel */
.storage-fill{background:#8f6fb0}
.product-facts{display:grid;gap:14px;margin-top:16px}
.fact-row{display:flex;flex-wrap:wrap;gap:10px}
.fact-chip{display:flex;flex-direction:column;gap:2px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:10px 14px;min-width:0;flex:1 1 180px}
.fact-chip strong{font-size:17px;color:var(--deep);font-variant-numeric:tabular-nums}.fact-chip span{font-size:12px;color:var(--muted)}
.ladder{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--line)}
.ladder-step{background:#fff;padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.ladder-step span{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.2px}.ladder-step strong{font-size:18px;color:var(--deep);font-variant-numeric:tabular-nums}.ladder-step small{font-size:11px;color:var(--muted)}
.business-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:20px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:22px;box-shadow:0 1px 2px #1e39250a,0 10px 28px -18px #1e392529}
.business-panel h2{font-size:16px;margin-bottom:6px}.business-panel p{font-size:13px;color:var(--muted);line-height:1.55}
.business-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:12px;align-items:end}.business-fields .field{margin:0}.business-fields small{font-size:11px;color:var(--muted)}
.month-empty{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.month-empty h2{font-size:15px;margin-bottom:4px}.month-empty p{font-size:13px;color:var(--muted);max-width:60ch}
.month-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:2px;background:var(--line);border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.month-flow>div{background:#fff;padding:12px 14px;display:flex;flex-direction:column;gap:3px}.month-flow span{font-size:11px;font-weight:600;color:var(--muted)}.month-flow strong{font-size:19px;color:var(--deep);font-variant-numeric:tabular-nums}
.month-total{background:#f3f8ee!important}.month-total.neg{background:#fff4ee!important}.month-total.neg strong{color:var(--danger)}.month-total.pos strong{color:#2e7d4f}
.month-note{font-size:13px;color:var(--deep);margin-top:14px;display:flex;gap:6px;align-items:flex-start;flex-wrap:wrap}.month-note svg{width:16px;height:16px;flex-shrink:0}
.breakeven{margin:6px 0 0;padding-left:18px;font-size:13px;color:var(--muted)}.breakeven strong{color:var(--deep);font-variant-numeric:tabular-nums}
@media(max-width:970px){.business-panel{grid-template-columns:1fr}}
@media(max-width:700px){.ladder{grid-template-columns:1fr}.business-fields{grid-template-columns:1fr}.month-flow{grid-template-columns:1fr 1fr}.month-total{grid-column:1/-1}}
.template-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}.template-picker>span{font-size:12px;font-weight:600;color:var(--muted);margin-right:4px}.template-picker .chip{border:1px solid #c8d2bf;background:#fffffa;border-radius:20px;padding:7px 12px;min-height:38px;font-size:12px;font-weight:600;color:var(--deep)}.template-note{display:flex;gap:8px;align-items:flex-start;background:var(--amber-bg);color:#6d4a17;border-radius:10px;padding:10px 12px;font-size:12.5px;line-height:1.5;margin-bottom:14px}.template-note svg{width:16px;height:16px;flex-shrink:0;margin-top:1px}
.locked-card{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:linear-gradient(180deg,#fbfcf7,#f4f7ee);border:1px dashed #c8d4bc;border-radius:16px;padding:16px 18px;margin-bottom:18px}
.locked-card>div{flex:1 1 260px;min-width:0}.locked-card h3{font-size:14px;color:var(--deep);margin-bottom:3px}.locked-card p{font-size:13px;color:var(--muted);line-height:1.5}
.locked-badge{font-size:10px;font-weight:700;letter-spacing:1.4px;background:var(--deep);color:#eef3e2;padding:4px 8px;border-radius:6px;align-self:flex-start}
.upgrade-list{list-style:none;padding:0;margin:0 0 14px;display:grid;gap:10px;font-size:14px}.upgrade-list li{padding-left:22px;position:relative}.upgrade-list li::before{content:"";position:absolute;left:2px;top:.5em;width:10px;height:6px;border-left:2px solid #2e7d4f;border-bottom:2px solid #2e7d4f;transform:rotate(-45deg)}
.product-facts .locked-card{margin-bottom:0}
/* Language picker: in the top bar on wide screens, at the end of the page on phones and tablets. */
.foot-lang{display:none}
.foot-lang .lang-select select{font-size:13px;color:#4f5f55;max-width:none}
@media(max-width:970px){.foot-lang{display:block;margin-top:14px}}

/* Phone QA fixes: price warning, aligned form fields, larger tap targets, cookie banner above the tab bar. */
.pricing-warning{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:9px;background:var(--amber-bg);color:var(--amber);font-size:11px;line-height:1.6}.pricing-warning svg{width:15px;height:15px;flex-shrink:0;margin-top:2px}
.footer-help{border:0;background:none;color:inherit;text-decoration:underline;font:inherit;padding:0;cursor:pointer}
@supports(grid-template-rows:subgrid){.field-grid{row-gap:0}.field-grid>.field{grid-row:span 3;grid-template-rows:subgrid;row-gap:7px;align-content:start;margin-bottom:17px}.field-grid>.field>span{align-self:end}}
@media(max-width:700px){.main-footer a,#cookie-settings,.footer-help{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}.recipe-line,.recipe-labels{grid-template-columns:minmax(85px,1fr) 60px 70px 40px}.recipe-line .icon-button{min-width:40px}.dm-cookie-banner{bottom:calc(78px + env(safe-area-inset-bottom));max-height:calc(100dvh - 160px);overflow:auto}}
@media(max-width:360px){.recipe-line,.recipe-labels{grid-template-columns:minmax(80px,1fr) 54px 62px 40px}.recipe-line .icon-button{min-width:40px}}
/* Interface review, 2 Nov 2026 */
.cloud-toolbar[hidden]{display:none}
.first-steps{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 22px;margin:0 0 24px;box-shadow:var(--shadow)}
.first-steps h2{font-family:Georgia,serif;font-weight:400;font-size:22px;letter-spacing:-.5px;margin-bottom:14px}
.first-steps ol{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.first-step{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #edf0e8}
.first-step:first-child{border-top:0;padding-top:0}
.first-step h3{font-size:14px;font-weight:650;margin-bottom:3px}.first-step p{font-size:12px;color:var(--muted);line-height:1.5}
.first-steps-note{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:var(--muted);line-height:1.5;margin-top:14px}.first-steps-note svg{width:15px;height:15px;flex-shrink:0;margin-top:1px}
.dialog-foot{position:sticky;bottom:0;z-index:2;box-shadow:0 -8px 18px #10302512}
.form-more{border-top:1px solid var(--line);margin-top:23px}
.form-more>summary{list-style:none;cursor:pointer;padding:18px 34px 6px 0;position:relative;display:grid;gap:4px;min-height:44px}
.form-more>summary::-webkit-details-marker{display:none}
.form-more>summary span{font-size:13px;font-weight:600}.form-more>summary small{font-size:11px;color:var(--muted);line-height:1.5}
.form-more>summary::after{content:"+";position:absolute;right:4px;top:14px;width:26px;height:26px;border-radius:50%;background:#eef3e6;color:var(--deep);display:grid;place-items:center;font-size:18px;line-height:1}
.form-more[open]>summary::after{content:"−"}
.form-more>.field-grid{margin-top:14px}
.cost-breakdown summary{display:inline-flex;align-items:center;gap:6px;border:1px solid #dce3d4;border-radius:9px;padding:9px 12px;min-height:40px;margin-top:12px;color:var(--deep);font-weight:600;background:#fbfcf8}
.pro-teaser .button{white-space:normal;text-align:center;max-width:100%}
@media(max-width:700px){
  .first-steps{padding:16px}.first-step{grid-template-columns:auto 1fr}.first-step>.button{grid-column:2;justify-self:start}
  .page-heading h1{font-size:25px;letter-spacing:-.8px;max-width:none}.page-heading p{max-width:none}
  .heading-actions{padding-top:0}
  .recipe-labels{display:none}
  .recipe-line,.recipe-line:where(*){grid-template-columns:1fr 1fr 44px;gap:6px;padding:10px;border:1px solid #e6ebe0;border-radius:12px;background:#fbfcf8}
  .recipe-line>label:first-child{grid-column:1/-1}
  .recipe-line .icon-button{min-width:44px}
  .pro-teaser .button{width:100%}
  #lang-host{display:none}
}
@media(max-width:360px){.recipe-line,.recipe-labels{grid-template-columns:1fr 1fr 44px}}
@media(min-width:701px) and (max-width:970px){#lang-host .lang-select select{max-width:70px}}
.dash-panel:empty{display:none}
/* Desktop review: wrap KPI notes, single column dashboard below 1180px so charts keep their width */
.kpi-note{white-space:normal;overflow:visible}
@media(max-width:1180px){.dash-grid{grid-template-columns:1fr}}
/* Launch audit: readable footer on phones, maker line */
.main-footer .maker{display:block;margin-top:4px}.main-footer .maker a{color:inherit}
@media(max-width:700px){.main-footer{font-size:12px;color:#5f6b61}.main-footer a,.main-footer button{color:#3f4f45}}
/* Phone QA, 2 Nov evening: focused fields stay above the sticky Save bar; larger tap targets */
dialog{scroll-padding-bottom:150px;scroll-padding-top:20px}
@media(max-width:700px){.target-input input{min-height:44px;width:84px}.button.text{min-height:44px}input[type=range]{min-height:36px}.dialog-foot .buttons .button{padding-left:12px;padding-right:12px}}

/* ===== iOS layer (Nov 2026): system type, grouped surfaces, frosted bars, sheets, tactile taps ===== */
:root{--ios-bg:#f2f2ee;--ios-card:#fff;--ios-sep:#e2e3dd;--ios-label2:#5f655d;--ios-fill:#e9eae4;--ios-green:#2f7a45;--ios-ok-bg:#e3f2e1;--ios-ok:#1e6b3a;--ios-warn-bg:#fcebd3;--ios-warn:#8a4b00;--ios-r:20px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,"Segoe UI",system-ui,sans-serif;background:var(--ios-bg);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
body{background:var(--ios-bg)}
.sidebar-note h3,.page-heading h1,.empty-state h2,.dialog-head h2,.pro-teaser h2,.first-steps h2{font-family:inherit;font-weight:700;letter-spacing:-.022em}
.page-heading h1{font-size:34px;line-height:1.15}
.dialog-head h2{font-size:22px;line-height:1.2}
.first-steps h2,.empty-state h2,.pro-teaser h2{font-size:22px}
.eyebrow{letter-spacing:.06em;font-size:12px;font-weight:600;text-transform:uppercase;color:var(--ios-label2)}
.kpi,.dash-card,.dash-action,.first-steps,.table-panel,.detail-card,.stat-card,.product-card{border:0;border-radius:var(--ios-r);box-shadow:0 1px 2px #14201908}
.button{border-radius:14px;font-weight:600;transition:transform .14s cubic-bezier(.3,.7,.4,1),background .15s,opacity .15s}
.button.secondary{background:var(--ios-fill);border-color:transparent}
.button.secondary:hover{background:#dfe1d9}
.badge{border-radius:9px;font-weight:600}
input,select,textarea{border-radius:12px}
@media(hover:none){.button:active,.product-card:active,.nav-item:active,.review-card:active,.stepper button:active,.dash-action .button:active{transform:scale(.965);opacity:.85}}
@media(prefers-reduced-motion:reduce){.button:active,.product-card:active,.review-card:active{transform:none}}

/* Today: the margin ring, the milk price stepper, the weekly review */
.today-stack{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;margin:0 0 22px}
.pulse{grid-row:span 2;background:var(--ios-card);border-radius:var(--ios-r);padding:22px;display:flex;gap:22px;align-items:center;box-shadow:0 1px 2px #14201908}
.ring{--deg:0deg;width:132px;height:132px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:conic-gradient(var(--ring,#9db8a6) var(--deg),#e7eae2 var(--deg));transition:--deg .4s}
.ring.good{--ring:#3e8a4f}.ring.below{--ring:#d98a1e}
.ring>div{width:104px;height:104px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ring strong{font-size:25px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ring span{font-size:10.5px;color:var(--ios-label2);max-width:72px;line-height:1.2}
.pulse-main{display:flex;flex-direction:column;gap:6px;min-width:0}
.pulse-label{font-size:13px;color:var(--ios-label2)}
.pulse-value{font-size:32px;font-weight:700;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:tabular-nums}
.pulse-value.neg{color:#b34f41}
.pulse-note{font-size:13px;color:var(--ios-label2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pulse-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.acct-glyph{display:none}
.pchip{line-height:1.3;font-size:12px;font-weight:600;padding:5px 10px;border-radius:10px;background:#eef5e0;color:#2c5a14}
.pchip.warn{background:var(--ios-warn-bg);color:var(--ios-warn)}.pchip.ok{background:var(--ios-ok-bg);color:var(--ios-ok)}
@property --deg{syntax:'<angle>';inherits:false;initial-value:0deg}
.milk-card{background:var(--ios-card);border-radius:var(--ios-r);padding:18px 20px;display:flex;flex-direction:column;gap:10px;box-shadow:0 1px 2px #14201908}
.milk-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.milk-card h2{font-size:15px;font-weight:600;letter-spacing:-.01em}
.milk-value{margin-top:2px}.milk-value strong{font-size:28px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.milk-value span{font-size:15px;color:var(--ios-label2)}
.stepper{display:flex;background:var(--ios-bg);border-radius:12px;padding:3px;flex-shrink:0}
.stepper button{width:50px;min-height:44px;border-radius:10px;display:grid;place-items:center;color:var(--ink);transition:transform .12s,background .12s}
.stepper button:hover{background:#e6e8e1}.stepper svg{width:18px;height:18px}
.stepper i{width:1px;background:#d8dad3;margin:10px 0}
.milk-impact{font-size:14px;line-height:1.45;color:#4a5048}.milk-impact strong{color:var(--ink);font-variant-numeric:tabular-nums}
.review-card{display:flex;align-items:center;gap:14px;text-align:left;background:var(--deep);color:#fff;border-radius:var(--ios-r);padding:16px 18px;min-height:72px;transition:transform .14s}
.review-icon{width:40px;height:40px;border-radius:12px;background:#d9efa8;color:var(--deep);display:grid;place-items:center;flex-shrink:0}
.review-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.review-text strong{font-size:15px;font-weight:600}.review-text span{font-size:13px;color:#c5d6cc}
.review-new{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;background:#d9efa8;color:var(--deep);padding:4px 8px;border-radius:8px}
.review-card .chev{width:16px;height:16px;color:#9fbcad;flex-shrink:0}
.install-card{grid-column:1/-1;display:flex;align-items:center;gap:14px;background:#eef3e6;border-radius:var(--ios-r);padding:14px 10px 14px 18px}
.install-card .review-icon{background:var(--deep);color:#d9efa8}.install-card h2{font-size:15px;font-weight:600}.install-card p{font-size:13px;line-height:1.4;color:#4a5048;margin-top:2px}.install-card>div{flex:1}
.install-close{width:44px;height:44px;border-radius:22px;display:grid;place-items:center;color:var(--ios-label2);flex-shrink:0}.install-close svg{width:14px;height:14px}

/* Weekly review sheet */
dialog[data-kind=review]{background:var(--deep);color:#fff}
.review-sheet{padding:28px 26px 26px;display:flex;flex-direction:column;gap:6px}
.rv-eyebrow{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#d9efa8;margin-bottom:10px}
.rv-lead{font-size:16px;color:#c5d6cc;line-height:1.4}
.rv-big{font-size:56px;line-height:1.05;font-weight:800;letter-spacing:-.045em;font-variant-numeric:tabular-nums;margin:2px 0}.rv-big.neg{color:#f6c9a8}
.rv-tiles{display:grid;gap:10px;margin:18px 0 8px}
.rv-tile{background:#ffffff14;border-radius:18px;padding:15px 16px;display:flex;flex-direction:column;gap:3px}
.rv-tile span{font-size:13px;color:#c5d6cc}.rv-tile strong{font-size:18px;font-weight:700;line-height:1.3}.rv-tile em{font-style:normal;font-size:14px;color:#d9efa8}
.rv-tile .rv-task{font-size:16px;font-weight:600}
.rv-foot{font-size:13px;color:#9fbcad;line-height:1.45;margin:6px 0 14px}
.rv-done{background:#d9efa8;color:var(--deep);min-height:52px;font-size:17px;width:100%}
.rv-done:hover{background:#cfe79a}

/* Sheets slide up */
dialog[open]{animation:ios-sheet .42s cubic-bezier(.2,.9,.25,1)}
dialog::backdrop{background:#0a100c55;backdrop-filter:none}
dialog[open]::backdrop{animation:ios-fade .3s ease-out}
@keyframes ios-sheet{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes ios-fade{from{opacity:0}to{opacity:1}}
.dialog-foot{background:#fff}
.toast{border-radius:999px;font-size:14px;font-weight:600;padding:12px 20px;background:#141a16eb;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.bar-title{display:none}

@media(max-width:970px){.today-stack{grid-template-columns:1fr}.pulse{grid-row:auto}}

/* Phone: iOS navigation, large titles, comfortable type (16px fields stop Safari zooming) */
@media(max-width:700px){
  body{font-size:16px}
  .sidebar{position:sticky;top:0;height:auto;min-height:56px;padding:calc(6px + env(safe-area-inset-top)) 16px 6px;background:transparent;border-bottom:.5px solid transparent;z-index:15;transition:border-color .2s}
  .sidebar::before{content:"";position:absolute;inset:0;z-index:-1;background:#f2f2eecc;backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px)}
  body.title-away .sidebar{border-bottom-color:#0000001f}
  .brand{font-size:19px;transition:opacity .2s}.brand small{display:none}.brand-mark{width:30px;height:30px;border-radius:9px}.brand-mark svg{width:22px;height:22px}
  .bar-title{display:block;position:absolute;left:58px;top:calc(env(safe-area-inset-top) + 6px);height:44px;line-height:44px;transform:translateY(6px);font-size:17px;font-weight:600;letter-spacing:-.01em;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;white-space:nowrap;max-width:calc(100vw - 236px);overflow:hidden;text-overflow:ellipsis}
  body.title-away .bar-title{opacity:1;transform:none}
  body.title-away .brand>span:last-child{opacity:0}
  .topbar{position:fixed;top:env(safe-area-inset-top);right:8px;height:56px;z-index:16}
  .topbar .icon-button{width:36px;min-width:36px;min-height:40px}.topbar .icon-button svg{width:22px;height:22px}
  .topbar .currency-select select{min-height:36px;width:86px;border-radius:10px;background:#fff;border:0;padding:6px 22px 6px 10px;font-weight:600;font-size:16px!important}
  .topbar-actions{gap:6px}
  .account-link{width:36px;height:36px;display:grid;place-items:center;border-radius:18px;background:var(--deep);color:#d9efa8!important}
  .account-link .acct-glyph{display:block;width:20px;height:20px}
  .account-link>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
    .navigation{background:#f8f8f5d1;backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:.5px solid #0000001f;gap:0;padding:4px 4px calc(2px + env(safe-area-inset-bottom))}
  .nav-item{background:none!important;color:#8a8e86;font-size:10px;white-space:normal;overflow-wrap:anywhere;font-weight:600;gap:3px;min-height:50px;padding:4px 2px;border-radius:0;line-height:1.15}
  .nav-item.active{color:var(--deep)}
  .nav-item svg{width:25px;height:25px;stroke-width:1.8}
  main{padding:8px 16px calc(96px + env(safe-area-inset-bottom))}
  .page-heading{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:18px}
  .page-heading h1{font-size:30px;line-height:1.16;letter-spacing:-.025em;max-width:none}
  .page-heading p{font-size:15px;line-height:1.45;max-width:none;margin-top:8px;color:var(--ios-label2)}
  .eyebrow{font-size:12px;letter-spacing:.04em;margin-bottom:6px}
  .heading-actions{padding-top:0}
  .heading-actions .button{font-size:16px;min-height:50px;padding:12px 18px;width:100%}
  .button{font-size:15px;min-height:46px;padding:11px 16px}
  .button.small{font-size:14px;min-height:40px;padding:9px 14px}
  .button.text{font-size:15px;white-space:normal;text-align:left}
  .button{max-width:100%}
  input,select,textarea{font-size:16px!important;min-height:46px;background:#f4f4f1;border:1px solid transparent}
  input:focus,select:focus,textarea:focus{background:#fff;border-color:#9db8a6}
  .field>span,.field label{font-size:14px}
  .field small,.field-hint{font-size:13px;line-height:1.45}
  .today-stack{gap:12px;margin-bottom:18px}
  .pulse{padding:18px;gap:18px}
  .ring{width:112px;height:112px}.ring>div{width:88px;height:88px}.ring strong{font-size:21px}
  .pulse-value{font-size:28px}
  .sample-banner{font-size:13px;line-height:1.45}
  .kpi-label{font-size:13px}.kpi-note{font-size:12px}
  .section-label h2{font-size:22px;font-weight:700;letter-spacing:-.02em}
  .section-label span{font-size:13px}
  .dash-action h3{font-size:16px;line-height:1.3}.dash-action p{font-size:14px;line-height:1.45}
  .first-steps h3{font-size:16px}.first-steps p{font-size:14px;line-height:1.45}
  .product-card{border-radius:16px}
  .product-title,.detail-header h2,.table-item strong,.history-row h3{font-size:16px}
  .badge{font-size:12px;padding:5px 9px}
  .history-row p,.history-row small{font-size:13px}
  .main-footer{font-size:12px;line-height:1.7}
  .toast{top:calc(env(safe-area-inset-top) + 10px);bottom:auto;left:50%;transform:translate(-50%,-16px);font-size:14px;line-height:1.35;padding:11px 16px;border-radius:18px;width:max-content;max-width:calc(100vw - 32px);white-space:normal;text-align:center;z-index:40}
  .toast.show{transform:translate(-50%,0)}
  /* Dialogs become bottom sheets with a grabber */
  dialog{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:22px 22px 0 0;max-height:94dvh;padding-bottom:env(safe-area-inset-bottom);transition:transform .3s cubic-bezier(.2,.9,.25,1)}
  dialog[open]{animation:ios-sheet-up .42s cubic-bezier(.2,.9,.25,1)}
  dialog::before{content:"";display:block;width:38px;height:5px;border-radius:3px;background:#c9cbc4;margin:8px auto 0;position:sticky;top:8px;z-index:3}
  dialog[data-kind=review]::before{background:#ffffff4d}
  .dialog-head{padding:12px 20px 14px;border-bottom:.5px solid var(--ios-sep)}
  .dialog-head h2{font-size:22px}.dialog-head p{font-size:14px}
  .dialog-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .dialog-foot .buttons{flex:1}.dialog-foot .buttons .button{flex:1;min-height:50px;font-size:16px}
  .review-sheet{padding:18px 20px 24px}
  .rv-big{font-size:52px}
}
@keyframes ios-sheet-up{from{transform:translateY(100%)}to{transform:none}}
@media(prefers-reduced-motion:reduce){dialog[open],dialog[open]::backdrop{animation:none}}
/* Detail pass (3 Nov) */
a.button{text-decoration:none}
.sep{color:inherit}
@media(max-width:700px){
  .section-label{flex-direction:column;align-items:flex-start;gap:2px}
  .section-label>span,.section-label>.button{font-size:13px}
  .main-footer .sep{display:none}
  .main-footer>span:first-child{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
  .main-footer>span:first-child>.footer-dot{display:none}
  .main-footer a,.main-footer button{min-height:32px;display:inline-flex;align-items:center}
  .main-footer .maker a{display:block;min-height:0}
  .cost-table td:first-child{width:100%}
  .cost-table .cost-price{white-space:nowrap}
  .table-item strong{overflow-wrap:normal;word-break:normal;-webkit-hyphens:auto;hyphens:auto}
  .cost-table .button.small{font-size:13px;padding:8px 12px;min-height:38px}
  .help-copy p,.help-step p{font-size:14px;line-height:1.5}
  .help-step h3{font-size:16px}
  .formula{font-size:13px}
  .info-strip{font-size:14px;line-height:1.45}
  .stat-card .stat-label{font-size:12px}.stat-card .stat-note{font-size:11px}
  #material-form .field{grid-column:1/-1}
}
/* desktop-type:start (generated by scripts/desktop-type.py) */
@media(min-width:701px){.brand small{font-size:9px}.nav-caption{font-size:11px}.sidebar-note p{font-size:13px}.help-button{font-size:13.5px}.prototype-label{font-size:10px}.breadcrumb{font-size:13.5px}.device-badge{font-size:12px}.currency-select select{font-size:13px}.eyebrow{font-size:13.5px}.page-heading p{font-size:13.5px}.button{font-size:13.5px}.button.small{font-size:13px}.sample-banner{font-size:13px}.stat-card .stat-label{font-size:13px}.stat-card .stat-note{font-size:11px}.section-label span{font-size:12px}.product-meta{font-size:12px}.product-mini label{font-size:11px}.add-product-card{font-size:13px}.detail-header p{font-size:12px}.badge{font-size:13.5px}.detail-metrics label{font-size:12px}.detail-metrics small{font-size:11px}.detail-section h3{font-size:13.5px}.legend-row{font-size:12px}.text-row{font-size:12px}.text-row b{font-size:13.5px}.cost-breakdown summary{font-size:12px}.line-item{font-size:12px}.pricing-heading h3{font-size:13.5px}.pricing-heading span{font-size:11px}.target-input label{font-size:12px}.target-input input{font-size:13.5px}.target-value small{font-size:12px}.target-result>span{font-size:12px}.pricing-note{font-size:11px}.scenario-caption{font-size:11px}.main-footer{font-size:13.5px}.info-strip{font-size:13px}.cost-table th{font-size:11px}.cost-table td{font-size:13.5px}.table-item strong{font-size:13.5px}.table-item small{font-size:12px}.cost-price small{font-size:12px}.usage-count{font-size:12px}.history-row h3{font-size:13.5px}.history-row p{font-size:12px}.history-values small{font-size:11px}.results-note{font-size:13px}.backup-panel h3{font-size:13.5px}.backup-panel p{font-size:12px}.dialog-head p{font-size:13px}.field>span{font-size:13px}.field small{font-size:12px}.form-section>p{font-size:12px}.recipe-line input,.recipe-line select{font-size:13.5px}.recipe-labels{font-size:11px}.form-error{font-size:13.5px}.field-hint{font-size:12px}.step-number{font-size:13.5px}.help-step p,.help-copy p{font-size:13.5px}.formula{font-size:13px}.toast{font-size:13.5px}.warning-banner{font-size:13.5px}.account-link{font-size:13.5px}.cloud-toolbar{font-size:13.5px}.cloud-toolbar button{font-size:13.5px}.channel-note{font-size:13.5px}.pro-badge{font-size:13px}.pro-note{font-size:13.5px}.pro-table th small{font-size:13px}.pro-chart .tick{font-size:13px}.chart-legend{font-size:13.5px}.chart-tooltip{font-size:13.5px}.tip-reason{font-size:13px}.pro-export small{font-size:13.5px}.kpi-label{font-size:13px}.kpi-note{font-size:13.5px}.margin-value small{font-size:12px}.margin-key{font-size:13px}.share-legend{font-size:13.5px}.driver-name small{font-size:13px}.driver-value small{font-size:13px}.fact-chip span{font-size:13.5px}.ladder-step span{font-size:13px}.ladder-step small{font-size:13px}.business-fields small{font-size:13px}.month-flow span{font-size:13px}.template-picker>span{font-size:13.5px}.template-picker .chip{font-size:13.5px}.template-note{font-size:14px}.locked-badge{font-size:12px}/* Phone QA fixes: price warning, aligned form fields, larger tap targets, cookie banner above the tab bar. */
.pricing-warning{font-size:13px}.first-step p{font-size:13.5px}.first-steps-note{font-size:13px}.form-more>summary small{font-size:13px}.ring span{font-size:12.5px}.pchip{font-size:13.5px}.review-new{font-size:13px}.nav-item{font-size:12px}}
/* desktop-type:end */
/* "What's missing?" feedback form */
#feedback-form .field+.field{margin-top:16px}#feedback-form textarea{width:100%;resize:vertical;font:inherit;font-size:14px;line-height:1.5;padding:10px 12px;border:1px solid var(--line);min-height:120px}.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media(max-width:700px){#feedback-form textarea{font-size:16px}}

.backup-card .button{margin-top:8px}
/* The running estimate stays in view above the Save button while the batch is typed in. */
.dialog-foot{flex-wrap:wrap}.draft-live{flex:1 0 100%;background:#eef4dc;color:var(--deep);border-radius:10px;padding:9px 12px;font-size:12px;font-weight:600;line-height:1.5}
.draft-warn{display:block;margin-top:3px;font-size:11px;font-weight:600;color:#974a28}
/* Monthly report sheet: profit per litre of milk, one row per product */
.rv-litres{list-style:none;margin:6px 0 2px;padding:0;display:grid;gap:6px}
.rv-litres li{display:flex;justify-content:space-between;gap:12px;font-size:15px}
.rv-litres li strong{font-size:15px;font-variant-numeric:tabular-nums}
.rv-litres li:first-child strong{color:#d9efa8}
.rv-tile .rv-apply{margin-top:10px;align-self:flex-start;background:#d9efa8;color:var(--deep);min-height:44px}
.rv-link{color:#d9efa8;align-self:center;margin-bottom:8px}
.rv-tile .rv-changes{font-size:15px;font-weight:500;line-height:1.45}

/* Allergens on the product form and the printed allergen chart */
.allergen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;padding:6px 0 4px}
.allergen-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;font-size:14px}
.allergen-option input{width:20px;height:20px;accent-color:var(--deep,#163f32)}
@media print{#print-report.allergen-report table{font-size:10px}#print-report.allergen-report th.al{writing-mode:vertical-rl;transform:rotate(180deg);text-align:left;white-space:nowrap;height:150px;padding:4px 2px}#print-report.allergen-report td.al{text-align:center;font-size:13px}@page{size:landscape}}
.upgrade-value{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#edf3ec;color:#173e32;font-weight:600;line-height:1.5}
.install-button{color:var(--deep);font-weight:600;text-align:left}.install-button[hidden]{display:none}.install-steps{display:grid;gap:12px;padding-left:20px;font-size:14px;line-height:1.6}
/* Short laptop screens: the side menu must always fit, so the leaf note gives way and the menu scrolls if it still does not fit. */
.sidebar{overflow-y:auto;overscroll-behavior:contain}
@media(min-width:701px) and (max-height:860px){.sidebar{padding-top:24px;padding-bottom:18px}.nav-caption{margin-top:30px}.sidebar-note{display:none}.sidebar-bottom{margin-top:auto;padding-top:18px;gap:16px}}
