:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#0c101c;color:#eef1fa;font-size:15px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 75% 5%,rgba(43,75,111,.15),transparent 35%),#0c101c}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}
.shell{max-width:1440px;margin:0 auto;padding-left:clamp(18px,5vw,80px);padding-right:clamp(18px,5vw,80px)}
.nav{height:80px;border-bottom:1px solid #242b3c;background:rgba(12,16,28,.88);position:relative;z-index:2}
.nav-inner{height:100%;display:flex;align-items:center;gap:24px}.brand{display:inline-flex;align-items:center;font-size:20px;font-weight:900;letter-spacing:2px}
.brand-dot{color:#b7f3db}.nav-link{margin-left:auto;border:1px solid #364254;padding:11px 15px;border-radius:9px;font-weight:600;font-size:12px;white-space:nowrap}
.nav-link:hover,.outline:hover{background:#263349}.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(345px,.85fr);align-items:center;gap:clamp(30px,4vw,70px);padding-top:60px;padding-bottom:55px}
.hero-copy{min-width:0;max-width:760px}.kicker{color:#a7e7c9;font-size:11px;font-weight:750;letter-spacing:2.3px;display:flex;align-items:center;gap:10px}
.kicker-line{width:24px;height:1px;background:#a7e7c9}
.hero h1{font-size:clamp(41px,4.7vw,72px);line-height:1.08;letter-spacing:-3px;font-weight:800;margin:28px 0 25px}
.hero h1 em{font-style:normal;color:#a7e7c9}.hero-copy>p{max-width:580px;color:#b1bfd0;line-height:1.8;font-size:15px;margin-bottom:27px}
.hero-cta,.primary{display:inline-flex;justify-content:center;align-items:center;gap:24px;background:#b7f3db;color:#102924;border:0;border-radius:9px;font-weight:750;padding:16px 22px;transition:transform .15s ease,background .15s ease}
.hero-cta:hover,.primary:hover{background:#d2ffe9;transform:translateY(-2px)}
.hero-facts{display:flex;gap:24px;flex-wrap:wrap;margin-top:37px;color:#a3b0c2;font-size:11px;letter-spacing:.25px}
.hero-facts strong{color:#9fe5c1;font-size:12px;margin-right:6px}
/* Responsive visual guide — semantic content, no image assets or scripts. */
.search-guide{min-width:0;border:1px solid #39545a;border-radius:17px;padding:23px;background:linear-gradient(150deg,#1b3037 0%,#171f30 58%,#151d2d 100%);box-shadow:0 18px 58px #05091436}
.guide-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.guide-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#b7f3db;font-size:10px;letter-spacing:1.6px;font-weight:750}
.guide-pulse{width:7px;height:7px;border-radius:50%;background:#a4ecc8;box-shadow:0 0 0 4px #a4ecc81c}
.guide-hint{color:#788f9d;font-size:9px;font-weight:700;letter-spacing:1.5px}
.search-guide h2{font-size:clamp(20px,2vw,25px);letter-spacing:-.7px;line-height:1.2;margin:16px 0 21px}
.guide-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:21px}
.guide-stats>div{min-width:0;border:1px solid #34515b;border-radius:10px;background:#10252e80;padding:13px 9px 11px;text-align:center}
.guide-stats strong{display:block;font-size:clamp(23px,2.6vw,32px);line-height:1.12;font-weight:850;letter-spacing:-1px;color:#b8f3db;font-variant-numeric:tabular-nums}
.guide-stats strong small{font-size:14px;letter-spacing:0}
.guide-stats span{display:block;margin-top:7px;font-size:10px;line-height:1.4;color:#a7b9c7}
.guide-modes{display:grid;gap:13px;border-top:1px solid #364b55;padding-top:18px}
.guide-mode{display:grid;grid-template-columns:56px minmax(0,1fr);gap:13px;align-items:start}
.guide-range{display:grid;place-items:center;min-height:33px;padding:6px 2px;border:1px solid #497970;border-radius:8px;background:#214238;color:#c1f5dc;font-size:11px;font-weight:800;letter-spacing:.3px}
.guide-mode:nth-child(2) .guide-range{border-color:#4f667d;background:#243547;color:#c1d5ea}
.guide-mode strong,.guide-ranking strong{font-size:12px;color:#ecf4f6;font-weight:750}
.guide-mode p,.guide-ranking p{font-size:11px;line-height:1.58;color:#adbfce;margin:4px 0 0}
.guide-ranking{display:grid;grid-template-columns:27px minmax(0,1fr);gap:12px;align-items:start;margin-top:19px;padding-top:18px;border-top:1px solid #364b55}
.guide-ranking-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;color:#b7f3db;background:#29483f;font-weight:900;font-size:18px;line-height:1}
.guide-warning{display:flex;gap:10px;align-items:start;margin:19px 0 0;padding:11px 12px;border:1px solid #66583e;background:#56462733;border-radius:9px;color:#ddcdae;font-size:11px;line-height:1.6}
.guide-warning>span:first-child{display:grid;place-items:center;flex:none;border:1px solid #9f8350;border-radius:50%;width:17px;height:17px;color:#f0d49f;font-size:12px;font-weight:900}
.guide-warning strong{color:#f3dfb8}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:35px;margin:12px auto 26px}
.section-head h2{font-size:clamp(26px,3vw,38px);letter-spacing:-1px;margin:11px 0 0}.section-head>p{max-width:400px;font-size:13px;color:#98aabe;line-height:1.7;margin:0}
.workspace{padding-bottom:25px}.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.panel,.results-panel{background:#171e2d;border:1px solid #303a4e;border-radius:13px;padding:23px;min-width:0}
.panel-top{display:flex;align-items:center;gap:12px;margin-bottom:8px}.panel h3{font-size:18px;margin:0;letter-spacing:-.4px}
.step-number{font-size:11px;font-weight:800;color:#b4f5d5;background:#2a4a46;border:1px solid #3b6e5d;border-radius:6px;padding:8px}
.panel-description{color:#9faec3;font-size:12px;line-height:1.6;min-height:40px;margin:0 0 20px}
label{display:block;color:#cfd8e7;font-size:12px;font-weight:600;margin-bottom:15px}
textarea,select,input[type=number]{display:block;margin-top:8px;width:100%;background:#0e1523;border:1px solid #47536a;border-radius:7px;padding:11px;color:#eaf1fa;min-height:42px;outline:none}
textarea{resize:vertical;min-height:270px;max-height:550px;line-height:1.6;font-size:13px}
textarea:focus,select:focus,input:focus{border-color:#8fe9c6;box-shadow:0 0 0 2px rgba(143,233,198,.18)}
.control-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:15px}
.outline,.ghost{border-radius:7px;font-weight:650;padding:11px 13px;font-size:12px}
.outline{background:#28364a;color:#e8edf6;border:1px solid #46556b}.ghost{border:0;background:transparent;color:#a7e7c9}
.ghost:hover{text-decoration:underline}.small-note{font-size:12px;color:#9eacc1;line-height:1.65}
.notice-error{font-size:12px;color:#ffd3cf;padding:12px;border:1px solid #884d50;background:#442930;border-radius:7px;line-height:1.5;overflow-wrap:anywhere}
[hidden]{display:none!important}
.tabbar{display:flex;border-bottom:1px solid #37445a;margin-top:15px;gap:5px}
.tab{background:transparent;border:0;padding:10px 12px;color:#9eabc0;font-size:12px;border-bottom:2px solid transparent}
.tab.active{border-bottom-color:#a7e7c9;color:#e0fbf1}.tab span{font-weight:700;color:#b7f3db;padding-left:3px}
.inventory-list{list-style-position:inside;max-height:295px;overflow:auto;padding:0;margin:12px 0 0;overflow-wrap:anywhere;font-size:12px;color:#d3dce9}
.inventory-list li{padding:9px 2px;border-bottom:1px solid #2c3749}
.fields{display:grid;grid-template-columns:1fr;gap:0}
.tolerance-group{padding:0;margin:2px 0 14px;border:0;min-width:0}
.tolerance-group legend{padding:0;margin-bottom:11px;color:#d1e1e4;font-size:12px;font-weight:750}
.tolerance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tolerance label{font-size:11px;margin-bottom:0;white-space:nowrap}
.tolerance input{padding:7px 5px;text-align:center;font-size:12px}
.tolerance-help{font-size:11px;color:#a7b8c9;line-height:1.6;margin:12px 0 0}
.tolerance-help strong{color:#b7f3db}
.primary{width:100%;padding:13px 14px;font-size:13px}.results-panel{margin-top:17px;padding:28px}
.results-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.results-heading h3{font-size:24px;margin:8px 0 0;letter-spacing:-.5px}
.metric-pill{background:#1e3a3b;border:1px solid #356d5b;color:#b1e4d3;font-size:11px;border-radius:30px;padding:8px 12px}
.results-panel>.small-note{margin-top:18px}
.results-tools{display:flex;align-items:end;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-top:18px}
/* Sorting lives in accessible column-header buttons, not a separate dropdown. */
.results-guide{color:#9eacc1;font-size:11px;line-height:1.6;margin:0;flex:2;min-width:230px}
#results-count{color:#b7f3db;font-weight:750}
.table-scroll{overflow:auto;max-height:calc(20 * 50px + 50px);margin-top:12px;overscroll-behavior:contain;scrollbar-gutter:stable}
.table-scroll:focus-visible{outline:2px solid #8fe9c6;outline-offset:3px}
.table-scroll tr{height:50px}
.table-scroll th{position:sticky;top:0;z-index:1;background:#171e2d;box-shadow:0 1px 0 #39465a}
.table-scroll th[data-sort-column]{padding:0}
.sort-header{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;min-height:50px;text-align:left;border:0;border-radius:0;padding:13px 12px;background:transparent;color:#9eafc4;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}
.sort-header:hover{color:#b7f3db;background:#263849}
.sort-header:focus-visible{outline:2px solid #a7e7c9;outline-offset:-3px}
.sort-arrow{color:#8397ae;font-size:13px;line-height:1}
th[aria-sort="ascending"] .sort-header,th[aria-sort="descending"] .sort-header{color:#b7f3db}
th[aria-sort="ascending"] .sort-arrow,th[aria-sort="descending"] .sort-arrow{color:#b7f3db}
.results-explainer{margin:9px 0 0;font-size:11px;line-height:1.6;color:#95a9b9}
.table-scroll table{margin-top:0}
table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;margin-top:12px}
th,td{padding:13px 12px;border-bottom:1px solid #303a4d;text-align:left}
th{font-size:11px;color:#8f9fb5;font-weight:700}
td{font-size:12px}tr:hover td{background:#202b3b}
.empty{text-align:center;color:#8498af;padding:27px;margin:0;font-size:13px}
.history-panel{padding-top:23px}.history-panel h4{font-size:16px;margin:0 0 10px}
.history-panel ol{padding-left:25px}.history-panel li{margin-bottom:7px;color:#d9e2ef}
.history-panel .merge-step{display:flex;align-items:start;gap:11px;padding:12px 14px;border:1px solid #39465a;border-radius:7px;font-size:13px;line-height:1.6;margin:0;cursor:pointer}
.history-panel .merge-step:hover{background:#202d3f}
.history-panel .merge-step:focus-within{outline:2px solid #a7e7c9;outline-offset:2px}
.history-panel input{accent-color:#a7e7c9;flex:none;margin-top:3px}
.history-panel .merge-text{flex:1;overflow-wrap:anywhere}
.history-panel .merge-outcome{font-weight:700}
.history-panel .merge-check{visibility:hidden;color:#b4f1d5;font-size:18px;font-weight:700;line-height:1.2}
.history-panel .completed .merge-step{border-color:#3e695f;background:#172d2b}
.history-panel .completed .merge-ingredients{text-decoration:line-through;color:#a4b8b4}
.history-panel .completed .merge-outcome{color:#b4f1d5;text-decoration:none}
.history-panel .completed .merge-check{visibility:visible}
.footnote{padding-top:32px;padding-bottom:42px}
.footnote>p{max-width:670px;font-size:11px;line-height:1.7;color:#90a0b3;margin:0}
.site-footer{border-top:1px solid #2b3546;padding:27px 0;color:#8b99af;font-size:11px}.site-footer .shell{display:flex;justify-content:space-between}
.site-footer .shell span:first-child{font-weight:900;letter-spacing:2px;color:#d6e2f1}
@media(max-width:1170px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.steps .panel:last-child{grid-column:span 2}.hero{grid-template-columns:minmax(0,1fr) minmax(315px,.95fr);gap:30px}.hero h1{font-size:clamp(40px,4.8vw,61px)}.search-guide{padding:19px}.guide-stats>div{padding:12px 6px}}
@media(max-width:760px){.nav{height:68px}.hero{grid-template-columns:1fr;gap:28px;padding-top:44px;padding-bottom:50px}.hero h1{letter-spacing:-1.6px}.search-guide{max-width:560px;width:100%;justify-self:center}.section-head{display:block}.section-head>p{margin-top:12px}.steps{grid-template-columns:1fr}.steps .panel:last-child{grid-column:1}.panel{padding:19px}.results-panel{padding:18px}.site-footer .shell{gap:12px;flex-wrap:wrap}}
@media(max-width:430px){.results-guide{min-width:100%;max-width:none}.brand{font-size:16px}.nav-link{font-size:11px;padding:10px}.hero-facts{gap:11px}.hero-cta{width:100%}.search-guide{padding:16px}.guide-stats>div{padding:12px 4px}.guide-stats span{font-size:9px}.tolerance{grid-template-columns:1fr 1fr}.results-heading{align-items:start;flex-direction:column}.metric-pill{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-cta,.primary{transition:none}}

#item-type-wrap[hidden]{display:none}

/* Each label is a full-row pointer and keyboard-accessible checkbox target. */
#inventory{list-style:none}
.inventory-choice{display:flex;align-items:flex-start;gap:10px;margin:0;padding:3px 0;cursor:pointer;font-weight:400;line-height:1.6}
.inventory-choice input{flex:none;width:17px;height:17px;margin:2px 0 0;accent-color:#a7e7c9}
.inventory-choice input:focus-visible{outline:2px solid #8fe9c6;outline-offset:3px}
#inventory .excluded span{color:#8996a8}
.inventory-choice:has(input:disabled){cursor:default}
