/* Welcome screen, demo overlay and the animated walkthroughs (same clear-glass language as app.css). */

/* ---- Welcome ------------------------------------------------------------------------------------------ */
.welcome { display: grid; gap: 22px; }
.welcome-hero { max-width: 760px; }
.welcome-lede { max-width: 38rem; margin: 0 0 22px; font-size: 17px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.welcome-actions svg, .demo-pill svg { width: 16px; height: 16px; }
.welcome-skip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); cursor: pointer; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.welcome-card { padding: 20px 22px; border-radius: 22px; }
.welcome-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #67e8f9; margin: 0 0 12px; }
.welcome-card ul, .welcome-card ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .86); line-height: 1.45; }
.welcome-who { list-style: none; padding: 0 !important; }
.welcome-who li { display: grid; gap: 1px; }
.welcome-who strong { color: #fff; font-weight: 600; }
.welcome-who span { color: rgba(255, 255, 255, .66); font-size: 13.5px; }
.welcome-steps li::marker { color: #93c5fd; font-weight: 600; }
.welcome-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.welcome-benefits li { display: grid; gap: 4px; padding: 14px 4px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.welcome-benefits strong { font-size: 15px; color: #fff; font-weight: 600; }
.welcome-benefits span { font-size: 13.5px; color: rgba(255, 255, 255, .68); line-height: 1.45; }

/* Portals screen heading */
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.portal-title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.serif-accent { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: rgba(214, 228, 255, .8); letter-spacing: -.02em; }
.portal-head-links { display: flex; align-items: center; gap: 16px; }
.demo-pill { padding: 10px 18px; gap: 8px; }

@media (max-width: 980px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Overlay and list ------------------------------------------------------------------------------------ */
.demo-overlay { z-index: 60; background: rgba(3, 6, 15, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-dialog { width: min(1120px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 28px; padding: 28px 32px; background: rgba(12, 18, 40, .78) !important; }
.demo-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.demo-close:hover { background: rgba(255, 255, 255, .16); }
.demo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-card { display: grid; gap: 6px; text-align: left; padding: 20px 22px; border-radius: 22px; color: #fff; cursor: pointer; font: inherit; }
.demo-card .index { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #67e8f9; }
.demo-card strong { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.demo-card .desc { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.45; }
.demo-play-chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: #0a0f1f; font-size: 13.5px; font-weight: 600; }
.demo-play-chip svg { width: 12px; height: 12px; }
.demo-card:hover { transform: translateY(-2px); }

/* ---- Player ------------------------------------------------------------------------------------------- */
.demo-player-head { display: flex; align-items: center; gap: 22px; margin: 0 48px 14px 0; }
.demo-player-head .back { margin: 0; }
.demo-player-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.demo-player-who { margin: 2px 0 0; color: rgba(255, 255, 255, .66); font-size: 14px; }
.demo-stage-box { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 290px); min-height: 240px; border-radius: 18px; overflow: hidden;
  background: #050816; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.demo-stage { position: absolute; width: 960px; height: 540px; transform-origin: 0 0; overflow: hidden;
  background: radial-gradient(60% 70% at 20% 10%, #1e3a8a 0%, rgba(30, 58, 138, 0) 70%), radial-gradient(50% 60% at 90% 90%, #0e7490 0%, rgba(14, 116, 144, 0) 70%), #070b1a; }
.demo-screen { position: absolute; inset: 0; padding: 22px; }
.demo-replay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.demo-caption { min-height: 48px; margin: 12px 2px 8px; font-size: 16px; line-height: 1.45; color: #fff; }
.demo-controls { display: flex; align-items: center; gap: 12px; }
.demo-ctl { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #0a0f1f; display: grid; place-items: center; cursor: pointer; flex: none; }
.demo-ctl svg { width: 16px; height: 16px; }
#demo-restart { background: rgba(255, 255, 255, .1); color: #fff; }
.demo-progress { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); cursor: pointer; position: relative; }
.demo-progress span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #22d3ee); }
.demo-time { font-family: var(--mono); font-size: 12.5px; color: rgba(255, 255, 255, .72); min-width: 84px; text-align: right; }
.demo-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.demo-chapters button { border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.demo-chapters button.on { background: rgba(96, 165, 250, .28); color: #fff; box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .6); }

/* The cursor and the warning toast float above the screen. */
.demo-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; margin: -2px 0 0 -3px; }
.demo-cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.demo-cursor i { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #93c5fd; opacity: 0; }
.demo-cursor.clicking i { animation: demo-click .38s ease-out; }
@keyframes demo-click { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
.demo-warn { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 4; max-width: 560px; display: flex; gap: 10px; align-items: center;
  padding: 12px 18px; border-radius: 14px; background: #7f1d1d; color: #fff; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  border: 1px solid rgba(252, 165, 165, .5); animation: demo-pop .3s var(--enter); }
.demo-warn b { font-weight: 700; color: #fecaca; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; }
@keyframes demo-pop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  .demo-cursor.clicking i, .demo-warn { animation: none; }
}

/* ---- Re-created app screens inside the stage (960 x 540 design pixels) ------------------------------ */
.d-win { position: absolute; inset: 18px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); }
.d-win-glass { background: rgba(10, 16, 38, .86); color: #fff; }
.d-win-paper { background: #f7f8fb; color: #14171a; }
.d-titlebar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; font-size: 12px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.d-win-paper .d-titlebar { background: #0f172a; color: #fff; }
.d-wordmark { font-weight: 600; letter-spacing: -.02em; font-size: 14px; }
.d-wordmark sup { font-size: 8px; opacity: .6; }
.d-wordmark.ink { color: #14171a; }
.d-title { opacity: .7; }
.d-winbtns { margin-left: auto; display: flex; gap: 10px; }
.d-winbtns i { width: 10px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.d-body { flex: 1; padding: 26px 34px; overflow: hidden; position: relative; }
.d-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #67e8f9; margin: 0 0 8px; }
.d-h { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.03em; margin: 0 0 16px; }
.d-h.small { font-size: 22px; }
.d-h.ink { color: #14171a; font-size: 24px; }
.d-panel { width: 360px; display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.d-field { display: grid; gap: 5px; font-size: 11.5px; color: rgba(255, 255, 255, .75); }
.d-win-paper .d-field { color: #475569; }
.d-input { display: block; min-height: 36px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: 14px; color: #fff; }
.d-win-paper .d-input { background: #fff; box-shadow: inset 0 0 0 1px #cbd5e1; color: #14171a; width: 90px; }
.d-input i { color: rgba(255, 255, 255, .4); font-style: normal; }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.d-btn-solid { background: #fff; color: #0a0f1f; }
.d-btn-glass { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.d-btn-ink { background: #0f172a; color: #fff; }
.d-btn-line { background: #fff; color: #0f172a; box-shadow: inset 0 0 0 1px #94a3b8; }
.d-btn-ok { background: #dcfce7; color: #166534; }
.d-btn-danger { background: #b91c1c; color: #fff; }
.d-btn-disabled { background: rgba(15, 23, 42, .12); color: rgba(15, 23, 42, .45); }
.d-btn .g { font-family: Georgia, serif; color: #4285f4; }
.d-or { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .5); }
.d-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; margin-bottom: 10px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.d-card strong { display: block; font-size: 17px; font-weight: 500; }
.d-card span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.d-card.dim { opacity: .55; }
.d-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(148, 163, 184, .2); color: inherit; }
.d-chip.blue { background: #dbeafe; color: #1d4ed8; }
.d-chip.red { background: #fee2e2; color: #b91c1c; }
.d-dialog { width: 470px; margin: 30px auto; padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 13.5px; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.d-check { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 14px; }
.d-box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); display: grid; place-items: center; }
.d-check.on .d-box { background: #60a5fa; box-shadow: none; color: #0a0f1f; }
.d-box svg { width: 14px; height: 14px; }
.d-split.two { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.d-note { font-size: 13px; color: rgba(255, 255, 255, .75); line-height: 1.5; }
.d-note.ink { color: #334155; }
.d-mono { font-family: var(--mono); font-size: 13px; }
.d-muted { color: #64748b; font-size: 12.5px; margin: -10px 0 14px; }
.d-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; flex-wrap: wrap; }

/* Camera with AI boxes */
.d-cam { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); background: #1e293b; }
.d-cam svg { display: block; width: 100%; height: auto; }
.d-cam-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; }
.d-cam-tag svg { width: 12px; height: 12px; }
.d-ai-label { font: 700 11px/1 "Segoe UI", sans-serif; }
.d-ai-label.green { fill: #34d399; }
.d-ai-label.amber { fill: #fbbf24; }
.d-ai-label.red { fill: #f87171; }

/* Locked exam screen (light, like the real one) */
.d-exam { position: absolute; inset: 0; background: #f6f5f1; color: #14171a; display: flex; flex-direction: column; }
.d-exam-top { display: flex; align-items: center; gap: 18px; padding: 12px 22px; border-bottom: 1px solid #e2e2dc; font-size: 12.5px; }
.d-exam-top > span:nth-child(2) { color: #475569; }
.d-saved { margin-left: auto; color: #64748b; }
.d-saved.on { color: #15803d; }
.d-timer { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.d-examgrid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding: 18px 22px; }
.d-question { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .3), 0 0 0 1px #e7e5df; align-self: start; }
.d-qnum { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #64748b; margin: 0 0 10px; }
.d-qnum.ink { color: #334155; }
.d-qtext { font-size: 20px; line-height: 1.35; margin: 0 0 16px; letter-spacing: -.01em; }
.d-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d-option { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px #d6d3cc; font-size: 15px; }
.d-option.on { box-shadow: inset 0 0 0 2px #1d4ed8; background: #eff4ff; }
.d-letter { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f1f0ec; font-size: 12px; font-weight: 700; }
.d-option.on .d-letter { background: #1d4ed8; color: #fff; }
.d-side { display: grid; gap: 12px; align-content: start; }
.d-keys { position: absolute; left: 22px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 13px; }
.d-keys kbd { font-family: var(--mono); padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.d-keys span { color: #fca5a5; font-weight: 600; }
.d-checks { flex: 1; display: grid; grid-template-columns: 380px 1fr; gap: 28px; padding: 26px 30px; align-items: start; }
.d-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.d-checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #94a3b8; }
.d-checklist li span { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px #cbd5e1; display: grid; place-items: center; }
.d-checklist li.ok { color: #14171a; }
.d-checklist li.ok span { background: #16a34a; box-shadow: none; color: #fff; }
.d-checklist svg { width: 15px; height: 15px; }

/* Examiner's view of flags */
.d-examiner { border-radius: 12px; background: #0f172a; color: #fff; padding: 10px 12px; }
.d-done + .d-examiner, .d-body > .d-examiner { position: absolute; right: 30px; top: 26px; width: 330px; }
.d-examiner-head { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; display: flex; align-items: center; gap: 8px; }
.d-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.d-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 196px; overflow: hidden; }
.d-flag { display: grid; grid-template-columns: 38px 16px 1fr; gap: 8px; align-items: start; font-size: 12px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06);
  animation: demo-flag .35s var(--enter); }
@keyframes demo-flag { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.d-flag-time { font-family: var(--mono); color: rgba(255, 255, 255, .6); }
.d-flag-ico svg { width: 14px; height: 14px; }
.d-flag.high .d-flag-ico { color: #f87171; }
.d-flag.medium .d-flag-ico { color: #fbbf24; }
.d-flag.low .d-flag-ico { color: #93c5fd; }
.d-flag-text strong { display: block; font-weight: 600; }
.d-flag-text em { font-style: normal; color: rgba(255, 255, 255, .6); }
.d-flag-empty { font-size: 12px; color: rgba(255, 255, 255, .5); }
.d-done { width: 480px; }
.d-done-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; margin-bottom: 12px; }
.d-done-ico svg { width: 24px; height: 24px; }
.d-done p { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.5; }
.d-risk { display: inline-grid; grid-template-columns: auto auto; gap: 2px 14px; align-items: center; margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: rgba(239, 68, 68, .14); }
.d-risk span { font-size: 12px; color: rgba(255, 255, 255, .7); }
.d-risk strong { grid-row: span 2; font-size: 30px; color: #fca5a5; }
.d-risk em { font-style: normal; font-size: 12.5px; color: #fecaca; }

/* Candidate email and recorder */
.d-mail { position: absolute; inset: 18px 70px; border-radius: 16px; background: #fff; color: #14171a; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.d-mail-top { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: #eef2f7; font-size: 13px; color: #475569; }
.d-mail-top svg { width: 16px; height: 16px; }
.d-mail-body { padding: 22px 28px; font-size: 14px; line-height: 1.55; color: #334155; }
.d-mail-body .d-h { color: #0f172a; }
.d-mail-from { font-size: 12.5px; color: #64748b; margin: 0 0 10px; }
.d-mail .d-btn-solid { background: #1d4ed8; color: #fff; }
.d-recorder { display: grid; gap: 10px; padding: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px #d6d3cc; font-size: 14px; }
.d-recorder p { margin: 0; display: flex; align-items: center; gap: 8px; }
.d-recorder svg { width: 16px; height: 16px; color: #16a34a; }
.d-prep { height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
.d-prep span { display: block; height: 100%; background: #1d4ed8; width: 0; transition: width .45s linear; }
.d-prep .w2 { width: 20%; } .d-prep .w4 { width: 40%; } .d-prep .w6 { width: 60%; } .d-prep .w8 { width: 80%; } .d-prep .w10 { width: 100%; }
.d-recdot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.d-recorder .d-btn { justify-self: start; }

/* Staff portal (paper) */
.d-portal { position: absolute; inset: 0; display: grid; grid-template-columns: 170px 1fr; }
.d-nav { background: #0f172a; padding: 14px 10px; display: grid; gap: 4px; align-content: start; }
.d-nav span { padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.d-nav span.on { background: rgba(96, 165, 250, .22); color: #fff; }
.d-portal-main { padding: 20px 24px; overflow: hidden; position: relative; }
.d-qlist { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: #334155; }
.d-qlist li.new { animation: demo-flag .4s var(--enter); }
.d-qlist .d-chip { margin-right: 8px; background: #eef2f7; color: #334155; }
.d-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px #cbd5e1; background: #fff; }
.d-toggle i { width: 30px; height: 18px; border-radius: 999px; background: #cbd5e1; position: relative; }
.d-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .25s; }
.d-toggle.on i { background: #1d4ed8; }
.d-toggle.on i::after { left: 14px; }
.d-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-tile { position: relative; }
.d-tile.alert .d-cam { box-shadow: 0 0 0 3px #ef4444; }
.d-risk-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #dcfce7; color: #166534; }
.d-tile .d-risk-chip { position: absolute; right: 8px; top: 8px; }
.d-risk-chip.mid { background: #fef3c7; color: #92400e; }
.d-risk-chip.high { background: #fee2e2; color: #b91c1c; }
.d-alert { margin: -6px 0 12px; padding: 8px 12px; border-radius: 10px; background: #fee2e2; color: #991b1b; font-size: 13px; font-weight: 600; }
.d-focus { position: absolute; inset: 70px 24px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; padding: 16px; border-radius: 16px; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5), 0 0 0 1px #e2e8f0; animation: demo-flag .3s var(--enter); }
.d-focus h4 { margin: 0 0 6px; font-size: 17px; }
.d-focus .d-muted { margin: 0 0 14px; }
.d-focus .d-btn { margin: 0 8px 8px 0; }
.d-reviewgrid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.d-reviewgrid .d-examiner { position: static; width: auto; }
.d-player { position: relative; }
.d-playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0f172a; display: grid; place-items: center; }
.d-playbtn svg { width: 18px; height: 18px; margin-left: 2px; }
.d-player.playing .d-playbtn { opacity: 0; }
.d-stats { display: flex; gap: 14px; margin-bottom: 14px; }
.d-stats div { padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; display: grid; }
.d-stats strong { font-size: 26px; font-weight: 600; }
.d-stats span { font-size: 12px; color: #64748b; }
.d-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #e2e8f0; }
.d-table th { text-align: left; padding: 9px 12px; background: #f1f5f9; color: #475569; font-weight: 600; font-size: 12px; }
.d-table td { padding: 9px 12px; border-top: 1px solid #eef2f7; }
.d-table tr.flagged td { background: #fef2f2; }
.d-table tr.excluded td { background: #f8fafc; color: #94a3b8; text-decoration: line-through; }
.d-table tr.short td:nth-child(2) { font-weight: 700; color: #1d4ed8; }
.d-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* Fit the whole player (video, caption, controls, chapters) on a laptop screen. */
.demo-dialog { padding: 22px 26px; }
.demo-stage-box { max-height: calc(100vh - 300px); }
.demo-caption { min-height: 44px; margin: 10px 2px 6px; }
.demo-chapters { margin-top: 10px; }
.d-body > .d-examiner .d-flags { max-height: 360px; }
.demo-stage-box { max-height: calc(100vh - 330px); }
/* Only the newest flag slides in; the earlier ones stay put when the list re-draws. */
.d-flag { animation: none; }
.d-flag:last-child { animation: demo-flag .35s var(--enter); }
