:root {
  --bg:       #0c1018;
  --bg2:      #111520;
  --bg3:      #1f1232;
  --surface:  #23133a;
  --surface2: #1f1232;
  --border:   #3a1c63;
  --border2:  #5e309d;
  --lime:     #883CF0;
  --lime2:    #873cf0bd;
  --lime-dim: #2a1647;
  --lime-glow:#3a1c63;
  --blue:     #b84cd9;
  --blue-dim: #2a1647;
  --violet:   #a78bfa;
  --violet-dim:#2a1647;
  --rose:     #fb7185;
  --rose-dim: #2a1647;
  --amber:    #c684db;
  --amber-dim:#2a1647;
  --text:     #e8fbfd;
  --text2:    #d3dadb;
  --bright:   #e2e8f0;
  --white:    #f8fafc;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

.pcs-training-guide {
  background: #191127;
  color: var(--text);
  height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Blueprint grid background ── */
.pcs-training-guide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163,230,53,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,230,53,0.025) 1px, transparent 1px),
    linear-gradient(rgba(163,230,53,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,230,53,0.01) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* ── Corner decoration glow ── */
.pcs-training-guide::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(174, 53, 230, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  padding: 44px 0 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Blueprint corner marks */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--lime);
  border-style: solid;
  opacity: 0.4;
}

.hero::before { top: 40px; right: 0; border-width: 2px 2px 0 0; }
.hero::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hero-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.series-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--lime);
  padding: 6px 14px;
  font-size: 11px;
  color: var(--lime);
  text-transform: uppercase;
}

.version-chip {
  font-size: 10px;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

.hero-eyebrow {
  font-size: 11px;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '//';
  opacity: 0.5;
}

h1.htitle {
  font-size: clamp(38px, 5.5vw, 70px);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 20px;
}

h1.htitle .hl { color: var(--lime); }
h1.htitle .muted { color: var(--text2); }

.hero-standfirst {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 28px;
  padding: 16px 20px;
  border-left: 2px solid var(--border2);
  background: rgba(255,255,255,0.01);
}

.hero-standfirst strong { color: var(--bright); font-weight: 600; }

/* Progress nodes */
.prog-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.prog-row::-webkit-scrollbar { display: none; }

.pnode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  cursor: pointer;
}

.pnode-circle {
  width: 34px;
  height: 34px;
  border: 2px solid var(--border2);
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  transition: all 0.3s;
}

.pnode.on .pnode-circle {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--bg);
  box-shadow: 0 0 16px var(--lime-glow);
}

.pnode.done .pnode-circle {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 10px rgba(167,139,250,0.3);
}

.pnode-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text2);
  white-space: nowrap;
}

.pline {
  flex: 1;
  min-width: 20px;
  max-width: 48px;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
  transition: background 0.3s;
}

.pline.done { background: var(--violet); }

/* ══════════════════════════════
   TAB NAV
══════════════════════════════ */
.tabnav {
  display: flex;
  gap: 0;
  padding-top: 20px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabnav::-webkit-scrollbar { display: none; }

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  transition: all 0.2s;
}

.tab:hover { color: var(--bright); }
.tab.on { color: var(--lime); border-bottom-color: var(--lime); }

.tab .tno {
  font-size: 10px;
  opacity: 0.45;
  font-weight: 400;
}

/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
.sec { display: none; }
.sec.on { display: block; animation: secIn 0.3s ease; }

@keyframes secIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Section header ── */
.sechead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.sechead-num {
  font-weight: 800;
  font-size: 100px;
  line-height: 0.85;
  color: var(--border2);
  padding-right: 24px;
  border-right: 2px solid var(--border);
  user-select: none;
}

.sechead-body { padding-left: 24px; }

.sechead-tag {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
}

.sechead h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 10px;
}

.sechead p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  max-width: 520px;
}

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 18px;
  position: relative;
  transition: border-color 0.2s;
}

/* Corner bracket decoration */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--lime);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.2s;
}
.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.card:hover { border-color: var(--border2); }
.card:hover::before, .card:hover::after { opacity: 0.6; }

.card-lime { border-left: 3px solid var(--lime); }
.card-blue { border-left: 3px solid var(--blue); }
.card-violet { border-left: 3px solid var(--violet); }
.card-rose { border-left: 3px solid var(--rose); }
.card-amber { border-left: 3px solid var(--amber); }

.clbl {
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cl-lime { color: var(--lime); }
.cl-blue { color: var(--blue); }
.cl-violet { color: var(--violet); }
.cl-rose { color: var(--rose); }
.cl-amber { color: var(--amber); }

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}

/* ══════════════════════════════
   GRID
══════════════════════════════ */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 18px; }

@media(max-width:740px){ .g2,.g3 { grid-template-columns:1fr; } }

/* ══════════════════════════════
   STAT STRIP
══════════════════════════════ */
.statstrip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

@media(max-width:680px){ .statstrip { grid-template-columns: 1fr 1fr; } }

.statcell {
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.2s;
}
.statcell:last-child { border-right: none; }
.statcell:hover { background: var(--bg3); }

.stat-n {
  font-size: 38px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--lime-dim);
}

.stat-l {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text2);
  line-height: 1.4;
}

/* ══════════════════════════════
   THREAT ITEMS
══════════════════════════════ */
.tri {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.tri:last-child { border-bottom: none; }

.trsev {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  white-space: nowrap;
  margin-top: 2px;
}

.ts-crit { background: var(--rose-dim); color: var(--rose); border: 1px solid rgba(251,113,133,0.3); }
.ts-high { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(251,191,36,0.3); }
.ts-med  { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(167,139,250,0.3); }

.tri-body h4 { font-size: 14px; font-weight: 700; color: var(--bright); margin-bottom: 4px; }
.tri-body p  { font-size: 13px; font-weight: 300; color: var(--text); line-height: 1.6; }

/* ══════════════════════════════
   CALLOUT
══════════════════════════════ */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.callout-body { color: var(--text); }
.callout-body strong { color: var(--bright); font-weight: 600; }

.co-lime   { background: var(--lime-dim); border-color: #3a1c63; }
.co-rose   { background: var(--rose-dim); border-color: rgba(251,113,133,0.25); }
.co-blue   { background: var(--blue-dim); border-color: #5e309d; }
.co-amber  { background: var(--amber-dim); border-color: rgba(251,191,36,0.25); }
.co-violet { background: var(--violet-dim); border-color: rgba(167,139,250,0.25); }

/* ══════════════════════════════
   FEATURE TILES
══════════════════════════════ */
.ftile {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.ftile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--lime);
  transition: width 0.3s;
}

.ftile:hover { border-color: var(--border2); box-shadow: 0 6px 24px rgba(0,0,0,0.3); transform: translateY(-2px); }
.ftile:hover::before { width: 100%; }

.ftile-icon { font-size: 26px; margin-bottom: 12px; }
.ftile-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 8px;
}
.ftile-body {
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
}

/* ══════════════════════════════
   BADGES
══════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 10px;
  margin: 2px;
  border: 1px solid;
}

.bl { background: var(--lime-dim); color: var(--lime); border-color: #3a1c63; }
.bb { background: var(--blue-dim); color: var(--blue); border-color: rgba(56,189,248,0.2); }
.bv { background: var(--violet-dim); color: var(--violet); border-color: rgba(167,139,250,0.2); }
.br { background: var(--rose-dim); color: var(--rose); border-color: rgba(251,113,133,0.2); }
.ba { background: var(--amber-dim); color: var(--amber); border-color: rgba(251,191,36,0.2); }

/* ══════════════════════════════
   TABLE
══════════════════════════════ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 18px;
}

.tbl th {
  padding: 11px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text2);
  text-align: left;
}

.tbl td {
  padding: 11px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 300;
  line-height: 1.5;
  vertical-align: top;
}

.tbl tr:hover td { background: rgba(255,255,255,0.01); }
.tbl td.good { color: var(--lime); font-weight: 500; }
.tbl td.bad  { color: var(--rose); }
.tbl td strong { color: var(--bright); font-weight: 600; }

/* ══════════════════════════════
   ARCHITECTURE DIAGRAM
══════════════════════════════ */
.archbox {
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.arch-bar {
  background: var(--bg3);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.arch-bar-t {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--lime);
}

.arch-inner { padding: 28px; }

.zone-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.zd-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zd-header {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text2);
  text-align: center;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.zd-node {
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 12px 8px;
  text-align: center;
  transition: all 0.2s;
}

.zd-node:hover { border-color: var(--lime); box-shadow: 0 0 14px var(--lime-dim); }
.zd-node.core { border-color: var(--lime); background: rgba(163,230,53,0.04); }

.zd-icon { font-size: 20px; margin-bottom: 5px; }
.zd-name { font-size: 11px; font-weight: 700; color: var(--bright); margin-bottom: 2px; }
.zd-sub  { font-size: 9px; color: var(--text2); text-transform: uppercase; }

.zd-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--lime);
  font-size: 18px;
  opacity: 0.5;
  margin-top: 28px;
}

/* ══════════════════════════════
   TERMINAL SIMULATOR
══════════════════════════════ */
.term {
  background: #050a0e;
  border: 1px solid var(--border2);
  overflow: hidden;
  margin-bottom: 20px;
}

.term-bar {
  background: var(--bg3);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.term-dots { display: flex; gap: 6px; }
.tdot { width: 10px; height: 10px; border-radius: 50%; }
.tdot:nth-child(1) { background: #ef4444; }
.tdot:nth-child(2) { background: #f59e0b; }
.tdot:nth-child(3) { background: #22c55e; }

.term-title-txt {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
}

.term-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.trec {
  color: var(--rose);
  animation: recpulse 1.5s ease infinite;
}

@keyframes recpulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.term-body { padding: 20px; }

/* Terminal states */
.tst { display: none; }
.tst.on { display: block; animation: secIn 0.25s ease; }

/* Login panel */
.login-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media(max-width:600px) { .login-panel { grid-template-columns: 1fr; } }

.tfield label {
  display: block;
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.tfield select,
.tfield input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--bright);
  outline: none;
  transition: border-color 0.2s;
}

.tfield select:focus,
.tfield input:focus { border-color: var(--lime); }
.tfield select option { background: #111520; }

.tbtn {
  width: 100%;
  padding: 11px 18px;
  background: var(--lime);
  color: var(--bg);
  border: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.tbtn:hover { background: var(--lime2); transform: translateY(-1px); box-shadow: 0 4px 16px var(--lime-glow); }
.tbtn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.tbtn-sm {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  font-size: 11px;
  color: var(--bright);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.tbtn-sm:hover { background: rgba(255,255,255,0.08); border-color: var(--lime); }
.tbtn-sm.deny { color: var(--rose); border-color: rgba(251,113,133,0.3); }
.tbtn-sm.deny:hover { background: var(--rose-dim); }

/* Terminal output */
.tout {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  padding: 14px;
  font-size: 12px;
  line-height: 1.9;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 14px;
}

.tout::-webkit-scrollbar { width: 3px; }
.tout::-webkit-scrollbar-thumb { background: var(--border2); }

.tl { display: flex; gap: 10px; }
.tl-p { color: var(--text2); flex-shrink: 0; white-space: nowrap; }
.tl-m { color: var(--text); }
.tl-m.ok   { color: var(--lime); }
.tl-m.warn { color: var(--amber); }
.tl-m.bad  { color: var(--rose); }
.tl-m.info { color: var(--blue); }
.tl-m.cmd  { color: var(--bright); }
.tl-m.deny { color: var(--rose); font-weight: 600; }

/* PCS decision panel */
.decision-board {
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 18px;
  margin-bottom: 14px;
}

.dboard-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dboard-title::before {
  content: '//';
  font-size: 12px;
  opacity: 0.5;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--text);
  transition: all 0.3s;
  opacity: 0.35;
}

.check-row.vis { opacity: 1; }
.check-row:last-child { border-bottom: none; }

.check-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.check-row.passed .check-icon::before { content: '✓'; color: var(--lime); }
.check-row.failed .check-icon::before { content: '✗'; color: var(--rose); }
.check-row.checking .check-icon::before { content: '⋯'; color: var(--amber); animation: ellipsis 1s infinite; }
.check-row.passed { opacity: 1; }
.check-row.failed { opacity: 1; }
.check-row.checking { opacity: 1; }

@keyframes ellipsis {
  0%,100% { opacity:1; }
  50% { opacity:0.4; }
}

.check-lbl { flex: 1; }
.check-val {
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.check-row.passed .check-val { color: var(--lime); }
.check-row.failed .check-val { color: var(--rose); }
.check-row.checking .check-val { color: var(--amber); }

/* Access granted/denied banners */
.access-granted {
  background: rgba(163,230,53,0.07);
  border: 1px solid rgba(163,230,53,0.25);
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
  text-align: center;
  margin-bottom: 14px;
}

.access-denied {
  background: var(--rose-dim);
  border: 1px solid rgba(251,113,133,0.3);
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rose);
  text-align: center;
  margin-bottom: 14px;
}

/* Privilege elevation request UI */
.elev-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 18px;
  margin-bottom: 14px;
}

.elev-box-title {
  font-size: 11px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.prompt-sym { color: var(--lime); font-size: 13px; white-space: nowrap; }
.prompt-cmd { color: var(--bright); font-size: 13px; flex: 1; }

/* Audit trail */
.audit-entry {
  display: flex;
  gap: 10px;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.ae-time { color: var(--text2); white-space: nowrap; flex-shrink: 0; }
.ae-user { color: var(--blue); white-space: nowrap; flex-shrink: 0; }
.ae-cmd  { color: var(--text); flex: 1; }
.ae-res  { font-weight: 600; white-space: nowrap; }
.ae-res.ok   { color: var(--lime); }
.ae-res.deny { color: var(--rose); }
.ae-res.elev { color: var(--amber); }

/* ══════════════════════════════
   ACCORDION
══════════════════════════════ */
.acc {
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.acc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--bright);
  user-select: none;
  transition: background 0.2s;
}

.acc-hd:hover { background: var(--surface2); }

.acc-arr {
  font-size: 11px;
  color: var(--text2);
  transition: transform 0.2s;
}

.acc.open .acc-arr { transform: rotate(180deg); }

.acc-body {
  display: none;
  padding: 18px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
}

.acc.open .acc-body { display: block; }

/* ══════════════════════════════
   CHECKLIST
══════════════════════════════ */
.chk-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.2s;
}

.chk-item:hover { padding-left: 6px; }
.chk-item:last-child { border-bottom: none; }

.chkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border2);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.2s;
}

.chk-item.ck .chkbox {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}

.chk-item .cit { font-size: 14px; font-weight: 600; color: var(--bright); margin-bottom: 3px; transition: color 0.2s; }
.chk-item.ck .cit { color: var(--text2); text-decoration: line-through; }
.chk-item .cis { font-size: 12px; font-weight: 300; color: var(--text2); line-height: 1.55; }

/* ══════════════════════════════
   QUIZ
══════════════════════════════ */
.q-num-row {
  font-size: 10px;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.q-num-row::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.qtxt {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}

.qopts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.qopt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: all 0.2s;
  background: var(--surface);
}

.qopt:hover:not(.nd) {
  border-color: var(--lime);
  background: var(--lime-dim);
  color: var(--bright);
}

.qopt .ql {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.qopt.correct { border-color: #77b255; background: #77b25520; color: var(--bright); }
.qopt.correct .ql { background:#60c090; border-color: #60c090; color: #fff; }
.qopt.wrong   { border-color: #dc143c; background: #dc143c2b; }
.qopt.wrong .ql { background: #ff7a90; border-color: #ff7a90; color: #fff; }
.qopt.nd { cursor: default; }

.qfb {
  display: none;
  padding: 13px 16px;
  border: 1px solid;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 14px;
}

.qfb.correct { background: #77b25520; border-color: #77b255; color: #60c090; }
.qfb.wrong   { background: #dc143c2b; border-color: #dc143c; color: #ff7a90; }
.qfb strong  { color: var(--bright); font-weight: 600; }

.quiz-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.qscore {
  font-size: 12px;
  color: var(--text2);
}

.result-screen {
  text-align: center;
  padding: 52px 20px;
}

.res-pct {
  font-size: 100px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 50px var(--lime-glow);
}

.res-grade {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 16px;
}

.res-msg {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { background: var(--lime2); transform: translateY(-1px); box-shadow: 0 4px 20px var(--lime-glow); }

.btn-ghost { background: transparent; color: var(--bright); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--bright); }

.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════
   BOTTOM NAV
══════════════════════════════ */
.botnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── STAGGER REVEAL ── */
.rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rv.v { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: 0.07s; }
.rv:nth-child(3) { transition-delay: 0.14s; }
.rv:nth-child(4) { transition-delay: 0.21s; }
.rv:nth-child(5) { transition-delay: 0.28s; }
.rv:nth-child(6) { transition-delay: 0.35s; }
.rv:nth-child(7) { transition-delay: 0.42s; }
.rv:nth-child(8) { transition-delay: 0.49s; }
.rv:nth-child(9) { transition-delay: 0.56s; }

/* Command highlight blocks */
.code-block {
  background: #020509;
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.8;
  overflow-x: auto;
  margin: 14px 0;
}

.cb-cmt { color: var(--text2); }
.cb-kw  { color: var(--rose); }
.cb-str { color: var(--blue); }
.cb-val { color: var(--lime); }
.cb-op  { color: var(--amber); }

/* Zone pill */
.zone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  font-size: 11px;
  color: var(--text2);
  margin: 3px;
}

.zone-pill.active { border-color: var(--lime); color: var(--lime); background: var(--lime-dim); }
.zone-pill::before { content: '▸'; font-size: 10px; }
.zone-pill.active::before { content: '●'; color: var(--lime); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }