@font-face { font-family: "Inter"; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #f0f0f2; --fg: #0b0b0c; --muted: #6b6b73; --line: rgba(0,0,0,.08);
  --tiffany: #0abab5; --tiffany-light: #81d8d0; --accent: #0b7480; --accent-ui: #0abab5; --fill: #0abab5; --fill-hover: #81d8d0; --on-fill: #00211f; --accent-fg: #00211f; --accent-soft: rgba(10,186,181,.12); --hero-tint: rgba(129,216,208,.22); --neg: #d92d20;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
  --radius: 16px; --radius-sm: 12px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bar: rgba(255,255,255,.84);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #121214; --surface-2: #1c1c1f; --fg: #f5f5f7; --muted: #9a9aa3; --line: rgba(255,255,255,.09);
    --tiffany: #0abab5; --tiffany-light: #81d8d0; --accent: #86dce2; --accent-ui: #0abab5; --fill: #0abab5; --fill-hover: #81d8d0; --on-fill: #00211f; --accent-fg: #00211f; --accent-soft: rgba(129,216,208,.16); --hero-tint: rgba(129,216,208,.10); --neg: #ff6b5e;
    --shadow: none; --bar: rgba(18,18,20,.86);
  }
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.45; letter-spacing: -0.006em; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--sans); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--tiffany-light); color: var(--on-fill); }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 30; height: env(safe-area-inset-top); background: var(--bg); }
#app { max-width: 720px; margin: 0 auto; padding: 16px 16px 172px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.brandmark { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.brandmark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fill); }
.rolelink { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.title { margin-top: 14px; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.gate-title { font-size: 40px; margin-top: 18px; }
.lede { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 34rem; }
.body { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.hero { padding: 18px 18px 16px; background: linear-gradient(160deg, var(--hero-tint) 0%, transparent 62%), var(--surface); }
.kicker { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.big { font-family: var(--sans); font-size: 48px; line-height: 1.05; margin-top: 4px; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.big.neg { color: var(--neg); }
.note { margin-top: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cardtitle { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .md2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.grid2 > *, .stepper > *, .md2 > *, .line > *, .prodrow > * { min-width: 0; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 14px; font-weight: 500; transition: background .15s, color .15s, transform .12s; }
.chip:active { transform: scale(.97); }
.chip.on { background: var(--fill); border-color: var(--fill); color: var(--on-fill); font-weight: 600; }
.chip.add { color: var(--accent); }
.chips.fill .chip { flex: 1 0 auto; padding: 0 10px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 0; }
.seg button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 550; transition: background .18s, color .18s, box-shadow .18s; }
.seg button.on { background: var(--fill); color: var(--on-fill); box-shadow: 0 1px 3px rgba(0,0,0,.10), 0 0 0 .5px rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark) { .seg button.on { box-shadow: none; } }
.seg button.on { font-weight: 650; }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 40; background: linear-gradient(90deg, #0abab5, #81d8d0); pointer-events: none; }

.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.inputwrap { display: flex; align-items: center; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 0 12px; gap: 6px; transition: border-color .15s, background .15s; }
.inputwrap:focus-within { border-color: var(--accent-ui); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.inputwrap input, .inputwrap select { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; height: 100%; font-variant-numeric: tabular-nums; }
.inputwrap .affix { color: var(--muted); font-size: 15px; }
.textin { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 0 13px; font-size: 16px; outline: 0; transition: border-color .15s, background .15s; }
.textin:focus { border-color: var(--accent-ui); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.textin::placeholder { color: var(--muted); }
textarea.textin { height: auto; min-height: 200px; padding: 12px 13px; line-height: 1.5; resize: vertical; }
.body > .field .textin, .md2 .textin { background: var(--surface); }

.stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 8px; align-items: end; }
.stepper .label { grid-column: 1 / -1; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: -3px; }
.stepbtn { height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: 20px; font-weight: 500; line-height: 1; transition: transform .12s; }
.stepbtn:active { transform: scale(.94); }
.stepper .inputwrap input { text-align: center; }

.readout .k { font-size: 13px; color: var(--muted); }
.readout .v { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readout.strong .v { color: var(--accent); }
.rule { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }

.btn { height: 46px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--fg); transition: transform .12s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--fill); border-color: transparent; color: var(--on-fill); font-weight: 650; }
.btn.primary:hover { background: var(--fill-hover); }
.btn.primary:active { background: var(--fill-hover); }
.btn.dark { background: var(--fg); border-color: transparent; color: var(--bg); }
.btn.small { height: 40px; padding: 0 14px; font-size: 14px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 14px; font-weight: 500; text-align: left; align-self: flex-start; }
.link.accent { color: var(--accent); }
.status { font-size: 13px; color: var(--muted); }

.panel.flush { padding: 0; overflow: hidden; }
.panel.flush .pad { padding: 16px; }
.wheelhead { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 8px 16px; font-size: 12px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); }
.wheel { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); position: relative; }
.wheel li + li { border-top: 1px solid var(--line); }
.wheel li button { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 11px 16px; border: 0; background: transparent; color: var(--fg); text-align: left; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; }
.wheel li button span:not(:first-child) { color: var(--muted); }
.wheel li button.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.wheel li button.on span { color: var(--accent); }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.line { display: grid; grid-template-columns: 100px 1fr auto 38px; gap: 10px; align-items: center; }
.line .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line .cost { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.iconbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.prodrow { display: grid; grid-template-columns: 1fr 128px 38px; gap: 8px; align-items: center; }
.prodrow .textin, .prodrow .inputwrap { height: 42px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent-ui) var(--p), var(--surface-2) var(--p)); box-shadow: inset 0 0 0 1px var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent-ui); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.06); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

.gate { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 640px) { .gate { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; flex-direction: column; align-items: flex-start; min-height: 140px; text-align: left; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--fg); transition: transform .12s; }
.choice:active { transform: scale(.98); }
.choice > span:first-child { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; }
.choice svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice .t { margin-top: 14px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.choice .c { margin-top: 4px; font-size: 14px; color: var(--muted); }
.gatefoot { margin-top: 20px; font-size: 13px; color: var(--muted); }

.logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo img { height: 52px; max-width: 140px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.logo .link { align-self: center; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pdfframe { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }

/* frosted bottom stack: sponsor slot sits just above the tab bar */
.bottombar { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.dock { display: flex; justify-content: center; max-width: 720px; margin: 0 auto; }
.dock a { flex: 1; max-width: 200px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 550; color: var(--muted); text-decoration: none; }
.dock a { position: relative; }
.dock a.on { color: var(--fg); }
.dock a.on::before { content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; border-radius: 0 0 3px 3px; background: var(--fill); }
.dock a.on svg { stroke: var(--accent); }
.dock a.on svg { stroke-width: 2; }
.dock svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sponsor { max-width: 720px; margin: 0 auto; height: 50px; padding: 5px 12px; display: flex; align-items: center; gap: 8px; overflow: hidden; border-bottom: .5px solid var(--line); }
.sponsor:empty { display: none; }
.sponsor-label { flex: none; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 5px; padding: 2px 6px; }
.sponsor-link { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--fg); border-radius: 10px; overflow: hidden; }
.sponsor-link img { display: block; max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }
.sponsor-text { font-size: 13px; line-height: 1.2; font-weight: 550; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sponsor-link.house { background: var(--accent-soft); color: var(--accent); padding: 0 12px; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- On Premise: cost per pour calculator ---------- */
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pill { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.calc .seg button { font-size: 13px; padding: 0 2px; }
.calc .inputwrap select { flex: none; width: auto; font-size: 15px; color: var(--muted); padding-left: 4px; border-left: 1px solid var(--line); height: 60%; cursor: pointer; }
.calcout { border-radius: var(--radius-sm); padding: 14px; background: linear-gradient(160deg, var(--hero-tint) 0%, transparent 70%), var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.calchero .big { font-size: 40px; }
.readgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.readgrid > * { min-width: 0; }
.readgrid .readout .v { font-size: 18px; }
.calcout .note { margin-top: 0; font-size: 13px; }
.sectionhead { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
.prodwrap { display: flex; flex-direction: column; gap: 4px; }
.prodmeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 0 2px; }
.prodmeta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prodmeta .link { font-size: 13px; padding: 0; flex: none; }
.legal p + p { margin-top: 4px; }
.tagline { margin-top: 2px; font-size: 13px; color: var(--muted); font-weight: 500; }
.gate-title { margin-top: 18px; }
/* Privacy / Terms links under the 21+ line */
.legal-links { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.legal-links a { color: var(--muted); text-decoration: underline; min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.legal-note { margin-top: 2px; color: var(--muted); }

/* wine and spirits additions */
.note.glasses:has(> span:empty) { display: none; }
.note.warn:has(> span:empty) { display: none; }
.note.warn { color: var(--fg); font-weight: 600; }
.sample-note { margin: 0; }
.quick-label { margin: 0; font-size: 13px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips.wrap .chip { height: 38px; }

/* email signup prompt (small, dismissible, sits above the legal footer, never covers inputs) */
.signup { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 4px 4px 4px 14px; }
.signup-head { display: flex; align-items: center; gap: 4px; }
.signup-open { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; background: transparent; border: 0; padding: 4px 0; color: var(--fg); }
.signup-title { font-size: 14px; font-weight: 600; }
.signup-sub { font-size: 12px; color: var(--muted); }
.signup-x { flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.signup-form { padding: 4px 10px 8px 0; }
.signup-form[hidden] { display: none; }
.signup-row { display: flex; gap: 8px; align-items: stretch; }
.signup-row .textin { flex: 1; min-width: 0; height: 46px; }
.signup-row .btn { min-height: 46px; min-width: 88px; }
.signup-consent { margin-top: 8px; font-size: 12px; color: var(--muted); }
.signup-consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.signup-status { padding: 0 10px 8px 0; font-size: 13px; color: var(--muted); }
.signup-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- cocktail builder, menu sheet ---- */
.line { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.line .lhead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.line .lhead .name { white-space: normal; overflow: visible; }
.line .tag { margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.line .lbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.line .lbody .lbtns { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.line .lbody .inputwrap { min-height: 44px; }
.line select, #ingredientForm select, #drinkSettings select, .panel select { width: 100%; min-height: 44px; font: inherit; color: inherit; background: transparent; border: 0; padding: 0 8px; }
.iconbtn:disabled { opacity: .35; }
.readgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.readgrid .readout { min-width: 0; }
.examples { border: 1px dashed var(--line); border-radius: 12px; padding: 4px 12px 12px; }
.examples summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 550; }
.chips.wrap { flex-wrap: wrap; }
.prodwrap { display: flex; flex-direction: column; gap: 4px; }
.prodrow { grid-template-columns: minmax(0, 1fr) 132px 44px; }
.batchlines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); }
.link { min-height: 44px; }
.tablewrap { overflow-x: auto; }
.menutable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.menutable th, .menutable td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.menutable thead th { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.menutable th:first-child, .menutable tbody th { text-align: left; font-weight: 550; overflow-wrap: anywhere; }
.menutable .hh { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.csvbox { min-height: 120px; font-family: ui-monospace, monospace; font-size: 12px; }
@media (max-width: 360px) { .readgrid { grid-template-columns: 1fr 1fr; } .prodrow { grid-template-columns: minmax(0, 1fr) 118px 44px; } }

/* v12 pressure-test fixes: 44px tap targets, and hide the fixed dock while a field is being edited so the keyboard never leaves it covering the input */
.chip, .chips.wrap .chip { height: 44px; }
.seg button { height: 44px; }
.rolelink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
.sponsor-link { height: 44px; }
.sponsor-link img { max-height: 44px; }
input[type="range"] { height: 44px; }
input[type="file"] { min-height: 44px; }
body.typing .bottombar { display: none; }
input, select, textarea { scroll-margin-bottom: 24px; }
.btn.small { height: 44px; }
.prodrow .textin, .prodrow .inputwrap { height: 44px; }
.prodrow input { min-height: 44px; }
@media (max-width: 359px) { .calc .grid2 { grid-template-columns: minmax(0, 1fr); } .calc .inputwrap { padding: 0 10px; } }
.prodmeta .link { min-width: 44px; padding: 0 8px; justify-content: flex-end; }

/* ingredient picker: trigger + modal list */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pk-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; }
.pk-row .btn { width: 100%; min-height: 48px; }
.pk-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.pk-trigger:hover { border-color: var(--accent-ui); }
.pk-trigger:focus-visible { outline: 3px solid var(--accent-ui); outline-offset: 2px; }
.pk-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-val.ph { color: var(--muted); }
.pk-chev { color: var(--muted); flex: none; }
body.picker-open { overflow: hidden; }
.pk-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: stretch; justify-content: center; background: rgba(0,0,0,.45); }
.pk-dialog { display: flex; flex-direction: column; width: 100%; max-width: 100%; height: 100dvh; background: var(--bg); color: var(--fg); min-height: 0; }
.pk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 4px 16px; }
.pk-title { margin: 0; font-size: 18px; font-weight: 650; }
.pk-close { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 16px; cursor: pointer; }
.pk-close:focus-visible, .pk-input:focus-visible { outline: 3px solid var(--accent-ui); outline-offset: 2px; }
.pk-search { padding: 4px 12px 0; }
.pk-input { width: 100%; min-height: 48px; font-size: 16px; box-sizing: border-box; }
.pk-hint { margin: 6px 16px 6px; font-size: 13px; color: var(--muted); }
.pk-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 0 24px; }
.pk-head { position: sticky; top: 0; margin: 0; padding: 8px 16px; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); z-index: 1; }
.pk-opt { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); cursor: pointer; overflow-wrap: anywhere; }
.pk-opt:hover { background: var(--accent-soft); }
.pk-opt.on { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent-ui); }
.pk-name { font-size: 16px; color: var(--fg); }
.pk-meta { font-size: 13px; color: var(--muted); }
@media (min-width: 640px) {
  .pk-overlay { align-items: center; }
  .pk-dialog { max-width: 520px; height: min(640px, 88dvh); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
}
@media (prefers-reduced-motion: no-preference) { .pk-opt { transition: background .12s; } }
