/* ============================================================================
   booth.css: QUAD The Interior, Booth mode (Rev02).
   Brand CI v1.0 core palette only: Deep Black #0D0D0F, Graphite Grey #4B4F54, Crystal Silver #C0C4C8,
   Ivory White #F5F5F2 (tints of two core colours where a surface needs depth). No gold, no champagne.
   Built for a portrait touch screen of 616 x 1096 CSS px; any other screen shows the same portrait column.
   ========================================================================== */
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  --black: #0D0D0F; --graphite: #4B4F54; --silver: #C0C4C8; --ivory: #F5F5F2;
  --g-1: #141518; --g-2: #1B1D20; --g-3: #26292D; /* Deep Black to Graphite Grey */
  --line: rgba(192, 196, 200, 0.22); --line-2: rgba(192, 196, 200, 0.4);
  --sans: "Inter Tight", "IBM Plex Sans Thai", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --col-w: min(100vw, calc(100vh * 0.5625));
  --panel-w: clamp(320px, 30vw, 420px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--black); color: var(--ivory); overflow: hidden; }
/* the screen does not zoom (owner, 2026-11-06); js/nozoom.js and the kiosk's --disable-pinch do the rest */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
html[data-lang="th"] body { line-height: 1.5; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

/* the portrait column: the whole booth lives in it (full screen on the booth's own portrait panel) */
#app { position: fixed; inset: 0 auto 0 50%; width: var(--col-w); transform: translateX(-50%); overflow: hidden; background: var(--black); }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* --------------------------------------------------------------- loading */
.b-load { position: absolute; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 26px; background: radial-gradient(70% 50% at 50% 42%, var(--g-2), var(--black) 72%); transition: opacity 700ms var(--ease), visibility 0s 700ms; }
.b-load img { width: 150px; height: auto; animation: b-in 1.4s var(--ease) both; }
.b-load span { width: 120px; height: 1px; background: rgba(192, 196, 200, 0.2); position: relative; overflow: hidden; }
.b-load span::after { content: ""; position: absolute; inset: 0; background: var(--silver); transform-origin: 0 50%; animation: b-line 1.8s var(--ease) infinite; }
html.is-ready .b-load { opacity: 0; visibility: hidden; }
@keyframes b-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes b-line { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* --------------------------------------------------------------- top bar */
.b-top { position: absolute; z-index: 10; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 30px; background: linear-gradient(to bottom, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.78) 55%, rgba(13, 13, 15, 0)); pointer-events: none; }
.b-top > * { pointer-events: auto; }
.b-logo { width: 138px; height: auto; display: block; }
.b-tools { display: flex; align-items: center; gap: 8px; }
.b-lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(13, 13, 15, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.b-lang button { min-width: 48px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: 14px; color: var(--silver); }
.b-lang button[aria-pressed="true"] { background: var(--ivory); color: var(--black); font-weight: 500; }
.b-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(13, 13, 15, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.b-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--silver); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.b-icon[aria-pressed="true"] .off, .b-icon[aria-pressed="false"] .on { display: none; }

/* --------------------------------------------------------------- the hint on the door */
.b-hint { position: absolute; z-index: 5; left: 50%; top: 40%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; pointer-events: none; transition: opacity 500ms var(--ease); }
.b-hint.is-gone { opacity: 0; }
html.is-closeup .b-hint { display: none; }
.b-hint__hand { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(13, 13, 15, 0.55); box-shadow: 0 0 0 1px rgba(245, 245, 242, 0.25), 0 12px 30px -12px rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: b-drag 2.6s var(--ease) infinite; }
.b-hint__hand svg { width: 38px; height: 38px; fill: none; stroke: var(--ivory); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b-hint__track { width: 150px; height: 2px; border-radius: 2px; background: rgba(245, 245, 242, 0.18); position: relative; overflow: hidden; }
.b-hint__track i { position: absolute; inset: 0; background: var(--ivory); transform-origin: 100% 50%; animation: b-track 2.6s var(--ease) infinite; }
.b-hint__txt { padding: 8px 16px; border-radius: 999px; font-size: 15px; background: rgba(13, 13, 15, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
#hint.is-right .b-hint__hand { animation-name: b-drag-r; }
#hint.is-right .b-hint__track i { transform-origin: 0 50%; }
@keyframes b-drag-r { 0%, 12% { transform: translateX(-46px); } 62%, 76% { transform: translateX(46px); } 100% { transform: translateX(-46px); } }
@keyframes b-drag { 0%, 12% { transform: translateX(46px); } 62%, 76% { transform: translateX(-46px); } 100% { transform: translateX(46px); } }
@keyframes b-track { 0%, 12% { transform: scaleX(0); } 62%, 76% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* --------------------------------------------------------------- the sheet */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b-sheet { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; padding: 6px 18px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 11px;
  transition: transform 520ms var(--ease);
  background: linear-gradient(180deg, rgba(27, 29, 32, 0.9) 0%, rgba(20, 21, 24, 0.96) 40%, rgba(13, 13, 15, 0.98) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border-top: 1px solid rgba(192, 196, 200, 0.18); border-radius: 22px 22px 0 0; box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.9); }
.b-grab { justify-self: center; width: 120px; height: 22px; margin: 0 0 -6px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.b-grab i { width: 44px; height: 4px; border-radius: 4px; background: rgba(192, 196, 200, 0.45); }
html.is-compact .b-sheet { transform: translateY(var(--more-h, 0px)); }
.b-more { display: grid; gap: 11px; transition: opacity 360ms var(--ease); }
html.is-compact .b-more { opacity: 0; pointer-events: none; }
/* Keep the object and the return button visible while inspecting a detail on a portrait screen. */
html.is-closeup:not(.is-wide) .b-code,
html.is-closeup:not(.is-wide) .b-size,
html.is-closeup:not(.is-wide) #btnMore { display: none; }
html.is-closeup:not(.is-wide) .b-actions { grid-template-columns: 1fr 1fr; }
html.is-closeup.is-twoway:not(.is-wide) .b-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.is-closeup:not(.is-wide) .b-actions .b-btn { min-width: 0; padding: 0 6px; gap: 4px; font-size: 13px; line-height: 1.2; white-space: normal; }
html.is-closeup:not(.is-wide) .b-actions .b-btn svg { width: 18px; height: 18px; }
html.is-closeup:not(.is-wide) .b-actions .b-btn span { min-width: 0; overflow-wrap: anywhere; }
.b-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.b-head__txt { display: grid; gap: 2px; min-width: 0; }
.b-kicker { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver); }
html[data-lang="th"] .b-kicker { letter-spacing: 0.08em; }
.b-name { margin: 0; font-size: 25px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ivory); }
.b-code { margin: 0; font-size: 13px; color: var(--silver); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.b-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tab { height: 54px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 4px 2px; border: 0; border-radius: 14px; background: rgba(245, 245, 242, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--silver); transition: background 220ms var(--ease), color 220ms var(--ease); }
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.tab span { font-size: 13px; line-height: 1.1; }
.tab[aria-pressed="true"] { background: var(--ivory); color: var(--black); box-shadow: none; }

.b-row { display: grid; gap: 6px; min-width: 0; }
.b-label { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }
html[data-lang="th"] .b-label { letter-spacing: 0.04em; font-size: 13px; }
.b-label b { font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--ivory); font-size: 14.5px; }

.b-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; touch-action: pan-x; }
.b-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; border: 0; border-radius: 12px; background: rgba(245, 245, 242, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip--hand { padding: 0 18px; }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ivory); background: rgba(245, 245, 242, 0.1); }
.hands { display: flex; gap: 6px; flex: none; }
.b-chips .hands:not(:first-child) { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.chip__sym { width: 26px; height: 34px; flex: none; }
.b-chips.is-dense { gap: 5px; }
.b-chips.is-dense .chip { gap: 5px; padding: 0 10px 0 5px; font-size: 13px; }
.b-chips.is-dense .chip--hand { padding: 0 14px; }
.b-chips.is-dense .chip__sym { width: 22px; height: 30px; }
.b-chips.is-dense .hands:not(:first-child) { margin-left: 4px; padding-left: 8px; }
/* door symbols (js/doors.js thumb), in the CI's inks */
.chip__sym { --g-ink: var(--ivory); --g-accent: var(--silver); --g-bg: var(--g-1); }
.chip__sym .th-open { fill: none; stroke: var(--g-ink); stroke-width: 1.6px; }
.chip__sym .th-panel { fill: rgba(245, 245, 242, 0.05); stroke: rgba(245, 245, 242, 0.7); stroke-width: 1.4px; }
.chip__sym .th-fixed { fill: rgba(245, 245, 242, 0.16); }
.chip__sym .th-sym, .chip__sym .th-shaft { fill: none; stroke: var(--g-accent); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.chip__sym .th-head { fill: var(--g-accent); }
.chip__sym .th-axis { stroke: var(--g-ink); stroke-width: 1px; stroke-dasharray: 6 2.5 1.5 2.5; }
.chip__sym .th-pin, .chip__sym .th-motor { fill: var(--g-ink); }
.chip__sym .th-wall { fill: rgba(245, 245, 242, 0.1); stroke: none; }
.chip__sym .th-hatch { fill: none; stroke: rgba(245, 245, 242, 0.35); stroke-width: 0.8px; }
.chip__sym .th-park { fill: none; stroke: var(--g-accent); stroke-width: 1.2px; stroke-dasharray: 3 2; }
.chip__sym .th-letter { display: none; }

.b-row--duo { grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.b-duo { display: grid; gap: 6px; min-width: 0; }
.b-duo--glass { padding-left: 14px; border-left: 1px solid var(--line); }
.b-swatches { display: flex; gap: 4px; }
.sw { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 200ms var(--ease); }
.sw i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(245, 245, 242, 0.3), inset 0 -6px 12px rgba(0, 0, 0, 0.18); }
.sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ivory); }

.b-glass { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.b-glass::-webkit-scrollbar { display: none; }
.gl { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; }
.gl span { display: none; }
.gl__s { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(245, 245, 242, 0.3); background: linear-gradient(135deg, color-mix(in oklab, var(--tint) 70%, #fff) 0%, var(--tint) 60%, color-mix(in oklab, var(--tint) 80%, #000) 100%); opacity: 0.92; }
.gl__s--tint { background: linear-gradient(135deg, color-mix(in oklab, var(--tint) 55%, #fff) 0%, var(--tint) 70%); }
.gl__s--milky { background: linear-gradient(135deg, #fbfbf8, #e7e6e1); }
.gl__s--fluted { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 2px, color-mix(in oklab, var(--tint) 85%, #fff) 2px 6px, color-mix(in oklab, var(--tint) 70%, #000) 6px 8px); }
.gl__s--mesh { background: repeating-linear-gradient(0deg, rgba(13, 13, 15, 0.35) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(13, 13, 15, 0.35) 0 1px, transparent 1px 4px), color-mix(in oklab, var(--tint) 45%, #fff); }
.gl__s--gradient { background: linear-gradient(0deg, var(--tint), #fff); }
.gl[aria-pressed="true"] { color: var(--ivory); }
.gl[aria-pressed="true"] .gl__s { box-shadow: 0 0 0 2px var(--black), 0 0 0 3.5px var(--ivory); }

.b-actions { display: grid; grid-template-columns: 1.35fr 1fr auto; gap: 8px; }
.b-btn { height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(245, 245, 242, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory); font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: transform 160ms var(--ease), background 200ms var(--ease); }
.b-btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b-btn:active { transform: scale(0.97); }
.b-btn--solid { background: var(--ivory); color: var(--black); box-shadow: none; }
.b-btn--ghost { padding: 0 14px; background: none; box-shadow: none; color: var(--silver); font-weight: 400; }
.b-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -2px; }
.b-note { margin: 0; font-size: 11px; color: rgba(192, 196, 200, 0.7); }
.b-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px; border: 0; background: none; color: var(--silver); font-size: 13px; }
.b-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b-btn--ghost[aria-expanded="true"] { color: var(--ivory); }

/* --------------------------------------------------------------- attract */
.b-attract { position: absolute; inset: 0; z-index: 40; background: var(--black); display: grid; touch-action: none; animation: b-fade 900ms var(--ease) both; }
html:not(.att-film) .b-attract { background: transparent; }
html:not(.att-film) .b-attract video { display: none; }
.b-attract video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-attract__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 13, 15, 0.55) 0%, rgba(13, 13, 15, 0) 26%, rgba(13, 13, 15, 0) 58%, rgba(13, 13, 15, 0.86) 100%); }
.b-attract__brand { position: absolute; left: 0; right: 0; bottom: 19%; display: grid; justify-items: center; gap: 8px; text-align: center; }
.b-attract__brand img { width: 150px; height: auto; margin-bottom: 14px; }
.b-attract__tag { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.32em; color: var(--ivory); }
.b-attract__sub { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--silver); }
.b-attract__touch { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0; display: grid; justify-items: center; gap: 12px; font-size: 16px; color: var(--ivory); }
.b-attract__touch i { width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(245, 245, 242, 0.8); animation: b-pulse 2.2s var(--ease) infinite; }
.b-attract__sim { position: absolute; right: 14px; top: 14px; margin: 0; font-size: 10.5px; color: rgba(192, 196, 200, 0.75); letter-spacing: 0.04em; }
html:not(.att-film) .b-attract__sim { display: none; }
html.is-attract .b-sheet, html.is-attract .b-top, html.is-attract .b-hint { opacity: 0; pointer-events: none; transition: opacity 600ms var(--ease); }
html:not(.att-film).is-attract .b-attract__veil { background: linear-gradient(to bottom, rgba(13, 13, 15, 0) 50%, rgba(13, 13, 15, 0.9) 100%); }
@keyframes b-fade { from { opacity: 0; } }
@keyframes b-pulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .b-hint__hand, .b-hint__track i, .b-attract__touch i { animation: none; } }

@supports (height: 100dvh) { :root { --col-w: min(100vw, calc(100dvh * 0.5625)); } }

/* ================================================================ web and phone (Rev02, 2026-11-06) ===
   The booth's own screen is a portrait column. A landscape window (a desktop browser, a phone or tablet turned on its
   side) takes the whole width instead: the door on the left, the options as a panel on the right. A phone held upright
   is the booth's column at its own width. */
#stage { cursor: grab; }
#stage:active { cursor: grabbing; }
.b-back { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; background: rgba(13, 13, 15, 0.5); box-shadow: inset 0 0 0 1px var(--line); color: var(--silver); font-size: 13px; text-decoration: none; white-space: nowrap; }
.b-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html.is-web .b-back { display: inline-flex; }

html.is-wide #app { left: 0; width: 100%; transform: none; }
html.is-wide .b-top { right: var(--panel-w); padding: 18px 24px 30px; }
html.is-wide .b-logo { width: 150px; }
html.is-wide .b-hint { left: calc((100% - var(--panel-w)) / 2); }
html.is-wide .b-sheet {
  left: auto; top: 0; right: 0; bottom: 0; width: var(--panel-w); transform: none !important;
  align-content: start; gap: 14px; padding: 26px 22px 20px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin;
  border-top: 0; border-left: 1px solid rgba(192, 196, 200, 0.16); border-radius: 0;
  background: linear-gradient(180deg, #1B1D20 0%, #141518 46%, #0D0D0F 100%);
}
html.is-wide .b-grab, html.is-wide #btnMore { display: none; }
html.is-wide .b-more { opacity: 1 !important; pointer-events: auto !important; gap: 14px; }
html.is-wide .b-actions { grid-template-columns: 1fr 1fr; }
html.is-wide .b-name { font-size: 26px; }
html.is-wide .b-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
html.is-wide .b-chips .hands:not(:first-child) { margin-left: 0; padding-left: 0; border-left: 0; }
html.is-wide .b-row--duo { grid-template-columns: 1fr; gap: 14px; }
html.is-wide .b-duo--glass { padding-left: 0; border-left: 0; }
html.is-wide .b-glass { flex-wrap: wrap; overflow: visible; }
html.is-wide .b-foot { flex-wrap: wrap; }
/* the attract film is portrait: in a landscape window it stands in the middle, the mark beside it */
html.is-wide .b-attract video { object-fit: contain; }
html.is-wide .b-attract__veil { background: radial-gradient(60% 80% at 50% 50%, rgba(13, 13, 15, 0) 40%, rgba(13, 13, 15, 0.7) 100%); }
html.is-wide .b-attract__brand { left: auto; right: 4%; bottom: auto; top: 50%; width: 30%; transform: translateY(-60%); }
html.is-wide .b-attract__touch { left: auto; right: 4%; width: 30%; bottom: 12%; }

/* a phone turned on its side: a narrower panel, everything a little tighter */
@media (max-height: 520px) {
  html.is-wide { --panel-w: clamp(280px, 40vw, 360px); }
  html.is-wide .b-top { padding: 10px 16px 20px; }
  html.is-wide .b-logo { width: 116px; }
  html.is-wide .b-sheet { padding: 14px 16px 14px; gap: 10px; }
  html.is-wide .b-name { font-size: 20px; }
  html.is-wide .tab { height: 48px; }
  html.is-wide .b-btn { height: 46px; font-size: 14.5px; }
  .b-lang button { height: 34px; min-width: 42px; }
  .b-icon { width: 40px; height: 40px; }
}
/* a small phone held upright: smaller type in the sheet */
@media (max-width: 400px) and (orientation: portrait) {
  .b-sheet { padding-left: 14px; padding-right: 14px; }
  .b-name { font-size: 21px; }
  .b-btn { height: 48px; font-size: 14.5px; padding: 0 12px; }
  .tab span { font-size: 12px; }
  .b-logo { width: 120px; }
  .b-chips, .b-glass { margin: 0 -14px; padding: 0 14px; }
  .b-duo--glass { padding-left: 10px; }
  .b-row--duo { gap: 10px; }
}
@media (max-width: 480px) {
  .b-back { padding: 0 10px; }
  .b-back span { display: none; }
  .b-top { padding-left: 14px; padding-right: 14px; }
  .b-tools { gap: 6px; }
  .b-lang button { min-width: 42px; padding: 0 10px; }
}
@media (max-width: 480px) {
  html.is-closeup:not(.is-wide) .b-top { flex-wrap: wrap; gap: 6px; }
  html.is-closeup:not(.is-wide) .b-logo { width: 96px; flex-shrink: 0; }
  html.is-closeup:not(.is-wide) .b-tools { gap: 4px; margin-left: auto; flex-shrink: 0; }
  html.is-closeup:not(.is-wide) .b-lang button { min-width: 36px; padding: 0 4px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  html.is-closeup:not(.is-wide) .b-icon { width: 36px; height: 36px; flex-shrink: 0; }
  html.is-closeup:not(.is-wide) .b-back { width: 34px; padding: 0; justify-content: center; flex-shrink: 0; }
}

/* ================================================================ the plan under the door (Rev02, 2026-11-06) ===
   The opening and the door seen from above, at the door's own scale, straight under it; the visitor's side at the foot. */
.b-plan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; transition: opacity 320ms var(--ease); }
.pl-card { fill: rgba(13, 13, 15, 0.62); stroke: rgba(192, 196, 200, 0.18); stroke-width: 1; }
.pl-title { fill: var(--silver); font: 500 10.5px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
html[data-lang="th"] .pl-title { letter-spacing: 0.04em; font-size: 11.5px; text-transform: none; }
.pl-wall { stroke: rgba(192, 196, 200, 0.6); stroke-width: 1; }
.pl-leaf { fill: rgba(245, 245, 242, 0.94); stroke: var(--ivory); stroke-width: 1; stroke-linejoin: round; }
.pl-leaf--fixed { fill: rgba(192, 196, 200, 0.5); stroke: rgba(192, 196, 200, 0.9); }
.pl-path { fill: none; stroke: rgba(192, 196, 200, 0.75); stroke-width: 1.2; stroke-dasharray: 3 4; stroke-linecap: round; }
.pl-grip { fill: var(--ivory); stroke: var(--black); stroke-width: 1; }
.pl-pin { fill: var(--black); stroke: var(--ivory); stroke-width: 1.2; }
.pl-dim { fill: none; stroke: var(--silver); stroke-width: 1; }
.pl-text { fill: var(--ivory); font: 400 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.pl-text--soft { fill: var(--silver); font-size: 11px; }

/* the attract film (owner, 2026-11-06: a three-panel slider, full frame): on the portrait screen the door fills the
   picture, so the mark sits over the ceiling at the top and the touch prompt over the floor at the foot, the door clear */
.b-attract__logo-h { display: none; }
html:not(.is-wide) .b-attract__veil { background: linear-gradient(to bottom, rgba(13, 13, 15, 0.86) 0%, rgba(13, 13, 15, 0.5) 12%, rgba(13, 13, 15, 0) 22%, rgba(13, 13, 15, 0) 80%, rgba(13, 13, 15, 0.9) 100%); }
html:not(.is-wide) .b-attract__brand { top: 3.2%; bottom: auto; gap: 6px; }
html:not(.is-wide) .b-attract__logo { display: none; }
html:not(.is-wide) .b-attract__logo-h { display: block; width: 168px; height: auto; margin-bottom: 4px; }
html:not(.is-wide) .b-attract__tag { font-size: 11px; letter-spacing: 0.3em; }
html:not(.is-wide) .b-attract__sub { font-size: 12.5px; }
html:not(.is-wide) .b-attract__touch { bottom: 3.5%; gap: 8px; font-size: 15px; }
html:not(.is-wide) .b-attract__touch i { width: 40px; height: 40px; }
html:not(.is-wide) .b-attract__sim { top: auto; bottom: 1.2%; right: 12px; }

/* the attract tour (2026-11-06): the mark in proportion, the horizontal lockup everywhere; a fade between doors */
.b-attract__logo { display: none !important; }
.b-attract__brand .b-attract__logo-h { display: block !important; width: 168px; height: auto; margin-bottom: 4px; }
html.is-wide .b-attract__brand .b-attract__logo-h { width: 230px; margin-bottom: 10px; }
html.is-wide .b-attract__tag { font-size: 12px; letter-spacing: 0.32em; }
html.is-wide .b-attract__sub { font-size: 14px; }
html.is-wide .b-attract__brand { transform: translateY(-50%); }
html.is-wide .b-attract__touch i { width: 44px; height: 44px; }
html.is-wide:not(.att-film).is-attract .b-attract__veil { background: linear-gradient(90deg, rgba(13, 13, 15, 0) 52%, rgba(13, 13, 15, 0.55) 70%, rgba(13, 13, 15, 0.8) 100%); }
html:not(.is-wide):not(.att-film).is-attract .b-attract__veil { background: linear-gradient(to bottom, rgba(13, 13, 15, 0.82) 0%, rgba(13, 13, 15, 0.35) 11%, rgba(13, 13, 15, 0) 18%, rgba(13, 13, 15, 0) 84%, rgba(13, 13, 15, 0.82) 100%); }
.b-attract__fade { position: absolute; inset: 0; background: var(--black); opacity: 0; pointer-events: none; transition: opacity 600ms var(--ease); }
.b-attract__fade.is-on { opacity: 1; }

/* ================================================================ the tour's dissolves (owner, 2026-11-06: "smooth when
   the door changes") ===
   Door to door: the last frame of one door (canvas#attractX) fades over the next. Film to door and back: the film fades
   over the 3D, or away from it. The sheet's words fade out and in while the picture dissolves. */
.b-attract { background: transparent !important; }
.b-attract__x { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.b-attract video { display: block !important; opacity: 0; transition: opacity 1.4s cubic-bezier(0.45, 0, 0.55, 1); }
html.att-film .b-attract video { opacity: 1; }
html.is-attract .b-attract__brand, html.is-attract .b-attract__touch { display: grid !important; }
html.is-attract .b-attract__veil, html.is-attract .b-attract__sim { display: block !important; }
.b-attract__brand, .b-attract__touch, .b-attract__veil, .b-attract__sim { transition: opacity 1.2s var(--ease); }
html.is-attract:not(.att-film) .b-attract__brand, html.is-attract:not(.att-film) .b-attract__touch,
html.is-attract:not(.att-film) .b-attract__veil, html.is-attract:not(.att-film) .b-attract__sim { opacity: 0; }

/* the pattern buttons, all one width (owner, 2026-11-06): a grid of equal columns in the landscape panel (four for the
   folding sizes, two for the longer patterns), the hands on their own row; in the portrait column every button takes
   the widest one's width (main.js evenChips) */
html.is-wide .b-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
html.is-wide .b-chips.is-dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.is-wide .b-chips > .chip { width: 100%; min-width: 0; height: auto; min-height: 46px; padding: 6px 10px 6px 6px; white-space: normal; text-align: left; line-height: 1.25; }
html.is-wide .b-chips.is-dense > .chip { padding: 6px 6px 6px 5px; gap: 5px; }
html.is-wide .b-chips .hands { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 0 0; padding: 0; border: 0; }
html.is-wide .b-chips .hands .chip { width: 100%; justify-content: center; }
.b-chips > .chip { justify-content: flex-start; }
.b-chips .chip--hand { justify-content: center; }

/* ================================================================ owner, 2026-11-06 (night) ===
   the smallest opening under the largest; the glass's build as three chips; a pivot's two buttons (push in, pull out);
   the hinged door's casing in plan; Chinese as a third language (system CJK fonts) */
.b-size { margin: 2px 0 0; display: grid; gap: 1px; font-size: 13px; color: var(--silver); font-variant-numeric: tabular-nums; }
.b-size b { font-weight: 500; color: var(--ivory); margin-right: 4px; }
.b-glass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; overflow: visible; }
.chip--spec { height: auto; min-height: 52px; min-width: 0; padding: 7px; font-size: 12px; justify-content: center; text-align: center; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
html.is-twoway .b-actions { grid-template-columns: 1fr 1fr 1fr auto; }
html.is-twoway .b-btn { padding: 0 10px; font-size: 14.5px; gap: 6px; }
html.is-wide.is-twoway .b-actions { grid-template-columns: 1fr 1fr 1fr; }
.b-btn--pull { background: rgba(245, 245, 242, 0.85); }
.pl-casing { fill: rgba(192, 196, 200, 0.85); stroke: var(--ivory); stroke-width: 0.6; }
.hands--pull .chip { padding: 0 12px; }
.manual-pull { grid-column: 1 / -1; display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ivory); }
.manual-pull strong { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.manual-pull span { color: var(--silver); font-size: 12px; line-height: 1.45; white-space: normal; }
html[data-lang="zh"] body { line-height: 1.5; }
html[data-lang="zh"] .b-kicker, html[data-lang="zh"] .b-label, html[data-lang="zh"] .pl-title { letter-spacing: 0.04em; text-transform: none; }
.b-lang button { min-width: 44px; padding: 0 10px; }

/* ================================================================ the standby (owner, 2026-11-07) ===
   The normal screen playing itself, in its own colours and light: the sheet's words dip while the picture dissolves to
   the next door, and a choice the standby makes shows as a tap on its button. */
.b-head__txt { transition: opacity 420ms ease; }
.b-sheet.is-swap .b-head__txt { opacity: 0; transition: none; }
.sw.is-tap, .chip.is-tap, .tab.is-tap { animation: b-tap 900ms var(--ease); }
@keyframes b-tap { 0% { outline: 2px solid rgba(245, 245, 242, 0.85); outline-offset: 0; } 100% { outline: 2px solid rgba(245, 245, 242, 0); outline-offset: 9px; } }
html.is-demo #stage { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sw.is-tap, .chip.is-tap, .tab.is-tap { animation: none; } }

/* every M16 pattern at once on the portrait column (owner, 2026-11-07): a grid of three, the hands or the pull type
   beside the row's title */
#rowPattern { position: relative; }
.b-row__opts { position: absolute; right: 0; top: -7px; display: flex; gap: 6px; }
.b-row__opts:empty { display: none; }
.b-row__opts .hands { gap: 4px; }
.b-row__opts .chip--hand { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.b-chips.is-many { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; overflow: visible; margin: 0; padding: 0; }
.b-chips.is-many > .chip { width: 100%; min-width: 0; height: 40px; gap: 5px; padding: 0 6px 0 4px; font-size: 12px; line-height: 1.15; white-space: normal; text-align: left; border-radius: 10px; }
.b-chips.is-many .chip__sym { width: 20px; height: 27px; }

/* the standby's own button (owner, 2026-11-07): play, and while the standby runs a pause on Ivory */
.b-icon--idle svg { stroke-width: 1.8; }
.b-icon--idle[aria-pressed="true"] { background: var(--ivory); box-shadow: none; }
.b-icon--idle[aria-pressed="true"] svg { stroke: var(--black); }
/* Room styling remains reachable in the compact and close-up controls. */
.room-toggle { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(245, 245, 242, 0.035); color: var(--ivory); font-size: 13px; font-weight: 500; line-height: 1.2; text-align: left; transition: background 180ms var(--ease), border-color 180ms var(--ease); }
.room-toggle:hover { background: rgba(245, 245, 242, 0.065); border-color: var(--line-2); }
.room-toggle__name, .room-toggle__value { display: flex; align-items: center; gap: 8px; }
.room-toggle__name { min-width: 0; }
.room-toggle__name svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; color: var(--silver); }
.room-toggle__value { flex: none; color: var(--silver); font-size: 12px; }
.room-toggle__switch { position: relative; width: 34px; height: 20px; flex: none; border: 1px solid rgba(192, 196, 200, 0.3); border-radius: 99px; background: rgba(192, 196, 200, 0.12); transition: background 180ms var(--ease); }
.room-toggle__switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--silver); transition: transform 180ms var(--ease), background 180ms var(--ease); }
.room-toggle[aria-pressed="true"] .room-toggle__switch { background: #bdb5a5; border-color: #bdb5a5; }
.room-toggle[aria-pressed="true"] .room-toggle__switch::after { transform: translateX(14px); background: #fffefa; }
.room-toggle[aria-pressed="true"] .room-toggle__value { color: var(--ivory); }
@media (prefers-reduced-motion: reduce) { .room-toggle, .room-toggle__switch, .room-toggle__switch::after { transition: none; } }

@media (max-width: 480px) {
  html:not(.is-wide):not(.is-closeup) .b-actions { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  html.is-twoway:not(.is-wide):not(.is-closeup) .b-actions { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  html:not(.is-wide) .b-actions .b-btn { min-width: 0; padding: 0 6px; gap: 4px; font-size: 13px; line-height: 1.2; white-space: normal; }
  html:not(.is-wide) .b-actions .b-btn svg { width: 18px; height: 18px; }
  html:not(.is-wide) .b-actions .b-btn span { min-width: 0; overflow-wrap: anywhere; }
}

/* ================================================================ a phone (owner, 2026-11-14) ===
   "Easy on a phone, the animation full screen, the tools and the details as icons, the whole door clear."
   The door has the screen. The sheet folds to the door's name over one bar of icons (open, close-up, plan, options,
   details, full screen). Options and details open above the bar, one at a time, with the door still in view; the sheet
   scrolls under its title while the bar stays. Full screen leaves the door, its open button and the way back.
   Only where the screen's short side is 540 px or less (html.is-phone, set by tools/src3d/phone-view.js): the booth's
   own portrait screen (616 x 1096) never is, and keeps everything above. */
.ph-only, .ph-bar { display: none; }
html.is-phone .ph-only { display: inline-flex; }
#btnFullView[aria-pressed="true"] .off, #btnFullView[aria-pressed="false"] .on { display: none; }

/* the bar of icons (an upright phone, and the foot of the side panel on a phone turned on its side) */
html.is-phone #sheet .b-actions { display: flex; align-items: stretch; gap: 2px; }
html.is-phone #sheet .b-actions .b-btn { flex: 1 1 0; min-width: 0; height: 54px; padding: 5px 2px 4px; flex-direction: column; justify-content: center; gap: 3px; border-radius: 14px; background: none; box-shadow: none; color: var(--silver); font-size: 10.5px; font-weight: 500; line-height: 1.15; white-space: nowrap; transition: background 200ms var(--ease), color 200ms var(--ease); }
html.is-phone #sheet .b-actions .b-btn svg { width: 23px; height: 23px; stroke-width: 1.5; }
html.is-phone #sheet .b-actions .b-btn span { display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
html.is-phone #sheet .b-actions .b-btn--solid { background: var(--ivory); color: var(--black); }
html.is-phone #sheet .b-actions .b-btn--pull { background: rgba(245, 245, 242, 0.85); color: var(--black); }
html.is-phone #sheet .b-actions .b-btn[aria-pressed="true"]:not(.b-btn--solid), html.is-phone #sheet .b-actions .b-btn[aria-expanded="true"] { background: rgba(245, 245, 242, 0.12); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory); }
html.is-phone #btnMore, html.is-phone.is-wide #btnDesign, html.is-phone.is-wide #btnInfo { display: none !important; }
html.is-phone.is-wide #sheet .b-actions .b-btn { height: 48px; }

/* an upright phone: the sheet is the name and the bar; a part of it opens above, scrolling under its title */
html.is-phone:not(.is-wide) #sheet { display: flex; flex-direction: column; gap: 0; padding: 0; max-height: calc(100% - 64px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; transform: none !important; scrollbar-width: none; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(27, 29, 32, 0.95) 0%, rgba(13, 13, 15, 0.98) 100%); }
html.is-phone:not(.is-wide) #sheet::-webkit-scrollbar { display: none; }
html.is-phone:not(.is-wide) #sheet > .b-grab, html.is-phone:not(.is-wide) #sheet > .room-toggle, html.is-phone:not(.is-wide) #sheet > .b-more { display: none; }
html.is-phone:not(.is-wide) #sheet > .b-head { order: 1; padding: 9px 18px 2px; }
html.is-phone:not(.is-wide) .b-head .b-code, html.is-phone:not(.is-wide) .b-head .b-size { display: none; }
html.is-phone:not(.is-wide) .b-kicker { font-size: 10.5px; }
html.is-phone:not(.is-wide) .b-name { font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.is-phone:not(.is-wide) #sheet > .b-actions { order: 9; position: sticky; bottom: 0; z-index: 2; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); margin-top: 6px; border-top: 1px solid var(--line); background: rgba(16, 17, 19, 0.97); }
html.is-phone:not(.is-wide)[data-sheet] #sheet > .ph-bar { display: flex; order: 0; position: sticky; top: 0; z-index: 2; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 8px 18px; background: #1A1C1F; box-shadow: 0 1px 0 var(--line); }
html.is-phone:not(.is-wide)[data-sheet] #sheet > .b-more { order: 2; display: grid; gap: 12px; max-height: none; overflow: visible; padding: 4px 16px 6px; opacity: 1; pointer-events: auto; animation: ph-up 360ms var(--ease) both; }
/* the open sheet leaves the door about 250 px above it on any phone */
html.is-phone:not(.is-wide)[data-sheet] #sheet { max-height: clamp(330px, calc(100% - 250px), 660px); }
@keyframes ph-up { from { opacity: 0; transform: translateY(14px); } }
.ph-bar__title { margin: 0; display: grid; gap: 1px; min-width: 0; }
.ph-bar__title span { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ivory); }
.ph-bar__title small { font-size: 12px; color: var(--silver); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-bar__close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(245, 245, 242, 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory); }
.ph-bar__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* options: the door system, the pattern and hands, the track, the frame colour, the glass, the room */
html.is-phone:not(.is-wide)[data-sheet="design"] #sheet > .b-head,
html.is-phone:not(.is-wide)[data-sheet="design"] .b-more > .qc-editor { display: none; }
html.is-phone:not(.is-wide)[data-sheet="design"] #sheet > .room-toggle { display: flex; order: 3; width: auto; margin: 4px 16px 4px; }
/* details: the code, the sizes, the opening size and the cart */
html.is-phone:not(.is-wide)[data-sheet="info"] .b-head .b-code { display: block; }
html.is-phone:not(.is-wide)[data-sheet="info"] .b-head .b-size { display: grid; }
html.is-phone:not(.is-wide)[data-sheet="info"] .b-head .b-kicker, html.is-phone:not(.is-wide)[data-sheet="info"] .b-head .b-name { display: none; }
html.is-phone:not(.is-wide)[data-sheet="info"] #sheet > .b-head { padding-top: 0; }
html.is-phone:not(.is-wide)[data-sheet="info"] .b-more > :not(.qc-editor) { display: none; }
html.is-phone:not(.is-wide)[data-sheet="info"] .b-size { gap: 3px; font-size: 13px; }

/* full screen: the door alone; the open button (and the pivot's pull) with the way back, floating at the foot */
html.is-immersive .b-top, html.is-immersive .b-plan, html.is-immersive .b-hint { opacity: 0 !important; pointer-events: none !important; }
html.is-immersive #app #sheet { top: auto; right: auto; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: none; display: block; padding: 0; overflow: visible; transform: translateX(-50%) !important; border: 0; border-radius: 999px; background: rgba(13, 13, 15, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px -20px rgba(0, 0, 0, 0.8); }
html.is-immersive #sheet > :not(.b-actions), html.is-immersive #btnNear, html.is-immersive #btnPlan, html.is-immersive #btnDesign, html.is-immersive #btnInfo, html.is-immersive #btnMore { display: none !important; }
html.is-immersive #app #sheet > .b-actions { position: static; margin: 0; padding: 5px; gap: 4px; border: 0; background: none; }
html.is-immersive #app #sheet .b-actions .b-btn { flex: none; width: 70px; height: 52px; border-radius: 26px; }

/* the colour and the glass one above the other (side by side the glass buttons broke into slivers on a phone) */
html.is-phone:not(.is-wide) .b-row--duo { grid-template-columns: 1fr; gap: 12px; }
html.is-phone:not(.is-wide) .b-duo--glass { padding-left: 0; border-left: 0; }
/* the top bar inside the phone's width: smaller tools, and below 380 px the Q mark alone (cropped from the lockup) */
html.is-phone:not(.is-wide) .b-top { padding: 12px 12px 22px; gap: 8px; }
html.is-phone:not(.is-wide) .b-logo { flex: none; width: 100px; }
html.is-phone:not(.is-wide) .b-tools { gap: 5px; }
html.is-phone:not(.is-wide) .b-icon { width: 38px; height: 38px; flex-shrink: 0; }
html.is-phone:not(.is-wide) .b-icon svg { width: 20px; height: 20px; }
html.is-phone:not(.is-wide) .b-lang button { min-width: 38px; height: 34px; padding: 0 7px; font-size: 13px; white-space: nowrap; }
html.is-phone:not(.is-wide) .b-back { width: 38px; height: 38px; padding: 0; justify-content: center; flex-shrink: 0; }
html.is-phone:not(.is-wide) .b-back span { display: none; }
@media (max-width: 379px) { html.is-phone:not(.is-wide) .b-logo { width: 34px; height: 34px; object-fit: cover; object-position: 0 50%; } }
/* whatever scrolls into view in the open sheet (a focused size field, a tapped control) stops clear of its title above
   and the bar of icons below, both of which stay in place */
html.is-phone:not(.is-wide) #sheet { scroll-padding-top: 66px; scroll-padding-bottom: 80px; }
