:root {
  --bg: #f6f8f7;
  --paper: rgba(255, 255, 255, 0.84);
  --ink: #262626;
  --muted: #5d645f;
  --accent: #1f8e73;
  --accent-2: #262626;
  --accent-3: #d7ece5;
  --line: rgba(38, 38, 38, 0.12);
  --shadow: 0 22px 58px rgba(38, 38, 38, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 142, 115, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(38, 38, 38, 0.06), transparent 24%),
    radial-gradient(circle at bottom left, rgba(215, 236, 229, 0.42), transparent 30%),
    linear-gradient(140deg, #fbfcfb 0%, #f5faf8 55%, #f8f9f8 100%);
}

body {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.55;
}

.ambient-a {
  top: -90px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: rgba(31, 142, 115, 0.18);
}

.ambient-b {
  left: -70px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  background: rgba(38, 38, 38, 0.08);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 24px auto 44px;
  display: grid;
  gap: 20px;
}

.nav-ribbon {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.nav-ribbon-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-ribbon-label {
  font-weight: 800;
  color: var(--accent-2);
}

.nav-ribbon-toggle {
  min-height: 48px;
}

.nav-ribbon-drawer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-ribbon .button.is-active {
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.18) 0%, rgba(215, 236, 229, 0.88) 100%);
  border-color: rgba(31, 142, 115, 0.28);
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(31, 142, 115, 0.08);
}

.button,
.option,
.drag-chip,
.content-question-row,
.creator-option-card {
  touch-action: manipulation;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.network-badge.online {
  color: var(--accent);
  background: rgba(31, 142, 115, 0.12);
}

.network-badge.offline {
  color: #7c5a00;
  background: rgba(255, 196, 92, 0.2);
}

.grid-two,
.grid-three {
  display: grid;
  gap: 20px;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 24px;
}

.hero {
  padding: 28px;
}

.hero-intro {
  display: grid;
  gap: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, 290px);
  gap: 24px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-copy h1,
.hero-copy .lead,
.hero-copy .eyebrow {
  margin: 0;
}

.hero-copy h1 {
  max-width: 10.5ch;
}

.brand-figure {
  width: 100%;
  margin: 0;
}

.brand-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.brand-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-brand-panel {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 4px;
}

.brand-image-card {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(38, 38, 38, 0.08);
  box-shadow: 0 18px 36px rgba(38, 38, 38, 0.08);
}

.brand-image-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-image-card-shield {
  width: 152px;
}

.game-badge {
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.14) 0%, rgba(38, 38, 38, 0.08) 100%);
  border: 1px solid rgba(31, 142, 115, 0.18);
  font-weight: 700;
}

.hero-format-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 278px);
}

.brand-mini-card {
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(38, 38, 38, 0.08);
  box-shadow: 0 8px 18px rgba(38, 38, 38, 0.04);
}

.brand-mini-card img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-feature-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  min-height: 102px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(38, 38, 38, 0.05);
}

.hero-feature-icon {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.14) 0%, rgba(215, 236, 229, 0.92) 100%);
  color: var(--accent);
}

.hero-feature-icon svg {
  inline-size: 20px;
  block-size: 20px;
}

.hero-feature-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.3;
}

.hero-feature-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.journey-panel {
  display: grid;
  gap: 16px;
}

.exam-preflight-note {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(31, 142, 115, 0.16);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.12) 0%, rgba(255, 255, 255, 0.94) 100%);
  line-height: 1.55;
}

.exam-preflight-note strong {
  display: block;
  margin-bottom: 6px;
}

.start-disclaimer {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(31, 142, 115, 0.06);
  display: grid;
  gap: 10px;
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
  cursor: pointer;
}

.consent-check input {
  margin-top: 4px;
  inline-size: 20px;
  block-size: 20px;
}

.journey-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.journey-progress-shell {
  display: grid;
  gap: 12px;
}

.journey-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.journey-progress-copy strong {
  font-size: 16px;
}

.journey-progress-copy span {
  color: var(--muted);
  font-size: 14px;
}

.journey-progress-line {
  background: rgba(38, 38, 38, 0.08);
}

.journey-node {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(255, 255, 255, 0.76);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.journey-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 28px;
  height: 2px;
  background: rgba(38, 38, 38, 0.12);
}

.journey-node:last-child::after {
  display: none;
}

.journey-node b {
  font-size: 16px;
}

.journey-node small {
  color: var(--muted);
  line-height: 1.45;
}

.journey-node.current {
  border-color: rgba(31, 142, 115, 0.32);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.12) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: 0 18px 34px rgba(31, 142, 115, 0.14);
  animation: node-float 1.8s ease-in-out infinite;
}

.journey-node.complete {
  background: rgba(31, 142, 115, 0.14);
  border-color: rgba(31, 142, 115, 0.18);
}

.journey-node.locked {
  opacity: 0.68;
}

.journey-node-result {
  background: rgba(38, 38, 38, 0.05);
}

.journey-node-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact {
  padding-bottom: 20px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-family: "Book Antiqua", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 0.96;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

.lead,
.muted,
.message,
.field span {
  line-height: 1.5;
}

.lead,
.muted {
  color: var(--muted);
}

.meta-row,
.section-row,
.progress-meta,
.tour-head,
.stage-header,
.dashboard-head,
.actions.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill,
.stage-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 142, 115, 0.08);
  font-size: 14px;
}

.pill-accent {
  background: rgba(31, 142, 115, 0.18);
  color: var(--accent);
  border: 1px solid rgba(31, 142, 115, 0.18);
}

.progress-bars {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.progress-line {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 142, 115, 0.08);
}

.progress-line.secondary {
  background: rgba(38, 38, 38, 0.08);
}

.progress-line span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #34a389 100%);
  transition: width 0.28s ease;
}

.progress-line.secondary span {
  background: linear-gradient(90deg, var(--accent-2) 0%, #5a5a5a 100%);
}

.form-stack,
.flat-list,
.result-grid,
.detail-block {
  display: grid;
  gap: 14px;
}

.flat-list {
  margin: 0;
  padding-left: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #36a58b 100%);
  color: #fff;
}

.button.secondary {
  background: rgba(38, 38, 38, 0.08);
  color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(38, 38, 38, 0.08);
}

.button.ghost:hover {
  background: rgba(31, 142, 115, 0.08);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.message {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(38, 38, 38, 0.07);
}

.message.success {
  background: rgba(31, 142, 115, 0.14);
}

.message.error {
  background: rgba(38, 38, 38, 0.1);
}

.message.warning {
  background: rgba(255, 196, 92, 0.18);
}

.hidden {
  display: none !important;
}

body.exam-mode-active {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

body.exam-mode-active .question-card,
body.exam-mode-active .question-card *,
body.exam-mode-active .tour-head,
body.exam-mode-active .tour-head *,
body.exam-mode-active .progress-meta,
body.exam-mode-active .progress-meta *,
body.exam-mode-active .participant-mode-strip,
body.exam-mode-active .participant-mode-strip * {
  -webkit-user-select: none;
  user-select: none;
}

body.exam-mode-active input,
body.exam-mode-active button,
body.exam-mode-active label {
  -webkit-user-select: none;
  user-select: none;
}

.sync-status-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sync-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.participant-mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.system-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.system-pill.neutral {
  background: rgba(38, 38, 38, 0.08);
  color: var(--ink);
}

.system-pill.active {
  background: rgba(31, 142, 115, 0.12);
  color: var(--accent);
}

.system-pill.ready {
  background: rgba(31, 142, 115, 0.16);
  color: var(--accent);
}

.system-pill.warning {
  background: rgba(255, 196, 92, 0.22);
  color: #7c5a00;
}

.system-pill.error {
  background: rgba(179, 68, 68, 0.18);
  color: #812b2b;
}

.transition-banner {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 142, 115, 0.18);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: var(--accent-2);
  font-weight: 700;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.transition-banner.show {
  animation: transition-banner-in 1.55s ease forwards;
}

.transition-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: transition-sheen 1.3s ease;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.sync-badge.idle {
  background: rgba(38, 38, 38, 0.08);
  color: var(--ink);
}

.sync-badge.pending {
  background: rgba(31, 142, 115, 0.12);
  color: var(--accent);
}

.sync-badge.success {
  background: rgba(31, 142, 115, 0.16);
  color: var(--accent);
}

.sync-badge.warning {
  background: rgba(255, 196, 92, 0.2);
  color: #7c5a00;
}

.sync-badge.error {
  background: rgba(179, 68, 68, 0.18);
  color: #812b2b;
}

.sync-meta {
  font-size: 13px;
}

.exam-guard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.exam-guard-overlay.hidden {
  display: none;
}

.exam-guard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 26, 0.48);
  backdrop-filter: blur(6px);
}

.exam-guard-card {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 142, 115, 0.16);
  box-shadow: 0 28px 64px rgba(18, 24, 26, 0.22);
}

.exam-guard-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.timer-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.exam-cockpit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timer-box,
.stat-card,
.result-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(24, 51, 71, 0.06);
}

.secondary-timer {
  background: rgba(31, 142, 115, 0.12);
}

.timer-box.warning {
  background: rgba(255, 196, 92, 0.2);
}

.timer-box.critical {
  background: rgba(179, 68, 68, 0.16);
}

.timer-box strong,
.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.cockpit-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 8px;
}

.cockpit-card strong {
  font-size: 26px;
  line-height: 1.05;
}

.cockpit-card small {
  color: var(--muted);
  line-height: 1.45;
}

.cockpit-card.neutral {
  background: rgba(38, 38, 38, 0.05);
}

.cockpit-card.active {
  background: rgba(31, 142, 115, 0.12);
}

.cockpit-card.warning {
  background: rgba(255, 196, 92, 0.2);
}

.cockpit-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.action-deck {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  transform-origin: top center;
}

.question-single {
  min-height: 420px;
}

.question-enter {
  animation: question-enter 0.32s ease;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.auto-check-badge {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(31, 142, 115, 0.05);
  min-height: 56px;
}

.option input {
  width: auto;
  margin-top: 4px;
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 auto;
}

.drag-layout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.drag-bank,
.bucket-column,
.drop-slot {
  border: 1px dashed rgba(38, 38, 38, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.bucket-column.is-active,
.drop-slot.is-active {
  border-color: rgba(31, 142, 115, 0.8);
  background: rgba(31, 142, 115, 0.08);
  box-shadow: inset 0 0 0 1px rgba(31, 142, 115, 0.18);
}

.bucket-column.is-active,
.drop-slot.is-active,
.drag-bank:has(.drag-chip:hover) {
  animation: active-zone-pulse 1.4s ease-in-out infinite;
}

.drag-bank-header,
.drop-slot-label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drag-bank-items,
.drop-slot-body,
.bucket-items {
  min-height: 76px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 10px;
  border-radius: 16px;
  background: rgba(31, 142, 115, 0.03);
  transition: background-color 0.18s ease;
}

.drag-bank-items.is-over,
.drop-slot-body.is-over,
.bucket-items.is-over {
  background: rgba(31, 142, 115, 0.12);
}

.drag-chip {
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.18) 0%, rgba(38, 38, 38, 0.08) 100%);
  color: var(--ink);
  cursor: grab;
  user-select: none;
  min-height: 48px;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(24, 51, 71, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.drag-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(24, 51, 71, 0.12);
}

.drag-chip:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.drag-chip.placed {
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.26) 0%, rgba(215, 236, 229, 0.42) 100%);
}

.drag-chip.is-dragging {
  opacity: 0.55;
}

.drop-grid,
.bucket-grid,
.table-wrap {
  display: grid;
  gap: 14px;
}

.interaction-summary {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31, 142, 115, 0.06);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.bucket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 142, 115, 0.16);
  color: var(--ink);
  font-size: 12px;
}

.bucket-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.drop-slot-empty {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table tr.is-selected {
  background: rgba(31, 142, 115, 0.08);
}

.data-table tbody tr {
  cursor: pointer;
}

.data-table tbody tr:focus-visible {
  outline: 2px solid rgba(31, 142, 115, 0.35);
  outline-offset: -2px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.diagnostics-grid {
  align-items: stretch;
}

.analytics-grid {
  align-items: stretch;
}

.diagnostic-card {
  display: grid;
  gap: 16px;
}

.diagnostic-list {
  display: grid;
  gap: 10px;
}

.diagnostic-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(31, 142, 115, 0.04);
  border: 1px solid rgba(38, 38, 38, 0.06);
}

.diagnostic-row span {
  color: var(--muted);
}

.diagnostic-row strong {
  text-align: right;
  max-width: 58%;
  word-break: break-word;
}

.diagnostic-row strong.status-ready {
  color: var(--accent);
}

.diagnostic-row strong.status-warning {
  color: #7c5a00;
}

.diagnostic-row strong.status-error {
  color: #812b2b;
}

.diagnostic-row strong.status-active {
  color: var(--ink);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-actions {
  display: flex;
  align-items: end;
}

.analytics-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.analytics-card,
.suspicious-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 10px;
}

.analytics-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

.compact-table {
  max-height: 360px;
}

.suspicious-list {
  display: grid;
  gap: 14px;
}

.suspicious-signals {
  margin: 0;
}

.review-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.result-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.result-hero {
  display: grid;
  gap: 20px;
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.result-award {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(38, 38, 38, 0.06);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.result-award.gold {
  background: linear-gradient(135deg, rgba(216, 174, 63, 0.2) 0%, rgba(255, 243, 200, 0.72) 100%);
  color: #8b6110;
  border-color: rgba(216, 174, 63, 0.24);
}

.result-award.silver {
  background: linear-gradient(135deg, rgba(148, 156, 167, 0.18) 0%, rgba(243, 246, 248, 0.82) 100%);
  color: #5a6570;
  border-color: rgba(148, 156, 167, 0.2);
}

.result-award.bronze {
  background: linear-gradient(135deg, rgba(171, 105, 54, 0.16) 0%, rgba(247, 226, 208, 0.84) 100%);
  color: #8c4a20;
  border-color: rgba(171, 105, 54, 0.2);
}

.result-award.neutral {
  color: var(--ink);
}

.result-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.result-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.06);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.08) 0%, rgba(255, 255, 255, 0.86) 100%);
}

.result-stat span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-stat strong {
  font-size: 24px;
  line-height: 1.1;
}

.result-stat small {
  color: var(--muted);
  line-height: 1.45;
}

.result-next {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.result-next h3 {
  margin-bottom: 10px;
}

.result-next ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.result-card {
  display: grid;
  gap: 6px;
}

.result-card small {
  color: var(--muted);
  line-height: 1.45;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 13px;
}

.footer-note small {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.content-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.coverage-list,
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coverage-item,
.qa-item,
.content-question-row {
  border: 1px solid rgba(31, 142, 115, 0.1);
  background: rgba(241, 248, 246, 0.88);
  border-radius: 16px;
  padding: 12px 14px;
}

.coverage-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.coverage-item strong {
  font-size: 16px;
}

.qa-grid {
  align-items: start;
}

.qa-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qa-item strong {
  display: block;
  margin-bottom: 6px;
}

.qa-pill {
  border-color: rgba(31, 142, 115, 0.18);
}

.qa-pill-clean {
  background: rgba(230, 247, 239, 0.96);
  color: #1c6f59;
}

.qa-pill-warning {
  background: rgba(255, 244, 214, 0.96);
  color: #8c5a00;
}

.qa-pill-risk {
  background: rgba(255, 229, 229, 0.96);
  color: #9d2b2b;
}

.qa-pill-draft {
  background: rgba(231, 238, 255, 0.96);
  color: #3b5ea6;
}

.content-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.content-mode-strip {
  padding: 18px 20px;
}

.content-guide {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.content-guide-step {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 142, 115, 0.12);
  background: rgba(243, 250, 248, 0.88);
  color: var(--muted);
}

.creator-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 20px;
  background: rgba(243, 250, 248, 0.88);
}

.creator-grid,
.creator-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 16px;
}

.creator-field-wide {
  grid-column: 1 / -1;
}

.creator-option-card {
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.inline-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.content-option-preview {
  margin-top: 12px;
}

.content-list-card,
.content-detail-card {
  padding: 18px;
}

.content-empty-detail-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.content-question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 820px;
  overflow: auto;
  padding-right: 4px;
}

.content-question-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.content-question-row:hover,
.content-question-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 142, 115, 0.24);
  box-shadow: 0 12px 32px rgba(18, 36, 31, 0.08);
}

.content-question-row.is-selected {
  border-color: rgba(31, 142, 115, 0.34);
  background: rgba(223, 242, 236, 0.95);
}

.content-question-row.has-issues {
  border-left: 4px solid rgba(231, 159, 23, 0.72);
}

.content-question-row.is-risk {
  border-left-color: rgba(202, 62, 62, 0.74);
}

.content-open-hint {
  font-weight: 700;
  color: var(--accent);
}

.content-question-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.content-question-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.content-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.editor-form {
  margin-top: 16px;
}

.content-detail-card .actions.inline {
  align-items: center;
}

.overlay-active {
  overflow: hidden;
}

.overlay-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.overlay-shell.hidden {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 31, 0.38);
  backdrop-filter: blur(4px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0;
  box-shadow: 0 24px 60px rgba(18, 36, 31, 0.22);
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.detail-metric,
.detail-qa-card {
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 18px;
  background: rgba(243, 250, 248, 0.88);
  padding: 14px 16px;
}

.detail-metric strong {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}

.detail-qa-card {
  margin-top: 14px;
}

.detail-qa-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(231, 238, 255, 0.92);
  color: #35518f;
  font-size: 13px;
}

.qa-signal-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.qa-signal-list li + li {
  margin-top: 6px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 6px 0 0;
}

@media (max-width: 900px) {
  .grid-two,
  .grid-three,
  .grid-four,
  .coverage-grid,
  .content-workbench,
  .content-guide,
  .exam-cockpit,
  .creator-grid,
  .creator-options-grid,
  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .footer-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .network-badge {
    margin-left: 0;
  }

  .journey-map {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-format-badge.hero-format-badge {
    width: fit-content;
    text-align: left;
    justify-content: center;
  }

  .hero-brand-panel {
    justify-content: flex-start;
    padding-top: 0;
  }

  .journey-progress-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-node::after {
    top: auto;
    bottom: -14px;
    left: 50%;
    right: auto;
    width: 2px;
    height: 28px;
    transform: translateX(-50%);
  }

  .result-head {
    flex-direction: column;
  }

  .result-award {
    width: 100%;
    justify-content: flex-start;
  }

  .overlay-shell {
    padding: 12px;
  }

  .overlay-card {
    width: min(100vw - 12px, 100%);
    max-height: calc(100vh - 20px);
  }

  .brand-image-card-round {
    width: min(100%, 210px);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100%, calc(100% - 18px));
    margin: 14px auto 28px;
    gap: 16px;
  }

  .card,
  .hero {
    padding: 18px;
  }

  .nav-ribbon {
    gap: 8px;
    padding: 12px;
  }

  .nav-ribbon-head {
    display: flex;
  }

  .nav-ribbon-drawer {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-ribbon.is-open .nav-ribbon-drawer {
    display: flex;
  }

  .nav-ribbon .button,
  .nav-ribbon .network-badge,
  .actions .button {
    flex: 1 1 100%;
    min-height: 52px;
  }

  .nav-ribbon .network-badge {
    justify-content: center;
    margin-left: 0;
  }

  .sync-strip,
  .participant-mode-strip,
  .progress-meta,
  .tour-head {
    align-items: flex-start;
  }

  .result-overview {
    grid-template-columns: 1fr;
  }

  .result-stat strong {
    font-size: 21px;
  }

  .question-single {
    min-height: 360px;
  }

  .question-card {
    padding: 16px;
  }

  .option {
    padding: 14px;
    min-height: 58px;
  }

  .option span,
  .drag-chip,
  .button,
  .pill,
  .network-badge {
    font-size: 15px;
  }

  .drag-chip {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    min-height: auto;
    padding: 12px 14px;
    grid-template-columns: 38px 1fr;
  }

  .hero-feature-icon {
    inline-size: 38px;
    block-size: 38px;
    border-radius: 12px;
  }

  .hero-brand-panel {
    justify-content: flex-start;
  }

  .hero-brand-strip {
    gap: 8px;
    width: min(100%, 240px);
  }

  .brand-mini-card {
    padding: 8px;
    border-radius: 14px;
  }

  .hero-format-badge.hero-format-badge {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .exam-preflight-note {
    font-size: 14px;
  }

  .consent-check {
    grid-template-columns: 1fr;
  }

  .consent-check input {
    margin-top: 0;
  }

  .exam-guard-card {
    width: min(100vw - 18px, 100%);
    padding: 20px;
  }
}

@keyframes question-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes transition-banner-in {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  12%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes transition-sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes active-zone-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(31, 142, 115, 0.18);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(31, 142, 115, 0.28),
      0 0 0 6px rgba(31, 142, 115, 0.06);
  }
}

@keyframes node-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
