/* ============================================================
   layouts.css — 26 slide archetypes. Each reads only theme tokens,
   so every layout renders in any palette.
   ============================================================ */

/* ---------- shared scaffolding ---------- */
.decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.decor svg, .decor .blob { position: absolute; }
.sl {
  position: absolute; inset: 0; z-index: 2;
  padding: 64px 76px;
  display: flex; flex-direction: column;
  gap: 20px;
}
.sl--center { align-items: center; justify-content: center; text-align: center; }
.watermark {
  position: absolute; right: 34px; bottom: 26px; z-index: 3;
  font: 700 11px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); opacity: .6; display: flex; align-items: center; gap: 8px;
}
.watermark .wm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 8px var(--a2); }

/* typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px; align-self: flex-start;
  font: 800 13px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--a1);
}
.sl--center .eyebrow { align-self: center; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow .ey-ic { width: 16px; height: 16px; }
.title { margin: 0; font: 800 56px/1.03 var(--font-display); letter-spacing: -.022em; color: var(--ink); }
.title.sm { font-size: 44px; }
.title.xl { font-size: 72px; letter-spacing: -.03em; }
.subtitle { margin: 0; font: 500 22px/1.45 var(--font-body); color: var(--ink-2); max-width: 60ch; }
.lede { margin: 0; font: 400 18px/1.6 var(--font-body); color: var(--ink-2); max-width: 62ch; }
.kicker { font: 700 15px/1.4 var(--font-display); color: var(--a2); }

/* pills / badges */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font: 700 13px/1 var(--font-display); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pill.solid { background: linear-gradient(120deg, var(--a1), var(--a2)); color: var(--on-accent); border-color: transparent; box-shadow: 0 12px 30px -12px var(--glow); }
.pill.ghost { background: transparent; }
.pill .pdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pillrow { display: flex; flex-wrap: wrap; gap: 10px; }

/* surface card */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px; backdrop-filter: blur(6px);
}
.card.glow { box-shadow: 0 24px 60px -30px var(--glow); }

/* icon chip */
.ichip {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(140deg, var(--a1), var(--a2));
  box-shadow: 0 14px 30px -14px var(--glow);
}
.ichip.soft { background: var(--surface-2); color: var(--a1); box-shadow: none; border: 1px solid var(--line); }
.ichip svg { width: 26px; height: 26px; }
.ichip.lg { width: 66px; height: 66px; border-radius: 19px; }
.ichip.lg svg { width: 32px; height: 32px; }

/* ---------- 1. HERO ---------- */
.lay-hero .sl { justify-content: center; }
.lay-hero .title { font-size: 76px; letter-spacing: -.03em; max-width: 20ch; }
.lay-hero .sl--center .title { max-width: 22ch; }
.lay-hero .subtitle { font-size: 23px; margin-top: 6px; }
.lay-hero .hero-cta { margin-top: 14px; }
.lay-hero .hero-meta { display: flex; gap: 26px; margin-top: 26px; }
.lay-hero .hero-meta .hm { display: flex; flex-direction: column; gap: 3px; }
.lay-hero .hero-meta .hm b { font: 800 26px/1 var(--font-display); color: var(--ink); }
.lay-hero .hero-meta .hm span { font: 600 12px/1 var(--font-display); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 2. SECTION DIVIDER ---------- */
.lay-section .sl { justify-content: center; }
.lay-section .sec-idx { font: 800 190px/0.8 var(--font-display); letter-spacing: -.05em;
  -webkit-text-stroke: 2px var(--a1); color: transparent; opacity: .9; }
.lay-section .title { font-size: 66px; max-width: 18ch; }
.lay-section .sec-bar { width: 90px; height: 6px; border-radius: 6px; background: linear-gradient(90deg,var(--a1),var(--a2)); margin: 4px 0 2px; }

/* ---------- 3. AGENDA ---------- */
.lay-agenda .ag-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 12px; }
.ag-item { display: flex; align-items: center; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.ag-item .ag-n { font: 800 22px/1 var(--font-display); color: var(--a1); width: 42px; }
.ag-item .ag-t { font: 700 19px/1.3 var(--font-display); color: var(--ink); }
.ag-item .ag-s { font: 500 13px/1.3 var(--font-body); color: var(--muted); }
.ag-item .ag-body { display: flex; flex-direction: column; gap: 2px; }

/* ---------- 4. SPLIT (text + visual) ---------- */
.lay-split .sl { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-content: center; }
.lay-split.rev .sl { grid-template-columns: 0.95fr 1.05fr; }
.lay-split.rev .split-text { order: 2; }
.lay-split .split-text { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.lay-split .split-visual { position: relative; display: grid; place-items: center; }
.lay-split .featline { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.featline .fl { display: flex; align-items: flex-start; gap: 13px; }
.featline .fl .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--surface-2); color: var(--a1); border: 1px solid var(--line); }
.featline .fl .fi svg { width: 18px; height: 18px; }
.featline .fl b { font: 700 17px/1.3 var(--font-display); color: var(--ink); }
.featline .fl span { font: 400 14.5px/1.4 var(--font-body); color: var(--ink-2); }
.featline .fl .fl-body { display: flex; flex-direction: column; gap: 2px; }

/* ---------- 5. BULLETS ---------- */
.lay-bullets .bl { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; max-width: 74ch; }
.bl .b { display: flex; align-items: flex-start; gap: 16px; }
.bl .b .bm { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(140deg,var(--a1),var(--a2)); color: var(--on-accent); box-shadow: 0 8px 20px -10px var(--glow); }
.bl .b .bm svg { width: 16px; height: 16px; }
.bl .b .bt { font: 500 19px/1.45 var(--font-body); color: var(--ink); padding-top: 3px; }
.bl .b .bt b { color: var(--ink); font-weight: 800; }

/* ---------- 6. STAT SHOWCASE ---------- */
.lay-stat .sl { justify-content: center; }
.lay-stat .stat-row { display: flex; gap: 46px; flex-wrap: wrap; margin-top: 10px; }
.stat-big { display: flex; flex-direction: column; gap: 6px; }
.stat-big .sv { font: 800 92px/0.9 var(--font-display); letter-spacing: -.03em; }
.stat-big .sv .u { font-size: 42px; }
.stat-big .sl-lb { font: 600 16px/1.35 var(--font-body); color: var(--ink-2); max-width: 22ch; }
.lay-stat.single .sv { font-size: 150px; }

/* ---------- 7. QUOTE ---------- */
.lay-quote .sl { justify-content: center; }
.lay-quote .qmark { font: 800 130px/0.7 Georgia, serif; color: var(--a2); opacity: .5; height: 60px; }
.lay-quote .qtext { font: 600 40px/1.28 var(--font-display); letter-spacing: -.015em; color: var(--ink); max-width: 24ch; }
.lay-quote .qauthor { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.lay-quote .qauthor .qav { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(140deg,var(--a1),var(--a2)); display: grid; place-items: center; color: var(--on-accent); font-weight: 800; }
.lay-quote .qauthor b { font: 700 18px/1.2 var(--font-display); color: var(--ink); display: block; }
.lay-quote .qauthor span { font: 500 14px/1.2 var(--font-body); color: var(--muted); }

/* ---------- 8. TIMELINE ---------- */
.lay-timeline .tlwrap { position: relative; margin-top: 42px; }
.lay-timeline .tl-track { position: absolute; left: 0; right: 0; top: 26px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.lay-timeline .tl-track::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--a1),var(--a2),var(--a3)); transform-origin: left; }
.lay-timeline .tl-items { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.tl-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 18px; }
.tl-item .tl-node { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(140deg,var(--a1),var(--a2)); box-shadow: 0 12px 26px -12px var(--glow); position: relative; z-index: 2; }
.tl-item .tl-node svg { width: 24px; height: 24px; }
.tl-item .tl-when { font: 800 13px/1 var(--font-display); color: var(--a2); letter-spacing: .08em; text-transform: uppercase; }
.tl-item .tl-h { font: 700 17px/1.25 var(--font-display); color: var(--ink); }
.tl-item .tl-d { font: 400 13.5px/1.4 var(--font-body); color: var(--ink-2); }

/* ---------- 9. STEPS / PROCESS ---------- */
.lay-steps .step-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; margin-top: 30px; align-items: stretch; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); }
.step .step-n { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font: 800 16px/1 var(--font-display); color: var(--on-accent); background: linear-gradient(140deg,var(--a1),var(--a2)); box-shadow: 0 10px 22px -10px var(--glow); }
.step .step-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--a1); background: var(--surface-2); border: 1px solid var(--line); margin-top: 8px; }
.step .step-ic svg { width: 22px; height: 22px; }
.step h4 { margin: 0; font: 700 18px/1.25 var(--font-display); color: var(--ink); }
.step p { margin: 0; font: 400 14px/1.45 var(--font-body); color: var(--ink-2); }
.step .step-arrow { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--a2); z-index: 3; }
.step:last-child .step-arrow { display: none; }

/* ---------- 10. COMPARE ---------- */
.lay-compare .cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; margin-top: 24px; align-items: stretch; }
.cmp-col { border-radius: 20px; padding: 26px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.cmp-col.bad { border-color: color-mix(in srgb, #ff5470 40%, var(--line)); }
.cmp-col.good { border-color: color-mix(in srgb, var(--a3) 45%, var(--line)); box-shadow: 0 24px 60px -34px var(--glow); }
.cmp-col .cmp-h { display: flex; align-items: center; gap: 12px; font: 800 20px/1 var(--font-display); color: var(--ink); }
.cmp-col .cmp-h .cbadge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.cmp-col.bad .cbadge { background: #ff5470; } .cmp-col.good .cbadge { background: var(--a3); color: var(--on-accent); }
.cmp-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cmp-col li { display: flex; gap: 10px; font: 400 15px/1.4 var(--font-body); color: var(--ink-2); }
.cmp-col li svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.cmp-vs { align-self: center; font: 800 20px/1 var(--font-display); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }

/* ---------- 11. CODE ---------- */
.lay-code .sl { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 40px; align-content: center; }
.lay-code.solo .sl { grid-template-columns: 1fr; }
.lay-code .code-side { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.editor { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, #000 22%);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.editor .ed-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--line); }
.editor .ed-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.editor .ed-bar .d1 { background: #ff5f57; } .editor .ed-bar .d2 { background: #febc2e; } .editor .ed-bar .d3 { background: #28c840; }
.editor .ed-bar .ed-file { margin-left: 12px; font: 600 12.5px/1 var(--font-mono); color: var(--muted); }
.editor .ed-bar .ed-tag { margin-left: auto; font: 700 10px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--a3); }
.editor pre { margin: 0; padding: 20px 22px; overflow: auto; font: 500 15px/1.7 var(--font-mono); color: var(--ink-2); }
.editor code { display: block; white-space: pre; }
.editor .ln { color: var(--muted); opacity: .55; display: inline-block; width: 26px; user-select: none; }
.tk-kw { color: var(--a2); } .tk-fn { color: var(--a1); } .tk-str { color: var(--a3); }
.tk-com { color: var(--muted); font-style: italic; } .tk-num { color: #ffb454; } .tk-op { color: var(--ink-2); }
.tk-var { color: var(--ink); }

/* ---------- 12. CARDS GRID ---------- */
.lay-cards .cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.lay-cards.two .cardgrid { grid-template-columns: repeat(2, 1fr); }
.fcard { border-radius: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease-spring); }
.fcard .fc-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(140deg,var(--a1),var(--a2)); box-shadow: 0 12px 28px -14px var(--glow); }
.fcard .fc-ic svg { width: 25px; height: 25px; }
.fcard h4 { margin: 0; font: 700 19px/1.25 var(--font-display); color: var(--ink); }
.fcard p { margin: 0; font: 400 14.5px/1.5 var(--font-body); color: var(--ink-2); }
.fcard .fc-tag { margin-top: auto; font: 700 12px/1 var(--font-display); color: var(--a2); }

/* ---------- 13. SPOTLIGHT (full-bleed visual) ---------- */
.lay-spotlight .sl { justify-content: flex-end; }
.lay-spotlight .spot-panel { max-width: 60%; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 14. DIAGRAM ---------- */
.lay-diagram .sl { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-content: center; }
.lay-diagram.solo .sl { grid-template-columns: 1fr; }
.lay-diagram .diagram-side { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.diagram-stage { position: relative; width: 100%; height: 100%; min-height: 360px; }

/* ---------- 15. ICON LIST ---------- */
.lay-iconlist .icl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-top: 22px; }
.icl-item { display: flex; gap: 16px; align-items: flex-start; }
.icl-item .icl-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; color: var(--on-accent);
  background: linear-gradient(140deg,var(--a1),var(--a2)); box-shadow: 0 12px 26px -14px var(--glow); }
.icl-item .icl-ic svg { width: 24px; height: 24px; }
.icl-item h4 { margin: 0 0 4px; font: 700 18px/1.2 var(--font-display); color: var(--ink); }
.icl-item p { margin: 0; font: 400 14px/1.45 var(--font-body); color: var(--ink-2); }

/* ---------- 16. METER / PROGRESS ---------- */
.lay-meter .meters { display: flex; gap: 46px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ring-wrap .ring-lb { font: 700 15px/1.3 var(--font-display); color: var(--ink); text-align: center; max-width: 16ch; }
.ring-wrap .ring-val { position: absolute; inset: 0; display: grid; place-items: center; font: 800 30px/1 var(--font-display); color: var(--ink); }
.ring-box { position: relative; width: 150px; height: 150px; }
.bars { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 320px; }
.barrow { display: flex; flex-direction: column; gap: 7px; }
.barrow .bl-top { display: flex; justify-content: space-between; font: 700 14px/1 var(--font-display); color: var(--ink); }
.barrow .bl-top span:last-child { color: var(--a2); }
.barrow .track { height: 12px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.barrow .fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg,var(--a1),var(--a2)); }

/* ---------- 17. CALLOUT ---------- */
.lay-callout .sl { justify-content: center; align-items: center; text-align: center; }
.callout-card { max-width: 74%; border-radius: 24px; padding: 44px 48px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 40px 90px -40px var(--glow); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.callout-card .co-ic { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(140deg,var(--a1),var(--a2)); box-shadow: 0 18px 40px -18px var(--glow); }
.callout-card .co-ic svg { width: 38px; height: 38px; }
.callout-card .co-text { font: 700 30px/1.3 var(--font-display); letter-spacing: -.01em; color: var(--ink); max-width: 26ch; }
.callout-card .co-sub { font: 400 17px/1.5 var(--font-body); color: var(--ink-2); max-width: 44ch; }

/* ---------- 18. QUIZ ---------- */
.lay-quiz .quiz-q { font: 700 30px/1.28 var(--font-display); color: var(--ink); max-width: 26ch; margin-top: 8px; }
.lay-quiz .quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.qopt { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.qopt .qk { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 800 15px/1 var(--font-display); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.qopt .qtxt { font: 500 16px/1.35 var(--font-body); color: var(--ink); }
.qopt.correct { border-color: var(--a3); background: color-mix(in srgb, var(--a3) 16%, var(--surface)); box-shadow: 0 18px 40px -22px var(--glow); }
.qopt.correct .qk { background: var(--a3); color: var(--on-accent); }
.qopt.correct .qmk { margin-left: auto; color: var(--a3); }

/* ---------- 19. PERSONA ---------- */
.lay-persona .personas { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 22px; }
.lay-persona.two .personas { grid-template-columns: repeat(2,1fr); max-width: 74%; }
.pcard { border-radius: 20px; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.pcard .pav { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; font: 800 26px/1 var(--font-display); color: var(--on-accent);
  background: linear-gradient(140deg,var(--a1),var(--a2)); box-shadow: 0 14px 30px -16px var(--glow); }
.pcard h4 { margin: 0; font: 800 20px/1.15 var(--font-display); color: var(--ink); }
.pcard .prole { font: 700 13px/1 var(--font-display); color: var(--a2); text-transform: uppercase; letter-spacing: .06em; }
.pcard p { margin: 0; font: 400 14.5px/1.5 var(--font-body); color: var(--ink-2); }

/* ---------- 20. ROADMAP ---------- */
.lay-roadmap .road { position: relative; margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.road-item { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.road-item .road-stage { font: 800 15px/1.1 var(--font-display); color: var(--a1); text-align: right; }
.road-item .road-stage small { display: block; font: 600 11px/1.2 var(--font-display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.road-item .road-card { position: relative; padding: 16px 20px 16px 34px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.road-item .road-card::before { content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(140deg,var(--a1),var(--a2)); box-shadow: 0 0 0 4px var(--surface-2), 0 0 14px var(--glow); }
.road-item .road-card h4 { margin: 0 0 3px; font: 700 17px/1.25 var(--font-display); color: var(--ink); }
.road-item .road-card p { margin: 0; font: 400 13.5px/1.4 var(--font-body); color: var(--ink-2); }

/* ---------- 21. CHART ---------- */
.lay-chart .sl { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-content: center; }
.lay-chart .chart-side { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.chart-stage { display: flex; align-items: flex-end; gap: 20px; height: 340px; padding: 20px 10px 0; border-bottom: 2px solid var(--line); position: relative; }
.cbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.cbar .cbar-fill { width: 100%; max-width: 74px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg,var(--a1),var(--a2)); position: relative; }
.cbar .cbar-fill .cbar-v { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 800 16px/1 var(--font-display); color: var(--ink); }
.cbar .cbar-lb { font: 600 13px/1.2 var(--font-display); color: var(--muted); text-align: center; }

/* ---------- 22. PROMPT ANATOMY ---------- */
.lay-prompt .sl { justify-content: center; }
.prompt-box { border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 75%, #000 25%); padding: 26px 28px; margin-top: 18px; font: 500 18px/1.9 var(--font-mono); color: var(--ink-2); }
.pchunk { padding: 2px 8px; border-radius: 7px; position: relative; white-space: pre-wrap; }
.pchunk.role { background: color-mix(in srgb, var(--a1) 26%, transparent); color: var(--ink); }
.pchunk.task { background: color-mix(in srgb, var(--a2) 26%, transparent); color: var(--ink); }
.pchunk.ctx  { background: color-mix(in srgb, var(--a3) 26%, transparent); color: var(--ink); }
.pchunk.fmt  { background: color-mix(in srgb, #ffb454 30%, transparent); color: var(--ink); }
.prompt-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.prompt-legend .pl { display: flex; align-items: center; gap: 8px; font: 600 14px/1.3 var(--font-body); color: var(--ink-2); }
.prompt-legend .pl .sw { width: 14px; height: 14px; border-radius: 5px; }

/* ---------- 23. DO'S & DON'TS ---------- */
.lay-dos .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 22px; }
.dos-col { border-radius: 20px; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.dos-col .dos-h { display: flex; align-items: center; gap: 12px; font: 800 20px/1 var(--font-display); margin-bottom: 16px; }
.dos-col.do .dos-h { color: var(--a3); } .dos-col.dont .dos-h { color: #ff6b81; }
.dos-col .dos-h .di { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.dos-col.do .di { background: var(--a3); color: var(--on-accent); } .dos-col.dont .di { background: #ff6b81; }
.dos-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dos-col li { display: flex; gap: 11px; font: 400 15.5px/1.4 var(--font-body); color: var(--ink-2); }
.dos-col li svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; }

/* ---------- 24. RECAP ---------- */
.lay-recap .recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.recap-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.recap-item .rn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; font: 800 15px/1 var(--font-display);
  color: var(--on-accent); background: linear-gradient(140deg,var(--a1),var(--a2)); }
.recap-item .rt { font: 500 16px/1.4 var(--font-body); color: var(--ink); }
.recap-item .rt b { font-weight: 800; }

/* ---------- 25. CTA / CLOSING ---------- */
.lay-cta .sl { justify-content: center; align-items: center; text-align: center; }
.lay-cta .title { font-size: 66px; max-width: 20ch; }
.lay-cta .cta-btns { display: flex; gap: 14px; margin-top: 12px; }
.lay-cta .cta-btn { padding: 16px 30px; border-radius: 14px; font: 800 17px/1 var(--font-display); }
.lay-cta .cta-btn.primary { background: linear-gradient(120deg,var(--a1),var(--a2)); color: var(--on-accent); box-shadow: 0 20px 50px -20px var(--glow); }
.lay-cta .cta-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.lay-cta .cta-hand { display: flex; align-items: center; gap: 10px; margin-top: 26px; font: 600 14px/1 var(--font-body); color: var(--muted); }

/* ---------- 26. BRANCH PICKER ---------- */
.lay-branchpick .branches { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 26px; }
.bcard { border-radius: 22px; padding: 28px 26px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden; transition: transform .3s var(--ease-spring); }
.bcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg,var(--bc1),var(--bc2)); }
.bcard .bc-lvl { font: 800 13px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--bc1); }
.bcard .bc-ic { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg,var(--bc1),var(--bc2)); box-shadow: 0 16px 34px -16px var(--bc1); }
.bcard .bc-ic svg { width: 30px; height: 30px; }
.bcard h3 { margin: 0; font: 800 24px/1.1 var(--font-display); color: var(--ink); }
.bcard p { margin: 0; font: 400 14.5px/1.5 var(--font-body); color: var(--ink-2); flex: 1; }
.bcard .bc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.bcard .bc-meta .bm { font: 700 11px/1 var(--font-display); padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- generic two-liner metadata footer strip ---------- */
.metastrip { display: flex; gap: 14px; align-items: center; margin-top: auto; padding-top: 18px; }
.metastrip .ms { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-body); color: var(--muted); }
.metastrip .ms svg { width: 15px; height: 15px; color: var(--a1); }
