/* Hireanex marketing kit: the five scripted demos. Requires look.css.
   Every demo root is .hxd and a container-query container, so a demo adapts
   to the box a page gives it, not to the viewport. Dark rooms set .dark on
   their own root. */

.hxd { position: relative; container-type: inline-size; width: 100%; font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.4; color: var(--foreground); }
.hxd *, .hxd *::before, .hxd *::after { box-sizing: border-box; }
.hxd button { font: inherit; }
.hxd video { object-fit: cover; background: #000; }
.hxd [hidden] { display: none !important; }

/* The caption + replay bar under every demo (hide with {chrome:false}). */
.hxd-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.625rem; min-height: 2rem; color: var(--muted-foreground); font-size: 0.8125rem; }
/* The step dots and the caption sit in two columns, so a long caption wraps beside the dots, not under them. */
.hxd-bar__cap { flex: 1; min-width: 0; }
.hxd-bar > .hxd-bar__cap { display: flex; align-items: flex-start; gap: 0.5rem; }
.hxd-bar__cap b { color: var(--foreground); font-weight: 600; }
.hxd-bar__steps { display: inline-flex; flex-shrink: 0; gap: 4px; margin-top: 0.5rem; }
.hxd-bar__steps i { width: 14px; height: 3px; border-radius: 2px; background: var(--border); transition: background-color 200ms; }
.hxd-bar__steps i.is-done { background: var(--foreground); }
.hxd-bar__steps i.is-now { background: var(--brand); }
.hxd-bar .hx-btn { color: var(--foreground); }
.dark .hxd-bar { color: var(--muted-foreground); }
/* a phone-width demo: the steps and Replay share a row and the caption takes the full width under them, so it
   reads in two or three lines instead of a column a few words wide; it keeps three lines' height, so a caption that
   changes while the script plays moves nothing under the demo */
@container (max-width: 479px) {
  .hxd-bar { flex-wrap: wrap; row-gap: 0.25rem; align-items: center; }
  .hxd-bar > .hxd-bar__cap { display: contents; }
  .hxd-bar__steps { order: 1; flex: 1; margin-top: 0; align-self: center; }
  .hxd-bar .hx-btn { order: 2; align-self: center; }
  .hxd-bar__cap .hxd-bar__cap { order: 3; flex: 0 0 100%; min-height: 4.2em; }
}

/* Scripted "pointer": shows where the script clicks during autoplay. */
.hxd-ghost { position: absolute; z-index: 5; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in oklch, var(--brand) 45%, transparent); box-shadow: 0 0 0 2px var(--brand); pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.6); transition: opacity 180ms, transform 180ms var(--ease-out-quart), left 320ms var(--ease-out-quart), top 320ms var(--ease-out-quart); }
.hxd-ghost.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Scrolling rows (controls, tabs, ask chips) hide their scrollbar; demos.js marks
   the edges that have more beyond them and the row fades there instead. */
.hxd-scroll { --hxd-fade: 2rem; }
.hxd-scroll.is-fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--hxd-fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--hxd-fade)), transparent); }
.hxd-scroll.is-fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--hxd-fade)); mask-image: linear-gradient(to right, transparent, #000 var(--hxd-fade)); }
.hxd-scroll.is-fade-l.is-fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--hxd-fade), #000 calc(100% - var(--hxd-fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--hxd-fade), #000 calc(100% - var(--hxd-fade)), transparent); }

/* ───────────────────────── Room shell (shared by assist and voice) ───────── */
.hxd-room { display: flex; flex-direction: column; background: var(--frame); color: var(--foreground); border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 0 0 1px var(--frame-border), var(--shadow-pop); }
.hxd-topbar { display: flex; align-items: center; gap: 0.75rem; height: 48px; padding: 0 0.75rem; font-size: 0.8125rem; }
@container (min-width: 720px) { .hxd-topbar { height: 56px; padding: 0 1rem; } }
.hxd-topbar__logo { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 600; letter-spacing: -0.01em; }
.hxd-topbar__logo svg { width: 18px; height: 18px; color: var(--brand); }
.hxd-topbar__sep { width: 1px; height: 18px; background: var(--frame-border); }
/* a phone-width room: the mark alone, so the candidate's name is not cut to two letters */
@container (max-width: 479px) { .hxd-topbar__logo span, .hxd-topbar__sep { display: none; } }
.hxd-topbar__who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.hxd-topbar__who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxd-topbar__who span { font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxd-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.hxd-clock { display: none; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: var(--muted-foreground); }
@container (min-width: 480px) { .hxd-clock { display: inline; } }
.hxd-rec { height: 28px; }
.hxd-conn { display: none; }
@container (min-width: 900px) { .hxd-conn { display: inline-flex; } }
.hxd-end { background: oklch(0.55 0.2 27); color: white; font-weight: 600; box-shadow: none; }
.hxd-end:hover { background: oklch(0.5 0.2 27); }
.hxd-end .hxd-end__long { display: none; }
@container (min-width: 720px) { .hxd-end .hxd-end__long { display: inline; } .hxd-end .hxd-end__short { display: none; } }
/* The recruiter room's own bar (page.tsx): 56px, the name and the job on one line, the clock in the bar's
   colour, a 28px connection chip that keeps its dot on a narrow bar, and the app's destructive End button. */
.hxd-assist .hxd-topbar { height: 56px; gap: 0.625rem; padding: 0 1rem; }
.hxd-assist .hxd-topbar__logo { gap: 0.625rem; font-size: 0.875rem; }
.hxd-assist .hxd-topbar__logo svg { width: 24px; height: 24px; }
.hxd-assist .hxd-topbar__sep { height: 20px; }
.hxd-assist .hxd-topbar__who { flex-direction: row; align-items: baseline; gap: 0.5rem; }
.hxd-assist .hxd-topbar__who b { font-size: 0.875rem; }
.hxd-assist .hxd-topbar__who span { display: none; }
@container (min-width: 768px) { .hxd-assist .hxd-topbar__who span { display: inline; } }
.hxd-assist .hxd-topbar__right { gap: 0.625rem; }
.hxd-assist .hxd-clock { font-size: 0.875rem; color: var(--foreground); }
.hxd-assist .hxd-conn { display: inline-flex; height: 28px; }
.hxd-assist .hxd-conn span { display: none; }
@container (min-width: 900px) { .hxd-assist .hxd-conn span { display: inline; } }
.hxd-assist .hxd-end { background: color-mix(in oklch, var(--destructive) 20%, transparent); color: var(--destructive); font-size: 0.8rem; font-weight: 500; }
.hxd-assist .hxd-end:hover { background: color-mix(in oklch, var(--destructive) 30%, transparent); }
.hxd-assist .hxd-stage > .hxd-namechip { left: 8px; bottom: 8px; padding: 0.25rem 0.625rem; }

.hxd-main { display: grid; gap: 0.75rem; padding: 0 0.75rem 0.75rem; grid-template-columns: minmax(0, 1fr); }
/* Two columns from 880px. The row has a fixed height so the demo does not grow and
   shrink as the script writes into the panel; the panel body scrolls, as the app's does. */
@container (min-width: 880px) { .hxd-main { grid-template-columns: minmax(0, 1fr) 340px; height: 568px; } }
@container (min-width: 1100px) { .hxd-main { grid-template-columns: minmax(0, 1fr) 380px; } }

.hxd-stagecard { display: flex; flex-direction: column; gap: 0.625rem; padding: 0.75rem; border-radius: var(--radius-xl); background: var(--background); box-shadow: 0 0 0 1px var(--border); min-width: 0; }
.hxd-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); background: var(--room-bg); overflow: hidden; }
@container (min-width: 880px) { .hxd-stage { aspect-ratio: auto; flex: 1; min-height: 300px; } }
.hxd-stage video, .hxd-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 320ms var(--ease-out-quart); }
.hxd-stage video.is-on, .hxd-stage img.is-on { opacity: 1; }
.hxd-stage--speaking::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px oklch(0.78 0.16 55), inset 0 0 24px oklch(0.78 0.16 55 / 0.35); pointer-events: none; }
.hxd-namechip { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.5rem; border-radius: 9999px; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(4px); color: #fff; font-size: var(--text-2xs); line-height: 1; }
.hxd-namechip i { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.8 0.17 150); }
.hxd-levels { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; padding: 4px 6px; border-radius: 6px; background: rgb(0 0 0 / 0.5); box-sizing: content-box; }
.hxd-levels i { width: 3px; border-radius: 1px; background: oklch(0.78 0.16 55); transform-origin: bottom; animation: hxd-level 0.9s ease-in-out infinite; }
.hxd-levels i:nth-child(1) { height: 5px; } .hxd-levels i:nth-child(2) { height: 10px; animation-delay: 0.15s; } .hxd-levels i:nth-child(3) { height: 7px; animation-delay: 0.3s; }
@keyframes hxd-level { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.35); } }

/* Self-view picture-in-picture: ~20% of the stage, clamped 110–240px wide. */
.hxd-pip { position: absolute; right: 12px; bottom: 12px; width: clamp(110px, 20%, 240px); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 12px 30px rgb(0 0 0 / 0.5); }
.hxd-pip video, .hxd-pip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity 300ms var(--ease-out-quart); }
.hxd-pip video.is-on, .hxd-pip img.is-on { opacity: 1; }
.hxd-pip .hxd-namechip { left: 6px; bottom: 6px; padding: 3px 6px; font-size: 10px; }

/* Transcript strip */
.hxd-transcript { display: none; border-radius: var(--radius-lg); background: var(--muted); padding: 0.625rem 0.875rem; font-size: 0.875rem; line-height: 1.4; }
@container (min-width: 640px) { .hxd-transcript { display: block; } }
.hxd-transcript__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.hxd-transcript__head label { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: none; letter-spacing: 0; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.hxd-transcript__lines { max-height: 4.4em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.hxd-transcript__lines p { margin: 0; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxd-transcript__lines p b { font-weight: 600; }
.hxd-transcript__lines p b.is-you { color: var(--muted-foreground); }

/* Control row: 44px round buttons with a label beneath. */
.hxd-controls { display: flex; justify-content: center; justify-content: safe center; gap: 0.25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hxd-controls::-webkit-scrollbar { display: none; }
.hxd-ctl { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 56px; padding: 0.25rem; border: 0; background: none; color: var(--foreground); cursor: pointer; border-radius: var(--radius-lg); }
.hxd-ctl__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--muted); color: var(--foreground); transition: background-color 150ms, color 150ms; }
.hxd-ctl__btn svg { width: 18px; height: 18px; }
.hxd-ctl[aria-pressed="true"] .hxd-ctl__btn { background: var(--ink); color: var(--ink-foreground); }
.hxd-ctl.is-off .hxd-ctl__btn { background: var(--risk-muted); color: var(--risk); }
.hxd-ctl__label { font-size: var(--text-2xs); color: var(--muted-foreground); display: none; }
@container (min-width: 768px) { .hxd-ctl__label { display: block; } }
.hxd-ctl--md { display: none; }
@container (min-width: 768px) { .hxd-ctl--md { display: flex; } }
.hxd-assist .hxd-ctl__label { font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
/* In the two-column room the stage is about 480–620px wide until the demo is 1180px
   wide, too narrow for ten labelled controls: icon-only there, as the app does when
   it is short of room. */
@container (min-width: 880px) and (max-width: 1179px) {
  .hxd-ctl__label { display: none; }
  .hxd-ctl { min-width: 44px; padding: 0.25rem 0; }
  .hxd-controls { gap: 2px; }
}

/* Side panel */
.hxd-panel { display: flex; flex-direction: column; border-radius: var(--radius-xl); background: var(--background); box-shadow: 0 0 0 1px var(--border); min-width: 0; overflow: hidden; }
@container (min-width: 880px) { .hxd-panel { height: 100%; } }
/* Four tabs in a 340px panel: tight padding and no gap, so "Room chat" stays in view. */
.hxd-tabs { display: flex; align-items: center; height: 48px; padding: 0 0.5rem; border-bottom: 1px solid var(--border); gap: 0; overflow-x: auto; scrollbar-width: none; }
.hxd-tabs::-webkit-scrollbar { display: none; }
.hxd-tab { position: relative; height: 100%; padding: 0 0.375rem; border: 0; background: none; color: var(--muted-foreground); font-size: 0.78rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; }
@container (max-width: 420px) { .hxd-tabs { padding: 0 0.25rem; } .hxd-tab { padding: 0 0.25rem; font-size: 0.75rem; } .hxd-tab[aria-selected="true"]::after { left: 0.25rem; right: 0.25rem; } }
.hxd-tab[aria-selected="true"] { color: var(--foreground); }
.hxd-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0.375rem; right: 0.375rem; bottom: 0; height: 2px; background: currentColor; }
.hxd-tab__dot { position: absolute; top: 10px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0; transition: opacity 200ms; }
.hxd-tab__dot.is-on { opacity: 1; }
.hxd-panel__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.875rem 1rem; flex: 1; overflow: auto; min-height: 0; }
@container (max-width: 879px) { .hxd-panel__body { max-height: 420px; } }
.hxd-status { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--muted-foreground); }
.hxd-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hxd-status i.is-warn { background: var(--warn); }

/* The live Assist card (assist-panel.tsx). Its heading is orange with a pulsing dot only while it offers or
   writes a question; data-mode says which of its three states shows. */
.hxd-live { position: relative; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); padding: 0.875rem; transition: opacity 200ms, transform 200ms var(--ease-out-quart), border-color 300ms; }
.hxd-live.is-swapping { opacity: 0.35; transform: translateY(2px); }
.hxd-live__head { display: flex; align-items: center; gap: 0.375rem; min-width: 0; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); }
.hxd-live.hx-ai-working .hxd-live__head { color: var(--brand-text); }
.hxd-live__head span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxd-live__head i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--brand); animation: hxd-pulse 1.4s ease-in-out infinite; }
@keyframes hxd-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }
.hxd-live__read { margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 500; color: var(--brand-text); }
.hxd-live__q { font-size: 1rem; line-height: 1.375; font-weight: 550; }
.hxd-live__src { margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted-foreground); }
.hxd-live__last { margin-top: 0.625rem; font-size: 0.75rem; color: var(--muted-foreground); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.hxd-live__last b { color: color-mix(in oklch, var(--foreground) 70%, transparent); font-weight: 500; }
/* Writing: three placeholder lines where the question will appear, never a spinner. */
.hxd-live[data-mode="writing"] .hxd-live__q { height: 36px; margin-top: 0.25rem; background: linear-gradient(var(--muted), var(--muted)) 0 0 / 96% 8px no-repeat, linear-gradient(var(--muted), var(--muted)) 0 14px / 88% 8px no-repeat, linear-gradient(var(--muted), var(--muted)) 0 28px / 52% 8px no-repeat; }
.hxd-live[data-mode="writing"] .hxd-live__src { margin-top: 0.75rem; }
/* Listening: the three bars beside "Assist is listening" and its line, the last suggestion under them. */
.hxd-live[data-mode="idle"] { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.625rem; }
.hxd-live[data-mode="idle"] .hxd-live__head, .hxd-live[data-mode="idle"] .hxd-live__last { grid-column: 1 / -1; }
.hxd-live__bars { grid-row: 2 / span 2; display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-top: 3px; }
.hxd-live__bars i { width: 3px; border-radius: 2px; background: var(--brand); opacity: 0.75; transform-origin: bottom; animation: hxd-level 0.9s ease-in-out infinite; }
.hxd-live__bars i:nth-child(1) { height: 6px; } .hxd-live__bars i:nth-child(2) { height: 12px; animation-delay: 0.2s; } .hxd-live__bars i:nth-child(3) { height: 8px; animation-delay: 0.4s; }
.hxd-live[data-mode="idle"] .hxd-live__read { margin: 0; font-size: 0.875rem; color: var(--foreground); }
.hxd-live[data-mode="idle"] .hxd-live__q { margin-top: 0.125rem; font-size: 0.75rem; line-height: 1.35; font-weight: 400; color: var(--muted-foreground); }
@media (prefers-reduced-motion: reduce) { .hxd-live__bars i { animation: none; } }

/* Plan rows */
.hxd-plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.375rem; }
.hxd-plan__head span:last-child { font-size: 0.75rem; font-weight: 400; font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; }
.hxd-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.hxd-topic { display: flex; align-items: center; gap: 0.625rem; width: 100%; min-height: 36px; padding: 0.5rem; border: 0; border-radius: var(--radius-lg); background: none; color: var(--foreground); text-align: left; cursor: pointer; transition: background-color 150ms; }
.hxd-topic:hover { background: var(--muted); }
.hxd-topic[data-state="now"] { background: var(--muted); }
.hxd-topic:disabled { cursor: default; }
/* Markers: a dashed ring for what comes next, a plain ring for a resume topic, orange for now, amber for partly, a green tick for covered. */
.hxd-topic__mark { position: relative; display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 1.5px dashed color-mix(in oklch, var(--muted-foreground) 60%, transparent); }
.hxd-topic[data-resume] .hxd-topic__mark { border: 1.5px solid var(--border); }
.hxd-topic__mark svg { width: 12px; height: 12px; display: none; }
.hxd-topic__mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: none; }
.hxd-topic[data-state="covered"] .hxd-topic__mark { border: 0; background: var(--ok-muted); color: var(--ok); }
.hxd-topic[data-state="covered"] .hxd-topic__mark svg { display: block; }
.hxd-topic[data-state="now"] .hxd-topic__mark { border: 2px solid var(--brand); color: var(--brand); }
.hxd-topic[data-state="now"] .hxd-topic__mark::after { display: block; width: 8px; height: 8px; }
.hxd-topic[data-state="partly"] .hxd-topic__mark { border: 2px solid var(--warn); color: var(--warn); }
.hxd-topic[data-state="partly"] .hxd-topic__mark::after { display: block; }
.hxd-topic__name { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxd-topic[data-state="covered"] .hxd-topic__name { color: var(--muted-foreground); font-weight: 400; }
.hxd-topic__tag { font-size: var(--text-2xs); font-weight: 600; color: var(--muted-foreground); white-space: nowrap; }
.hxd-topic[data-state="now"] .hxd-topic__tag { color: var(--brand-text); }
.hxd-topic[data-state="covered"] .hxd-topic__tag { color: var(--ok); }
.hxd-topic__tag.is-warn { color: var(--warn); }
.hxd-earlier { font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
/* The footer, as the app stacks it: the mode control across the panel, then the Ask box and its button. */
.hxd-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 0.375rem; padding: 0.75rem 1rem 0.875rem; border-top: 1px solid var(--border); background: var(--background); }
.hxd-panel__foot .hx-seg { display: flex; flex: 1 0 100%; }
.hxd-panel__foot .hx-seg__item { flex: 1; height: 1.75rem; }
.hxd-panel__foot .hx-input { flex: 1 1 0; min-width: 0; height: 2.25rem; }
.hxd-assist .hxd-ask { height: 2.25rem; padding: 0 0.875rem; background: var(--muted); color: var(--foreground); font-size: 0.875rem; font-weight: 600; box-shadow: none; }
.hxd-assist .hxd-ask:hover { background: color-mix(in oklch, var(--muted) 70%, transparent); box-shadow: none; }
/* ".hxd button" hands every button the demo's own type, ahead of a single class; the panel's tabs and mode
   control state theirs here, as the app sets them. */
.hxd-assist .hxd-tab { font-size: 0.8125rem; font-weight: 600; }
@container (max-width: 420px) { .hxd-assist .hxd-tab { font-size: 0.75rem; } }
.hxd-assist .hx-seg__item { font-size: 0.75rem; font-weight: 600; }

/* Candidate tab: who is in the call, then the notes */
.hxd-cand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.hxd-cand__av { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--muted); font-size: 0.875rem; font-weight: 600; }
.hxd-cand b { display: block; font-size: 0.9375rem; font-weight: 600; }
.hxd-cand div span { font-size: 0.75rem; color: var(--muted-foreground); }
.hxd-notes__label { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.375rem; }
.hxd-notes__area { min-height: 150px; }
.hxd-notes__status { margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted-foreground); }
/* Plan and resume tab: the job, the plan in order, the resume */
.hxd-planjob { font-weight: 600; }
.hxd-planq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; line-height: 1.55; }
.hxd-planq li { display: flex; gap: 0.625rem; }
.hxd-planq li > span:first-child { width: 1rem; flex-shrink: 0; text-align: right; font-size: 0.75rem; line-height: 1.8; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.hxd-planq li > span:last-child { flex: 1; min-width: 0; }
.hxd-planq em { margin-left: 0.375rem; font-style: normal; font-size: var(--text-2xs); font-weight: 600; color: var(--warn); }
.hxd-planrule { height: 1px; flex-shrink: 0; background: var(--border); }
.hxd-planres { margin: 0; line-height: 1.55; color: color-mix(in oklch, var(--foreground) 85%, transparent); }
/* Room chat tab: who sees the chat, then the empty chat */
.hxd-chatwarn { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; padding: 0.5rem 0.625rem; border-radius: var(--radius-lg); background: var(--warn-muted); font-size: 0.75rem; line-height: 17px; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
.hxd-chatwarn svg { display: block; width: 15px; height: 15px; margin-top: 1px; color: var(--warn); }
.hxd-chatwarn b { font-weight: 600; color: var(--foreground); }
.hxd-chatempty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; min-height: 6rem; font-size: 0.875rem; color: var(--muted-foreground); }
.hxd-chatempty svg { display: block; width: 20px; height: 20px; }
.hxd-kv { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; font-size: 0.8125rem; }
.hxd-kv dt { color: var(--muted-foreground); } .hxd-kv dd { margin: 0; }

/* ───────────────────────── Candidate chat ──────────────────────────────── */
/* The demo root (.hxd-chat) is phone-wide and centres itself, so the caption bar under
   it lines up with the card; the card (.hxd-chat__card) carries the fixed height. */
.hxd-chat { max-width: 480px; margin-inline: auto; }
/* The job link page (link-shell.tsx): the cream page colour, and the firm's colour in place of the brand tokens, so
   the main buttons, the picked time and the firm's mark beside its lines all take it. */
.hxd-chat__card { display: flex; flex-direction: column; width: 100%; height: 640px; border-radius: var(--radius-xl); background: var(--background); color: var(--foreground); box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); overflow: hidden; --firm: oklch(0.45 0.08 230); --brand: var(--firm); --brand-foreground: #fff; --brand-text: var(--firm); --brand-muted: color-mix(in oklch, var(--firm) 11%, white); --ring: var(--firm); }
@container (max-width: 420px) { .hxd-chat__card { height: 600px; } }
.hxd-chat__head { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.hxd-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--firm); color: #fff; font-size: 0.8125rem; font-weight: 700; flex-shrink: 0; }
.hxd-avatar--sm { width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color: var(--brand-foreground); font-size: 0.75rem; font-weight: 600; }
/* The header: the firm's name (its logo, when it has one) over "Hiring assistant". */
.hxd-chat__firm { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.hxd-chat__firm b { font-weight: 600; font-size: 1rem; line-height: 1.5; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxd-chat__firm span { font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
/* "Question 3 of 4" and its bar on one line, held above the thread. */
.hxd-progress { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 1rem; font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
.hxd-progress span { flex-shrink: 0; }
.hxd-progress__bar { flex: 1; height: 4px; border-radius: 9999px; background: var(--muted); overflow: hidden; }
.hxd-progress__bar i { display: block; height: 100%; width: 0; border-radius: 9999px; background: var(--foreground); transition: width 500ms var(--ease-out-quart); }
/* The thread fills from the bottom, as the chat's does; the message box sits under a rule. */
.hxd-chat__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0.75rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.625rem; border-bottom: 1px solid var(--border); scroll-behavior: smooth; }
.hxd-chat__list > :first-child { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .hxd-chat__list { scroll-behavior: auto; } }
.hxd-msg { display: flex; align-items: flex-end; gap: 0.5rem; max-width: 92%; animation: hxd-bubble 240ms var(--ease-out-expo) both; }
@keyframes hxd-bubble { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
/* The assistant's lines in a row sit closer and share their inner corners; the firm's mark is beside the last of them. */
.hxd-msg--bot { align-self: flex-start; }
.hxd-msg--bot + .hxd-msg--bot { margin-top: -0.375rem; }
.hxd-msg--bot + .hxd-msg--bot .hxd-bubble { border-top-left-radius: var(--radius-md); }
.hxd-msg--bot:has(+ .hxd-msg--bot) .hxd-bubble { border-bottom-left-radius: var(--radius-md); }
.hxd-msg--bot .hxd-avatar--sm { visibility: hidden; }
.hxd-msg--bot.is-last .hxd-avatar--sm, .hxd-msg--bot:not(:has(+ .hxd-msg--bot)) .hxd-avatar--sm { visibility: visible; }
.hxd-msg--me { align-self: flex-end; flex-direction: column; align-items: flex-end; gap: 0.25rem; max-width: 88%; }
.hxd-bubble { padding: 0.625rem 0.875rem; border-radius: var(--radius-2xl); font-size: 0.9375rem; line-height: 1.3125rem; overflow-wrap: anywhere; }
.hxd-msg--bot .hxd-bubble { background: var(--muted); color: var(--foreground); }
.hxd-msg--me .hxd-bubble { background: var(--primary); color: var(--primary-foreground); border-bottom-right-radius: var(--radius-md); }
.hxd-msg__sent { display: inline-flex; align-items: center; gap: 0.25rem; padding-right: 0.25rem; font-size: 0.6875rem; line-height: 1rem; color: var(--muted-foreground); }
.hxd-msg__sent svg { width: 12px; height: 12px; }
.hxd-typing { display: inline-flex; gap: 4px; align-items: center; height: 1.3125rem; }
.hxd-typing i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklch, var(--muted-foreground) 70%, transparent); animation: hxd-dot 1s ease-in-out infinite; }
.hxd-typing i:nth-child(2) { animation-delay: 0.15s; } .hxd-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hxd-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
/* Answer chips: 44px pills under the question, indented past the firm's mark. They wrap, so a long set never runs wide. */
.hxd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 88%; margin-left: 2rem; padding-top: 0.25rem; animation: hxd-bubble 240ms var(--ease-out-expo) both; }
.hxd-chips .hx-chip { max-width: 100%; padding: 0 1rem; background: var(--background); }
/* Ask chips: one row above the message box that scrolls sideways, smaller than an answer chip. */
.hxd-chat__askrow { display: flex; gap: 0.5rem; padding: 0.875rem 1rem 0.625rem; overflow-x: auto; scrollbar-width: none; }
.hxd-chat__askrow::-webkit-scrollbar { display: none; }
.hxd-chat__askrow .hx-chip { flex-shrink: 0; min-height: 2.25rem; padding: 0 0.75rem; border-color: var(--border); background: var(--card); font-size: 0.875rem; white-space: nowrap; }
.hxd-composer { display: flex; align-items: center; gap: 0.25rem; margin: 0 1rem 0.625rem; padding: 4px 4px 4px 1rem; border: 1px solid var(--input); border-radius: 24px; background: var(--card); }
.hxd-chat__askrow[hidden] + .hxd-composer { margin-top: 0.625rem; }
.hxd-composer input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 1rem; height: 2.25rem; }
.hxd-composer input::placeholder { color: var(--muted-foreground); }
.hxd-composer button { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: var(--muted); color: var(--muted-foreground); cursor: default; }
.hxd-composer button svg { width: 18px; height: 18px; }
.hxd-chat__foot { padding: 0.75rem 1rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.hxd-chat__foot span { text-decoration: underline; text-underline-offset: 2px; }
/* Booking inside the thread (booking-cards.tsx): the start choice is a stack of two buttons; the slot picker and the
   booked card are full-width cards. */
.hxd-bstack { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; animation: hxd-bubble 240ms var(--ease-out-expo) both; }
.hxd-bstack--end { margin-top: 1rem; animation: none; }
@media (prefers-reduced-motion: reduce) { .hxd-bstack { animation: none; } }
.hx-btn.hxd-bbtn { width: 100%; height: auto; min-height: 3rem; padding: 0.5rem 1rem; gap: 0.5rem; font-size: 1rem; font-weight: 500; line-height: 1.5rem; white-space: normal; text-align: center; box-shadow: none; }
.hx-btn.hxd-bbtn:disabled { opacity: 0.7; }
.hx-btn.hxd-bbtn--outline { width: auto; min-height: 2.75rem; padding: 0 1rem; border-color: var(--border); background: var(--background); font-size: 0.9375rem; }
.hx-btn.hxd-bbtn--outline:hover { background: var(--muted); }
.hxd-bfine { margin: 0; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.hxd-bcard { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); padding: 1rem; animation: hxd-bubble 240ms var(--ease-out-expo) both; }
.hxd-bcard__row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.hxd-bcard__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.hxd-bcard__title > div { min-width: 0; }
.hxd-bcard__title b { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.hxd-bcard__sub { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.hxd-booked { display: inline-flex; align-items: center; flex-shrink: 0; gap: 0.25rem; padding: 0.25rem 0.625rem; border-radius: 9999px; background: oklch(0.979 0.021 166.113); color: oklch(0.508 0.118 165.612); font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.hxd-booked svg { width: 14px; height: 14px; }
.hxd-copylink { display: flex; align-items: stretch; gap: 0.5rem; min-height: 2.75rem; padding-left: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.hxd-copylink span { flex: 1; min-width: 0; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: var(--muted-foreground); }
.hxd-copylink button { flex-shrink: 0; padding: 0 0.75rem; border: 0; border-radius: var(--radius-md); background: none; color: var(--foreground); font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.hxd-copylink button:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The slot picker: the time zone, a strip of days, then the day's times two to a row under their part of the day. */
.hxd-tz { margin: 0; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.hxd-days { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding-bottom: 0.25rem; overflow-x: auto; }
.hxd-day { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 4.25rem; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--background); color: var(--foreground); font-size: 0.75rem; line-height: 1rem; white-space: nowrap; cursor: pointer; transition: background-color 150ms, color 150ms, border-color 150ms; }
.hxd-day b { font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; }
.hxd-day:hover { background: var(--muted); }
.hxd-day[aria-pressed="true"] { border-color: var(--foreground); background: var(--foreground); color: var(--background); }
.hxd-times { margin-top: 0.75rem; }
.hxd-times__part { margin: 1rem 0 0.375rem; font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.hxd-times__part:first-child { margin-top: 0; }
.hxd-slots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }
.hxd-slot { display: flex; align-items: center; min-height: 3rem; padding: 0 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); color: var(--foreground); font-size: 0.9375rem; font-weight: 500; text-align: left; cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.hxd-slot:hover { background: var(--muted); }
.hxd-slot[aria-checked="true"] { border-color: var(--brand); background: color-mix(in oklch, var(--brand) 10%, transparent); }

/* ───────────────────────── AI-led room (voice) ─────────────────────────── */
/* The room as voice-agent-room.tsx draws it: the mark and the firm's name, the job, Recording and the clock; a thin
   progress line; one stage holding the waveform, the status chip, the question and the captions, with the self-view
   and the control bar along its bottom edge. The room is tall enough for the longest question and answer from the
   start, so it does not grow while the exchange plays. */
.hxd-voice .hxd-room { min-height: 750px; }
@container (max-width: 279px) { .hxd-voice .hxd-room { min-height: 840px; } }
@container (min-width: 680px) { .hxd-voice .hxd-room { min-height: 670px; } }
@container (min-width: 900px) { .hxd-voice .hxd-room { min-height: 620px; } }
.hxd-voice .hxd-topbar__logo svg { width: 24px; height: 24px; flex-shrink: 0; }
.hxd-voice .hxd-topbar__logo span, .hxd-voice .hxd-topbar__who span { font-size: 0.875rem; }
.hxd-voice .hxd-clock { display: inline; font-size: 0.875rem; color: var(--foreground); }
.hxd-progressbar { height: 3px; margin: 0 0.75rem 0.5rem; border-radius: 9999px; overflow: hidden; background: var(--frame-border); }
.hxd-progressbar i { display: block; height: 100%; width: 40%; background: color-mix(in oklch, var(--brand) 65%, transparent); transition: width 600ms var(--ease-out-quart); }
/* The bottom padding keeps the question and the captions clear of the bar and, on a phone, of the self-view above it. */
.hxd-voice__stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem 1rem 216px; margin: 0 0.75rem 0.75rem; border-radius: var(--radius-xl); background: var(--background); box-shadow: 0 0 0 1px var(--frame-border); min-height: 380px; text-align: center; }
@container (min-width: 680px) { .hxd-voice__stage { padding: 2.5rem 1rem 132px; } }
.hxd-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 150px; width: 215px; }
.hxd-wave i { display: block; width: 5px; height: 150px; border-radius: 3px; background: linear-gradient(to top, oklch(0.58 0.14 50), oklch(0.84 0.15 62)); transform: scaleY(0.3); opacity: 0.35; transform-origin: center; will-change: transform, opacity; }
.hxd-wave.is-glow { filter: drop-shadow(0 0 14px oklch(0.78 0.16 55 / 0.45)); }
.hxd-wave__eyebrow { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
/* The status chip under the waveform: a card-coloured pill. Speaking is three small bars and the brand colour,
   listening a green dot, thinking the word and its dots, ready a faint dot. */
.hxd-statechip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--card); color: var(--card-foreground); font-size: 0.78125rem; line-height: 1.5; font-weight: 500; box-shadow: var(--shadow-xs); }
.hxd-statechip i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklch, var(--muted-foreground) 40%, transparent); }
.hxd-statechip[data-state="ready"] { color: var(--muted-foreground); }
.hxd-statechip[data-state="listening"] i { background: var(--ok); animation: hxd-chip-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.hxd-statechip[data-state="speaking"] { color: var(--brand); }
.hxd-statechip[data-state="speaking"] i { width: 3px; height: 12px; margin-right: 11px; border-radius: 9999px; background: var(--brand); box-shadow: 5.5px 0 0 var(--brand), 11px 0 0 var(--brand); animation: hxd-chip-bars 0.8s ease-in-out infinite; }
.hxd-statechip[data-state="thinking"] i { display: none; }
.hxd-statechip[data-state="thinking"] span::after { content: "..."; }
@keyframes hxd-chip-dot { 50% { opacity: 0.5; } }
@keyframes hxd-chip-bars { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hxd-statechip i { animation: none !important; } }
/* The question, then the captions line under it. From 680px the text column stays clear of the self-view beside it. */
.hxd-voice__q { max-width: 35rem; margin: 0.5rem 0 0; font-size: 1.0625rem; line-height: 1.375; font-weight: 500; min-height: 3em; text-wrap: balance; }
.hxd-voice__q .hxd-w { opacity: 0.28; transition: opacity 120ms; }
.hxd-voice__q .hxd-w.is-on { opacity: 1; }
.hxd-voice__cand { max-width: 32.5rem; margin: 0; font-size: 0.8125rem; line-height: 1.625; color: var(--muted-foreground); min-height: 3.25em; }
@container (min-width: 680px) {
  .hxd-voice__q { font-size: 1.1875rem; }
  .hxd-voice__q, .hxd-voice__cand { max-width: min(35rem, calc(100% - 2 * (clamp(102px, 18%, 176px) + 1.5rem))); }
}
/* The self-view: above the bar in the stage's corner, the candidate's name on it, "Camera off" when it is off. */
.hxd-voice .hxd-pip { width: 102px; aspect-ratio: 4 / 3; right: 12px; bottom: 130px; border-radius: var(--radius-xl); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.2), 0 12px 30px rgb(0 0 0 / 0.5); }
@container (min-width: 680px) { .hxd-voice .hxd-pip { width: clamp(102px, 18%, 176px); bottom: 124px; } }
.hxd-voice .hxd-pip .hxd-namechip { z-index: 2; left: 6px; bottom: 4px; padding: 3px 8px; }
.hxd-voice .hxd-pip.is-camoff video { visibility: hidden; }
.hxd-pip__off { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem; background: var(--room-bg); color: rgb(255 255 255 / 0.7); font-size: var(--text-2xs); }
.hxd-pip__off svg { width: 20px; height: 20px; color: rgb(255 255 255 / 0.5); }
/* The hint and the control bar share one column along the stage's bottom edge, above the play overlay. */
.hxd-voice__dock { position: absolute; left: 0; right: 0; bottom: 0.75rem; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0 0.5rem; pointer-events: none; }
.hxd-voice__hint { display: none; width: 100%; max-width: 640px; margin: 0; text-align: center; font-size: 0.8125rem; line-height: 1.375; color: var(--muted-foreground); }
/* The bar is a card with 44px controls. On a phone it spans the stage in two rows, as the room's does: Need a moment
   on top, then Repeat, camera, background, Captions and End. From 680px it is one row with the long labels. */
.hxd-voice__bar { pointer-events: auto; display: grid; grid-template-columns: repeat(3, minmax(2.5rem, 2.75rem)) auto 1fr; align-items: center; gap: 0.375rem; width: 100%; padding: 0.375rem; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-pop); }
.hxd-vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 0; min-height: 2.75rem; padding: 0 0.75rem; border: 0; border-radius: var(--radius-xl); background: var(--muted); color: var(--foreground); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color 150ms var(--ease-out-quart); }
.hxd-vbtn:hover { background: color-mix(in oklch, var(--foreground) 10%, transparent); }
.hxd-vbtn svg { width: 16px; height: 16px; flex-shrink: 0; }
.hxd-vbtn--icon { padding: 0; }
.hxd-vbtn--icon svg { width: 20px; height: 20px; }
.hxd-vbtn--cam[aria-pressed="false"] svg { color: var(--muted-foreground); }
.hxd-vbtn--cap svg { width: 18px; height: 18px; }
.hxd-vbtn--cap[aria-pressed="true"] { background: var(--ink); color: var(--ink-foreground); }
.hxd-vbtn--cap[aria-pressed="true"]:hover { background: color-mix(in oklch, var(--ink) 90%, transparent); }
.hxd-vbtn--end { padding: 0 1rem; background: var(--risk-muted); color: var(--risk); font-size: 0.875rem; font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--risk) 40%, transparent); }
.hxd-vbtn--end:hover { background: color-mix(in oklch, var(--risk) 25%, transparent); }
.hxd-vbtn--moment { grid-column: 1 / -1; grid-row: 1; justify-self: start; width: calc(50% - 0.1875rem); gap: 0.375rem; }
.hxd-vbtn--repeat { grid-column: 1; grid-row: 2; }
.hxd-vbtn--cam { grid-column: 2; grid-row: 2; }
.hxd-vbtn--bg { grid-column: 3; grid-row: 2; }
.hxd-vbtn--cap { grid-column: 4; grid-row: 2; }
.hxd-vbtn--end { grid-column: 5; grid-row: 2; justify-self: end; }
.hxd-vbtn__long, .hxd-voice__sep { display: none; }
/* a demo narrower than a phone's own screen (a 375px page less its gutters): tighter gaps, so the second row fits whole */
@container (max-width: 359px) {
  .hxd-voice__dock { padding: 0 0.25rem; }
  .hxd-voice__bar { gap: 0.25rem; padding: 0.25rem; }
  .hxd-vbtn--moment { width: calc(50% - 0.125rem); }
  .hxd-vbtn--end { padding: 0 0.75rem; }
}
@container (min-width: 680px) {
  .hxd-voice__hint { display: block; }
  .hxd-voice__bar { display: flex; width: auto; max-width: 100%; gap: 0.5rem; padding: 0.5rem; }
  .hxd-vbtn--icon { width: 2.75rem; }
  .hxd-vbtn--moment { width: auto; }
  .hxd-voice__sep { display: block; flex-shrink: 0; width: 1px; height: 1.75rem; margin: 0 0.25rem; background: var(--border); }
  .hxd-vbtn__long { display: inline; }
  .hxd-vbtn__short { display: none; }
}
.hxd-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; background: color-mix(in oklch, var(--background) 55%, transparent); backdrop-filter: blur(2px); border-radius: inherit; border: 0; cursor: pointer; transition: opacity 240ms; }
.hxd-play.is-hidden { opacity: 0; pointer-events: none; }
.hxd-play > span { display: flex; flex-direction: column; align-items: center; }
.hxd-play__btn { display: inline-flex; align-items: center; gap: 0.625rem; height: 48px; padding: 0 1.25rem 0 0.875rem; border-radius: 9999px; background: var(--brand); color: var(--brand-foreground); font-weight: 600; font-size: 0.9375rem; box-shadow: var(--shadow-pop); }
.hxd-play__btn svg { width: 20px; height: 20px; }
.hxd-play:focus-visible { outline: none; } /* the ring goes on the pill, not round the whole stage */
.hxd-play:focus-visible .hxd-play__btn { box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent); }
.hxd-play__sub { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; }
.hxd-captions { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: min(90%, 34rem); padding: 0.375rem 0.75rem; border-radius: 8px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 0.875rem; line-height: 1.35; text-align: center; pointer-events: none; }
.hxd-captions:empty { display: none; }

/* ───────────────────────── Shared report ───────────────────────────────── */
.hxd-report { --firm: oklch(0.45 0.08 230); --brand: var(--firm); --brand-foreground: #fff; --brand-text: var(--firm); --brand-muted: color-mix(in oklch, var(--firm) 11%, white); --ring: var(--firm); background: var(--background); color: var(--foreground); border-radius: var(--radius-xl); box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); overflow: hidden; }
.hxd-report__band { height: 4px; background: var(--firm); }
.hxd-report__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 57px; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--card); }
.hxd-report__firm { display: flex; align-items: center; gap: 0.625rem; min-width: 0; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.hxd-report__for { font-size: 0.75rem; line-height: 15px; color: var(--muted-foreground); text-align: right; white-space: nowrap; }
.hxd-report__for b { color: var(--foreground); font-weight: 600; display: block; }
@container (min-width: 640px) { .hxd-report__for { font-size: 0.8125rem; line-height: 1.25rem; } .hxd-report__for b { display: inline; } }
.hxd-report__body { padding: 1.25rem; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 880px) { .hxd-report__body { grid-template-columns: minmax(0, 1fr) 18.5rem; padding: 1.5rem; gap: 1.5rem; } }
/* The evidence column is a container of its own: its table and its pair of cards go by its width, not the page's. */
.hxd-report__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; container: hxd-main / inline-size; }
.hxd-report__rail { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0.75rem; min-width: 0; }
@container (min-width: 640px) and (max-width: 879px) { .hxd-report__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hxd-report__cand { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hxd-report__name { font-size: 1.5rem; line-height: 2rem; font-weight: 650; letter-spacing: -0.02em; }
@container hxd-main (min-width: 560px) { .hxd-report__name { font-size: 1.75rem; line-height: 2.125rem; } }
.hxd-report__cand .hx-btn { height: 2.25rem; padding: 0 0.875rem; font-weight: 600; }
.hxd-report__cand p { margin-top: 0.25rem; color: var(--muted-foreground); font-size: 0.875rem; }
.hxd-report__cand p b { color: var(--foreground); font-weight: 600; }
/* Sits under the role, so the pair reads as one block inside the column's 1.25rem rhythm. */
.hxd-report__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.875rem; margin-top: -1rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.hxd-report__meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hxd-report__meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.hxd-note { padding: 0.875rem 1rem; border-left: 3px solid var(--firm); border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-soft); font-size: 0.9375rem; line-height: 23px; color: color-mix(in oklch, var(--foreground) 85%, transparent); white-space: pre-line; }
.hxd-note__by { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.625rem; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); white-space: normal; }
.hxd-note__by b { color: var(--foreground); font-weight: 500; }
.hxd-note__av { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); color: var(--foreground); font-size: 10px; font-weight: 600; }
.hxd-musts { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; font-size: 0.875rem; }
.hxd-musts b { font-weight: 500; }
/* The verdict chips (report/fit-sections.tsx): a pill in the verdict's own tint, no dot. */
.hxd-verdict { height: 1.25rem; padding: 0.125rem 0.5rem; }
.hxd-verdict--ok { background: oklch(0.962 0.044 156.743); color: oklch(0.527 0.154 150.069); }
.hxd-verdict--warn { background: oklch(0.973 0.071 103.193); color: oklch(0.554 0.135 66.442); }
.hxd-verdict--neutral { background: var(--muted); color: var(--muted-foreground); }
.hxd-sec { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; padding: 1rem; border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border); }
.hxd-sec__h { font-size: 1rem; font-weight: 600; line-height: 1.375rem; }
.hxd-sec__sub { font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.hxd-sec__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.hxd-sec__row > div { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.hxd-tbtn { font-weight: 600; }
.hxd-tbtn__chev { display: inline-flex; transition: transform 150ms var(--ease-out-quart); }
.hxd-tbtn[aria-expanded="true"] .hxd-tbtn__chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .hxd-tbtn__chev { transition: none; } }
/* A table once the column has room; below that each requirement is a card: its name and status, the quote, the play time. */
.hxd-req { margin-top: 0.75rem; }
.hxd-req__head { display: none; }
.hxd-req__group { padding: 1rem 0 0.375rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--muted-foreground); }
.hxd-req__head + .hxd-req__group { padding-top: 0; }
.hxd-req__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.375rem 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-top-width: 0; transition: background-color 300ms; }
.hxd-req__group + .hxd-req__row { border-top-width: 1px; border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.hxd-req__row:has(+ .hxd-req__group), .hxd-req__row:last-child { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.hxd-req__quote, .hxd-req__play { grid-column: 1 / -1; }
@container hxd-main (min-width: 560px) {
  .hxd-req__head, .hxd-req__row { display: grid; grid-template-columns: minmax(120px, 0.6fr) 118px minmax(0, 1fr) 4rem; gap: 0 0.75rem; align-items: start; }
  .hxd-req__head { padding-bottom: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase; color: var(--muted-foreground); }
  .hxd-req__group { padding: 1rem 0 0.25rem; }
  .hxd-req__head + .hxd-req__group { padding-top: 0.5rem; }
  .hxd-req__row, .hxd-req__group + .hxd-req__row, .hxd-req__row:has(+ .hxd-req__group), .hxd-req__row:last-child { padding: 0.625rem 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
  .hxd-req__quote, .hxd-req__play { grid-column: auto; }
  .hxd-req__play { text-align: right; }
  .hxd-req__name { font-weight: 400; }
}
.hxd-req__row.is-hot { background: var(--brand-muted); }
/* the quote's grey is under 4.5:1 on the tint, so it takes a step toward the text colour there */
.hxd-req__row.is-hot .hxd-req__quote { color: color-mix(in oklch, var(--muted-foreground) 70%, var(--foreground)); }
.hxd-req__name { font-weight: 500; font-size: 0.875rem; }
.hxd-req__quote { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
/* How a finding was evidenced (report/requirement-label.tsx): a dot and a word. */
.hxd-evl { display: inline-flex; align-items: center; gap: 0.375rem; height: 1.25rem; margin-right: 0.5rem; padding: 0 0.5rem; border-radius: 9999px; background: var(--background); box-shadow: 0 0 0 1px var(--border); color: var(--foreground); font-size: 0.75rem; font-weight: 500; font-style: normal; white-space: nowrap; vertical-align: 1px; }
.hxd-evl i { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--foreground); }
.hxd-evl--stated i { background: linear-gradient(90deg, var(--foreground) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--foreground); }
.hxd-req__none { color: var(--muted-foreground); font-style: normal; }
.hxd-tsbtn { display: inline-flex; align-items: center; gap: 0.25rem; height: 22px; padding: 0 0.375rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: none; color: var(--muted-foreground); font: inherit; font-size: 0.75rem; line-height: 1rem; font-style: normal; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.hxd-tsbtn svg { width: 12px; height: 12px; }
.hxd-tsbtn:hover { background: var(--muted); color: var(--foreground); }
.hxd-tsbtn[aria-pressed="true"] { background: var(--ink); color: var(--ink-foreground); border-color: var(--ink); }
.hxd-player { margin-top: 0.75rem; border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.hxd-player__video { position: relative; aspect-ratio: 16 / 9; background: var(--room-bg); }
.hxd-player__video video, .hxd-player__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms; }
.hxd-player__video video.is-on, .hxd-player__video img.is-on { opacity: 1; }
.hxd-player__cap { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: 90%; padding: 0.375rem 0.75rem; border-radius: 8px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 0.8125rem; text-align: center; }
.hxd-player__cap:empty { display: none; }
.hxd-player__ctl { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem; }
.hxd-player__seek { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--muted); cursor: pointer; }
.hxd-player__seek i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--foreground); transition: width 200ms linear; }
.hxd-player__seek b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--muted-foreground); opacity: 0.6; }
.hxd-player__time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--muted-foreground); min-width: 7ch; text-align: right; }
.hxd-chapters { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0 0.875rem 0.875rem; }
.hxd-chapter { height: 26px; padding: 0 0.625rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--card); color: var(--muted-foreground); font-size: 0.75rem; cursor: pointer; }
.hxd-chapter:hover { background: var(--muted); }
.hxd-chapter[aria-pressed="true"] { background: var(--muted); color: var(--foreground); border-color: var(--input); }
.hxd-two { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@container hxd-main (min-width: 600px) { .hxd-two { grid-template-columns: 1fr 1fr; } }
.hxd-quotes { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.hxd-quote { padding: 0.5rem 0.75rem; border-left: 2px solid color-mix(in oklch, var(--brand) 60%, transparent); border-radius: var(--radius-lg); background: color-mix(in oklch, var(--muted) 30%, transparent); font-size: 0.875rem; line-height: 1.625; }
.hxd-quote em { display: block; }
.hxd-quote .hxd-tsbtn { margin-top: 0.375rem; }
.hxd-probe { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; }
.hxd-probe h3 { margin-bottom: 0.5rem; font-size: 0.8125rem; font-weight: 600; }
.hxd-probe ul { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.hxd-probe li { display: flex; align-items: flex-start; gap: 0.625rem; color: color-mix(in oklch, var(--foreground) 85%, transparent); }
.hxd-probe li svg { width: 1rem; height: 1rem; margin-top: 0.125rem; flex-shrink: 0; color: var(--warn); }
.hxd-transcript-rows { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 1rem; }
.hxd-trow { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 0.875rem; line-height: 1.625; }
.hxd-trow__q { display: flex; align-items: center; gap: 0.5rem; margin-bottom: -0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--muted-foreground); }
/* A transcript turn's time is a plain chip, with no play arrow. */
.hxd-trow .hxd-tsbtn { height: auto; padding: 1px 0.375rem; border-radius: 0.25rem; }
.hxd-trow .hxd-tsbtn svg { display: none; }
.hxd-trow__a { padding: 0.75rem; border-radius: var(--radius-md); background: color-mix(in oklch, var(--brand-muted) 60%, transparent); }
.hxd-trow__who { margin-bottom: 0.25rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--brand-text); }
.hxd-railcard { padding: 0.875rem 1rem; border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border); font-size: 0.875rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.hxd-railcard h3 { font-size: var(--text-2xs); line-height: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.hxd-railcard .hxd-kv { grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 0.75rem; }
.hxd-railcard .hxd-kv dd { text-align: right; font-weight: 500; }
.hxd-railcard__foot { padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted-foreground); }
.hxd-contact { display: flex; align-items: center; gap: 0.75rem; }
.hxd-contact__av { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-muted); color: var(--brand-text); font-weight: 600; font-size: 0.8125rem; }
.hxd-contact__who { min-width: 0; font-weight: 600; line-height: 1.25rem; } .hxd-contact__who span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--muted-foreground); }
.hxd-contact__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hxd-contact__acts .hx-btn { flex: 1; height: 2.25rem; padding: 0 0.5rem; font-weight: 600; }
.hxd-contact__mail, .hxd-contact__mail:hover { background: var(--brand-muted); color: var(--brand-text); }
.hxd-contact__mail:hover { background: color-mix(in oklch, var(--brand-muted) 80%, transparent); }
.hxd-reply__form { display: flex; flex-direction: column; gap: 0.875rem; }
.hxd-reply__done { display: flex; flex-direction: column; gap: 0.75rem; }
.hxd-reply__opts { display: flex; flex-direction: column; gap: 0.5rem; }
.hxd-reply__opt { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0.375rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--foreground); text-align: left; font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.hxd-reply__opt:hover { background: var(--muted); }
.hxd-reply__opt i { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--muted-foreground); background: var(--card); flex-shrink: 0; }
.hxd-reply__opt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-muted); box-shadow: 0 0 0 1px var(--brand); }
.hxd-reply__opt[aria-checked="true"] i { border: 1px solid var(--brand); background: radial-gradient(circle, var(--brand) 0 4px, var(--card) 5px); }
.hxd-reply__field { display: grid; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; line-height: 1; }
.hxd-reply__field i { font-style: normal; font-weight: 400; color: var(--muted-foreground); }
.hxd-reply__field .hx-input { min-height: 2.75rem; }
.hxd-reply__send { width: 100%; min-height: 2.75rem; font-weight: 600; }
.hxd-reply__fine { font-size: 0.75rem; line-height: 17px; color: var(--muted-foreground); }
.hxd-reply__sent { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.hxd-reply__sent i { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-muted); color: var(--ok); }
.hxd-reply__sent i svg { width: 14px; height: 14px; }
.hxd-reply__sent span { padding-top: 1px; }
.hxd-report__close { padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.75rem; line-height: 1.625; color: var(--muted-foreground); }
.hxd-report__foot { padding: 0.25rem 1.25rem 1.5rem; font-size: 0.75rem; line-height: 1.625; color: var(--muted-foreground); text-align: center; }
@container (min-width: 880px) { .hxd-report__foot { padding-inline: 1.5rem; text-align: left; } }
.hxd-report__foot u { text-decoration-color: color-mix(in oklch, var(--muted-foreground) 40%, transparent); text-underline-offset: 3px; }
.hxd-report .is-spot { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-xl); transition: outline-color 300ms; }

/* ───────────────────────── Secure Check ───────────────────────────────── */
.hxd-sc__tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-lg); background: var(--muted); margin-bottom: 0.875rem; }
.hxd-sc__tab { height: 2rem; padding: 0 0.75rem; border: 0; border-radius: calc(var(--radius-lg) - 2px); background: none; color: var(--muted-foreground); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.hxd-sc__tab[aria-selected="true"] { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-xs); }
/* ".hxd button" outranks a single class, so this demo's buttons state their type again. */
.hxd-securecheck .hxd-sc__tab { font-size: 0.8125rem; font-weight: 600; }
.hxd-securecheck .hxd-wtab, .hxd-securecheck .hxd-app__link { font-size: 0.75rem; }
.hxd-securecheck .hx-seg__item { font-size: 0.75rem; font-weight: 600; }
.hxd-sc__grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 880px) { .hxd-sc__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.hxd-sc__col { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.hxd-sc__who { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
/* A browser window frame */
.hxd-win { border-radius: var(--radius-xl); overflow: hidden; background: var(--frame); box-shadow: 0 0 0 1px var(--frame-border), var(--shadow-pop); }
.hxd-win__bar { display: flex; align-items: center; gap: 0.5rem; height: 40px; padding: 0 0.625rem; }
.hxd-win__dots { display: inline-flex; gap: 5px; margin-right: 0.25rem; }
.hxd-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--frame-muted); }
.hxd-wtab { display: inline-flex; align-items: center; gap: 0.375rem; height: 30px; padding: 0 0.75rem; border: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--frame-muted-foreground); font-size: 0.75rem; cursor: pointer; max-width: 50%; transition: background-color 200ms, color 200ms; }
.hxd-wtab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxd-wtab[aria-selected="true"] { background: var(--background); color: var(--foreground); }
.hxd-win__page { position: relative; background: var(--background); min-height: 300px; }
.hxd-mini { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem; min-height: 300px; transition: filter 300ms, opacity 300ms; }
.hxd-mini.is-dim { filter: saturate(0.4); opacity: 0.55; }
.hxd-mini__top { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--muted-foreground); }
.hxd-mini__stage { position: relative; flex: 1; min-height: 180px; border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 0 0 1px var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; transition: box-shadow 300ms; }
/* The candidate's border, as the room draws it (lib/integrity.ts): green while they are here, red while the tab is hidden. Only a border, never an overlay. */
.hxd-mini__stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 3px oklch(0.62 0.14 155), inset 0 0 40px -12px oklch(0.62 0.14 155); transition: box-shadow 350ms var(--ease-out-quart); }
.hxd-mini.is-dim .hxd-mini__stage::after { box-shadow: inset 0 0 0 3px oklch(0.62 0.20 25), inset 0 0 40px -12px oklch(0.62 0.20 25); }
.hxd-mini__stage .hxd-wave { height: 72px; width: 140px; gap: 3px; }
.hxd-mini__stage .hxd-wave i { width: 3.5px; height: 72px; }
.hxd-mini__q { font-size: 0.8125rem; text-align: center; max-width: 24rem; padding: 0 1rem; color: var(--foreground); }
/* The candidate's one line, as the room's own notice: a card low on the left with a red edge and a shield tile. */
.hxd-mini__notice { position: absolute; z-index: 2; left: 1.5rem; bottom: 3rem; display: flex; align-items: flex-start; gap: 0.625rem; max-width: calc(100% - 3rem); padding: 0.625rem 0.75rem; border: 1px solid var(--border); border-left: 3px solid var(--risk); border-radius: var(--radius-xl); background: var(--popover); color: var(--popover-foreground); font-size: 0.8125rem; font-weight: 500; line-height: 1.35; box-shadow: var(--shadow-pop); opacity: 0; transition: opacity 240ms; }
.hxd-mini__notice.is-on { opacity: 1; }
.hxd-mini__notice i { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--radius-lg); background: var(--risk-muted); color: var(--risk); }
.hxd-mini__notice i svg { width: 16px; height: 16px; }
.hxd-mini__notice span { padding-top: 0.3125rem; }
.hxd-otherpage { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; background: var(--card); opacity: 0; pointer-events: none; transition: opacity 240ms; }
.hxd-otherpage.is-on { opacity: 1; }
.hxd-otherpage__search { height: 36px; border-radius: 18px; background: var(--muted); }
.hxd-otherpage__line { height: 10px; border-radius: 5px; background: var(--muted); width: 70%; }
.hxd-otherpage__line:nth-child(3) { width: 85%; } .hxd-otherpage__line:nth-child(4) { width: 55%; }
/* The desktop app window */
.hxd-app { border-radius: var(--radius-xl); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); }
.hxd-app__bar { display: flex; align-items: center; gap: 0.5rem; height: 36px; padding: 0 0.75rem; background: var(--frame); color: var(--frame-foreground); font-size: 0.75rem; font-weight: 500; }
.hxd-app__bar .hxd-win__dots { margin-right: 0.25rem; }
.hxd-app__bar--win { justify-content: space-between; }
.hxd-app__wctl { display: inline-flex; gap: 0.875rem; color: var(--frame-muted-foreground); font-size: 0.75rem; }
.hxd-app__body { padding: 0.875rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
/* The app's header (apps/secure-check/ui): the orange shield tile, its name and "for your interview"; the state chip wraps under them on a narrow window. */
.hxd-app__title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8125rem; }
.hxd-app__tile { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--brand); color: #fff; box-shadow: var(--shadow-soft); }
.hxd-app__tile svg { width: 22px; height: 22px; }
.hxd-app__title div { flex: 1 1 10rem; min-width: 0; }
.hxd-app__title b { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.hxd-app__title div span { font-size: 0.8125rem; color: var(--muted-foreground); }
/* Its check rows: one bordered list, a 26px tile, the name, then the result. */
.hxd-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.hxd-check { display: flex; align-items: center; gap: 0.75rem; padding: 11px 14px; border-top: 1px solid var(--border); font-size: 0.8125rem; transition: color 200ms; }
.hxd-check:first-child { border-top: 0; }
.hxd-check__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ok-muted); color: var(--ok); flex-shrink: 0; }
.hxd-check__ic svg { width: 14px; height: 14px; }
.hxd-check__name { flex: 1; font-weight: 500; }
.hxd-check__val { font-size: 0.78125rem; color: var(--muted-foreground); text-align: right; }
.hxd-check.is-flag .hxd-check__ic { background: var(--warn-muted); color: var(--warn); }
.hxd-check.is-flag .hxd-check__val { color: var(--warn); font-weight: 600; }
.hxd-app__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); flex-wrap: wrap; }
.hxd-app__foot a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.hxd-app__link { background: none; border: 0; padding: 0; color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; font-size: 0.75rem; cursor: pointer; }
.hxd-taskbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.hxd-taskbar__note { flex-basis: 100%; }
.hxd-taskbar__app { display: inline-flex; align-items: center; gap: 0.375rem; height: 26px; padding: 0 0.625rem; border-radius: 6px; background: var(--muted); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 240ms, transform 240ms var(--ease-out-quart); }
.hxd-taskbar__app.is-on { opacity: 1; transform: none; }
.hxd-taskbar__app i { width: 8px; height: 8px; border-radius: 2px; background: var(--muted-foreground); }
/* The recruiter side: live chip + toast and the report card */
.hxd-live-strip { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem; border-radius: var(--radius-xl); background: var(--frame); box-shadow: 0 0 0 1px var(--frame-border); min-height: 48px; }
.hxd-live-strip__who { font-size: 0.8125rem; font-weight: 600; }
.hxd-live-strip__sub { font-size: 0.75rem; color: var(--muted-foreground); }
.hxd-live-strip .hx-badge { margin-left: auto; opacity: 0; transition: opacity 240ms; }
.hxd-live-strip .hx-badge.is-on { opacity: 1; }
/* The chip the recruiter's room puts on the candidate's tile: a red-tinted dark pill, a shield, the label and a running clock. */
.hxd-tilechip { height: auto; gap: 0.375rem; padding: 0.25rem 0.625rem; border-color: color-mix(in oklch, oklch(0.62 0.20 25) 60%, transparent); border-radius: 9999px; background: color-mix(in oklch, oklch(0.62 0.20 25) 30%, rgb(0 0 0 / 0.7)); color: #fff; font-size: var(--text-2xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.hxd-tilechip::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: oklch(0.78 0.12 25); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
/* The mirrored toast: a card with a red edge, a shield and the one sentence. */
.hxd-toast { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-left: 3px solid var(--risk); border-radius: var(--radius-xl); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-pop); font-size: 0.875rem; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity 240ms, transform 240ms var(--ease-out-quart); }
.hxd-toast.is-on { opacity: 1; transform: none; }
.hxd-toast > span:first-child { display: flex; }
.hxd-toast svg { width: 16px; height: 16px; color: var(--risk); flex-shrink: 0; }
/* The report's integrity card (integrity-section.tsx): an icon and a badge that carry the level, one row per
   signal with a dot, and whether it was measured or inferred. A dot and words, never colour alone. */
.hxd-integ { padding: 0.875rem 1rem; border-radius: var(--radius-xl); background: var(--card); box-shadow: 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 0.75rem; transition: box-shadow 300ms; }
.hxd-integ.is-spot { box-shadow: 0 0 0 2px var(--brand); }
.hxd-integ__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.hxd-integ__head b { display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.hxd-integ__head b svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.hxd-integ__head b.is-flag svg { color: var(--warn); }
.hxd-integ__head b.is-risk svg { color: var(--risk); }
.hxd-integ__rows { display: flex; flex-direction: column; gap: 0.5rem; }
.hxd-irow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 0 0.5rem; font-size: 0.8125rem; line-height: 18px; }
.hxd-irow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.hxd-irow.is-warn::before { background: var(--warn); }
.hxd-irow.is-risk::before { background: var(--risk); }
.hxd-irow span:first-of-type { color: var(--muted-foreground); }
.hxd-irow .hxd-irow__val { text-align: right; font-weight: 500; color: var(--foreground); }
.hxd-irow .hxd-irow__src { grid-column: 2 / -1; font-size: var(--text-2xs); letter-spacing: 0.025em; text-transform: uppercase; color: var(--muted-foreground); }
.hxd-irow.is-new { animation: hxd-bubble 300ms var(--ease-out-expo) both; }
.hxd-integ__foot { padding-top: 0.625rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted-foreground); }
.hxd-sc__facts { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; padding: 0 0.125rem; }
.hxd-sc__facts b { color: var(--foreground); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hxd-msg, .hxd-chips, .hxd-bcard, .hxd-irow.is-new { animation: none; }
  .hxd-levels i, .hxd-live__head i, .hxd-typing i { animation: none; }
  /* A settling demo swaps the Assist card in one step: no half-faded card for a moment. */
  .hxd-live { transition: none; }
  .hxd-live.is-swapping { opacity: 1; transform: none; }
}
