/* ══════════════════════════════════════════════════════════════
   Blend builder (/blend) — blendbuilder.html.twig only.
   Direction B "The Gaiwan": left column of decisions, right sticky
   gaiwan column. Brand tokens only; motion budget per design brief
   (one ceremony, no idle loops, transform/opacity only).
   ══════════════════════════════════════════════════════════════ */

.bb{
  --bb-accent:var(--gold);
  /* accent dark enough for 3:1+ on cream wherever it colors glyphs */
  --bb-accent-deep:color-mix(in srgb, var(--bb-accent) 65%, var(--tea-dark));
  max-width:1100px;
  padding-top:3rem;
  padding-bottom:4rem;
}
.bb [hidden]{display:none!important} /* our display rules must never beat the hidden attribute */
.bb button{cursor:pointer;touch-action:manipulation;font:inherit;color:inherit}
.bb :is(button,a,input):focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.bb button:active{transform:scale(.97)}                    /* R9 press */
.bb-num{font-variant-numeric:tabular-nums}
.bb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ── Header ── */
.bb-header{text-align:center;margin-bottom:2.25rem}
.bb-header .contact-title{margin-bottom:.6rem}
/* F2: --gold on cream is 2.2:1 — darken the eyebrow on THIS page only */
.bb-header .contact-eyebrow{color:var(--gold-text)}
.bb-intro{max-width:52ch;margin:0 auto;color:var(--text-light);line-height:1.7}
.bb-intro p{margin:0}
/* lives under the band in the tea column (owner O4) — always in view */
.bb-step{font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--text-light);text-align:center}

/* ── Layout ── */
/* the presets LABEL takes its own first grid row, so the tea column's top
   edge aligns with the preset cards themselves (owner O3) */
.bb-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 400px;
  grid-template-areas:
    'plabel  .'
    'presets side'
    'bases   side'
    'addons  side'
    'namer   side'
    'order   side'
    'filler  side';
  grid-template-rows:auto auto auto auto auto auto 1fr;
  column-gap:2.5rem;
  align-items:start;
}
.bb-presets-label{grid-area:plabel}
.bb-presets{grid-area:presets}
.bb-bases{grid-area:bases}
.bb-addons{grid-area:addons}
.bb-namer{grid-area:namer}
.bb-order{grid-area:order}
.bb-side{grid-area:side}

.bb-section{margin-bottom:2.25rem}
.bb-h{display:flex;align-items:baseline;gap:.6rem;font-size:1.3rem;margin-bottom:1rem}
.bb-h-num{font-family:var(--font-display);font-size:1.15em;color:var(--bb-accent-deep);transition:color .4s ease}

/* ── Presets ── */
.bb-presets{margin-bottom:2.25rem}
.bb-presets-label{font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-text);margin-bottom:.75rem}
.bb-presets-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.75rem}
.bb-preset{
  display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;text-align:left;
  background:#fff;border:1px solid var(--gold-light);border-radius:14px;padding:.85rem 1rem;
  min-height:44px;
  transition:border-color .2s,box-shadow .2s,transform .18s;
}
.bb-preset:hover{border-color:var(--gold);box-shadow:0 6px 18px rgba(61,74,53,.08);transform:translateY(-2px)}
.bb-preset-band{display:flex;width:100%;height:6px;border-radius:999px;overflow:hidden}
.bb-preset-band span{flex-basis:0;min-width:2px}
.bb-preset-name{font-family:var(--font-display);font-size:1.05rem;font-weight:600;color:var(--text)}
.bb-preset-desc{font-size:.8rem;color:var(--text-light);line-height:1.45}

/* ── Base cards ── */
.bb-base-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.85rem}
.bb-base{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;text-align:left;
  background:#fff;border:1px solid var(--gold-light);border-radius:14px;padding:1rem 1.1rem;
  min-height:44px;
  transition:border-color .2s,box-shadow .2s,transform .25s var(--ease-silk),background-color .2s;
}
.bb-base .bb-dot{position:absolute;top:1.1rem;right:1.1rem}
.bb-base-title{font-family:var(--font-display);font-size:1.12rem;font-weight:600;color:var(--text);padding-right:1.6rem}
.bb-base-line{font-size:.85rem;color:var(--text-light);line-height:1.5}
.bb-base-price{font-size:.85rem;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums;margin-top:.15rem}
/* R7 — gold border draw on pick */
.bb-base-draw{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.bb-base-draw rect{
  width:calc(100% - 3px);height:calc(100% - 3px);
  fill:none;stroke:var(--gold);stroke-width:1.6;
  stroke-dasharray:100;stroke-dashoffset:100;
}
.bb-base.is-selected{border-color:transparent;background:color-mix(in srgb, var(--tone) 5%, #fff)}
.bb-base.is-selected .bb-base-draw rect{animation:bb-draw .4s ease-out forwards}
@keyframes bb-draw{to{stroke-dashoffset:0}}
/* R8 — subtle tilt + sheen, hover-capable devices only, ≤6° */
@media (hover:hover){
  .bb-base::after{
    content:'';position:absolute;inset:0;border-radius:14px;pointer-events:none;
    background:linear-gradient(115deg,transparent 42%,rgba(232,213,183,.28) 50%,transparent 58%);
    opacity:0;transition:opacity .25s;
  }
  .bb-base:hover{transform:perspective(700px) rotateX(1.5deg) translateY(-2px);box-shadow:0 8px 22px rgba(61,74,53,.09)}
  .bb-base:hover::after{opacity:1}
  .bb-chip-main:hover .bb-chip-title{color:var(--gold-text)}
}

/* tone swatch dot — doubles as the composition-band legend */
.bb-dot{
  flex:none;width:14px;height:14px;border-radius:50%;
  background:var(--tone,var(--gold-light));
  box-shadow:inset 0 0 0 1.6px rgba(61,74,53,.35);
}

/* ── Ingredient chips (rows) ── */
.bb-locked-note{font-size:.9rem;color:var(--text-light);font-style:italic;margin-bottom:.9rem}
.bb.has-base .bb-locked-note{display:none}
.bb-addon-grid{display:flex;flex-direction:column;gap:.5rem}
.bb-chip{
  display:flex;align-items:center;gap:.5rem;
  background:#fff;border:1px solid var(--gold-light);border-radius:14px;
  padding:.25rem .45rem .25rem .95rem;
  transition:border-color .2s,box-shadow .2s;
}
/* pre-base lock (buttons ship with real disabled attrs — M3) + R5 first-entry stagger reveal */
.bb:not(.has-base) .bb-chip{opacity:.4;transform:translateY(6px)}
.bb.has-base .bb-chip{
  opacity:1;transform:none;
  transition:opacity .4s ease calc(var(--i)*50ms),transform .4s var(--ease-silk) calc(var(--i)*50ms),border-color .2s,box-shadow .2s;
}
.bb-chip.is-selected{border-color:var(--gold)}
.bb-chip-main{
  flex:1;display:flex;align-items:center;gap:.7rem;min-width:0;
  background:none;border:none;min-height:48px;padding:.2rem .3rem;text-align:left;border-radius:10px;
}
.bb-chip-title{font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .18s}
.bb-chip-price{margin-left:auto;font-size:.85rem;color:var(--text-light);font-variant-numeric:tabular-nums;white-space:nowrap}

.bb-chip-tools{display:none;align-items:center;gap:12px} /* clears the 8px hitbox halos */
.bb-chip.is-selected .bb-chip-tools{display:inline-flex}
.bb-chip.is-selected .bb-chip-price{display:none}
.bb-chip-grams{font-size:.8rem;color:var(--text-light);font-variant-numeric:tabular-nums;white-space:nowrap}
/* the site's familiar qty stepper (cart.css), compacted (owner W3a):
   quiet 28px visual, invisible 44px hitbox halo on each button */
.bb .cdi-qty-stepper{background:#fff;border-color:rgba(201,169,110,.75);overflow:visible} /* cart clips — would cut the hitbox halos */
.bb .cdi-qty-btn{position:relative;width:28px;height:28px;font-size:1rem;color:var(--text-light);border-radius:50px}
.bb .cdi-qty-btn:hover{color:var(--text)}
.bb .cdi-qty-btn::after{content:'';position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
.bb-mult-val{
  min-width:26px;font-size:.82rem;overflow:hidden;color:#82663a;font-variant-numeric:tabular-nums; /* 4.7:1 on the pale gold pill tone (measured, task 3) */
}
.bb-mult-val::before{content:'×'}
.bb-mult-val [data-mult-digit]{display:inline-block}
.bb-mult-val.is-tick [data-mult-digit]{animation:bb-odo .2s ease-out} /* R4 odometer */
@keyframes bb-odo{from{transform:translateY(65%);opacity:0}to{transform:none;opacity:1}}
.bb-chip-remove,.bb-chip-info{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;background:none;border:none;border-radius:10px;
  transition:background .18s,color .18s;color:var(--text-light);
}
.bb-chip-remove svg,.bb-chip-info svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.bb-chip-info .bb-i-dot{fill:currentColor;stroke:none}
.bb-chip-remove:hover{color:var(--tea-dark);background:rgba(201,169,110,.12)}
.bb-chip-info:hover{color:var(--gold-text);background:rgba(201,169,110,.12)}

/* ── Ingredient info: card in the tea column (desktop) / bottom sheet (mobile) — R6, owner O1 ── */
.bb-info{
  position:relative;background:var(--warm-white);border:1px solid var(--gold-light);border-radius:14px;
  padding:.9rem 1rem;min-height:118px;margin:.9rem 0 .25rem;
}
.bb-info-inner{transition:opacity .18s ease}
.bb-info-inner.is-fading{opacity:0}
.bb-info-empty{color:var(--text-light);font-style:italic;font-size:.9rem}
.bb-info-grams{font-family:'Source Sans 3','Noto Sans Thai',sans-serif;font-size:.8rem;font-weight:400;color:var(--text-light);margin-left:.15rem}
.bb-info-title{display:flex;align-items:center;gap:.55rem;font-family:var(--font-display);font-size:1.05rem;font-weight:600;margin-bottom:.3rem}
.bb-info-text{
  font-size:.88rem;line-height:1.6;color:var(--text-light);margin-bottom:.4rem;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; /* reserved height stays honest */
}
.bb-info-more{font-size:.85rem;font-weight:600;color:var(--tea-dark);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--gold-light)}
.bb-info-more:hover{color:var(--gold-text)}
.bb-info-close{
  display:none;position:absolute;top:.5rem;right:.5rem;width:44px;height:44px;
  align-items:center;justify-content:center;background:none;border:none;border-radius:10px;color:var(--text-light);
}
.bb-info-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.bb-scrim{
  position:fixed;inset:0;background:rgba(44,36,22,.45);z-index:300;
  opacity:0;pointer-events:none;transition:opacity .3s ease;
}
.bb-scrim.is-open{opacity:1;pointer-events:all}

/* ── Name fields ── */
.bb-field{margin-bottom:1.1rem;max-width:420px}
.bb-field label{
  display:block;font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-light);margin-bottom:.35rem;
}
.bb-field input{
  width:100%;padding:.75rem 1rem;border:1px solid var(--gold-light);border-radius:9px;
  background:#fff;font:inherit;font-size:1rem;color:var(--text);
  transition:border-color .2s,box-shadow .2s;
}
.bb-field input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,169,110,.18)}

/* ── The gaiwan column ── */
.bb-side{
  position:sticky;top:calc(var(--bb-top,72px) + 1rem);
  scroll-margin-top:calc(var(--bb-top,72px) + 1rem);
  background:#fff;border:1px solid var(--gold-light);border-radius:16px;
  padding:1.4rem 1.5rem 1.5rem;
  overflow:hidden; /* clips the accent hairline to the rounded corners (W3c) */
}
/* ambient accent — hairline that takes the base's tone */
.bb-side::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:var(--bb-accent);opacity:.75;transition:background .4s ease;
}
.bb-side-eyebrow{
  display:block;font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-text);margin-bottom:.4rem;
}
.bb-side-name{
  position:relative;display:inline-block;font-family:var(--font-display);font-size:1.55rem;font-weight:600;
  line-height:1.2;color:var(--text);margin-bottom:.15rem;overflow-wrap:anywhere;
}
.bb-side-name.is-empty{color:var(--text-light);font-weight:400;font-style:italic;font-size:1.15rem}
/* R10 — gold underline mirrors the name field focus */
.bb-side-name::after{
  content:'';position:absolute;left:0;right:0;bottom:-3px;height:2px;background:var(--gold);
  transform:scaleX(0);transform-origin:left;transition:transform .25s var(--ease-silk);
}
.bb.name-focus .bb-side-name::after{transform:scaleX(1)}

/* desktop: gaiwan centered, the band anchored right under the bowl, step beneath */
.bb-vis{display:flex;flex-direction:column;align-items:center;gap:.6rem;margin-top:.75rem}
.bb-gaiwan{flex:none}
.bb-gaiwan svg{display:block}
.bb-vis-side{width:min(240px,100%);display:flex;flex-direction:column;gap:.45rem}
.bb-band{
  display:flex;height:10px;border-radius:999px;overflow:hidden;
  border:1px solid var(--gold-light);background:var(--warm-white);
}
.bb-band span{flex-grow:1;flex-basis:0;min-width:3px;transition:flex-grow .3s ease}
.bb-vis-price{position:relative;display:none;font-size:1.05rem;font-weight:600;color:var(--text)}

/* liquor tint morphs via CSS; the level itself is rAF-driven in JS (400ms ease-out) */
.bb .gaiwan-liquor{transition:fill .4s ease}
.bb .gaiwan-surface-g{transition:opacity .3s ease}
.bb:not(.has-base) .gaiwan-surface-g{opacity:0}
/* the one-shot ripple is gone — the idle slosh (leafspirit.css) carries the life now */
/* the flying drop (R1 — one refined clone) */
.bb-pour{
  position:fixed;z-index:400;width:14px;height:14px;border-radius:50%;
  box-shadow:inset 0 0 0 1.6px rgba(61,74,53,.4);pointer-events:none;
}

/* ── Taste: hint, note, radar ── */
.bb-taste{margin-top:1rem}
.bb-hint{
  display:inline-block;background:var(--tea-dark);color:var(--gold-light);
  font-size:.85rem;line-height:1.5;border-radius:10px;padding:.5rem .8rem;margin-bottom:.6rem;
}
.bb-hint[hidden]{display:none}
.bb-note{
  font-family:var(--font-display);font-style:italic;font-size:1.08rem;line-height:1.65;color:var(--text);
  min-height:3.4em;transition:opacity .18s ease;
}
.bb-note.is-fading{opacity:0}
.bb-note.is-wait{color:var(--text-light);font-size:.98rem}
/* 325 = 260×300/240 — W21's wider viewBox keeps the pentagon's px size */
.bb-radar{display:block;width:100%;max-width:325px;margin:.4rem auto 0;height:auto}
.bb-radar-grid polygon{fill:none;stroke:var(--gold-light);stroke-width:1}
.bb-radar-grid line{stroke:var(--gold-light);stroke-width:1;opacity:.6}
.bb-radar-value{
  fill:color-mix(in srgb, var(--bb-accent) 22%, transparent);
  stroke:var(--bb-accent-deep);stroke-width:1.6;stroke-linejoin:round;
  transition:fill .4s ease,stroke .4s ease;
}
.bb-radar-labels text{font-size:10px;fill:var(--text-light);letter-spacing:.04em}

/* ── The order slip («Tea Slip 1L», owner-approved) — a receipt card that
   terminates the left form column; the right column keeps only the preview.
   Rows: tone dot · name (·×mult) · dot leader · grams. ── */
.bb-order{
  background:#fff;border:1px solid var(--gold-light);border-radius:16px;
  padding:1.4rem 1.5rem;
}
.bb-order-name{
  font-family:var(--font-display);font-size:1.1rem;font-weight:600;color:var(--text);
  margin:.15rem 0 .75rem;overflow-wrap:anywhere;
}
.bb-order-name.is-empty{color:var(--text-light);font-weight:400;font-style:italic}
.bb-order-rows{list-style:none;margin:0;padding:0}
.bb-order-empty{font-size:.95rem;font-style:italic;color:var(--text-light);padding:.35rem 0}
.bb-order-row{
  display:flex;align-items:baseline;gap:.55rem;
  width:calc(100% + .7rem);margin:0 -.35rem;padding:.4rem .35rem;
  background:none;border:none;border-radius:8px;
  font-size:.95rem;color:var(--text);text-align:left;
  transition:background .18s;
}
.bb-order-row:hover{background:rgba(201,169,110,.1)}
.bb-order-row .bb-dot{width:8px;height:8px;align-self:center;box-shadow:inset 0 0 0 1.2px rgba(61,74,53,.35)}
.bb-order-ing{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bb-order-mult{font-weight:600}
/* the receipt's dot leader — an empty baseline-aligned span, dotted bottom edge */
.bb-order-leader{flex:1;min-width:1.5ch;border-bottom:1px dotted #D9CBAA}
.bb-order-g{white-space:nowrap;color:var(--text)}
.bb-order-rule{border:none;border-top:1px solid var(--gold-light);margin:.75rem 0}
.bb-order-total{display:flex;align-items:baseline;gap:.55rem;margin:0}
.bb-order-total-label{font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text)}
.bb-total-amount{position:relative;font-family:var(--font-display);font-size:1.6rem;font-weight:600;color:var(--text);white-space:nowrap}
/* R3 — gold flash-underline when the price ticks */
.bb-total-amount::after,.bb-vis-price::after,.bb-bar-price::after{
  content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--gold);
  transform:scaleX(0);transform-origin:left;
}
:is(.bb-total-amount,.bb-vis-price,.bb-bar-price).is-flash::after{animation:bb-flash .5s ease-out 1}
@keyframes bb-flash{0%{transform:scaleX(0)}45%{transform:scaleX(1)}100%{transform:scaleX(1);opacity:0}}
/* commit row: the discounts promise balances the pill — no empty middle */
.bb-order-commit{display:flex;justify-content:space-between;align-items:center;gap:1rem 1.5rem;margin-top:1.05rem}
.bb-discount-note{margin:0;font-size:.875rem;line-height:1.5;color:var(--text-light);max-width:46ch}
/* the CTA is ALWAYS clickable: ghost pill while incomplete (aria-disabled),
   fills solid gold on readiness; real disabled only during the POST */
.bb-cta{
  display:flex;align-items:center;justify-content:center;min-height:48px;
  background:transparent;color:var(--tea-dark);border:1.5px solid var(--gold);border-radius:50px;
  padding:.8rem 1.6rem;font-weight:600;font-size:.92rem;letter-spacing:.05em;text-transform:uppercase;
  transition:background-color .3s ease,border-color .3s ease,color .3s ease,transform .18s,box-shadow .18s,opacity .2s;
}
.bb-cta.is-ready{background:var(--gold);border-color:var(--gold);color:var(--text)}
.bb-cta.is-ready:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 28px rgba(201,169,110,.32)}
.bb-cta:disabled{opacity:.6;cursor:wait;transform:none;box-shadow:none}
/* the live nudge under the pill; turns assertive on a not-ready create tap */
.bb-cta-reason{margin:.45rem 0 0;font-size:.85rem;font-style:italic;color:var(--text-light);text-align:right;min-height:1.3em;transition:color .2s}
.bb-cta-reason.is-assertive,.bb-bar-reason.is-assertive{color:#a03024;font-weight:600;font-style:normal}
.bb-error{margin:.4rem 0 0;font-size:.9rem;font-weight:600;color:#a03024;text-align:right}
/* recap-row click / not-ready nudge: brief gold pulse on the target */
.bb-pulse{animation:bb-pulse .8s ease-out 1}
@keyframes bb-pulse{0%{box-shadow:0 0 0 0 rgba(201,169,110,.6)}100%{box-shadow:0 0 0 16px rgba(201,169,110,0)}}

/* ── Mobile bottom bar ── */
.bb-bar{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:90;
  background:#fff;border-top:1px solid var(--gold-light);
  padding:.55rem 1rem calc(.55rem + env(safe-area-inset-bottom));
  align-items:center;gap:.75rem;
}
/* wave 20 (owner: «надпись обрезается»): the ~90-150px text column says ONE
   readable thing at a time — a compact instruction while the recipe is not
   ready (price 0 THB is noise then and hides too), the blend name once ready.
   Errors always win the column (.has-error). */
.bb-bar-text{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.bb-bar-name{display:none;font-family:var(--font-display);font-weight:600;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-bar-name.is-empty{color:var(--text-light);font-weight:400;font-style:italic}
.bb-bar.is-ready:not(.has-error) .bb-bar-name{display:block}
.bb-bar-reason{font-size:.85rem;color:var(--text-light);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-bar.is-ready:not(.has-error) .bb-bar-reason{display:none}
.bb-bar-reason.is-error{color:#a03024;font-weight:600}
.bb-bar-price{position:relative;font-weight:600;font-size:1.05rem;white-space:nowrap}
.bb-bar:not(.is-ready) .bb-bar-price{display:none}
.bb-bar .bb-cta{width:auto;flex:none;padding:.7rem 1.2rem;min-height:44px}

/* ══════════ Mobile ≤860px: single column, pinned gaiwan strip ══════════ */
@media (max-width:860px){
  .bb{padding-top:1.75rem;padding-bottom:7.5rem}
  .bb-header{margin-bottom:1.5rem}
  .bb-layout{display:flex;flex-direction:column;align-items:stretch}
  .bb-side{display:contents}
  .bb-side::before{display:none}
  .bb-summary{display:none}
  .bb-section,.bb-presets{margin-bottom:1.75rem}

  /* the sticky summary IS the visualization: ~96px strip under the site header */
  .bb-vis{
    order:-1;position:sticky;top:var(--bb-top,64px);z-index:80;
    flex-direction:row;align-items:center;
    background:var(--cream);border-bottom:1px solid var(--gold-light);
    margin:0 -1.5rem 1.5rem;padding:.6rem 1.25rem;gap:.9rem;
  }
  .bb-gaiwan{margin:0}
  .bb-gaiwan svg{width:87px;height:67px} /* 87 = 84×260/250 — bowl scale kept after the centered viewBox */
  .bb-vis-side{width:auto;flex:1;min-width:0;gap:.3rem}
  .bb-vis-price{display:block;font-size:.98rem}
  .bb-step{font-size:.62rem;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* «Sheng Pu-erh» must not break after the hyphen in the 2-col grid */
  .bb-base-title{text-wrap:balance;hyphens:none;font-size:1.05rem}

  .bb-taste{
    order:1;margin:0 0 1.75rem;background:#fff;border:1px solid var(--gold-light);
    border-radius:16px;padding:1.1rem 1.25rem;
  }
  .bb-namer{order:2}
  /* the slip stays in flow as a summary card; its commit row/CTA and nudge
     hide — the fixed .bb-bar below keeps the action (and carries errors) */
  .bb-order{order:3;padding:1.1rem 1.25rem}
  .bb-order-commit,.bb-order .bb-cta-reason,.bb-order .bb-error{display:none}
  .bb-bar{display:flex}

  .bb-base-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
  .bb-base{padding:.85rem .9rem}
  .bb-chip{padding-left:.75rem}
  .bb-chip-main{gap:.55rem}
  /* wave 20 (owner: «чип становится высоким»): the tools stay INLINE — the old
     full-width second row predated the compact 28px stepper and doubled the
     chip height on tap. The title ellipsizes instead, and per-ingredient grams
     live in the order slip on mobile, so the chip drops its grams span. */
  .bb-chip-tools{gap:8px}
  .bb-chip-grams{display:none}

  /* info becomes a bottom sheet */
  .bb-info{
    position:fixed;left:0;right:0;bottom:0;z-index:301;margin:0;
    border-radius:18px 18px 0 0;border:none;border-top:1px solid var(--gold-light);
    background:var(--cream);box-shadow:0 -8px 40px rgba(44,36,22,.18);
    padding:1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    min-height:0;transform:translateY(105%);transition:transform .3s cubic-bezier(.4,0,.2,1);
    visibility:hidden;
  }
  .bb-info.is-open{transform:none;visibility:visible}
  .bb-info-close{display:inline-flex}
  .bb-info-empty{display:none}

  /* created: reveal the label card, unpin the strip */
}

@media (max-width:420px){
  .bb-presets-row{grid-template-columns:1fr}
  .bb-preset{flex-direction:column}
}

/* ══════════ Short desktop viewports (1280×800, 1366×768) — F1 ══════════
   Compact the tea column so gaiwan → note → info → radar → CTA all fit;
   the sticky-bottom ctabox above is the safety net for anything left. */
@media (min-width:861px) and (max-height:840px){
  .bb-side{padding:1.1rem 1.25rem 1.15rem}
  .bb-side-name{font-size:1.3rem}
  .bb-side-name.is-empty{font-size:1.05rem}
  .bb-vis{margin-top:.5rem;gap:.45rem}
  .bb-gaiwan svg{width:156px;height:120px}
  .bb-taste{margin-top:.6rem}
  .bb-note{min-height:2.4em;font-size:1rem}
  .bb-note.is-wait{font-size:.92rem}
  .bb-info{min-height:96px;padding:.7rem .85rem;margin:.7rem 0 .2rem}
  .bb-info-text{-webkit-line-clamp:2}
  .bb-radar{max-width:220px;margin-top:.2rem} /* 176×300/240 (W21 viewBox) */
}

/* ══════════ Reduced motion: state changes stay, decoration dies ══════════ */
@media (prefers-reduced-motion:reduce){
  .bb *,.bb *::before,.bb *::after,.bb-pour{
    animation:none!important;
    transition:none!important;
  }
  .bb button:active{transform:none}
  .bb-base:hover{transform:none}
}
