:root {
  --ink: #ffffff;
  --ink2: #eef0f4;
  --muted: #d6d6d6;
  --light: #e2e7f1;
  --rule: #3a1c63;
  --bg: #191127;
  --surface: #23133a;
  --surface2: #1f1232;
  --amber: #883CF0;
  --amber-light: #1f1232;
  --amber-mid: #883CF0;
  --amber-dark: #920e87;
  --teal: #883CF0;
  --teal-light: #1f1232;
  --red: #883CF0;
  --red-light: #23133a;
  --blue: #1d4ed8;
  --blue-light: #dbeafe16;
  --glow-amber: rgba(217,119,6,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.jit-training-guide {
  background: #191127;
  color: var(--ink);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Texture overlay */
.jit-training-guide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23000' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  /* max-width: 1080px; */
  margin: 0 auto;
  padding: 0 28px 100px;
  height: 100vh;
  overflow-y: auto;
}

/* ── MASTHEAD ── */
.masthead {
  border-bottom: 3px solid var(--ink);
  padding: 32px 0 0;
  margin-bottom: 0;
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.masthead-series {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  border-radius: 2px;
}

.masthead-meta {
  
  font-size: 11px;
  color: var(--light);
  
}

.masthead-eyebrow {
  
  font-size: 11px;
  color: var(--amber);
  text-transform: uppercase;
  
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--amber);
}

h1.display {
  
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  
  color: var(--ink);
  margin-bottom: 20px;
}

h1.display em {
  font-style: italic;
  color: var(--amber);
}

.masthead-standfirst {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 28px;
  border-left: 3px solid var(--amber);
  padding-left: 16px;
}

/* Module progress strip */
.module-strip {
  display: flex;
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 0;
  height: 6px;
}

.module-pip {
  flex: 1;
  height: 6px;
  background: var(--rule);
  transition: background 0.4s;
  position: relative;
}

.module-pip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.module-pip.done::after { transform: scaleX(1); }
.module-pip + .module-pip { border-left: 2px solid var(--bg); }

/* ── TAB NAV ── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tnav-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 16px 22px;
  
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  
}

.tnav-btn:hover { color: var(--ink); }

.tnav-btn.active {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.tnav-btn .tnum {
  
  font-size: 10px;
  color: var(--light);
}

.tnav-btn.active .tnum { color: var(--amber); }

/* ── SECTIONS ── */
.section { display: none; }
.section.active { display: block; animation: sectionIn 0.35s ease; }

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SECTION HEADER ── */
.sec-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.sec-num {
  
  font-size: 80px;
  line-height: 1;
  color: var(--amber-mid);
  float: left;
  margin-right: 20px;
  margin-top: -8px;
  line-height: 0.9;
}

.sec-title {
  
  font-size: 34px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}

.sec-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  clear: left;
  padding-top: 4px;
}

/* ── PULLQUOTE ── */
.pullquote {
  border-top: 3px solid var(--amber);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  margin: 32px 0;
}

.pullquote p {
  
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink2);
  font-style: italic;
}

.pullquote cite {
  display: block;
  
  font-size: 11px;
  color: var(--amber);
  text-transform: uppercase;
  
  margin-top: 10px;
  font-style: normal;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px #be52e50f;
  border-color: #d1d5db;
}

.card-label {
  
  font-size: 10px;
  text-transform: uppercase;
  
  color: var(--amber);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--amber);
}

.card h3 {
  
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink);
}

.card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.7;
}

/* ── GRID ── */
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .g2, .g3 { grid-template-columns: 1fr; }
}

/* ── STANDING VS JIT comparison ── */
.vs-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.vs-side {
  padding: 24px;
}

.vs-side.bad { background: var(--red-light); }
.vs-side.good { background: var(--teal-light); }

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--ink);
  color: #000;
  font-size: 18px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  
}

.vs-head {
  
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  
  margin-bottom: 14px;
}

.vs-side.bad .vs-head { color: var(--red); }
.vs-side.good .vs-head { color: var(--teal); }

.vs-item {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.vs-item:last-child { border-bottom: none; }
.vs-item::before { flex-shrink: 0; margin-top: 1px; }
.vs-side.bad .vs-item::before { content: '✕'; color: var(--red); font-weight: 700; font-size: 11px; }
.vs-side.good .vs-item::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 11px; }

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-bottom: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), var(--rule));
}

.tl-item {
  position: relative;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tl-item.vis {
  opacity: 1;
  transform: none;
}

.tl-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--amber);
}

.tl-step {
  
  font-size: 10px;
  color: var(--amber);
  text-transform: uppercase;
  
  margin-bottom: 4px;
}

.tl-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.tl-body {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

/* ── JIT SIMULATOR ── */
.sim-panel {
  background: var(--ink);
  color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  
}

.sim-titlebar {
  background: #883cf050;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3a1c63;
}

.sim-titlebar span {
  font-size: 12px;
  color: #94a3b8;
  
}

.sim-dots { display: flex; gap: 6px; }
.sim-dot { width: 10px; height: 10px; border-radius: 50%; }
.sim-dot:nth-child(1) { background: #f87171; }
.sim-dot:nth-child(2) { background: #fbbf24; }
.sim-dot:nth-child(3) { background: #34d399; }

.sim-body { padding: 24px; background-color: #23133a; }

/* Request form inside simulator */
.sim-form {
  display: grid;
  gap: 14px;
}

.sim-field label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 5px;
  text-transform: uppercase;
  
}

.sim-field select,
.sim-field input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 9px 12px;
  
  font-size: 13px;
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.2s;
}

.sim-field select:focus,
.sim-field input:focus {
  border-color: var(--amber);
}

.sim-field select option { background: #1e2533; }

.sim-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.sim-btn {
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 11px 20px;
  
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  
}

.sim-btn:hover { background: #883cf0e0; transform: translateY(-1px); }
.sim-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Workflow states */
.sim-state {
  display: none;
}

.sim-state.active {
  display: block;
  animation: sectionIn 0.3s ease;
}

/* Approval flow */
.approval-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.ap-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  transition: all 0.4s;
}

.ap-step.pending { opacity: 0.4; }
.ap-step.active-step { border-color: var(--amber); background: rgba(217,119,6,0.1); animation: stepGlow 1s ease infinite alternate; }
.ap-step.approved { border-color: #34d399; background: rgba(52,211,153,0.08); opacity: 1; }
.ap-step.denied { border-color: #f87171; background: rgba(248,113,113,0.08); opacity: 1; }

@keyframes stepGlow {
  from { box-shadow: 0 0 0 rgba(217,119,6,0); }
  to { box-shadow: 0 0 12px #be52e50f; }
}

.ap-icon { font-size: 16px; flex-shrink: 0; }
.ap-label { flex: 1; }
.ap-status {
  font-size: 11px;
  
  text-transform: uppercase;
  
}

.ap-step.pending .ap-status { color: #475569; }
.ap-step.active-step .ap-status { color: var(--amber); }
.ap-step.approved .ap-status { color: #34d399; }
.ap-step.denied .ap-status { color: #f87171; }

/* Countdown clock */
.countdown-block {
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.countdown-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  
  margin-bottom: 8px;
}

.countdown-timer {
  
  font-size: 52px;
  color: var(--amber);
  line-height: 1;
  
  margin-bottom: 6px;
}

.countdown-sub {
  font-size: 11px;
  color: #64748b;
  
}

.countdown-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}

.countdown-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
  transition: width 1s linear;
}

.session-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sim-btn-sm {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 8px 12px;
  
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-btn-sm:hover { background: #883cf0e0; }
.sim-btn-sm.danger { border-color: rgba(248,113,113,0.4); color: #fff; }
.sim-btn-sm.danger:hover { background: rgba(248,113,113,0.1); }

/* Session log */
.session-log {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  color: #d9e0eb;
  line-height: 1.8;
  margin-top: 12px;
  max-height: 140px;
  overflow-y: auto;
}

.log-line { display: flex; gap: 10px; }
.log-time { color: #d3dae4; flex-shrink: 0; }
.log-msg { color: #ebeef3; }
.log-msg.good { color: #34d399; }
.log-msg.warn { color: var(--amber); }
.log-msg.bad { color: #f87171; }

/* Expired state */
.expired-banner {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: #f87171;
  margin: 16px 0;
}

/* ── CHECKLIST ── */
.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left 0.2s;
}

.check-item:hover { padding-left: 4px; }
.check-item:last-child { border-bottom: none; }

.chk {
  width: 22px;
  height: 22px;
  border: 2px solid var(--rule);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 12px;
  color: transparent;
}

.check-item.done .chk {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.check-item .ci-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  transition: color 0.2s;
}

.check-item.done .ci-title {
  color: var(--muted);
  text-decoration: line-through;
}

.check-item .ci-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--light);
  line-height: 1.5;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  
  font-size: 11px;
  font-weight: 500;
  border-radius: 2px;
  
  margin: 2px;
}

.badge-amber { background: var(--amber-light); color: var(--amber-dark); border: 1px solid var(--amber-mid); }
.badge-teal { background: var(--teal-light); color: var(--teal); border: 1px solid #99f6e4; }
.badge-red { background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.badge-blue { background: var(--blue-light); color: var(--blue); border: 1px solid #93c5fd; }

/* ── CALLOUT ── */
.callout {
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}

.callout-icon { font-size: 20px; flex-shrink: 0; }
.callout-text { color: var(--ink2); }
.callout-text strong { font-weight: 600; }

.callout-amber { background: var(--amber-light); border-left: 3px solid var(--amber); }
.callout-teal { background: var(--teal-light); border-left: 3px solid var(--teal); }
.callout-red { background: var(--red-light); border-left: 3px solid var(--red); }

/* ── RISK METER ── */
.risk-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.risk-row:last-child { border-bottom: none; }

.risk-label {
  font-size: 13px;
  font-weight: 500;
  width: 180px;
  flex-shrink: 0;
  color: var(--ink2);
}

.risk-bar-track {
  flex: 1;
  height: 8px;
  background: var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease 0.3s;
  width: 0%;
}

.fill-red { background: linear-gradient(90deg, #fca5e5, var(--red)); }
.fill-teal { background: linear-gradient(90deg, #d199f6, var(--teal)); }
.fill-amber { background: linear-gradient(90deg, var(--amber-mid), var(--amber)); }

.risk-val {
  
  font-size: 12px;
  width: 36px;
  text-align: right;
  color: var(--muted);
}

/* ── QUIZ ── */
.quiz-q {
  margin-bottom: 28px;
}

.qnum {
  
  font-size: 11px;
  color: var(--amber);
  text-transform: uppercase;
  
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qnum::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.qtxt {
  
  font-size: 20px;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 18px;
}

.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(--rule);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink2);
  transition: all 0.2s;
  background: var(--surface);
}

.qopt:hover:not(.disabled) {
  border-color: var(--amber);
  background: var(--amber-light);
}

.qopt .ol {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--rule);
  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; }
.qopt.correct .ol { background: var(--teal); border-color: var(--teal); color: #fff; }

.qopt.wrong { border-color:#dc143c; background: #dc143c2b; }
.qopt.wrong .ol { background: var(--red); border-color: var(--red); color: #fff; }

.qopt.disabled { cursor: default; }

.qfeedback {
  display: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
}

.qfeedback.correct { background: #77b25520;
    border-left: 3px solid #77b255;
    color: #60c090; }
.qfeedback.wrong { background: #dc143c2b;
    border-left: 3px solid #dc143c;
    color: #ff7a90; }

.quiz-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.qscore {
  
  font-size: 13px;
  color: var(--muted);
}

/* Result */
.result-wrap {
  text-align: center;
  padding: 48px 20px;
}

.result-big {
  
  font-size: 80px;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 4px;
}

.result-grade {
  
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  
  margin-bottom: 20px;
}

.result-msg {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink2);
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 3px;
  
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  
}

.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #883cf0e0; transform: translateY(-1px); box-shadow: 0 4px 16px #be52e50f; }

.btn-outline { background: transparent; color: var(--ink); border: 2px solid #5e309d; }
.btn-outline:hover { background: var(--ink); color: #5e309d; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── BOTTOM NAV ── */
.bot-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid #5e309d;
}

/* ── STAGGER REVEAL ── */
.rev {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rev.v { opacity: 1; transform: none; }
.rev:nth-child(2) { transition-delay: 0.06s; }
.rev:nth-child(3) { transition-delay: 0.12s; }
.rev:nth-child(4) { transition-delay: 0.18s; }
.rev:nth-child(5) { transition-delay: 0.24s; }

/* scrollbar styling */
.session-log::-webkit-scrollbar { width: 4px; }
.session-log::-webkit-scrollbar-track { background: transparent; }
.session-log::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 2px; }

/* ── concept boxes ── */
.concept-box {
  padding: 20px 24px;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}

.concept-box .cb-tag {
  
  font-size: 10px;
  text-transform: uppercase;
  
  color: var(--amber);
  margin-bottom: 6px;
}

.concept-box h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.concept-box p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.65;
}

/* Architecture diagram */
.arch-diagram {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.arch-header {
  background: #2a1647;
  color: #fff;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
}

.arch-body {
  padding: 24px;
  background: var(--surface);
}

.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
}

.arch-node {
  flex: 1;
  min-width: 90px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 10px;
  text-align: center;
  background: var(--surface2);
  transition: all 0.2s;
  position: relative;
}

.arch-node:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 16px #be52e50f;
  z-index: 1;
}

.arch-node .an-icon { font-size: 24px; margin-bottom: 8px; }
.arch-node .an-name { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.arch-node .an-sub {  font-size: 10px; color: var(--light); }

.arch-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--amber);
  font-size: 16px;
  flex-shrink: 0;
}

.arch-node.highlight {
  border-color: var(--amber);
  background: var(--amber-light);
}

  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 4px; }