/* =============================================================================
   Live queue tracker (site/queue.html) · Agent C · builds on assets/css/site.css
   ============================================================================= */
.xq-hero { --xq-accent: var(--brass); }
.xq-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.xq-hero-txt .kick .live-dot { margin-right: 2px; }
.xq-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; min-height: 36px; }
.xq-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 99px; font-size: .84rem; font-weight: 650; background: var(--card); border: 1px solid var(--line2); }
.xq-pill i { color: var(--brass-text); }
.xq-pill.live { color: var(--st-in); border-color: color-mix(in srgb, var(--st-in) 35%, transparent); background: color-mix(in srgb, var(--st-in) 9%, var(--card)); }
.xq-pill.soon { color: var(--st-wait); }
.xq-pill.off { color: var(--mut); }
.xq-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: cwLive 2s ease-out infinite; box-shadow: 0 0 0 0 currentColor; }
.xq-clock { font-family: var(--mono); font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.xq-clock small { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brass-text); margin-left: 4px; }

/* ---- finder ---- */
.xq-find-card { padding: clamp(20px, 2.6vw, 30px); }
.xq-find { display: grid; gap: 16px; }
.xq-find-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.xq-find-h { font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.xq-find-row { display: flex; gap: 10px; }
.xq-find-row input { flex: 1; min-width: 0; font-family: var(--mono); letter-spacing: .03em; }
.xq-find-row .btn { min-height: 50px; flex: none; }
.xq-find-msg { font-size: .88rem; line-height: 1.5; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.xq-find-msg a { color: var(--brass-text); font-weight: 650; }
.xq-find-foot { display: grid; gap: 10px; justify-items: start; }
.xq-find-foot .fine i { color: var(--teal); }

/* ---- result shell ---- */
.xq-mine-sec { position: relative; padding: 8px 0 clamp(48px, 6vw, 80px); }
.xq-result:focus { outline: none; }
.xq-idle { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(20px, 3vw, 34px); border-radius: var(--r-xl); border: 1px dashed var(--line2); background: color-mix(in srgb, var(--card) 55%, transparent); }
.xq-idle h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.xq-idle p { color: var(--mut); margin-top: 8px; max-width: 620px; line-height: 1.6; }
.xq-idle-art svg { width: 100%; height: auto; display: block; }
.xq-idle-dot { transform-box: view-box; transform-origin: 50% 50%; animation: xqIdle 9s var(--ease) infinite; animation-delay: calc(var(--i) * -1.8s); }
.xq-idle-dot circle { fill: var(--teal); opacity: .55; }
.xq-idle-dot:nth-child(odd) circle { fill: var(--brass); opacity: .8; }
@keyframes xqIdle { 0% { transform: rotate(-200deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: rotate(0deg); opacity: 0; } }

/* family / multiple appointments */
.xq-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.xq-pick-b { border: 1px solid var(--line2); background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: .84rem; font-weight: 600; color: var(--mut); }
.xq-pick-b[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ticket header */
.xq-ticket { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 20px; padding: 20px 22px; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.xq-ticket::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--doc); }
.xq-ticket::after { content: ''; position: absolute; right: 168px; top: -10px; bottom: -10px; border-left: 2px dashed var(--line2); }
.xq-mono { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--doc) 85%, #fff), var(--doc) 60%, color-mix(in srgb, var(--doc) 60%, #0b1830)); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb, var(--brass) 70%, transparent); }
.xq-mono.lg { width: 58px; height: 58px; font-size: 1.6rem; }
.xq-t-kick { font-family: var(--mono); font-size: .74rem; color: var(--brass-text); letter-spacing: .06em; }
.xq-t-main h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin-top: 2px; }
.xq-t-main p { color: var(--mut); font-size: .88rem; margin-top: 2px; }
.xq-t-when { display: grid; text-align: right; line-height: 1.15; padding-right: 12px; }
.xq-t-when b { font-weight: 650; }
.xq-t-when span { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; }
.xq-state { grid-column: 2 / 3; justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; font-size: .76rem; font-weight: 700;
  background: color-mix(in srgb, var(--st-off) 13%, transparent); color: var(--st-off); }
.xq-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.xq-state.s-waiting { color: var(--st-wait); background: color-mix(in srgb, var(--st-wait) 13%, transparent); }
.xq-state.s-turn { color: var(--st-in); background: color-mix(in srgb, var(--st-in) 14%, transparent); }
.xq-state.s-booked, .xq-state.s-future { color: var(--teal); background: var(--teal-soft); }
.xq-state.s-done { color: var(--st-free); background: color-mix(in srgb, var(--st-free) 13%, transparent); }
.xq-change { grid-column: 3 / 5; justify-self: end; border: 0; background: none; color: var(--brass-text); font-weight: 650; font-size: .84rem; display: inline-flex; gap: 6px; align-items: center; padding: 6px 4px; }
.xq-change:hover { text-decoration: underline; text-underline-offset: 3px; }

.xq-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 16px; border-radius: 14px; font-size: .9rem; line-height: 1.5; background: color-mix(in srgb, var(--brass) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--brass) 28%, transparent); }
.xq-banner i { color: var(--brass-text); margin-top: 2px; }

.xq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; margin-top: 20px; align-items: start; }
.xq-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-sm); }
.xq-side { display: grid; gap: 16px; min-width: 0; }
.xq-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.xq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); color: var(--ink);
  font-weight: 650; font-size: .94rem; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s; }
.xq-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.xq-btn.primary { background: var(--brass); color: #14100a; border-color: transparent; box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--brass) 80%, transparent); }
.xq-btn.ghost { background: transparent; }
.xq-btn[disabled] { opacity: .5; pointer-events: none; }
.xq-fine { font-size: .78rem; color: var(--mut); line-height: 1.5; }

/* ---- the orbit ---- */
.xq-orbit-card { --xq-accent: var(--brass); position: relative; overflow: hidden; padding-bottom: 18px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--teal) 8%, var(--card)), var(--card) 60%); }
.xq-orbit { width: min(100%, 400px); margin: 0 auto; aspect-ratio: 1; }
.xq-orbit svg { width: 100%; height: 100%; display: block; overflow: visible; }
.xq-ring-bg { fill: none; stroke: var(--line2); stroke-width: 2; }
.xq-ring-dash { fill: none; stroke: var(--line2); stroke-width: 1; stroke-dasharray: 2 9; transform-box: view-box; transform-origin: 50% 50%; animation: xqSpin 80s linear infinite; }
@keyframes xqSpin { to { transform: rotate(360deg); } }
.xq-arc { fill: none; stroke: var(--brass); stroke-width: 6; stroke-linecap: round; transform-box: view-box; transform-origin: 50% 50%;
  transition: stroke-dasharray 1.1s var(--ease), transform 1.1s var(--ease); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brass) 55%, transparent)); }
.xq-door rect { fill: var(--ink); }
.xq-door path { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; }
.xq-door-glow { fill: color-mix(in srgb, var(--teal) 22%, transparent); }
.xq-orbit svg.turn .xq-door-glow { fill: color-mix(in srgb, var(--brass) 40%, transparent); animation: xqBeat 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes xqBeat { 50% { transform: scale(1.25); opacity: .6; } }
.xq-dot { transform-box: view-box; transform-origin: 50% 50%; transition: transform 1.1s var(--spring), opacity .7s ease; }
.xq-dot .xq-d { fill: color-mix(in srgb, var(--teal) 22%, var(--card)); stroke: var(--teal); stroke-width: 1.5; }
.xq-dot text { font-family: var(--mono); font-size: 10px; font-weight: 600; fill: var(--ink); }
.xq-dot .xq-pulse { fill: none; stroke: none; }
.xq-dot.in .xq-d { fill: var(--teal); stroke: var(--teal); }
.xq-dot.in text { fill: #fff; }
.xq-dot.me .xq-d { fill: var(--brass); stroke: color-mix(in srgb, var(--brass) 70%, #000); stroke-width: 2; r: 17px; }
.xq-dot.me text { fill: #14100a; font-size: 11px; font-weight: 700; }
.xq-dot.me .xq-pulse { stroke: var(--brass); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: xqPulse 2.2s ease-out infinite; }
@keyframes xqPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.xq-dot.me.ghost .xq-d { fill: var(--card); stroke: var(--brass); stroke-dasharray: 4 3; }
.xq-dot.me.ghost text { fill: var(--brass-text); }
.xq-c-big { font-family: var(--serif); font-size: 64px; fill: var(--ink); dominant-baseline: middle; }
.xq-orbit svg.turn .xq-c-big { font-size: 40px; fill: var(--brass-text); font-style: italic; }
.xq-c-sm { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--mut); letter-spacing: .04em; }
.xq-c-xs { font-family: var(--mono); font-size: 14px; font-weight: 600; fill: var(--brass-text); }
.xq-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .78rem; color: var(--mut); margin-top: 6px; }
.xq-legend span { display: inline-flex; align-items: center; gap: 7px; }
.xq-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lg-door { background: var(--ink); border-radius: 4px !important; }
.lg-you { background: var(--brass); }
.lg-other { background: color-mix(in srgb, var(--teal) 30%, var(--card)); border: 1.5px solid var(--teal); }

/* ---- stats ---- */
.xq-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.xq-stat { padding: 16px 16px 18px; border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.xq-stat:first-child { border-left: 0; }
.xq-stat small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.xq-stat b { font-family: var(--mono); font-size: clamp(1.1rem, 1.8vw, 1.55rem); font-weight: 600; line-height: 1.1; white-space: nowrap; letter-spacing: -.02em; }
.xq-stat.hl { background: color-mix(in srgb, var(--brass) 12%, var(--card)); }
.xq-stat.hl b { color: var(--brass-text); }

/* ---- check-in ---- */
.xq-ci { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 10%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--teal) 25%, transparent); }
.xq-ci h4, .xq-here h4, .xq-turn h4 { font-size: 1.05rem; font-weight: 700; }
.xq-ci p, .xq-here p, .xq-turn p { color: var(--mut); font-size: .9rem; margin-top: 3px; line-height: 1.5; }
.xq-ci-btn { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.xq-ci.off { background: var(--card); border-color: var(--line); }
.xq-ci.confirm { display: block; border-color: color-mix(in srgb, var(--brass) 45%, transparent); background: color-mix(in srgb, var(--brass) 8%, var(--card)); animation: xqIn .45s var(--ease); }
.xq-ci.confirm h4 i { color: var(--brass-text); }
.xq-ci.confirm .xq-fine { margin-top: 10px; }
@keyframes xqIn { from { opacity: 0; transform: translateY(8px); } }
.xq-here, .xq-turn { display: flex; gap: 16px; align-items: flex-start; }
.xq-here > i { font-size: 1.6rem; color: var(--brass-text); line-height: 1; margin-top: 2px; }
.xq-here.next { border-color: color-mix(in srgb, var(--st-wait) 40%, transparent); background: color-mix(in srgb, var(--st-wait) 8%, var(--card)); }
.xq-here.next > i { color: var(--st-wait); animation: xqRing 2.4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes xqRing { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.xq-turn { border-color: color-mix(in srgb, var(--brass) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--brass) 18%, var(--card)), var(--card)); }
.xq-turn-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: #14100a; font-size: 1.4rem; flex: none; animation: xqBeat 1.6s ease-in-out infinite; }

/* ---- leave-home planner ---- */
.xq-plan { display: grid; gap: 16px; }
.xq-plan-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xq-plan-top small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.xq-leave { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; margin-top: 6px; letter-spacing: -.01em; }
.xq-cd { display: grid; justify-items: end; text-align: right; line-height: 1.15; }
.xq-cd span { font-size: .8rem; color: var(--mut); }
.xq-cd b { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; color: var(--teal); }
.xq-cd.now b, .xq-cd .go { color: var(--st-wait); }
.xq-cd.now b { font-size: 1.4rem; animation: xqBlink 1.6s ease-in-out infinite; }
@keyframes xqBlink { 50% { opacity: .45; } }
.xq-route { position: relative; height: 40px; margin: 2px 18px 0; }
.xq-r-line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line2) 0 8px, transparent 8px 14px); }
.xq-r-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--brass)); transition: width 1s var(--ease); }
.xq-r-car { position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 1rem;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); transition: left 1s var(--ease); z-index: 2; }
.xq-r-pt { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line2); color: var(--mut); font-size: .9rem; }
.xq-r-pt { z-index: 3; } .xq-r-pt.home { left: -18px; } .xq-r-pt.clinic { right: -18px; color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.xq-r-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.xq-r-times li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.xq-r-times li:nth-child(2) { text-align: center; } .xq-r-times li:nth-child(3) { text-align: right; }
.xq-r-times small { font-size: .72rem; color: var(--mut); font-weight: 600; }
.xq-r-times b { font-family: var(--mono); font-size: .98rem; font-weight: 600; }
.xq-range { display: grid; gap: 10px; }
.xq-range span { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; font-weight: 650; color: var(--mut); }
.xq-range output { font-family: var(--mono); color: var(--ink); }
.xq-range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.xq-range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--brass)); }
.xq-range input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--brass)); }
.xq-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--card); border: 3px solid var(--brass); box-shadow: var(--shadow-sm); }
.xq-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 3px solid var(--brass); }
.xq-range input[type="range"]:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 8px; }

/* ---- future / done ---- */
.xq-day { display: grid; gap: 16px; align-content: start; }
.xq-day-n { display: flex; align-items: baseline; gap: 10px; }
.xq-day-n b { font-family: var(--serif); font-weight: 400; font-size: 4.4rem; line-height: .9; color: var(--brass-text); }
.xq-day-n span { color: var(--mut); font-weight: 600; }
.xq-day p { color: var(--mut); line-height: 1.6; }
.xq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xq-steps li { display: flex; gap: 10px; align-items: center; font-size: .9rem; font-weight: 600; }
.xq-steps i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.xq-done { display: flex; gap: 20px; align-items: flex-start; margin-top: 20px; }
.xq-done-ico { font-size: 2.6rem; color: var(--st-free); line-height: 1; }
.xq-done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.xq-done p { color: var(--mut); margin-top: 6px; }

/* ---- public board ---- */
.xq-board { display: grid; gap: 18px; }
.xq-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xq-bd { position: relative; display: grid; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.xq-bd::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--doc), color-mix(in srgb, var(--doc) 20%, transparent)); }
.xq-bd header { display: flex; align-items: center; gap: 12px; }
.xq-bd h3 { font-size: 1.02rem; }
.xq-bd header small { color: var(--mut); font-size: .8rem; }
.xq-bd-now { display: grid; justify-items: center; text-align: center; padding: 14px 10px 16px; border-radius: 18px; background: var(--navy); color: #eef2f8; position: relative; overflow: hidden; }
html[data-part="night"] .xq-bd-now { background: #050c19; border: 1px solid var(--line); }
.xq-bd-now::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px); pointer-events: none; }
.xq-bd-now small, .xq-bd-next small { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #97a3b8; }
.xq-bd-next small { color: var(--mut); }
.xq-flip { perspective: 400px; margin: 4px 0 2px; }
.xq-flip-n { display: inline-block; font-family: var(--mono); font-size: 3.4rem; font-weight: 600; line-height: 1.05; color: #f3e3bd; text-shadow: 0 0 22px color-mix(in srgb, var(--brass) 55%, transparent); }
.xq-flip.go .xq-flip-n { animation: xqFlip .8s var(--ease); }
@keyframes xqFlip { 0% { transform: rotateX(90deg); opacity: 0; } 60% { transform: rotateX(-12deg); opacity: 1; } 100% { transform: none; } }
.xq-bd-state { font-size: .84rem; color: #c2cad8; }
.xq-bd.busy .xq-bd-state::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4fd1c5; margin-right: 7px; vertical-align: 1px; animation: cwLive 2s infinite; }
.xq-bd-next { display: grid; gap: 8px; }
.xq-bd-tokens { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; }
.xq-tk { font-family: var(--mono); font-size: .9rem; font-weight: 600; padding: 6px 11px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.xq-tk.up { background: color-mix(in srgb, var(--brass) 16%, var(--card)); border-color: color-mix(in srgb, var(--brass) 45%, transparent); color: var(--brass-text); }
.xq-tk.none { font-family: var(--sans); font-weight: 500; color: var(--mut); background: transparent; border-style: dashed; }
.xq-tk.more { color: var(--mut); }
.xq-bd-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--mut); padding-top: 12px; border-top: 1px dashed var(--line2); }
.xq-bd-foot b { color: var(--ink); font-family: var(--mono); }

/* ---- how it works ---- */
.xq-how-h { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 26px; }
.xq-how-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.xq-how-list li { position: relative; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.xq-how-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass-text); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 12px; }
.xq-how-list b { display: block; font-size: 1rem; }
.xq-how-list p { font-size: .88rem; color: var(--mut); margin-top: 6px; line-height: 1.55; }
.xq-how-fine { margin-top: 20px; }

/* ---- night: glow ---- */
html[data-part="night"] .xq-orbit-card { background: radial-gradient(120% 90% at 50% 0%, rgba(79, 209, 197, .07), var(--card) 60%); }
html[data-part="night"] .xq-door rect { fill: #f3e3bd; }
html[data-part="night"] .xq-door path { stroke: #0f1d36; }
html[data-part="evening"] .xq-orbit-card { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 170, 90, .12), var(--card) 60%); }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .xq-hero-in { grid-template-columns: 1fr; align-items: start; }
  .xq-grid { grid-template-columns: 1fr; }
  .xq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xq-how-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .xq-ticket { grid-template-columns: auto minmax(0, 1fr); padding: 18px 18px 16px 20px; }
  .xq-ticket::after { display: none; }
  .xq-t-when { grid-column: 1 / -1; grid-row: auto; text-align: left; display: flex; align-items: baseline; gap: 10px; padding: 10px 0 0; border-top: 1px dashed var(--line2); }
  .xq-t-when span { font-size: 1.15rem; }
  .xq-state { grid-column: 1 / -1; }
  .xq-change { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
  .xq-t-main h3 { font-size: 1.45rem; }
  .xq-stats { grid-template-columns: 1fr 1fr; }
  .xq-stat:nth-child(3) { border-left: 0; }
  .xq-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .xq-cards { grid-template-columns: 1fr; }
  .xq-how-list { grid-template-columns: 1fr; }
  .xq-idle { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .xq-idle-art { width: 150px; }
  .xq-find-row .btn { padding: 0 16px; }
  .xq-r-times b { font-size: .86rem; }
  .xq-r-times li { padding: 8px 8px; }
  .xq-c-big { font-size: 58px; }
}
@media (max-width: 380px) {
  .xq-find-h { font-size: 1.45rem; }
  .xq-find-top .seg button { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .xq-ring-dash, .xq-idle-dot, .xq-dot.me .xq-pulse, .xq-orbit svg.turn .xq-door-glow, .xq-turn-ico, .xq-here.next > i, .xq-cd.now b { animation: none !important; }
  .xq-idle-dot { transform: rotate(calc(var(--i) * -30deg)); }
}

/* ---- the line (list) ---- */
.xq-line h4 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); display: flex; gap: 8px; align-items: center; }
.xq-line h4 i { color: var(--teal); font-size: 1rem; }
.xq-line ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.xq-line ol::before { content: ''; position: absolute; left: 22px; top: 18px; bottom: 18px; width: 2px; background: repeating-linear-gradient(180deg, var(--line2) 0 4px, transparent 4px 8px); }
.xq-line li { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: .9rem; color: var(--mut); }
.xq-line-tk { position: relative; z-index: 1; width: 46px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: .9rem; color: var(--ink);
  background: var(--card); border: 1.5px solid color-mix(in srgb, var(--teal) 45%, transparent); flex: none; }
.xq-line li.in .xq-line-tk { background: var(--teal); border-color: var(--teal); color: #fff; }
.xq-line li.me .xq-line-tk { background: var(--brass); border-color: var(--brass); color: #14100a; box-shadow: 0 0 0 4px var(--brass-soft); }
.xq-line li.me { color: var(--ink); }
.xq-line li.me b { color: var(--brass-text); }
.xq-line li.ghost .xq-line-tk { background: var(--card); border: 1.5px dashed var(--brass); color: var(--brass-text); box-shadow: none; }

/* =============================================================================
   Wave 2 · 18 doctors · medical sci-fi (glass, HUD micro-labels, scan lines)
   ============================================================================= */
.xq-hud { display: block; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.xq-hero { overflow: hidden; }
.xq-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 75%); }
.xq-hero-in { position: relative; z-index: 1; }
.xq-find-card { position: relative; overflow: hidden; }
.xq-find-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brass) 70%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--teal) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.xq-find-card::after { content: 'QUEUE·LINK / SECURE'; position: absolute; right: 22px; top: 14px; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; color: var(--teal); opacity: .8; }
.xq-hero-hud { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.xq-hero-hud span { display: inline-flex; align-items: center; gap: 6px; }
.xq-hero-hud i { color: var(--teal); font-size: .8rem; }

/* HUD summary bar */
.xq-hudbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); position: relative; }
.xq-hudbar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--teal) 12%, transparent), transparent); animation: xqSweep 7s linear infinite; }
@keyframes xqSweep { to { left: 110%; } }
.xq-hc { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 12px; padding: 14px 18px; border-left: 1px solid var(--line); }
.xq-hc:first-child { border-left: 0; }
.xq-hc i { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 1.05rem; }
.xq-hc b { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; line-height: 1.05; }
.xq-hc small { font-size: .74rem; color: var(--mut); font-weight: 600; }

/* speciality filter */
.xq-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.xq-fchip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--ink); font-size: .84rem; font-weight: 600; white-space: nowrap; transition: all .2s var(--ease); }
.xq-fchip i { color: var(--dh, var(--teal)); }
.xq-fchip b { font-family: var(--mono); font-weight: 600; color: var(--brass-text); }
.xq-fchip:hover { border-color: var(--dh, var(--teal)); }
.xq-fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.xq-fchip[aria-pressed="true"] i, .xq-fchip[aria-pressed="true"] b { color: inherit; }

/* compact doctor cards */
.xq-bd { gap: 12px; padding: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.xq-bd::before { height: 3px; background: linear-gradient(90deg, var(--dh), color-mix(in srgb, var(--dh) 10%, transparent)); }
.xq-bd:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--dh) 40%, var(--line)); }
.xq-bd header { align-items: flex-start; gap: 11px; }
.xq-bd-id { min-width: 0; }
.xq-bd-id .xq-hud { color: var(--dh); font-size: .56rem; }
.xq-bd h3 { font-size: .96rem; margin-top: 2px; }
.xq-bd header small:not(.xq-hud) { font-size: .76rem; }
.xq-dico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1rem;
  background: linear-gradient(140deg, var(--dh), color-mix(in srgb, var(--dh) 55%, #0b1830)); box-shadow: 0 8px 18px -10px var(--dh), inset 0 0 0 1px rgba(255, 255, 255, .22); }
.xq-bd-now { padding: 10px 8px 12px; border-radius: 16px; background: linear-gradient(160deg, #0b1830, #10264a); }
.xq-bd-now::before { content: ''; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(79, 209, 197, .14), transparent); animation: xqScan 4.5s linear infinite; pointer-events: none; }
@keyframes xqScan { to { top: 110%; } }
.xq-bd.busy .xq-bd-now { box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .3), 0 0 24px -12px #4fd1c5; }
.xq-flip-n { font-size: 2.6rem; }
.xq-bd-state { font-size: .78rem; }
.xq-tk { font-size: .82rem; padding: 4px 9px; }
.xq-bd-tokens { min-height: 30px; }
.xq-bd-foot { font-size: .74rem; padding-top: 10px; }

/* off today + closed */
.xq-off { margin-top: 8px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px dashed var(--line2); background: color-mix(in srgb, var(--card) 55%, transparent); }
.xq-off-h { font-size: 1rem; display: grid; gap: 4px; margin-bottom: 12px; }
.xq-off-h .xq-hud { color: var(--mut); }
.xq-off-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 8px; }
.xq-off-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.xq-off-list li > i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--dh); background: color-mix(in srgb, var(--dh) 12%, transparent); }
.xq-off-list span { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.xq-off-list b { font-size: .88rem; }
.xq-off-list small { font-size: .74rem; color: var(--mut); }
.xq-off-book { flex: none; font-size: .78rem; font-weight: 650; color: var(--brass-text); text-decoration: none; white-space: nowrap; }
.xq-off-book:hover { text-decoration: underline; }
.xq-closed { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.xq-closed > i { font-size: 2rem; color: var(--brass-text); }
.xq-closed h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.xq-closed p { color: var(--mut); margin-top: 4px; }

/* video appointment */
.xq-video { display: flex; gap: 20px; align-items: flex-start; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--teal) 14%, var(--card)), var(--card) 60%); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); }
.xq-video h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin-top: 4px; }
.xq-video p { color: var(--mut); margin-top: 6px; line-height: 1.55; }
.xq-video .xq-video-when { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.xq-video-ico { position: relative; width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(140deg, var(--teal), #0b1830); }
.xq-video-ico span { position: absolute; inset: -6px; border-radius: 24px; border: 1.5px solid var(--teal); opacity: 0; }
.xq-video.open .xq-video-ico span { animation: xqPulse 2s ease-out infinite; }
.xq-done-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 650; color: var(--st-free); }
.xq-vtips h4 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.xq-vtips h4 i { color: var(--teal); font-size: 1rem; }
.xq-ci p a, .xq-steps a { color: var(--brass-text); font-weight: 650; }

/* glass + glow on the result cards */
.xq-card, .xq-ticket, .xq-stats { background: color-mix(in srgb, var(--card) 90%, transparent); }
html[data-part="night"] .xq-bd-now { background: linear-gradient(160deg, #050c19, #0a1730); }
html[data-part="night"] .xq-hudbar { background: rgba(9, 19, 38, .7); }
html[data-part="night"] .xq-dico, html[data-part="night"] .xq-video-ico { box-shadow: 0 0 22px -6px var(--dh, var(--teal)); }

@media (max-width: 1180px) { .xq-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .xq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xq-hudbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } .xq-hc:nth-child(4) { border-left: 0; } .xq-hc:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 680px) {
  .xq-cards { grid-template-columns: 1fr; }
  .xq-hudbar { grid-template-columns: 1fr 1fr; }
  .xq-hc { padding: 12px 14px; border-left: 0 !important; border-top: 1px solid var(--line); }
  .xq-hc:nth-child(-n+2) { border-top: 0; }
  .xq-hc:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .xq-hc:last-child { grid-column: 1 / -1; }
  .xq-video { flex-direction: column; }
  .xq-find-card::after { display: none; }
  .xq-off-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .xq-hudbar::after, .xq-bd-now::before, .xq-video.open .xq-video-ico span { animation: none !important; display: none; }
  .xq-bd:hover { transform: none; }
}
.xq-state.s-video { color: var(--teal); background: var(--teal-soft); }
