/* Product worlds, ported from the real product sites.
   AuntCore: /Users/Abdullah/Projects/auntcore/frontend/src/features/auth/landingFan.css (fan, stream, question card).
   Journal Rounds: /Users/Abdullah/Projects/Nebula/apps/landing-page/index.html (paper field, floating native screenshots).
   JevRad: /Users/Abdullah/Projects/JEVTOCOL (app/globals.css, components/ACRWorkspace.tsx), the Try a Case chat. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/libre-baskerville.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/libre-baskerville-italic.woff2") format("woff2"); }

/* ---------- AuntCore world ---------- */
.ac-world {
  --ac-background: hsl(228 24% 6%);
  --ac-foreground: hsl(220 22% 92%);
  --ac-card: hsl(228 21% 11%);
  --ac-muted-foreground: hsl(221 14% 65%);
  --ac-border: hsl(226 18% 18%);
  --ac-primary: hsl(180 65% 54%);
  --ac-success: hsl(150 55% 52%);
  --ac-serif: "Libre Baskerville", Georgia, serif;
  --ac-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ac-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --fan-scale: 1;
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 0%, hsl(180 65% 54% / .08), transparent 70%), var(--ac-background);
  color: var(--ac-foreground); font-family: var(--ac-sans);
  -webkit-font-smoothing: antialiased;
}
.ac-world ::selection { background: hsl(180 65% 54% / .35); }
.ac-world :focus-visible { outline: 2px solid var(--ac-primary); outline-offset: 3px; }

.ac-path { margin: 0; color: var(--ac-muted-foreground); font-family: var(--ac-mono); font-size: .72rem; }
.ac-path b { color: var(--ac-primary); font-weight: 600; }
.ac-headline { margin: 0; font-family: var(--ac-mono); font-weight: 700; letter-spacing: -0.01em; line-height: 1.14; text-wrap: balance; color: var(--ac-foreground); }
.ac-arrow { display: inline-block; padding: 0 .06em; color: var(--ac-primary); }
.ac-inout { display: inline-block; padding: 0 .08em; color: var(--ac-primary); font-family: var(--ac-serif); font-size: .72em; font-style: italic; font-weight: 400; text-shadow: 0 0 22px hsl(180 65% 54% / .35); transform: rotate(-7deg) translateY(-0.04em); }
.ac-tagline { margin: 0; font-family: var(--ac-serif); font-style: italic; }
.ac-tagline em { color: var(--ac-primary); }

.ac-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.ac-fan-stream { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ac-fan-zone { position: relative; display: block; width: 100%; height: calc(520px * var(--fan-scale)); padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.ac-fan-root { position: absolute; left: 50%; bottom: calc(38px * var(--fan-scale)); width: 0; height: 0; transform: scale(var(--fan-scale)); }
.ac-fan-sway { position: absolute; left: 0; bottom: 0; width: 0; height: 0; }
.ac-fan-slot { position: absolute; bottom: 0; left: -59px; width: 118px; height: 428px; transform: rotate(-64deg); transform-origin: 50% 100%; transition: transform 780ms cubic-bezier(0.6, 0, 0.4, 1); transition-delay: calc((10 - var(--fan-index)) * 34ms); }
.ac-fan-slot:hover { z-index: 60; }
.ac-fan-hover-group { position: absolute; top: 0; left: 0; right: 0; height: 276px; transform-origin: 50% 50%; transition: transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.ac-fan-slot:hover .ac-fan-hover-group { transform: translateY(-14px) scale(1.05); }
.ac-fan-root.open .ac-fan-slot { transform: rotate(var(--fan-angle)); transition: transform 1050ms cubic-bezier(0.34, 1.32, 0.5, 1); transition-delay: calc(var(--fan-index) * 64ms + 140ms); }
.ac-fan-anchor { position: absolute; top: 276px; left: 50%; width: 0; height: 0; }
.ac-fan-rivet { position: absolute; left: 50%; bottom: calc(31px * var(--fan-scale)); z-index: 12; width: 13px; height: 13px; transform: translateX(-50%); border: 2px solid hsl(180 65% 54% / .75); border-radius: 50%; background: var(--ac-card); box-shadow: 0 0 14px hsl(180 65% 54% / .5); }
.ac-fan-book { position: absolute; top: 0; left: 0; right: 0; height: 276px; border-radius: 3px 10px 10px 3px; box-shadow: -7px 0 16px hsl(228 30% 3% / .6), 0 16px 30px hsl(228 30% 3% / .42), inset -1px 0 0 hsl(0 0% 100% / .08); transition: box-shadow 240ms ease; }
.ac-fan-zone:hover .ac-fan-book { box-shadow: -7px 0 16px hsl(228 30% 3% / .6), 0 16px 34px hsl(228 30% 3% / .48), 0 0 24px hsl(180 65% 54% / .1), inset -1px 0 0 hsl(0 0% 100% / .1); }
.ac-fan-root:not(.settled) .ac-fan-book { box-shadow: inset -1px 0 0 hsl(0 0% 100% / .08); }
.ac-fan-root:not(.settled) .ac-fan-slot:last-child .ac-fan-book { box-shadow: -4px 0 10px hsl(228 30% 3% / .24), 0 10px 22px hsl(228 30% 3% / .2), inset -1px 0 0 hsl(0 0% 100% / .08); }
.ac-fan-book::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 9px; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, hsl(0 0% 0% / .4), hsl(0 0% 100% / .1) 55%, hsl(0 0% 0% / .32)); }
.ac-fan-book::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: 1px; width: 5px; border-radius: 0 6px 6px 0; background: repeating-linear-gradient(180deg, hsl(40 25% 84%) 0, hsl(40 25% 84%) 1px, hsl(38 20% 68%) 1px, hsl(38 20% 68%) 2px); box-shadow: inset 1px 0 1px hsl(0 0% 0% / .35); }
.ac-fan-cover { position: absolute; top: 0; bottom: 0; left: 9px; right: 6px; display: flex; flex-direction: column; overflow: hidden; padding: 13px 8px 10px 10px; border-radius: 0 6px 6px 0; text-align: left; }
.ac-fan-frame { position: absolute; inset: 7px; border: 1px solid hsl(0 0% 100% / .16); border-radius: 4px; pointer-events: none; }
.ac-fan-glare { position: absolute; inset: 0; background: linear-gradient(105deg, hsl(0 0% 100% / .09), transparent 45%); pointer-events: none; }
.ac-fan-edition { position: relative; z-index: 1; align-self: flex-start; margin: 4px 0 0 2px; padding: 2px 7px; border: 1px solid hsl(0 0% 100% / .28); border-radius: 999px; color: hsl(0 0% 100% / .7); font-family: var(--ac-mono); font-size: .48rem; letter-spacing: .12em; text-transform: uppercase; }
.ac-fan-title { position: relative; z-index: 1; max-width: 58px; margin: 14px 2px 0; color: hsl(0 0% 100% / .96); font-family: var(--ac-serif); font-size: .74rem; line-height: 1.28; text-shadow: 0 1px 3px hsl(0 0% 0% / .45); }
.ac-fan-author { position: relative; z-index: 1; margin: 7px 2px 0; color: hsl(0 0% 100% / .66); font-family: var(--ac-serif); font-size: .58rem; font-style: italic; }
.ac-fan-publisher { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; margin-top: auto; padding: 6px 2px 2px; border-top: 1px solid hsl(0 0% 100% / .18); color: hsl(0 0% 100% / .55); font-family: var(--ac-mono); font-size: .44rem; letter-spacing: .16em; text-transform: uppercase; }
.ac-fan-publisher::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: hsl(180 65% 62% / .8); }
.ac-fan-book.c1 { background: linear-gradient(165deg, hsl(228 32% 20%), hsl(228 28% 10%)); }
.ac-fan-book.c2 { background: linear-gradient(165deg, hsl(196 38% 21%), hsl(226 28% 10%)); }
.ac-fan-book.c3 { background: linear-gradient(165deg, hsl(180 48% 24%), hsl(226 30% 9%)); }
.ac-fan-book.c4 { background: linear-gradient(165deg, hsl(222 32% 22%), hsl(230 32% 8%)); }
.ac-fan-book.c5 { background: linear-gradient(165deg, hsl(180 58% 27%), hsl(220 34% 9%)); }
.ac-fan-book.c6 { background: linear-gradient(165deg, hsl(28 45% 30%), hsl(24 40% 12%)); }
.ac-fan-book.c7 { background: linear-gradient(165deg, hsl(180 42% 22%), hsl(224 26% 11%)); }
.ac-fan-book.c8 { background: linear-gradient(165deg, hsl(215 30% 20%), hsl(228 32% 9%)); }
.ac-fan-book.c9 { background: linear-gradient(165deg, hsl(180 62% 25%), hsl(222 32% 10%)); }
.ac-fan-book.c10 { background: linear-gradient(165deg, hsl(354 40% 26%), hsl(350 38% 11%)); }
.ac-fan-book.c11 { background: linear-gradient(165deg, hsl(228 30% 18%), hsl(226 28% 9%)); }
.ac-fan-emoji { position: absolute; top: -40px; left: 50%; z-index: 2; font-size: 1.35rem; line-height: 1; pointer-events: none; transform: translateX(-50%) rotate(calc(var(--fan-angle) * -1)); filter: drop-shadow(0 4px 10px hsl(228 30% 3% / .65)); }

.ac-q { position: relative; z-index: 6; width: min(620px, 100%); padding: 22px 0 6px; text-align: left; }
.ac-q-stack { position: relative; transition: height 460ms cubic-bezier(0.22, 1, 0.36, 1); }
.ac-q-card { position: absolute; top: 0; left: 0; width: 100%; display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 360ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }
.ac-q-card.active { position: relative; opacity: 1; transform: none; pointer-events: auto; transition-delay: 140ms; z-index: 2; }
.ac-q-card.leave { opacity: 0; transform: translateY(-18px); transition-delay: 0ms; }
.ac-q-figure img { display: block; width: 100%; max-height: 230px; object-fit: cover; border: 1px solid hsl(180 65% 54% / .65); border-radius: 12px; box-shadow: 0 20px 48px hsl(228 24% 2% / .55); }
.ac-q-caption, .ac-q-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ac-muted-foreground); font-family: var(--ac-mono); text-transform: uppercase; }
.ac-q-caption { padding: 8px 2px 16px; font-size: .56rem; letter-spacing: .1em; }
.ac-q-meta { margin-bottom: 12px; font-size: .6rem; letter-spacing: .14em; }
.ac-q-caption b, .ac-q-meta b { color: var(--ac-primary); }
.ac-q-text { margin: 0 0 14px; font-size: .95rem; line-height: 1.6; }
.ac-q-choices { display: flex; flex-direction: column; gap: 8px; }
.ac-q-choice { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--ac-border); border-radius: 6px; background: hsl(228 21% 11% / .55); font-size: .83rem; }
.ac-q-choice .letter { flex: none; color: var(--ac-primary); font-family: var(--ac-mono); font-size: .68rem; }
.ac-q-choice.correct { border-color: hsl(150 55% 52% / .55); background: hsl(150 55% 52% / .09); box-shadow: 0 0 16px hsl(150 55% 52% / .16); }
.ac-q-choice.correct .letter { color: var(--ac-success); }
.ac-q-explain { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--ac-border); color: var(--ac-muted-foreground); font-size: .79rem; line-height: 1.6; }
.ac-q-explain b { color: var(--ac-success); }
.ac-q--compact .ac-q-choice:nth-child(n+3):not(.correct) { display: none; }


/* ---------- Journal Rounds world ---------- */
.jr-world {
  --jr-bg: #f8f5fa; --jr-ink: #111014; --jr-muted: #5f5d68; --jr-purple: #6c00c1; --jr-line: rgba(17,16,20,.105);
  --jr-serif: "Libre Baskerville", Georgia, serif;
  --mx: 50%; --my: 30%;
  position: relative; isolation: isolate; overflow: hidden; color: var(--jr-ink);
  background: linear-gradient(135deg, rgba(217,255,47,.10), transparent 26%), linear-gradient(28deg, rgba(108,0,193,.08), transparent 44%), linear-gradient(180deg, #f1ebf7 0%, #fbfafc 88%);
}
.jr-world::before, .jr-world::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.jr-world::before {
  background: radial-gradient(circle at 4px 4px, rgba(108,0,193,.05) 1px, transparent 1.35px), linear-gradient(90deg, rgba(17,16,20,.055) 1px, transparent 1px), linear-gradient(0deg, rgba(17,16,20,.042) 1px, transparent 1px);
  background-size: 8px 8px, 176px 118px, 176px 118px; opacity: .8;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.25) 80%, transparent); mask-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.25) 80%, transparent);
}
.jr-world::after {
  background: radial-gradient(circle at 4px 4px, rgba(108,0,193,.09) 1px, transparent 1.35px), linear-gradient(90deg, rgba(108,0,193,.16) 1px, transparent 1px), linear-gradient(0deg, rgba(108,0,193,.12) 1px, transparent 1px);
  background-size: 8px 8px, 176px 118px, 176px 118px;
  -webkit-mask-image: radial-gradient(300px circle at var(--mx) var(--my), rgba(0,0,0,.9), rgba(0,0,0,.3) 44%, transparent 72%); mask-image: radial-gradient(300px circle at var(--mx) var(--my), rgba(0,0,0,.9), rgba(0,0,0,.3) 44%, transparent 72%);
}
.jr-world :focus-visible { outline: 3px solid var(--jr-purple); outline-offset: 3px; }
.jr-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 13px; border: 1px solid var(--jr-line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--jr-muted); font-size: .72rem; font-weight: 600; }
.jr-kicker img { width: 18px; height: 18px; border-radius: 5px; }
.jr-kicker b { color: var(--jr-purple); }
.jr-sp { color: var(--jr-purple); font-family: var(--jr-serif); font-style: italic; font-weight: 400; }

.jr-phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3vw, 30px); }
.jr-cap { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: none; }
.jr-cap.l { transform: rotate(-3deg) translateY(22px); }
.jr-cap.r { transform: rotate(2.5deg); }
.jr-shot { width: var(--phone-w, 250px); overflow: hidden; line-height: 0; border-radius: calc(var(--phone-w, 250px) * .14); background: #141216; box-shadow: 0 40px 80px rgba(28,16,52,.3), 0 0 0 1px var(--jr-line); }
.jr-shot img { display: block; width: 100%; height: auto; }
.jr-shot--crop { aspect-ratio: 1206 / 1900; }
.jr-shot--crop img { height: 100%; object-fit: cover; object-position: top; }
.jr-pill { padding: 7px 16px; border: 1px solid var(--jr-line); border-radius: 999px; background: linear-gradient(180deg, #fff, rgba(248,246,250,.96)); color: var(--jr-muted); font-size: .7rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(28,16,52,.08); }


@media (prefers-reduced-motion: no-preference) {
  .ac-arrow { animation: ac-arrow-pulse 2.6s ease-in-out infinite; }
  .ac-fan-root.open .ac-fan-sway { animation: ac-fan-sway 9s ease-in-out infinite; transform-origin: 0 0; }
  .ac-fan-emoji { animation: ac-fan-bob 3.4s ease-in-out infinite; animation-delay: calc(var(--fan-index) * 180ms); }
  .jr-shot { animation: jr-float 6.4s ease-in-out infinite; }
  .jr-cap.r .jr-shot { animation-delay: -3.1s; }
  .jr-world::before { animation: gridDriftBase 32s linear infinite; }
  .jr-world::after { animation: gridDriftReveal 22s linear infinite reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-fan-slot { transform: rotate(var(--fan-angle)) !important; transition: none !important; }
  .ac-q-card { transition: none !important; }
}
@keyframes ac-arrow-pulse { 0%, 100% { text-shadow: 0 0 6px hsl(180 65% 54% / .2); } 50% { text-shadow: 0 0 26px hsl(180 65% 54% / .8); } }
@keyframes ac-fan-sway { 0%, 100% { transform: rotate(-0.7deg); } 50% { transform: rotate(0.7deg); } }
@keyframes ac-fan-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes jr-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes gridDriftBase { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 16px 16px, 176px 118px, 176px 118px; } }
@keyframes gridDriftReveal { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 16px 16px, 176px 118px, 176px 118px; } }

/* Journal carousel, from the Journal Rounds landing strip */
.jr-strip { position: relative; z-index: 1; width: 100%; }
.jr-strip-cap { margin: 0 0 12px; color: #a6a3b0; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-align: center; }
.jr-carousel { position: relative; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%); }
.jr-track { display: flex; align-items: baseline; gap: 44px; width: max-content; }
.wm { color: #8b8794; font-size: 1rem; white-space: nowrap; opacity: .78; }
.wm.serif { font-family: var(--jr-serif); font-weight: 700; }
.wm.ital { font-family: var(--jr-serif); font-style: italic; }
.wm.caps { letter-spacing: .16em; font-weight: 800; font-size: .8rem; }
.wm.lite { font-weight: 300; letter-spacing: .05em; }
@media (prefers-reduced-motion: no-preference) { .jr-track { animation: journalDrift 62s linear infinite; will-change: transform; } }
@keyframes journalDrift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 22px)); } }

/* ---------- JevRad world: the Try a Case chat, from /Users/Abdullah/Projects/JEVTOCOL (app/globals.css, components/ACRWorkspace.tsx).
   Neutral light tokens, adapted to sit on the page paper. ---------- */
.jv-world {
  --jv-text: #171717; --jv-muted: #666; --jv-line: rgba(17,16,20,.12); --jv-accent: #262626; --jv-soft: rgba(17,16,20,.05); --jv-surface: #fff;
  --jv-composer-muted: color-mix(in srgb, var(--jv-muted), var(--jv-text) 15%);
  --jv-fast: 120ms; --jv-base: 200ms; --jv-slow: 320ms; --jv-emphasis: 480ms;
  --jv-out: cubic-bezier(.16, 1, .3, 1); --jv-in-out: cubic-bezier(.65, 0, .35, 1);
  color: var(--jv-text);
}
.jv-headline { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.jv-headline span { color: var(--jv-muted); }

.jv-stage { display: flex; justify-content: center; }
.jv-demo { width: min(560px, 100%); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.jv-demo p { margin: 0 0 14px; text-wrap: pretty; }
.jv-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .2px; color: var(--jv-muted); }

/* The welcome and the finished exchange share one cell, so the row never changes height */
.jv-transcript { display: grid; padding-bottom: 20px; }
.jv-transcript > *, .jv-slot > * { grid-area: 1 / 1; min-width: 0; }
.jv-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 490px; margin: 0 auto; color: var(--jv-muted); text-align: center; }
.jv-welcome .jv-eyebrow { margin: 0 0 12px; }
.jv-demo .jv-welcome-h { margin: 0; color: var(--jv-text); font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.6px; text-wrap: balance; }
.jv-demo .jv-welcome-copy { margin: 12px 0 24px; }
.jv-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1px solid var(--jv-line); border-radius: 12px; color: var(--jv-text); font-size: 12px; font-weight: 500; line-height: 1.3;
  transition: background-color var(--jv-fast), transform var(--jv-fast); }
.jv-btn.is-pressed { transform: translateY(1px); background: var(--jv-soft); }

.jv-msg { overflow-wrap: anywhere; }
.jv-msg > small { display: block; margin-bottom: 8px; color: var(--jv-muted); font-size: 11px; letter-spacing: .2px; }
.jv-user { margin: 0 0 28px 12%; padding: 14px 18px; border-radius: 12px; background: var(--jv-soft); }
.jv-demo .jv-user p { margin: 0; }
.jv-slot { display: grid; }
.jv-demo .jv-pending-line { display: flex; align-items: center; gap: 8px; color: var(--jv-muted); font-size: 13px; }
.jv-activity { flex: none; }
.jv-activity-ring { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 1.75; stroke-linecap: round; }
.jv-activity-source { fill: currentColor; }
.jv-skeleton { display: grid; gap: 10px; max-width: 520px; }
.jv-skeleton span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--jv-soft) 0%, color-mix(in srgb, var(--jv-soft), var(--jv-text) 7%) 50%, var(--jv-soft) 100%) 0 0 / 200% 100%; }
.jv-skeleton span:nth-child(1) { width: 92%; }
.jv-skeleton span:nth-child(2) { width: 74%; }
.jv-skeleton span:nth-child(3) { width: 56%; }

.jv-demo .jv-context { color: var(--jv-muted); font-size: 12px; }
.jv-results { margin: 24px 0; }
.jv-results .jv-eyebrow { margin-bottom: 4px; }
.jv-studies { margin: 0; padding: 0; list-style: none; }
.jv-studies li { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--jv-line); }
.jv-studies li:last-child { border-bottom: 1px solid var(--jv-line); }
.jv-demo .jv-study { margin: 0 0 4px; font-size: 16px; font-weight: 500; line-height: 1.45; }
.jv-demo .jv-cat { margin: 0; color: var(--jv-muted); font-size: 12px; }
.jv-score { display: flex; align-items: baseline; gap: 4px; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jv-score strong { font-size: 25px; font-weight: 500; }
.jv-score small { color: var(--jv-muted); font-size: 11px; }
.jv-demo .jv-summary { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 0; font-size: 13px; font-weight: 500; }
.jv-scenario strong { font-weight: 600; }
.jv-demo .jv-scenario p:last-child { margin: 12px 0 0; }

/* Composer: the product's clockwise outline draw, tint, lift and halo while the case is typed */
.jv-composer { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--jv-surface); outline: 1px solid var(--jv-line); box-shadow: 0 6px 20px rgb(0 0 0 / .04);
  transition: background-color var(--jv-slow) var(--jv-in-out), translate var(--jv-slow) var(--jv-in-out); }
.jv-composer::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--jv-accent) 8%, transparent), 0 0 28px color-mix(in oklch, var(--jv-accent) 12%, transparent), 0 12px 32px -12px color-mix(in oklch, var(--jv-text) 18%, transparent);
  transition: opacity var(--jv-slow) var(--jv-in-out); }
.jv-outline { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; fill: none; pointer-events: none; }
.jv-outline rect { stroke: color-mix(in oklch, var(--jv-accent) 70%, var(--jv-surface)); stroke-width: 1.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset var(--jv-slow) linear, opacity var(--jv-slow) linear; }
.jv-composer.is-focus { translate: 0 -4px; background-color: color-mix(in oklch, var(--jv-surface), var(--jv-accent) 7%); transition-duration: var(--jv-emphasis); }
.jv-composer.is-focus::before { opacity: 1; transition-duration: var(--jv-emphasis); }
.jv-composer.is-focus .jv-outline rect { stroke-dashoffset: 0; opacity: 1; transition-duration: var(--jv-emphasis); }
.jv-field { display: grid; min-height: 56px; padding: 6px; }
.jv-field > * { grid-area: 1 / 1; white-space: pre-wrap; }
.jv-sizer, .jv-placeholder { visibility: hidden; }
.jv-placeholder { color: var(--jv-composer-muted); }
.jv-typed:empty + .jv-placeholder { visibility: visible; }
.jv-composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 0 2px; }
.jv-composer-foot small { color: var(--jv-composer-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.jv-status { flex: none; width: 10px; height: 10px; border: 1px solid var(--jv-line); border-radius: 50%; background: var(--jv-soft); transition: background-color var(--jv-base), border-color var(--jv-base); }
.jv-status[data-state="ready"] { border-color: var(--jv-accent); background: var(--jv-accent); }
.jv-status[data-state="busy"] { border-color: var(--jv-muted); background: var(--jv-muted); }
.jv-send { display: inline-grid; place-items: center; min-height: 32px; margin-left: auto; padding: 5px 12px; border: 1px solid var(--jv-accent); border-radius: 12px; background: var(--jv-accent); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; opacity: .5;
  transition: opacity var(--jv-fast), transform var(--jv-fast); }
.jv-send > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity var(--jv-base); }
.jv-send svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jv-send-busy { opacity: 0; }
.jv-send.is-pressed { transform: translateY(1px); }

/* Demo states, set by assets/products.js. Without a state the finished exchange shows, so the page reads without JavaScript. */
.jv-welcome, .jv-pending { visibility: hidden; }
.jv-stage[data-state="welcome"] .jv-welcome, .jv-stage[data-state="typing"] .jv-welcome { visibility: visible; }
.jv-stage[data-state="welcome"] .jv-exchange, .jv-stage[data-state="typing"] .jv-exchange { visibility: hidden; }
.jv-stage[data-state="sent"] .jv-pending { visibility: visible; }
.jv-stage[data-state="sent"] .jv-reply { visibility: hidden; }
.jv-stage[data-state="typing"] .jv-send { opacity: 1; }
.jv-stage[data-state="sent"] .jv-send-idle { opacity: 0; }
.jv-stage[data-state="sent"] .jv-send-busy { opacity: 1; }
/* Stacked under the text, the demo grows like a chat instead of reserving the finished height */
@media (max-width: 899px) {
  .jv-transcript, .jv-slot { display: block; }
  .jv-welcome, .jv-pending, .jv-sizer { display: none; }
  .jv-stage[data-state="welcome"] .jv-welcome, .jv-stage[data-state="typing"] .jv-welcome { display: flex; padding: 24px 0 12px; }
  .jv-stage[data-state="welcome"] .jv-exchange, .jv-stage[data-state="typing"] .jv-exchange { display: none; }
  .jv-stage[data-state="sent"] .jv-pending { display: block; }
  .jv-stage[data-state="sent"] .jv-reply { display: none; }
}
@media (max-width: 767px) {
  .jv-user { margin-left: 6%; }
  .jv-demo .jv-welcome-copy { font-size: 13px; }
  .jv-demo .jv-study { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .jv-stage[data-state="sent"] .jv-user, .jv-stage[data-state="sent"] .jv-pending, .jv-stage[data-state="done"] .jv-reply { animation: jv-rise var(--jv-base) var(--jv-out) backwards; }
  .jv-stage[data-state="done"] .jv-studies li { animation: jv-rise var(--jv-slow) var(--jv-out) backwards; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
  .jv-activity { animation: jv-orbit 1.1s linear infinite; }
  .jv-skeleton span { animation: jv-shimmer 1.6s linear infinite; }
  .jv-status[data-state="busy"] { animation: jv-pulse 1.4s var(--jv-out) infinite; }
}
@keyframes jv-rise { from { opacity: 0; transform: translateY(4px); } }
@keyframes jv-orbit { to { transform: rotate(360deg); } }
@keyframes jv-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes jv-pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--jv-muted) 50%, transparent); } to { box-shadow: 0 0 0 5px transparent; } }

/* ---------- Flat: the products sit directly on the page paper ---------- */
.ac-world.ac-flat {
  --ac-foreground: #111014; --ac-muted-foreground: #5f5d68; --ac-border: rgba(17,16,20,.12); --ac-card: #fff;
  --ac-primary: hsl(183 85% 30%); --ac-success: hsl(152 62% 30%);
  background: none; color: var(--ac-foreground); box-shadow: none; border-radius: 0; overflow: visible;
}
.ac-flat .ac-inout { text-shadow: none; }
.ac-flat .ac-fan-book { box-shadow: -6px 0 14px rgba(17,16,40,.22), 0 14px 26px rgba(17,16,40,.18), inset -1px 0 0 hsl(0 0% 100% / .08); }
.ac-flat .ac-fan-zone:hover .ac-fan-book { box-shadow: -6px 0 14px rgba(17,16,40,.24), 0 18px 32px rgba(17,16,40,.22), 0 0 22px hsl(183 85% 40% / .18), inset -1px 0 0 hsl(0 0% 100% / .1); }
.ac-flat .ac-fan-emoji { filter: drop-shadow(0 4px 8px rgba(17,16,40,.22)); }
.ac-flat .ac-fan-rivet { background: #fff; border-color: hsl(183 85% 36%); box-shadow: 0 0 14px hsl(183 85% 40% / .35); }
.ac-flat .ac-q-figure img { border-color: hsl(183 85% 36% / .7); box-shadow: 0 20px 44px rgba(17,16,40,.22); }
.ac-flat .ac-q-choice { background: rgba(255,255,255,.78); box-shadow: 0 4px 12px rgba(17,16,40,.04); }
.ac-flat .ac-q-choice.correct { background: hsl(150 55% 45% / .1); border-color: hsl(152 62% 34% / .55); box-shadow: 0 0 16px hsl(150 55% 45% / .14); }
.jr-world.jr-flat { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.jr-world.jr-flat::before, .jr-world.jr-flat::after { display: none; }
.jr-cap { width: var(--phone-w, 250px); }
.jr-pill { max-width: calc(var(--phone-w, 250px) + 16px); white-space: normal; text-align: center; line-height: 1.3; }
@media (max-width: 520px) { .jr-pill { padding: 6px 11px; font-size: .64rem; } }

/* ---------- OpenRoentgen: the app's chat in its framed demo window, from /Users/Abdullah/Projects/OpenRadiology:
   components/landing/framed-app-demo.tsx and verbalwars-landing.css (window, titlebar, replay),
   components/layout/app-shell.tsx (header, brand), components/workspace/chat.tsx and answer.tsx with
   styles/legacy-chat.css (thread, figures, modality tabs, references, dock). Content: recorded-conversation.json. ---------- */
.or-world .card-name { font-weight: 600; letter-spacing: -.02em; }
.or-headline { margin: 0; font-size: clamp(32px, 3.8vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.or-headline em { font-family: var(--serif); font-weight: 400; }
.or-world .card-desc { color: var(--mute); }
.or-stage { min-width: 0; }

.or-window {
  --or-bg: #fff; --or-text: #0a0a0a; --or-muted: #626262; --or-line: #e5e5e5; --or-tint: #e9e9e9; --or-soft: #f5f5f5;
  --or-ring: #737373; --or-accent: #262626; --or-hover: #f0f0f0; --or-composer: #eee; --or-flash: rgb(38 38 38 / .08);
  --or-radius: 14px; --or-fast: 120ms; --or-base: 200ms; --or-out: cubic-bezier(.16, 1, .3, 1);
  container: or-window / inline-size; position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid rgb(10 10 10 / .12); border-top-color: rgb(10 10 10 / .22); border-radius: 18px; background: var(--or-bg);
  box-shadow: 0 2px 6px -2px rgb(0 0 0 / .08), 0 16px 48px -16px rgb(0 0 0 / .35);
  color: var(--or-text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
.or-window :focus-visible { outline: 2px solid var(--or-ring); outline-offset: 2px; border-radius: 4px; }
.or-window a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--or-ring); }
.or-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Titlebar: demo badge, title, area, play state and the pause key */
.or-titlebar { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px 6px 16px; border-bottom: 1px solid rgb(10 10 10 / .1); color: var(--or-muted); font-size: 14px; line-height: 1.5; }
.or-title { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.or-title strong { min-width: 0; overflow: hidden; color: var(--or-text); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.or-title-area { white-space: nowrap; }
.or-badge { padding: 2px 8px; border: 1px solid var(--or-line); border-radius: 6px; white-space: nowrap; }
.or-status { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.or-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--or-muted); }
.or-window[data-playing="true"] .or-status-dot { background: #39856b; box-shadow: 0 0 0 3px rgb(57 133 107 / .18); }
.or-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--or-muted); cursor: pointer; transition: background-color var(--or-fast), color var(--or-fast); }
.or-icon:hover { background: var(--or-hover); color: var(--or-text); }
.or-icon[data-paused="true"] .or-i-pause, .or-icon[data-paused="false"] .or-i-play { display: none; }

/* The app surface keeps one height, so the replay never moves the page */
.or-app { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; height: 560px; }
.or-header { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; color: var(--or-muted); font-size: 14px; line-height: 20px; }
.or-header-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-left: -6px; }
.or-header-icon .or-i { width: 18px; height: 18px; }
.or-brand { display: flex; flex: none; align-items: center; gap: 7px; color: var(--or-text); font-size: 15px; font-weight: 600; letter-spacing: -.4px; white-space: nowrap; }
.or-brand svg { width: 24px; height: 24px; }
.or-crumbs { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding-left: 12px; border-left: 1px solid var(--or-line); }
.or-crumbs > span:first-child { flex: none; white-space: nowrap; }
.or-crumbs .or-i { width: 13px; height: 13px; }
.or-crumb-current { min-width: 0; overflow: hidden; color: var(--or-text); text-overflow: ellipsis; white-space: nowrap; }

.or-chat { position: relative; min-width: 0; min-height: 0; overflow-y: hidden; overscroll-behavior-y: auto; padding: 0 20px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%); }
.or-window .or-chat:focus-visible { outline-offset: -2px; }
.or-thread { padding: 24px 0 32px; }
.or-turn { display: grid; gap: 18px; }
.or-msg-user { display: flex; justify-content: flex-end; }
.or-bubble { min-width: 0; max-width: min(560px, 85%); margin: 0; padding: 12px 16px; border-radius: var(--or-radius); background: var(--or-soft); }
.or-msg-assistant { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.or-avatar { width: 32px; height: 32px; overflow: hidden; border-radius: 999px; }
.or-avatar svg { width: 32px; height: 32px; }
.or-assistant-body { min-width: 0; }
.or-msg-label { display: block; margin: 7px 0 8px; color: var(--or-muted); font-size: 14px; font-weight: 500; }
.or-meta { margin: 0 0 8px; color: var(--or-muted); font-size: 14px; }
.or-steps { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.or-step { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.or-step-icon { flex: none; width: 14px; height: 14px; margin-top: 3px; border: 2px solid var(--or-line); border-radius: 999px; }
.or-step.is-active .or-step-icon { border-top-color: var(--or-text); }
.or-step.is-done .or-step-icon { border-color: var(--or-muted); background: var(--or-muted); box-shadow: inset 0 0 0 2px var(--or-bg); }
.or-step-label { font-weight: 500; }
.or-step-detail { color: var(--or-muted); font-variant-numeric: tabular-nums; }

.or-answer { line-height: 1.7; }
.or-answer > p { margin: 0 0 14px; text-wrap: pretty; }
.or-cite { position: relative; display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin: 0 1px 0 3px; padding: 0 5px; vertical-align: 2px; border-radius: 999px; background: var(--or-tint); color: var(--or-text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; text-decoration: none; }
@media (hover: hover) { .or-cite:hover { background: var(--or-accent); color: #fff; } }
.or-skeleton { display: none; gap: 24px; margin-bottom: 14px; padding-top: 7px; }
.or-skeleton > div { display: grid; gap: 14px; }
.or-skeleton span { display: block; height: 12px; border-radius: 4px; background: linear-gradient(110deg, var(--or-tint) 25%, color-mix(in srgb, var(--or-tint), var(--or-text) 9%) 45%, var(--or-tint) 65%) 0 0 / 250% 100%; }
.or-skeleton span:nth-child(2) { width: 94%; }
.or-skeleton span:nth-child(3) { width: 98%; }
.or-skeleton span:last-child { width: 66%; }
.or-skeleton > div + div span:last-child { width: 78%; }

/* Figures: one card per diagnosis; modality panels share one cell, so switching never changes the card's height */
.or-figures { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 6px 0 18px; }
.or-figure { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 0 0 10px; }
.or-figure--card, .or-modality-figure { overflow: hidden; border: 1px solid var(--or-line); border-radius: var(--or-radius); background: var(--or-bg); }
.or-frame { display: block; height: 172px; margin-bottom: 4px; background: #000; }
.or-frame img { width: 100%; height: 100%; object-fit: contain; }
.or-figure > p { margin: 0; padding: 0 12px; font-size: 14px; line-height: 1.45; }
.or-figure-caption strong { font-weight: 600; }
.or-figure-excerpt { display: -webkit-box; overflow: hidden; color: var(--or-muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.or-figure-excerpt > span { display: block; color: var(--or-text); font-weight: 600; }
.or-figure-source { color: var(--or-muted); }
.or-modality-figure { display: grid; grid-template-areas: "head" "panel"; min-width: 0; }
.or-fm-head { grid-area: head; display: grid; gap: 6px; padding: 12px 12px 10px; border-bottom: 1px solid var(--or-line); }
.or-fm-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.or-fm-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.or-fm-label { flex: none; padding-right: 10px; border-right: 1px solid var(--or-line); color: var(--or-muted); font-size: 13px; line-height: 20px; }
.or-tabs { display: flex; gap: 2px; min-width: 0; max-width: 100%; overflow-x: auto; padding: 3px; border-radius: 10px; background: var(--or-soft); scrollbar-width: none; }
.or-tabs button { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--or-muted); font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color var(--or-fast), color var(--or-fast); }
.or-tabs button:hover { color: var(--or-text); }
.or-tabs [aria-selected="true"] { background: var(--or-bg); color: var(--or-text); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 0 0 1px rgb(0 0 0 / .04); }
.or-tab-count { color: var(--or-muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.or-fm-panel { grid-area: panel; display: grid; min-width: 0; }

/* References, AMA style */
.or-refs-wrap { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--or-line); }
.or-refs-title { margin: 0 0 8px; color: var(--or-muted); font-size: 14px; font-weight: 600; }
.or-refs { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.or-ref { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px; padding: 6px 8px; border-radius: 10px; scroll-margin-top: 24px; }
.or-window .or-ref:focus { outline: none; }
.or-ref:target { background: var(--or-flash); }
.or-ref-num, .or-ref-text { color: var(--or-muted); font-size: 14px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.or-ref-text { margin: 0; }
.or-window .or-ref-title { color: var(--or-text); font-weight: 500; text-decoration: none; }
@media (hover: hover) { .or-window .or-ref-title:hover { text-decoration: underline; } }
.or-ref-journal { color: var(--or-text); font-style: italic; }
.or-ref-year { color: var(--or-text); font-weight: 600; }
.or-ref-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgb(217 119 6 / .14); color: #a14a04; font-weight: 500; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }

/* Dock: the resting one-row composer with the round purple send key; inert in the recording */
.or-dock { padding: 6px 20px 8px; }
.or-composer { display: flex; align-items: center; min-height: 56px; border-radius: var(--or-radius); background: var(--or-composer); }
.or-field { display: grid; flex: 1; min-width: 0; padding: 15px 8px 15px 18px; font-size: 14px; line-height: 26px; }
.or-field > span { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-placeholder, .or-placeholder-home { color: var(--or-muted); }
.or-draft, .or-placeholder-home { visibility: hidden; }
.or-send { position: relative; isolation: isolate; display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-right: 12px; border-radius: 999px; background: rgb(124 77 255 / .12); color: #7a52e6; transition: color var(--or-base) var(--or-out); }
.or-send::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity var(--or-base) var(--or-out);
  background: radial-gradient(120% 120% at 30% 18%, #c4b1ff 0%, #8b5cf6 46%, #6233d6 100%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .5), inset 0 -3px 5px rgb(45 10 130 / .4), 0 6px 14px -4px rgb(110 60 230 / .6), 0 1px 2px rgb(0 0 0 / .35); }
.or-sweep { position: absolute; inset: -4px; border-radius: inherit; opacity: 0; pointer-events: none; background: conic-gradient(transparent 0turn, transparent .45turn, #8b5cf6 1turn);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); }
.or-composer[data-state="armed"] .or-send { color: #4a20b5; }
.or-composer[data-state="armed"] .or-send::before { opacity: .55; }
.or-composer[data-state="answering"] .or-send { color: #fff; }
.or-composer[data-state="answering"] .or-send::before, .or-composer[data-state="answering"] .or-sweep { opacity: 1; }
.or-dock-note { margin: 5px 0 0; color: var(--or-muted); font-size: 13px; text-align: center; }

/* Welcome screen, shown only during the replay */
.or-empty { display: none; align-content: center; justify-items: center; gap: 24px; height: 100%; padding: 12px 0 10px; text-align: center; }
.or-chat-title { margin: 0; font: 400 40px/1.05 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.or-sample { display: grid; gap: 2px; width: min(300px, 100%); margin: 0; padding: 12px 14px; border-radius: var(--or-radius); background: var(--or-composer); font-size: 14px; line-height: 1.5; text-align: left; }
.or-sample-label { color: var(--or-muted); font-weight: 600; letter-spacing: .02em; }

.or-window [hidden] { display: none; }
.or-window .or-fm-panel[hidden] { display: grid; visibility: hidden; }

/* Replay phases, set by assets/products.js. Without a phase the finished answer shows, so it reads without JavaScript. */
.or-step.is-active { display: none; }
.or-window:is([data-phase="0"], [data-phase="1"]) .or-empty { display: grid; }
.or-window:is([data-phase="0"], [data-phase="1"]) :is(.or-thread, .or-crumb-sep, .or-crumb-current) { display: none; }
.or-window:is([data-phase="0"], [data-phase="1"]) .or-chat { overflow: hidden; -webkit-mask-image: none; mask-image: none; }
.or-window[data-phase="0"] .or-placeholder, .or-window[data-phase="1"] .or-placeholder { visibility: hidden; }
.or-window[data-phase="0"] .or-placeholder-home, .or-window[data-phase="1"] .or-draft { visibility: visible; }
.or-window[data-phase="2"] .or-step.is-active { display: flex; }
.or-window[data-phase="2"] .or-skeleton { display: grid; }
.or-window[data-phase="2"] :is(.or-step.is-done, .or-answer > p, .or-figures, .or-refs-wrap) { display: none; }
.or-figures, .or-refs-wrap { transition: opacity 600ms ease-out; }
.or-window[data-phase="3"] :is(.or-figures, .or-refs-wrap), .or-window[data-phase="4"] .or-refs-wrap { visibility: hidden; opacity: 0; }
.or-window[data-playing="false"] :is(.or-step-icon, .or-skeleton span, .or-sweep) { animation-play-state: paused; }

/* The app's narrow layout: no avatar, a shorter titlebar and the compact brand */
@container or-window (max-width: 520px) {
  .or-title-area, .or-status, .or-brand-name, .or-avatar, .or-fm-label { display: none; }
  .or-titlebar { padding-left: 12px; }
  .or-title { gap: 8px; }
  .or-header { padding: 0 12px; }
  .or-chat { padding: 0 14px; }
  .or-dock { padding-inline: 12px; }
  .or-msg-assistant { grid-template-columns: minmax(0, 1fr); }
  .or-bubble { max-width: 88%; }
  .or-chat-title { font-size: 32px; }
  .or-frame { height: 180px; }
  .or-tabs button { padding: 0 10px; }
}
@media (pointer: coarse) {
  .or-icon { width: 44px; height: 44px; }
  .or-tabs button { min-height: 44px; }
  .or-cite::after { content: ""; position: absolute; inset: -13px -6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .or-window[data-playing="true"] .or-status-dot { animation: or-pulse 2s ease-in-out infinite; }
  .or-step.is-active .or-step-icon { animation: or-orbit .8s linear infinite; }
  .or-skeleton span { animation: or-shimmer 2.4s ease-in-out infinite; }
  .or-sweep { animation: or-sweep 1.3s linear infinite; }
  .or-window[data-phase="2"] .or-turn > * { animation: or-rise var(--or-base) var(--or-out) both; }
  .or-window[data-phase="2"] .or-turn > * + * { animation-delay: 80ms; }
  .or-window[data-phase="3"] .or-answer > p { animation: or-fade 600ms ease-out both; }
  .or-ref.is-flashing { animation: or-flash 1.6s var(--or-out); }
}
@media (prefers-reduced-motion: reduce) {
  .or-figures, .or-refs-wrap { transition: none; }
  .or-ref.is-flashing { background: var(--or-flash); }
}
@keyframes or-pulse { 50% { opacity: .45; } }
@keyframes or-orbit { to { transform: rotate(360deg); } }
@keyframes or-shimmer { to { background-position: -200% 0; } }
@keyframes or-sweep { to { transform: rotate(1turn); } }
@keyframes or-rise { from { opacity: 0; transform: translateY(4px); } }
@keyframes or-fade { from { opacity: 0; } }
@keyframes or-flash { from { background: var(--or-flash); box-shadow: 0 0 0 2px var(--or-ring); } }

/* ---------- VerbalWars: the landing page's ExamRoom, from /Users/Abdullah/Projects/VerbalWars:
   components/landing-page/exam-room.tsx, components/case/viewer/ (image-viewer-panel, viewer-toolbar, filmstrip),
   components/case/thread/message-avatar.tsx, the SVG fallback of components/shared/siri-wave.tsx and styles/tokens.css.
   The case is lib/landing-page/demo-case.ts. ---------- */
.vw-world .card-name { font-weight: 600; letter-spacing: -.02em; }
.vw-headline { margin: 0; font-family: var(--serif); font-size: clamp(40px, 4.6vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.vw-headline em { font-weight: 400; }
.vw-world .card-desc { color: var(--mute); }
.vw-stage { min-width: 0; }

.vw-room {
  --vw-fg: oklch(.145 0 0); --vw-muted: oklch(.97 0 0); --vw-muted-fg: oklch(.556 0 0); --vw-border: oklch(.922 0 0);
  --vw-primary: oklch(.205 0 0); --vw-ring: oklch(.556 0 0); --vw-hit: oklch(.95 .05 150); --vw-hit-fg: oklch(.35 .1 150);
  --vw-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  container: vw-room / inline-size; position: relative; overflow: hidden;
  border: 1px solid rgb(10 10 10 / .12); border-top-color: rgb(10 10 10 / .2); border-radius: 18px; background: #fff;
  box-shadow: 0 2px 6px -2px rgb(0 0 0 / .08), 0 16px 48px -16px rgb(0 0 0 / .3);
  color: var(--vw-fg); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
.vw-room :focus-visible { outline: 2px solid var(--vw-ring); outline-offset: 2px; border-radius: 6px; }
.vw-room a { color: inherit; text-underline-offset: 4px; }
.vw-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.vw-room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px; border-bottom: 1px solid var(--vw-border); color: var(--vw-muted-fg); }
.vw-playback { display: flex; flex: none; gap: 4px; margin-left: auto; }
.vw-playback .vw-icon { width: 44px; height: 44px; }
.vw-room-title { color: var(--vw-fg); font-weight: 500; }
.vw-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--vw-border); border-radius: 999px; color: var(--vw-fg); font-size: 12px; font-weight: 500; white-space: nowrap; }
.vw-badge--stage { border-color: transparent; background: var(--vw-muted); }

/* Viewer: toolbar, black stage with its label, filmstrip */
.vw-room-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.vw-viewer { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 420px; }
.vw-toolbar { display: flex; flex-wrap: wrap; flex: none; align-items: center; gap: 8px; min-height: 56px; padding: 8px; border-bottom: 1px solid var(--vw-border); }
.vw-toolbar-title { display: flex; flex-direction: column; flex-basis: 100%; min-width: 0; margin: 0; padding: 0 4px; line-height: 1.3; }
.vw-toolbar-title span { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.vw-toolbar-title small { color: var(--vw-muted-fg); font-size: 12px; }
.vw-tools { display: flex; align-items: center; gap: 4px; max-width: 100%; margin-left: auto; }
.vw-zoom { width: 44px; color: var(--vw-muted-fg); font: 12px var(--vw-mono); font-variant-numeric: tabular-nums; text-align: center; }
.vw-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--vw-fg); cursor: pointer; transition: background-color 120ms, border-color 120ms; }
.vw-icon:hover, .vw-icon[aria-pressed="true"] { background: var(--vw-muted); }
.vw-icon--outline { border-color: var(--vw-border); box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.vw-icon[data-vw-toggle][data-paused="true"] .vw-i-pause, .vw-icon[data-vw-toggle][data-paused="false"] .vw-i-play { display: none; }
.vw-viewer-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; }
.vw-viewer-stage.is-zoomed { cursor: grab; touch-action: none; }
.vw-viewer-stage.is-dragging { cursor: grabbing; }
.vw-layer { position: absolute; inset: 0; transform-origin: 50% 50%; }
.vw-layer img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.vw-chip { position: absolute; top: 12px; left: 12px; padding: 2px 8px; border: 1px solid var(--vw-border); border-radius: 6px; background: rgb(255 255 255 / .8); font: 12px/1.5 var(--vw-mono); pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vw-filmstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: none; align-items: start; gap: 6px; padding: 8px; border-top: 1px solid var(--vw-border); }
.vw-filmstrip button { display: flex; flex: none; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }
.vw-thumb { display: block; width: min(56px, 100%); height: auto; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #000; opacity: .7; transition: opacity 120ms, box-shadow 120ms; }
.vw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vw-filmstrip button:hover .vw-thumb, .vw-filmstrip [aria-current="true"] .vw-thumb { opacity: 1; }
.vw-filmstrip [aria-current="true"] .vw-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--vw-ring); }
.vw-thumb-label { width: 100%; overflow: hidden; color: var(--vw-muted-fg); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

/* Transcript: examiner and candidate rows with the app's avatars; coaching is its own green answer */
.vw-transcript { position: relative; min-width: 0; min-height: 0; border-top: 1px solid var(--vw-border); }
.vw-thread { display: flex; flex-direction: column; gap: 16px; height: 300px; overflow-y: hidden; overscroll-behavior-y: auto; padding: 16px; scrollbar-width: thin; }
.vw-room .vw-thread:focus-visible { outline-offset: -2px; }
.vw-line { display: flex; gap: 12px; }
.vw-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--vw-border); border-radius: 999px; background: var(--vw-muted); font-size: 12px; font-weight: 500; }
.vw-avatar--you { border-color: transparent; background: var(--vw-primary); color: #fafafa; }
.vw-line-body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.vw-line-body > p { margin: 0; line-height: 1.625; }
.vw-line-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vw-who { font-weight: 500; }
.vw-coach { margin-top: 4px; padding: 10px 14px; border: 1px solid color-mix(in oklch, var(--vw-hit-fg) 30%, transparent); border-radius: 16px 4px 16px 16px; background: color-mix(in oklch, var(--vw-hit) 60%, transparent); line-height: 1.625; }
.vw-coach > span { display: block; margin-bottom: 2px; color: var(--vw-hit-fg); font-size: 12px; font-weight: 600; }
.vw-caret { display: inline-block; width: 2px; height: .9em; margin-left: 2px; background: var(--vw-fg); transform: translateY(2px); }
.vw-room[data-paused] .vw-caret { visibility: hidden; }

/* Voice bar: state, the wave and the case controls, then the image credit */
.vw-bar { --vw-amp: 1.3; display: grid; grid-template-columns: minmax(0, max-content) minmax(40px, 1fr) auto; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--vw-border); }
.vw-bar[data-phase="listening"] { --vw-amp: 2.4; }
.vw-state { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; color: var(--vw-muted-fg); }
.vw-state > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-state-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--vw-muted-fg); }
.vw-bar[data-live] .vw-state-dot { background: var(--vw-hit-fg); box-shadow: 0 0 0 3px var(--vw-hit); }
.vw-wave { width: 100%; height: 56px; overflow: visible; color: var(--vw-fg); }
.vw-wave path { transform-box: fill-box; transform-origin: center; }
.vw-controls { display: flex; align-items: center; gap: 4px; }
.vw-mic { display: grid; place-items: center; width: 36px; height: 36px; color: var(--vw-muted-fg); opacity: .6; }
.vw-credit { margin: 0; padding: 10px 16px; border-top: 1px solid var(--vw-border); color: var(--vw-muted-fg); font-size: 12px; line-height: 1.6; }

.vw-room [hidden] { display: none; }

/* Wide enough for the app's split: viewer beside the transcript at one fixed height */
@container vw-room (min-width: 560px) {
  .vw-room-body { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); height: 520px; }
  .vw-viewer { height: auto; }
  .vw-transcript { border-top: 0; border-left: 1px solid var(--vw-border); }
  .vw-thread { height: 100%; }
}
@container vw-room (min-width: 480px) { .vw-state { min-width: 144px; } }
@container vw-room (max-width: 559px) { .vw-room-meta { display: none; } }
@container vw-room (max-width: 479px) { .vw-mic { display: none; } }
@media (pointer: coarse) {
  .vw-icon { width: 44px; height: 44px; }
  .vw-tools { gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .vw-line, .vw-coach { animation: vw-in 200ms cubic-bezier(.16, 1, .3, 1) both; }
  .vw-bar[data-live] .vw-state-dot { animation: vw-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
  .vw-bar[data-live] .vw-wave path { animation: vw-wave 1.1s ease-in-out infinite; }
  .vw-room:not([data-paused]) .vw-caret { animation: vw-pulse 1s cubic-bezier(.4, 0, .6, 1) infinite; }
  .vw-layer { transition: transform 120ms cubic-bezier(.16, 1, .3, 1); }
  .vw-viewer-stage.is-dragging .vw-layer { transition: none; }
}
@keyframes vw-in { from { opacity: 0; transform: translateY(4px); } }

/* Keep the native brands while making every meaningful label comfortable to read. */
.ac-path, .ac-q-caption, .ac-q-meta { font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.ac-q-caption, .ac-q-meta { flex-wrap: wrap; }
.ac-q-text, .ac-q-choice { font-size: 16px; }
.ac-q-choice .letter { font-size: 14px; }
.ac-q-explain { font-size: 15px; }
.ac-flat .ac-path b, .ac-flat .ac-inout, .ac-flat .ac-tagline em,
.ac-flat .ac-q-caption b, .ac-flat .ac-q-meta b, .ac-flat .ac-q-choice .letter { color: #04363b; }
.ac-q--compact .ac-q-choice:nth-child(n+3):not(.correct) { display: flex; }
.jr-pill { font-size: 13px; }
.jr-strip-cap { color: var(--jr-muted); font-size: 14px; letter-spacing: .02em; }
.jv-demo { font-size: 16px; }
.jv-eyebrow, .jv-msg > small, .jv-demo .jv-context, .jv-demo .jv-cat, .jv-composer-foot small { font-size: 14px; }
.jv-demo .jv-scenario, .jv-demo .jv-summary { font-size: 14px; }
.jv-score small, .jv-btn, .jv-send, .jv-demo .jv-welcome-copy { font-size: 14px; }
.or-window { font-size: 16px; }
.or-titlebar, .or-badge, .or-figure-caption, .or-figure-excerpt, .or-figure-source, .or-ref, .or-ref-meta, .or-dock-note { font-size: 14px; }
.or-icon { width: 44px; height: 44px; }
.or-tabs button { min-height: 44px; }
.or-fm-label, .or-tab-count { font-size: 14px; }
.or-refs-wrap a { text-underline-offset: 3px; }
.vw-room { --vw-muted-fg: #626262; font-size: 16px; }
.vw-room-head, .vw-badge, .vw-toolbar-title small, .vw-zoom, .vw-thumb-label, .vw-credit { font-size: 14px; }
.vw-badge { height: auto; min-height: 24px; }
.vw-toolbar-title { line-height: 1.5; }
.vw-icon { width: 44px; height: 44px; }
.vw-tools { gap: 2px; }
.vw-thumb-label { overflow: visible; overflow-wrap: normal; text-overflow: clip; white-space: normal; line-height: 1.3; }
.vw-coach > span { font-size: 14px; }
@media (max-width: 520px) { .jr-pill { font-size: 13px; } }
@keyframes vw-pulse { 50% { opacity: .5; } }
@keyframes vw-wave { 0%, 100% { transform: scaleY(1); } 25% { transform: scaleY(var(--vw-amp)); } 75% { transform: scaleY(calc(var(--vw-amp) * -1)); } }

/* Credits remain usable outside the inert recording surface. */
.or-credit { margin: 0; padding: 10px 16px; border-top: 1px solid var(--or-line); color: var(--or-muted); font-size: 13px; line-height: 1.6; }
