/* ============================================================
   TOLA S2 · KIOSK STYLES · REV-B (Portrait 1080×1920)
   1) Simulator chrome (outside the canvas — not part of the product)
   2) Kiosk canvas (absolute px only; tokens from tokens/tokens.css)
   Zone model (see Design Documentation §2):
     y 0–104     status strip (non-interactive)
     y 104–754   visual zone (≥1600 mm — nothing to press)
     y 754–1624  interaction zone (scrolls if ever needed)
     y 1624–1784 primary action bar (1283–1225 mm)
     y 1784–1920 utility dock (seated reach)
   ============================================================ */

/* =========================================================
   1. SIMULATOR CHROME
   ========================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.sim {
  background: radial-gradient(1200px 700px at 50% 0%, #1c1e15 0%, #0b0c08 70%);
  color: #E4DFD4; font-family: var(--font-ar); font-size: 14px; line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
}
body.sim button, body.sim select { font: inherit; color: inherit; }

#simbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: rgba(12, 13, 9, .92); border-bottom: 1px solid rgba(157, 156, 137, .2);
  backdrop-filter: blur(8px);
}
#simbar .brand { display: flex; align-items: center; gap: 10px; margin-inline-end: 12px; }
#simbar .brand img { height: 26px; }
#simbar .brand b { font-weight: 600; color: #D4B26F; letter-spacing: .02em; }
#simbar .brand small { color: #A9A895; }
#simbar label { color: #A9A895; }
.sim-select, .sim-btn {
  background: #1B1C14; border: 1px solid rgba(157, 156, 137, .35); border-radius: 10px; padding: 7px 12px; cursor: pointer;
}
.sim-select:focus-visible, .sim-btn:focus-visible { outline: 2px solid #D4B26F; outline-offset: 2px; }
.sim-btn:hover { border-color: #D4B26F; }
.sim-btn.on { background: #D4B26F; color: #15160F; border-color: #D4B26F; }
.sim-btn.danger { border-color: rgba(242, 139, 127, .5); }
.sim-btn svg, .sim-btn .ic { width: 16px; height: 16px; vertical-align: -3px; }
.sim-spacer { flex: 1; }

.sim-layout { flex: 1; display: grid; grid-template-columns: 1fr 340px; min-height: 0; }
#stage { display: flex; justify-content: center; align-items: flex-start; padding: 20px; overflow: auto; }
#stage[data-zoom="actual"], #stage[data-zoom="half"] { justify-content: flex-start; }

/* Chassis (realistic luxury totem matching Image 2) */
#chassis {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 16px 0;
  background: linear-gradient(180deg, #FBF9F5 0%, #F0ECE4 45%, #E3DFD5 100%);
  border-radius: 40px 40px 14px 14px;
  border: 1px solid rgba(195, 191, 180, .75);
  box-shadow: 0 35px 95px rgba(0, 0, 0, .45), inset 4px 0 10px rgba(255, 255, 255, .95), inset -4px 0 10px rgba(0, 0, 0, .08);
  position: relative;
}
#crown {
  width: 100%; height: 32px; border-radius: 20px 20px 4px 4px; overflow: hidden; position: relative;
  background: #EDEAE2; display: flex; align-items: center;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .95), 0 2px 6px rgba(0, 0, 0, .08);
  transition: opacity .4s;
  border: 1px solid rgba(200, 196, 186, .5);
}
#crown::before {
  content: ''; position: absolute; top: 0; left: 10px; right: 10px; height: 5px;
  background: #FF3B30; border-radius: 3px;
  box-shadow: 0 0 10px #FF3B30, 0 0 20px rgba(255, 59, 48, .6);
  animation: kdCrownGlow 2.5s ease-in-out infinite;
}
#crown.dim { opacity: .45; }
#crown .led {
  white-space: nowrap; color: #323329; font-weight: 700; font-size: 11px; letter-spacing: .05em; padding-inline-start: 100%;
  animation: led 22s linear infinite; text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
@keyframes led { to { transform: translateX(100%); } }

#chassisBrand {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 0 4px; width: 100%;
}
.chassis-logo { height: 68px; width: auto; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }

#viewport {
  position: relative; overflow: hidden; background: #000; border-radius: 12px;
  outline: 8px solid #141510; box-shadow: 0 0 0 9px rgba(0, 0, 0, .14), 0 12px 30px rgba(0, 0, 0, .25);
}
#canvasWrap { position: absolute; inset: 0; }

.hw { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding-top: 8px; }
#chassis.bare { background: none; border: 0; box-shadow: none; padding: 0; }
#chassis.bare #crown, #chassis.bare #chassisBrand, #chassis.bare .hw, #chassis.bare #chassisPlinth, #chassis.bare .hw-note { display: none; }
.hw-deck { display: flex; gap: 18px; align-items: flex-end; justify-content: center; width: 100%; }
.hw-item { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: #5C5E4C; }
.hw-item b { color: #2C2D22; font-weight: 700; font-family: var(--font-ar), system-ui; }

#hwScanner {
  width: 58px; height: 58px; border-radius: 10px; background: #12130D; border: 1.5px solid #3A3B2F;
  display: grid; place-items: center; box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 4px 10px rgba(0,0,0,.12);
}
.hw-lens { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #E53935 25%, #3D1818 70%); box-shadow: 0 0 6px rgba(229, 57, 53, .6); }

#hwPos {
  width: 98px; height: 114px; border-radius: 12px;
  background: linear-gradient(175deg, #22241C 0%, #171812 100%);
  border: 1.5px solid #434438; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 8px 6px; box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  transition: all .3s;
}
.hw-pos-top { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.hw-nfc-icon { width: 16px; height: 10px; border: 1.5px solid #9AD8F5; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-bottom: 0; opacity: .8; }
#hwPos .scr-mini { width: 78px; height: 40px; border-radius: 6px; background: #080906; display: grid; place-items: center; font-size: 11px; color: #9AD8F5; border: 1px solid #1E2018; }
.hw-keypad-dots { display: flex; gap: 8px; margin-top: 4px; }
.hw-keypad-dots span { width: 6px; height: 6px; border-radius: 50%; background: #616254; }
.hw-keypad-dots span:nth-child(1) { background: #E53935; }
.hw-keypad-dots span:nth-child(2) { background: #D4B26F; }
.hw-keypad-dots span:nth-child(3) { background: #4CAF50; }
#hwPos.glow { box-shadow: 0 0 0 2.5px #D4B26F, 0 0 34px rgba(212, 178, 111, .75); animation: hwPulse 1.4s ease-in-out infinite; border-color: #D4B26F; }

#hwPrinter { width: 96px; height: 42px; border-radius: 8px; background: #1B1C15; border: 1.5px solid #3A3B2F; position: relative; overflow: visible; box-shadow: inset 0 2px 5px rgba(0,0,0,.8), 0 4px 10px rgba(0,0,0,.12); }
#hwPrinter::before { content: ''; position: absolute; inset-inline: 14px; top: 18px; height: 4px; border-radius: 2px; background: #050505; }
#hwPrinter::after { content: ''; position: absolute; inset-inline: 20px; top: 21px; height: 0; background: #F8F7F2; border-radius: 0 0 4px 4px; transition: height 1.4s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
#hwPrinter.printing::after { height: 44px; }

#hwMidSlot {
  width: 65%; height: 16px; border-radius: 8px; background: #0C0D09; border: 1.5px solid #282920;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.85); margin: 2px 0;
}

.hw-item-window { width: 100%; align-items: center; }
#hwWindow {
  width: 62%; min-width: 250px; height: 124px; border-radius: 18px;
  background: linear-gradient(180deg, #181912 0%, #10110C 100%);
  border: 2px solid #C4C0B4; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; font-size: 11.5px; padding: 8px 12px; transition: all .4s;
  box-shadow: inset 0 6px 18px rgba(0,0,0,.75), 0 6px 16px rgba(0,0,0,.12);
  position: relative; overflow: hidden;
}
.hw-downlight {
  position: absolute; top: 0; left: 15%; right: 15%; height: 4px; border-radius: 0 0 3px 3px;
  background: #FFE8A3; box-shadow: 0 0 14px rgba(255, 232, 163, .6);
}
.hw-bottle-stage { display: flex; flex-direction: column; align-items: center; margin-top: auto; margin-bottom: 4px; }
.hw-mini-vial { width: 14px; height: 24px; border-radius: 3px; background: linear-gradient(180deg, rgba(212,178,111,.9), rgba(180,140,70,.8)); border: 1px solid #FFE7B0; box-shadow: 0 0 8px rgba(212,178,111,.4); position: relative; }
.hw-mini-vial::before { content: ''; position: absolute; top: -5px; left: 3px; width: 6px; height: 4px; background: #D4B26F; border-radius: 1px; }
.hw-pedestal { width: 42px; height: 6px; border-radius: 3px; background: #EDE9DF; border: 1px solid #D0CCBF; margin-top: 2px; }
#hwWindowState { position: relative; z-index: 2; color: #C5C2B4; font-size: 11px; font-weight: 500; font-family: var(--font-ar), system-ui; }
#hwWindow.glow {
  border-color: #D4B26F;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 235, 170, .6) 0%, #202217 65%, #10110B 100%);
  box-shadow: 0 0 40px rgba(212, 178, 111, .6), inset 0 0 16px rgba(212, 178, 111, .35);
}
#hwWindow.glow #hwWindowState { color: #FFF8E6; font-weight: 700; text-shadow: 0 0 8px rgba(212, 178, 111, .8); }

#chassisPlinth {
  width: calc(100% + 32px); margin: 6px -16px 0; height: 32px; border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, #9C9A94 0%, #D8D6D0 30%, #888782 65%, #C2C0BB 100%);
  border-top: 1px solid #75746E; box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
@keyframes hwPulse { 50% { box-shadow: 0 0 0 2.5px #D4B26F, 0 0 46px rgba(212, 178, 111, .85); } }
.hw-note { font-size: 11px; color: #737562; margin: 4px 0 8px; }

/* Side panel */
.simpanel { border-inline-start: 1px solid rgba(157, 156, 137, .2); background: rgba(15, 16, 10, .8); padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 56px); position: sticky; top: 56px; }
.simpanel h3 { margin: 0 0 6px; font-size: 13px; color: #D4B26F; font-weight: 600; }
.sp-sec { border: 1px solid rgba(157, 156, 137, .18); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-row select { flex: 1; max-width: 190px; }
.sp-tog { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sp-tog input { accent-color: #D4B26F; width: 16px; height: 16px; }
.sp-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-btns .sim-btn[hidden] { display: none; }
.sp-hint { font-size: 12px; color: #A9A895; margin: 0; }
.sp-hint code { font-family: var(--font-mono); color: #E8D3A4; background: #1B1C14; padding: 1px 6px; border-radius: 6px; }
.sp-voice { font-size: 12px; margin: 0; padding: 6px 10px; border-radius: 8px; background: #1B1C14; border: 1px solid #3A3B2E; color: #CFCDB8; line-height: 1.5; }
.sp-voice.ok { border-color: #6E8B4E; color: #CFE3B5; }
.sp-voice.warn { border-color: #B08A3E; color: #E8D3A4; }
.sp-voice.off { border-color: #8A4B3E; color: #E9B8AC; }
#evLog { list-style: none; margin: 0; padding: 0; font-size: 11.5px; max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
#evLog li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; padding: 5px 7px; border-radius: 8px; background: #15160F; }
#evLog li span { color: #6B6D55; font-family: var(--font-mono); }
#evLog li b { color: #E8D3A4; font-family: var(--font-mono); font-weight: 500; direction: ltr; text-align: start; }
#evLog li em { color: #85866F; font-style: normal; font-family: var(--font-mono); }
#evLog li code { grid-column: 1 / -1; color: #A9A895; font-family: var(--font-mono); direction: ltr; text-align: left; word-break: break-all; }

@media (max-width: 1100px) { .sim-layout { grid-template-columns: 1fr; } .simpanel { position: static; max-height: none; border-inline-start: 0; border-top: 1px solid rgba(157, 156, 137, .2); } }

/* =========================================================
   2. KIOSK CANVAS
   ========================================================= */
#canvas {
  /* font scale is resolved HERE so [data-font] on #canvas applies to everything inside */
  --f-display: calc(var(--t-display) * var(--fs));
  --f-title: calc(var(--t-title) * var(--fs));
  --f-section: calc(var(--t-section) * var(--fs));
  --f-card: calc(var(--t-card) * var(--fs));
  --f-body: calc(var(--t-body) * var(--fs));
  --f-small: calc(var(--t-small) * var(--fs));
  --f-min: calc(var(--t-min) * var(--fs));
  --f-button: calc(var(--t-button) * min(var(--fs), 1.25));
  --zone-visual-h: calc(var(--zone-visual-end) - var(--zone-status-h));
  position: absolute; top: 0; left: 0; width: 1080px; height: 1920px; overflow: hidden; transform-origin: 0 0;
  background:
    radial-gradient(900px 640px at 50% 18%, rgba(81, 83, 62, .55) 0%, rgba(81, 83, 62, 0) 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(212, 178, 111, .06), transparent 70%),
    var(--bg-base);
  color: var(--text-primary); font-family: var(--font-ar); font-size: var(--f-body); line-height: var(--lh-ar);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
#canvas[lang="en"] { line-height: var(--lh-en); }
#canvas[data-contrast="high"] { background: #000; }
#canvas *, #canvas *::before, #canvas *::after { box-sizing: border-box; }
:where(#canvas) :where(h1, h2, h3, p, figure, ol, ul) { margin: 0; padding: 0; }
:where(#canvas) :where(ol, ul) { list-style: none; }
:where(#canvas) img { display: block; max-width: 100%; }
:where(#canvas) button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform var(--d-press) ease, background-color .2s, border-color .2s, color .2s, box-shadow .2s, opacity .2s;
}
:where(#canvas) button:not(:disabled):active { transform: scale(.975); }
:where(#canvas) :focus { outline: none; }
#canvas :focus-visible { outline: 4px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
:where(#canvas) :where(strong, b) { font-weight: var(--w-strong); }
:where(#canvas) em { font-style: normal; }
:where(#canvas) bdi { unicode-bidi: isolate; }
:where(#canvas) .mono { font-family: var(--font-mono); letter-spacing: .02em; }
:where(#canvas) .money { white-space: nowrap; }
:where(#canvas) svg.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#canvas[dir="ltr"] .ic-dir { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Typography ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--f-min); color: var(--text-gold); letter-spacing: .04em; font-weight: var(--w-strong); }
.h-title { font-size: var(--f-title); line-height: 1.2; font-weight: var(--w-strong); letter-spacing: -.005em; }
.h-section { font-size: var(--f-section); line-height: 1.25; font-weight: var(--w-strong); }
.h-small { font-size: calc(36px * var(--fs)); line-height: 1.3; font-weight: var(--w-strong); display: flex; align-items: center; gap: 14px; }
.h-small svg.ic { color: var(--text-gold); }
#canvas[lang="en"] .h-title, #canvas[lang="en"] .spot-name, #canvas[lang="en"] .amount { font-family: var(--font-serif); letter-spacing: 0; }
.lead { font-size: var(--f-body); color: var(--text-secondary); }
.sub { font-size: var(--f-small); color: var(--text-muted); }
.note { font-size: var(--f-small); color: var(--text-muted); display: flex; align-items: center; gap: 12px; }
.note.center { justify-content: center; text-align: center; }
.center { text-align: center; justify-content: center; }
.desc { font-size: var(--f-small); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.family-line { font-size: var(--f-small); color: var(--text-secondary); }

/* =========================================================
   3. FRAME — status strip · screen · action bar · dock
   ========================================================= */
.status {
  position: absolute; top: 0; left: 0; right: 0; height: var(--zone-status-h); z-index: 4;
  display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 20px; padding: 0 var(--safe);
  background: linear-gradient(180deg, rgba(15, 16, 10, .92), rgba(15, 16, 10, .55)); border-bottom: 1px solid var(--border-subtle);
}
.status-red { position: absolute; bottom: -1px; inset-inline-start: var(--safe); width: 120px; height: 3px; background: var(--hw-red); border-radius: 2px; }
.status-logo { width: 170px; height: 72px; display: flex; align-items: center; cursor: default !important; }
.status-logo img { height: 52px; width: auto; }
#canvas .status-logo:active { transform: none; }
.steps { display: flex; justify-content: center; gap: 12px; min-width: 0; }
.status-end:has(.net-off) .q-chip > span { display: none; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--t-min); color: var(--text-muted); position: relative; flex: none; }
.steps li i { width: 16px; height: 16px; transform: rotate(45deg); border: 2px solid var(--olive-400); border-radius: 3px; background: transparent; }
.steps li.done i { background: var(--olive-300); border-color: var(--olive-300); }
.steps li.done { color: var(--text-secondary); }
.steps li.cur i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(212, 178, 111, .7); }
.steps li.cur { color: var(--text-gold); font-weight: var(--w-strong); }
.steps li span { white-space: nowrap; line-height: 1.2; }
.status-end { display: flex; align-items: center; gap: 14px; }
.net-off { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-min); color: var(--status-warning); padding: 6px 14px; border-radius: var(--r-pill); background: var(--status-warning-bg); }
.q-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--t-min); color: var(--text-secondary); line-height: 1.2; }
.q-chip.guest { padding: 8px 18px; border-radius: var(--r-pill); border: 1px solid var(--border-subtle); color: var(--text-muted); }

/* Diamonds (quota & meters) — derived from the TOLA crown facet */
.dms { display: inline-flex; gap: 10px; align-items: center; direction: ltr; }
.dm { display: inline-block; width: 18px; height: 18px; transform: rotate(45deg); border-radius: 3px; border: 2px solid var(--olive-400); }
.dm.on { background: var(--accent); border-color: var(--accent); }
.dm.paid.on { background: var(--alabaster-100); border-color: var(--alabaster-100); }
.dm.paid.off, .dm.free.off { background: transparent; }
.dms-lg .dms { gap: 22px; }
.dms-lg .dm { width: 34px; height: 34px; border-width: 3px; }
.dms-lg .dm.on { box-shadow: 0 0 18px rgba(212, 178, 111, .45); }
.dms-lg .dm.paid.on { box-shadow: none; }
.meter { display: inline-flex; gap: 10px; direction: ltr; }
.meter .dm { width: 16px; height: 16px; }

/* Screen container */
.scr { position: absolute; top: var(--zone-status-h); bottom: calc(var(--zone-action-h) + var(--zone-dock-h)); left: 0; right: 0; display: flex; flex-direction: column; animation: scrIn var(--d-screen) var(--ease-out); }
.scr:first-child { top: 0; bottom: 0; }
@keyframes scrIn { from { opacity: 0; transform: translateY(12px); } }
.z-visual { flex: 0 0 var(--zone-visual-h); height: var(--zone-visual-h); padding: 36px var(--safe) 12px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.z-visual.center { align-items: center; justify-content: center; text-align: center; }
.z-interact {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 28px var(--safe) 52px; display: flex; flex-direction: column; gap: 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
  scrollbar-width: thin; scrollbar-color: var(--olive-400) transparent; overscroll-behavior: contain;
}
.z-interact.center { align-items: center; text-align: center; }
.v-icon { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; color: var(--text-gold); background: radial-gradient(circle, rgba(212, 178, 111, .18), rgba(212, 178, 111, .04)); border: 1px solid var(--border-gold); font-size: 52px; }
.row-head { display: flex; align-items: center; justify-content: space-between; }

/* Action bar — fixed, y 1624–1784 */
.actionbar {
  position: absolute; left: 0; right: 0; bottom: var(--zone-dock-h); height: var(--zone-action-h); z-index: 3;
  display: flex; align-items: center; gap: var(--touch-gap); padding: 0 var(--safe);
  background: linear-gradient(180deg, rgba(15, 16, 10, 0), rgba(15, 16, 10, .92) 24%);
}
.pri-wrap { flex: 1; position: relative; display: flex; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: var(--touch-min); border-radius: var(--r-pill); font-size: var(--f-small); font-weight: var(--w-strong); line-height: 1.2; padding: 0 32px; }
.btn svg.ic { width: 1.15em; height: 1.15em; }
.btn-primary {
  flex: 1; min-height: var(--touch-primary); font-size: var(--f-button); color: var(--text-on-gold); background: var(--cta-gradient);
  box-shadow: 0 10px 30px rgba(212, 178, 111, .25), inset 0 1px 0 rgba(255, 255, 255, .45); padding: 0 40px;
}
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--surface-3); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.btn-secondary { min-height: var(--touch-primary); min-width: 260px; font-size: calc(36px * min(var(--fs), 1.25)); border: 2px solid var(--border-strong); color: var(--text-primary); background: var(--surface-1); }
.btn-ghost { min-height: 88px; border: 2px solid var(--border-strong); color: var(--text-primary); background: rgba(255, 255, 255, .02); }
.btn-ghost.on { border-color: var(--accent); color: var(--text-gold); }
.btn-ghost.sm, .btn.sm { min-height: var(--touch-min); font-size: var(--f-min); padding: 0 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row .btn-ghost { flex: 1 1 auto; }
.action-status {
  flex: 1; min-height: var(--touch-primary); border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; gap: 20px;
  border: 2px dashed var(--border-strong); color: var(--text-secondary); font-size: var(--f-body);
}
.action-status.error { border-color: var(--status-error); color: var(--status-error); border-style: solid; background: var(--status-error-bg); }
.action-status.error .spin { display: none; }
.action-reason {
  position: absolute; bottom: calc(100% + 6px); inset-inline: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--f-min); color: var(--text-muted); pointer-events: none;
}

/* Dock — y 1784–1920 */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--zone-dock-h); z-index: 3;
  display: flex; justify-content: center; align-items: stretch; gap: 8px; padding: 12px var(--safe) 16px;
  background: var(--bg-deep); border-top: 1px solid var(--border-subtle);
}
.dock-btn {
  flex: 1 1 0; max-width: 220px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-md); color: var(--text-secondary); font-size: var(--t-min); line-height: 1.15; text-align: center;
}
.dock-btn svg.ic { width: 40px; height: 40px; }
.dock-btn:hover, .dock-btn.on { color: var(--text-gold); background: rgba(212, 178, 111, .08); }
.dock-btn.on { box-shadow: inset 0 0 0 2px var(--border-gold); }

/* Down-guide glow (SC-10 / SC-13): the user must look BELOW the screen */
#canvas:has(.guide-down)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 60px 12px rgba(212, 178, 111, .55);
  animation: glowPulse 1.6s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: .35; } }

/* =========================================================
   4. SHARED COMPONENTS
   ========================================================= */
.card { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px; border-radius: var(--r-pill); font-size: var(--f-small); border: 1px solid var(--border-subtle); background: var(--surface-1); align-self: flex-start; }
.z-visual.center .pill, .maint .pill { align-self: center; }
.pill.gold { border-color: var(--border-gold); color: var(--text-gold); background: rgba(212, 178, 111, .08); }
.pill.warn { border-color: var(--status-warning); color: var(--status-warning); background: var(--status-warning-bg); }
.link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--touch-min); padding: 0 16px; color: var(--text-gold); font-size: var(--f-small); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; align-self: center; }
.link-btn.small { font-size: var(--f-min); }
.link-btn.inline { min-height: 0; padding: 4px 8px; display: inline-flex; vertical-align: baseline; align-self: auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: var(--r-pill); font-size: var(--f-min); font-weight: var(--w-strong); align-self: flex-start; width: fit-content; line-height: 1.3; }
.b-on { color: var(--status-success); background: var(--status-success-bg); }
.b-low { color: var(--status-warning); background: var(--status-warning-bg); }
.b-off { color: var(--status-error); background: var(--status-error-bg); }
.b-fav { color: var(--text-gold); background: rgba(212, 178, 111, .12); }
.msg { display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px; border-radius: var(--r-md); font-size: var(--f-small); border: 1px solid transparent; flex-wrap: wrap; }
.msg > svg.ic { width: 40px; height: 40px; margin-top: 2px; }
.msg > span { flex: 1; }
.msg .btn { margin-inline-start: auto; }
.msg.info { background: var(--status-info-bg); border-color: rgba(169, 204, 221, .35); }
.msg.info > svg.ic { color: var(--status-info); }
.msg.warn { background: var(--status-warning-bg); border-color: rgba(233, 190, 99, .4); }
.msg.warn > svg.ic { color: var(--status-warning); }
.msg.error { background: var(--status-error-bg); border-color: rgba(242, 139, 127, .45); }
.msg.error > svg.ic { color: var(--status-error); }
.msg.success { background: var(--status-success-bg); border-color: rgba(140, 203, 155, .4); }
.msg.success > svg.ic { color: var(--status-success); }
.msg.tip { background: rgba(212, 178, 111, .07); border-color: var(--border-gold); }
.msg.tip > svg.ic { color: var(--text-gold); }
.state-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 44px 36px; border-radius: var(--r-xl); border: 1px solid var(--border-subtle); background: var(--surface-1); }
.state-card > svg.ic { width: 88px; height: 88px; }
.state-card h2 { font-size: var(--f-section); line-height: 1.25; }
.state-card p { font-size: var(--f-small); color: var(--text-secondary); }
.state-card.compact { padding: 28px; gap: 14px; }
.state-card.compact > svg.ic { width: 56px; height: 56px; }
.state-card.compact h2 { font-size: var(--f-body); }
.state-card.warn { border-color: rgba(233, 190, 99, .45); } .state-card.warn > svg.ic { color: var(--status-warning); }
.state-card.error { border-color: rgba(242, 139, 127, .5); } .state-card.error > svg.ic { color: var(--status-error); }
.state-card.success { border-color: rgba(140, 203, 155, .5); } .state-card.success > svg.ic { color: var(--status-success); }
.state-card.info > svg.ic { color: var(--status-info); }
.loading-line { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: var(--f-small); color: var(--text-secondary); min-height: 72px; }
.spin { display: inline-block; width: 36px; height: 36px; border-radius: 50%; border: 4px solid rgba(212, 178, 111, .22); border-top-color: var(--accent); flex: none; animation: spin .9s linear infinite, spinAppear var(--spinner-delay) steps(1); }
.spin.idle { animation: none; border-color: var(--olive-600); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinAppear { from, to { opacity: 0; } }
.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullets li { position: relative; padding-inline-start: 36px; font-size: var(--f-small); color: var(--text-secondary); }
.bullets li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .6em; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--f-min); color: var(--status-uvc); padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid rgba(154, 216, 245, .35); }
.trust span:last-child { color: var(--text-secondary); border-color: var(--border-subtle); }

/* Image fallback (asset missing) — branded, never a broken icon */
.img-missing { background: radial-gradient(circle at 50% 40%, rgba(212, 178, 111, .16), transparent 60%), linear-gradient(160deg, var(--olive-700), var(--olive-900)) !important; position: relative; }
.img-missing > img { visibility: hidden; }
.img-missing::after { content: ''; position: absolute; inset: 22%; background: url('assets/branding/tola_symbol_sage_gold.png') center / contain no-repeat; opacity: .55; }
.note.img-missing::after, .mini.img-missing::after, .sim-main.img-missing::after, .rec-card.img-missing::after { display: none; }

/* =========================================================
   5. PERSONA «تولين» — Photorealistic Saudi Perfume Consultant
   ========================================================= */
.persona { flex: none; position: relative; }
.p-ring {
  position: relative; width: 100%; height: 100%;
  border-radius: inherit; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--border-gold);
  background: var(--surface-1);
}
/* Frame stack — sized to the image's own aspect so overlay masks (image %) line up exactly */
.p-frame {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1;
  transform-origin: 50% 32%;
  animation: pBreath 4.8s ease-in-out infinite;
}
.p-frame.pt { aspect-ratio: 3 / 4; top: -1%; }          /* portrait poses in the lg arch: crop the hem, keep the head */
.p-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
/* Lip-sync + blink overlays: pixel-registered frames clipped to the mouth / eyes with a feathered mask */
.p-talk, .p-blink { opacity: 0; pointer-events: none; transition: opacity 45ms linear; }
.p-talk {
  -webkit-mask-image: radial-gradient(var(--mr) at var(--m), #000 45%, transparent 100%);
  mask-image: radial-gradient(var(--mr) at var(--m), #000 45%, transparent 100%);
}
.p-blink {
  -webkit-mask-image: radial-gradient(var(--er) at var(--e), #000 50%, transparent 100%);
  mask-image: radial-gradient(var(--er) at var(--e), #000 50%, transparent 100%);
}
.persona[data-mouth="1"] .p-talk.t1, .persona[data-mouth="2"] .p-talk.t2 { opacity: 1; }
.persona.talk-1[data-mouth="1"] .p-talk.t1 { opacity: .55; }  /* single-frame sets: half-open = blend */
.persona.talk-1[data-mouth="2"] .p-talk.t1 { opacity: 1; }
.persona.is-blink .p-blink { opacity: 1; }
.p-aura {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 20px rgba(212, 178, 111, 0.22);
}
/* Audio wave indicator (active when speaking) */
.p-wave {
  position: absolute; bottom: 8px; inset-inline-end: 8px;
  background: rgba(21, 22, 15, 0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold); border-radius: var(--r-pill);
  padding: 4px 8px; display: none; align-items: center; gap: 3px; z-index: 2;
}
.p-wave i {
  display: block; width: 3px; height: 14px; background: var(--text-gold);
  border-radius: 2px; transform-origin: bottom;
}
.is-speaking .p-wave { display: inline-flex; }
.is-speaking .p-wave i:nth-child(1) { animation: pWave 0.7s ease-in-out infinite alternate; }
.is-speaking .p-wave i:nth-child(2) { animation: pWave 0.5s ease-in-out infinite alternate 0.15s; }
.is-speaking .p-wave i:nth-child(3) { animation: pWave 0.8s ease-in-out infinite alternate 0.3s; }
.is-speaking .p-ring {
  box-shadow: 0 0 0 4px rgba(212, 178, 111, 0.35), 0 12px 36px rgba(212, 178, 111, 0.25);
  animation: pSpeakGlow 1.8s ease-in-out infinite;
}

@keyframes pBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes pWave {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}
@keyframes pSpeakGlow {
  0%, 100% { border-color: var(--border-gold); }
  50% { border-color: var(--hw-gold-light); box-shadow: 0 0 0 6px rgba(212, 178, 111, 0.5), 0 16px 48px rgba(212, 178, 111, 0.35); }
}

/* Sizing tiers */
.p-xs { width: 84px; height: 84px; border-radius: 50%; }
.p-sm { width: 140px; height: 140px; border-radius: 50%; }
.p-md { width: 190px; height: 190px; border-radius: 50%; }
.p-lg {
  width: 250px; height: 310px;
  border-radius: 125px 125px 28px 28px;
}
.p-sm .p-wave { transform: scale(0.85); bottom: 4px; inset-inline-end: 4px; }
.is-speaking.p-xs .p-wave { display: none; }   /* 84 px: the badge would cover the face — glow + lips signal speech */
.p-cheer .p-ring { box-shadow: 0 0 32px rgba(212, 178, 111, 0.38); }
.p-sorry .p-ring { border-color: rgba(212, 178, 111, 0.5); }

.persona-wrap { display: flex; align-items: center; gap: 22px; text-align: start; }
.persona-wrap.ps-lg { flex-direction: column; text-align: center; gap: 28px; }
.bubble { position: relative; background: var(--surface-2); border: 1px solid var(--border-subtle); border-inline-start: 4px solid var(--accent); border-radius: var(--r-lg); padding: 18px 26px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ps-lg .bubble { border-inline-start-width: 1px; border-top: 4px solid var(--accent); max-width: 880px; padding: 26px 36px; }
.bubble-name { font-size: var(--f-min); color: var(--text-gold); font-weight: var(--w-strong); }
.bubble p { font-size: var(--f-small); color: var(--text-primary); }
.ps-lg .bubble p { font-size: var(--f-body); }

/* =========================================================
   6. SCREENS
   ========================================================= */
/* ---- SC-01 Attract ---- */
.attract { position: absolute; inset: 0; cursor: pointer; overflow: hidden; background: var(--bg-deep); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.6s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.slide.on img { animation: kenBurns 14s ease-out both; }
@keyframes kenBurns { from { transform: scale(1.14) translateY(14px); } to { transform: scale(1) translateY(0); } }
.slide figcaption { position: absolute; inset-inline: 80px; top: 860px; text-align: center; font-size: var(--f-section); line-height: 1.3; color: var(--alabaster-50); text-shadow: 0 4px 30px rgba(0, 0, 0, .8); font-weight: var(--w-strong); opacity: 0; transform: translateY(16px); transition: all 1s .5s; }
.slide.on figcaption { opacity: 1; transform: none; }
.attract-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 16, 10, .75) 0%, rgba(15, 16, 10, .05) 28%, rgba(15, 16, 10, .2) 50%, rgba(15, 16, 10, .92) 78%, var(--bg-deep) 100%); }
.attract-top { position: absolute; top: 130px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.attract-logo { width: 300px; height: auto; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .6)); }
.attract-tag { font-size: var(--f-body); color: var(--alabaster-100); letter-spacing: .02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.attract-today { position: absolute; top: 1110px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 16px 32px; border-radius: var(--r-pill); background: rgba(15, 16, 10, .6); border: 1px solid var(--border-gold); backdrop-filter: blur(8px); white-space: nowrap; font-size: var(--f-small); }
.attract-today span { color: var(--text-gold); }
.attract-today em { color: var(--text-muted); }
.attract-cta { position: absolute; top: 1290px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.touch-ring { width: 176px; height: 176px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 2px solid var(--border-gold); background: radial-gradient(circle, rgba(212, 178, 111, .22), rgba(212, 178, 111, .02) 70%); position: relative; }
.touch-ring svg.ic { width: 80px; height: 80px; }
.touch-ring::before, .touch-ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2.6s ease-out infinite; }
.touch-ring::after { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.attract-touch { font-size: var(--f-section); font-weight: var(--w-strong); text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.attract-langs { font-size: var(--f-small); color: var(--text-muted); }
.attract.near .touch-ring { transform: scale(1.15); box-shadow: 0 0 80px rgba(212, 178, 111, .55); transition: all .6s var(--ease-out); }
.attract.near .attract-touch { color: var(--text-gold); }
.attract-proof { position: absolute; bottom: 150px; inset-inline: 0; display: flex; justify-content: center; gap: 22px; }
.attract-proof span { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: var(--r-pill); background: rgba(27, 28, 20, .8); border: 1px solid var(--border-subtle); font-size: var(--f-small); color: var(--text-secondary); }
.attract-proof svg.ic { color: var(--text-gold); }
.attract-privacy { position: absolute; bottom: 60px; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: var(--f-min); color: var(--text-muted); }

/* ---- SC-02 Welcome ---- */
.scr-welcome .z-visual { justify-content: center; }
.lang-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--touch-gap); }
.lang-btn { position: relative; min-height: 210px; border-radius: var(--r-xl); border: 2px solid var(--border-strong); background: var(--surface-1); display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center !important; }
.lang-btn strong { font-size: var(--f-section); }
.lang-btn span { font-size: var(--f-small); color: var(--text-muted); }
.lang-btn svg.ic { position: absolute; top: 20px; inset-inline-end: 20px; width: 44px; height: 44px; color: var(--text-on-gold); background: var(--accent); border-radius: 50%; padding: 6px; }
.lang-btn.on { border-color: var(--accent); background: rgba(212, 178, 111, .1); box-shadow: var(--shadow-gold); }
.lang-btn[lang="en"] strong { font-family: var(--font-serif); }
.scr-welcome .note { justify-content: center; text-align: center; }

/* ---- SC-03 Phone / OTP ---- */
.scr-otp .z-visual { align-items: center; text-align: center; justify-content: center; }
.scr-otp .z-interact { align-items: center; gap: 14px; }
.phone-field { width: 780px; min-height: 120px; border-radius: var(--r-lg); background: var(--surface-2); border: 2px solid var(--border-gold); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 20px; }
.phone-field.busy { opacity: .6; }
.ph-label { font-size: var(--f-small); color: var(--text-muted); }
.ph-val { font-family: var(--font-mono); font-size: calc(56px * min(var(--fs), 1.25)); letter-spacing: .08em; white-space: nowrap; }
.ph-val b { color: var(--text-gold); font-weight: 500; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 780px; }
.key { height: 96px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 48px; display: flex !important; align-items: center; justify-content: center; text-align: center !important; }
.key:active { background: var(--surface-3); }
.key.fn { font-family: var(--font-ar); font-size: var(--f-small); color: var(--text-secondary); background: transparent; }
.key.fn svg.ic { width: 44px; height: 44px; }
.otp-row { display: flex; justify-content: center; gap: 22px; }
.otp-box { width: 116px; height: 136px; border-radius: var(--r-md); border: 3px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 64px; position: relative; }
.otp-box.cur { border-color: var(--accent); box-shadow: var(--shadow-gold); }
.otp-box.cur::after { content: ''; width: 4px; height: 56px; background: var(--accent); position: absolute; animation: blink 1s steps(1) infinite; }
.otp-box.err { border-color: var(--status-error); animation: shake .4s; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.scr-otp .msg { width: 780px; }
.scr-otp .state-card { width: 100%; }

/* ---- SC-04 Home ---- */
.spotlight { position: relative; height: 410px; flex: none; }
.spot { position: absolute; inset: 0; display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.spot.on { opacity: 1; }
.spot img { width: 300px; height: 400px; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-2), 0 0 0 1px var(--border-gold); }
.spot.on img { animation: spotIn 7s ease-out both; }
@keyframes spotIn { from { transform: scale(1.04); } to { transform: scale(1); } }
.spot figcaption { display: flex; flex-direction: column; gap: 10px; }
.spot-name { font-size: var(--f-title); line-height: 1.15; }
.spot figcaption > span:last-child { font-size: var(--f-small); color: var(--text-secondary); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { min-height: 150px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border-subtle); padding: 24px 28px; display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 20px; row-gap: 4px; align-content: center; text-align: start; }
.path svg.ic { grid-row: 1 / span 2; width: 64px; height: 64px; color: var(--text-gold); padding: 12px; border-radius: 50%; background: rgba(212, 178, 111, .1); align-self: center; }
.path strong { font-size: var(--f-body); line-height: 1.25; }
.path span { font-size: var(--f-min); color: var(--text-muted); }
.path:hover, .path:focus-visible { border-color: var(--border-gold); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.minis.two { grid-template-columns: repeat(2, 1fr); }
.mini { display: flex !important; flex-direction: column; gap: 8px; text-align: start; position: relative; border-radius: var(--r-md); }
.mini img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--border-subtle); }
.minis.two .mini img { height: 170px; }
.mini.img-missing { background: none !important; }
.mini.img-missing img { visibility: visible; background: linear-gradient(160deg, var(--olive-700), var(--olive-900)); }
.mini strong { font-size: var(--f-small); line-height: 1.3; }
.mini span { font-size: var(--f-min); color: var(--text-muted); }

/* ---- SC-05 Catalog ---- */
.z-visual.banner { padding: 0; justify-content: flex-end; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 22, 15, .2) 0%, rgba(21, 22, 15, .55) 45%, var(--bg-base) 100%); }
#canvas[data-contrast="high"] .banner-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .5), #000 80%); }
.banner-text { position: relative; padding: 0 var(--safe) 30px; display: flex; flex-direction: column; gap: 10px; }
.search-field { display: flex !important; align-items: center; gap: 18px; min-height: 92px; padding: 0 32px; border-radius: var(--r-pill); background: var(--surface-2); border: 2px solid var(--border-strong); font-size: var(--f-body); width: 100%; text-align: start; flex: none; }
.search-field > svg.ic { width: 44px; height: 44px; color: var(--text-gold); }
.search-field.active { border-color: var(--accent); box-shadow: var(--shadow-gold); }
.sf-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sf-text i { font-style: normal; color: var(--text-muted); }
.caret { width: 3px; height: 48px; background: var(--accent); animation: blink 1s steps(1) infinite; margin-inline-start: -14px; }
.sf-clear { width: 72px; height: 72px; border-radius: 50%; display: grid !important; place-items: center; background: var(--surface-3); flex: none; cursor: pointer; }
.sf-clear svg.ic { width: 32px; height: 32px; }
.suggest { display: flex; flex-wrap: wrap; gap: 14px; }
.sugg { display: inline-flex !important; align-items: center; gap: 12px; min-height: var(--touch-min); padding: 0 26px; border-radius: var(--r-pill); background: var(--surface-1); border: 1px solid var(--border-strong); font-size: var(--f-small); }
.sugg svg.ic { color: var(--text-gold); }
.sugg em { color: var(--text-muted); font-size: var(--f-min); }
.kb { display: flex; flex-direction: column; gap: 10px; padding: 18px 12px; background: var(--bg-deep); border-radius: var(--r-lg); border: 1px solid var(--border-subtle); flex: none; }
.kb-row { display: flex; justify-content: center; gap: 8px; }
.kb-key { flex: 1 1 0; max-width: 86px; height: 92px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border-subtle); font-size: 38px; display: flex !important; align-items: center; justify-content: center; text-align: center !important; }
.kb-row:first-child .kb-key { font-family: var(--font-mono); font-size: 32px; height: 80px; color: var(--text-secondary); }
.kb-key:active { background: var(--surface-3); }
.kb-key.fn { flex: 0 0 150px; max-width: none; font-size: var(--f-small); background: var(--surface-3); }
.kb-key.space { flex: 1 1 auto; }
.kb-key.done { background: var(--cta-gradient); color: var(--text-on-gold); font-weight: var(--w-strong); }
.kb-key svg.ic { width: 40px; height: 40px; }
.chips { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; flex: none; padding: 2px; }
.chip { flex: none; display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; min-height: var(--touch-min); min-width: 104px; padding: 0 28px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface-1); font-size: var(--f-small); white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--text-on-gold); border-color: var(--accent); font-weight: var(--w-strong); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: none; }
.pcard { display: grid !important; grid-template-columns: 150px 1fr; min-height: 200px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-1); border: 1px solid var(--border-subtle); text-align: start; position: relative; }
.pcard:hover, .pcard:focus-visible { border-color: var(--border-gold); }
.pcard-img { display: block; position: relative; background: var(--olive-800); }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; min-width: 0; }
.pcard-brand { font-size: var(--f-min); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name { font-size: var(--f-body); font-weight: var(--w-strong); line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.pcard-name svg.fav { color: var(--text-gold); width: 28px; height: 28px; fill: currentColor; }
.pcard-family { font-size: var(--f-min); color: var(--text-secondary); }
.pcard-family em { color: var(--text-gold); }
.pcard-body .badge { margin-top: auto; }
.pcard-reason { font-size: var(--f-min); color: var(--text-muted); }
.pcard.is-off .pcard-img img { filter: grayscale(1) brightness(.6); }
.pcard.is-off .pcard-name { color: var(--text-secondary); }
.pcard.skeleton { pointer-events: none; }
.pcard.skeleton .pcard-img, .pcard.skeleton i { background: linear-gradient(90deg, var(--olive-800) 0%, var(--olive-700) 50%, var(--olive-800) 100%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.pcard.skeleton i { display: block; height: 26px; border-radius: 8px; width: 80%; }
.pcard.skeleton i:nth-child(2) { width: 60%; height: 36px; }
.pcard.skeleton i:nth-child(3) { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 36px; font-size: var(--f-small); color: var(--text-secondary); flex: none; }
.pg-btn { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid !important; place-items: center; }
.pg-btn svg.ic { width: 40px; height: 40px; }
.pg-btn:disabled { opacity: .3; cursor: not-allowed; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 32px 0; }
.empty > svg.ic { width: 88px; height: 88px; color: var(--text-muted); }
.empty h2 { font-size: var(--f-section); }
.empty p { color: var(--text-secondary); font-size: var(--f-small); }
.empty .btn-row { justify-content: center; }
/* Large text: single column, shorter cards (pageSize() = 3 / 2) */
#canvas[data-font="125"] .pgrid, #canvas[data-font="150"] .pgrid { grid-template-columns: 1fr; }
#canvas[data-font="125"] .pcard { grid-template-columns: 112px 1fr; min-height: 140px; }
#canvas[data-font="150"] .pcard { grid-template-columns: 150px 1fr; min-height: 200px; }
#canvas[data-font="125"] .pcard-brand, #canvas[data-font="150"] .pcard-brand { display: none; }
#canvas[data-font="125"] .pcard-body { gap: 4px; padding: 14px 20px; }

/* ---- SC-06 Details / SC-09 Confirm (hero split) ---- */
.hero-split { display: grid !important; grid-template-columns: 400px 1fr; gap: 36px; align-items: center; padding-top: 28px !important; }
.bottle-stage { position: relative; width: 400px; height: 560px; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(circle at 50% 70%, rgba(212, 178, 111, .18), transparent 60%), var(--olive-800); box-shadow: var(--shadow-2), 0 0 0 1px var(--border-gold); }
.bottle { width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pyramid .layer { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.layer-name { font-size: var(--f-small); color: var(--text-gold); font-weight: var(--w-strong); }
.notes { display: flex; flex-wrap: wrap; gap: 16px; }
.note { display: flex !important; align-items: center; gap: 14px; padding: 6px 22px 6px 6px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-primary); }
#canvas[dir="rtl"] .note { padding: 6px 6px 6px 22px; }
.note img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-gold); }
.note.img-missing { background: var(--surface-2) !important; }
.note.img-missing img { visibility: visible; background: linear-gradient(160deg, var(--olive-600), var(--olive-800)); }
.note figcaption { font-size: var(--f-small); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.metric > span { display: flex; align-items: center; gap: 10px; font-size: var(--f-min); color: var(--text-muted); }
.metric > span svg.ic { color: var(--text-gold); }
.metric strong { font-size: var(--f-small); line-height: 1.3; }
#canvas[data-font="150"] .metrics { grid-template-columns: 1fr; }

/* ---- SC-07 Similar ---- */
.sim-list { display: flex; flex-direction: column; gap: 16px; }
.sim-card { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border-subtle); }
.sim-main { flex: 1; display: flex !important; align-items: center; gap: 22px; text-align: start; min-width: 0; position: relative; }
.sim-main img { width: 100px; height: 132px; object-fit: cover; border-radius: var(--r-md); flex: none; }
.sim-main.img-missing { background: none !important; }
.sim-main.img-missing img { visibility: visible; background: linear-gradient(160deg, var(--olive-700), var(--olive-900)); }
.sim-main > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sim-main strong { font-size: var(--f-body); }
.sim-main em { font-size: var(--f-min); color: var(--text-muted); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.reasons i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-size: var(--f-min); color: var(--status-success); }
.ref-chip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; padding: 18px 28px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border-gold); }
.ref-chip span { font-size: var(--f-min); color: var(--text-gold); }
.ref-chip strong { font-size: var(--f-card); line-height: 1.2; }
.ref-chip em { font-size: var(--f-small); color: var(--text-muted); }
.scr-similar .z-visual { justify-content: center; }

/* ---- SC-08 Quiz & profile ---- */
.scr-quiz .z-visual { justify-content: center; }
.qprog { display: flex; gap: 12px; }
.qprog i { width: 120px; height: 10px; border-radius: 5px; background: var(--olive-600); }
.qprog i.done { background: var(--olive-300); }
.qprog i.cur { background: var(--accent); box-shadow: 0 0 12px rgba(212, 178, 111, .6); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.opts.n5 .opt:last-child { grid-column: 1 / -1; }
.opt { min-height: 132px; border-radius: var(--r-lg); border: 2px solid var(--border-strong); background: var(--surface-1); display: flex !important; align-items: center; gap: 22px; padding: 0 30px; font-size: var(--f-body); text-align: start; }
.opt svg.ic { width: 56px; height: 56px; color: var(--text-gold); flex: none; }
.opt.on { border-color: var(--accent); background: rgba(212, 178, 111, .12); box-shadow: var(--shadow-gold); }
.opt.unk { border-style: dashed; color: var(--text-secondary); }
.opt.unk svg.ic { color: var(--text-muted); }
.scr-quiz.result .z-visual { align-items: center; text-align: center; gap: 8px; }
.radar { width: 100%; height: 440px; overflow: visible; }
.radar .rg { fill: none; stroke: var(--border-subtle); stroke-width: 1.5; }
.radar .rv { fill: rgba(212, 178, 111, .25); stroke: var(--accent); stroke-width: 3; animation: radarIn 1.1s var(--ease-out) both; transform-origin: 220px 210px; }
.radar .rp { fill: var(--accent); }
.radar text { fill: var(--text-secondary); font-size: 26px; font-family: var(--font-ar); }
@keyframes radarIn { from { transform: scale(.2); opacity: 0; } }
.rec-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: var(--r-xl); background: var(--surface-1); border: 1px solid var(--border-gold); position: relative; }
.rec-card > img { width: 220px; height: 290px; object-fit: cover; border-radius: var(--r-lg); }
.rec-card.img-missing > img { visibility: visible; background: linear-gradient(160deg, var(--olive-700), var(--olive-900)); }
.rec-card > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rec-card p { font-size: var(--f-small); color: var(--text-secondary); }
.because { display: flex; align-items: flex-start; gap: 10px; color: var(--text-primary) !important; }
.because svg.ic { color: var(--text-gold); margin-top: 6px; }

/* ---- SC-09 Quota panel ---- */
.quota { gap: 0; padding: 8px 28px; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; font-size: var(--f-small); border-bottom: 1px solid var(--border-subtle); }
.q-row:last-child { border-bottom: 0; }
.q-row.now { font-size: var(--f-body); font-weight: var(--w-strong); }
.q-val { display: inline-flex; align-items: center; gap: 22px; }
.q-val b { font-family: var(--font-mono); font-weight: 500; min-width: 64px; text-align: end; }
.q-row.now .q-val b { font-family: var(--font-ar); font-weight: var(--w-strong); }
.q-val b.free { color: var(--status-success); }
.q-val b.paid { color: var(--text-gold); }
.policy { display: flex; align-items: flex-start; gap: 12px; font-size: var(--f-min); color: var(--text-muted); }
.policy svg.ic { margin-top: 4px; }

/* ---- SC-10 Card payment ---- */
.amount { font-size: calc(128px * min(var(--fs), 1.2)); line-height: 1.1; font-weight: var(--w-strong); color: var(--text-gold); text-shadow: 0 0 40px rgba(212, 178, 111, .25); }
.scr-pay .z-visual .persona-wrap { margin-top: 10px; }
.pay-guide { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; }
.pay-guide > div { display: flex; flex-direction: column; gap: 12px; }
.kiosk-diagram { height: 600px; width: auto; max-width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.kiosk-diagram.compact { height: 440px; width: 140px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .35)); }
.kd-floor { stroke: rgba(157, 156, 137, .4); stroke-width: 1.5; stroke-dasharray: 6 6; }
.kd-crown-led { animation: kdCrownGlow 2.5s ease-in-out infinite; }
.kd-lead { fill: none; stroke: rgba(157, 156, 137, .55); stroke-width: 1.5; stroke-dasharray: 4 3; }
.kd-lead.hl { stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(212, 178, 111, .6)); }
.kd-target-dot { fill: rgba(157, 156, 137, .7); }
.kd-target-dot.hl { fill: var(--accent); filter: drop-shadow(0 0 5px #D4B26F); }
.kd-badge-bg { fill: #1C1E16; stroke: rgba(212, 178, 111, .35); stroke-width: 1.2; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.kd-badge-bg.hl { fill: #D4B26F; stroke: #FFF1CC; stroke-width: 2; filter: drop-shadow(0 0 16px rgba(212, 178, 111, .75)); }
.kd-badge-text { fill: #EDEAE2; font-size: 15px; font-weight: 600; font-family: var(--font-ar), system-ui; }
.kd-badge-text.hl { fill: #10110B; font-weight: 700; font-size: 15.5px; }
.kd-screen-badge { animation: kdPulse 2.4s ease-in-out infinite; transform-origin: 180px 256px; }
.kd-pos-halo, .kd-window-halo { animation: kdHaloPulse 1.4s ease-in-out infinite; transform-origin: center; }
.kd-pos-arrow, .kd-window-arrow { stroke: var(--accent); stroke-width: 3.5; fill: none; stroke-dasharray: 8 6; animation: dash 1s linear infinite; }
@keyframes kdHaloPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes kdCrownGlow { 0%, 100% { opacity: .85; } 50% { opacity: 1; filter: drop-shadow(0 0 6px #FF3B30); } }
@keyframes kdPulse { 50% { opacity: .65; } }
@keyframes dash { to { stroke-dashoffset: -14; } }
.methods { display: flex; flex-wrap: wrap; gap: 10px; }
.methods span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--f-min); color: var(--text-secondary); padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-subtle); }
.pay-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-steps li { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; border-radius: var(--r-md); background: var(--surface-1); font-size: var(--f-min); color: var(--text-muted); border: 1px solid var(--border-subtle); text-align: center; }
.pay-steps li .spin { width: 28px; height: 28px; border-width: 3px; }
.pay-steps li.cur { color: var(--text-gold); border-color: var(--border-gold); }
.pay-steps li.done { color: var(--status-success); }
.arrows-down { display: flex; flex-direction: column; align-items: center; color: var(--accent); margin-top: auto; }
.arrows-down svg.ic { width: 56px; height: 56px; margin-top: -22px; animation: arrowDown 1.4s ease-in-out infinite; }
.arrows-down svg.ic:nth-child(2) { animation-delay: .18s; opacity: .7; }
.arrows-down svg.ic:nth-child(3) { animation-delay: .36s; opacity: .45; }
.arrows-down.big svg.ic { width: 84px; height: 84px; margin-top: -34px; }
@keyframes arrowDown { 50% { transform: translateY(14px); } }

/* ---- SC-11 QR ---- */
.qr-panel { background: #fff; border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-gold); }
.qr { width: 420px; height: 420px; display: block; }
.scr-qr .z-visual .sub { display: flex; align-items: center; gap: 10px; }
.num-steps { display: flex; flex-direction: column; gap: 16px; }
.num-steps li { display: flex; align-items: center; gap: 20px; font-size: var(--f-small); }
.num-steps b { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-gold); color: var(--text-gold); font-family: var(--font-mono); font-weight: 500; }

/* ---- SC-12 Dispense — the TOLA symbol fills as the sample is prepared ---- */
.scr-dispense .z-visual { gap: 14px; }
.logo-build { position: relative; width: 250px; height: 336px; flex: none; }
.logo-build img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-base { opacity: .28; filter: grayscale(.4); }
.lb-fill { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out); filter: drop-shadow(0 0 18px rgba(212, 178, 111, .35)); }
.logo-build[data-stage="1"] .lb-fill { clip-path: inset(71% 0 0 0); }
.logo-build[data-stage="2"] .lb-fill { clip-path: inset(46% 0 0 0); }
.logo-build[data-stage="3"] .lb-fill { clip-path: inset(28% 0 0 0); }
.logo-build[data-stage="4"] .lb-fill, .logo-build[data-stage="5"] .lb-fill { clip-path: inset(0 0 0 0); }
.lb-glow { position: absolute; inset: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 178, 111, .45), transparent 65%); opacity: 0; transition: opacity .8s; pointer-events: none; }
.logo-build[data-stage="4"] .lb-glow { opacity: .9; background: radial-gradient(circle, rgba(154, 216, 245, .4), transparent 65%); animation: glowPulse 1.2s ease-in-out infinite; }
.logo-build[data-stage="5"] .lb-glow { opacity: 1; animation: none; }
.logo-build[data-stage="5"] { animation: lbDone .9s var(--ease-out); }
@keyframes lbDone { 40% { transform: scale(1.06); } }
.lb-letters { display: flex; gap: 30px; direction: rtl; }
.lb-letter { font-size: 60px; font-weight: var(--w-strong); color: var(--olive-600); transition: color .6s, text-shadow .6s, transform .6s; line-height: 1.2; }
.lb-letter.on { color: var(--accent); text-shadow: 0 0 22px rgba(212, 178, 111, .6); transform: translateY(-4px); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: var(--f-min); color: var(--text-muted); position: relative; }
.st-ic { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--olive-500); color: var(--text-muted); position: relative; transition: all .4s; font-style: normal; }
.st-ic svg.ic { width: 44px; height: 44px; }
.st-mark { position: absolute; top: 0; inset-inline-end: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--status-success); color: var(--olive-900); display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--ease-out); }
.st-mark svg.ic { width: 22px; height: 22px; stroke-width: 2.4; }
.stage.active { color: var(--text-gold); font-weight: var(--w-strong); }
.stage.active .st-ic { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 8px rgba(212, 178, 111, .12), 0 0 30px rgba(212, 178, 111, .35); animation: stPulse 1.4s ease-in-out infinite; }
.stage.done { color: var(--text-secondary); }
.stage.done .st-ic { background: var(--accent); border-color: var(--accent); color: var(--text-on-gold); }
.stage.done .st-mark { transform: scale(1); }
@keyframes stPulse { 50% { box-shadow: 0 0 0 14px rgba(212, 178, 111, .06), 0 0 40px rgba(212, 178, 111, .5); } }
.delay-note { display: none !important; }
.delay-note.show { display: flex !important; }
.uv-badge { display: flex; align-items: center; gap: 20px; padding: 22px 28px; border-radius: var(--r-lg); border: 1px solid rgba(154, 216, 245, .45); background: rgba(154, 216, 245, .08); opacity: 0; transform: translateY(12px); transition: all .6s var(--ease-out); }
.uv-badge.show { opacity: 1; transform: none; }
.uv-badge > svg.ic { width: 60px; height: 60px; color: var(--status-uvc); }
.uv-badge span { display: flex; flex-direction: column; font-size: var(--f-small); color: var(--text-secondary); }
.uv-badge strong { color: var(--status-uvc); font-size: var(--f-body); }

/* ---- SC-13 Pickup ---- */
.scr-pickup .z-visual { padding-top: 16px; }
.scr-pickup .z-interact { justify-content: flex-start; gap: 18px; }
.scr-pickup .h-title { font-size: calc(64px * var(--fs)); }

/* ---- SC-14 Result ---- */
.scr-result .z-visual { gap: 16px; }
.rating { align-items: center; text-align: center; padding: 24px 28px; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.rate { min-height: 140px; border-radius: var(--r-lg); border: 2px solid var(--border-subtle); display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: var(--f-small); text-align: center !important; background: var(--surface-2); }
.rate svg.ic { width: 60px; height: 60px; color: var(--text-secondary); }
.rate.on { border-color: var(--accent); background: rgba(212, 178, 111, .12); }
.rate.on svg.ic { color: var(--accent); }
.take { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.take-btn { min-height: 156px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border-strong); padding: 20px 24px; display: flex !important; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; text-align: start; }
.take-btn > svg.ic { width: 48px; height: 48px; color: var(--text-gold); }
.take-btn strong { font-size: var(--f-small); line-height: 1.25; }
.take-btn > span { font-size: var(--f-min); color: var(--text-muted); }
.take-btn.on { border-color: var(--status-success); }
.take-btn.on > svg.ic { color: var(--status-success); }
.take-btn:disabled { cursor: default; }
.countdown { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: var(--f-min); color: var(--text-muted); }
.countdown b { font-family: var(--font-mono); color: var(--text-primary); }

/* ---- SC-17 Maintenance ---- */
.maint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; padding: 0 100px; background: radial-gradient(800px 700px at 50% 45%, rgba(81, 83, 62, .6), var(--bg-deep) 75%); }
.maint-logo { cursor: default !important; }
.maint-logo img { width: 360px; height: auto; opacity: .9; }
#canvas .maint-logo:active { transform: none; }

/* =========================================================
   7. OVERLAYS
   ========================================================= */
#layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
#layer > * { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(5, 6, 3, .66); backdrop-filter: blur(6px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
/* Modal is anchored LOW so its actions fall inside the 1225–1283 mm comfort band */
.modal {
  position: absolute; inset-inline: var(--safe); bottom: 40px; max-height: 1500px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border-subtle); border-top: 5px solid var(--accent); border-radius: var(--r-xl);
  padding: 48px 44px 40px; display: flex; flex-direction: column; gap: 26px; box-shadow: var(--shadow-2); animation: sheetUp .32s var(--ease-out);
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } }
.modal.tone-warn { border-top-color: var(--status-warning); }
.modal.tone-error { border-top-color: var(--status-error); }
.modal.tone-info { border-top-color: var(--status-info); }
.m-close { position: absolute; top: 22px; inset-inline-end: 22px; width: 76px; height: 76px; border-radius: 50%; display: grid !important; place-items: center; background: var(--surface-3); }
.m-close svg.ic { width: 36px; height: 36px; }
.m-head { display: flex; align-items: center; gap: 24px; padding-inline-end: 90px; }
.m-head > div { display: flex; flex-direction: column; gap: 8px; }
.m-head h2 { font-size: var(--f-section); line-height: 1.25; }
.m-ic { width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-gold); background: rgba(212, 178, 111, .12); border: 1px solid var(--border-gold); }
.m-ic svg.ic { width: 46px; height: 46px; }
.m-code { display: inline-flex; align-items: center; gap: 10px; font-size: var(--f-min); font-weight: var(--w-strong); color: var(--text-gold); }
.tone-warn .m-code { color: var(--status-warning); } .tone-error .m-code { color: var(--status-error); } .tone-info .m-code { color: var(--status-info); }
.m-body { display: flex; flex-direction: column; gap: 16px; font-size: var(--f-body); color: var(--text-secondary); }
.m-body > p:first-child { color: var(--text-primary); }
.m-body .sub { display: flex; align-items: center; gap: 10px; }
.eta { display: flex; align-items: center; gap: 10px; font-size: var(--f-small); color: var(--text-muted); }
.ref { font-size: var(--f-small); color: var(--text-muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ref .mono { color: var(--text-primary); font-size: 1.15em; padding: 4px 14px; border-radius: 10px; background: var(--surface-3); }
.ref.big .mono { font-size: 1.6em; color: var(--text-gold); }
.m-actions { display: flex; flex-direction: column; gap: 16px; }
.m-actions .btn { width: 100%; min-height: var(--touch-primary); font-size: calc(38px * min(var(--fs), 1.25)); }
.m-actions .btn-primary { flex: none; }
.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alt { display: flex !important; align-items: center; gap: 16px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border-strong); text-align: start; min-height: 150px; }
.alt img { width: 96px; height: 128px; object-fit: cover; border-radius: var(--r-md); flex: none; background: var(--olive-800); }
.alt > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.alt strong { font-size: var(--f-small); color: var(--text-primary); }
.alt em { font-size: var(--f-min); color: var(--status-success); }
.mall-map { width: 100%; height: auto; }
.mm-floor { fill: var(--surface-1); stroke: var(--border-subtle); stroke-width: 2; }
.mm-shop { fill: var(--surface-3); }
.mm-shop.target { fill: rgba(212, 178, 111, .25); stroke: var(--accent); stroke-width: 3; }
.mm-path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-dasharray: 14 10; stroke-linecap: round; animation: dash 1s linear infinite; }
.mm-you { fill: var(--status-info); stroke: #fff; stroke-width: 4; }
.mall-map text { fill: var(--text-primary); font-size: 26px; font-family: var(--font-ar); }
.mm-label { fill: var(--text-gold) !important; font-weight: 600; }

/* Accessibility sheet (SC-15) */
.sheet {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 1640px; display: flex; flex-direction: column;
  background: var(--surface-1); border-top: 4px solid var(--accent); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-2); animation: sheetUp .32s var(--ease-out);
}
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 30px var(--safe) 18px; position: relative; }
.sheet header h2 { display: flex; align-items: center; gap: 16px; font-size: var(--f-section); }
.sheet header h2 svg.ic { color: var(--text-gold); }
.sheet header .m-close { position: static; }
.sh-body { padding: 0 var(--safe) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.sh-group { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border-subtle); }
.sh-label { display: flex; align-items: center; gap: 12px; font-size: var(--f-small); color: var(--text-secondary); }
.segs { display: flex; gap: 14px; }
.seg { min-height: 92px; min-width: 132px; padding: 0 26px; border-radius: var(--r-md); border: 2px solid var(--border-strong); background: var(--surface-2); display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; font-size: var(--f-small); }
.segs .seg { flex: 1; font-size: 36px; }
.seg.on { border-color: var(--accent); background: rgba(212, 178, 111, .14); color: var(--text-gold); }
.preview { font-size: var(--f-body); color: var(--text-primary); }
.vol { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vol .seg { min-width: 92px; }
.vol-bar { display: inline-flex; gap: 12px; padding: 0 12px; direction: ltr; }
.vol-bar .dm { width: 26px; height: 26px; }
.tog { min-height: 112px; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 0 26px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border-subtle); text-align: start; }
.tog > svg.ic { width: 44px; height: 44px; color: var(--text-gold); }
.tog > span { display: flex; flex-direction: column; }
.tog strong { font-size: var(--f-small); }
.tog em { font-size: var(--f-min); color: var(--text-muted); }
.sw { width: 92px; height: 52px; border-radius: 26px; background: var(--olive-600); position: relative; flex: none; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 6px; inset-inline-start: 6px; width: 40px; height: 40px; border-radius: 50%; background: var(--alabaster-100); transition: inset-inline-start .2s var(--ease-out); }
.tog.on { border-color: var(--border-gold); }
.tog.on .sw { background: var(--accent); }
.tog.on .sw::after { inset-inline-start: 46px; background: var(--olive-900); }
.sh-links { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.sh-links .btn { flex: 1 1 280px; }

.farewell { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; background: var(--bg-base); animation: fadeIn .4s; z-index: 40; }
.farewell h2 { font-size: var(--f-title); }
.farewell p { font-size: var(--f-body); color: var(--text-secondary); }

.toast {
  position: absolute; left: 50%; bottom: 330px; z-index: 35; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; max-width: 900px; padding: 20px 32px; border-radius: var(--r-pill);
  background: var(--surface-raised); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); font-size: var(--f-small); transition: all .3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg.ic { width: 36px; height: 36px; }
.toast.success svg.ic { color: var(--status-success); } .toast.warn svg.ic, .toast.error svg.ic { color: var(--status-warning); } .toast.info svg.ic { color: var(--status-info); }

/* Ergonomic overlay (simulator toggle) */
.ergo { display: none; position: absolute; inset: 0; z-index: 60; pointer-events: none; }
#canvasWrap.show-ergo .ergo { display: block; }
.ergo-line { position: absolute; left: 0; right: 0; border-top: 3px dashed; font-style: normal; }
.ergo-line span { position: absolute; inset-inline-end: 16px; top: -46px; font-size: 24px; padding: 4px 14px; border-radius: 10px; background: rgba(0, 0, 0, .75); font-family: var(--font-mono); direction: ltr; }
.l1600 { top: 754px; border-color: #F28B7F; color: #F28B7F; }
.l1300 { top: 1577px; border-color: #E9BE63; color: #E9BE63; }
.l1225 { top: 1783px; border-color: #8CCB9B; color: #8CCB9B; }

/* =========================================================
   8. OPERATOR MODE (SC-16) — dense, neutral, no brand gold
   ========================================================= */
.op { position: absolute; inset: 0; background: #16171A; color: #E8E8EA; font-size: 28px; line-height: 1.4; display: flex; flex-direction: column; padding: 40px; gap: 20px; overflow: hidden; }
.op .mono { font-family: var(--font-mono); }
.op h1 { font-size: 44px; font-weight: 600; }
.op-pin { align-items: center; justify-content: center; text-align: center; gap: 28px; }
.op-pin p { color: #A4A6AD; }
.op-pin .otp-box { background: #222327; border-color: #45474E; }
.op .key { background: #222327; border-color: #33353B; }
.op .key.fn { background: transparent; }
.op .msg { color: #E8E8EA; }
.op-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.op-head p { color: #A4A6AD; font-size: 24px; margin-top: 6px; }
.op-actions { display: flex; gap: 12px; }
.op-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; min-height: 76px; padding: 0 24px; border-radius: 12px; background: #26282D; border: 1px solid #3A3C43; color: #E8E8EA; font-size: 24px; }
.op-btn.primary { background: #E8E8EA; color: #16171A; border-color: #E8E8EA; font-weight: 600; }
.op-btn.sm { min-height: 72px; padding: 0 18px; font-size: 24px; }
.op-btn:disabled { opacity: .35; cursor: not-allowed; }
.op-ok { color: #7FD69A; }
.op-warn { color: #F5B851; }
.op-banner { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px; background: rgba(245, 184, 81, .12); color: #F5B851; font-size: 24px; }
.op-tabs { display: flex; gap: 8px; border-bottom: 1px solid #33353B; }
.op-tab { display: inline-flex !important; align-items: center; gap: 10px; min-height: 76px; padding: 0 26px; border-bottom: 4px solid transparent !important; color: #A4A6AD; font-size: 26px; }
.op-tab.on { color: #fff; border-bottom-color: #E8E8EA !important; }
.op-body { flex: 1; overflow-y: auto; min-height: 0; }
.op-table { width: 100%; border-collapse: collapse; font-size: 24px; }
.op-table th { text-align: start; color: #A4A6AD; font-weight: 500; padding: 10px 12px; border-bottom: 1px solid #33353B; }
.op-table td { padding: 12px; border-bottom: 1px solid #26282D; vertical-align: middle; }
.op-table td small { display: block; font-size: 24px; color: #F5B851; }
.op-table tr.st-low td:nth-child(4) { color: #F5B851; }
.op-table tr.st-empty td:nth-child(4), .op-table tr.st-disabled td:nth-child(4) { color: #F28B7F; }
.op-table tr.st-unused td { color: #6E7077; }
.op-table.mini td { padding: 8px 10px; font-size: 24px; }
.op-bar { display: inline-block; width: 140px; height: 12px; border-radius: 6px; background: #26282D; overflow: hidden; vertical-align: middle; margin-inline-end: 10px; }
.op-bar i { display: block; height: 100%; background: #9FA2AA; }
.st-low .op-bar i { background: #F5B851; } .st-empty .op-bar i, .st-disabled .op-bar i { background: #F28B7F; }
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.op-card { background: #1E1F23; border: 1px solid #2E3036; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.op-card h3 { font-size: 24px; color: #A4A6AD; font-weight: 500; }
.op-card:nth-child(2) { grid-column: 1 / -1; }
.op-card p { font-size: 24px; color: #A4A6AD; direction: ltr; text-align: left; }
.op-spark { width: 100%; height: 130px; }
.op-spark path { fill: none; stroke: #E8E8EA; stroke-width: 2.5; }
.op-spark .kpi { stroke: #F5B851; stroke-dasharray: 8 8; stroke-width: 2; }
.op-tests { display: flex; flex-direction: column; gap: 10px; }
.op-tests .op-btn { justify-content: flex-start; }
.op-tests .op-btn b { margin-inline-start: auto; }
.op .spin { border-color: rgba(232, 232, 234, .2); border-top-color: #E8E8EA; width: 28px; height: 28px; }
.op-log { display: flex; flex-direction: column; gap: 6px; font-size: 24px; }
.op-log li { display: flex; gap: 18px; padding: 10px 12px; border-radius: 10px; background: #1E1F23; }
.op-log li .mono { color: #6E7077; flex: none; }
.op-wizard { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; padding: 40px; z-index: 5; }
.op-wz-card { width: 100%; background: #1E1F23; border: 1px solid #3A3C43; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.op-wz-card header { display: flex; justify-content: space-between; align-items: center; }
.op-wz-card h2 { font-size: 36px; }
.op-wz-card header .mono { color: #A4A6AD; font-size: 24px; }
.op-wz-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.op-wz-steps li { text-align: center; font-size: 24px; padding: 10px 4px; border-radius: 8px; background: #26282D; color: #6E7077; }
.op-wz-steps li.done { color: #7FD69A; }
.op-wz-steps li.cur { background: #E8E8EA; color: #16171A; font-weight: 600; }
.op-wz-body { display: flex; flex-direction: column; gap: 18px; min-height: 260px; font-size: 28px; }
.op-checks { display: flex; flex-direction: column; gap: 12px; }
.op-checks li { display: flex; align-items: center; gap: 14px; font-size: 26px; }
.op-checks li.ok { color: #7FD69A; } .op-checks li.fail { color: #F28B7F; }
.op-wz-card footer { display: flex; align-items: center; gap: 16px; }
.op-wz-card footer small { color: #F5B851; font-size: 24px; }
.op-wz-card footer .op-btn { min-width: 180px; }

/* =========================================================
   9. GLOBAL MODES
   ========================================================= */
/* Low-reach mode: visual zone collapses, content sinks toward the action bar */
#canvas[data-reach="on"] .z-visual { flex: 0 0 auto; height: auto; max-height: 300px; padding-top: 24px; padding-bottom: 0; }
#canvas[data-reach="on"] .z-visual > .persona-wrap,
#canvas[data-reach="on"] .z-visual > .persona,
#canvas[data-reach="on"] .z-visual > .spotlight,
#canvas[data-reach="on"] .z-visual > .v-icon,
#canvas[data-reach="on"] .z-visual > .radar,
#canvas[data-reach="on"] .z-visual > .lead,
#canvas[data-reach="on"] .z-visual > .qr-panel,
#canvas[data-reach="on"] .z-visual > .kiosk-diagram,
#canvas[data-reach="on"] .hero-split .bottle-stage,
#canvas[data-reach="on"] .hero-split .desc,
#canvas[data-reach="on"] .logo-build { display: none; }
#canvas[data-reach="on"] .hero-split { grid-template-columns: 1fr; }
#canvas[data-reach="on"] .z-visual.banner { min-height: 220px; }
#canvas[data-reach="on"] .z-interact > :first-child { margin-top: auto; }
#canvas[data-reach="on"] .modal { max-height: 1100px; }
#canvas[data-reach="on"] .sheet { max-height: 1200px; }
#canvas[data-reach="on"] .scr::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, transparent, rgba(212, 178, 111, .5), transparent); }

/* Larger text: keep the visual zone from clipping titles */
#canvas[data-font="125"] .p-lg, #canvas[data-font="150"] .p-lg { width: 210px; height: 250px; border-radius: 105px 105px 24px 24px; }
#canvas[data-font="125"] .z-visual, #canvas[data-font="150"] .z-visual { gap: 12px; }
#canvas[data-font="150"] .p-sm { width: 110px; height: 110px; }
#canvas[data-font="150"] .spotlight { height: 340px; }
#canvas[data-font="150"] .spot { grid-template-columns: 240px 1fr; }
#canvas[data-font="150"] .spot img { width: 240px; height: 320px; }
#canvas[data-font="150"] .hero-split { grid-template-columns: 300px 1fr; }
#canvas[data-font="150"] .bottle-stage { width: 300px; height: 420px; }
#canvas[data-font="150"] .opts, #canvas[data-font="150"] .lang-pair { grid-template-columns: 1fr; }
#canvas[data-font="150"] .path svg.ic { width: 52px; height: 52px; padding: 8px; }
#canvas[data-font="150"] .scr-home .row-head, #canvas[data-font="150"] .scr-home .minis { display: none; }
#canvas[data-font="125"] .p-sm { width: 120px; height: 120px; }
#canvas[data-font="150"] .opts.n5 .opt:last-child { grid-column: auto; }
#canvas[data-font="150"] .minis { grid-template-columns: repeat(2, 1fr); }
#canvas[data-font="150"] .minis .mini:nth-child(3) { display: none; }
#canvas[data-font="150"] .rec-card { grid-template-columns: 160px 1fr; }
#canvas[data-font="150"] .rec-card > img { width: 160px; height: 210px; }
#canvas[data-font="150"] .radar { height: 360px; }
#canvas[data-font="150"] .stages { grid-template-columns: repeat(5, 1fr); }
#canvas[data-font="150"] .stage span { font-size: 24px; }
#canvas[data-font="150"] .alt-row { grid-template-columns: 1fr; }

/* Reduced motion (SC-15 + OS preference) */
#canvas[data-motion="reduced"] *, #canvas[data-motion="reduced"] *::before, #canvas[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }
#canvas[data-motion="reduced"] .spin { border-top-color: var(--olive-400); }
@media (prefers-reduced-motion: reduce) {
  #canvas *, #canvas *::before, #canvas *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared-element bottle transition (View Transitions API) — exactly one named element at a time */
#canvas img.vt-src { view-transition-name: bottle; }
#canvas:not(:has(img.vt-src)) img.vt-bottle { view-transition-name: bottle; }
::view-transition-group(bottle) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }

/* Catalog density (fits 2×2 grid + filters + pager without scrolling at 100%) */
.scr-catalog .z-interact { gap: 16px; padding-top: 20px; padding-bottom: 40px; }

/* Attract fallback (cinematic loop asset not yet delivered): themed bottle photo, darker */
.slide.fallback img { object-position: 50% 45%; filter: brightness(.72) saturate(.9); }


/* ---- Review pass 2 ---- */
.dock-btn span { white-space: nowrap; }
.steps { gap: 22px; }
.status-logo img { height: 68px; }
.kiosk-diagram.compact { height: 440px; width: 140px; }
.kiosk-diagram.compact .kd-part:not(.screen) text { display: none; }
.pay-guide { grid-template-columns: 150px 1fr; }
.pgrid .pcard-reason { display: none; }
.scr-dispense .z-interact { justify-content: center; }
/* Missing thumbnail → branded symbol instead of a broken-image glyph */
.note.img-missing img, .mini.img-missing img, .sim-main.img-missing img, .rec-card.img-missing > img {
  content: url('assets/branding/tola_symbol_sage_gold.png'); object-fit: contain; padding: 14%; background: linear-gradient(160deg, var(--olive-600), var(--olive-800)); opacity: .9;
}
.mini img { object-position: 50% 38%; }
.minis.two .mini { display: grid !important; grid-template-columns: 120px 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 18px; padding: 10px; background: var(--surface-1); border: 1px solid var(--border-subtle); }
.minis.two .mini img { grid-row: 1 / -1; width: 120px; height: 160px; }
.minis.two .mini strong { grid-row: 2; align-self: end; } .minis.two .mini span { grid-row: 3; }
/* Dock labels are utility captions: fixed at the 24 px floor so 5 items always fit (documented exception to font scaling) */
.dock-btn { font-size: var(--t-min) !important; }
#canvas[data-font="125"] .pcard { grid-template-columns: 150px 1fr; min-height: 200px; }
#canvas[data-font="125"] .scr-quiz .z-visual > .kicker, #canvas[data-font="150"] .scr-quiz .z-visual > .kicker { display: none; }

.slide.fallback img { filter: blur(22px) brightness(.55) saturate(1.1); transform: scale(1.2); animation: none !important; }

/* ---- Review pass 3 · no-scroll layouts at 100% ---- */
/* Catalog: tighter caption leading + slimmer chrome so filters + 2×2 grid + pager fit in the interaction zone */
.scr-catalog .z-interact { gap: 12px; padding-top: 12px; }
.scr-catalog .search-field { min-height: 80px; }
.scr-catalog .pg-btn { width: 72px; height: 72px; }
.pgrid .pcard-brand, .pgrid .pcard-family { line-height: 1.35; }
.pgrid .pcard-body { padding: 10px 18px; gap: 2px; }
.pgrid .badge { padding: 2px 14px; }
.pgrid .badge svg.ic { width: 28px; height: 28px; }
.pgrid .pcard { min-height: 180px; }
/* SC-07: best match emphasised, runners-up compact (one reason, no meta line) */
.sim-list { display: flex; flex-direction: column; gap: 14px; }
.sim-card.top { border-color: var(--border-gold); }
.reasons i { line-height: 1.35; }
.sim-card.compact { padding: 12px 16px; }
.sim-card.compact .sim-main img { width: 72px; height: 96px; }
.sim-card.compact .sim-main em { display: none; }
.sim-card.compact .sim-main > span { gap: 4px; }
/* Low-reach: the visual band keeps the title + one supporting line */
#canvas[data-reach="on"] .z-visual { max-height: 340px; }
/* Secondary reading text → --f-small (28 px · spec §8.2 secondary 26–30); --f-min (24 px) only for labels/captions */
.path span, .mini span, .pcard-family, .sim-main em, .reasons i, .take-btn > span, .countdown, .policy,
.metric > span, .alt em, .tog em, .btn-ghost.sm, .btn.sm { font-size: var(--f-small); }
.pgrid .pcard { min-height: 196px; }

