:root {
  --bg:       #23133a;
  --bg2:      #2a1647;
  --surface:  #23133a;
  --surface2: #1f1232;
  --ink:      #ffffff;
  --ink2:     #f8f8f7;
  --ink3:     #f5f0eb;
  --ink4:     #eeebe6;
  --rule:     #3a1c63;

  --fire:     #883CF0;
  --fire-lt:  #1f1232;
  --fire-mid: #2a16478c;

  --sky:      #ad3ef2;
  --sky-lt:   #1f1232;
  --sky-mid:  #2a16478c;

  --jade:     #b33ff3;
  --jade-lt:  #1f1232;
  --jade-mid: 2a16478c;

  --amber:    #883CF0;
  --amber-lt: #fdf0cf;
  --amber-mid:rgba(176,120,0,0.1);

  --red:      #c1262c;
  --red-lt:   #fce8e9;

  --shadow-sm: 0 1px 3px #be52e50f, 0 1px 2px #be52e50f;
  --shadow-md: 0 4px 12px #be52e50f, 0 2px 4px #be52e50f;
  --shadow-lg: 0 12px 32px #be52e50f, 0 4px 8px #be52e50f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

.pam-pcce-training-guide {
  background: #191127;
  color: var(--ink);
  position: relative;
  font-size: 15px;
  line-height: 1.75;
  height: 100vh;
  overflow-y: auto;
}

/* ─── Subtle grain overlay ─── */
.pam-pcce-training-guide::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.4;
}

/* ═══ SHELL ═══ */
.shell { display: flex; min-height: 100vh; }

/* ═══ SIDEBAR ═══ */
.sidebar {
  width: 300px; flex-shrink: 0;
  background: #180f26;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 16px #be52e50f;
}

.sb-brand {
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(160deg, #23133a 60%, var(--fire-lt) 100%);
}

.sb-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--fire-mid);
  border: 1px solid #3a1c63;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 9px; 
  color: var(--fire); text-transform: uppercase;
  margin-bottom: 12px;
}

.sb-kicker-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fire);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.sb-title {
  
  font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.2;
}

.sb-title em { font-style: italic; color: var(--fire); }

.sb-sub {
  font-size: 11px; color: var(--ink3);
  margin-top: 5px; font-weight: 500;
  
}

/* Progress */
.sb-progress { padding: 18px 28px; border-bottom: 1px solid var(--rule); }

.sb-prog-row {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600;
   text-transform: uppercase;
  color: var(--ink3); margin-bottom: 8px;
}

.prog-track {
  height: 5px; background: var(--bg2); border-radius: 3px; overflow: hidden;
}

.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fire), #e197f9);
  border-radius: 3px; width: 0%;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 6px #be52e50f;
}

/* Nav */
.sb-nav { padding: 12px 0 20px; flex: 1; }

.sb-nav-section {
  
  font-size: 9px;  text-transform: uppercase;
  color: var(--ink4); padding: 10px 28px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 28px; cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
  position: relative;
}

.nav-item:hover { background: var(--surface2); border-left-color: var(--ink4); }
.nav-item.active { background: var(--fire-lt); border-left-color: var(--fire); }
.nav-item.active .ni-title { color: var(--fire); }
.nav-item.active .ni-num { color: var(--fire); }

.ni-num {
  
  font-size: 10px; color: var(--ink4);
  width: 22px; flex-shrink: 0;
}

.ni-body { flex: 1; }

.ni-title {
  font-size: 13px; font-weight: 600;
  color: var(--ink2); line-height: 1.3;
}

.ni-sub { font-size: 11px; color: var(--ink3); margin-top: 1px; }

.ni-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink4);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: transparent;
  flex-shrink: 0; transition: all 0.3s;
}

.nav-item.done .ni-check {
  border-color: var(--jade);
  background: var(--jade);
  color: white;
  box-shadow: 0 0 0 3px var(--jade-lt);
}

/* Cert widget */
.sb-cert {
  margin: 0 20px 24px;
  background: linear-gradient(135deg, #3a1c63 0%, #684895 100%);
  border-radius: 12px; padding: 18px 20px;
  color: white;
}

.sb-cert-title {
  
  font-size: 13px; font-weight: 700;
  margin-bottom: 4px;
}

.sb-cert-sub { font-size: 11px; opacity: 0.6; margin-bottom: 12px; }

.cert-badge-mini {
  display: flex; align-items: center; gap: 10px;
}

.cert-icon { font-size: 24px; }

.cert-info { font-size: 11px; opacity: 0.75; line-height: 1.4; }


/* ═══ MAIN ═══ */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Topbar */
.topbar {
  height: 60px;
  background: #180f26;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center;
  padding: 0 44px; gap: 14px;
  position: sticky; top: 0; z-index: 1;
}

.tb-crumb {
  
  font-size: 10px; 
  color: var(--fire); text-transform: uppercase;
}

.tb-sep { color: var(--ink4); }
.tb-page { font-weight: 600; font-size: 14px; color: var(--ink2); }

.tb-actions { margin-left: auto; display: flex; gap: 10px; }

.btn {
  padding: 8px 18px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; border: none;
  
  transition: all 0.18s;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--rule);
  color: var(--ink3);
}

.btn-outline:hover { border-color: var(--ink2); color: var(--ink); }

.btn-fire {
  background: var(--fire);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-fire:hover {
  background: #883cf0e0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}


/* ═══ CONTENT ═══ */
.content { padding: 48px 44px; max-width: 900px; }

/* Modules */
.module { display: none; animation: reveal 0.4s ease; }
.module.visible { display: block; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Module header */
.mod-header { margin-bottom: 40px; }

.mod-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}

.tag {
  display: inline-block;
  
  font-size: 9px;  text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px; font-weight: 500;
  border: 1px solid;
}

.tag-fire  { color: var(--fire); border-color: #3a1c63; background: var(--fire-mid); }
.tag-sky   { color: var(--sky);  border-color: #3a1c63;  background: var(--sky-mid); }
.tag-jade  { color: var(--jade); border-color: #3a1c63;  background: var(--jade-mid); }
.tag-amber { color: var(--amber);border-color: #3a1c63;  background: var(--amber-mid); }

.mod-title {
  
  font-size: 38px; font-weight: 900; line-height: 1.1;
  color: var(--ink); 
}

.mod-title .accent { color: var(--fire); font-style: italic; }
.mod-title .accent-sky { color: var(--sky); font-style: italic; }
.mod-title .accent-jade { color: var(--jade); font-style: italic; }
.mod-title .accent-amber { color: var(--amber); font-style: italic; }

.mod-lead {
  font-size: 16px; color: var(--ink3); margin-top: 12px;
  max-width: 580px; font-weight: 300; line-height: 1.7;
}

/* Divider */
.divider {
  height: 1px; background: var(--rule);
  margin: 32px 0;
}

/* ─── Cards ─── */
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 12px; padding: 28px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.card-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px;
}

.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.ci-fire  { background: var(--fire-lt);  }
.ci-sky   { background: var(--sky-lt);   }
.ci-jade  { background: var(--jade-lt);  }
.ci-amber { background: var(--amber-lt); }
.ci-red   { background: var(--red-lt);   }
.ci-ink   { background: var(--bg2);      }

.card-title {
  
  font-size: 17px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
  flex: 1;
}

.card-sub {
  font-size: 11px; color: var(--ink3);
  
   margin-top: 2px;
}

.card p { font-size: 14px; color: var(--ink2); line-height: 1.8; }

/* Grids */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }

/* Stat cards */
.stat-c {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 12px; padding: 22px 20px;
  text-align: center; box-shadow: var(--shadow-sm);
}

.stat-num {
  
  font-size: 42px; font-weight: 900; line-height: 1;
  color: var(--fire); margin-bottom: 6px;
}

.stat-label { font-size: 12px; color: var(--ink3); line-height: 1.5; font-weight: 500; }

/* Callouts */
.callout {
  display: flex; gap: 14px;
  padding: 18px 22px; border-radius: 10px; margin-bottom: 20px;
  border-left: 3px solid;
}

.co-fire  { background: var(--fire-lt);  border-color: var(--fire);  }
.co-sky   { background: var(--sky-lt);   border-color: var(--sky);   }
.co-jade  { background: var(--jade-lt);  border-color: var(--jade);  }
.co-amber { background: #1f1232; border-color: #883CF0; }
.co-red   { background: var(--red-lt);   border-color: var(--red);   }

.co-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.co-body { flex: 1; }
.co-title { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.co-text  { font-size: 13px; color: var(--ink2); line-height: 1.7; }

/* ─── Accordions ─── */
.acc {
  border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.acc-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; cursor: pointer;
  background: var(--surface); transition: background 0.15s;
  user-select: none;
}

.acc-head:hover { background: var(--surface2); }
.acc-head.open  { background: var(--surface2); border-bottom: 1px solid var(--rule); }

.acc-title { font-weight: 600; font-size: 14px; color: var(--ink); flex: 1; }

.acc-arrow {
  font-size: 11px; color: var(--ink4);
  transition: transform 0.25s; flex-shrink: 0;
}

.acc-head.open .acc-arrow { transform: rotate(180deg); color: var(--fire); }

.acc-body {
  display: none; padding: 18px 22px;
  font-size: 14px; color: var(--ink2); line-height: 1.85;
  background: var(--surface2);
}

.acc-body.open { display: block; }
.acc-body strong { color: var(--ink); font-weight: 600; }

/* ─── Tables ─── */
.tbl-wrap {
  border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--bg2); padding: 11px 16px;
  text-align: left;
  
  font-size: 10px;  text-transform: uppercase;
  color: var(--ink3); border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

tbody td {
  padding: 12px 16px; font-size: 13px; color: var(--ink2);
  border-bottom: 1px solid rgba(26,22,18,0.05); vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface2); }

/* ─── Interactive cloud diagram ─── */
.cloud-map {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 28px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}

.cloud-map-title {
  
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
}

.cloud-map-sub {
  font-size: 12px; color: var(--ink3); margin-bottom: 22px;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 16px;
}

.cg-cell {
  background: var(--bg); border: 1.5px solid var(--rule);
  border-radius: 10px; padding: 16px 12px;
  text-align: center; cursor: pointer;
  transition: all 0.2s;
}

.cg-cell:hover, .cg-cell.sel {
  border-color: var(--fire);
  background: var(--fire-lt);
  box-shadow: 0 0 0 3px rgba(232,80,10,0.08);
  transform: translateY(-2px);
}

.cg-cell.sel-sky {
  border-color: var(--sky);
  background: var(--sky-lt);
  box-shadow: 0 0 0 3px rgba(20,97,196,0.08);
}

.cg-icon { font-size: 26px; margin-bottom: 6px; }
.cg-title { font-size: 12px; font-weight: 600; color: var(--ink); }
.cg-sub   { font-size: 10px; color: var(--ink3); margin-top: 3px; line-height: 1.4; }

.cg-detail {
  background: var(--bg2); border: 1px solid var(--rule);
  border-radius: 8px; padding: 14px 18px;
  font-size: 13px; color: var(--ink2); line-height: 1.75;
  min-height: 52px; transition: all 0.25s;
}

/* ─── PCCE Architecture ─── */
.arch {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 32px;
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}

.arch::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,80,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.arch-title {
  
  font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 20px;
}

.arch-row {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 6px;
}

.arch-lbl {
  
  font-size: 9px;  text-transform: uppercase;
  color: var(--ink3); text-align: center; margin-bottom: 12px;
}

.arch-box {
  padding: 10px 16px; border-radius: 8px;
  font-size: 12px; font-weight: 600; text-align: center;
  cursor: pointer; border: 1.5px solid;
  transition: all 0.2s; position: relative;
  white-space: nowrap;
}

.arch-box:hover { transform: scale(1.04) translateY(-1px); box-shadow: var(--shadow-md); }

.ab-inp { color: var(--sky);  border-color: #5e309d; background: var(--sky-lt);  }
.ab-eng { color: var(--fire); border-color: rgba(232,80,10,0.3);  background: var(--fire-lt); }
.ab-out { color: var(--jade); border-color: rgba(13,122,85,0.3);  background: var(--jade-lt); }

.arch-arrow {
  text-align: center; color: var(--ink4); font-size: 20px;
  margin-bottom: 6px; line-height: 1;
}

/* ─── Entitlement risk visualizer ─── */
.risk-vis {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 28px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.rv-title {
  
  font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}

.rv-sub { font-size: 12px; color: var(--ink3); margin-bottom: 20px; }

.rv-items { display: flex; flex-direction: column; gap: 12px; }

.rv-item {
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  align-items: center; gap: 14px;
}

.rv-name { font-size: 13px; font-weight: 500; color: var(--ink2); }

.rv-bar-track {
  height: 10px; background: var(--bg2); border-radius: 5px; overflow: hidden;
  cursor: pointer;
}

.rv-bar-fill {
  height: 100%; border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.34,1.2,0.64,1);
}

.rfill-crit { background: linear-gradient(90deg, #c1262c, #e85050); }
.rfill-high { background: linear-gradient(90deg, var(--fire), #f07a2a); }
.rfill-med  { background: linear-gradient(90deg, var(--amber), #d4a200); }
.rfill-low  { background: linear-gradient(90deg, var(--jade), #1a9b6f); }

.rv-score {
  
  font-size: 12px; font-weight: 500; text-align: right;
}

.rv-crit  { color: var(--red);   }
.rv-high  { color: var(--fire);  }
.rv-med   { color: var(--amber); }
.rv-low   { color: var(--jade);  }

/* ─── Bullet list ─── */
.bullet-list { display: flex; flex-direction: column; gap: 9px; }

.bullet-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink2); line-height: 1.7;
  list-style: none;
}

.bullet-list li::before {
  content: '▸'; color: var(--fire); flex-shrink: 0; margin-top: 2px; font-size: 11px;
}

/* ─── Highlight panel ─── */
.hl-panel {
  background: linear-gradient(135deg, var(--fire-lt), rgba(225, 169, 236, 0.3));
  border: 1px solid #3a1c63;
  border-radius: 12px; padding: 22px 26px; margin-bottom: 20px;
}

.hl-panel h4 {
  
  font-size: 15px; font-weight: 700; color: var(--fire); margin-bottom: 12px;
}

/* ─── Code terminal ─── */
.terminal {
  background: #0f0818; border: 1px solid #5e309d;
  border-radius: 12px; overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  
}

.term-bar {
  background: #3a1c6350; padding: 10px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid #3a1c63;
}

.td { width: 11px; height: 11px; border-radius: 50%; }
.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }

.term-lbl {
  margin-left: 10px; font-size: 11px;
  color: rgba(250, 250, 250, 0.746); 
}

.term-body {
  padding: 18px 20px; font-size: 12px; line-height: 1.9;
  color: #f0efed;
}

.t-cmt { color: rgba(200,184,154,0.35); }
.t-key { color: #82c4f8; }
.t-val { color: #f0a060; }
.t-str { color: #88d4a0; }
.t-hi  { color: #f07a2a; font-weight: 500; }

/* ─── Comparison table ─── */
.comp-header { color: var(--fire) !important; }
.comp-check  { color: var(--jade); font-size: 15px; }
.comp-x      { color: var(--ink4); font-size: 13px; }

/* ─── Quiz ─── */
.quiz-q {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 12px; padding: 26px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.qnum {
  
  font-size: 10px;  text-transform: uppercase;
  color: var(--ink3); margin-bottom: 8px;
}

.qtext {
  
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin-bottom: 18px; line-height: 1.4;
}

.qopts { display: flex; flex-direction: column; gap: 8px; }

.qopt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; border: 1.5px solid var(--rule);
  border-radius: 8px; cursor: pointer; transition: all 0.18s;
  font-size: 13px; color: var(--ink2); background: var(--surface2);
  user-select: none;
}

.qopt:hover:not(.disabled) {
  border-color: var(--fire); background: var(--fire-lt);
  color: var(--ink);
}

.qopt.correct { border-color: #77b255; background: #77b25520; color: #60c090; }
.qopt.wrong   { border-color: #dc143c;  background: #dc143c2b;  color: #ff7a90; opacity: 0.65; }
.qopt.disabled { cursor: default; }

.qradio {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--ink4); flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; transition: all 0.2s;
}

.qopt.correct .qradio { background: var(--jade); border-color: var(--jade); color: white; }
.qopt.wrong   .qradio { border-color: var(--red); }

.qfb {
  margin-top: 12px; padding: 10px 14px;
  border-radius: 8px; font-size: 13px; display: none; line-height: 1.65;
}

.qfb.show { display: block; }
.qfb.ok  { background: var(--jade-lt); border: 1px solid rgba(13,122,85,0.25); color: var(--jade); }
.qfb.bad { background: var(--red-lt);  border: 1px solid rgba(193,38,44,0.25); color: var(--red); }

/* Score box */
.score-box {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 40px; text-align: center;
  margin-bottom: 20px; display: none; box-shadow: var(--shadow-lg);
}

.score-box.show { display: block; animation: reveal 0.5s ease; }

.score-big {
  
  font-size: 80px; font-weight: 900; line-height: 1;
  color: var(--fire); margin-bottom: 8px;
}

.score-title {
  
  font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}

.score-sub { font-size: 14px; color: var(--ink3); margin-bottom: 24px; }

/* ─── Completion ─── */
.mod-complete {
  background: linear-gradient(135deg, var(--jade-lt), #684895);
  border: 1px solid #3a1c63;
  border-radius: 12px; padding: 32px; text-align: center; margin-top: 36px;
}

.mc-icon { font-size: 44px; margin-bottom: 10px; }

.mc-title {
  
  font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}

.mc-sub { font-size: 14px; color: var(--ink3); margin-bottom: 20px; }

/* ─── Pill tags ─── */
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }

.pill {
  padding: 3px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 600; border: 1px solid;
}

.pill-fire  { color: var(--fire);  border-color: rgba(232,80,10,0.3);  background: var(--fire-mid); }
.pill-sky   { color: var(--sky);   border-color: #23133a;  background: var(--sky-mid); }
.pill-jade  { color: var(--jade);  border-color: rgba(13,122,85,0.3);  background: var(--jade-mid); }
.pill-amber { color: var(--amber); border-color: rgba(176,120,0,0.3);  background: var(--amber-mid); }

/* ─── Step flow ─── */
.flow { display: flex; gap: 0; margin: 20px 0; overflow-x: auto; padding-bottom: 4px; }

.flow-step {
  flex: 1; min-width: 130px;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -10px; top: 22px;
  color: var(--fire); font-size: 16px; z-index: 1;
}

.flow-circle {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--fire);
  background: var(--fire-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
  transition: all 0.25s; cursor: default;
  box-shadow: 0 0 0 4px rgba(232,80,10,0.08);
}

.flow-step:hover .flow-circle {
  background: var(--fire); transform: scale(1.08);
}

.flow-lbl {
  font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.3; margin-bottom: 3px;
}

.flow-sub {
  font-size: 10px; color: var(--ink3); text-align: center;
   line-height: 1.4;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink4); }

/* ─── Responsive ─── */
@media (max-width: 780px) {
  .sidebar { display: none; }
  .content { padding: 24px; }
  .g2, .g3, .cloud-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: flex-start; }
  .flow-step::after { display: none; }
  .rv-item { grid-template-columns: 1fr; gap: 4px; }
  .mod-title { font-size: 28px; }
  .topbar{
        flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 10px;
  }
}