/* ============================================================================
   Asgard deck-kit — design system stylesheet (faithful HTML port)
   Ported 1:1 from packages/deck-kit/src/theme/{tokens,globals}.css and every
   primitive/layout *.module.css. Component classes are namespaced `dk-`.
   Slide-context element typography is scoped under `.dk`.
   ============================================================================ */

/* ---- tokens.css ---------------------------------------------------------- */
:root {
  /* color — base (warm charcoal, no cool tones) */
  --bg: #141413;
  --bg2: #1a1a17;
  --ink: #f5f4ed;
  --muted: #b8b5ab;
  --line: rgba(245, 244, 237, 0.10);

  /* color — surfaces */
  --card: #1f1f1d;
  --panel: rgba(245, 244, 237, 0.035);
  --panel2: rgba(245, 244, 237, 0.06);

  /* color — accents: single ink-blue identity + de-saturated functional */
  --green: #6f9c6e;   /* muted sage (good) */
  --cyan: #2D5A8A;    /* folded into ink-blue */
  --cyan2: #9ec1e6;   /* bright blue for dark surfaces (links / emphasis) */
  --blue: #2D5A8A;    /* ink-blue */
  --purple: #8c84a8;  /* muted violet */
  --amber: #c9a24b;   /* muted ochre (warn) */
  --rose: #c47a72;    /* muted terracotta (bad) */
  --pink: #b08aa0;    /* muted mauve */

  /* color — paper variant base (kami parchment) */
  --paper: #f5f4ed;
  --paper-ink: #141413;

  /* effects — kami whisper shadow, no hard drop / no glow */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.28);

  /* type — Space Grotesk */
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC",
               "Microsoft JhengHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", monospace;

  /* canonical kami names for P2+ components / diagrams */
  --brand: #2D5A8A;
  --brand-bright: #7ba3cf;
  --brand-on-dark: #9ec1e6;
  --brand-tint: rgba(45, 90, 138, 0.18);
  --good: var(--green);
  --warn: var(--amber);
  --bad: var(--rose);
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/SpaceGrotesk-Variable.woff2") format("woff2-variations");
}

* { box-sizing: border-box; }

/* ---- globals.css (scoped to .dk so it never hijacks page chrome) --------- */
.dk h1, .dk h2, .dk h3, .dk p { margin: 0; }

.dk h1 {
  max-width: 980px;
  margin-top: 18px;
  margin-bottom: -8px;
  padding-bottom: 8px;
  font-size: clamp(44px, 5.4vw, 70px);
  line-height: 1.06;
  font-weight: 860;
  letter-spacing: 0;
  color: var(--ink);
}
.dk h2 {
  max-width: 1100px;
  margin-top: 14px;
  font-size: clamp(30px, 3.35vw, 45px);
  line-height: 1.06;
  font-weight: 820;
  color: var(--ink);
}
.dk h3 { font-size: 21px; line-height: 1.16; font-weight: 780; color: var(--ink); }
.dk a { color: var(--cyan2); text-decoration: none; }
.dk a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   PRIMITIVES
   ============================================================================ */

/* Kicker */
.dk-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 30px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--cyan2); background: var(--brand-tint);
  font-size: 14px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase;
}
.dk-kicker[data-layer]::after {
  content: attr(data-layer);
  display: inline-flex; align-items: center;
  margin-left: 8px; padding: 4px 9px;
  border-left: 1px solid var(--line);
  color: var(--brand-on-dark); background: var(--panel);
  border-radius: 999px; font-size: 12px; letter-spacing: 0; text-transform: none; white-space: nowrap;
}

/* Card */
.dk-card {
  position: relative; min-height: 104px; padding: 16px 17px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); overflow: hidden;
}
.dk-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.5;
}
.dk-card--strong { background: var(--panel2); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.dk-card > * { position: relative; z-index: 1; }
.dk-card p { margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.34; }

/* Quote */
.dk-quote {
  margin-top: 20px; padding: 17px 21px;
  border: 1px solid var(--line); border-left: 5px solid var(--cyan); border-radius: 16px;
  background: var(--panel); font-size: 25px; line-height: 1.24; font-weight: 760; color: var(--ink);
}
.dk-quote--compact { margin-top: 14px; padding: 13px 18px; font-size: 23px; line-height: 1.18; }

/* Tag */
.dk-tag {
  display: inline-block; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--brand-tint); color: var(--cyan2); font: 760 13px var(--font-mono);
}

/* CodeBlock */
.dk-code {
  margin-top: 18px; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink);
  font: 14px/1.32 var(--font-mono); white-space: pre-wrap;
}

/* Talkbox */
.dk-talkbox {
  margin-top: 14px; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.dk-talkbox b {
  display: block; margin-bottom: 6px; color: var(--cyan2);
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
}
.dk-talkbox p { color: var(--muted); font-size: 16px; line-height: 1.34; }
.dk-talkbox ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.32; }
.dk-talkbox li { margin: 4px 0; }
.dk-talkbox--compact { margin-top: 10px; padding: 10px 12px; }
.dk-talkbox--compact p, .dk-talkbox--compact ul { font-size: 15px; line-height: 1.25; }

/* Node */
.dk-node {
  min-height: 94px; display: grid; align-content: center; gap: 7px;
  padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.dk-node b { color: var(--cyan2); font-size: 18px; line-height: 1.12; }
.dk-node span { color: var(--muted); font-size: 14px; line-height: 1.25; }

/* Metric */
.dk-metric { display: inline-flex; align-items: baseline; gap: 8px; }
.dk-metric .dk-metric__value {
  font-size: 32px; font-weight: 820; color: var(--brand-on-dark);
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.dk-metric .dk-metric__label { font-size: 14px; color: var(--muted); }

/* Button */
.dk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 8px; font: 760 15px var(--font-sans);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, filter 0.15s;
}
.dk-btn--primary { background: var(--brand); color: var(--ink); }
.dk-btn--primary:hover { filter: brightness(1.12); }
.dk-btn--secondary { background: var(--panel2); color: var(--ink); border-color: var(--line); }
.dk-btn--secondary:hover { border-color: var(--brand); }

/* DashList */
.dk-dashlist { list-style: none; padding: 0; margin: 16px 0 0; }
.dk-dashlist li {
  position: relative; padding-left: 18px; margin: 7px 0;
  font-size: 16px; line-height: 1.4; color: var(--ink);
}
.dk-dashlist li::before { content: "\2013"; position: absolute; left: 0; color: var(--brand-on-dark); }

/* ProductCard (extends Card) */
.dk-product { --accent: var(--cyan); }
.dk-product::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.72; }
.dk-product__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.dk-product__icon {
  display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 16px; background: var(--panel2);
}
.dk-product__icon img { width: 36px; height: 36px; object-fit: contain; }
.dk-product--odin      { --accent: var(--green); }
.dk-product--mimir     { --accent: var(--rose); }
.dk-product--sindri    { --accent: var(--purple); }
.dk-product--heimdall  { --accent: var(--amber); }
.dk-product--yggdrasil { --accent: var(--green); }
.dk-product--asgard    { --accent: var(--blue); }

/* Credential */
.dk-credential {
  padding: 13px 15px; border-left: 3px solid var(--cyan);
  background: var(--panel); border-radius: 10px; color: var(--ink); font-size: 17px; line-height: 1.36;
}

/* DemoShot */
.dk-demoshot {
  display: block; width: 100%; max-height: 405px; margin-top: 16px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); background: var(--card);
}
.dk-demoshot--medium { width: auto; height: 420px; max-width: 100%; max-height: none; margin: 14px auto 0; }
.dk-demoshot__caption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.25; }

/* ModuleBlock */
.dk-module { margin-top: 18px; }
.dk-module__head {
  display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.dk-module__letter { font-size: 30px; font-weight: 820; color: var(--brand-on-dark); line-height: 1; }
.dk-module__title { font-size: 18px; font-weight: 760; color: var(--ink); line-height: 1.15; }
.dk-module__sub {
  margin-top: 3px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-on-dark);
}
.dk-module__body { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.4; }

/* ModuleNote */
.dk-modulenote { margin-top: 14px; padding: 12px 15px; background: var(--panel); border-radius: 8px; }
.dk-modulenote__label {
  margin-bottom: 5px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-on-dark);
}
.dk-modulenote__body { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* PricingCard */
.dk-pricing { margin-top: 16px; }
.dk-pricing__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.dk-pricing__price { display: flex; align-items: baseline; gap: 6px; }
.dk-pricing__currency { font-size: 24px; font-weight: 760; color: var(--brand-on-dark); }
.dk-pricing__amount {
  font-size: 44px; font-weight: 820; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: 0.5px; line-height: 1;
}
.dk-pricing__unit { font-size: 16px; color: var(--muted); }
.dk-pricing__note { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ValueAnchors */
.dk-anchors { list-style: none; padding: 0; margin: 16px 0; }
.dk-anchors li {
  position: relative; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line);
  line-height: 1.45; font-size: 16px;
}
.dk-anchors li:last-child { border-bottom: none; }
.dk-anchors li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1.5px; background: var(--brand);
}
.dk-anchors__title { color: var(--brand-on-dark); font-weight: 760; margin-right: 8px; }
.dk-anchors__desc { color: var(--muted); }

/* CodeCard */
.dk-codecard {
  margin-top: 16px; padding: 18px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.dk-codecard__code { margin: 0; font: 14px/1.55 var(--font-mono); color: var(--ink); white-space: pre; }
.dk-codecard--numbered { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; }
.dk-codecard__nums {
  margin: 0; font: 14px/1.55 var(--font-mono); color: var(--muted);
  text-align: right; border-right: 1px solid var(--line); padding-right: 12px; user-select: none;
}

/* slide number badge */
.dk-slideno {
  position: absolute; right: 34px; bottom: 24px;
  color: rgba(245, 244, 237, .42); font: 13px var(--font-mono);
}

/* ============================================================================
   LAYOUTS
   ============================================================================ */

/* Matrix */
.dk-matrix {
  width: 100%; margin-top: 20px; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 16px;
}
.dk-matrix th, .dk-matrix td {
  padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.dk-matrix th {
  color: var(--cyan2); background: var(--brand-tint);
  font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
}
.dk-matrix td { color: var(--muted); background: var(--panel); }
.dk-matrix tr:last-child td { border-bottom: 0; }
.dk-matrix th:last-child, .dk-matrix td:last-child { border-right: 0; }

/* CardGrid */
.dk-cardgrid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.dk-cardgrid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.dk-cardgrid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }

/* Steps */
.dk-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 24px; }
.dk-step { min-height: 88px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.dk-step b { display: block; color: var(--amber); font: 850 19px var(--font-mono); }
.dk-step span { display: block; margin-top: 7px; font-size: 14px; line-height: 1.22; font-weight: 680; color: var(--ink); }

/* Diagram */
.dk-diagram {
  position: relative; margin-top: 20px; padding: 18px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--panel); overflow: hidden;
}
.dk-diagram::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan2), transparent); opacity: 0.45;
}

/* FlowDiagram */
.dk-flow { display: grid; gap: 10px; align-items: center; }
.dk-flow__arrow { color: var(--amber); font: 900 28px var(--font-mono); text-align: center; }

/* TermRow */
.dk-termstack { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.dk-termrow {
  display: grid; grid-template-columns: 190px 1fr 1.15fr; gap: 12px; align-items: stretch;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.dk-termrow b { display: flex; align-items: center; color: var(--cyan2); font-size: 20px; }
.dk-termrow p { color: var(--ink); font-size: 15px; line-height: 1.28; }
.dk-termrow small { display: block; color: var(--muted); font-size: 13px; line-height: 1.26; }

/* SectionTitle */
.dk-sectiontitle { display: grid; gap: 16px; margin-top: 24px; }
.dk-sectiontitle__lead { max-width: 900px; color: var(--muted); font-size: 22px; line-height: 1.38; font-weight: 520; }

/* TwoColumn */
.dk-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.dk-twocol--left-heavy { grid-template-columns: 2fr 1fr; }
.dk-twocol--right-heavy { grid-template-columns: 1fr 2fr; }

/* GlanceGrid */
.dk-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.dk-glance__cell { padding: 12px 0 10px 16px; border-left: 2px solid var(--brand); }
.dk-glance__label {
  font-family: var(--font-mono); font-size: 12px; color: var(--brand-on-dark);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.dk-glance__value {
  margin-top: 6px; font-size: 28px; font-weight: 820; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.dk-glance__note { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Table */
.dk-table { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 20px; }
.dk-table th {
  text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.dk-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.dk-table--financial th:not(:first-child),
.dk-table--financial td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.dk-table--striped tbody tr:nth-child(even) td { background: var(--panel); }
.dk-table tr[data-total] td { font-weight: 760; color: var(--ink); border-top: 1px solid var(--brand); }
.dk-table tr[data-highlight] td { background: var(--panel2); color: var(--brand-on-dark); }

/* SectionHeader */
.dk-sectionhead { margin-bottom: 36px; }
.dk-sectionhead__eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.dk-sectionhead__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
}
.dk-sectionhead__rule { height: 1px; background: var(--line); margin-bottom: 36px; }
.dk-sectionhead__title { margin: 0; font-size: 38px; font-weight: 820; line-height: 1.1; color: var(--ink); }

/* Funnel */
.dk-funnel { margin-top: 20px; }
.dk-funnel__row { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 10px; margin: 6px 0; }
.dk-funnel__label { font-size: 14px; color: var(--muted); }
.dk-funnel__track { position: relative; height: 20px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.dk-funnel__fill { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 3px; }
.dk-funnel__count {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  font: 12px var(--font-mono); color: var(--ink);
}
.dk-funnel__pct { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); font-size: 13px; }

/* LayerStack */
.dk-layerstack { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.dk-layer {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-left: 2.5px solid var(--brand);
  border-radius: 8px; background: var(--panel);
}
.dk-layer__label { color: var(--brand-on-dark); font: 700 13px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.dk-layer__content { min-width: 0; }
.dk-layer__items { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-layer__item {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel2); color: var(--ink); font-size: 14px;
}
.dk-layer__note { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* Timeline */
.dk-timeline { display: flex; gap: 12px; margin-top: 24px; }
.dk-timeline__item { flex: 1; position: relative; padding-top: 22px; }
.dk-timeline__item::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line);
}
.dk-timeline__dot {
  position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--bg);
}
.dk-timeline__label { color: var(--brand-on-dark); font: 700 12px var(--font-mono); letter-spacing: 0.04em; }
.dk-timeline__title { margin-top: 5px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.2; }
.dk-timeline__note { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.dk-timeline__item:last-child::before { display: none; }

/* StateMachine */
.dk-machine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.dk-state {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel2); color: var(--ink); font-size: 15px; font-weight: 700;
}
.dk-machine__transition { display: inline-flex; flex-direction: column; align-items: center; min-width: 36px; }
.dk-machine__arrow { color: var(--cyan2); font: 700 22px var(--font-mono); line-height: 1; }
.dk-machine__on { color: var(--muted); font: 11px var(--font-mono); }
.dk-machine__loop {
  margin-left: 8px; padding: 6px 12px; border: 1px dashed var(--line); border-radius: 999px;
  color: var(--brand-on-dark); font: 700 12px var(--font-mono);
}

/* Tree */
.dk-tree, .dk-tree__children { list-style: none; margin: 0; padding: 0; }
.dk-tree { margin-top: 20px; }
.dk-tree__children { margin-left: 22px; border-left: 1px solid var(--line); padding-left: 16px; margin-top: 8px; }
.dk-tree__node { position: relative; margin: 8px 0; }
.dk-tree__children > .dk-tree__node::before {
  content: ""; position: absolute; top: 16px; left: -16px; width: 12px; height: 1px; background: var(--line);
}
.dk-tree__label {
  display: inline-block; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 15px;
}

/* Swimlane */
.dk-swimlane { display: grid; gap: 6px; margin-top: 20px; }
.dk-swimlane__colhead {
  color: var(--brand-on-dark); font: 700 12px var(--font-mono); letter-spacing: 0.04em;
  text-transform: uppercase; text-align: center; padding: 4px;
}
.dk-swimlane__actor {
  display: flex; align-items: center; color: var(--brand-on-dark);
  font: 700 13px var(--font-mono); padding-right: 8px;
}
.dk-swimlane__cell {
  min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink); font-size: 14px; line-height: 1.3;
}

/* ============================================================================
   EXTENDED COMPONENTS — added on top of the original kit.
   Semantic colours reuse existing tokens only (--brand / --good / --warn / --bad).
   ============================================================================ */

/* Callout — semantic admonition (info / good / warn / bad) */
.dk-callout {
  --accent: var(--brand-on-dark);
  display: flex; gap: 13px; margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
}
.dk-callout__icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font: 800 14px var(--font-mono); line-height: 1;
}
.dk-callout__body { min-width: 0; }
.dk-callout__title { font-size: 15px; font-weight: 780; color: var(--ink); margin-bottom: 3px; }
.dk-callout__body p { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.dk-callout--info { --accent: var(--brand-on-dark); }
.dk-callout--good { --accent: var(--good); }
.dk-callout--warn { --accent: var(--warn); }
.dk-callout--bad  { --accent: var(--bad); }

/* Badge — semantic status pill (with status dot) */
.dk-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent);
  font: 700 12px var(--font-mono); letter-spacing: 0.04em; color: var(--muted);
}
.dk-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dk-badge--info { color: var(--brand-on-dark); }
.dk-badge--good { color: var(--good); }
.dk-badge--warn { color: var(--warn); }
.dk-badge--bad  { color: var(--bad); }
.dk-badge--neutral { color: var(--muted); }

/* Avatar / Persona / Facepile */
.dk-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--panel2);
}
.dk-avatar--initials {
  display: grid; place-items: center; color: var(--brand-on-dark);
  font: 800 17px var(--font-sans); background: var(--brand-tint);
}
.dk-persona { display: flex; align-items: center; gap: 12px; }
.dk-persona__name { font-size: 16px; font-weight: 760; color: var(--ink); line-height: 1.15; }
.dk-persona__role { margin-top: 2px; font: 12px var(--font-mono); color: var(--muted); }
.dk-facepile { display: flex; }
.dk-facepile .dk-avatar { width: 38px; height: 38px; margin-left: -12px; border: 2px solid var(--bg2); }
.dk-facepile .dk-avatar:first-child { margin-left: 0; }
.dk-facepile .dk-avatar--initials { font-size: 13px; }

/* BigStat — single KPI hero number */
.dk-bigstat__value {
  font-size: 64px; font-weight: 820; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.dk-bigstat__value em { color: var(--brand-on-dark); font-style: normal; }
.dk-bigstat__label {
  margin-top: 9px; font: 12px var(--font-mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.dk-bigstat__delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; font-size: 14px; font-weight: 700; }
.dk-bigstat__delta--up { color: var(--good); }
.dk-bigstat__delta--down { color: var(--bad); }

/* ProgressRing — circular percentage (donut) */
.dk-ring { --pct: 0; --accent: var(--brand); position: relative; width: 104px; height: 104px; }
.dk-ring__track {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--panel2) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 70%, #000 71%);
          mask: radial-gradient(closest-side, transparent 70%, #000 71%);
}
.dk-ring__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 25px; font-weight: 820; color: var(--ink); font-variant-numeric: tabular-nums;
}
.dk-ring--good { --accent: var(--good); }
.dk-ring--warn { --accent: var(--warn); }
.dk-ring--bad  { --accent: var(--bad); }

/* Checklist — yes / no with semantic markers */
.dk-checklist { list-style: none; margin: 16px 0 0; padding: 0; }
.dk-checklist li {
  position: relative; padding-left: 30px; margin: 9px 0; font-size: 16px; line-height: 1.4; color: var(--ink);
}
.dk-checklist li::before {
  position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 6px; font: 800 12px var(--font-mono);
}
.dk-checklist li.is-yes::before { content: "\2713"; color: var(--good); background: color-mix(in srgb, var(--good) 16%, transparent); }
.dk-checklist li.is-no::before  { content: "\2715"; color: var(--bad);  background: color-mix(in srgb, var(--bad) 16%, transparent); }

/* Legend — diagram key */
.dk-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; }
.dk-legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dk-legend__swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--accent, var(--brand)); flex: 0 0 auto; }

/* Agenda — numbered TOC with optional timing + active state */
.dk-agenda { display: grid; gap: 8px; margin-top: 20px; }
.dk-agenda__row {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.dk-agenda__num { font: 820 22px var(--font-mono); color: var(--brand-on-dark); line-height: 1; }
.dk-agenda__title { font-size: 18px; font-weight: 760; color: var(--ink); line-height: 1.18; }
.dk-agenda__sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.dk-agenda__time { font: 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.dk-agenda__row.is-active { background: var(--panel2); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.dk-agenda__row.is-done .dk-agenda__num { color: var(--muted); }
.dk-agenda__row.is-done .dk-agenda__title { color: var(--muted); }

/* Compare — pros vs cons columns */
.dk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.dk-compare__col {
  --accent: var(--muted); padding: 18px; border: 1px solid var(--line);
  border-top: 2px solid var(--accent); border-radius: 16px; background: var(--panel);
}
.dk-compare__col--pros { --accent: var(--good); }
.dk-compare__col--cons { --accent: var(--bad); }
.dk-compare__head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 16px; font-weight: 780; color: var(--ink); }
.dk-compare__head .dk-badge { font-size: 11px; }
.dk-compare__col ul { list-style: none; margin: 0; padding: 0; }
.dk-compare__col li { position: relative; padding-left: 22px; margin: 9px 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.dk-compare__col li::before { position: absolute; left: 0; top: 0; font: 800 15px var(--font-mono); color: var(--accent); }
.dk-compare__col--pros li::before { content: "+"; }
.dk-compare__col--cons li::before { content: "\2212"; }
