:root {
  --ink: #18382f;
  --muted: #71807a;
  --green: #1d4b3e;
  --green-2: #2b6655;
  --sage: #dce8d1;
  --sage-2: #bcd7a5;
  --cream: #f5f2ea;
  --paper: #fffefa;
  --line: #e6e5dd;
  --amber: #d99a3d;
  --danger: #a94747;
  --shadow: 0 16px 45px rgba(24, 56, 47, .08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 14px/1.5 'Avenir Next', Avenir, 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: var(--paper); border-right: 1px solid var(--line); padding: 28px 18px 20px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0 9px; }
.brand-mark { width: 35px; height: 35px; border-radius: 11px; background: var(--green); display: grid; place-items: center; transform: rotate(-6deg); }
.brand-mark span { width: 15px; height: 20px; border-radius: 100% 0 100% 0; background: var(--sage-2); transform: rotate(12deg); position: relative; }
.brand-mark span::after { content: ''; width: 2px; height: 17px; background: white; position: absolute; left: 7px; top: 5px; transform: rotate(38deg); border-radius: 3px; }
.brand b { display: block; font: 700 18px/1 Georgia, serif; letter-spacing: -.3px; }
.brand small { display: block; margin-top: 4px; color: var(--green-2); font: 700 8px/1 'Avenir Next', sans-serif; letter-spacing: 3.5px; }
.side-nav { display: grid; gap: 5px; margin-top: 44px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border-radius: 11px; color: #708079; font-weight: 600; transition: .2s; }
.nav-link:hover { background: #f2f5ef; color: var(--green); }
.nav-link.active { background: var(--green); color: white; box-shadow: 0 8px 18px rgba(29, 75, 62, .15); }
.nav-link svg { width: 19px; }
.side-plan { margin-top: auto; }
.plan-card { padding: 17px; border-radius: 16px; background: #edf3e8; border: 1px solid #dbe7d2; }
.plan-card .plan-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.plan-card .plan-label span:last-child { color: var(--green-2); }
.progress { height: 5px; margin: 12px 0 8px; background: #d3dfcc; border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green-2); border-radius: inherit; }
.plan-card p { margin: 0 0 12px; font-size: 11px; color: var(--muted); }
.text-btn { padding: 0; border: 0; background: none; color: var(--green-2); font-weight: 700; cursor: pointer; }
.side-profile { display: flex; gap: 10px; align-items: center; padding: 19px 6px 0; margin-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #d9bca4; color: white; font-size: 10px; font-weight: 700; }
.side-profile > div:nth-child(2) { min-width: 0; flex: 1; }
.side-profile strong, .side-profile small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-profile strong { font-size: 12px; }
.side-profile small { font-size: 9px; color: var(--muted); }
.icon-btn { border: 0; background: transparent; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 10px; cursor: pointer; position: relative; }
.icon-btn:hover { background: #eef1ec; }
.icon-btn i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: #c86d5a; border-radius: 50%; border: 1px solid white; }

.main { min-height: 100vh; margin-left: 244px; }
.mobile-header, .bottom-nav { display: none; }
.page { max-width: 1260px; margin: 0 auto; padding: 46px 48px 70px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 6px; color: var(--green-2); text-transform: uppercase; font-weight: 700; letter-spacing: 1.7px; font-size: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 700 31px/1.15 Georgia, serif; margin-bottom: 8px; letter-spacing: -.5px; }
h2 { font: 700 21px/1.2 Georgia, serif; margin-bottom: 4px; }
h3 { font-size: 14px; margin-bottom: 4px; }
.subtitle { color: var(--muted); margin: 0; }
.btn { min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; cursor: pointer; transition: .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; }
.btn-primary { background: var(--green); color: white; box-shadow: 0 8px 18px rgba(29,75,62,.15); }
.btn-secondary { background: white; border-color: var(--line); }
.btn-soft { background: #e5eee0; color: var(--green); }
.btn-danger { background: #fff0ee; color: var(--danger); }
.btn-block { width: 100%; }

.hero { min-height: 190px; position: relative; overflow: hidden; padding: 31px 35% 30px 34px; border-radius: 24px; color: white; background: linear-gradient(125deg, #173f35, #295e4f); box-shadow: var(--shadow); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.hero::before { width: 300px; height: 300px; right: -70px; top: -160px; }
.hero::after { width: 220px; height: 220px; right: 35px; bottom: -180px; }
.hero-art { position: absolute; right: 7%; bottom: -3px; width: 210px; height: 180px; }
.bottle { position: absolute; bottom: 0; left: 52px; width: 78px; height: 118px; border: 1px solid rgba(255,255,255,.35); border-radius: 16px 16px 22px 22px; background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.04)); backdrop-filter: blur(8px); }
.bottle::before { content: ''; position: absolute; width: 40px; height: 31px; left: 18px; top: -30px; background: #cbb38e; border-radius: 7px 7px 2px 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.bottle::after { content: 'A'; display: grid; place-items: center; position: absolute; width: 45px; height: 49px; top: 39px; left: 16px; color: var(--green); background: #f4ead7; font: 700 22px Georgia, serif; }
.leaf { position: absolute; bottom: 8px; left: 0; width: 95px; height: 65px; border-radius: 100% 0 100% 0; background: var(--sage-2); transform: rotate(-25deg); opacity: .8; }
.leaf.two { left: 116px; bottom: 35px; transform: rotate(40deg) scale(.7); background: #719982; }
.hero .eyebrow { color: #bad6c6; }
.hero h1 { max-width: 450px; margin-bottom: 10px; }
.hero p { color: #c4d6d0; max-width: 490px; margin-bottom: 20px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 18px 0 30px; }
.stat { background: var(--paper); border: 1px solid var(--line); padding: 18px; border-radius: 16px; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e8f0e3; color: var(--green-2); margin-bottom: 15px; }
.stat-icon.amber { background: #f8ead3; color: #b77925; }
.stat-icon.rose { background: #f5dfdc; color: #a95d54; }
.stat strong { font: 700 24px Georgia, serif; display: block; }
.stat small { color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(24,56,47,.035); }
.card-pad { padding: 22px; }
.list { overflow: hidden; }
.list-row { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fbfcf8; }
.recipe-dot { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; background: #e3ecdb; color: var(--green); font: 700 16px Georgia, serif; }
.recipe-dot.rose { background: #f2dfda; color: #995f58; }
.recipe-dot.gold { background: #f4e8ce; color: #96712c; }
.row-main { min-width: 0; flex: 1; }
.row-main strong, .row-main small { display: block; }
.row-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { color: var(--muted); margin-top: 3px; }
.row-value { text-align: right; }
.row-value strong, .row-value small { display: block; }
.row-value small { color: var(--muted); font-size: 10px; }
.status { border-radius: 99px; padding: 4px 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status.active { background: #e4eee0; color: #2d684d; }
.status.ready { background: #e1edea; color: #2b6559; }
.status.done { background: #efefeb; color: #65706b; }
.status.attention { background: #fbebd2; color: #a66d1d; }

.maceration-card { overflow: hidden; }
.maceration-top { padding: 23px; color: white; background: var(--green); position: relative; }
.maceration-top::after { content: ''; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; position: absolute; right: -30px; top: -65px; }
.maceration-top small { color: #c3d8d0; }
.maceration-top strong { font: 700 30px Georgia, serif; display: block; margin-top: 9px; }
.maceration-body { padding: 18px 22px; }
.batch-mini { padding: 10px 0; border-bottom: 1px solid var(--line); }
.batch-mini:last-child { border: 0; padding-bottom: 0; }
.batch-mini div { display: flex; justify-content: space-between; gap: 10px; }
.batch-mini small { color: var(--muted); }
.mini-progress { height: 4px; border-radius: 6px; background: #e8e9e3; margin-top: 8px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--green-2); border-radius: 6px; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 9px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; }
.search input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; }
.search svg { color: var(--muted); width: 17px; }
.filter { height: 42px; padding: 0 32px 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; }
.recipes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recipe-card { padding: 20px; cursor: pointer; transition: .18s; }
.recipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recipe-card-head { display: flex; justify-content: space-between; align-items: start; }
.recipe-card h3 { font: 700 18px Georgia, serif; margin: 15px 0 4px; }
.recipe-meta { display: flex; gap: 7px; color: var(--muted); font-size: 11px; }
.recipe-cost { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.recipe-cost small, .recipe-cost strong { display: block; }
.recipe-cost small { color: var(--muted); font-size: 10px; }
.recipe-cost strong { margin-top: 2px; }
.empty { text-align: center; padding: 55px 25px; color: var(--muted); }
.empty .stat-icon { margin: 0 auto 15px; width: 48px; height: 48px; }

.timeline { position: relative; }
.batch-card { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 20px; margin-bottom: 12px; }
.days-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green-2) var(--pct), #e4e9e1 0); position: relative; }
.days-ring::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.days-ring span { position: relative; z-index: 1; font-weight: 700; font-size: 11px; }
.batch-card h3 { font: 700 17px Georgia, serif; }
.batch-card p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.batch-actions { display: flex; align-items: center; gap: 10px; }

.labels-layout { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }
.label-controls .field { margin-bottom: 16px; }
.label-preview-wrap { display: grid; place-items: center; padding: 45px; min-height: 460px; background-color: #e7e4dc; background-image: radial-gradient(#c9c6bd 1px, transparent 1px); background-size: 15px 15px; border-radius: var(--radius); }
.product-label { width: 290px; min-height: 370px; padding: 32px 26px; background: #f8f2e7; border: 1px solid #cec4b4; box-shadow: 0 20px 40px rgba(36,42,35,.17); display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.product-label::before, .product-label::after { content: ''; position: absolute; width: 150px; height: 70px; border: 1px solid #a8b99e; border-radius: 100% 0; opacity: .45; }
.product-label::before { top: -42px; left: -55px; transform: rotate(20deg); }
.product-label::after { right: -52px; bottom: -40px; transform: rotate(210deg); }
.label-brand { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: #697b70; }
.label-ornament { width: 42px; height: 1px; background: #93a28f; margin: 42px 0 24px; position: relative; }
.label-ornament::after { content: '◆'; position: absolute; left: 17px; top: -8px; font-size: 9px; background: #f8f2e7; padding: 2px; }
.product-label h2 { max-width: 240px; font-size: 30px; }
.product-label .type { color: #718077; text-transform: uppercase; letter-spacing: 2px; font-size: 9px; }
.label-notes { margin-top: auto; color: #697b70; font: italic 12px Georgia, serif; }
.label-volume { margin-top: 24px; font-size: 11px; letter-spacing: 1px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card { padding: 23px; }
.settings-card h3 { font: 700 17px Georgia, serif; }
.settings-card > p { color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 11px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dfe2dc; background: #fff; border-radius: 10px; padding: 11px 12px; outline: none; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #78a18f; box-shadow: 0 0 0 3px rgba(43,102,85,.08); }
.field textarea { resize: vertical; min-height: 75px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.settings-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.ranking { display: grid; gap: 17px; margin-top: 22px; }
.rank-row { display: flex; align-items: center; gap: 13px; }
.rank-number { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); background: #e6eee1; font-weight: 700; font-size: 11px; }
.rank-main { flex: 1; min-width: 0; }
.rank-main > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.rank-main small { color: var(--muted); white-space: nowrap; }
.rank-bar { height: 5px; margin-top: 8px; background: #e8e9e3; border-radius: 8px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.insight { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.insight:last-child { border-bottom: 0; }
.insight .stat-icon { margin: 0; flex: 0 0 auto; }
.insight small, .insight strong { display: block; }
.insight small { color: var(--muted); font-size: 9px; }
.insight strong { margin-top: 3px; }

.paywall { max-width: 920px; margin: 10px auto; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.paywall-art { min-height: 570px; padding: 42px; color: white; background: linear-gradient(145deg, #153a31, #2c6454); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.paywall-art::before { content: ''; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -180px; bottom: 20px; }
.paywall-art h1 { font-size: 37px; margin-top: auto; }
.paywall-art p { color: #c3d7d0; }
.paywall-body { padding: 44px; background: var(--paper); }
.price { margin: 26px 0; }
.price strong { font: 700 42px Georgia, serif; }
.price span { color: var(--muted); }
.margin-note { margin-top: 24px; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.08); }
.margin-note strong, .margin-note span { display: block; }
.margin-note span { margin-top: 4px; color: #c3d7d0; font-size: 11px; }
.pricing-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.pricing-card { position: relative; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fafbf7; }
.pricing-card.featured { border-color: #b7d1bd; background: #edf5e9; box-shadow: 0 12px 32px rgba(45,104,77,.09); }
.pricing-card em { position: absolute; top: -11px; right: 12px; padding: 4px 8px; border-radius: 99px; color: white; background: var(--green-2); font-size: 9px; font-style: normal; font-weight: 700; }
.pricing-card small, .pricing-card strong, .pricing-card span { display: block; }
.pricing-card small { color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 700; }
.pricing-card strong { margin-top: 3px; font: 700 27px Georgia, serif; }
.pricing-card span, .pricing-card p { color: var(--muted); font-size: 11px; }
.pricing-card p { margin: 0; }
.features { display: grid; gap: 13px; margin: 25px 0 30px; }
.feature { display: flex; align-items: center; gap: 11px; }
.feature i { width: 24px; height: 24px; border-radius: 50%; background: #e1edda; color: var(--green-2); display: grid; place-items: center; }
.feature svg { width: 14px; }
.fineprint { color: var(--muted); font-size: 10px; text-align: center; margin-top: 13px; }

.dialog { width: min(580px, calc(100% - 28px)); border: 0; border-radius: 20px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 80px rgba(17,44,36,.25); }
.dialog-wide { width: min(760px, calc(100% - 28px)); }
.dialog-small { width: min(410px, calc(100% - 28px)); }
.dialog::backdrop { background: rgba(16,39,33,.48); backdrop-filter: blur(3px); }
.dialog-head { padding: 22px 24px 16px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; }
.dialog-body { padding: 22px 24px; max-height: min(66vh, 620px); overflow: auto; }
.dialog-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.ingredient-table { margin-top: 18px; }
.ingredient-head, .ingredient-row { display: grid; grid-template-columns: 1.4fr .55fr .55fr 72px; gap: 9px; align-items: center; }
.ingredient-head { color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 700; padding: 0 4px 6px; }
.ingredient-row { margin-bottom: 8px; }
.ingredient-row input, .ingredient-row select { width: 100%; min-width: 0; border: 1px solid #dfe2dc; background: white; border-radius: 9px; padding: 9px; }
.ingredient-actions { display: flex; align-items: center; }
.complete-btn { color: #8a6825; background: #faf0d7; }
.readonly-cost { min-height: 40px; display: flex; flex-direction: column; justify-content: center; padding: 6px 10px; background: #f2f3ee; color: var(--green); font-weight: 700; border-radius: 9px; white-space: nowrap; }
.readonly-cost strong, .readonly-cost small { display: block; line-height: 1.25; }
.readonly-cost small { color: var(--muted); font-size: 9px; font-weight: 500; }
.ingredient-hint { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.summary-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 17px; }
.summary-strip div { padding: 13px; background: #f8f9f5; }
.summary-strip small, .summary-strip strong { display: block; }
.summary-strip small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.summary-strip strong { margin-top: 3px; }
.summary-strip em { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; }
.upgrade-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 18px; margin-bottom: 17px; border: 1px solid #d7e3cf; background: #eaf1e5; border-radius: 15px; }
.upgrade-banner > div { display: flex; align-items: center; gap: 12px; }
.upgrade-banner .stat-icon { margin: 0; flex: 0 0 auto; }
.upgrade-banner p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.upgrade-banner.warning { background: #fbf0dc; border-color: #efdbb8; }
.supply-table { overflow: hidden; }
.supply-head, .supply-row { display: grid; grid-template-columns: 1.5fr .7fr .7fr .7fr 80px; gap: 14px; align-items: center; }
.supply-head { padding: 12px 19px; color: var(--muted); background: #f6f7f3; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 9px; font-weight: 700; }
.supply-row { min-height: 76px; padding: 12px 19px; border-bottom: 1px solid var(--line); }
.supply-row:last-child { border-bottom: 0; }
.supply-row strong, .supply-row small { display: block; }
.supply-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.supply-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.supply-name .recipe-dot { width: 38px; height: 38px; }
.supply-name .recipe-dot svg { width: 17px; }
.supply-name > div { min-width: 0; }
.supply-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.supply-actions { display: flex; justify-content: flex-end; }
.stock-lock { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 0; border-radius: 8px; color: #876721; background: #f8edd5; font-size: 10px; font-weight: 700; cursor: pointer; }
.stock-lock svg { width: 12px; height: 12px; }
.pro-inline { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 12px; border-radius: 10px; color: #765d26; background: #faf1dd; font-size: 11px; }
.pro-inline svg { width: 16px; flex: 0 0 auto; }
.batch-stock-summary { margin-top: 14px; padding: 12px; border: 1px solid #d7e3cf; border-radius: 10px; background: #eef4e9; font-size: 11px; }
.batch-stock-summary.has-error { border-color: #efc7bd; background: #fff0ec; }
.batch-stock-summary strong, .batch-stock-summary span { display: block; }
.batch-stock-summary div { display: grid; gap: 4px; margin-top: 7px; color: var(--muted); }
.danger-text { color: var(--danger) !important; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 10px; }
.toast { min-width: 240px; padding: 13px 16px; border-radius: 12px; color: white; background: #1e4439; box-shadow: var(--shadow); animation: toast-in .25s ease; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1050px) {
  .sidebar { width: 215px; }
  .main { margin-left: 215px; }
  .page { padding-inline: 28px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .recipes-grid { grid-template-columns: repeat(2,1fr); }
  .hero { padding-right: 32%; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .mobile-header { display: flex; height: 67px; padding: 0 17px; align-items: center; justify-content: space-between; background: rgba(255,254,250,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(12px); }
  .mobile-header .brand { padding: 0; transform: scale(.9); transform-origin: left; }
  .page { padding: 25px 16px 35px; }
  .bottom-nav { display: flex; position: fixed; inset: auto 0 0; height: calc(66px + env(safe-area-inset-bottom)); padding: 5px 7px env(safe-area-inset-bottom); background: rgba(255,254,250,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); z-index: 30; justify-content: space-around; }
  .bottom-nav .nav-link { flex: 1; flex-direction: column; justify-content: center; gap: 2px; padding: 5px 2px; border-radius: 9px; font-size: 9px; font-weight: 600; }
  .bottom-nav .nav-link.active { background: transparent; box-shadow: none; color: var(--green); }
  .bottom-nav .nav-link svg { width: 20px; height: 20px; }
  .page-head { align-items: start; margin-bottom: 22px; }
  .page-head h1 { font-size: 26px; }
  .page-head .subtitle { font-size: 12px; }
  .page-head .btn span { display: none; }
  .hero { padding: 27px 25px 155px; min-height: 380px; }
  .hero h1 { font-size: 28px; }
  .hero-art { right: calc(50% - 100px); width: 200px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 10px; margin: 12px 0 25px; }
  .stat { padding: 14px; }
  .stat-icon { margin-bottom: 10px; }
  .stat strong { font-size: 21px; }
  .grid-two { grid-template-columns: 1fr; }
  .recipes-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .search { max-width: none; flex-basis: 100%; }
  .filter { flex: 1; }
  .batch-card { grid-template-columns: 50px 1fr; padding: 15px; gap: 12px; }
  .batch-actions { grid-column: 1/-1; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
  .labels-layout, .settings-grid, .paywall { grid-template-columns: 1fr; }
  .label-controls { order: 2; }
  .label-preview-wrap { min-height: 410px; padding: 25px; }
  .product-label { transform: scale(.88); }
  .paywall-art { min-height: 260px; padding: 28px; }
  .paywall-art h1 { font-size: 30px; }
  .paywall-body { padding: 28px; }
  .pricing-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: 1fr; }
  .ingredient-head { display: none; }
  .ingredient-row { grid-template-columns: 1fr 1fr; padding: 10px; background: #f7f8f4; border-radius: 11px; }
  .ingredient-row select:first-child { grid-column: 1/-1; }
  .ingredient-actions { justify-content: flex-end; }
  .dialog-body { padding: 18px; }
  .dialog-foot { padding: 14px 18px 18px; }
  .toast-region { left: 16px; right: 16px; bottom: 82px; }
  .sales-summary { grid-template-columns: 1fr 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .rank-main > div:first-child { align-items: start; flex-direction: column; gap: 2px; }
  .upgrade-banner { align-items: stretch; flex-direction: column; }
  .supply-head { display: none; }
  .supply-row { grid-template-columns: 1fr 1fr; gap: 11px; padding: 16px; }
  .supply-name { grid-column: 1/-1; }
  .supply-actions { position: absolute; right: 13px; margin-top: -2px; }
  .supply-row { position: relative; }
}

@media (max-width: 420px) {
  .bottom-nav .nav-link { font-size: 7px; padding-inline: 0; }
  .bottom-nav .nav-link svg { width: 17px; height: 17px; }
}

@media print {
  body * { visibility: hidden; }
  .product-label, .product-label * { visibility: visible; }
  .product-label { position: fixed; left: 0; top: 0; box-shadow: none; }
}
