:root{--bg:#f1ebf7;--surface:#faf7fe;--surface-muted:#e9dff3;--surface-selected:#f6dce9;--surface-pink:#f8e8f0;--ink:#382443;--muted:#62466f;--text-secondary:#55385f;--border:#c6b0d7;--field-bg:#fff9ed;--field-border:#987dad;--control-hover:#f2d7e6;--link:#95246f;--accent:#0b6870;--accent-surface:#e0eeed;--focus:#0b6870;--chart-track:#d8c6e8;--chart-accent:#db8b27;--primary-bg:#a52279;--primary-ink:#fff9ed;--primary-hover:#861660;--range-thumb:#a52279;--sidebar-bg:#e2d3ef;--sidebar-ink:#321b43;--sidebar-muted:#4e345f;--sidebar-border:#b99bcd;--sidebar-hover:#d5c1e7;--sidebar-active-bg:var(--primary-bg);--sidebar-active-ink:var(--primary-ink);--feature-bg:#654780;--feature-ink:#fff5e6;--feature-muted:#e8d7f2;--feature-accent:#f7bad7;--feature-divider:#977fab;--positive-bg:#e1efdf;--positive-text:#286747;--positive-border:#598a66;--warning-bg:#fff0d7;--warning-text:#85531c;--warning-border:#c18b48;--warning-accent:#ce872a;--purple-bg:#e6d6f0;--purple-text:#64408a;--blue-bg:#e0edf5;--blue-text:#285e80;--neutral-bg:#e8e1eb;--neutral-text:#665170;--invalid:#a52279;--radius:12px;--shadow:0 2px 5px #3f245a10, 0 12px 28px -12px #3f245a30;--shadow-raised:0 5px 12px #3f245a15, 0 18px 36px -16px #3f245a45;--shadow-control:0 1px 2px #3f245a14, 0 3px 7px #3f245a0d;--shadow-sidebar:4px 0 20px #3f245a1f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--ink);background:var(--bg);font-synthesis:none;font-family:Inter,Arial,Helvetica,sans-serif;font-size:100%;line-height:1.5}@media screen{:root[data-theme=dark]{--bg:#191a20;--surface:#24252d;--surface-muted:#2e303a;--surface-selected:#3c2e38;--surface-pink:#30282e;--ink:#f2eef5;--muted:#bdb6c8;--text-secondary:#d0c7d7;--border:#50515e;--field-bg:#1c1d24;--field-border:#898493;--control-hover:#34313c;--link:#f2b2d9;--accent:#86d6da;--accent-surface:#25393d;--focus:#88dadd;--chart-track:#55515f;--primary-bg:#e767c0;--primary-ink:#321a33;--primary-hover:#f089d0;--range-thumb:#86d6da;--sidebar-bg:#202129;--sidebar-ink:#eee8f3;--sidebar-muted:#c3bacd;--sidebar-border:#5c5b67;--sidebar-hover:#34323c;--sidebar-active-bg:#43313c;--sidebar-active-ink:#ffd1eb;--feature-bg:#31303b;--feature-muted:#ddd1e6;--feature-accent:#f1bfdc;--feature-divider:#746a80;--shadow:0 2px 5px #00000035, 0 14px 30px -12px #00000085;--shadow-raised:0 5px 12px #00000050, 0 20px 40px -16px #000000a6;--shadow-control:0 2px 5px #00000045;--shadow-sidebar:4px 0 20px #0005;--positive-bg:#26392f;--positive-text:#b7e3bc;--positive-border:#79ab82;--warning-bg:#3a3125;--warning-text:#f2d4a2;--warning-border:#a67b45;--warning-accent:#f0b15b;--purple-bg:#38313f;--purple-text:#dfc1f4;--blue-bg:#29343f;--blue-text:#b6daf1;--neutral-bg:#34303a;--neutral-text:#d7c3e2;--invalid:#ed8ac8;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}#view-start{overflow-anchor:none;max-width:1240px;margin-inline:auto}.starter-stage-nav{z-index:2;background:var(--bg);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:-8px 0 16px;padding:8px 0;display:grid;position:sticky;top:0}.starter-stage{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-control);justify-content:center;align-items:center;gap:10px;padding:12px 8px;font-weight:600;display:flex}.starter-stage span{background:var(--surface-muted);border-radius:50%;place-items:center;width:26px;height:26px;display:grid}.starter-stage[aria-current=step]{background:var(--accent-surface);border-color:var(--accent);box-shadow:inset 0 -3px var(--accent), var(--shadow-control)}.starter-stage-title{margin-bottom:18px;scroll-margin-top:100px}.starter-recipes{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px;display:grid}.starter-recipe{flex-direction:column;align-items:flex-start;gap:12px;padding:24px;display:flex}.starter-recipe.selected{background:var(--surface-selected);border-color:var(--link);box-shadow:inset 0 3px var(--link), var(--shadow-raised)}.starter-recipe h3{font-size:1.2rem}.starter-recipe>.button{margin-top:auto}.starter-process{--sketch-oil:#f0d29c;--sketch-pink:#edbfd9;--sketch-water:#b9dfe0;align-self:center;width:100%;max-width:280px;margin:0}@media screen{:root[data-theme=dark] .starter-process{--sketch-oil:#746043;--sketch-pink:#685365;--sketch-water:#315158}}.starter-process svg{width:100%;height:100px;display:block}.sketch-line{fill:none;stroke:var(--ink);stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}.sketch-oil{fill:var(--sketch-oil)}.sketch-pink{fill:var(--sketch-pink)}.sketch-water{fill:var(--sketch-water)}.sketch-pupil{fill:var(--ink)}.sketch-arrow{stroke:var(--muted)}.sketch-heat{stroke:var(--warning-text)}.sketch-cool{stroke:var(--accent)}.starter-process figcaption{text-align:center;min-height:36px;color:var(--text-secondary);grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:.75rem;display:grid}.starter-ratio{margin:0 0 12px}.starter-ratio svg{pointer-events:none;width:100%;max-width:440px;margin:0 auto 10px;display:block}.starter-ratio figcaption{text-align:center}.starter-ratio figcaption>span{margin-top:4px;display:block}.starter-ratio .ratio-muted{opacity:.2}@media (hover:none){.starter-ratio figcaption>span{display:none}}.starter-swatch{border:1px solid var(--border);border-radius:3px;width:12px;height:12px;margin-right:8px;display:inline-block}.starter-targets strong{text-align:right}.starter-targets strong>span{font-weight:400;display:block}.starter-context,.starter-panel{margin-bottom:20px;padding:24px}.starter-panel h3,.starter-context h3{margin-bottom:14px}.starter-panel>.field+.field,.starter-panel>details+.field,.starter-panel .reference-notes>.field,.starter-panel>p+.button-row,.starter-panel>.production-grid,.starter-panel>summary+.production-grid{margin-top:16px}.starter-next-ideas>summary{font-weight:600}.starter-reading-checks{margin:12px 0;padding-left:20px}#starter-readings{margin-top:16px}.starter-context>p,.starter-panel>p{margin-top:12px}.starter-prep-grid,.starter-making-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.starter-making-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.starter-scale-pass{color:var(--positive-text);background:var(--positive-bg);border-left:3px solid var(--positive-border);padding:12px 16px}#starter-scale-check{margin-top:16px}#starter-scale-check .button{margin-top:12px}.starter-targets{margin:0 0 16px;padding:0;list-style:none}.starter-targets li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:baseline;gap:20px;padding:12px 0;display:flex}.starter-targets strong{font-variant-numeric:tabular-nums;flex-shrink:0}.starter-purpose{margin-top:4px;display:block}.starter-checklist,.starter-steps{gap:8px;display:grid}.starter-check{cursor:pointer;border-radius:8px;gap:14px;padding:12px;display:flex}.starter-check:hover{background:var(--surface-muted)}.starter-check input{width:22px;height:22px;accent-color:var(--primary-bg);flex-shrink:0;margin:2px 0 0}.starter-check>span>span{color:var(--text-secondary);margin-top:5px;display:block}.starter-steps{margin:0;padding:0;list-style:none}.starter-steps li+li{border-top:1px solid var(--border)}.starter-weight{border-bottom:1px solid var(--border);padding:20px 0}.starter-weight:last-child{border-bottom:0;padding-bottom:0}.starter-weight>div{margin-bottom:12px}.starter-weight>div>span{color:var(--text-secondary);font-variant-numeric:tabular-nums;display:block}.starter-weight input{font-size:1.15rem}.starter-footer{border-top:1px solid var(--border);gap:14px;padding:20px 0;display:grid}.starter-explore{color:var(--text-secondary);flex-wrap:wrap;gap:10px 20px;padding-bottom:24px;display:flex}#starter-message{margin-bottom:20px}.starter-panel input[readonly]{background:var(--surface-muted)}@media (width<=1100px){.starter-recipes{grid-template-columns:1fr}.starter-prep-grid,.starter-making-grid{grid-template-columns:1fr;gap:0}}@media (width<=699px){.starter-stage-title{scroll-margin-top:120px}.starter-stage{flex-direction:column;gap:5px;font-size:.85rem}.starter-context,.starter-panel,.starter-recipe{padding:18px}.starter-check{padding:12px 0}}@media print{.starter-stage-nav,.starter-footer,.starter-explore,#starter-new{display:none}}body{margin:0}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,select,summary{cursor:pointer}summary{min-block-size:24px}button{color:var(--ink)}button:disabled{cursor:not-allowed;opacity:.45}[hidden]{display:none!important}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible,[tabindex="0"]:focus-visible{outline:var(--focus) solid 3px;outline-offset:3px}h1,h2,h3,p{margin:0}h1{letter-spacing:-.055em;font-size:2.7rem;font-weight:650;line-height:1.14}h2{letter-spacing:-.025em;font-size:1.15rem;line-height:1.3}h3{font-size:1rem;line-height:1.4}p{line-height:1.65}button{border:0}i{color:var(--muted);margin:0 10px;font-style:normal}.skip{z-index:20;background:var(--surface);padding:12px;position:fixed;top:-100px;left:20px}.skip:focus{top:12px}.sidebar{background:var(--sidebar-bg);width:228px;color:var(--sidebar-ink);border-right:1px solid var(--sidebar-border);box-shadow:var(--shadow-sidebar);z-index:2;flex-direction:column;padding:36px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand{color:var(--sidebar-ink);letter-spacing:.12em;align-items:center;gap:14px;font-size:.8rem;line-height:1.5;text-decoration:none;display:flex}.brand b{letter-spacing:.2em;font-size:1rem}.brand-mark{border:1px solid var(--sidebar-border);letter-spacing:-.06em;width:43px;height:48px;color:var(--feature-accent);justify-content:center;align-items:center;font-family:Georgia,serif;font-size:1.8rem;display:flex}.brand-mark span{font-family:Arial;font-size:1.3rem}.sidebar-label{letter-spacing:.1em;color:var(--sidebar-muted);justify-content:space-between;margin-top:56px;font-size:.75rem;font-weight:600;display:flex}.sidebar-label span{color:var(--sidebar-muted)}.sidebar nav{flex-direction:column;gap:7px;min-height:0;margin-top:17px;display:flex;overflow-y:auto}.workspace-select{display:none}.sidebar>:is(.brand,.sidebar-label,.theme-control){flex-shrink:0}.sidebar nav a{border-radius:6px;flex-shrink:0;align-items:center;gap:13px;min-height:44px;padding:12px 10px;font-size:.875rem;font-weight:500;text-decoration:none;display:flex}.sidebar nav a>span{text-align:center;flex-shrink:0;width:18px;font-size:1.2rem;line-height:1}.sidebar nav a:hover{background:var(--sidebar-hover)}.sidebar nav a.active{background:var(--sidebar-active-bg);color:var(--sidebar-active-ink);box-shadow:inset 3px 0 0 var(--primary-bg), var(--shadow-control)}.nav-group{flex-direction:column;flex-shrink:0;gap:7px;display:flex}.nav-group+.nav-group{margin-top:16px}.nav-group-title{color:var(--sidebar-muted);letter-spacing:.06em;margin:0 10px 2px;font-size:.75rem;font-weight:600}.home-recent{margin-bottom:24px}.home-recent h2{color:var(--muted);margin-bottom:10px;font-size:.875rem}.home-layout{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);align-items:start;gap:24px;display:grid}.home-saved,.home-tool-panel{min-width:0;padding:24px}.home-saved>h2,.home-tool-panel>h2{margin-bottom:20px;font-size:1.125rem}.home-filters{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;display:grid}#home-count{margin:12px 0}.home-work-list{margin:0 0 16px;padding:0;list-style:none}.home-work-list li+li{border-top:1px solid var(--border)}.home-work-list :is(a,button){width:100%;min-height:44px;box-shadow:none;color:var(--ink);text-align:left;overflow-wrap:anywhere;background:0 0;border:0;border-radius:6px;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 10px;font-size:1rem;text-decoration:none;display:flex}.home-work-list :is(a,button):hover{background:var(--surface-muted)}.home-work-kind{color:var(--link);font-size:.75rem;font-weight:600}.home-tools{gap:20px;display:grid}.home-tool-panel>a{border-top:1px solid var(--border);flex-direction:column;gap:4px;padding:12px 0;text-decoration:none;display:flex}.home-tool-panel>a span{color:var(--muted);font-size:.8125rem}.home-tool-panel>a:hover strong{text-decoration:underline}.home-recipe-links{flex-wrap:wrap;gap:4px 16px;margin:-8px 0 12px;display:flex}.home-recipe-links a{align-items:center;min-height:44px;display:flex}.home-empty{padding:12px 0;line-height:1.6}.home-empty h3{margin-bottom:8px;font-size:1rem}.home-empty p{margin-bottom:16px}.home-storage-note{max-width:85ch;margin-top:24px}@media (width<=1100px){.home-layout{grid-template-columns:minmax(0,1fr)}.home-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=599px){.home-tools,.home-filters{grid-template-columns:minmax(0,1fr)}.home-saved,.home-tool-panel{padding:20px}.home-recent .button-row{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.home-recent .button{text-align:center}}.workspace{margin-left:228px}main{max-width:1600px;margin:auto;padding:34px 36px 0}.page-title{justify-content:space-between;align-items:center;gap:24px;margin-bottom:27px;display:flex}.eyebrow{letter-spacing:.13em;color:var(--muted);margin-bottom:9px;font-size:.75rem;font-weight:700;line-height:1.5}.page-title p:last-child{color:var(--muted);margin-top:10px;font-size:.95rem}.button{border:1px solid var(--field-border);background:var(--surface);box-shadow:var(--shadow-control);white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;gap:14px;min-height:44px;padding:11px 16px;font-size:.875rem;font-weight:600;text-decoration:none;display:inline-flex}.button:hover{background:var(--control-hover)}.button.primary{background:var(--primary-bg);color:var(--primary-ink);border-color:var(--primary-bg)}.button.primary:hover{background:var(--primary-hover)}.button span{font-size:1.2rem;line-height:1}.badge{letter-spacing:.075em;background:var(--surface-muted);color:var(--muted);white-space:nowrap;border-radius:4px;padding:5px 8px;font-size:.75rem;font-weight:700;line-height:1.4;display:inline-block}.badge.saved{background:var(--positive-bg);color:var(--positive-text)}.stat{border-left:1px solid var(--feature-divider);flex-direction:column;justify-content:center;padding-left:25px;display:flex}.stat strong{letter-spacing:-.07em;font-size:2.6rem;font-weight:500;line-height:1.3}.stat span{color:var(--feature-muted);margin-top:8px;font-size:.75rem;line-height:1.65}.compare-layout{grid-template-columns:minmax(0,1fr) 286px;align-items:stretch;gap:20px;display:grid}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.panel-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.panel-heading .eyebrow{margin-bottom:6px}.chart-panel{min-width:0;padding:23px 22px 0}.chart-panel .panel-heading h2{font-size:1.15rem}.chart-toolbar{justify-content:space-between;align-items:center;gap:14px;margin:22px 0 25px;display:flex}.segmented{border:1px solid var(--border);background:var(--surface-muted);border-radius:7px;gap:2px;padding:3px;display:flex}.segmented button{white-space:nowrap;background:0 0;border-radius:4px;padding:7px 10px;font-size:.77rem}.segmented button[aria-pressed=true]{background:var(--surface);box-shadow:var(--shadow-control);font-weight:600}.compact-select{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;font-size:.75rem;display:flex}.compact-select select{background:var(--surface);color:var(--ink);border:0;padding:7px 2px;font-size:.75rem}.chart-scale{color:var(--muted);justify-content:space-between;margin-bottom:10px;padding:0 7px;font-size:.75rem;display:flex}.chart-row{text-align:left;background:0 0;border:1px solid #0000;border-radius:7px;width:100%;margin-bottom:5px;padding:11px 10px 13px;display:block}.chart-row:hover{background:var(--surface-muted)}.chart-row.selected{background:var(--surface-selected);border-color:var(--border)}.row-title{justify-content:space-between;align-items:center;gap:9px;margin-bottom:9px;font-size:.875rem;display:flex}.row-title>span:first-child{align-items:center;gap:10px;display:flex}.row-number{color:var(--muted);font-family:monospace;font-size:.75rem}.row-title strong{font-weight:500}.row-stat{color:var(--muted);white-space:nowrap;font-size:.75rem}.stack{background:var(--surface-muted);border-radius:3px;height:21px;display:flex;position:relative;overflow:hidden}.stack span{border-right:1px solid #fff6;flex-shrink:0;height:100%;transition:width .2s}.stack span:last-child{border:0}.ratio-track{background:var(--positive-bg);border-radius:3px;height:21px;overflow:hidden}.ratio-fill{background:var(--chart-accent);min-width:0;height:100%;transition:width .2s}.legend{color:var(--muted);flex-wrap:wrap;gap:9px 16px;margin:20px 8px 12px;font-size:.75rem;display:flex}.legend span{align-items:center;gap:6px;display:flex}.dot{border-radius:2px;flex-shrink:0;width:8px;height:8px;display:inline-block}.caption{color:var(--muted);font-size:.75rem;line-height:1.6}.chart-panel>.caption{margin:10px 8px 19px}.chart-foot{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding:13px 0;font-size:.75rem;display:flex}.text-button{color:var(--link);background:0 0;min-height:30px;padding:4px 0;font-size:.75rem;font-weight:600}.text-button:hover{text-decoration:underline}.detail-panel{background:var(--surface-pink);box-shadow:var(--shadow-raised);flex-direction:column;padding:22px;display:flex}.detail-panel .eyebrow{margin-bottom:13px}.detail-panel h2{font-size:1.3rem;line-height:1.25}.detail-format{color:var(--muted);margin:7px 0 21px;font-size:.75rem}.detail-stat{border-bottom:1px solid var(--border);grid-template-columns:1fr 1fr;gap:14px;padding:0 0 19px;display:grid}.detail-stat strong{letter-spacing:-.06em;font-size:1.85rem;font-weight:500;display:block}.detail-stat span{color:var(--muted);font-size:.75rem}.detail-note{color:var(--text-secondary);margin:18px 0 15px;font-size:.81rem}.detail-meta{border-top:1px solid var(--border);margin-top:auto;padding-top:13px;font-size:.75rem}.detail-meta>span{font-weight:600;display:block}.detail-meta p{color:var(--muted);margin-top:5px;font-size:.75rem}.detail-meta a{color:var(--link);margin-top:8px;display:inline-block}.detail-panel .button{width:100%;margin-top:19px;font-size:.81rem}.detail-panel details{margin:12px 0;font-size:.875rem}.detail-panel details p{color:var(--text-secondary);margin-top:8px}.assumptions{margin-top:22px}.assumptions summary{justify-content:space-between;gap:10px;padding:19px 23px;font-size:.875rem;font-weight:600;list-style:none;display:flex}.assumptions summary:after{content:"＋";color:var(--muted);font-weight:400}.assumptions[open] summary:after{content:"−"}.assumptions summary .caption{margin-left:auto;font-weight:400}.details-body{padding:0 23px 23px}.details-body>p{color:var(--text-secondary);max-width:1000px;font-size:.875rem}.factor-grid{grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0;display:grid}.field{overflow-wrap:anywhere;flex-direction:column;gap:8px;font-size:.8125rem;font-weight:500;display:flex}.field input,.field select,.recipe-adjustment-heading input{border:1px solid var(--field-border);background:var(--field-bg);width:100%;color:var(--ink);border-radius:6px;min-height:42px;padding:10px 11px;font-size:.875rem}.field input:invalid,.recipe-adjustment-heading input:invalid{border-color:var(--invalid)}.field small{color:var(--muted);font-size:.75rem;font-weight:400;line-height:1.6}.field small a{font-size:inherit}.oil-input{max-width:330px;margin-bottom:18px}.details-body>.caption{margin-top:15px;font-size:.75rem}.spray-panel{grid-template-columns:1fr 1fr;gap:20px;margin-top:22px;padding:24px;display:grid}.spray-panel>div:first-child p:last-child{color:var(--muted);margin-top:10px;font-size:.875rem}.spray-controls{grid-template-columns:repeat(3,1fr);align-items:start;gap:12px;display:grid}.spray-controls .field{font-size:.75rem}.spray-panel .spray-foot{grid-column:1/-1}#spray-result{background:var(--surface-muted);border-radius:7px;flex-wrap:wrap;grid-column:1/-1;gap:30px;padding:16px 20px;display:flex}#spray-result strong{font-size:1.35rem;font-weight:550;display:block}#spray-result span{color:var(--muted);font-size:.75rem}#spray-result p{align-self:center;max-width:420px;margin-left:auto;font-size:.8rem}.lab-layout{grid-template-columns:350px minmax(0,1fr);gap:23px;display:grid}.lab-controls{padding:24px}.lab-controls .field{margin-top:18px}.lab-controls .panel-heading{gap:10px}.lab-controls .panel-heading .badge{font-size:.75rem}.slider-head{justify-content:space-between;align-items:center;margin:23px 0 7px;font-size:.8125rem;font-weight:600;display:flex}.ingredient-control{margin-top:20px}.ingredient-control label{justify-content:space-between;align-items:center;gap:8px;font-size:.8rem;display:flex}.ingredient-control label>span{align-items:center;gap:8px;display:flex}.ingredient-control input[type=number]{border:1px solid var(--field-border);width:96px;min-height:44px;color:var(--ink);border-radius:4px;padding:8px 10px;font-size:.8rem}.ingredient-control input[type=range]{appearance:none;background:var(--chart-track);width:100%;height:4px;accent-color:var(--ink);border-radius:3px;margin:13px 0 0;display:block}.ingredient-control input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--range-thumb);border:2px solid var(--surface);width:14px;height:14px;box-shadow:var(--field-border) 0px 0px 0px 1px;cursor:pointer;border-radius:50%}.lab-results{flex-direction:column;gap:22px;display:flex}.batch-card{background:var(--feature-bg);color:var(--feature-ink);box-shadow:var(--shadow-raised);min-height:270px;padding:26px;overflow:hidden}.batch-card .eyebrow{color:var(--feature-muted)}.batch-card h2{font-size:1.45rem}.batch-card .stack{height:35px;margin:27px 0}.batch-card .metric-grid{grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px;display:grid}.batch-card .metric-grid strong{letter-spacing:-.055em;font-size:2rem;font-weight:500;display:block}.batch-card .metric-grid span{color:var(--feature-muted);font-size:.75rem}.batch-card .comparison{color:var(--feature-muted);margin-top:22px;font-size:.8rem}.batch-card .comparison strong{color:var(--feature-accent);font-weight:500}.batch-card .legend{color:var(--feature-muted);margin:14px 0}.recipe-table{flex:1;padding:23px}.recipe-table .panel-heading{margin-bottom:17px}#batch-table{overflow-x:auto}#batch-table th[scope=row]{color:inherit;font:inherit;letter-spacing:normal}#batch-table tbody th{border-bottom:1px solid var(--border);background:0 0}#batch-table tfoot th{font-weight:600}#batch-table td.number{white-space:nowrap}table{border-collapse:collapse;width:100%;font-size:.8125rem}th{text-align:left;letter-spacing:.04em;color:var(--muted);background:var(--surface-muted);padding:11px 12px;font-size:.75rem;font-weight:600}td{border-bottom:1px solid var(--border);padding:12px}td:last-child,th:last-child{text-align:right}td:first-child .dot{margin-right:8px}td.number,th.number{text-align:right;font-variant-numeric:tabular-nums}tfoot td{background:var(--surface-muted);border-bottom:0;font-weight:600}.recipe-table>.caption{margin-top:15px}.delta{color:var(--muted);font-size:.75rem}.experiment-panel{margin-top:25px;padding:25px}.experiment-controls{grid-template-columns:2fr 1fr 1fr;gap:20px;margin-top:23px;display:grid}.experiment-panel>#experiment-explanation{margin:14px 0 20px}.series-grid{grid-template-columns:repeat(3,1fr);gap:15px;display:grid}.series-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-control);border-radius:8px;padding:18px}.series-top{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.sample-letter{background:var(--surface-selected);border-radius:50%;place-items:center;width:32px;height:32px;font-weight:600;display:grid}.series-level{letter-spacing:-.04em;font-size:1.3rem}.series-card .stack{height:14px;margin-bottom:15px}.series-card table{font-size:.75rem}.series-card td{padding:6px 0}.series-card td:first-child .dot{width:6px;height:6px;margin-right:5px}.series-card p{color:var(--muted);margin-top:11px;font-size:.75rem}.comparison-steps{border-top:1px solid var(--border);color:var(--text-secondary);margin:22px 0 0;padding:16px 0 0 20px;font-size:1rem}.comparison-steps li+li{margin-top:8px}.note{background:var(--surface-muted);border-left:3px solid var(--field-border);color:var(--text-secondary);border-radius:3px;margin-top:25px;padding:13px 16px;font-size:.8rem}.draft-conflict{margin-bottom:20px}.draft-conflict p{margin:0 0 10px}@media print{.draft-conflict{display:none!important}}.error{color:var(--warning-text);background:var(--warning-bg);border:1px solid var(--warning-border);border-radius:7px;padding:14px;font-size:.875rem}.error:empty{display:none}.audit-intro{background:var(--feature-bg);color:var(--feature-ink);box-shadow:var(--shadow-raised);border-radius:var(--radius);grid-template-columns:1.2fr 1fr;gap:50px;margin-bottom:24px;padding:27px;display:grid}.audit-intro h2{font-size:1.4rem}.audit-intro p{color:var(--feature-muted);margin-top:10px;font-size:.875rem}.audit-intro h3{font-size:.9rem}.audit-list{flex-direction:column;gap:13px;display:flex}.audit-item{grid-template-columns:105px 1fr;gap:20px;padding:22px 24px;display:grid}.audit-item h3{margin-bottom:14px;font-size:1rem}.audit-body{grid-template-columns:1fr 1.6fr;gap:27px;display:grid}.audit-body p{color:var(--text-secondary);font-size:.875rem}.audit-body .before{color:var(--muted);font-size:.8rem}.audit-body .before>span{letter-spacing:.08em;margin-bottom:5px;font-size:.75rem;display:block}.audit-refs{color:var(--muted);flex-wrap:wrap;gap:15px;margin-top:13px;font-size:.75rem;display:flex}.verdict{letter-spacing:.03em;background:var(--surface-muted);color:var(--muted);border-radius:4px;padding:5px 9px;font-size:.75rem;font-weight:600;display:inline-block}.verdict.Corrected{background:var(--warning-bg);color:var(--warning-text)}.verdict.Retained{background:var(--positive-bg);color:var(--positive-text)}.verdict.Added{background:var(--purple-bg);color:var(--purple-text)}.section-title{margin:35px 0 20px}.section-title h2{font-size:1.55rem}.evidence-grid{grid-template-columns:1fr 1fr;gap:20px;display:grid}.evidence-card{padding:24px}.evidence-card h3{margin:12px 0;font-size:1.08rem}.evidence-card p{color:var(--text-secondary);font-size:.875rem}.evidence-card .caveat{background:var(--surface-muted);margin-top:14px;padding:12px;font-size:.8rem}.evidence-card a{color:var(--link);margin-top:16px;font-size:.75rem;display:inline-block}.guidance{margin-top:24px;padding:27px}.calculation-notes{gap:20px;margin:0;display:grid}.calculation-notes dt{font-weight:650}.calculation-notes dd{max-width:85ch;color:var(--text-secondary);margin:6px 0 0;font-size:1rem}.glossary-controls{margin-bottom:20px}.glossary-search-status{flex-wrap:wrap;align-items:center;gap:16px;margin-top:10px;display:flex}.glossary-search-status p{margin:0}.glossary-search-status button{flex-shrink:0;margin-left:auto}.glossary-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px 32px;padding:24px;display:grid}.glossary-entry{border-bottom:1px solid var(--border);min-width:0;padding:0 0 20px;scroll-margin-top:24px}.glossary-entry h2{margin:5px 0 8px;font-size:1.05rem}.glossary-entry p,.glossary-research{font-size:1rem}.glossary-entry p{color:var(--text-secondary);margin:0}.glossary-entry .glossary-example{color:var(--ink);margin-top:8px}.glossary-topic{color:var(--muted);font-size:.75rem}.glossary-research{margin-top:10px;display:inline-block}.glossary-empty h2{font-size:1.15rem}.guidance p{color:var(--text-secondary);max-width:1050px;margin-top:12px;font-size:.875rem}.guidance h3{margin-top:25px}.source-intro{max-width:900px;color:var(--muted);margin-bottom:24px;font-size:.875rem}.source-list{grid-template-columns:1fr 1fr;gap:16px;display:grid}.source-card{padding:22px}@media screen{.source-card{content-visibility:auto;contain-intrinsic-block-size:auto 180px}}.source-card-top{justify-content:space-between;align-items:start;gap:10px;display:flex}.source-card h2{font-size:1rem}.source-card .subtitle{color:var(--text-secondary);margin-top:8px;font-size:.875rem}.source-card .limit{color:var(--text-secondary);margin-top:12px;font-size:.875rem;line-height:1.65}.source-card a{color:var(--link);margin-top:15px;font-size:.875rem;display:inline-block}.source-card:target{outline:var(--focus) solid 3px;outline-offset:3px}.source-card.is-linked,.glossary-entry.is-linked{outline:2px solid var(--focus);outline-offset:5px}.source-card h2 a{font:inherit;color:inherit;margin:0}.source-card>a,.source-card h2 a{min-block-size:24px;line-height:max(24px,1.45em)}.source-card .source-reveal-note{color:var(--accent);margin:0 0 12px}.reference-linked{border:1px solid var(--border);background:var(--accent-surface);border-radius:var(--radius);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;padding:16px;display:flex}.reference-linked p{margin:0}footer{border-top:1px solid var(--border);letter-spacing:.06em;color:var(--muted);justify-content:space-between;gap:20px;margin-top:38px;padding:25px 0;font-size:.75rem;display:flex}footer>span:last-child{letter-spacing:0}#toast{background:var(--feature-bg);color:var(--feature-ink);box-shadow:var(--shadow-raised);z-index:5;overflow-wrap:anywhere;border-radius:8px;align-items:center;gap:12px;max-width:480px;padding:14px 20px;font-size:.875rem;display:flex;position:fixed;bottom:25px;right:25px}#toast-message{flex:1;min-width:0}#toast.persistent{border-left:4px solid var(--warning-accent)}#toast-dismiss{border:1px solid var(--feature-divider);height:44px;color:inherit;font:inherit;cursor:pointer;background:0 0;border-radius:5px;flex:0 0 44px;font-size:1.5rem}.noscript{background:var(--surface);border:1px solid var(--field-border);z-index:10;padding:24px;position:fixed;inset:100px 10% auto}@media (width>=1500px){.compare-layout{grid-template-columns:minmax(0,1fr) 340px}.chart-row{padding:13px 12px 16px}.detail-panel{padding:26px}.detail-stat strong{font-size:2.25rem}}@media (width<=1200px){.sidebar{padding-block:29px}main{padding:28px 25px 0}.compare-layout{grid-template-columns:minmax(0,1fr) 255px;gap:16px}.chart-panel{padding:21px 15px 0}.panel-heading{flex-wrap:wrap;gap:8px}.chart-panel .panel-heading>.badge{display:none}.detail-panel{padding:20px}.row-title{font-size:.8rem}.chart-toolbar{gap:7px}.compact-select{flex-direction:column;align-items:flex-end;gap:0}.lab-layout{grid-template-columns:310px minmax(0,1fr)}.lab-controls{padding:22px}.batch-card{padding:24px}.batch-card .metric-grid strong{font-size:1.7rem}.factor-grid{grid-template-columns:repeat(3,1fr)}.stat{padding-left:20px}.spray-panel{grid-template-columns:1fr}.spray-panel>*{grid-column:1!important}}@media (width<=960px){.sidebar{width:178px;padding:26px 13px}.workspace{margin-left:178px}.brand{gap:10px;font-size:.75rem}.brand-mark{width:35px;height:42px}.sidebar-label{font-size:.75rem}.sidebar nav a{gap:8px;padding:11px 8px;font-size:.78rem}h1{font-size:2.2rem}.page-title{flex-direction:column;align-items:flex-start;gap:17px}.compare-layout{grid-template-columns:minmax(0,1fr)}.detail-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 25px;display:grid}.detail-panel .eyebrow,.detail-panel h2,.detail-panel .detail-format{grid-column:1}.detail-panel .detail-stat{border:0;grid-area:1/2/4;align-content:center;padding:0}.detail-panel .detail-note{grid-column:1/3;margin:8px 0 14px}.detail-panel details{grid-column:1/3}.detail-panel .detail-meta{grid-column:1}.detail-panel .button{align-self:center}.lab-layout{grid-template-columns:1fr}.ingredient-controls{grid-template-columns:1fr 1fr;display:grid}.lab-controls #ingredient-controls{grid-template-columns:1fr 1fr;gap:0 25px;display:grid}.lab-controls .field{width:calc(50% - 10px);display:inline-flex}.lab-controls .field+.field{margin-left:15px}.series-grid{grid-template-columns:1fr}.series-card table{font-size:.875rem}.series-card td{padding:8px 0}.audit-intro{grid-template-columns:1fr;gap:24px}.audit-item{grid-template-columns:85px 1fr;gap:10px}.audit-body{grid-template-columns:1fr;gap:12px}.evidence-grid,.source-list{grid-template-columns:1fr}.stat{padding-left:14px}.stat strong{font-size:2rem}.stat span{font-size:.75rem}}@media (width<=699px){.sidebar{width:100%;padding:17px 20px 0;display:block;position:relative;inset:auto}.brand{gap:10px;font-size:.75rem}.brand-mark{width:29px;height:32px;font-size:1.4rem}.brand b{font-size:.85rem}.sidebar>.sidebar-label{display:none}.sidebar nav{flex-direction:row;gap:5px;margin:15px 0 0;padding-bottom:12px;overflow-x:auto}.sidebar nav a{white-space:nowrap;gap:7px;min-height:40px;padding:8px 10px;font-size:.75rem}.sidebar nav a>span{width:12px;font-size:.95rem}.workspace{margin-left:0}main{padding:25px 18px 0}h1{font-size:2.1rem}.page-title{gap:14px;margin-bottom:22px}.page-title p:last-child{font-size:.875rem}.page-title .button{font-size:.8rem}.stat{border-style:solid none none;border-width:1px 0 0;border-color:var(--feature-divider) currentcolor currentcolor;border-image:;padding:13px 0 0}.stat strong{font-size:1.7rem}.stat span{font-size:.75rem}.chart-panel{padding:22px 13px 0}.chart-toolbar{gap:8px;margin-top:20px}.compact-select select{font-size:.75rem}.segmented button{padding:7px 9px;font-size:.75rem}.chart-row{padding:12px 5px}.row-title{gap:4px;font-size:.8rem}.row-title>span:first-child{gap:7px}.row-stat{font-size:.75rem}.legend{gap:9px 12px;font-size:.75rem}.chart-foot,.chart-foot .text-button{font-size:.75rem}.detail-panel{gap:4px 20px;padding:22px}.detail-panel h2{font-size:1.2rem}.detail-panel .detail-stat strong{font-size:1.5rem}.detail-panel .detail-stat{gap:8px}.detail-panel .button{padding:10px;font-size:.75rem}.assumptions summary{padding:18px;font-size:.8rem}.assumptions summary .caption{display:none}.details-body{padding:0 18px 18px}.factor-grid{grid-template-columns:1fr 1fr;gap:18px 14px}.spray-panel{padding:20px}.spray-controls{grid-template-columns:1fr 1fr}.spray-controls .field{font-size:.75rem}#spray-result{gap:15px 22px;padding:15px}#spray-result p{margin-left:0}.lab-controls{padding:20px}.lab-controls #ingredient-controls{gap:0 18px}.lab-controls .field,.ingredient-control label{font-size:.75rem}.ingredient-control input[type=number]{width:57px}.lab-controls .field select{font-size:.75rem}.batch-card{padding:22px}.batch-card .metric-grid{gap:12px}.batch-card .metric-grid strong{font-size:1.5rem}.batch-card .metric-grid span{font-size:.75rem}.recipe-table{padding:18px}.recipe-table .panel-heading{margin-bottom:13px}td,th{padding:11px 6px}.experiment-panel{padding:20px}.experiment-controls{grid-template-columns:1fr 1fr;gap:17px;margin-top:20px}.experiment-controls>.field:first-child{grid-column:1/-1}.experiment-panel .panel-heading>.button{margin-top:10px}.audit-intro{padding:23px}.audit-item{padding:20px;display:block}.audit-item h3{margin-top:14px}.audit-body p{font-size:.875rem}.audit-body .before{font-size:.8rem}.evidence-card,.guidance{padding:22px}.source-card-top{flex-wrap:wrap}footer{flex-direction:column;gap:8px;font-size:.75rem;line-height:1.7}.field{font-size:.875rem}#toast{bottom:18px;left:18px;right:18px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{.sidebar,nav,.page-title>.button,button,.slider-head,.ingredient-control,footer{display:none!important}.workspace{margin:0}main{padding:0}.view[hidden]{display:none!important}.panel,.batch-card,.audit-intro{box-shadow:none;break-inside:avoid;color:#111;background:var(--surface)}.caption,.batch-card .eyebrow,.batch-card .legend,.batch-card .metric-grid span,.batch-card .comparison{color:#333}.lab-layout{display:block}.lab-controls{margin-bottom:20px}.series-grid{grid-template-columns:repeat(3,1fr)}.page-title{margin-top:0}a{color:#111}}.button,.field,.text-button,.sidebar nav a,.segmented button,.compact-select,.compact-select select,.row-title,.slider-head,.ingredient-control label,.ingredient-control input[type=number]{font-size:.875rem}.page-title p:last-child,.detail-note,.details-body>p,.spray-panel>div:first-child p:last-child,.audit-body p,.audit-intro p,.evidence-card>p:not(.caveat),.guidance p,.source-intro{font-size:1rem}.badge{white-space:normal}.sidebar-label,.brand{font-size:.75rem}.lab-layout,.lab-controls,.lab-results,.recipe-table,.ingredient-control,.lab-controls .field{min-width:0}.ingredient-control label>span{flex:1;min-width:0}.ingredient-control input[type=number]{flex-shrink:0}.compare-layout{align-items:start}.chart-row{padding-top:8px;padding-bottom:10px}.chart-toolbar{margin:18px 0}.chart-scale{margin-bottom:5px}@media (width<=960px){.lab-layout{grid-template-columns:minmax(0,1fr)}.row-title{font-size:.875rem}}@media (width<=699px){.lab-controls #ingredient-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ingredient-control label{flex-wrap:wrap;row-gap:7px}.ingredient-control label>span{flex-basis:100%}.ingredient-control input[type=number]{width:100%;font-size:.875rem}.recipe-table table,.compact-select,.compact-select select{font-size:.75rem}.segmented button{padding:7px 8px;font-size:.8125rem}.badge{font-size:.75rem}.row-title{font-size:.8125rem}.row-stat{font-size:.75rem}.sidebar nav a{font-size:.8125rem}}.sidebar{overflow-y:auto}.sidebar>.sidebar-label{margin-top:34px}.sidebar nav a{padding:10px 9px}.category-summary{background:var(--surface-pink);border:1px solid var(--border);border-radius:9px;align-items:flex-start;gap:20px;margin-bottom:22px;padding:17px 20px;display:flex}.category-summary .badge{flex-shrink:0;margin-top:3px}.category-summary p{color:var(--text-secondary);font-size:1rem}.cosmetic-comparison{grid-template-columns:minmax(0,1fr) minmax(280px,330px);gap:20px;display:grid}.cosmetic-chart,.cosmetic-reference{min-width:0;padding:24px}.cosmetic-reference{background:var(--surface-pink);box-shadow:var(--shadow-raised)}.cosmetic-chart>.caption{margin-top:15px}.cosmetic-chart .legend{margin-left:0}.cosmetic-reference h2{margin-bottom:15px;font-size:1.25rem}.cosmetic-reference>p:not(.eyebrow){color:var(--text-secondary);font-size:.875rem}.cosmetic-reference .caveat{background:var(--surface-muted);border-radius:4px;margin-top:14px;padding:12px}.cosmetic-chart .row-title{align-items:flex-start}.cosmetic-chart .row-title strong{font-weight:600;line-height:1.5}.ratio-denominator{margin-top:20px}.cosmetic-lab{grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:start;gap:20px;display:grid}.cosmetic-controls,.cosmetic-output{min-width:0;padding:24px}.cosmetic-controls>.field{margin-top:20px}.cosmetic-percent-inputs{gap:20px;margin:20px 0 15px;display:grid}.recipe-adjustment{min-width:0;margin-top:20px}.cosmetic-percent-inputs .recipe-adjustment{margin-top:0}.recipe-adjustment-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.recipe-adjustment-heading label{font-size:.875rem;line-height:1.5}.recipe-adjustment-heading input{flex:0 0 90px;width:90px;min-width:0}.recipe-adjustment>.caption{margin:0;font-size:.75rem}.recipe-actions{margin-top:20px}.fixed-ingredients{border-top:1px solid var(--border);margin-top:20px;padding-top:17px}.fixed-ingredients h3{margin-bottom:12px;font-size:.875rem}.fixed-ingredients p{color:var(--muted);justify-content:space-between;gap:10px;margin-top:9px;font-size:.8125rem;display:flex}.fixed-ingredients strong{white-space:nowrap;font-weight:500}.cosmetic-output .stack{height:27px;margin:20px 0}.cosmetic-output h2{font-size:1.2rem}.cosmetic-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:22px 0 18px;display:grid}.cosmetic-metrics strong{letter-spacing:-.05em;font-size:1.65rem;font-weight:500;display:block}.cosmetic-metrics span{color:var(--muted);font-size:.75rem;display:block}.cosmetic-output #lotion-weights,.cosmetic-output #balm-weights{margin:22px 0 16px}.cosmetic-table-scroll{min-width:0;overflow-x:auto}.cosmetic-table-scroll td small{color:var(--muted);margin-top:3px;font-size:.75rem;display:block}.cosmetic-table-scroll td.number,.cosmetic-table-scroll th.number{white-space:nowrap}.cosmetic-explanation{margin:16px 0 22px}.cosmetics-view .series-card .series-level{font-size:1.05rem}.cosmetics-view .series-card th{padding:7px 2px;font-size:.75rem}.cosmetics-view .series-card td{padding:8px 2px;font-size:.75rem}.cosmetics-view .series-card>.button{margin-top:16px}.observation-panel{margin-top:24px;padding:25px}.observation-panel>.caption{max-width:1000px;margin-top:14px}.observation-conditions{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px;margin:22px 0;display:grid}.observation-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.sample-observation{border-top:1px solid var(--border);padding-top:17px}.sample-observation .field{margin-top:16px}.field textarea{resize:vertical;border:1px solid var(--field-border);min-height:72px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;font-optical-sizing:inherit;font-size-adjust:inherit;font-kerning:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-language-override:inherit;color:var(--ink);background:var(--field-bg);border-radius:6px;width:100%;padding:10px 11px;font-family:inherit;font-weight:400;line-height:1.5}.field textarea:focus-visible{outline:var(--focus) solid 3px;outline-offset:3px}@media (width<=1100px){.cosmetic-comparison,.cosmetic-lab{grid-template-columns:minmax(0,1fr)}.cosmetic-metrics strong{font-size:1.5rem}.cosmetic-reference{padding:22px}.cosmetics-view .series-grid,.observation-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=699px){.sidebar{overflow-y:visible}.category-summary{padding:20px;display:block}.category-summary p{margin-top:10px;font-size:.9375rem}.cosmetic-chart,.cosmetic-reference,.cosmetic-controls,.cosmetic-output,.observation-panel{padding:20px}.cosmetic-chart .chart-row{padding:11px 0}.cosmetic-chart .row-title{gap:12px}.cosmetic-metrics{gap:11px}.cosmetic-metrics strong{font-size:1.35rem}.recipe-adjustment-heading input{flex-basis:80px;width:80px}.observation-conditions{grid-template-columns:minmax(0,1fr)}.cosmetic-table-scroll table{font-size:.75rem}.cosmetic-table-scroll td,.cosmetic-table-scroll th{padding:10px 5px}}.category-summary .text-button{margin-top:5px}.cosmetic-percent-inputs{align-items:end}@media print{.category-summary{background:var(--surface)}.cosmetic-comparison,.cosmetic-lab{display:block}.cosmetics-view .series-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cosmetic-controls{margin-bottom:20px}}.production-panel .panel-heading>h2{min-width:0}.production-panel .compact-select{white-space:normal;flex-shrink:0;min-width:0}.production-panel .compact-select input{flex-shrink:0}.button-row{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.button-row .button{white-space:normal}.production-panel,.production-records{min-width:0;margin-bottom:22px;padding:24px}.production-record-top{grid-template-columns:minmax(280px,1fr) minmax(0,auto);align-items:end;gap:22px;display:grid}.production-records>.caption{margin-top:15px}.production-records>.error:empty{display:none}.production-grid{gap:19px;margin:20px 0;display:grid}.production-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.production-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.production-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.production-grid .full{grid-column:1/-1}.production-grid>.field{min-width:0}.production-formula-name{margin-top:4px;font-size:1rem;font-weight:600}.production-reference .caption{line-height:1.65}.production-reference>.caption+.caption{margin-top:10px}.production-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0;display:grid}.production-metrics strong{letter-spacing:-.035em;font-size:1.6rem;font-weight:500;display:block}.production-metrics span{color:var(--muted);margin-top:4px;font-size:.8125rem;display:block}.production-budget .stack{height:25px}.production-budget .legend{margin-bottom:18px;margin-left:0}.production-table-scroll{min-width:0;margin:18px 0;overflow-x:auto}.production-table-scroll table{font-size:.8125rem}.production-table-scroll td,.production-table-scroll th{padding:12px 9px}.production-table-scroll td strong{font-weight:500}.production-table-scroll td small{color:var(--muted);margin-top:4px;line-height:1.5;display:block}.production-table-scroll td.error small{color:var(--warning-text)}.production-table-scroll :is(input,textarea){font:inherit;border:1px solid var(--field-border);background:var(--surface);width:110px;color:var(--ink);border-radius:5px;padding:8px}.production-table-scroll input[data-key=lot]{width:170px}.production-table-scroll td:first-child{min-width:145px}.production-table-scroll :is(input,textarea):focus-visible{outline:var(--focus) solid 3px;outline-offset:2px}.production-table-scroll :is(input,textarea):invalid{border-color:var(--invalid)}.production-table-scroll .number{white-space:nowrap}.production-panel>.caption{line-height:1.65}.production-panel .compact-select{align-items:center;max-width:280px}.production-panel .compact-select input{border:1px solid var(--field-border);width:75px;font:inherit;border-radius:5px;padding:8px}.production-details{margin-bottom:22px}.production-details>summary{cursor:pointer;justify-content:space-between;gap:20px;padding:21px 24px;font-weight:600;list-style:none;display:flex}.production-details>summary:before{content:"+";font-weight:400}.production-details[open]>summary:before{content:"−"}.production-details>summary>span:first-of-type{flex:1}.production-details .details-body{padding:0 24px 24px}.production-details summary .caption{font-weight:400}.production-details .details-body>p{margin:14px 0;line-height:1.65}.production-details .note{margin:20px 0}.production-oils{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:25px 0;display:grid}.production-oil{border-top:1px solid var(--border);min-width:0;padding-top:18px}.production-oil h3{font-size:1rem;font-weight:500}.production-oils .production-grid.two{grid-template-columns:minmax(0,1fr)}.production-constituents>summary{cursor:pointer;padding:15px 0;font-weight:500}.production-constituents>.caption{margin:0 0 15px}.production-actual-fractions{flex-wrap:wrap;gap:6px 18px;margin:10px 0;font-size:.8125rem;display:flex}.production-export>.caption{margin-top:17px}.file-button{cursor:pointer;position:relative}.file-button input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.file-button:focus-within{outline:var(--focus) solid 3px;outline-offset:3px}.backup-inventory{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:16px;margin:18px 0;display:grid}.backup-inventory strong,.backup-inventory span{display:block}.backup-inventory strong{font-size:1.6rem;font-weight:500}.backup-inventory span{color:var(--muted);font-size:.8125rem}.backup-import{border-top:1px solid var(--border);margin-top:24px;padding-top:24px}.backup-import>p,.backup-preview>p{margin:12px 0}.backup-preview{margin-top:20px}.backup-preview h3{overflow-wrap:anywhere}.backup-table{width:100%}.backup-table caption{text-align:left;color:var(--muted);margin-bottom:10px;font-size:.8125rem}.backup-table :is(th,td):not(:first-child){text-align:right}.print-only{display:none}#production-process-result p{margin:14px 0}#production-fill-result{margin-top:20px}.comparison-heading .comparison-name{overflow-wrap:anywhere}.comparison-actions{flex-direction:column;align-items:flex-end;gap:10px;display:flex}.comparison-actions>.button-row{justify-content:flex-end}.comparison-draft-picker{max-width:620px;margin-bottom:20px}.comparison-variables{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px;display:grid}.comparison-variables.two-ingredients{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-variable{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;min-width:0;padding:16px}.comparison-variable>.production-grid{margin:14px 0 0}.comparison-variables:not(.two-ingredients) .comparison-variable{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;display:grid}.comparison-variables:not(.two-ingredients) .comparison-variable>.production-grid{margin:0}.comparison-amounts{margin-top:20px}.comparison-options{border-top:1px solid var(--border);margin-top:20px;padding-top:12px}.comparison-options>summary{flex-wrap:wrap;align-items:baseline;gap:6px 16px;padding:8px 0;display:flex}.comparison-options>summary:before{content:"+"}.comparison-options[open]>summary:before{content:"−"}.experiment-design .comparison-options>summary .caption{margin:0;font-weight:400}.comparison-plan-footer{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding-top:20px;display:flex}.comparison-plan-footer p{margin:0;font-weight:600}@media (width<=699px){.comparison-heading{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:16px}.comparison-heading h1{margin:0;font-size:1.4rem}.comparison-heading .eyebrow{display:none}.comparison-heading .comparison-name{margin-top:6px;font-size:.875rem}.comparison-actions{align-items:flex-start}.comparison-actions>.button-row{justify-content:flex-start}.comparison-heading .button-row>.button{flex:none;width:auto;padding-inline:10px}.comparison-variables.two-ingredients{grid-template-columns:minmax(0,1fr)}.comparison-variables:not(.two-ingredients) .comparison-variable{display:block}.comparison-variables:not(.two-ingredients) .comparison-variable>.production-grid{margin:14px 0 0}}.production-table-scroll .fills-table :is(th,td):first-child{min-width:0}@media (width<=699px){.fills-table thead{display:none}.fills-table tbody{gap:14px;display:grid}.fills-table tr{border:1px solid var(--border);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;display:grid}.production-table-scroll .fills-table :is(th,td){border:0;min-width:0;padding:0}.fills-table th[scope=row]{grid-column:1/-1}.fills-table th[scope=row]:before{content:"Container "}.fills-table td[data-label]:before{content:attr(data-label);color:var(--muted);margin-bottom:6px;display:block}.production-table-scroll .fills-table input,.fills-table .button{width:100%;min-height:44px}}@media (width<=1100px){.production-record-top{grid-template-columns:minmax(0,1fr)}.production-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.production-oils{grid-template-columns:minmax(0,1fr)}.production-oils .production-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.production-metrics strong{font-size:1.35rem}}@media (width<=699px){.production-panel,.production-records{padding:20px}.production-grid.three,.production-grid.four,.production-grid.two,.production-oils .production-grid.two{grid-template-columns:minmax(0,1fr)}.production-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.production-details>summary{gap:12px;padding:19px 20px}.production-details>summary .caption{display:none}.production-details .details-body{padding:0 20px 20px}.production-panel .panel-heading{flex-wrap:wrap;gap:15px}.production-panel .compact-select{font-size:.8125rem}.production-oils .production-grid{margin-top:15px}.button-row{width:100%}.button-row .button{flex:150px}.production-records .button-row .button{flex-basis:110px}}@media print{.production-view>.panel{display:none!important}.production-view .print-only{display:block}.production-view .page-title>.badge,.production-view .page-title p{display:none}.production-view .print-only table{table-layout:auto;border-collapse:collapse;width:100%;font-size:9pt}.production-view .print-only td{overflow-wrap:anywhere;vertical-align:top;border-bottom:1px solid #ccc;padding:5px}.production-view .print-only tr{break-inside:avoid}.production-view .print-only td:first-child{font-weight:600}.production-view .page-title{margin-bottom:16px}}.experiment-design .caption{margin-top:20px}.experiment-design .production-grid strong{margin:5px 0 8px;display:block}.experiment-second{min-width:0}.experiment-second[hidden]{display:none!important}.experiment-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0;display:grid}.experiment-group{appearance:none;text-align:left;border:1px solid var(--border);background:var(--surface-muted);box-shadow:var(--shadow-control);font:inherit;cursor:pointer;min-width:0;color:var(--ink);border-radius:7px;padding:17px}.experiment-group:hover{border-color:var(--field-border)}.experiment-group[aria-pressed=true]{background:var(--accent-surface);border-color:var(--accent)}.experiment-group>strong{margin-bottom:8px;font-size:1rem;display:block}.experiment-group>span,.experiment-group>small{font-size:.8125rem;line-height:1.6;display:block}.experiment-group .stack{height:18px;margin:13px 0}.experiment-group>small{color:var(--muted)}.experiment-empty{background:var(--surface-muted);text-align:center;color:var(--muted);border-radius:7px;margin:20px 0;padding:35px 20px;font-size:.875rem}.experiment-plot{max-width:750px;margin:20px auto}.experiment-plot svg{width:100%;height:auto;display:block;overflow:visible}.experiment-plot text{fill:var(--text-secondary);font:13px system-ui,sans-serif}.experiment-plot line{pointer-events:none}.experiment-plot circle[role=button]{cursor:pointer;stroke:var(--ink);stroke-width:1.25px}.experiment-plot circle:focus{outline:var(--focus) solid 2px}.experiment-contrasts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:23px 0;display:grid}.experiment-contrasts>div{border:1px solid var(--border);border-radius:5px;padding:14px 16px}.experiment-contrasts>div>span{color:var(--muted);font-size:.8125rem;display:block}.experiment-contrasts strong{margin-top:6px;font-size:1.25rem;font-weight:500;display:block}#experiment-runs td textarea{resize:vertical;width:185px;min-height:4.5em}#experiment-runs .text-button{white-space:nowrap}#experiment-runs td:first-child{min-width:110px}.experiments-view strong,.experiments-view .caption{overflow-wrap:anywhere}#production-material-check .caption{margin:15px 0}.production-reference .panel-heading .button-row{justify-content:flex-end;width:auto}@media (width<=1000px){.experiment-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.production-reference .panel-heading{flex-wrap:wrap;gap:15px}.production-reference .panel-heading .button-row{justify-content:flex-start}}@media (width<=699px){.experiment-group-grid,.experiment-contrasts{grid-template-columns:minmax(0,1fr)}.experiment-design .production-grid{gap:17px;margin:18px 0}.production-reference .panel-heading .button-row{width:100%}.experiment-group{padding:17px}.experiment-plot text{font-size:14px}.experiments-view .panel-heading{flex-wrap:wrap;gap:15px}}@media print{.experiment-design,.experiments-view .button-row,.experiments-view .file-button{display:none!important}.experiment-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.experiment-group{color:#000;background:var(--surface)}.experiments-view .production-panel{break-inside:auto}.experiment-plot{break-inside:avoid}.experiments-view td{overflow-wrap:anywhere}.experiments-view input{border:0;width:100px!important}.experiments-view .production-table-scroll{overflow:visible}.experiments-view #experiment-run-panel{break-before:page}}.brand-mark{border:0;flex-shrink:0;width:43px;height:43px;display:block}.nav-icon{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:18px;height:18px}.research-note{color:var(--muted);max-width:850px;margin:-6px 0 25px;font-size:.875rem;line-height:1.65}.research-note a{color:var(--link)}.experiment-foot{margin-top:22px}.reference-notes{border-top:1px solid var(--border);margin-top:15px;padding-top:13px}.reference-notes summary{color:var(--link);cursor:pointer;font-size:.8125rem;font-weight:600}.reference-notes p{color:var(--text-secondary);margin-top:12px;font-size:.875rem}.reference-notes .audit-refs{margin-top:14px}.production-reference .reference-notes .caption{font-size:.8125rem}.source-card details{margin-top:15px}.source-card summary{color:var(--link);cursor:pointer;font-size:.8125rem;font-weight:600}.source-card details .limit{margin-top:10px}.cosmetic-reference>.audit-refs{margin-top:16px}#production-actual:empty{display:none}@media (width<=960px){.brand-mark{width:35px;height:35px}}@media (width<=699px){.brand-mark{width:32px;height:32px}.nav-icon{width:16px;height:16px}}.cosmetic-comparison{align-items:start}.sidebar,.sidebar nav{scrollbar-width:thin;scrollbar-color:var(--sidebar-muted) transparent}.sidebar::-webkit-scrollbar{width:5px;height:5px}.sidebar nav::-webkit-scrollbar{width:5px;height:5px}.sidebar::-webkit-scrollbar-track{background:0 0}.sidebar nav::-webkit-scrollbar-track{background:0 0}.sidebar::-webkit-scrollbar-thumb{background:var(--sidebar-muted);border-radius:4px}.sidebar nav::-webkit-scrollbar-thumb{background:var(--sidebar-muted);border-radius:4px}.page-screens{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:8px;margin:-6px 0 24px;padding:0 0 16px;display:flex}.screen-links{flex-wrap:wrap;gap:8px;display:flex}.screen-select{display:none}.page-screens a{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--ink);border-radius:8px;align-items:center;padding:9px 14px;font-size:.875rem;font-weight:600;text-decoration:none;display:inline-flex}.page-screens a:hover,.page-screens a:focus-visible,.page-screens a[aria-current=page]{background:var(--accent-surface);border-color:var(--accent);color:var(--accent)}.page-screens a[aria-current=page]{box-shadow:inset 0 -3px 0 var(--accent)}.tool-screen{min-width:0}.tool-screen>:first-child.section-title{margin-top:0}.page-section,[data-page-section]{scroll-margin-top:24px}.page-title>div:first-child{min-width:0}.page-title h1{text-wrap:balance}.page-title p:last-child{max-width:65ch}.source-tools{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px 18px;margin:0 0 24px;display:grid}.source-tools .field{min-width:0}.source-tools .caption{grid-area:2/1/auto/3;align-self:center;margin:0}#source-reset{grid-area:2/3;justify-self:end}.source-ingredient-links{flex-wrap:wrap;gap:4px 16px;margin-top:8px;display:flex}.source-ingredient-links a{padding-block:6px}.source-empty{color:var(--muted);padding:28px}.evidence-card p,.source-card p,.audit-body p{max-width:70ch}.evidence-card,.source-card{min-width:0}.source-card-top{flex-wrap:wrap}.source-card-top .badge{white-space:normal}.source-card h2{line-height:1.45}.weighing-scroll{isolation:isolate;position:relative}.weighing-scroll:not(.show-details) [data-weighing-detail]{display:none}.weighing-details-toggle{min-height:44px;color:var(--text-secondary);cursor:pointer;align-items:center;gap:8px;font-size:.8125rem;display:flex}.weighing-details-toggle input{flex-shrink:0;width:24px;height:24px}.weighing-scale-settings{margin:18px 0}.weighing-scale-settings .production-grid{margin-top:16px}.weighing-progress{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:18px 0;display:flex}.weighing-progress .caption{margin:0}.weighing-scroll .target-weight{font-size:1rem;font-weight:600}.weighing-scroll .target-weight small{white-space:normal;max-width:190px;color:var(--invalid);font-size:.75rem;font-weight:400}.weighing-scroll input[data-key=actual]{min-height:44px;font-size:1rem}.weighing-scroll:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.weighing-scroll tbody td:first-child,.weighing-scroll thead th:first-child{background:var(--surface);box-shadow:1px 0 0 var(--border);position:sticky;left:0}.weighing-scroll thead th:first-child{background:var(--surface-muted)}.ingredient-control input[type=range]{background:0 0;height:44px;margin-top:7px}.ingredient-control input[type=range]::-webkit-slider-runnable-track{background:var(--chart-track);border-radius:3px;height:4px}.ingredient-control input[type=range]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-7px}.ingredient-control input[type=range]::-moz-range-track{background:var(--chart-track);border-radius:3px;height:4px}.ingredient-control input[type=range]::-moz-range-thumb{border:2px solid var(--surface);background:var(--range-thumb);border-radius:50%;width:14px;height:14px}@media (width>=1800px){.source-list,.evidence-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width>=700px) and (width<=1024px){.sidebar{width:100%;padding:18px 28px 0;display:block;position:relative;inset:auto;overflow-y:visible}.sidebar>.sidebar-label{display:none}.workspace{margin-left:0}.brand-mark{width:35px;height:35px}.page-title{flex-direction:row;align-items:flex-start}.evidence-grid,.source-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=1024px){.sidebar nav{display:none}.workspace-select{color:var(--sidebar-ink);flex-direction:column;gap:6px;margin:14px 0 16px;font-size:.8125rem;display:flex}.workspace-select select{border:1px solid var(--field-border);background:var(--field-bg);width:100%;min-height:44px;color:var(--ink);border-radius:6px;padding:10px 12px;font-size:1rem}}@media (width<=699px){.chart-toolbar{flex-direction:column;align-items:stretch;gap:12px}.chart-toolbar .segmented button{flex:1;min-height:44px}.chart-toolbar .compact-select{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.chart-toolbar .compact-select select{min-width:0;min-height:44px}.sidebar nav a{min-height:44px}.page-screens{margin-bottom:20px}.screen-links{display:none}.screen-select{width:100%;margin:0;display:flex}.page-screens a{min-height:44px;padding:9px 12px}.view .field :is(input,select,textarea),.view .compact-select :is(input,select),.view .ingredient-control input,.view .production-table-scroll :is(input,textarea){font-size:1rem}.source-tools{grid-template-columns:minmax(0,1fr)}.source-tools .caption,#source-reset{grid-area:auto;justify-self:start}#toast{bottom:18px;left:18px;right:18px}}@media print{.page-screens,.source-tools{display:none!important}.weighing-scroll tbody td:first-child,.weighing-scroll thead th:first-child{box-shadow:none;position:static}}@media (width<=699px){.ingredient-cost-sheet thead{display:none}.ingredient-cost-sheet tbody{gap:16px;display:grid}.ingredient-cost-sheet tr{border:1px solid var(--border);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;display:grid}.ingredient-cost-sheet th{text-align:left;grid-column:1/-1}.view .ingredient-cost-sheet :is(th,td){white-space:normal;overflow-wrap:anywhere;border:0;min-width:0;padding:0}.ingredient-cost-sheet td[data-label]:before{content:attr(data-label);color:var(--muted);margin-bottom:6px;font-size:.8125rem;display:block}.view .ingredient-cost-sheet input{width:100%;min-height:44px}.ingredient-sheet thead{display:none}.ingredient-sheet :is(tbody,tfoot){gap:16px;display:grid}.ingredient-sheet tr{border:1px solid var(--border);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin-bottom:16px;padding:16px;display:grid}.view .ingredient-sheet td{white-space:normal;overflow-wrap:anywhere;text-align:left;border:0;min-width:0;padding:0}.view .ingredient-sheet :is(td:first-child,.material-lot,td[colspan]){box-shadow:none;grid-column:1/-1;position:static}.ingredient-sheet td[data-label]:before{content:attr(data-label);color:var(--muted);margin-bottom:6px;font-size:.8125rem;display:block}.ingredient-sheet .target-weight{font-weight:600}.view .ingredient-sheet input{width:100%;min-height:44px}}.ingredient-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 12px;display:grid}.ingredient-filter-options{margin-bottom:16px}.ingredient-filter-options .ingredient-filters{margin-bottom:0}.ingredient-results-bar,.ingredient-selection,.ingredient-selected-list,.ingredient-card-meta{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.ingredient-results-bar{justify-content:space-between;margin-top:12px}.ingredient-results-bar p{margin:0}.ingredient-outside{margin-top:12px}.ingredient-selection{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;justify-content:space-between;margin-top:12px;padding:12px}.ingredient-selected-list{flex:320px;gap:8px;min-width:0}.ingredient-selected{border:1px solid var(--field-border);background:var(--surface);max-width:100%;min-height:44px;color:var(--ink);box-shadow:var(--shadow-control);text-align:left;border-radius:6px;align-items:center;gap:12px;padding:8px 12px;font-size:.8rem;display:flex}.ingredient-selected span:first-child{overflow-wrap:anywhere}.ingredient-selected:hover{background:var(--surface-selected)}.ingredient-card-meta{gap:8px}.ingredient-type{color:var(--text-secondary);font-size:.75rem}.ingredient-match{border:1px solid var(--border);background:var(--surface-muted);color:var(--text-secondary);text-align:left;border-radius:6px;gap:6px;padding:12px;font-size:.8rem;line-height:1.6;display:grid}.ingredient-match strong{color:var(--link);text-underline-offset:3px;text-decoration:underline}.ingredient-match:hover{background:var(--surface-selected)}.ingredient-comparison-topic{max-width:360px;margin:16px 0}.ingredient-comparison-empty{background:var(--bg);border-radius:8px;margin-top:16px;padding:20px}.ingredient-comparison-empty p{margin-bottom:12px}.ingredient-comparison-empty .caption{margin:12px 0 0}.ingredient-reading-notes p{margin-top:12px}.ingredient-concerns{gap:16px;margin:0;padding:0;font-size:.85rem;list-style:none;display:grid}.ingredient-concerns .caption{color:var(--text-secondary)}.ingredient-concerns p{margin:8px 0}.ingredient-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;display:grid}.ingredient-card{border:1px solid var(--border);background:var(--bg);min-width:0;box-shadow:var(--shadow-control);overflow-wrap:anywhere;border-radius:8px;flex-direction:column;align-items:stretch;gap:12px;padding:20px;display:flex}.ingredient-card-title,.ingredient-card-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.ingredient-card-title .badge{flex-shrink:0}.ingredient-inci{font-size:.78rem}.ingredient-card dl{gap:3px;margin:0;display:grid}.ingredient-card dt{color:var(--muted);margin-top:5px;font-size:.75rem}.ingredient-card dd{margin:0;font-size:.85rem}.ingredient-card details{margin-bottom:8px}.ingredient-card details p{margin-top:12px;font-size:.85rem}.ingredient-use-list{gap:12px;margin:0;padding:0;font-size:.85rem;list-style:none;display:grid}.ingredient-use-list li{gap:4px;display:grid}.ingredient-use-list strong{color:var(--ink)}.ingredient-use-summary{font-size:.85rem}.ingredient-evidence{gap:8px;display:grid}.ingredient-card-actions{flex-wrap:wrap;margin-top:auto}.ingredient-card-actions label{cursor:pointer;align-items:center;gap:7px;min-height:44px;padding-right:12px;font-size:.8rem;display:flex}.ingredient-card-actions input,.workbench-balance input{width:24px;height:24px;accent-color:var(--focus);flex-shrink:0}.origin-tag{background:var(--blue-bg);color:var(--blue-text);border-radius:4px;align-self:flex-start;padding:4px 7px;font-size:.72rem;font-weight:650}.origin-natural{background:var(--positive-bg);color:var(--positive-text)}.origin-petroleum{background:var(--warning-bg);color:var(--warning-text)}.origin-synthetic{background:var(--purple-bg);color:var(--purple-text)}.origin-unknown{background:var(--neutral-bg);color:var(--neutral-text)}.ingredient-compare-scroll{isolation:isolate}.ingredient-compare-table{table-layout:fixed;min-width:750px}.ingredient-compare-table[data-count="1"]{min-width:0}.ingredient-compare-table[data-count="2"]{min-width:600px}.ingredient-compare-table th:first-child{z-index:1;background:var(--surface);width:130px;box-shadow:1px 0 var(--border);position:sticky;left:0}.ingredient-compare-table thead th:first-child{background:var(--surface-muted)}.ingredient-compare-table th,.ingredient-compare-table td{text-align:left;vertical-align:top;overflow-wrap:anywhere}.ingredient-compare-table a{font-size:.8rem}.comparison-remove{min-height:44px;color:var(--link);background:0 0;padding:8px 0;font-size:.75rem;text-decoration:underline;display:block}.workbench-load{flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;display:flex}.workbench-draft-actions{align-self:end}#workbench-source{margin:12px 0 20px}#workbench-rows{margin:24px 0}.workbench-row{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,2.2fr) minmax(90px,.7fr) minmax(75px,.6fr) 85px 80px;align-items:end;gap:14px;padding:14px 0;display:grid}.workbench-mass{flex-direction:column;justify-content:center;gap:8px;min-width:0;padding-bottom:8px;display:flex}.workbench-mass span{color:var(--muted);font-size:.75rem}.workbench-mass strong{overflow-wrap:anywhere;font-size:.9rem}.workbench-balance{align-items:center;gap:5px;min-height:44px;font-size:.78rem;display:flex}.workbench-remove{padding-left:10px;padding-right:10px}.workbench-add{align-items:end;gap:16px;margin-bottom:24px;display:flex}.workbench-add .field{flex:1}#workbench-balance-note{margin-top:12px}.origin-breakdown{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:22px 0 12px;display:grid}.origin-breakdown .stack{margin:14px 0}.profile-shares{margin:14px 0 0;padding:0;list-style:none}.profile-shares li{border-bottom:1px solid var(--border);justify-content:space-between;gap:14px;padding:6px 0;font-size:.82rem;display:flex}.profile-shares li>span{align-items:center;gap:8px;display:flex}.profile-shares strong,.profile-shares .dot{flex-shrink:0}.workbench-review{background:var(--warning-bg);border-radius:6px;margin:22px 0;padding:16px}.workbench-review li{margin:8px 0;font-size:.85rem;line-height:1.6}.workbench-actions{margin-top:24px}#workbench-method{min-height:100px}#workbench-error{margin:16px 0}#production-origin{margin-top:20px}@media (width>=1750px){.ingredient-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=1050px){.workbench-row{grid-template-columns:minmax(0,2fr) minmax(75px,.7fr) minmax(65px,.6fr) 80px 70px;gap:9px}}@media (width<=700px){.ingredient-filters,.ingredient-cards,.origin-breakdown{grid-template-columns:minmax(0,1fr)}.ingredient-card{padding:16px}.ingredient-compare-table th:first-child{width:100px}.workbench-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:20px 0}.workbench-row .field:first-child{grid-column:1/-1}.workbench-remove{justify-self:end}.workbench-balance{justify-self:start}.workbench-add{flex-direction:column;align-items:stretch}.workbench-add .button{align-self:flex-start}}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.library-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px;margin-top:20px;display:grid}.library-empty{background:var(--surface-muted);border-radius:8px;grid-column:1/-1;padding:20px}.library-empty p{max-width:65ch;color:var(--text-secondary);margin-top:8px}.library-empty .button,.panel-heading+.button-row,.field+.button-row,.caption+.button-row{margin-top:16px}.button-row+.caption{margin-top:10px}table,.metric-grid,.production-metrics,.detail-stat{font-variant-numeric:tabular-nums}.library-card{text-align:left;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-control);color:inherit;cursor:pointer;border-radius:10px;flex-direction:column;gap:8px;padding:18px;display:flex}.library-card strong{overflow-wrap:anywhere;font-size:1rem}.library-card span,.library-card small{color:var(--muted)}.library-card.selected{background:var(--accent-surface);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent), var(--shadow-control)}.library-subsection{border-top:1px solid var(--border);margin-top:28px;padding-top:24px}.library-detail-options>summary{grid-template-columns:10px auto minmax(0,1fr);align-items:baseline;gap:6px 16px;padding:6px 0;font-weight:600;display:grid}.library-detail-options>summary:before{content:"+"}.library-detail-options[open]>summary:before{content:"−"}.library-detail-options>summary .caption,#library-note-links>summary .caption{margin:0;font-weight:400}.library-linked-section{margin-top:24px}.library-working-note{max-width:620px}#library-note-links>summary .caption{margin-left:12px;display:inline-block}#library-note-links{margin-bottom:20px}@media (width<=699px){#view-library .page-title{flex-flow:wrap;align-items:center;gap:12px;margin-bottom:16px}#view-library .page-title h1{margin:0;font-size:1.4rem}#view-library .page-title p{display:none}.library-detail-options>summary{grid-template-columns:10px minmax(0,1fr)}.library-detail-options>summary .caption{grid-column:2}#library-note-links>summary .caption{margin:6px 0 0;display:block}}.library-prose{white-space:pre-wrap;overflow-wrap:anywhere;max-width:72ch}.library-method-grid{grid-template-columns:1fr 1fr;gap:24px;padding-top:12px;display:grid}.library-note-filter{max-width:420px;margin-top:24px}.library-note{border-top:1px solid var(--border);padding:18px 0}.library-note>div{justify-content:space-between;gap:16px;display:flex}.library-delta{background:linear-gradient(90deg, color-mix(in srgb, var(--positive-border) 16%, transparent) var(--delta), transparent var(--delta));border-left:3px solid var(--positive-border);min-width:100px;padding:5px 8px;font-size:12px;display:block}.library-delta.decrease{background:linear-gradient(90deg, color-mix(in srgb, var(--warning-accent) 16%, transparent) var(--delta), transparent var(--delta));border-color:var(--warning-accent)}#library-detail td{vertical-align:top}#library-detail th small{margin-top:6px;font-weight:400;display:block}#library-capture{scroll-margin-top:80px}@media (width<=640px){.library-method-grid{grid-template-columns:1fr}.library-note>div{align-items:flex-start}}#library-detail .production-table-scroll table{min-width:640px}#library-detail .production-table-scroll{margin:20px 0}#library-detail .production-table-scroll:focus-visible{outline:2px solid var(--focus);outline-offset:3px}#library-detail .production-table-scroll th:first-child{min-width:130px}.library-ratio-controls{margin-top:18px}#library-detail .production-table-scroll{isolation:isolate}#library-detail .production-table-scroll :is(thead,tbody) th:first-child{z-index:1;background:var(--surface-muted);border-right:1px solid var(--border);position:sticky;left:0}.library-delta.unchanged{color:var(--muted);background:0 0;border-color:#0000}.theme-control{color:var(--sidebar-ink);justify-content:space-between;align-items:center;gap:12px;margin-top:24px;font-size:.8125rem;display:flex}.theme-control select{border:1px solid var(--field-border);background:var(--field-bg);width:108px;min-height:44px;color:var(--sidebar-ink);border-radius:7px;padding:8px 10px;font-size:16px}.theme-control select:focus-visible{outline-color:var(--focus)}input,select,textarea{accent-color:var(--focus)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea{background-color:var(--field-bg);color:var(--ink)}@media (width<=1024px){.sidebar{border-right:0;border-bottom:1px solid var(--sidebar-border);box-shadow:var(--shadow)}.theme-control{flex-direction:column;align-items:flex-start;gap:3px;margin:0;font-size:.6875rem;line-height:1.2;position:absolute;top:7px;right:20px}.sidebar nav{margin-top:24px}.sidebar .brand{max-width:calc(100% - 124px)}}@media print{:root{--bg:#fff;--surface:#fff;--feature-ink:#111;--feature-muted:#604469;--feature-accent:#95246f;--surface-pink:#fff;--field-bg:#fff;--shadow:none;--shadow-raised:none;--shadow-control:none;--shadow-sidebar:none}:is(.panel,.batch-card,.audit-intro,.series-card,.ingredient-card,.library-card,.experiment-group,.button){box-shadow:none!important}.theme-control{display:none}}.batch-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:16px 0;display:grid}.record-card{border:1px solid var(--border);background:var(--bg);min-width:0;box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:12px;padding:20px;display:flex}.record-card.current{border-color:var(--accent)}.record-card h3,.record-card p{overflow-wrap:anywhere;margin:0}.record-card>.button{align-self:start;margin-top:auto}.record-card-details{margin:0;font-size:.875rem}.record-card-details>div{justify-content:space-between;gap:12px;padding:4px 0;display:flex}.record-card-details dt{color:var(--muted)}.record-card-details dd{text-align:right;margin:0}.batch-preview{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.batch-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px;display:grid}@media (width>=1280px){.batch-summary-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}.batch-metric{color:var(--ink);overflow-wrap:anywhere;flex-direction:column;gap:8px;padding:20px;text-decoration:none;display:flex}.batch-metric strong{font-size:1.5rem}.batch-metric small{color:var(--muted);margin-top:auto}.batch-metric:hover{border-color:var(--accent);box-shadow:var(--shadow-raised)}.batch-note-text,.batch-notes dd{white-space:pre-wrap;overflow-wrap:anywhere}.batch-notes>div{border-bottom:1px solid var(--border);padding:12px 0}.batch-notes dt{font-weight:600}.batch-notes dd{margin:6px 0 0}#production-overview table th:first-child{min-width:160px}#production-overview table td:last-child{overflow-wrap:anywhere;min-width:160px;max-width:320px}#production-overview>.section-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}#production-overview>.section-title h2{margin:0}.production-records h2{overflow-wrap:anywhere;margin:8px 0 4px}#view-production:has([data-screen-target=production-batches].tool-screen:not([hidden])) .production-records{display:none}#view-production:has([data-screen-target=production-batches].tool-screen:not([hidden])) #production-save-status{display:none}#view-production:has([data-screen-target=production-batches].tool-screen:not([hidden])) #production-calculation-error{display:none}.record-actions{position:relative}.record-actions>summary{border:1px solid var(--field-border);cursor:pointer;border-radius:6px;align-items:center;gap:8px;min-height:44px;padding:10px 16px;font-size:.875rem;font-weight:600;display:flex}.record-actions-menu{z-index:4;border:1px solid var(--border);background:var(--surface);width:min(320px,100vw - 76px);box-shadow:var(--shadow-raised);border-radius:8px;padding:16px;position:absolute;top:calc(100% + 8px);right:0}.record-actions-menu .button-row{flex-direction:column;align-items:stretch}.production-records .record-actions-menu .button{flex:none}.record-actions-menu .caption{margin-bottom:0}.record-actions>summary:after{content:"";border-bottom:1.5px solid;border-right:1.5px solid;width:6px;height:6px;margin-top:-3px;transform:rotate(45deg)}.record-actions[open]>summary:after{margin-top:3px;transform:rotate(225deg)}.record-actions>summary:hover{background:var(--control-hover)}@media (width<=699px){.batch-summary-metrics{grid-template-columns:minmax(0,1fr)}#view-production:not(:has([data-screen-target=production-batches].tool-screen:not([hidden]))) .page-title{flex-flow:wrap;align-items:center;gap:12px;margin-bottom:16px}#view-production:not(:has([data-screen-target=production-batches].tool-screen:not([hidden]))) .page-title h1{margin:0;font-size:1.4rem}#view-production:not(:has([data-screen-target=production-batches].tool-screen:not([hidden]))) .page-title p{display:none}.record-actions[open]{flex-basis:100%}.record-actions-menu{width:100%;margin-top:8px;position:static}}.scent-presets{min-width:0;margin-bottom:20px;padding:0}.scent-presets>summary{min-height:44px;padding:18px 24px}.scent-presets>summary strong{margin-left:6px}.scent-presets>summary .caption{margin-left:14px;font-weight:400}.scent-preset-browser{border-top:1px solid var(--border);grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:24px;padding:24px;display:grid}.scent-preset-browse,.scent-preset-preview{min-width:0}.scent-preset-search-status{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.scent-preset-list{align-content:start;gap:6px;max-height:340px;margin:-4px;padding:4px;display:grid;overflow-y:auto}.scent-preset-choice{border:1px solid var(--border);background:var(--surface-muted);text-align:left;overflow-wrap:anywhere;border-radius:6px;width:100%;min-height:64px;padding:12px}.scent-preset-choice strong{font-size:.85rem;line-height:1.5;display:block}.scent-preset-choice span{color:var(--text-secondary);margin-top:4px;font-size:.73rem;display:block}.scent-preset-choice:hover,.scent-preset-choice[aria-pressed=true]{border-color:var(--accent);background:var(--accent-surface)}.scent-preset-choice[aria-pressed=true]{box-shadow:inset 3px 0 var(--accent)}.scent-preset-preview{border-left:1px solid var(--border);overflow-wrap:anywhere;padding-left:24px}.scent-preset-preview h2{margin:6px 0 10px}.scent-preset-preview>p:not(.caption){color:var(--text-secondary);font-size:.87rem}.scent-preset-materials{margin:16px 0;font-size:.85rem}.scent-preset-materials>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:9px 0;display:flex}.scent-preset-materials dd{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;margin:0}.scent-preset-materials dd span{display:block}.scent-preset-basis{margin:16px 0;font-size:.82rem}.scent-preset-basis p{margin-top:12px}.scent-preset-basis ul{padding-left:20px}.scent-preset-basis li+li{margin-top:8px}.scent-preset-preview>.button{margin-top:16px}.scent-preset-empty{color:var(--text-secondary);align-self:center;padding:20px 0}@media (width<=699px){.scent-presets>summary{padding:16px}.scent-presets>summary .caption{margin:6px 0 0 20px;display:block}.scent-preset-browser{grid-template-columns:1fr;gap:20px;padding:16px}.scent-preset-list{max-height:240px}.scent-preset-preview{border-left:0;border-top:1px solid var(--border);padding:20px 0 0}.scent-preset-preview>.button{width:100%;min-height:44px}}.scents-view{max-width:1480px;margin-inline:auto}.scent-planner-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;margin-bottom:20px;display:grid}.scent-planner,.scent-result{min-width:0;padding:24px}.scent-planner .panel-heading,.scent-result .panel-heading{flex-flow:wrap;align-items:center;margin-bottom:20px}.scent-planner>.caption{margin:14px 0}.scent-materials{gap:12px;display:grid}.scent-row{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;min-width:0;padding:12px}.scent-row-fields{grid-template-columns:minmax(0,1fr) 78px 32px;align-items:start;gap:10px;display:grid}.scent-row .field,.scent-inputs .field,.scent-family-fields .field{min-width:0}.scent-custom-name{margin-top:12px}.scent-row .field small{font-variant-numeric:tabular-nums;font-size:.72rem}.scent-remove{min-height:44px;margin-top:27px;padding:0;font-size:1.5rem}.scents-view [aria-invalid=true]{border-color:var(--invalid);box-shadow:inset 3px 0 0 var(--invalid)}.scent-row-help{color:var(--text-secondary);margin-top:8px;display:block}.scent-row-help.error{color:var(--invalid);background:0 0;border:0;margin-bottom:0;padding:0;font-size:.8rem}.scent-actions{margin-top:14px}.scent-actions .caption{margin:0 0 0 auto}.scent-optional{border-top:1px solid var(--border);margin-top:20px;padding-top:14px}.scent-optional>.field,.scent-family-fields{margin-top:14px}.scent-family-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.scent-family-fields .field>span{overflow-wrap:anywhere}.scent-draft-footer{border-top:1px solid var(--border);margin-top:20px;padding-top:14px}.scent-draft-footer p{margin:0}.scent-draft-footer .button-row{margin-top:8px}.scent-planner .panel-heading .button-row{width:auto}#scent-result-status{margin:16px 0}.scent-inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.scent-category-field{grid-column:1/-1}#scent-breakdown-title,.scent-row input,.scent-row select,#scent-name{scroll-margin-top:24px}.scent-mass-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;display:grid}.scent-mass-summary>div{background:var(--accent-surface);border-radius:8px;min-width:0;padding:14px}.scent-mass-summary>div+div{background:var(--surface-muted)}.scent-mass-summary dt{color:var(--text-secondary);font-size:.78rem}.scent-mass-summary dd{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin:4px 0 0;font-size:clamp(1rem,1.6vw,1.45rem);font-weight:700}.scent-mass-summary dd span{font-size:.85rem}.scent-table-scroll{font-variant-numeric:tabular-nums;max-width:100%;margin-top:16px;overflow-x:auto}.scent-table-scroll table{border-collapse:collapse;width:100%;font-size:.8rem}.scent-table-scroll caption{text-align:left;color:var(--muted);padding-bottom:8px;font-size:.78rem}.scent-table-scroll th,.scent-table-scroll td{border-bottom:1px solid var(--border);text-align:right;padding:10px 7px}.scent-table-scroll th:first-child{overflow-wrap:anywhere;text-align:left;background:var(--surface);min-width:90px;max-width:180px;position:sticky;left:0}.scent-table-scroll td{white-space:nowrap}.scent-table-scroll thead th{color:var(--muted);vertical-align:bottom;font-size:.74rem}.scent-table-scroll tfoot th,.scent-table-scroll tfoot td{border-top:2px solid var(--border);border-bottom:0;font-weight:800}.scent-result-boundary{border-top:1px solid var(--border);margin:20px 0 0;padding-top:16px}.scent-mobile-action{display:none}.scent-reference-link{margin-top:0}.scent-import-preview{border:1px solid var(--accent);background:var(--accent-surface);overflow-wrap:anywhere;border-radius:8px;margin-top:16px;padding:16px}.scent-import-preview h3{margin:0 0 12px}.scent-import-preview ul{padding-left:20px}.scent-reference{max-width:80ch}.scent-reference article+article,.scent-reference details{border-top:1px solid var(--border);margin-top:24px;padding-top:20px}.scent-reference h3{margin-top:0}.scent-reference li+li{margin-top:8px}@media (width<=1100px){.scent-planner-layout{grid-template-columns:1fr}.scent-mobile-action{display:inline-flex}}@media (width<=699px){.scent-planner,.scent-result{padding:17px}.scent-row{padding:10px}.scent-row-fields{grid-template-columns:minmax(0,1fr) 64px 32px;gap:6px}.scent-row-fields>.field{grid-area:1/1/auto/-1;gap:18px}.scent-row-fields .scent-share{grid-area:1/2;align-self:start}.scent-row-fields .scent-share small{display:none}.scent-row .field{font-size:.8rem}.scent-remove{grid-area:1/3;margin-top:-9px}.scent-row select{min-height:44px}.scent-inputs,.scent-family-fields{grid-template-columns:1fr}.scent-mass-summary dd{font-size:1.2rem}}.scent-share{text-align:right;font-variant-numeric:tabular-nums;align-self:end;padding-bottom:2px}.scent-share output{color:var(--accent);font-size:1.2rem;font-weight:700;display:block}.scent-share small{color:var(--text-secondary);font-size:.7rem}:is(.scent-range,.recipe-range){appearance:none;cursor:pointer;width:100%;min-width:0;height:44px;box-shadow:none;background:0 0;border:0;margin:4px 0 0;padding:0;display:block}:is(.scent-range,.recipe-range)::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--range-fill,var(--scent-range-fill,0%)), var(--chart-track) var(--range-fill,var(--scent-range-fill,0%)));border-radius:6px;height:6px}:is(.scent-range,.recipe-range)::-moz-range-track{background:var(--chart-track);border-radius:6px;height:6px}:is(.scent-range,.recipe-range)::-moz-range-progress{background:var(--accent);border-radius:6px;height:6px}:is(.scent-range,.recipe-range)::-webkit-slider-thumb{border:3px solid var(--surface);background:var(--range-thumb);width:24px;height:24px;box-shadow:0 0 0 1px var(--range-thumb);appearance:none;border-radius:50%;margin-top:-9px}:is(.scent-range,.recipe-range)::-moz-range-thumb{border:3px solid var(--surface);background:var(--range-thumb);width:18px;height:18px;box-shadow:0 0 0 1px var(--range-thumb);border-radius:50%}:is(.scent-range,.recipe-range):disabled{cursor:default;opacity:.4}:is(.scent-range,.recipe-range):focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:8px}.scent-range-ends{color:var(--muted);justify-content:space-between;margin-top:-4px;font-size:.72rem;display:flex}.scent-mix-feedback{flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:8px;display:flex}.scent-mix-feedback .caption{margin:0}#scent-mix-help:empty{display:none}.scent-quantity-control{min-width:0}.scent-quantity-control>small{margin-top:10px;display:block}:is(.scent-batch-presets,.recipe-batch-presets){flex-wrap:wrap;gap:6px;margin-top:12px;display:flex}:is(.scent-batch-presets,.recipe-batch-presets) .button{min-height:36px;box-shadow:none;padding:5px 9px;font-size:.75rem}:is(.scent-batch-presets,.recipe-batch-presets) [aria-pressed=true]{background:var(--accent-surface);border-color:var(--accent);color:var(--accent)}.scent-concentration-tools{flex-wrap:wrap;align-items:end;gap:8px 12px;margin-top:12px;display:flex}.scent-range-scale{flex:1;font-size:.75rem}.scent-range-scale select{min-height:36px;padding:5px 8px;font-size:.85rem}.scent-concentration-tools .text-button{text-align:left;font-size:.75rem}@media (width<=699px){.scent-share output{font-size:1.1rem}.scent-batch-presets .button,.scent-range-scale select{min-height:44px}.scent-actions .button{flex:initial}}@media screen{:is(.button,.chart-row,.starter-stage,.legend-choice,.scent-preset-choice){transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s}:is(.button,.starter-stage,.legend-choice,.scent-preset-choice):active:not(:disabled){box-shadow:none;transform:translateY(2px)}:is(.starter-check,.home-tool-panel>a,.home-work-list a,.home-work-list button){transition:background-color .15s,box-shadow .15s}.starter-check:has(input:checked){background:var(--accent-surface);box-shadow:inset 3px 0 var(--accent)}.starter-check:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.home-tool-panel>a{border-radius:6px;padding:14px 30px 14px 10px;position:relative}.home-tool-panel>a:after{content:"↗";color:var(--accent);transition:transform .15s;position:absolute;top:14px;right:10px}.home-tool-panel>a:is(:hover,:focus-visible){background:var(--accent-surface)}.home-tool-panel>a:is(:hover,:focus-visible):after{transform:translate(2px,-2px)}.stack [data-stack-ingredient]{transition:opacity .16s,width .16s}.stack .stack-muted{opacity:.18}.tool-screen:not([hidden]),#toast:not([hidden]){animation:.18s ease-out screen-arrive}}@keyframes screen-arrive{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.legend-choice{background:var(--surface-muted);min-height:44px;color:var(--ink);font:inherit;cursor:pointer;border:1px solid #0000;border-radius:24px;align-items:center;gap:7px;padding:6px 10px;display:inline-flex}.legend-choice[aria-pressed=true]{border-color:var(--accent);background:var(--accent-surface);box-shadow:inset 0 -2px var(--accent)}.legend-choice .dot{flex-shrink:0}.checklist-progress{color:var(--text-secondary);font-variant-numeric:tabular-nums;gap:8px;margin:12px 0 16px;font-size:.8rem;display:grid}.checklist-track{background:var(--chart-track);border-radius:6px;height:6px;display:block;overflow:hidden}.checklist-track>span{border-radius:inherit;background:var(--accent);height:100%;transition:width .18s;display:block}.tool-switcher-open{border:1px solid var(--sidebar-border);background:var(--field-bg);width:100%;min-height:44px;color:var(--ink);font:inherit;cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;margin-top:20px;padding:8px 12px;font-size:.85rem;display:flex}.tool-switcher-open:hover{border-color:var(--accent)}.tool-switcher-open span{font-size:1.4rem;line-height:1}.tool-switcher{border:1px solid var(--border);background:var(--surface);width:min(560px,100% - 32px);max-height:calc(100dvh - 40px);color:var(--ink);box-shadow:var(--shadow-raised);border-radius:16px;padding:24px}.tool-switcher::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#16101e99}.tool-switcher-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.tool-switcher-heading h2{margin:0;font-size:1.25rem}#tool-result-count{margin:12px 0}#tool-results{gap:4px;max-height:48dvh;padding:4px;display:grid;overflow-y:auto}.tool-result{min-height:48px;color:var(--ink);border:1px solid #0000;border-radius:8px;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 10px;text-decoration:none;display:grid}.tool-result strong{font-size:.875rem}.tool-result>span{color:var(--muted);font-size:.75rem}.tool-result:is(:hover,:focus-visible),.tool-result[aria-current]{background:var(--accent-surface);border-color:var(--accent)}.tool-result .nav-icon{width:22px;height:22px;color:var(--accent)}.tool-switcher-hint{margin:16px 0 0}@media (width<=1024px){.tool-switcher-open{gap:24px;width:auto;margin-top:16px}}@media (width<=480px){.tool-switcher{padding:16px}.tool-result{grid-template-columns:22px minmax(0,1fr);gap:6px 12px}.tool-result>span{grid-column:2}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}@media print{.tool-switcher-open,.tool-switcher{display:none!important}}.ingredient-control input.recipe-range::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--range-fill,0%), var(--chart-track) var(--range-fill,0%));height:6px}.ingredient-control input.recipe-range::-webkit-slider-thumb{width:24px;height:24px;margin-top:-9px}.ingredient-control input.recipe-range::-moz-range-track{height:6px}.ingredient-control input.recipe-range::-moz-range-progress{height:6px}.ingredient-control input.recipe-range::-moz-range-progress{background:var(--accent)}.ingredient-control input.recipe-range::-moz-range-thumb{width:18px;height:18px}.workbench-composition{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-muted);margin:20px 0;padding:20px}.workbench-composition .starter-ratio{margin:0}.workbench-row:focus-within{box-shadow:inset 3px 0 var(--accent);background:var(--accent-surface)}.starter-ratio rect{transition:opacity .15s}.weighing-track{background:var(--chart-track);border-radius:8px;height:8px;margin:-6px 0 20px;overflow:hidden}.weighing-track>span{border-radius:inherit;background:var(--accent);height:100%;transition:width .18s;display:block}#production-weights .weight-entered>td:first-child{box-shadow:inset 3px 0 var(--accent)}#production-weights .weight-invalid>td:first-child{box-shadow:inset 3px 0 var(--invalid)}@media (width<=699px){.workbench-composition{padding:12px}}@media (prefers-reduced-motion:reduce){.starter-ratio rect,.weighing-track>span{transition:none}}@media (width<=699px){#production-weights :is(.weight-entered,.weight-invalid)>td:first-child{box-shadow:none}#production-weights .weight-entered{box-shadow:inset 3px 0 var(--accent)}#production-weights .weight-invalid{box-shadow:inset 3px 0 var(--invalid)}}.filter-chips{flex-wrap:wrap;gap:8px;margin:14px 0;display:flex}.filter-chip{border:1px solid var(--accent);background:var(--accent-surface);max-width:100%;min-height:44px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;border-radius:22px;align-items:center;gap:12px;padding:7px 12px;font-size:.8rem;display:inline-flex}.filter-chip>span:first-child{overflow-wrap:anywhere;min-width:0}.filter-chip>span:last-child{flex-shrink:0;font-size:1.25rem}.filter-chip:hover{background:var(--control-hover)}.ingredient-selection{background:var(--accent-surface);border-color:var(--accent)}.ingredient-selection-heading{flex:1 0 100%;justify-content:space-between;align-items:baseline;gap:12px;font-size:.85rem;display:flex}.ingredient-selected-list{flex-basis:100%;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.ingredient-selected{border-color:var(--accent);justify-content:space-between;gap:8px}.ingredient-selected>span:nth-child(2){overflow-wrap:anywhere;min-width:0}.ingredient-selected .selection-number{color:var(--accent);font-weight:700}.ingredient-selection-slot{border:1px dashed var(--border);min-height:44px;color:var(--muted);border-radius:6px;align-items:center;gap:10px;padding:8px 12px;font-size:.8rem;display:flex}.ingredient-card.is-selected{border-color:var(--accent);box-shadow:inset 0 3px var(--accent), var(--shadow)}.ingredient-card-actions label:has(input:checked){color:var(--accent);font-weight:700}@media (width<=699px){.ingredient-selected-list{grid-template-columns:1fr}.ingredient-selection-slot{display:none}}@media (prefers-reduced-motion:no-preference){.filter-chip,.ingredient-selected{transition:transform .15s,background-color .15s}.filter-chip:active,.ingredient-selected:active{transform:translateY(2px)}}@media screen and (prefers-reduced-motion:no-preference){.stack [data-composition-key]{transition:opacity .16s}}.scent-mix-overview{margin:16px 0}.scent-mix-strip{background:var(--chart-track);border-radius:6px;height:24px;display:flex;overflow:hidden}.scent-mix-strip>span{flex-shrink:0}.scent-mix-strip .mix-muted{opacity:.2}.scent-mix-choices{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.scent-mix-choice{border:1px solid var(--border);background:var(--surface-muted);max-width:100%;min-height:44px;color:var(--ink);font:inherit;text-align:left;overflow-wrap:anywhere;cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:7px 10px;font-size:.75rem;display:flex}.scent-mix-choice:before{content:"";background:var(--mix-color);border-radius:2px;flex-shrink:0;width:9px;height:9px}.scent-mix-choice:hover{border-color:var(--accent);background:var(--accent-surface)}.scent-row{border-left:3px solid var(--mix-color,var(--border))}@media (prefers-reduced-motion:no-preference){.scent-mix-strip>span{transition:width .15s,opacity .15s}}.library-card .library-card-strip{background:var(--chart-track);border-radius:4px;width:100%;height:12px;margin:4px 0;display:flex;overflow:hidden}.library-card-strip>span{flex-shrink:0;height:100%}.library-card-preview{overflow-wrap:anywhere;gap:4px;font-size:.75rem;display:grid}.library-card-preview b{color:var(--text-secondary);font-weight:500}.library-card>small{margin-top:auto;padding-top:8px}.library-card:is(:hover,:focus-visible){border-color:var(--accent);box-shadow:var(--shadow-raised)}@media (prefers-reduced-motion:no-preference){.library-card{transition:box-shadow .15s,border-color .15s,transform .15s}.library-card:active{transform:translateY(2px)}}.recipe-context{margin-bottom:22px}.comparison-run-navigation{margin:24px 0 18px}.comparison-run-heading,.comparison-run-step{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.comparison-run-views{border:1px solid var(--border);background:var(--surface-muted);border-radius:10px;gap:4px;padding:4px;display:flex}.comparison-run-views .button{box-shadow:none;background:0 0;border-color:#0000}.comparison-run-views .button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-surface);color:var(--accent)}.comparison-run-navigation>.caption{margin:18px 0 10px}.comparison-run-progress{background:var(--chart-track);border-radius:5px;height:5px;overflow:hidden}.comparison-run-progress span{height:100%;width:var(--run-progress,0%);background:var(--accent);transition:width .18s;display:block}.comparison-run-codes{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;max-height:260px;margin:18px 0;padding:4px;display:grid;overflow:auto}.comparison-run-code{text-align:left;border:1px solid var(--border);background:var(--surface);min-height:76px;color:var(--ink);cursor:pointer;border-radius:10px;grid-template-columns:24px 1fr;gap:3px 8px;padding:12px;display:grid}.comparison-run-code>span{color:var(--text-secondary);font-variant-numeric:tabular-nums;grid-row:span 2;font-size:.75rem}.comparison-run-code strong{letter-spacing:.03em;font-size:.85rem}.comparison-run-code small{color:var(--text-secondary);font-size:.68rem}.comparison-run-code[data-state=entered] small{color:var(--accent)}.comparison-run-code[data-state=invalid] small{color:var(--invalid)}.comparison-run-code[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-surface)}.comparison-run-code:hover{border-color:var(--accent)}.comparison-run-code:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.comparison-run-step{border-block:1px solid var(--border);padding:14px 0}.comparison-run-step p{margin:0;font-size:.85rem;font-weight:600}.comparison-run-help{font-size:.75rem}#experiment-runs .comparison-run-current td{background:var(--accent-surface)}#experiment-runs.comparison-run-focused{overflow:visible}#experiment-runs.comparison-run-focused :is(table,tbody){width:100%;display:block}#experiment-runs.comparison-run-focused thead{display:none}#experiment-runs.comparison-run-focused tr:not([hidden]){border:1px solid var(--accent);border-radius:var(--radius);background:var(--accent-surface);grid-template-columns:1fr 1fr;gap:20px;padding:22px;display:grid}#experiment-runs.comparison-run-focused td{min-width:0;box-shadow:none;background:0 0;border:0;padding:0;display:block;position:static}#experiment-runs.comparison-run-focused td:before{content:attr(data-label);color:var(--text-secondary);margin-bottom:8px;font-size:.75rem;display:block}#experiment-runs.comparison-run-focused td:first-child strong{font-size:1.4rem}#experiment-runs.comparison-run-focused :is(textarea,input){width:100%;min-height:44px}#experiment-runs.comparison-run-focused input{font-variant-numeric:tabular-nums;font-size:1.3rem}#experiment-runs.comparison-run-focused textarea{min-height:5em}@media (width<=699px){.comparison-run-codes{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-run-step{grid-template-columns:1fr 1fr;display:grid}.comparison-run-step p{text-align:center;grid-area:1/1/auto/-1}#experiment-runs.comparison-run-focused tr:not([hidden]){grid-template-columns:1fr;padding:16px}}@media (prefers-reduced-motion:reduce){.comparison-run-progress span{transition:none}}.workbench-explore{border:1px solid var(--accent);border-radius:var(--radius);background:var(--accent-surface);margin:22px 0;padding:22px}.workbench-explore-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.workbench-explore h3,.workbench-explore h4{margin:0}.workbench-explore-heading .button-row{align-items:stretch;margin:0}.workbench-explore>.caption{max-width:90ch;margin:12px 0 0}.workbench-explore-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:28px;margin-top:22px;display:grid}.workbench-explore-layout>div{min-width:0}.explore-current{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;gap:12px;margin-top:18px;display:flex}.explore-current output{font-size:2rem;font-weight:650;line-height:1.2}.explore-current>span{color:var(--text-secondary);font-size:.8rem}.workbench-explore-changes{border-left:1px solid var(--border);padding-left:24px}.workbench-explore-changes h4{font-size:.85rem}.workbench-explore-changes .caption{margin:8px 0}.explore-unchanged{color:var(--text-secondary);margin:12px 0;font-size:.85rem;line-height:1.7}.explore-table-scroll{border-radius:6px;max-height:250px;margin-top:10px;overflow:auto}.explore-table-scroll:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.explore-table-scroll table{border-collapse:collapse;width:100%;font-size:.78rem}.explore-table-scroll :is(th,td){border-bottom:1px solid var(--border);text-align:right;padding:8px}.explore-table-scroll th:first-child{text-align:left;overflow-wrap:anywhere;min-width:100px;max-width:220px}.explore-table-scroll thead th{background:var(--accent-surface);white-space:nowrap;font-size:.7rem;font-weight:500;position:sticky;top:0}.explore-delta{color:var(--accent);white-space:nowrap;font-weight:700}.workbench-explore>.explore-history-note{margin-top:18px;font-size:.72rem}@media (width<=900px){.workbench-explore-layout{grid-template-columns:1fr;gap:20px}.workbench-explore-changes{border-left:0;border-top:1px solid var(--border);padding:18px 0 0}}@media (width<=699px){.workbench-explore{padding:16px}.workbench-explore-heading .button-row{width:100%}.workbench-explore-heading .button{flex:1;min-height:44px}.explore-current{flex-wrap:wrap;gap:4px 12px}}
