:root {
color-scheme: dark;
--bg: #050706;
--surface: #0c110e;
--surface-2: #131a15;
--line: #263128;
--text: #f4f8f2;
--muted: #a2ada4;
--accent: #b7ff7b;
--danger: #ff8f7b;
--success: #84e6ad;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 75% 0, #17261988, transparent 45%), var(--bg); }
a { color: inherit; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 1rem; padding: 1rem; z-index: 5; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: #050706b3; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; height: 37px; width: 37px; border-radius: 10px; color: var(--bg); background: var(--accent); font-weight: 900; font-size: 22px; transform: rotate(-3deg); }
.brand strong { display: block; font-size: 15px; letter-spacing: .09em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.local-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.local-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
main { max-width: 1120px; margin: 0 auto; padding: 48px 0 24px; }
.intro { margin-bottom: 32px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); letter-spacing: .17em; font-size: 10px; font-weight: 700; }
h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; }
.intro > p:last-child { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }
.calculator { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.35fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.step { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-variant-numeric: tabular-nums; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
.input-content { padding: 24px; }
label { display: block; font-size: 12px; margin-bottom: 10px; color: var(--muted); }
.water-input { display: flex; align-items: center; border: 1px solid #405244; border-radius: 13px; background: #090e0a; padding: 10px 20px; }
.water-input:focus-within { border-color: var(--accent); }
.water-input input { width: 100%; min-width: 0; color: var(--text); background: none; border: 0; font-size: 64px; font-weight: 550; letter-spacing: -.055em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.water-input input:focus { outline: none; }
.water-input input:focus-visible { box-shadow: 0 2px var(--accent); }
.water-input > span { color: var(--accent); font-size: 27px; font-weight: 400; padding-left: 12px; }
.field-error { color: var(--danger); font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 28px; }
button { min-height: 38px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
button:hover { color: var(--text); border-color: #52624e; }
button[aria-pressed="true"] { border-color: #587a42; background: #192817; color: var(--accent); }
.select-field { margin-top: 20px; }
select { width: 100%; max-width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 9px; background: #101712; color: var(--text); padding: 11px 34px 11px 12px; font-size: 13px; text-overflow: ellipsis; }
option { background: var(--surface); color: var(--text); }
.input-note { margin: 24px 0 0; font-size: 11px; line-height: 1.6; color: #8c998f; }
.volume-badge { margin-left: auto; flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #192817; color: var(--accent); font-size: 12px; font-weight: 600; }
.results-context { display: grid; gap: 6px; padding: 24px; }
.results-context strong { font-size: 17px; font-weight: 550; line-height: 1.4; }
.results-context > span { color: var(--muted); font-size: 12px; line-height: 1.5; }
#phase-notice { margin: 8px 0 0; border-left: 2px solid #587a42; padding-left: 10px; color: #b5c7ae; font-size: 11px; line-height: 1.7; }
.table-labels { display: flex; justify-content: space-between; gap: 10px; padding: 12px 24px; border-block: 1px solid var(--line); background: #101712; color: #91a095; font-size: 9px; letter-spacing: .09em; }
#products { margin: 0; padding: 0 24px; list-style: none; }
.product-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 82px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.product-row:last-child { border-bottom: 0; }
.product-info { min-width: 0; }
.product-info strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.product-info small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.product-info .product-note { color: #b5c7ae; max-width: 40ch; }
.product-picker { min-height: 35px; margin: -5px 0 0 -8px; padding: 6px 22px 6px 8px; width: min(100%, 260px); font-size: 14px; background: var(--surface-2); }
.quantity { color: var(--accent); font-size: 28px; font-weight: 550; letter-spacing: -.03em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quantity small { font-size: 13px; font-weight: 400; letter-spacing: 0; margin-left: 5px; color: #a7c795; }
.quantity.long { font-size: 21px; }
.results-footer { border-top: 1px solid var(--line); background: #0a0f0c; padding: 18px 24px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.results-footer p { margin: 0 0 10px; }
.results-footer a { color: var(--accent); text-decoration: none; display: inline-block; margin-top: 9px; }
.results-footer a:hover { text-decoration: underline; }
summary { width: fit-content; color: var(--muted); }
details p { margin: 10px 0 0 !important; white-space: pre-line; }
.empty-state { min-height: 300px; padding: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; color: var(--muted); }
.empty-state p { max-width: 380px; font-size: 14px; line-height: 1.7; margin: 0; }
.empty-mark { border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; font-size: 28px; color: var(--accent); }
#retry { padding: 6px 20px; }
.page-note { text-align: center; font-size: 11px; color: #8c998f; margin: 25px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1170px) { main { padding-inline: 24px; } }
@media (max-width: 760px) { .calculator { grid-template-columns: 1fr; } main { max-width: 600px; padding-top: 30px; } .intro { margin-bottom: 26px; } }
@media (max-width: 650px) {
main { padding-inline: 16px; }
.topbar { height: 68px; padding-inline: 16px; }
.local-badge { font-size: 10px; }
.brand small { font-size: 8px; }
.intro > p:last-child { max-width: 29ch; font-size: 13px; }
.panel { border-radius: 16px; }
.panel-heading, .results-context { padding: 18px; }
.input-content { padding: 20px 18px; }
.panel-heading { min-height: 68px; }
.table-labels { padding-inline: 18px; font-size: 8px; }
#products { padding-inline: 18px; }
.results-footer { padding-inline: 18px; }
.quantity { font-size: 25px; }
.quantity.long { font-size: 18px; }
.product-info strong { font-size: 13px; }
.empty-state { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
