.container { max-width: 780px; margin: 0 auto; padding: 24px 16px 80px; }
.narrow { max-width: 480px; margin: 8vh auto; padding: 0 16px; }
.small { font-size: 0.88rem; }
.org { margin: 0 0 4px; font-size: 0.9rem; }

/* Top bar with blue completion progress */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 780px; margin: 0 auto; padding: 10px 16px 8px; }
.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 10px; background: #e6e9ef; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--blue); border-radius: 999px; transition: width 0.25s ease; }
.progress-pct { font-weight: 500; color: var(--blue); min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.status-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 0.92rem; flex-wrap: wrap; }
.qcount { font-weight: 500; }
.save-state { color: var(--muted); }
.save-state.saving { color: var(--muted); }
.save-state.saved { color: var(--green); }
.save-state.unsaved { color: var(--red); font-weight: 500; }
.timer { margin-left: auto; font-size: 1.05rem; font-weight: 500; background: var(--blue-soft); color: var(--blue); padding: 2px 10px; border-radius: 8px; }
.timer.low { background: var(--red-soft); color: var(--red); }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

.warn-banner { max-width: 780px; margin: 10px auto 0; padding: 10px 14px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-weight: 500; }

/* Entry screen */
.entry h1 { margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.fact { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.fact .k { font-size: 0.82rem; color: var(--muted); }
.fact .v { font-size: 1.15rem; font-weight: 500; }
.ack { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; background: var(--bg); margin: 16px 0; cursor: pointer; }
.ack input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.sample { margin: 24px 0; }
.section { margin-top: 22px; }
.accom { background: var(--blue-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }

/* Question */
.question-card { margin-top: 18px; }
.protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.stem { font-size: 1.15rem; font-weight: 500; margin: 0 0 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.stem-img { display: block; max-width: 100%; height: auto; margin: 0 0 18px; border-radius: 8px; }
fieldset.options { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.options legend { padding: 0; }
.option { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.option:hover { border-color: #b8c0cc; }
.option.selected { border-color: var(--blue); background: var(--blue-soft); }
.option input[type=radio] { width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.option .letter { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef0f3; font-weight: 500; font-size: 0.9rem; }
.option.selected .letter { background: var(--blue); color: #fff; }
.option .otext { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.option img { max-width: 100%; height: auto; display: block; }
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.actions .spacer { flex: 1; }
.loading-next { min-height: 240px; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Mask: opaque, replaces the question region */
.mask { background: #0a0b0d; color: #fff; border-radius: var(--radius); padding: 36px 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mask h2 { color: #fff; font-size: 1.2rem; }
.mask p { margin: 0; color: #d6d9df; }
.mask .btn { align-self: flex-start; }
.mask .hint { color: #ffcf66; min-height: 1.4em; }

/* Dialogs (in-page, never native) */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(10, 11, 13, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog { background: var(--surface); border-radius: var(--radius); padding: 24px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.dialog .actions { justify-content: flex-end; }

/* Interim result cards (time up, loading, cancelled) */
.result { text-align: center; padding: 48px 24px; }

.conflict { text-align: left; }
@media (max-width: 480px) {
  .container { padding: 16px 12px 60px; }
  .card { padding: 18px; }
  .stem { font-size: 1.05rem; }
}

/* Phone / tablet block */
.device-block { text-align: left; }
.device-block h1 { margin-top: 14px; }
.device-block p { margin: 0 0 12px; }
.device-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--blue-soft); position: relative; }
.device-icon::before { content: ''; position: absolute; left: 14px; top: 17px; width: 36px; height: 24px; border: 3px solid var(--blue); border-radius: 4px; box-sizing: border-box; }
.device-icon::after { content: ''; position: absolute; left: 10px; top: 43px; width: 44px; height: 4px; background: var(--blue); border-radius: 2px; }
.screen-device { max-width: 560px; margin: 6vh auto 0; }

/* Pre-start timer warning */
.before-start { border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 8px; background: var(--amber-soft); border: 1.5px solid #f0c36d; }
.before-start h2 { font-size: 1.05rem; color: #6b4500; margin-bottom: 8px; }
.before-start ul { margin: 0; padding-left: 20px; }
.before-start li { margin: 4px 0; color: #3d2a00; }

/* Shared-link sign-in: secondary actions on their own row, aligned with the card text. */
.join-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 12px; }
.join-links .btn.link { padding: 0; }

/* Result page (score, ranking, topics) */
:root {
  --rs-body: #3c4250;
  --rs-faint: #8a919e;
  --rs-line: #e6e8ec;
  --rs-track: #eef0f3;
  --rs-bar: #dbe2ee;
  --rs-green: #067a35;
  --rs-green-soft: #e5f4ea;
  --rs-orange: #b4470b;
  --rs-orange-soft: #fdeee3;
  --rs-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 24px rgba(16, 24, 40, 0.06);
}
.container.wide { max-width: 1080px; padding: 40px 24px 56px; }
.result-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.result-top-line { height: 4px; background: var(--blue); }
.result-top-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-top-title { font-weight: 500; }
.result-top-meta { color: var(--muted); font-size: 14px; }

.rs-card { background: var(--surface); border: 1px solid var(--rs-line); border-radius: 20px; box-shadow: var(--rs-shadow); }
.rs-hero { display: grid; grid-template-columns: 232px 1fr; gap: 56px; align-items: center; padding: 44px 56px; }
.rs-score { position: relative; width: 232px; height: 232px; }
.rs-score svg { width: 100%; height: 100%; display: block; }
.rs-ring-track { fill: none; stroke: var(--blue-soft); stroke-width: 16; }
.rs-ring-arc { fill: none; stroke: var(--blue); stroke-width: 16; stroke-linecap: round; }
.rs-score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rs-pct { font-size: 68px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rs-pct small { font-size: 34px; letter-spacing: 0; margin-left: 2px; color: var(--muted); font-weight: 500; }
.rs-score-sub { margin-top: 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.rs-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; font-weight: 500; color: var(--rs-green); }
.rs-eyebrow svg { width: 18px; height: 18px; }
.rs-icon-bg { fill: var(--rs-green-soft); }
.rs-icon-stroke { fill: none; stroke: var(--rs-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rs-eyebrow.time { color: var(--rs-orange); }
.rs-eyebrow.time .rs-icon-bg { fill: var(--rs-orange-soft); }
.rs-eyebrow.time .rs-icon-stroke { stroke: var(--rs-orange); }
.rs-hero h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.rs-hl { background: linear-gradient(transparent 62%, var(--blue-soft) 62%); padding: 0 2px; font-weight: 700; white-space: nowrap; }
.rs-lede { margin: 0; font-size: 18px; line-height: 1.75; color: var(--rs-body); max-width: 620px; }
.rs-chip { display: inline; padding: 3px 9px; border-radius: 8px; font-weight: 500; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rs-chip.strong { background: var(--rs-green-soft); color: var(--rs-green); }
.rs-chip.weak { background: var(--rs-orange-soft); color: var(--rs-orange); }

.rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.rs-grid.single { grid-template-columns: 1fr; }
.rs-panel { padding: 28px 32px 30px; min-width: 0; }
.rs-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 36px; }
.rs-panel h2 { margin: 0; font-size: 18px; font-weight: 500; }
.rs-seg { display: inline-flex; background: #f1f3f6; border-radius: 999px; padding: 4px; }
.rs-seg button { font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.rs-seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }
.rs-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.rs-hist { width: 100%; height: auto; display: block; }
.rs-hist text { font-family: var(--font); font-size: 12px; }
.rs-axis { stroke: var(--rs-line); }
.rs-bar { fill: var(--rs-bar); }
.rs-bar.you { fill: var(--blue); }
.rs-median { stroke: var(--text); stroke-opacity: 0.45; stroke-dasharray: 3 4; }
.rs-chart-label { fill: var(--muted); }
.rs-axis-label { fill: var(--rs-faint); }
.rs-you-line { stroke: var(--blue); stroke-width: 2; }
.rs-you-pill { fill: var(--blue); }
.rs-you-text { fill: #fff; font-weight: 500; }
.rs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--rs-line); }
.rs-stats dt { font-size: 13px; color: var(--muted); }
.rs-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }

.rs-waiting { position: relative; max-width: 600px; margin: 0 auto; }
.rs-grid.single .rs-hist { max-width: 640px; margin: 0 auto; }
.rs-hist.ghost .rs-bar { fill: #f1f3f6; }
.rs-waiting-center {
  position: absolute; inset: 0 0 12% 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse 46% 60% at 50% 55%, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 0) 100%);
}
.rs-waiting-count { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rs-waiting-count span { font-size: 22px; color: var(--muted); letter-spacing: 0; }
.rs-waiting-label { margin-top: 4px; font-size: 14px; color: var(--muted); }
.rs-meter { position: relative; width: 220px; height: 8px; margin-top: 14px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.rs-meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--blue); }
.rs-waiting-note { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--rs-line); font-size: 14px; color: var(--muted); line-height: 1.6; }

.rs-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rs-legend i { width: 2px; height: 14px; background: var(--text); opacity: 0.55; border-radius: 1px; }
.rs-topics { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 22px; }
.rs-t-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.rs-t-name { font-weight: 500; }
.rs-badge { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; line-height: 1.5; white-space: nowrap; }
.rs-badge.strong { background: var(--rs-green-soft); color: var(--rs-green); }
.rs-badge.weak { background: var(--rs-orange-soft); color: var(--rs-orange); }
.rs-t-frac { margin-left: auto; font-size: 13px; color: var(--rs-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-t-val { font-weight: 500; min-width: 42px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-track { position: relative; height: 10px; border-radius: 999px; background: var(--rs-track); }
.rs-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--blue); }
.rs-avg { position: absolute; top: -4px; width: 2px; height: 18px; margin-left: -1px; background: var(--text); opacity: 0.55; border-radius: 1px; }
.rs-foot { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 880px) {
  .rs-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding: 32px 24px; }
  .rs-lede { margin: 0 auto; }
  .rs-hero h1 { font-size: 26px; }
  .rs-grid { grid-template-columns: 1fr; }
  .rs-panel { padding: 24px 20px; }
}

/* Leaderboard */
:root {
  --lb-gold: #c98a00; --lb-gold-soft: #fff6dc;
  --lb-silver: #8691a1; --lb-silver-soft: #f1f3f7;
  --lb-bronze: #b0612a; --lb-bronze-soft: #fbeee4;
}
.rs-board { margin-top: 24px; padding: 28px 32px 26px; }
.rs-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rs-board h2 { margin: 0; font-size: 18px; font-weight: 500; }
.rs-board-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.rs-board-count { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); background: #f1f3f6; border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }

.rs-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.rs-avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.rs-avatar.tone0 { background: #e8efff; color: #0040c1; }
.rs-avatar.tone1 { background: #e5f4ea; color: #05652a; }
.rs-avatar.tone2 { background: #f1e9ff; color: #5b2cb3; }
.rs-avatar.tone3 { background: #fdeee3; color: #9a3f0a; }
.rs-avatar.tone4 { background: #e2f5f6; color: #0b6470; }
.rs-avatar.tone5 { background: #fde8ef; color: #a31d4f; }

.rs-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.rs-podium.n1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
.rs-podium.n2 { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
.rs-pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  padding: 24px 16px 20px; border-radius: 16px; border: 1px solid var(--rs-line); border-top-width: 3px; }
.rs-pod.place1 { order: 2; padding-top: 36px; padding-bottom: 28px; background: linear-gradient(180deg, var(--lb-gold-soft), var(--surface) 70%); border-top-color: var(--lb-gold); }
.rs-pod.place2 { order: 1; background: linear-gradient(180deg, var(--lb-silver-soft), var(--surface) 70%); border-top-color: var(--lb-silver); }
.rs-pod.place3 { order: 3; background: linear-gradient(180deg, var(--lb-bronze-soft), var(--surface) 70%); border-top-color: var(--lb-bronze); }
.rs-pod.you { box-shadow: 0 0 0 2px var(--blue); }
.rs-pod-avatar { position: relative; margin-bottom: 12px; }
.rs-pod.place1 .rs-avatar.lg { width: 76px; height: 76px; font-size: 24px; }
.rs-medal { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.place1 .rs-medal { background: var(--lb-gold); }
.place2 .rs-medal { background: var(--lb-silver); }
.place3 .rs-medal { background: var(--lb-bronze); }
.rs-pod-name { font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.rs-pod-dept { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.rs-pod-score { margin-top: 10px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rs-pod.place1 .rs-pod-score { font-size: 38px; }
.rs-pod-time { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-clock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.rs-you-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 500; vertical-align: 2px; }

.rs-board-cols, .rs-row { display: grid; grid-template-columns: 44px 1fr 72px 72px; align-items: center; column-gap: 12px; }
.rs-board-cols { margin-top: 24px; padding: 0 12px 8px; font-size: 12px; color: var(--rs-faint); border-bottom: 1px solid var(--rs-line); }
.rs-board-cols span:nth-child(n+3) { text-align: right; }
.rs-board-list { list-style: none; margin: 0; padding: 0; }
.rs-row { padding: 10px 12px; border-bottom: 1px solid var(--rs-line); }
.rs-row-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rs-row-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rs-row-who small { color: var(--muted); font-size: 13px; }
.rs-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-row-score { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.rs-row-time { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-row.you { background: var(--blue-soft); border-radius: 10px; border-bottom-color: transparent; }
.rs-board-gap { text-align: center; color: var(--rs-faint); letter-spacing: 0.3em; padding: 4px 0; }
.rs-board-more { margin-top: 18px; text-align: center; }
.rs-board-you { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--rs-line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.rs-board-you .btn.link { padding: 0; min-height: 0; font-size: 14px; }
.rs-board-note { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; background: #f3f6ff; border: 1px solid #dfe7ff; }
.rs-board-note div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--rs-body); }
.rs-board-note strong { font-weight: 500; color: var(--text); }
.rs-note-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rs-board-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0 8px; color: var(--muted); }
.rs-board-empty p { margin: 0; }
.rs-trophy { width: 44px; height: 44px; fill: none; stroke: var(--rs-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 880px) {
  .rs-board { padding: 24px 20px; }
  .rs-board-cols, .rs-row { grid-template-columns: 32px 1fr 52px 56px; column-gap: 8px; }
}
/* Narrow windows: the podium becomes three compact rows, list rows drop the avatar. */
@media (max-width: 600px) {
  .rs-podium, .rs-podium.n1, .rs-podium.n2 { grid-template-columns: 1fr; gap: 10px; }
  .rs-pod, .rs-pod.place1 { order: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px;
    align-items: center; text-align: left; padding: 14px 16px; }
  .rs-pod-avatar { grid-row: 1 / 3; margin: 0; }
  .rs-avatar.lg, .rs-pod.place1 .rs-avatar.lg { width: 48px; height: 48px; font-size: 16px; }
  .rs-medal { width: 22px; height: 22px; font-size: 11px; right: -5px; bottom: -5px; }
  .rs-pod-name { grid-column: 2; grid-row: 1; }
  .rs-pod-dept { grid-column: 2; grid-row: 2; min-height: 0; }
  .rs-pod-score, .rs-pod.place1 .rs-pod-score { grid-column: 3; grid-row: 1; margin: 0; font-size: 22px; text-align: right; }
  .rs-pod-time { grid-column: 3; grid-row: 2; margin: 0; justify-content: flex-end; font-size: 13px; }
  .rs-row-name > .rs-avatar { display: none; }
  .rs-board-head { flex-direction: column; gap: 10px; }
}

/* Personal feedback */
.rs-fb { margin-top: 24px; padding: 26px 32px 28px; background: linear-gradient(180deg, #f6f7ff 0, var(--surface) 140px); border-color: #e3e7fb; }
.rs-fb.in { animation: rs-fb-in 0.4s ease-out; }
@keyframes rs-fb-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rs-fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rs-fb-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #3f3fd1; background: #eceeff; padding: 5px 12px 5px 9px; border-radius: 999px; }
.rs-fb-spark { width: 16px; height: 16px; fill: #5b4fe9; }
.rs-fb-note { font-size: 12px; color: var(--rs-faint); }
.rs-fb-headline { margin: 0 0 6px; font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--text); }
.rs-fb-summary { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rs-body); max-width: 860px; }
.rs-fb-cols { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rs-line); }
.rs-fb-cols.single { grid-template-columns: 1fr; }
.rs-fb-col h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.rs-fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rs-fb-list li { display: flex; gap: 10px; align-items: flex-start; }
.rs-fb-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--rs-body); }
.rs-fb-list strong { font-weight: 500; color: var(--text); }
.rs-fb-check { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.rs-fb-check circle { fill: var(--rs-green-soft); }
.rs-fb-check path { fill: none; stroke: var(--rs-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rs-fb-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--rs-orange-soft); color: var(--rs-orange); font-size: 12px; font-weight: 500; }
.rs-fb-insight { color: var(--rs-body); }
.rs-fb-step { color: var(--text); }
.rs-fb-step::before { content: '→ '; color: var(--blue); font-weight: 500; }
.rs-fb.sizing { transition: height 0.4s ease; }
.rs-fb-body { animation: rs-fb-in 0.35s ease-out; }
.rs-fb-progress { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rs-fb-stage { color: var(--text); font-weight: 500; }
.rs-fb-eta { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-fb-pulse { width: 8px; height: 8px; border-radius: 50%; background: #5b4fe9; animation: rs-pulse 1.2s ease-in-out infinite; }
@keyframes rs-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
.rs-fb-bar { position: relative; height: 4px; margin: 10px 0 18px; border-radius: 999px; background: #e9ebfb; overflow: hidden; }
.rs-fb-bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7a6ff0, #5b4fe9); transition: width 0.5s linear; }
.rs-fb-later { margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.rs-fb-skel { display: grid; gap: 10px; }
.rs-fb-skel .line { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, #eef0f6 0%, #f7f8fc 50%, #eef0f6 100%); background-size: 200% 100%; animation: rs-shimmer 1.4s linear infinite; }
.rs-fb-skel .line.head { width: 58%; height: 18px; margin-bottom: 2px; }
.rs-fb-skel .line.short { width: 42%; }
.rs-fb-skel > .line:nth-child(2) { width: 84%; }
.rs-fb-skel-cols { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--rs-line); }
.rs-fb-skel-cols > div { display: grid; gap: 9px; align-content: start; }
@keyframes rs-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rs-fb.in, .rs-fb-body, .rs-fb-skel .line, .rs-fb-pulse { animation: none; } .rs-fb.sizing { transition: none; } }
@media (max-width: 880px) {
  .rs-fb { padding: 22px 20px; }
  .rs-fb-cols, .rs-fb-skel-cols { grid-template-columns: 1fr; gap: 18px; }
  .rs-fb-head { flex-wrap: wrap; }
}
