/* Bar Menu. Dark by default (the bar is dim); every control is at least 48 px. No web fonts, no CDNs. */
:root {
  --bg: #121212; --panel: #1d1d1f; --line: #333; --text: #f2f0ea; --muted: #a9a59b;
  --in: #3fa66b; --out: #555; --warn: #e0a24a; --bad: #e06a5a; --accent: #d9b56a;
  --tap: 48px; --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
/* Kiosk: no pull-to-refresh, no grey tap flash, no long-press text selection on controls. */
html, body { overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; }
a, button, .chip, .card, nav.top { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1100px; margin: 0 auto; padding: 12px 16px 120px; }  /* room to scroll the last row above a toast */
h1, h2 { font-weight: 650; }
h2 { font-size: 1.2rem; color: var(--accent); margin: 28px 0 8px; }
button, input, summary { font: inherit; color: inherit; }
button { min-height: var(--tap); min-width: var(--tap); border-radius: var(--radius); border: 1px solid var(--line);
         background: var(--panel); padding: 0 16px; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .35; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top bar */
nav.top { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center;
          padding: 8px 16px; background: #0c0c0c; border-bottom: 1px solid var(--line); }
nav.top a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius);
            color: var(--text); text-decoration: none; }
nav.top a[aria-current] { background: var(--panel); color: var(--accent); }
nav.top form { margin-left: auto; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0; }
.toolbar input[type=search] { flex: 1 1 280px; min-height: var(--tap); padding: 0 14px; border-radius: var(--radius);
                              border: 1px solid var(--line); background: var(--panel); }
.check { display: inline-flex; gap: 10px; align-items: center; min-height: var(--tap); padding: 0 6px; }
.check input { width: 26px; height: 26px; accent-color: var(--accent); }
.summary { color: var(--muted); margin: 4px 0; }
/* Toast pinned to the bottom, so it shows wherever on the list the switch was. */
.flash { position: fixed; z-index: 3; left: 16px; right: 16px; bottom: 16px; max-width: 900px; margin: 0 auto;
         background: #23301f; border: 1px solid var(--in); border-radius: var(--radius); padding: 12px 14px;
         box-shadow: 0 6px 24px #000a; animation: fade 8s forwards; pointer-events: none; }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Stock rows */
.rows, .recipes, .shopping ul { list-style: none; margin: 0; padding: 0; }
.row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin: 6px 0;
       background: var(--panel); border-radius: var(--radius); border-left: 6px solid var(--in); }
.row.is-out { border-left-color: var(--out); }
.row.is-out .name { color: var(--muted); }
.row .info { flex: 1; min-width: 0; }
.row .name { font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .9rem; }
.meta span + span::before { content: " · "; }
.tag { color: var(--warn); }
.hint { font-size: .9rem; color: var(--accent); margin-top: 2px; }
.prep { font-size: .95rem; color: var(--muted); }
.prep p { margin: 4px 0; }
.prep .ok { color: var(--in); } .prep .no { color: var(--bad); }
.count { display: flex; align-items: center; gap: 6px; }
.count output { min-width: 2ch; text-align: center; font-size: 1.2rem; }
.count button { font-size: 1.4rem; padding: 0; }

/* The in/out switch */
.switch { position: relative; width: 104px; height: 52px; padding: 0; border-radius: 26px; border: 0;
          background: var(--out); display: inline-flex; align-items: center; }
.switch .knob { position: absolute; top: 6px; left: 6px; width: 40px; height: 40px; border-radius: 50%;
                background: #ddd; transition: left .12s; }
.switch .state { flex: 1; text-align: right; padding-right: 14px; font-weight: 650; }
.switch[aria-checked=true] { background: var(--in); }
.switch[aria-checked=true] .knob { left: 58px; }
.switch[aria-checked=true] .state { text-align: left; padding: 0 0 0 16px; }
.htmx-request .switch, .htmx-request.count { opacity: .6; }

/* Recipes */
.recipe { background: var(--panel); border-radius: var(--radius); margin: 6px 0; border-left: 6px solid var(--in); }
.recipe.blocked { border-left-color: var(--out); }
.recipe summary { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
                  min-height: var(--tap); padding: 12px 14px; cursor: pointer; }
.recipe summary::-webkit-details-marker { display: none; }
.recipe summary .meta { flex-basis: 100%; }
.recipe .name { font-size: 1.1rem; }
.missing { color: var(--bad); } .can { color: var(--in); }
.recipe details > :not(summary) { margin-left: 14px; margin-right: 14px; }
.lines { list-style: none; padding: 0; }
.lines li { display: flex; gap: 12px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.lines .amt { min-width: 6ch; color: var(--accent); }
.lines .bottle { margin-left: auto; color: var(--muted); }
.lines .skip .bottle { color: var(--warn); } .lines .missing .bottle { color: var(--bad); }
.steps { padding-left: 1.4em; } .note { color: var(--warn); padding-bottom: 12px; }
.shopping li { padding: 6px 0; border-top: 1px solid var(--line); }

/* Login */
.login { max-width: 360px; margin: 12vh auto; display: grid; gap: 14px; text-align: center; }
.login input { min-height: 64px; font-size: 2rem; text-align: center; letter-spacing: .4em; border-radius: var(--radius);
               border: 1px solid var(--line); background: var(--panel); }
.login button { min-height: 64px; background: var(--accent); color: #111; border: 0; font-weight: 650; }
.error { color: var(--bad); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .row { flex-wrap: wrap; }
  .row .info { flex-basis: 100%; }
  .row .count { margin-right: auto; }
}

/* ---- Guest menu ---------------------------------------------------------------------- */
.guest-head h1 { font-size: 1.8rem; margin: 12px 0 4px; }
/* Filters (SPEC 7.1): a sidebar that can be hidden on wide screens, a drawer from the left on phones. */
.menu-layout { display: block; }
.filter-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 0;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 24px; }
.filter-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--accent); color: #111; font-size: .85rem; font-weight: 700; }
.filter-count[hidden] { display: none; }
.filter-summary { color: var(--muted); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filter-panel h3 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; }
.filter-head h2 { margin: 0; }
.filter-panel .drink-search { width: 100%; margin-top: 12px; box-sizing: border-box; }
.filter-foot { display: grid; gap: 10px; margin-top: 20px; }
.show-drinks { min-height: var(--tap); background: var(--accent); color: #111; border: 0; font-weight: 650; }
.filter-panel .chip { white-space: normal; }
.filter-scrim { display: none; }
@media (max-width: 899px) {
  .filter-panel { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: min(340px, 86vw); padding: 12px 16px 24px;
    overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); box-shadow: 8px 0 24px rgba(0, 0, 0, .6);
    transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; }
  .filters-open .filter-panel { transform: none; visibility: visible; }
  .filters-open + .filter-scrim { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(0, 0, 0, .55); }
  body.filters-drawer { overflow: hidden; }
}
@media (min-width: 900px) {
  .menu-layout.filters-open { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
  .filter-panel { display: none; }
  .filters-open .filter-panel { display: block; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 8px 4px 24px 0; }
  .filters-open .filter-bar { display: none; }  /* the panel itself shows what's on */
  .show-drinks { display: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: 0 0 auto; min-height: var(--tap); padding: 0 18px; border-radius: 24px; white-space: nowrap; }
.chip[aria-pressed=true] { background: var(--accent); color: #111; border-color: var(--accent); }
.chip.clear { border-style: dashed; }
.empty { color: var(--muted); font-size: 1.1rem; margin: 32px 0; }
.section-title { font-size: 1.5rem; margin: 32px 0 4px; color: var(--accent); }
.group-title { font-size: 1.05rem; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-height: 96px; border-radius: var(--radius);
        background: var(--panel); color: var(--text); text-decoration: none; border: 1px solid var(--line); }
a.card:active { border-color: var(--accent); }
.card-name { font-size: 1.2rem; font-weight: 650; }
.card-blurb { color: var(--muted); font-size: .95rem; }
.card-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: auto; font-size: .85rem; }
.card .tag { color: var(--muted); }
.card .tag + .tag::before { content: "· "; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); }
.dots i.on { background: var(--accent); }
.zero { color: var(--in); font-weight: 600; }
.contains { color: var(--warn); font-size: .85rem; }
.card.ask { opacity: .85; border-style: dashed; }

/* Detail and order */
.back { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 4px; color: var(--accent);
        text-decoration: none; font-size: 1.1rem; }
.detail { max-width: 720px; margin: 0 auto; }
.detail h1 { font-size: 2rem; margin: 8px 0 4px; }
.detail h2 { margin-top: 20px; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.ingredients { padding-left: 1.2em; font-size: 1.1rem; }
.ingredients li { padding: 3px 0; }
.ingredients .bottle { color: var(--muted); font-size: .95rem; }
.ingredients .bottle::before { content: "· "; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.muted { color: var(--muted); }
.order { display: grid; gap: 10px; margin-top: 24px; padding: 16px; background: var(--panel); border-radius: var(--radius); }
.order label { font-weight: 600; margin-top: 6px; }
.order label .muted { font-weight: 400; font-size: .9rem; margin-left: 6px; }
.order input { min-height: 56px; padding: 0 14px; font-size: 1.2rem; border-radius: var(--radius);
               border: 1px solid var(--line); background: var(--bg); }
.order-button, .button { min-height: 64px; margin-top: 8px; border: 0; border-radius: var(--radius); background: var(--accent);
                         color: #111; font-weight: 700; font-size: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; text-decoration: none;
          margin-top: 24px; }
.ran-out { color: var(--bad); font-size: 1.3rem; font-weight: 650; margin-top: 24px; }

/* Order status */
.confirm { text-align: center; padding-top: 6vh; }
.status h1 .for { color: var(--muted); font-weight: 400; }
.track { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 28px 0 12px; }
.track li { padding: 10px 16px; border-radius: 24px; border: 1px solid var(--line); color: var(--muted); }
.track li.now { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 650; }
.status[data-status=done] .track li:last-child { background: var(--in); border-color: var(--in); color: #fff; }
.status[data-status=cancelled] .track { opacity: .4; }
.status-line { font-size: 1.3rem; }

/* ---- Bartender page: dark, big type, readable at arm's length ------------------------------- */
.sound-banner { width: 100%; margin: 8px 0; background: var(--warn); color: #111; border: 0; font-weight: 650; }
.bar-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
#queue { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; border-radius: var(--radius); }
#queue h2 { margin-top: 8px; }
#queue .count { display: inline-block; min-width: 1.8em; padding: 0 6px; border-radius: 12px; background: var(--panel);
                color: var(--text); text-align: center; }
#queue.flash-new { animation: newOrder 1.6s ease-out 1; }
@keyframes newOrder { 0%, 40% { background: #3a3220; } 100% { background: transparent; } }
.queue { list-style: none; padding: 0; margin: 0; }
.q-item { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin: 6px 0; min-height: 72px;
          border-left: 6px solid var(--accent); }
.q-item[data-status=making] { border-left-color: var(--in); }
.q-item[aria-current=true] { outline: 2px solid var(--accent); background: #2a2620; }
.q-what { font-size: 1.25rem; font-weight: 650; }
.q-who { color: var(--text); }
.q-note { color: var(--warn); font-size: .95rem; }
.q-meta { color: var(--muted); font-size: .9rem; }
.q-missing { color: var(--bad); font-size: .95rem; font-weight: 600; }
#recent h3 { color: var(--muted); font-size: 1rem; margin: 24px 0 6px; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; color: var(--muted); }
.card-empty { color: var(--muted); font-size: 1.3rem; margin-top: 40px; text-align: center; }
.bar-card { background: var(--panel); border-radius: var(--radius); padding: 18px 20px 24px; font-size: 1.2rem; }
.bar-card h2 { font-size: 2.2rem; margin: 0; color: var(--text); }
.bar-card .who { font-size: 1.3rem; margin: 4px 0; }
.guest-note { color: var(--warn); font-size: 1.3rem; margin: 6px 0; }
.card-note { background: #23301f; border: 1px solid var(--in); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 12px; }
.big3 { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.big3 span { font-size: 1.5rem; font-weight: 650; padding: 8px 14px; border-radius: var(--radius); background: #2b2b2e; }
.card-lines { width: 100%; border-collapse: collapse; font-size: 1.35rem; }
.card-lines td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.card-lines .amt { white-space: nowrap; color: var(--accent); font-weight: 650; width: 1%; }
.card-lines .bottle { color: var(--text); font-weight: 600; }
.card-lines .loc, .pour-card .loc { color: var(--accent); font-size: 1rem; }
.card-lines tr.skip .bottle { color: var(--warn); }
.card-lines tr.missing .bottle { color: var(--bad); }
.line-note { color: var(--muted); font-size: 1rem; }
.badge { font-size: .8rem; padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
.badge.sub { background: #4a3a1a; color: var(--warn); }
.badge.sip { background: #2a2a4a; color: #b8b8ff; }
.garnish { margin: 14px 0; } .garnish .skip, .garnish .sub { color: var(--warn); } .garnish-extra { color: var(--muted); font-size: .9em; }
.bar-card .steps { font-size: 1.3rem; } .bar-card .steps li { margin: 6px 0; }
.tip { color: var(--warn); }
.pour-card .pour-name { font-size: 1.8rem; font-weight: 650; margin: 16px 0 4px; }
.actions { display: flex; gap: 12px; margin-top: 20px; }
.actions button { flex: 1; min-height: 72px; font-size: 1.4rem; font-weight: 700; border: 0; }
.actions .start { background: #2b4a6a; }
.actions .done { background: var(--in); color: #fff; }
.cant { margin-top: 16px; }
.cant summary { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius);
                border: 1px solid var(--bad); color: var(--bad); cursor: pointer; list-style: none; }
.cant summary::-webkit-details-marker { display: none; }
.cant-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cant-choices button { border-color: var(--bad); }
.cant-choices .plain { border-style: dashed; border-color: var(--line); }
.bar-card[data-status=done], .bar-card[data-status=cancelled] { opacity: .75; }

@media (max-width: 900px) {
  .bar-layout { grid-template-columns: 1fr; }
  #queue { position: static; max-height: none; }
}

/* Connection banner (live.js): shown while the server is out of reach, or to offer a reload after a deploy. */
.conn { position: fixed; z-index: 4; top: 0; left: 0; right: 0; padding: 10px 16px; text-align: center;
        background: var(--warn); color: #111; font-size: 1.05rem; font-weight: 650; box-shadow: 0 4px 16px #000a; }
.conn.tappable { min-height: var(--tap); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.flash.bad { background: #3a1f1c; border-color: var(--bad); }

/* "Your order" strip on /menu, so the idle reset doesn't lose a guest's order. */
.last-order { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-height: 56px; margin: 8px 0 4px;
              padding: 8px 16px; border-radius: var(--radius); background: var(--panel); border-left: 6px solid var(--accent);
              color: var(--text); text-decoration: none; }
.last-order .lo-label { color: var(--muted); font-size: .9rem; }
.last-order .lo-what { flex: 1; font-weight: 600; }
.last-order .lo-status { font-weight: 650; color: var(--accent); }
.last-order[data-status=done] { border-left-color: var(--in); }
.last-order[data-status=done] .lo-status { color: var(--in); }
.last-order[data-status=cancelled] { border-left-color: var(--bad); }
.last-order[data-status=cancelled] .lo-status { color: var(--bad); }

/* Order form: the guest's bottle and the count (SPEC 6.4, 6.5). Radios hidden behind big tap targets. */
fieldset.pick, fieldset.qty { border: 0; padding: 0; margin: 16px 0 4px; }
fieldset legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.order .pick-option, .order .qty-options label { margin-top: 0; }
.pick-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pick-option, .qty-options label { position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 64px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); cursor: pointer; -webkit-user-select: none; user-select: none; }
.pick-option input, .qty-options input { position: absolute; opacity: 0; pointer-events: none; }
.pick-option:has(input:checked), .qty-options label:has(input:checked) { border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent); }
.pick-option:has(input:focus-visible), .qty-options label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pick-name { font-weight: 600; }
.pick-sub { font-size: .9rem; font-weight: 400; color: var(--muted); }
.qty-options { display: flex; gap: 8px; }
.qty-options label { flex: 0 0 72px; align-items: center; font-size: 1.4rem; font-weight: 650; }

/* Bar card: rounds */
.big3 .makes { background: var(--accent); color: #111; }
.badge.pick { background: #1f3a2a; color: #8fe0b0; }
/* The bar's "Add an order" (SPEC 7.2) */
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.queue-head h2 { margin: 0; }
.button.add-order { min-height: var(--tap); margin: 0; padding: 0 18px; display: inline-flex; align-items: center; font-size: 1rem; }
.drink-search { flex: 1; min-height: 56px; padding: 0 16px; font-size: 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.badge.dbl { background: var(--accent); color: #111; font-weight: 700; }
.big3 .makes.double { background: #e0703a; }
/* "Make it a double" on the order form (SPEC 6.6): one big switch-like tap target */
.double-option { display: flex; align-items: center; gap: 14px; min-height: 56px; margin: 12px 0; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 1.1rem; font-weight: 600; }
.order .double-option input { width: 28px; height: 28px; min-height: 0; padding: 0; accent-color: var(--accent); }
.double-option:has(input:checked) { border-color: var(--accent); }
.also { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
        margin: 12px 0; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: var(--radius); }
.also p { margin: 0; }

/* Wine fridge (SPEC 7.5): a dark cabinet behind a glass door, one cell per slot, caps colored by style. */
:root { --cap-red: #8e1b2e; --cap-white: #e8dc9a; --cap-rose: #e59aa8; --cap-sparkling: #d9b56a; --cap-amber: #b86b1f; }
.fridge {
  max-width: 720px; margin: 12px auto; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #2a2c30, #17181a);
  border: 2px solid #3a3c40; box-shadow: inset 0 0 0 6px #101112, 0 6px 18px rgba(0, 0, 0, .5); }
.zone + .zone { margin-top: 14px; padding-top: 14px; border-top: 4px solid #0c0d0e; }
.zone-label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 4px; }
.shelves { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px; align-items: start;
  background: repeating-linear-gradient(180deg, transparent 0 calc(100% - 3px), #3b3326 calc(100% - 3px) 100%); }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  height: 76px; min-height: 0; min-width: 0; padding: 8px 4px 6px; overflow: hidden; border-radius: 10px; border: 1px solid #2c2e31;
  background: radial-gradient(circle at 50% 22%, #24262a, #141517 70%); color: var(--text); font: inherit; }
.slot.vacant { background: #121314; border-style: dashed; border-color: #2a2b2d; }
.slot .cap, .cap { display: inline-block; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15); background: #2a2b2d; }
.slot.vacant .cap { background: transparent; border-style: dashed; }
.cap-red .cap, .cap.cap-red { background: var(--cap-red); }
.cap-white .cap, .cap.cap-white { background: var(--cap-white); }
.cap-rose .cap, .cap.cap-rose { background: var(--cap-rose); }
.cap-sparkling .cap, .cap.cap-sparkling { background: radial-gradient(circle at 35% 35%, #fff6 0 3px, transparent 4px), var(--cap-sparkling); }
.cap-amber .cap, .cap.cap-amber { background: var(--cap-amber); }
.slot-name { font-size: .72rem; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.slot-count { position: absolute; top: 4px; right: 6px; font-size: .75rem; font-weight: 700; color: var(--accent); }
.slot.is-out { opacity: .5; }
.slot.lit { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(217, 181, 106, .5); }
button.slot { cursor: pointer; }
.moving .slot { outline: 1px dashed #555; }
.slot.from { box-shadow: 0 0 0 3px var(--accent); }
.fridge.small { max-width: 320px; padding: 8px; margin: 12px 0; }
.fridge.small .slot { height: 30px; padding: 4px; }
.fridge.small .slot .cap { width: 16px; height: 16px; }
.fridge.small .zone + .zone { margin-top: 8px; padding-top: 8px; }
/* The wine rack (SPEC 7.5): natural pine, dark holes, the row on top set apart. */
.fridge.rack { background: linear-gradient(160deg, #d8b98a, #b48d5c); border-color: #8a6a43;
  box-shadow: inset 0 0 0 6px #9c784b, 0 6px 18px rgba(0, 0, 0, .5); }
.fridge.rack .zone-label { color: #3a2a17; font-weight: 650; }
.fridge.rack .zone + .zone { border-top-color: #8a6a43; }
.fridge.rack .shelves { background: none; }
.fridge.rack .slot.vacant { background: #2a1f14; border-color: #5c452b; }
.fridge.rack .slot { padding-left: 2px; padding-right: 2px; }
.move-hint { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: var(--radius); background: #2b2b2e; }
ul.outside { list-style: none; padding: 0; margin: 0; }
ul.outside li { display: flex; align-items: center; gap: 12px; min-height: var(--tap); border-bottom: 1px solid var(--line); }
ul.outside li .muted { margin-left: auto; }
.sheet-host:empty { display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 75vh; overflow-y: auto;
  padding: 12px 16px 24px; background: var(--panel); border-top: 2px solid var(--accent); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .6); }
.sheet header { display: flex; align-items: center; justify-content: space-between; }
.sheet h2 { margin: 6px 0; }
.sheet h3 { font-size: 1rem; color: var(--muted); margin: 16px 0 6px; }
.sheet-wine { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 600; margin: 4px 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sheet-actions .primary { background: var(--accent); color: #111; border: 0; font-weight: 650; }
.sheet-list { display: grid; gap: 6px; }
.sheet-list button { display: flex; align-items: center; gap: 12px; text-align: left; }
.sheet-list .muted { margin-left: auto; font-size: .85rem; }
@media (max-width: 560px) { .slot { height: 64px; } .slot-name { font-size: .66rem; } }

/* Rack spares, refill tasks and Undo (SPEC 7.5, 7.5.1) */
.slot-rack { position: absolute; top: 4px; left: 6px; font-size: .68rem; font-weight: 700; color: #8fe0b0; }
.sheet-counts { margin: 4px 0; }
/* A toast with an Undo stays and takes taps until the next change (plain toasts fade and let taps through). */
.flash.has-undo { animation: none; pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.undo-btn { margin-left: 12px; min-height: var(--tap); padding: 0 14px; border-color: var(--accent); color: var(--accent); background: transparent; }
.tasks { margin: 8px 0 12px; padding: 8px 12px; border: 1px dashed var(--accent); border-radius: var(--radius); }
.tasks h3 { margin: 4px 0 6px; font-size: 1rem; color: var(--accent); }
.tasks ul { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; }
.tasks li + li { border-top: 1px solid var(--line); }
.task-text { flex: 1 1 200px; }
.task-done { background: var(--in); border: 0; color: #fff; font-weight: 650; }

/* Bottles: add, edit, gone for good (SPEC 7.6) */
.add-link, .edit-link, .plain-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--accent); text-decoration: none; }
.add-link { margin-left: auto; }
.edit-link { min-height: 40px; margin-top: 6px; padding: 0 14px; font-size: .9rem; }
.bottle-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bottle-head h1 { font-size: 1.4rem; margin: 12px 0; }
form.bottle { display: grid; gap: 18px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field legend { font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  min-height: var(--tap); padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; }
.field [aria-invalid=true] { border-color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-error { color: var(--bad); margin: 0; font-size: .95rem; }
.flash-inline { padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--in); background: #23301f; }
.flash-inline.bad { border-color: var(--bad); background: #3a1f1c; }
.hint-line { margin: 4px 0 0; font-size: .9rem; }
.type-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px; margin-top: 8px; }
.type-option { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 10px; border-radius: 8px; }
.type-option:has(input:checked) { background: #2a2618; }
.type-option input, .seg input, label.check.field input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; }
.type-option .muted { margin-left: auto; font-size: .85rem; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius); }
.seg label:has(input:checked) { border-color: var(--accent); }
label.check.field { flex-direction: row; align-items: center; flex-wrap: wrap; }
.button.save { margin-top: 4px; width: 100%; max-width: 760px; cursor: pointer; }
form.retire { max-width: 760px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
button.danger { border-color: var(--bad); color: var(--bad); background: transparent; }
.group.retired .row { opacity: .8; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Receipt import (SPEC 7.7) */
.add-link.plain { margin-left: 0; }
.notice { padding: 14px 16px; border: 1px dashed var(--accent); border-radius: var(--radius); max-width: 760px; }
.notice code { color: var(--accent); }
form.upload { display: grid; gap: 14px; max-width: 760px; }
.file-pick { position: relative; display: flex; align-items: center; justify-content: center; min-height: 96px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--accent); font-weight: 600; cursor: pointer; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.receipt-lines { list-style: none; margin: 0 0 16px; padding: 0; max-width: 900px; }
.receipt-line { padding: 10px 12px; margin: 8px 0; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--in); border-radius: var(--radius); }
.receipt-line.is-skip { border-left-color: var(--out); opacity: .85; }
.receipt-line.has-error { border-color: var(--bad); }
.receipt-line .printed { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; margin-bottom: 8px;
  overflow-wrap: anywhere; }
.receipt-line .looked-up { margin: 8px 0 0; font-size: .95rem; }
.line-fields { display: grid; grid-template-columns: 1fr 90px 110px; gap: 10px; align-items: end; }
.line-fields .field > span { font-size: .85rem; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
form.review .button.save { max-width: 900px; }
@media (max-width: 560px) { .line-fields { grid-template-columns: 1fr 1fr; } .line-fields .grow { grid-column: 1 / -1; } }

/* Purchase list, Low, refills, used tonight (SPEC 7.8) */
.low-btn { min-height: 44px; padding: 0 12px; font-size: .9rem; color: var(--muted); }
.low-btn[aria-pressed=true] { border-color: var(--warn); color: #111; background: var(--warn); font-weight: 650; }
.refill-btn { white-space: nowrap; }
.got-btn { border-color: var(--in); color: var(--in); font-weight: 650; }
details.skipped { margin-top: 28px; }
details.skipped summary { min-height: var(--tap); display: flex; align-items: center; color: var(--muted); cursor: pointer; }
.seg.tri { flex-wrap: nowrap; gap: 6px; }
.seg.tri button { min-width: 64px; }
.seg.tri button[aria-pressed=true] { border-color: var(--accent); color: #111; background: var(--accent); font-weight: 650; }

/* Open next (SPEC 7.5.2): wines by drinking window, with the basement cellar. */
.open-next { margin-top: 12px; }
.dw-group { margin: 20px 0 6px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dw-group.dw-soon { color: var(--warn); }
.dw-group.dw-wait { color: #8fb3d9; }
.dw-list { list-style: none; margin: 0; padding: 0; }
.dw-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dw-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.dw-name { font-weight: 600; }
.dw-when { font-size: .95rem; }
.dw-soon .dw-when { color: var(--warn); }
.dw-wait .dw-when { color: #8fb3d9; }
.dw-when b { font-weight: 650; color: var(--accent); }
.dw-count { font-size: .9rem; }
.dw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dw-actions .primary { background: var(--accent); color: #111; border: 0; font-weight: 650; }
/* The bottle form's drinking window. */
.window .years { display: flex; gap: 10px; flex-wrap: wrap; }
.window .years label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 90px; }
.window .years input { width: 100%; }

/* Corner marks on fridge and rack slots (SPEC 7.5.2): green R ready, yellow square better from, red circle not yet. */
.slot-tr { position: absolute; top: 4px; right: 6px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.slot-tr .slot-count, .slot-tr .slot-rack { position: static; }
.dw-mark { display: inline-flex; align-items: center; gap: 3px; font-size: .66rem; font-weight: 700; line-height: 1; }
.slot .dw-mark { position: absolute; top: 5px; left: 5px; }
.dw-mark i { display: inline-block; font-style: normal; }
.dw-mark-ready i { color: #4cc27d; font-size: .78rem; font-weight: 800; }
.dw-mark-better i { width: 9px; height: 9px; background: #e8c547; border-radius: 1px; }
.dw-mark-better { color: #e8c547; }
.dw-mark-wait i { width: 10px; height: 10px; background: #e06a5a; border-radius: 50%; }
.dw-mark-wait { color: #f08a7c; }
.dw-mark .y2 { display: none; }
.rack .dw-mark .y4 { display: none; }
.rack .dw-mark .y2 { display: inline; }
@media (min-width: 760px) { .rack .dw-mark .y4 { display: inline; } .rack .dw-mark .y2 { display: none; } }
@media (max-width: 480px) { .dw-mark .y4 { display: none; } .dw-mark .y2 { display: inline; } }
.dw-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .88rem; margin: 4px 0 10px; }
.dw-legend .dw-mark { font-size: .8rem; }
.sheet-when { margin: 2px 0; color: var(--accent); }
/* Narrow slots: drop the bottle a little so the corner mark clears it. */
@media (max-width: 480px) { .fridge:not(.small) .slot.full { padding-top: 18px; height: 84px; } }
.rack:not(.small) .slot.full { padding-top: 18px; height: 84px; }
@media (min-width: 760px) { .rack:not(.small) .slot.full { padding-top: 8px; height: 76px; } }

/* The basement cellar (SPEC 7.5.2): the old rack on end, 2 across and 7 high, darker wood. */
.fridge.cellar { max-width: 260px; background: linear-gradient(180deg, #6b4a2b, #4e3520); border-color: #3a2716; }
.fridge.cellar .zone-label { color: #e9d3b0; }
.cellar .dw-mark .y4 { display: inline; }
.cellar .dw-mark .y2 { display: none; }

/* The rack and the cellar side by side (owner, 2026-11-29); stacked when there's no room. */
.racks-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 20px; }
.rack-col { flex: 1 1 420px; min-width: 0; }
.cellar-col { flex: 0 0 210px; }
.cellar-col .fridge.cellar { max-width: none; margin-left: 0; margin-right: 0; }
.cellar-note { margin: 0 0 8px; font-size: .9rem; }
@media (max-width: 660px) { .cellar-col { flex: 1 1 100%; } .cellar-col .fridge.cellar { max-width: 260px; margin: 0 auto; } }

/* Opened bottles and made syrups (SPEC 7.9) */
.opened { margin-top: 4px; font-size: .95rem; }
.opened summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius);
                  border: 1px dashed var(--line); color: var(--muted); cursor: pointer; list-style: none; }
.opened summary::-webkit-details-marker { display: none; }
.opened summary::after { content: " ▾"; margin-left: 6px; }
.opened[open] summary::after { content: " ▴"; }
.opened.fresh-ok summary { border-style: solid; color: var(--text); }
.fresh-soon summary, .fresh-soon .fresh-tag { color: var(--warn); border-color: var(--warn); }
.fresh-past summary, .fresh-past .fresh-tag { color: var(--bad); border-color: var(--bad); }
.opened-pick { padding: 8px 0 2px; }
.opened-pick p { margin: 0 0 8px; }
.opened-pick form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.opened-pick input[type=date] { min-height: var(--tap); padding: 0 10px; border-radius: var(--radius);
                                border: 1px solid var(--line); background: var(--bg); color: var(--text); }
button.plain { background: none; color: var(--muted); }
.use-soon { margin: 8px 0 16px; padding: 4px 14px 10px; border: 1px solid var(--warn); border-radius: var(--radius);
            background: #2a2418; }
.use-soon h2 { margin: 10px 0 4px; color: var(--warn); }
.use-soon ul { list-style: none; margin: 0; padding: 0; }
.use-soon li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.use-soon li:first-child { border-top: 0; }
.use-soon .info { flex: 1 1 240px; min-width: 0; }
.use-soon .name { font-size: 1.1rem; }
.use-soon p.muted { margin: 6px 0 0; font-size: .9rem; }
.special-tag { color: var(--accent); }
#queue .use-soon { margin: 0 0 12px; }
#queue .use-soon li { gap: 8px; }
.use-soon h3 { margin: 10px 0 4px; color: var(--warn); font-size: 1rem; }
.sheet-open { margin: 4px 0; }

/* Flavors (SPEC 6.7) */
.card-twists { display: block; margin-top: 6px; font-size: .85rem; color: var(--accent); }

/* History (SPEC 7.10) */
.history-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.history-range .button { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px;
                         border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
                         color: var(--text); text-decoration: none; }
.history-range .button.on { border-color: var(--accent); color: var(--accent); }
.history-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }
.ranked { margin: 0; padding: 0 0 0 1.6em; }
ul.ranked { list-style: none; padding-left: 0; }
.ranked li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ranked .r-name { min-width: 0; }
.never { margin: 24px 0; }
.never summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; color: var(--accent); }
nav.top { overflow-x: auto; scrollbar-width: none; }
nav.top a { flex: none; }
.new-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .75rem;
           font-weight: 700; letter-spacing: .02em; vertical-align: middle; color: #111; background: var(--in); }
.pick-option:has(input:disabled) { opacity: .4; }

/* Drink icons (SPEC 7.1) */
.drink-icon { flex: none; display: block; }
.drink-icon .glass { fill: none; stroke: #d8d4ca; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.drink-icon .ice { fill: #ffffff; fill-opacity: .35; stroke: #ffffff; stroke-opacity: .55; stroke-width: .6; }
.drink-icon .foam { fill: #fbf7ee; }
.drink-icon .bubble { fill: none; stroke: #ffffff; stroke-opacity: .8; stroke-width: .6; }
.drink-icon .steam { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; }
.drink-icon .wheel-lime path:first-child { fill: #8bc34a; } .drink-icon .wheel-lemon path:first-child { fill: #f4d03f; }
.drink-icon .wheel-orange path:first-child { fill: #f39c12; } .drink-icon .wheel-grapefruit path:first-child { fill: #f28b82; }
.drink-icon .pith { fill: none; stroke: #fff8e1; stroke-width: .8; }
.drink-icon .cherry { fill: #b3001b; } .drink-icon .stem, .drink-icon .stick { fill: none; stroke: #6d4c41; stroke-width: 1.2; stroke-linecap: round; }
.drink-icon .stick { stroke-width: 2.2; }
.drink-icon .pick { stroke: #c8b88a; stroke-width: 1; }
.drink-icon .olive { fill: #7c8f2a; } .drink-icon .pimento { fill: #d84315; } .drink-icon .onion { fill: #f5f2e8; }
.drink-icon .leaf { fill: #66bb6a; } .drink-icon .berry { fill: #4a148c; }
.drink-icon .beans { fill: #4e342e; } .drink-icon .dust { fill: #8d6e63; }
.drink-icon .salt { fill: none; stroke: #ffffff; stroke-width: 2; stroke-dasharray: 1 1.4; }
.card-head { display: flex; gap: 10px; align-items: flex-start; }
.card-head .card-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-head { display: flex; gap: 16px; align-items: center; }

/* Ingredient pages (SPEC 7.4.1) */
a.ing-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.detail .ingredients a.ing-link { display: inline-block; min-height: 32px; line-height: 32px; }

/* Batches (SPEC 7.11) */
.batch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.batch-card { background: var(--panel); border-radius: var(--radius); padding: 12px 16px; border-left: 6px solid var(--out); }
.batch-card.is-in { border-left-color: var(--in); }
.batch-card h2 { margin: 6px 0 4px; }
.batch-card .steps { padding-left: 1.4em; color: var(--muted); }
.batch-make, .batch-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.batch-make select, .batch-pick select { min-height: var(--tap); padding: 0 10px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.batch-plan { margin-top: 12px; border-left-color: var(--accent); }
.batch-card { min-width: 0; }
.batch-card .card-lines { width: 100%; table-layout: fixed; font-size: 1rem; }
.batch-card .card-lines td { padding: 6px 4px; overflow-wrap: anywhere; vertical-align: top; font-size: 1rem; }
.batch-card .card-lines td.amt { width: 32%; }
.batch-card .card-lines td.bottle { width: 34%; font-size: .85rem; color: var(--muted); font-weight: 400; }
.batch-card .card-lines td.amt { white-space: normal; font-size: .9rem; }

/* SPEC 7.9: an opened bottle that belongs in the fridge says so (a longer toast), and the bar lists what goes back
   in the fridge before closing */
.flash.cold-alert { animation: fade 12s forwards; display: flex; align-items: center; gap: 14px;
                    background: #182a3a; border: 2px solid #6fb7ff; }
.cold-alert strong { color: #9fd0ff; font-size: 1.1rem; }
.cold-icon { width: 40px; height: 40px; flex: none; color: #9fd0ff; }
.cold-tag { color: #9fd0ff; }
.cold-mark { color: #9fd0ff; font-weight: 600; white-space: nowrap; }
.chill-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 6px 10px;
                background: #182a3a; border: 1px solid #6fb7ff; border-radius: var(--radius); color: #cfe6ff; }
.chill-banner .cold-icon { width: 24px; height: 24px; }
.chill-list { flex: 1; min-width: 0; }
.chill-list b { color: #9fd0ff; }
.chill-ok { flex: none; white-space: nowrap; min-height: var(--tap); padding: 0 16px; border-color: #6fb7ff; color: #9fd0ff; background: transparent; }
.line-fresh { font-size: .85rem; margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.line-fresh.fresh-past { color: var(--bad); }
.line-fresh.fresh-soon { color: var(--warn); }
.new-bottle { min-height: var(--tap); padding: 0 14px; }

/* SPEC 7.7.3: a draft from a Claude session */
.draft-lines .receipt-line { padding: 10px 12px; }
.draft-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.draft-row .name { font-weight: 600; }
.draft-qty { white-space: nowrap; color: var(--muted); }
.draft-discard { margin-top: 14px; }

/* The shots page (owner, 2026-12-02): pick the kind, then the bottle. */
.shot-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.shot-kind { min-height: 64px; font-size: 1.1rem; font-weight: 600; border-radius: 14px; }
.shot-kind[aria-pressed=true] { background: var(--accent); color: #111; border-color: var(--accent); }
.special-offer { margin-left: 8px; }
/* No: a small tag on the top-left corner, with a full-size tap area around it. The toast holding an offer stays. */
.card-note.has-offer { position: relative; padding-top: 22px; }
.flash.has-offer { animation: none; pointer-events: auto; padding-top: 22px; }
.offer-no { position: absolute; top: -22px; left: -12px; width: var(--tap); height: var(--tap); min-height: 0; padding: 0;
            border: 0; background: transparent; display: grid; place-items: center; z-index: 1; }
.offer-no span { padding: 4px 10px; border-radius: 999px; background: #2b2b2e; border: 1px solid var(--muted, #888);
                 color: inherit; font-size: .85rem; font-weight: 600; box-shadow: 0 2px 8px #0008; }

/* Bottle facts (owner, 2026-12-02): on a pour's page, and in the bottle form */
.bottle-facts { margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.bottle-facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 18px; margin: 0; }
.bottle-facts dt { color: var(--muted); font-size: .85rem; }
.bottle-facts dd { margin: 2px 0 0; font-size: 1.05rem; }
.bottle-facts .flavor-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.bottle-facts .flavor-words .tag { padding: 4px 10px; border-radius: 999px; background: #2b2b2e; }
.bottle-facts .about { margin: 12px 0 0; line-height: 1.45; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.facts-grid label, .facts-form > label { display: flex; flex-direction: column; gap: 4px; }
