:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin: 0; background: #0b0f14; color: #e9eef5; }
.wrap { max-width: 980px; margin: 0 auto; padding: 18px; }

.accessCard { margin-bottom: 12px; }
.accessHeader { display:flex; align-items:center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.accessHeader h2 { margin: 0; font-size: 18px; }
.tierRow { border:1px solid #1e2a3a; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #0e1620; display:grid; gap: 6px; }
.tierLabel { font-weight: 800; font-size: 14px; display:inline-flex; align-items:center; gap: 6px; padding: 6px 10px; border-radius: 999px; width: fit-content; }
.tierLabel.free { background: rgba(42, 163, 107, .15); border:1px solid rgba(42,163,107,.4); color: #76e3b3; }
.tierLabel.subscriber { background: rgba(45, 108, 223, .18); border:1px solid rgba(45,108,223,.4); color: #a7c5ff; }
.tierLabel.paid { background: rgba(246, 193, 119, .15); border:1px solid rgba(246,193,119,.4); color: #f6c177; }
.tierCopy { color:#cfe0f5; font-size: 13px; line-height: 1.45; }
.tierActions { display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }
.tierStatus { font-size: 13px; color:#9fb0c7; }
.tierStatus.unlocked { color:#76e3b3; font-weight: 700; }
.activeTierLine { color:#cfe0f5; font-size: 13px; }

.top { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
h1 { font-size: 20px; margin: 0 0 6px; }
.meta { display: flex; gap: 12px; color: #9fb0c7; font-size: 13px; flex-wrap: wrap; }
.modeLabel { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.hidden { display: none !important; }

.card {
  margin-top: 14px;
  background: #121a24;
  border: 1px solid #1e2a3a;
  border-radius: 14px;
  padding: 16px;
}

.status { min-height: 18px; font-size: 13px; color: #9fb0c7; margin-bottom: 10px; }
.qtext { margin: 8px 0 14px; font-size: 18px; line-height: 1.35; }

.choices { display: grid; gap: 10px; }

.choice {
  border: 1px solid #243246;
  background: #0e1620;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.choice:hover { border-color: rgba(255,255,255,.22); }
.choice.selected { outline: 2px solid rgba(45,108,223,.45); }

.letter {
  width: 28px; height: 28px;
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  font-weight: 800;
  flex: 0 0 auto;
}

.text { color: #e9eef5; font-size: 14px; line-height: 1.45; }

.answer {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #243246;
  background: #0e1620;
}

.correctLine { font-weight: 800; margin-bottom: 6px; }
.explanation { color: #cfe0f5; font-size: 14px; line-height: 1.5; }

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

button {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  cursor: pointer;
}

button:hover { background: rgba(255,255,255,.08); }
button:disabled { opacity: .45; cursor: not-allowed; }

.primary {
  background: rgba(45,108,223,.22);
  border-color: rgba(45,108,223,.45);
}
.primary:hover { background: rgba(45,108,223,.28); }

.secondary { background: rgba(255,255,255,.06); }

.ghost { background: transparent; border-color: rgba(255,255,255,.10); }

.bottomBar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.toggle { display: inline-flex; gap: 8px; align-items: center; color: #cfe0f5; font-size: 13px; }
.toggle input { transform: translateY(1px); }

.activeTierLine { color:#cfe0f5; font-size: 13px; }

.tierRow { border:1px solid #1e2a3a; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #0e1620; display:grid; gap: 6px; }
.tierLabel { font-weight: 900; font-size: 13px; display:inline-flex; align-items:center; gap: 6px; padding: 6px 10px; border-radius: 999px; width: fit-content; }
.tierLabel.free { background: rgba(42, 163, 107, .15); border:1px solid rgba(42,163,107,.4); color: #76e3b3; }
.tierLabel.subscriber { background: rgba(45, 108, 223, .18); border:1px solid rgba(45,108,223,.4); color: #a7c5ff; }
.tierLabel.paid { background: rgba(246, 193, 119, .15); border:1px solid rgba(246,193,119,.4); color: #f6c177; }
.tierCopy { color:#cfe0f5; font-size: 13px; line-height: 1.45; }
.tierActions { display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }
.tierStatus { font-size: 13px; color:#9fb0c7; }
.tierStatus.unlocked { color:#76e3b3; font-weight: 900; }

/* ===== Access drawer ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 50;
}

.sidepanel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: #121a24;
  border-left: 1px solid #1e2a3a;
  z-index: 60;
  padding: 14px;
  overflow: auto;
  box-shadow: -18px 0 48px rgba(0,0,0,.45);
}

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

.sidepanelHeader h2 { margin: 0; font-size: 16px; }

.iconBtn {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.iconBtn:hover { background: rgba(255,255,255,.08); }

/* ===== Review panel basic styling (if you already have, keep yours) ===== */
.reviewPanel {
  margin-top: 14px;
  background: #121a24;
  border: 1px solid #1e2a3a;
  border-radius: 14px;
  padding: 16px;
}

.reviewHeader { display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.reviewHeader h2 { margin: 0; font-size: 16px; }

.kpis { display:flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.kpi { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); border-radius: 12px; padding: 10px 12px; min-width: 140px; }
.kpiLabel { color: #9fb0c7; font-size: 12px; }
.kpiValue { font-size: 20px; font-weight: 900; margin-top: 4px; }

.reviewBlock { margin-top: 12px; }
.reviewBlock h3 { margin: 0 0 8px; font-size: 14px; }
.pillList { display:flex; gap: 8px; flex-wrap: wrap; }
.missedList { display:grid; gap: 8px; }
.reviewActions { display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.scenarioCard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.sequencePrompt {
  font-weight: 600;
  margin-bottom: 12px;
}

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

.sequenceStep {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sequenceStep:hover {
  border-color: rgba(255,255,255,0.4);
}

.sequenceStep.selected {
  border-color: #73f5ff;
  background: rgba(115,245,255,0.08);
}

.sequenceStep .text {
  flex: 1;
}

.orderBadge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.sequenceActions {
  margin-top: 14px;
}

.flowBoard {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flowText {
  font-weight: 600;
}

.flowOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flowControls {
  display: flex;
  justify-content: flex-end;
}

.flowTrail {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.flowOutcome {
  font-weight: 600;
  color: #73f5ff;
}

#test 
