/* Reused app classes the public site restyles everywhere, so they keep their place among the components. */
@layer components {
  .is-menu { --kind: var(--menu); --kind-soft: var(--menu-soft); --kind-ink: var(--menu-ink); }
  .is-input { --kind: var(--input); --kind-soft: var(--input-soft); --kind-ink: var(--input-ink); }
  .is-router { --kind: var(--router); --kind-soft: var(--router-soft); --kind-ink: var(--router-ink); }
  .is-end { --kind: var(--end); --kind-soft: var(--end-soft); --kind-ink: var(--ok-ink); }
}

@layer modules {
  /* The public site, after IBM Carbon: Plex at the weights it ships, rounded photos and panels, and bands of amber, ink, forest and violet pacing the page; screen-kind colours stay a code. */
  :root { --mk-amber: #f5a000; --mk-ink-band: #1c2420; --mk-forest: #0e3b29; --mk-violet: #5b34e6; --mk-on-band: #f4f7f4; --mk-on-band-2: rgb(244 247 244 / .78); --mk-on-band-3: rgb(244 247 244 / .6); --mk-r: 2.4rem; --mk-r-card: 1.6rem; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mk-amber: #e99b12; --mk-ink-band: #222b26; --mk-forest: #0c3021; --mk-violet: #4a2cc4; } }
  :root[data-theme="dark"] { --mk-amber: #e99b12; --mk-ink-band: #222b26; --mk-forest: #0c3021; --mk-violet: #4a2cc4; }
  .is-marketing { background: var(--bg); }
  /* Light pages sit on white, Carbon's white theme, so grey text keeps its contrast; cards take the grey instead. */
  :root[data-theme="light"] .is-marketing { --bg: #ffffff; --surface: #f4f4f4; --surface-2: #e8e8e8; --surface-hover: #e0e0e0; --ink-2: #393939; --ink-3: #525252; }
  @media (prefers-color-scheme: light) { :root:not([data-theme]) .is-marketing { --bg: #ffffff; --surface: #f4f4f4; --surface-2: #e8e8e8; --surface-hover: #e0e0e0; --ink-2: #393939; --ink-3: #525252; } }
  /* What floats over a grey panel stays white, as it does in the editor. */
  :root[data-theme="light"] .is-marketing :is(.ill:not(.ill-residency), .mk-stage .node, .mk-pair .node) { --surface: #ffffff; --surface-2: #f4f4f4; }
  @media (prefers-color-scheme: light) { :root:not([data-theme]) .is-marketing :is(.ill:not(.ill-residency), .mk-stage .node, .mk-pair .node) { --surface: #ffffff; --surface-2: #f4f4f4; } }
  /* A crop of the editor keeps the editor's own grey page under its white cards. */
  :root[data-theme="light"] .is-marketing .mk-shot { --bg: #f4f4f4; --surface: #ffffff; --surface-2: #f4f4f4; }
  @media (prefers-color-scheme: light) { :root:not([data-theme]) .is-marketing .mk-shot { --bg: #f4f4f4; --surface: #ffffff; --surface-2: #f4f4f4; } }
  /* Lenis, the smooth-scroll library, needs these (from lenis/dist/lenis.css). */
  html.lenis, html.lenis body { height: auto; }
  .lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
  .lenis [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-smooth iframe { pointer-events: none; }
  /* Lenis honours this as the browser does, so a click, a deep link and a reduced-motion jump all land in the same place. */
  html:has(body.is-marketing) { scroll-padding-top: 12rem; }
  .is-marketing main { overflow-x: clip; }
  .mk-skip { position: absolute; left: 1.6rem; top: -10rem; z-index: 60; padding: .8rem 1.2rem; border-radius: 0; background: var(--primary); color: var(--on-primary); }
  .mk-skip:focus { top: 1.2rem; }

  /* Header: a product menu, three pages, and the spectrum rule under it. */
  .mk-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); }
  .mk-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--spectrum); }
  .mk-bar { display: flex; align-items: center; gap: 2.4rem; max-width: 124rem; height: 6.4rem; margin: 0 auto; padding: 0 2.4rem; }
  .mk-wordmark { font-size: 2.1rem; }
  .mk-nav { display: flex; align-items: center; gap: .2rem; margin-left: 1.2rem; }
  .mk-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
  .mk-nav-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 4rem; padding: 0 1.2rem; border-radius: 0; color: var(--ink-2); font-size: 1.4rem; font-weight: 400; white-space: nowrap; text-decoration: none; cursor: pointer; }
  .mk-nav-link:hover { background: var(--surface); color: var(--ink); }
  .mk-nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .mk-nav-link .icon { width: 1.4rem; height: 1.4rem; }
  .mk-nav-menu { position: relative; }
  .mk-nav-menu > summary { list-style: none; }
  .mk-nav-menu > summary::-webkit-details-marker { display: none; }
  .mk-nav-menu > summary .icon { transition: rotate .11s ease; }
  .mk-nav-menu[open] > summary { background: var(--surface); color: var(--ink); }
  .mk-nav-menu[open] > summary .icon { rotate: 180deg; }
  .mk-nav-items { position: absolute; left: 0; top: calc(100% + .4rem); z-index: 50; display: grid; min-width: 22rem; margin: 0; padding: .6rem; list-style: none; border: 1px solid var(--line); border-radius: 0; background: var(--surface); box-shadow: var(--shadow-float); }
  .mk-nav-item { display: block; padding: 1rem 1.2rem; border-radius: 0; color: var(--ink); font-size: 1.4rem; text-decoration: none; }
  .mk-nav-item:hover, .mk-nav-item:focus-visible { background: var(--surface-2); }
  .mk-nav-item[aria-current="page"] { background: var(--surface-2); }
  .mk-mobile-nav { display: none; }
  .mk-mobile-nav .mk-nav-items { left: auto; right: 0; }

  /* Type: Plex Light at display sizes, Regular for heads, Semibold only small. */
  .mk-display { max-width: 16ch; margin: 0; font-size: clamp(3.8rem, 5.4vw, 7.2rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
  .mk-h1 { max-width: 20ch; margin: 0; font-size: clamp(3.2rem, 4.2vw, 5.4rem); font-weight: 300; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
  .mk-h2 { max-width: 22ch; margin: 0; font-size: clamp(2.8rem, 3.2vw, 4.2rem); font-weight: 400; line-height: 1.16; letter-spacing: -.01em; text-wrap: balance; }
  .mk-h3 { margin: 0; font-size: 2rem; font-weight: 400; line-height: 1.35; }
  .mk-h4 { margin: 3.2rem 0 0; font-size: 1.6rem; font-weight: 600; line-height: 1.4; }
  .mk-kicker { margin: 0 0 1.6rem; color: var(--ink-2); font-size: 1.4rem; line-height: 1.4; letter-spacing: .01em; }
  .mk-lede { max-width: 50ch; margin: 2.4rem 0 0; font-size: clamp(1.7rem, 1.5vw, 2rem); line-height: 1.5; color: var(--ink-2); }
  .mk-section-lede { max-width: 58ch; margin: 1.6rem 0 0; font-size: 1.8rem; line-height: 1.5; color: var(--ink-2); }
  .mk-note { margin: 2.4rem 0 0; max-width: 90ch; font-size: 1.3rem; line-height: 1.5; color: var(--ink-3); }
  /* Buttons are pills on the public site, as the photos and panels are rounded. */
  /* Only the large calls to action are pills, as on the earlier site; every other button stays Carbon-square. */
  .mk-btn-large { border-radius: 999px; }
  .mk-btn-large { min-height: 5rem; padding: .8rem 2.8rem; font-size: 1.6rem; }
  .mk-cta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 3.2rem; }
  .mk-points { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
  .mk-points li { position: relative; padding-left: 2.4rem; color: var(--ink-2); line-height: 1.5; }
  .mk-points li::before { content: ""; position: absolute; left: .2rem; top: .75em; width: 1.2rem; height: 1px; background: currentColor; }
  .mk-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--primary); font-size: 1.5rem; text-decoration: none; }
  .mk-link:hover { text-decoration: underline; }
  .mk-link .icon { width: 1.6rem; height: 1.6rem; }
  .mk-tag { display: inline-block; padding: .1rem 1rem; border-radius: 999px; background: var(--kind-soft, var(--surface-2)); color: var(--kind-ink, var(--ink)); font-size: 1.1rem; font-weight: 600; line-height: 1.8rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: .2em; }
  .mk-tag.is-ok { background: var(--ok-soft); color: var(--ok-ink); }
  /* A live tag carries a small dot, as a status light does. */
  .mk-tag.is-ok::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .6rem; border-radius: 50%; background: var(--ok); vertical-align: .1em; }
  .is-message { --kind: var(--message); --kind-soft: var(--message-soft); --kind-ink: var(--ink); }
  .is-live { --kind: var(--live); --kind-soft: var(--live-soft); --kind-ink: var(--live-ink); }

  /* Sections */
  .mk-section { max-width: 124rem; margin: 0 auto; padding: 9.6rem 2.4rem; }
  .mk-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.2rem 6.4rem; align-items: end; margin-bottom: 4.8rem; }
  .mk-head .mk-section-lede { margin: 0; }
  /* A colour band spreads to the viewport edges without a wrapper; text on it takes the on-band inks. */
  .mk-band { position: relative; background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
  .mk-on-band { --ink: var(--mk-on-band); --ink-2: var(--mk-on-band-2); --ink-3: var(--mk-on-band-3); --line: rgb(255 255 255 / .18); --line-strong: rgb(255 255 255 / .32); color: var(--ink); }
  .mk-on-band a:not(.btn) { color: var(--ink); }
  .mk-on-band .btn:not(.btn--ghost) { border-color: #ffffff; background: #ffffff; color: #161616; }
  .mk-on-band .btn:not(.btn--ghost):hover { border-color: #e0e0e0; background: #e0e0e0; }
  .mk-on-band .btn--ghost { border-color: var(--ink); color: var(--ink); }
  .mk-on-band .btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #161616; }

  /* Hero: the claim and two doors beside a caller on the amber block, her phone in front and the screens it runs floating round. */
  .mk-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4.8rem; align-items: center; max-width: 124rem; margin: 0 auto; padding: 5.6rem 2.4rem 7.2rem; }
  .mk-hero-stage { position: relative; height: 66rem; }
  .mk-hero .mk-display { max-width: 14ch; font-size: clamp(4.2rem, 5.6vw, 7.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
  .mk-hero-block { position: absolute; inset: 4.8rem 0 5.6rem 9.6rem; border-radius: 3.2rem; background: var(--mk-amber); }
  .mk-hero-block::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgb(28 36 32 / .16) 1.2px, transparent 1.4px); background-size: 16px 16px; mask-image: linear-gradient(135deg, transparent 35%, #000); }
  .mk-hero-photo { position: absolute; right: 2.4rem; top: 0; width: 58%; margin: 0; overflow: hidden; border-radius: 2.8rem; box-shadow: 0 30px 60px -24px rgb(var(--shade) / .45); }
  .mk-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  .mk-hero-phone { position: absolute; left: 0; bottom: 0; z-index: 3; width: 28rem; filter: drop-shadow(0 30px 40px rgb(var(--shade) / .35)); }
  /* Every marketing phone is drawn at one real size and scaled whole, so its words keep the proportion a real screen gives them. */
  :is(.mk-hero-phone, .mk-channel-art, .mk-story-phone, .mk-stage-art) .device { width: 30rem; max-width: none; }
  :is(.mk-hero-phone, .mk-channel-art, .mk-story-phone, .mk-stage) .device-screen { height: 60rem; }
  .mk-hero-phone .device { zoom: .9; }
  .mk-chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 1rem; padding: .7rem 1.8rem .7rem .7rem; border-radius: 1.4rem; background: var(--surface); box-shadow: 0 1px 2px rgb(var(--shade) / .08), 0 16px 30px -12px rgb(var(--shade) / .4); white-space: nowrap; }
  .mk-chip .kind-icon { width: 3.4rem; height: 3.4rem; padding: .8rem; border-radius: .9rem; background: var(--kind-soft); color: var(--kind-ink); }
  .mk-chip > span { display: grid; gap: .1rem; }
  .mk-chip strong { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
  .mk-chip small { font-size: 1.15rem; line-height: 1.3; color: var(--ink-3); }
  .mk-chip.is-menu { left: 12rem; top: 2rem; rotate: -3deg; }
  .mk-chip.is-input { right: 0; top: 7.2rem; rotate: 2.5deg; }
  .mk-chip.is-router { left: 30.4rem; bottom: 3.2rem; rotate: -2deg; }
  .mk-chip.is-end { right: 1.2rem; bottom: 13.6rem; rotate: 3deg; }
  :root[data-theme="light"] .is-marketing .mk-chip { --surface: #ffffff; }
  
  /* The editor as a team sees it: a window round the canvas, on the Build step's panel. */
  .mk-frame { width: 100%; overflow: hidden; border-radius: 1.4rem; background: var(--surface); box-shadow: 0 30px 60px -30px rgb(var(--shade) / .45), 0 0 0 1px rgb(var(--shade) / .06); }
  .mk-frame-bar { display: flex; align-items: center; gap: 1.6rem; height: 4.8rem; padding: 0 1.2rem 0 1.8rem; border-bottom: 1px solid var(--line); font-size: 1.35rem; color: var(--ink-2); white-space: nowrap; }
  .mk-frame-bar strong { color: var(--ink); font-weight: 600; }
  .mk-frame-tabs { display: flex; align-self: stretch; margin-left: auto; }
  .mk-frame-tabs span { display: grid; place-items: center; padding: 0 1.2rem; border-bottom: 2px solid transparent; }
  .mk-frame-tabs .is-on { border-color: var(--primary); color: var(--ink); }
  .mk-frame-canvas { padding: 3.2rem 2.4rem; overflow: hidden; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; }

  /* Proof: the live customer and where each channel stands, before any claim. */
  .mk-proof { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 3.2rem; max-width: 124rem; margin: 0 auto; padding: 0 2.4rem; }
  .mk-proof-logo { display: block; width: auto; height: 4rem; }
  .mk-proof-line { margin: 0; color: var(--ink-2); font-size: 1.4rem; line-height: 1.6; }
  .mk-proof-line strong { display: block; color: var(--ink); font-size: 1.6rem; font-weight: 600; }
  .mk-dial-code { padding: .1rem .8rem; border-radius: 0; background: var(--surface-2); color: var(--ink); font-family: var(--mono); font-size: 1.6rem; font-weight: 600; }
  .mk-status-list { display: flex; gap: .8rem; margin: 0; padding: 0; list-style: none; }
  .mk-status-item { display: grid; gap: .2rem; padding: 1rem 1.8rem; border-radius: 0; background: var(--surface); }
  .mk-status-item span { color: var(--ink-2); font-size: 1.2rem; }
  .mk-status-item b { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .mk-status-item b::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--kind); }

  /* Channels: one service on three phones, each on a panel tinted in its channel's colour. */
  .mk-channel-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; margin: 0; padding: 0; list-style: none; }
  .mk-channel { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 2.4rem; }
  .mk-channel-list { grid-template-rows: auto 1fr; row-gap: 0; }
  .mk-channel-art { position: relative; height: 40rem; overflow: hidden; padding: 3.6rem 2.4rem 0; border-radius: var(--mk-r); background: var(--kind-soft); }
  .mk-channel-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--kind) 30%, transparent) 1.1px, transparent 1.3px); background-size: 18px 18px; pointer-events: none; }
  .mk-channel-art .device { position: relative; margin: 0 auto; }
  .mk-channel-art .device { zoom: .84; }
  .mk-channel-art .chat-log { overflow: hidden; }
  .mk-channel-copy { display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; padding: 0 .8rem; }
  .mk-channel-copy p { margin: 0; color: var(--ink-2); line-height: 1.5; }
  .mk-channel-copy .mk-channel-name { display: flex; align-items: center; gap: .8rem; font-size: 2rem; color: var(--ink); }
  .mk-channel-name .icon { width: 2.4rem; height: 2.4rem; color: var(--kind); }
  .mk-channel-name .mk-tag { margin-left: .4rem; }
  .mk-channel-link { margin-top: .8rem !important; }

  /* Teams: the people these services answer, a photo each. */
  .mk-teams-section .mk-h2 { margin-bottom: 4rem; }
  .mk-teams { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
  .mk-team { display: grid; align-content: start; gap: .6rem; }
  .mk-team img { display: block; width: 100%; height: auto; margin-bottom: 1.2rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: 2rem; }
  .mk-team h3 { margin: 0; font-size: 1.7rem; font-weight: 400; line-height: 1.3; }
  .mk-team p { margin: 0; color: var(--ink-2); font-size: 1.4rem; line-height: 1.5; }
  .mk-team .mk-team-tag { justify-self: start; margin-bottom: .2rem; padding: .2rem .9rem; border-radius: 999px; background: var(--kind); color: var(--on-accent); font-size: 1.2rem; font-weight: 600; }
  .mk-team.is-menu .mk-team-tag { color: #1c2420; }
  .is-marketing .ussd-buttons .ussd-button { display: grid; place-items: center; }
  .mk-phone-input { display: block; line-height: 26px; text-align: left; letter-spacing: .12em; }
  .mk-lock { background: linear-gradient(160deg, #525252, #161616 70%); color: #fff; }
  .mk-lock-date { margin: 2.4rem 0 0; font-size: 15px; font-weight: 600; text-align: center; opacity: .9; }
  .mk-lock-time { margin: 0; font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -.02em; text-align: center; }
  .mk-lock-notes { display: grid; gap: 6px; margin: 3.2rem 8px 0; color: var(--phone-ink); }

  /* How it works: Carbon tabs over one panel, then four hard parts on a hairline grid. */
  .mk-tab-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
  .mk-tab { display: grid; gap: .4rem; padding: 1.4rem 1.8rem; border: 0; border-bottom: 3px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
  .mk-tab b { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.2rem; font-weight: 400; }
  .mk-tab b::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--kind); }
  .mk-tab span { font-size: 1.6rem; }
  .mk-tab:hover { background: var(--surface-hover); border-bottom-color: var(--kind); color: var(--ink); }
  .mk-tab[aria-selected="true"] { background: var(--kind-soft); border-bottom-color: var(--kind); color: var(--ink); }
  .mk-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .mk-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 6.4rem; align-items: center; padding-top: 4rem; }
  .mk-panel[hidden] { display: none; }
  .mk-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
  .mk-panel-link { margin: 3.2rem 0 0; }
  .mk-panel-next { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.4rem; }
  .mk-panel-next[hidden] { display: none; }
  .mk-art { position: relative; display: grid; place-items: center; min-height: 44rem; padding: 4rem; border-radius: var(--mk-r); background: var(--kind-soft, var(--surface)); }
  .mk-art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(color-mix(in srgb, var(--kind, var(--ink-3)) 30%, transparent) 1.1px, transparent 1.3px); background-size: 18px 18px; pointer-events: none; }
  .mk-art > * { position: relative; width: 100%; }
  .mk-art .ill-build { width: 78.6rem; max-width: none; zoom: .78; }
  .mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4rem; margin: 8.8rem 0 0; padding: 0; list-style: none; }
  .mk-cell { display: grid; align-content: start; gap: 1.2rem; }
  .mk-cell .pictogram { margin-bottom: 1.2rem; color: var(--ink); }
  .mk-cell h3 { margin: 0; font-size: 1.8rem; font-weight: 400; }
  .mk-cell p { margin: 0; color: var(--ink-2); line-height: 1.5; }

  /* Illustrations are the editor's own components, drawn finished; --p, when a scene sets it, is scroll progress. */
  .ill { position: relative; --t: clamp(0, calc((var(--p, 1) - .06) * 1.8), 1); font-size: 1.35rem; }
  .ill-caption { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-3); }

  .ill-build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem 3.6rem; align-items: start; padding: 0 2.4rem 0 0; }
  .ill-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .ill-wire { --w: clamp(0, calc((var(--p, 1) - .38) * 2.6), 1); fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--w)); }
  .ill-wire.is-menu { stroke: var(--menu); }
  .ill-wire.is-input { stroke: var(--input); }
  .ill-wire.is-router { stroke: var(--router); }
  .ill-wire.is-muted { stroke-dasharray: 1; opacity: .45; }
  .ill-build .node.ill-node { position: relative; grid-column: var(--col); grid-row: var(--row); width: auto; min-width: 0; max-width: none; box-shadow: var(--shadow-float); opacity: calc(.1 + .9 * var(--t)); transform: translate(calc(var(--dx) * (1 - var(--t))), calc(var(--dy) * (1 - var(--t)))) rotate(calc(var(--r) * (1 - var(--t)))); }
  .ill-build .node.is-router { align-self: center; background: var(--surface); }
  .ill-build .node[data-wire="enter_pin"] { margin-top: 5.6rem; }

  .ill-dialog { position: relative; max-width: 52rem; margin: 0 auto; padding: 2.4rem; border-radius: 2rem; background: var(--surface); box-shadow: 0 30px 60px -30px rgb(var(--shade) / .4); }
  .ill-dialog-context { margin: 0; font-size: 1.3rem; color: var(--ink-3); }
  .ill-dialog-title { margin: .2rem 0 1.8rem; font-size: 2rem; font-weight: 400; }
  .ill-gate-row { --on: clamp(0, calc((var(--p, 1) - .18 - var(--i) * .1) * 8), 1); }
  .ill-gate-row .gate-mark { color: color-mix(in srgb, var(--ok) calc(var(--on) * 100%), var(--line-strong)); }
  .ill-gate-row .gate-mark::before { content: ""; width: 100%; height: 100%; background: currentColor; mask: url("/assets/icons/carbon-checkmark-filled-f135ea7e.svg") center / contain no-repeat; }
  .ill-gate-row .gate-title { opacity: calc(.45 + .55 * var(--on)); }
  .ill-scenarios { display: grid; gap: .6rem; margin: 1.8rem 0 2rem; padding: 1.2rem; border-radius: 1.2rem; background: var(--surface-2); }
  .ill-scenario { --on: clamp(0, calc((var(--p, 1) - .5 - var(--i) * .08) * 8), 1); display: flex; align-items: center; gap: .8rem; margin: 0; font-size: 1.35rem; }
  .ill-scenario .icon { width: 1.6rem; height: 1.6rem; color: var(--ink-3); }
  .ill-scenario code { margin-left: auto; font-size: 1.2rem; color: var(--ink-3); }
  .ill-pass { padding: .1rem .8rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: 1.15rem; opacity: var(--on); }
  .ill-publish { --done: clamp(0, calc((var(--p, 1) - .78) * 8), 1); width: 100%; opacity: calc(.35 + .65 * var(--done)); }
  .ill-publish .icon { width: 1.8rem; height: 1.8rem; }

  .ill-pin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.4rem; align-items: center; }
  .ill-pin-phone { display: grid; gap: 1rem; padding: 2rem; border-radius: 2rem; background: var(--phone-keypad); color: var(--phone-ink); box-shadow: 0 24px 50px -30px rgb(var(--shade) / .5); }
  .ill-pin-phone .ill-caption { color: var(--phone-muted); }
  .ill-pin-field { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
  .ill-pin-field span { --m: clamp(0, calc((var(--p, 1) - .28 - var(--i) * .07) * 7), 1); position: relative; display: grid; place-items: center; height: 5.2rem; border-radius: .6rem; background: var(--phone-key); font-family: var(--phone-font); font-size: 2.4rem; }
  .ill-pin-field b { font-weight: 400; opacity: calc(1 - var(--m)); }
  .ill-pin-field i { position: absolute; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--phone-ink); opacity: var(--m); transform: scale(var(--m)); }
  .ill-pin-note { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 0; font-size: 1.3rem; font-weight: 600; color: var(--error); opacity: clamp(0, calc((var(--p, 1) - .55) * 6), 1); }
  .ill-lock .icon { width: 1.6rem; height: 1.6rem; }
  .ill-terminal { overflow: hidden; border-radius: 1.6rem; background: #161616; color: #e0e0e0; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
  .ill-terminal-bar { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 1rem 1.4rem; border-bottom: 1px solid rgb(255 255 255 / .1); font-size: 1.2rem; }
  .ill-terminal-bar span { width: 1rem; height: 1rem; border-radius: 50%; background: #393939; }
  .ill-terminal-bar em { font-family: var(--mono); font-style: normal; color: #a8a8a8; }
  .ill-terminal-bar span + em { margin-left: .8rem; }
  .ill-json { margin: 0; padding: 1.6rem 1.8rem 2rem; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 1.3rem; line-height: 1.75; }
  .ill-json code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
  .j-k { color: #82cfff; }
  .j-s { color: #f1c21b; }
  .j-n { color: #be95ff; }
  .j-p { color: #a8a8a8; }
  .ill-hl { --h: clamp(0, calc((var(--p, 1) - .5) * 6), 1); margin: 0 -.6rem; padding: .2rem .6rem; background: rgb(255 126 182 / calc(var(--h) * .2)); box-shadow: inset 2px 0 0 rgb(255 126 182 / var(--h)); }

  .ill-version { display: grid; gap: 2rem; }
  .ill-environments { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ill-environments .deploy-place { border-radius: 1.6rem; box-shadow: var(--shadow-float); }
  .ill-live-label { position: relative; display: inline-grid; }
  .ill-live-label span { grid-area: 1 / 1; }
  .ill-live-label .is-old { opacity: calc(1 - clamp(0, calc((var(--p, 1) - .55) * 10), 1)); }
  .ill-live-label .is-new { opacity: clamp(0, calc((var(--p, 1) - .55) * 10), 1); }
  .ill-approvers { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.25rem; color: var(--ink-2); }
  .ill-approvers span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-right: -1rem; border: 2px solid var(--surface); border-radius: 50%; background: var(--input-soft); color: var(--input-ink); font-size: 1rem; font-weight: 600; }
  .ill-approvers span:first-child { background: var(--menu-soft); color: var(--menu-ink); }
  .ill-approvers span:nth-child(2) { margin-right: .4rem; }
  .ill-lanes { position: relative; padding: 4.8rem 2rem 1.2rem; overflow: hidden; border-radius: 1.8rem; background: var(--surface); }
  .ill-lane { position: relative; height: 7.2rem; border-top: 1px solid var(--line); }
  .ill-lane-label { position: absolute; left: 0; top: .8rem; font-family: var(--mono); font-size: 1.2rem; color: var(--ink-3); }
  .ill-session { position: absolute; top: 3.2rem; left: var(--from); width: calc(var(--to) - var(--from)); height: 1.2rem; border-radius: 999px; background: var(--line-strong); }
  .ill-session.is-new { background: var(--router); }
  .ill-session.is-caller { background: var(--live-soft); box-shadow: inset 0 0 0 2px var(--live); }
  .ill-session em { position: absolute; left: 0; top: calc(100% + .4rem); color: var(--live-ink); font-size: 1.2rem; font-style: normal; white-space: nowrap; }
  .ill-deploy { --d: clamp(0, calc((var(--t) - .48) * 12), 1); position: absolute; left: 49%; top: 1.2rem; bottom: 0; z-index: 2; width: 2px; background: var(--danger); opacity: var(--d); }
  .ill-deploy em { position: absolute; left: 50%; top: 0; padding: .2rem .8rem; border-radius: 999px; background: var(--danger); color: var(--on-danger); font-size: 1.15rem; font-style: normal; transform: translateX(-50%); }
  .ill-sweep { position: absolute; top: 4.4rem; bottom: 0; left: calc(var(--t) * 100%); right: -3rem; z-index: 1; background: linear-gradient(90deg, transparent, var(--surface) 3rem); }

  .ill-watch { display: grid; gap: 1.6rem; }
  .ill-traffic { padding: 1.8rem 2rem; border-radius: 1.8rem; background: var(--surface); box-shadow: 0 30px 60px -32px rgb(var(--shade) / .4); }
  .ill-traffic .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ill-traffic .stat dd { font-size: 2rem; }
  .ill-rate { position: relative; display: inline-grid; }
  .ill-rate span { grid-area: 1 / 1; }
  .ill-rate .is-bad-value { color: var(--error); opacity: calc(1 - clamp(0, calc((var(--p, 1) - .78) * 10), 1)); }
  .ill-rate .is-good-value { color: var(--ok); opacity: clamp(0, calc((var(--p, 1) - .78) * 10), 1); }
  .ill-traffic .funnel-step { grid-template-columns: 11rem minmax(0, 1fr) 2rem; }
  .ill-traffic .funnel-bar span { width: calc(var(--w) * 1% * clamp(0, calc((var(--p, 1) - .1 - var(--i) * .06) * 2.2), 1)); }
  .ill-slack { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.2rem; padding: 1.6rem 1.8rem; border-radius: 1.8rem; background: var(--surface); }
  .ill-slack-avatar { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1rem; background: var(--inverse); }
  .ill-slack-avatar .mark { width: 2.6rem; height: 2.6rem; }
  .ill-slack-name { margin: 0; font-weight: 600; }
  .ill-slack-name span { margin-left: .4rem; padding: 0 .4rem; background: var(--surface-2); color: var(--ink-3); font-size: 1rem; font-weight: 600; }
  .ill-slack-text { margin: .6rem 0 0; padding-left: 1rem; border-left: 3px solid; line-height: 1.45; }
  .ill-slack-text.is-alert { border-color: var(--error); opacity: clamp(0, calc((var(--p, 1) - .4) * 8), 1); }
  .ill-slack-text.is-resolved { border-color: var(--ok); opacity: clamp(0, calc((var(--p, 1) - .78) * 8), 1); }

  /* The story: one caller's balance check, a chapter on a panel tinted in its kind, beside a pinned phone that follows the chapter in view. */
  .mk-story { max-width: 124rem; margin: 0 auto; padding: 9.6rem 2.4rem 4.8rem; }
  .mk-story-head { padding-bottom: 2.4rem; }
  .mk-story-body { display: grid; grid-template-columns: minmax(0, 1fr) 29rem; gap: 7.2rem; }
  .mk-story-sticky { position: sticky; top: max(14rem, calc(50svh - 30rem)); display: grid; justify-items: center; gap: 1.6rem; padding-bottom: 2.4rem; }
  .mk-story-phone .device { zoom: .92; filter: drop-shadow(0 30px 40px rgb(var(--shade) / .3)); }
  @media (max-height: 820px) { .mk-story-phone .device { zoom: .82; } }
  @media (max-height: 720px) { .mk-story-phone .device { zoom: .74; } }
  .mk-story-caption { min-height: 2.8em; max-width: 26rem; margin: 0; color: var(--ink-2); font-size: 1.4rem; line-height: 1.4; text-align: center; text-wrap: balance; }
  .mk-story-progress { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; }
  .mk-story-progress li { width: 1.6rem; height: .3rem; background: var(--line-strong); transition: width .2s ease, background-color .2s ease; }
  .mk-story-progress li.is-current { width: 3.2rem; background: var(--kind); }
  .mk-chapter { display: grid; align-content: center; gap: 3.2rem; min-height: calc(100svh - 12rem); padding: 4rem 0; transition: opacity .25s ease; }
  .mk-story[data-chapter] .mk-chapter:not(.is-current) { opacity: .6; }
  .mk-story .is-warning { --kind: var(--warning); --kind-soft: var(--warning-soft); --kind-ink: var(--ink); }
  .mk-chapter-copy { display: grid; gap: 1.2rem; }
  .mk-chapter-number { display: inline-flex; align-items: center; gap: .8rem; margin: 0; color: var(--ink-2); font-family: var(--mono); font-size: 1.3rem; }
  .mk-chapter-number::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--kind); }
  .mk-chapter-title { max-width: 24ch; margin: 0; font-size: clamp(2.6rem, 2.6vw, 3.4rem); font-weight: 300; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
  .mk-chapter-body { max-width: 52ch; margin: 0; color: var(--ink-2); font-size: 1.7rem; line-height: 1.5; }
  .mk-chapter-art { position: relative; margin: 0; padding: 4rem; overflow: hidden; border-radius: 2rem; background: var(--kind-soft); }
  .mk-chapter-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--kind) 30%, transparent) 1.1px, transparent 1.3px); background-size: 18px 18px; opacity: .7; pointer-events: none; }
  .mk-chapter-art > * { position: relative; }
  .mk-chapter-art .ill-build { width: 78.6rem; max-width: none; zoom: .78; }
  .mk-chapter-screen { display: none; }
  /* The story's phone is driven, not pressed: keys light as it dials, and an ended call keeps only Dismiss. */
  .mk-story-phone :is(.dial-key, .call-key, .phone-key) { cursor: default; }
  .mk-story-phone .dial-key.is-pressed { background: var(--phone-dial-key-press); }
  .mk-story-phone .call-key.is-pressed { filter: brightness(.85); }
  .mk-story-phone .phone-key.is-pressed { background: var(--phone-key-press); }
  .mk-story-phone .mk-phone-dismiss { display: none !important; }
  .mk-story-phone .ussd-buttons.is-ended { grid-template-columns: 1fr; }
  .mk-story-phone .ussd-buttons.is-ended > .ussd-button { display: none; }
  .mk-story-phone .ussd-buttons.is-ended > .mk-phone-dismiss { display: grid !important; place-items: center; border-left: 0; }
  .mk-story-phone .device-screen:has(.keypad[hidden]) .ussd-stage { bottom: 0; }
  .mk-story-phone .ussd-stage { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
  .mk-phone-running { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; transform: translate(-50%, -50%); border-radius: 13px; background: var(--phone-alert); color: var(--phone-ink); font-family: var(--phone-font); font-size: 13px; white-space: nowrap; }
  .ussd-stage:has(.mk-phone-running:not([hidden])) .ussd-dialog { visibility: hidden; }

  .ill-retry { display: grid; gap: 1.6rem; }
  .ill-waterfall { padding: 1.6rem 1.8rem; border-radius: 1.8rem; background: var(--surface); box-shadow: 0 30px 60px -32px rgb(var(--shade) / .4); }
  .ill-wf-head, .ill-wf-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 1.2rem; }
  .ill-wf-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); margin: 0; padding: 0 0 1rem 6.8rem; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 1.2rem; }
  .ill-wf-row { --on: clamp(0, calc((var(--p, 1) - .15 - var(--i) * .15) * 5), 1); padding: 1.1rem 0; border-bottom: 1px solid var(--line); opacity: calc(.25 + .75 * var(--on)); }
  .ill-wf-row:last-child { border-bottom: 0; }
  .ill-wf-row.is-child code { padding-left: 1.4rem; color: var(--ink-2); }
  .ill-wf-row code { padding: 0; border: 0; background: none; overflow: hidden; font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
  .ill-method { justify-self: start; padding: .15rem .6rem; background: var(--input-soft); color: var(--input-ink); font-family: var(--mono); font-size: 1.1rem; font-weight: 600; }
  .ill-method.is-out { background: var(--router-soft); color: var(--router-ink); }
  .ill-method.is-retry { background: var(--live-soft); color: var(--live-ink); }
  .ill-method.is-log { background: var(--ok-soft); color: var(--ok-ink); }
  .ill-wf-bar { position: relative; height: 2.2rem; }
  .ill-wf-bar::before { content: ""; position: absolute; left: var(--start); top: .6rem; width: calc(var(--width) * var(--on)); min-width: .6rem; height: 1rem; border-radius: 999px; background: var(--bar); }
  .ill-wf-bar em { position: absolute; left: var(--start); top: -1.2rem; color: var(--ink-3); font-family: var(--mono); font-size: 1.1rem; font-style: normal; white-space: nowrap; opacity: var(--on); }
  .ill-wf-row.is-replayed .ill-wf-bar em { left: auto; right: 0; }
  .ill-wf-bar.is-input { --bar: var(--input); }
  .ill-wf-bar.is-bank { --bar: var(--router); }
  .ill-wf-bar.is-live { --bar: var(--live); }
  .ill-wf-bar.is-log { --bar: var(--ok); }
  .ill-tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .ill-tally p { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 1.4rem 1.8rem; border-radius: 1.6rem; background: var(--surface); color: var(--ink-2); line-height: 1.35; }
  .ill-tally-number { color: var(--live); font-size: 4.8rem; font-weight: 300; line-height: 1.04; }
  .ill-tally .is-good .ill-tally-number { color: var(--ok); }

  /* Your data: the forest band, with the country drawn around what stays home. */
  .mk-data { --band: var(--mk-forest); --bg: var(--band); --surface: #14503a; --surface-2: #1a5c43; --ink: #f4f7f4; --ink-2: rgb(244 247 244 / .8); --ink-3: rgb(244 247 244 / .62); --line: rgb(255 255 255 / .16); --line-strong: rgb(255 255 255 / .3); --ok-soft: #1f6b4c; --ok-ink: #c3f0d6; color: var(--ink); }
  :root:not([data-theme="light"]) .mk-data { --surface: #124430; --surface-2: #175239; }
  @media (prefers-color-scheme: light) { :root:not([data-theme]) .mk-data { --surface: #14503a; --surface-2: #1a5c43; } }
  .mk-data a { color: var(--ink); }
  /* Colour bands a product page's sections alternate on, so a long page has a rhythm: dark (ink, forest), amber, and a quiet grey. */
  .mk-tone.is-ink { --band: var(--mk-ink-band); }
  .mk-tone.is-forest { --band: var(--mk-forest); }
  .mk-tone.is-amber { --band: var(--mk-amber); }
  .mk-tone.is-grey { --band: #f4f4f4; }
  :root[data-theme="dark"] .mk-tone.is-ink { --band: #212b26; }
  :root[data-theme="dark"] .mk-tone.is-grey { --band: #202020; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-tone.is-ink { --band: #212b26; } :root:not([data-theme="light"]) .mk-tone.is-grey { --band: #202020; } }
  /* The band recolours the words; the drawing beside them keeps the page's own palette. */
  .mk-tone:is(.is-ink, .is-forest) > :not(.mk-art) { --bg: var(--band); --surface: color-mix(in srgb, #ffffff 9%, var(--band)); --ink: #f4f7f4; --ink-2: rgb(244 247 244 / .8); --ink-3: rgb(244 247 244 / .62); --line: rgb(255 255 255 / .16); --line-strong: rgb(255 255 255 / .3); color: var(--ink); }
  .mk-tone.is-amber > :not(.mk-art) { --bg: var(--band); --surface: #fff7e6; --ink: #1c2420; --ink-2: rgb(28 36 32 / .82); --ink-3: rgb(28 36 32 / .66); --line: rgb(28 36 32 / .18); --line-strong: rgb(28 36 32 / .32); color: var(--ink); }
  .mk-tone.is-grey > * { --surface: var(--bg); }
  /* Full amber is too loud on the dark page; the band turns a deep warm brown there. */
  :root[data-theme="dark"] .mk-tone.is-amber { --band: #2e2410; }
  :root[data-theme="dark"] .mk-tone.is-amber > :not(.mk-art) { --surface: color-mix(in srgb, #ffffff 9%, var(--band)); --ink: #f4f7f4; --ink-2: rgb(244 247 244 / .8); --ink-3: rgb(244 247 244 / .62); --line: rgb(255 255 255 / .16); --line-strong: rgb(255 255 255 / .3); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-tone.is-amber { --band: #2e2410; } :root:not([data-theme="light"]) .mk-tone.is-amber > :not(.mk-art) { --surface: color-mix(in srgb, #ffffff 9%, var(--band)); --ink: #f4f7f4; --ink-2: rgb(244 247 244 / .8); --ink-3: rgb(244 247 244 / .62); --line: rgb(255 255 255 / .16); --line-strong: rgb(255 255 255 / .3); } }
  .mk-tone:is(.is-ink, .is-forest, .is-amber) .mk-art { box-shadow: 0 24px 60px -30px rgb(0 0 0 / .45); }
  .mk-tone a:not(.btn) { color: inherit; }
  .mk-data .btn--ghost { border-color: var(--ink); color: var(--ink); }
  .mk-data .btn--ghost:hover { background: var(--ink); color: var(--mk-forest); }
  .ill-residency { display: grid; grid-template-columns: minmax(0, .9fr) 17rem minmax(0, 2.4fr); align-items: stretch; --t: clamp(0, calc((var(--p, 1) - .1) * 2), 1); }
  .res-zone { position: relative; display: grid; align-content: center; padding: 5.6rem 2.4rem 2.4rem; border-radius: 2.4rem; }
  .res-zone.is-outside { border: 1px dashed var(--line-strong); }
  .res-zone.is-inside { border: 2px solid var(--end); background: rgb(255 255 255 / .04); }
  .res-zone-label { position: absolute; left: 2rem; top: 1.6rem; margin: 0; padding: .3rem 1rem; border-radius: 999px; font-size: 1.2rem; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .res-zone.is-inside .res-zone-label { background: var(--end); color: #161616; box-shadow: none; }
  .res-node { display: grid; align-content: start; gap: .4rem; padding: 1.6rem 1.8rem 1.8rem; border-radius: 1.6rem; background: var(--surface); }
  .res-node p { margin: 0; }
  .res-icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: .6rem; border-radius: 1rem; background: rgb(255 255 255 / .1); color: var(--ink); }
  .res-icon .icon { width: 2.2rem; height: 2.2rem; }
  .res-icon .mark { width: 2.4rem; height: 2.4rem; }
  .res-name { font-size: 1.6rem; font-weight: 600; line-height: 1.25; }
  .res-does { font-size: 1.35rem; line-height: 1.45; color: var(--ink-2); }
  .res-node.is-runtime { --ink: #0b2e20; --ink-2: #33574a; border: 0; background: var(--mk-on-band); color: var(--ink); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .55); }
  .res-node.is-runtime .res-icon { background: var(--mk-forest); }
  .res-chip { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; margin-top: .8rem !important; padding: .3rem .9rem; border-radius: 999px; background: #dff3e7; color: #0b2e20; font-size: 1.2rem; }
  .res-chip .icon { width: 1.4rem; height: 1.4rem; }
  .res-map { display: grid; grid-template-columns: minmax(0, 1fr) 16rem minmax(0, 1fr); grid-template-rows: auto 8.8rem auto; grid-template-areas: "runtime api-link api" "callbacks . ." "aggregator ussd callers"; }
  .res-node.is-runtime { grid-area: runtime; }
  .res-node.is-api { grid-area: api; }
  .res-node.is-aggregator { grid-area: aggregator; }
  .res-node.is-callers { grid-area: callers; }
  .res-link { position: relative; display: grid; place-items: center; margin: 0; }
  .res-link.is-api { grid-area: api-link; --line: var(--router); }
  .res-link.is-callbacks { grid-area: callbacks; --line: var(--message); }
  .res-link.is-ussd { grid-area: ussd; --line: var(--menu); }
  .res-line { position: absolute; background: var(--line); }
  .res-link.is-api .res-line, .res-link.is-ussd .res-line { left: .4rem; right: .4rem; top: 50%; height: 2px; transform: scaleX(var(--t)); }
  .res-link.is-callbacks .res-line { top: .4rem; bottom: .4rem; left: 50%; width: 2px; transform: scaleY(var(--t)); transform-origin: bottom; }
  .res-link.is-api .res-line { transform-origin: left; }
  .res-link.is-ussd .res-line { transform-origin: right; }
  .res-line::before, .res-line::after { content: ""; position: absolute; width: 0; height: 0; border: 6px solid transparent; }
  .res-link.is-api .res-line::before { left: -2px; top: -5px; border-right: 9px solid var(--line); border-left: 0; }
  .res-link.is-api .res-line::after { right: -2px; top: -5px; border-left: 9px solid var(--line); border-right: 0; }
  .res-link.is-ussd .res-line::before { left: -2px; top: -5px; border-right: 9px solid var(--line); border-left: 0; }
  .res-link.is-callbacks .res-line::before { top: -2px; left: -5px; border-bottom: 9px solid var(--line); border-top: 0; }
  .res-link-label { position: relative; z-index: 1; padding: .3rem .8rem; border-radius: 999px; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); color: var(--line); font-size: 1.15rem; text-align: center; white-space: nowrap; opacity: var(--t); }
  .res-border { position: relative; display: grid; align-content: center; gap: 2.4rem; padding: 0 1rem; }
  .res-border-line { position: absolute; left: 50%; top: -1.6rem; bottom: -1.6rem; border-left: 2px dashed rgb(255 255 255 / .4); }
  .res-flow { --flow: #ffc861; position: relative; z-index: 1; display: grid; gap: .3rem; margin: 0; padding: 1.2rem 1.2rem 1.3rem; border-radius: 1.2rem; background: var(--band); box-shadow: inset 0 0 0 1px var(--line-strong); text-align: center; }
  .res-flow.is-out { --flow: var(--live); }
  .res-flow b { font-size: 1.35rem; font-weight: 600; color: var(--flow); }
  .res-flow > span:last-child { font-size: 1.15rem; line-height: 1.4; color: var(--ink-2); }
  .res-arrow { position: relative; height: 2px; margin: .2rem .6rem .6rem; background: var(--flow); transform: scaleX(var(--t)); }
  .res-flow.is-in .res-arrow { transform-origin: left; }
  .res-flow.is-out .res-arrow { transform-origin: right; }
  .res-arrow::after { content: ""; position: absolute; top: -5px; border: 6px solid transparent; }
  .res-flow.is-in .res-arrow::after { right: -2px; border-left: 9px solid var(--flow); border-right: 0; }
  .res-flow.is-out .res-arrow::after { left: -2px; border-right: 9px solid var(--flow); border-left: 0; }
  .res-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-top: 1.6rem; }
  .res-summary > div { padding: 2rem 2.4rem; border-radius: 2rem; background: rgb(255 255 255 / .06); }
  .res-summary .is-stays { --summary: var(--end); }
  .res-summary .is-crosses { --summary: var(--menu); }
  .res-summary-title { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 600; }
  .res-summary ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
  .res-summary li { position: relative; padding-left: 2.4rem; color: var(--ink-2); }
  .res-summary .is-stays li::before { content: ""; position: absolute; top: .2em; left: 0; width: 1.6rem; height: 1.6rem; background: var(--end); mask: url("/assets/icons/carbon-checkmark-filled-f135ea7e.svg") center / contain no-repeat; }
  .res-summary .is-crosses li::before { content: "⇄"; position: absolute; left: 0; color: var(--menu); }
  .mk-controls-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3.2rem; margin: 5.6rem 0 0; }
  .mk-controls-row div { padding: 0; }
  .mk-controls-row dt, .mk-control-grid dt { display: grid; gap: 1.6rem; font-size: 1.6rem; }
  .mk-controls-row dd, .mk-control-grid dd { margin: .6rem 0 0; color: var(--ink-2); line-height: 1.5; }
  .mk-data-foot { display: flex; flex-wrap: wrap; gap: 1.6rem 4rem; align-items: center; margin-top: 4.8rem; }
  .mk-data-foot .hint, .mk-data-rules { max-width: 80ch; margin: 0; color: var(--ink-3); }
  .mk-data-rules { margin-top: 3.2rem; }

  /* Pricing: three rounded cards, building on amber, the plan most take beside it, self-hosting on ink. */
  .mk-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
  .mk-plan { display: grid; align-content: start; gap: 1.2rem; padding: 3.2rem 3.2rem 3.6rem; border-radius: var(--mk-r); background: var(--surface); }
  .mk-plan:first-child { --ink: #1c2420; --ink-2: #3a3320; background: var(--mk-amber); color: var(--ink); }
  .mk-plan:last-child { --ink: var(--mk-on-band); --ink-2: var(--mk-on-band-2); --ink-3: var(--mk-on-band-3); background: var(--mk-ink-band); color: var(--ink); }
  .mk-plan:last-child .btn--ghost { border-color: var(--ink); color: var(--ink); }
  .mk-plan:last-child .btn--ghost:hover { background: var(--ink); color: #161616; }
  .mk-plan.is-featured { box-shadow: inset 0 0 0 2px var(--primary); }
  .mk-plan-name { margin: 0; color: var(--ink-2); font-size: 1.5rem; font-weight: 400; }
  .mk-plan-price { margin: 0; font-size: 3.2rem; font-weight: 300; line-height: 1.15; }
  .mk-plan > p { margin: 0; color: var(--ink-2); }
  .mk-plan .mk-points { margin-top: 1.2rem; }
  .mk-plan .btn { justify-self: start; margin-top: 1.6rem; }

  /* Close: the questions on the violet band, beside the form on its own card. */
  .mk-close { --band: var(--mk-violet); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6.4rem; align-items: start; }
  .mk-close > :first-child { --ink: var(--mk-on-band); --ink-2: var(--mk-on-band-2); --ink-3: var(--mk-on-band-3); --line: rgb(255 255 255 / .2); --line-strong: rgb(255 255 255 / .36); --focus: #ffffff; color: var(--ink); }
  .mk-close > :first-child a { color: var(--ink); }
  .mk-close .mk-form { border: 0; background: var(--bg); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .5); }
  .mk-close .mk-faq { margin-top: 4rem; }
  .mk-faq { border-top: 1px solid var(--line-strong); }
  .mk-question { border-bottom: 1px solid var(--line); }
  .mk-question summary { position: relative; padding: 2rem 4rem 2rem 0; font-size: 1.6rem; font-weight: 600; line-height: 1.4; list-style: none; cursor: pointer; }
  .mk-question summary::-webkit-details-marker { display: none; }
  .mk-question summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 2.4rem; font-weight: 300; color: var(--ink-3); }
  .mk-question[open] summary::after { content: "−"; }
  .mk-question summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
  .mk-question p { max-width: 64ch; margin: -.4rem 0 2.4rem; line-height: 1.6; color: var(--ink-2); }

  /* Product pages: breadcrumb and split hero, sticky in-page tabs, alternating features, then questions and a closing band. */
  .mk-sub-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 6.4rem; align-items: start; max-width: 124rem; margin: 0 auto; padding: 4.8rem 2.4rem 0; }
  .mk-crumb { margin: 0 0 2.4rem; font-size: 1.4rem; color: var(--ink-2); }
  .mk-crumb a { color: var(--primary); text-decoration: none; }
  .mk-crumb a:hover { text-decoration: underline; }
  .mk-tag-line { margin: 0 0 1.6rem; }
  .mk-sub-hero .mk-lede { margin-top: 2.4rem; }
  .mk-sub-hero.is-plain { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  /* Gateway logos, each on a tile in its own colours: white, or MTN's yellow behind its black mark. */
  .mk-works-with { display: grid; gap: 1.2rem; margin-top: 4rem; }
  .mk-works-with p { margin: 0; font-size: 1.3rem; color: var(--ink-3); }
  .mk-logos { display: flex; flex-wrap: wrap; gap: 1.2rem; }
  .mk-logo { display: inline-grid; place-items: center; height: 5.6rem; padding: 0 1.8rem; border-radius: .4rem; background: #ffffff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
  .mk-logo img { display: block; width: auto; height: 3.2rem; }
  .mk-logo.is-africas-talking img { height: 3.4rem; }
  .mk-logo.is-mtn { background: #ffcb05; }
  .mk-logo.is-zamtel { padding: 0 .8rem; }
  .mk-logo.is-zamtel img { height: 4.4rem; }
  .mk-stage { position: relative; height: 52rem; }
  .mk-stage.on-amber { --stage-band: var(--mk-amber); }
  .mk-stage.on-forest { --stage-band: var(--mk-forest); }
  .mk-stage.on-violet { --stage-band: var(--mk-violet); }
  .mk-stage-block { position: absolute; inset: 4rem 0 3.2rem 8rem; border-radius: 3.2rem; background: var(--stage-band); }
  .mk-stage-block::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgb(255 255 255 / .18) 1.2px, transparent 1.4px); background-size: 16px 16px; mask-image: linear-gradient(135deg, transparent 35%, #000); }
  .mk-stage-photo { position: absolute; right: 3.2rem; top: 0; width: 48%; margin: 0; overflow: hidden; border-radius: 2.8rem; box-shadow: 0 30px 60px -24px rgb(var(--shade) / .45); }
  .mk-stage-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .mk-stage-art { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .mk-stage-art > .device { position: absolute; left: 0; bottom: 0; zoom: .74; filter: drop-shadow(0 30px 40px rgb(var(--shade) / .35)); }
  .mk-stage-art > .mk-callback { position: absolute; left: 0; bottom: 0; width: 38rem; }
  .mk-stage-art > .mk-callback code { font-size: 1.2rem; white-space: nowrap; }
  /* On the dark page the stage's cards take a raised surface and an edge, so they sit in front of the block rather than read as holes in it. */
  .mk-stage-art > .mk-callback, .mk-stage-art .ill-terminal { border: 1px solid var(--line); }
  :root[data-theme="dark"] .mk-stage-art > .mk-callback { background: var(--surface); }
  :root[data-theme="dark"] .mk-stage-art > .mk-callback .mk-callback-row.is-old { background: var(--surface-2); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-stage-art > .mk-callback { background: var(--surface); } :root:not([data-theme="light"]) .mk-stage-art > .mk-callback .mk-callback-row.is-old { background: var(--surface-2); } }
  :root[data-theme="dark"] .mk-stage-art .ill-terminal { background: #262626; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-stage-art .ill-terminal { background: #262626; } }
  .mk-stage-art .ill-json { font-size: 1.2rem; line-height: 1.6; }
  .mk-stage-art > .ill-pin { position: absolute; inset: 0; display: block; }
  .mk-stage-art > .ill-pin .ill-terminal { position: absolute; left: 0; bottom: 0; width: 27rem; }
  .mk-stage-art > .ill-pin .ill-pin-phone { display: none; }
  .mk-stage .node { flex: none; box-shadow: 0 1px 2px rgb(var(--shade) / .08), 0 16px 30px -12px rgb(var(--shade) / .4); cursor: default; }
  .mk-subnav { position: sticky; top: calc(6.4rem + 2px); z-index: 30; margin-top: 4.8rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); }
  .mk-subnav-inner { display: flex; align-items: center; max-width: 124rem; margin: 0 auto; padding: 0 2.4rem; }
  .mk-subnav-link { padding: 1.4rem 1.6rem 1.2rem; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: 1.4rem; text-decoration: none; white-space: nowrap; }
  .mk-subnav-link:first-child { padding-left: 0; }
  .mk-subnav-link:hover { color: var(--ink); }
  .mk-subnav-link.is-on { border-color: var(--primary); color: var(--ink); }
  .mk-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6.4rem; align-items: center; }
  .mk-feature.is-flipped { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .mk-feature.is-flipped > :first-child { order: 2; }
  .mk-feature.is-wide { grid-template-columns: minmax(0, 1fr); gap: 4.8rem; }
  .mk-feature.is-wide .mk-art { display: block; min-height: 0; padding: 0; background: none; }
  .mk-feature.is-wide .mk-art::before { content: none; }
  .mk-feature-body { max-width: 58ch; margin: 2.4rem 0 0; color: var(--ink-2); line-height: 1.6; }
  .mk-spot { width: min(30rem, 100%); margin: 0 0 2.4rem -1.2rem; }
  .mk-spot .spot { background: none; }
  .mk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.2rem; margin: 3.2rem 0 0; }
  .mk-list div { padding: 1.6rem 0; border-top: 1px solid var(--line); }
  .mk-list dt { font-size: 1.5rem; font-weight: 600; }
  .mk-list dd { margin: .4rem 0 0; color: var(--ink-2); font-size: 1.4rem; line-height: 1.5; }
  .mk-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; }
  .mk-pair-cell { display: grid; gap: 1.2rem; align-content: start; }
  .mk-pair-cell > p { margin: 0; font-size: 1.2rem; color: var(--ink-2); }
  .mk-pair .node { position: relative; width: auto; box-shadow: var(--shadow-float); cursor: default; }
  .mk-render { overflow: hidden; border-radius: 1.6rem; background: var(--bg); }
  .mk-render .ussd-dialog { margin: 1.2rem auto; }
  .mk-render.device-screen { height: auto; padding: 1.2rem; border-radius: 1.6rem; }
  .mk-render.is-lock { padding: 1.2rem; background: linear-gradient(160deg, #525252, #161616 70%); color: var(--phone-ink); }
  /* A crop of the editor itself: its own markup and background, scaled down, as a screenshot would be but drawn live. */
  .mk-shot { display: grid; gap: 1.6rem; max-width: 64rem; padding: 2.4rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--mk-r-card); background: var(--bg); box-shadow: 0 30px 60px -32px rgb(var(--shade) / .4); zoom: .8; }
  .mk-shot > *, .mk-shot .send-bar { margin: 0; }
  .mk-shot .display { margin: 0; font-size: 3.6rem; }
  .mk-shot .sends-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-shot .sends-stats.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-shot-heading { margin: 0; font-size: 1.6rem; font-weight: 600; }
  .mk-shot.is-panel { gap: 0; padding: 0; }
  .mk-shot.is-panel .panel-body { padding-bottom: 2.4rem; }
  .mk-callback { display: grid; gap: 1.2rem; width: 100%; max-width: 48rem; padding: 2.4rem; border-radius: 0; background: var(--bg); box-shadow: 0 30px 60px -30px rgb(var(--shade) / .45); }
  .mk-callback-title { margin: 0; font-size: 1.3rem; color: var(--ink-2); }
  .mk-callback-row { display: grid; gap: .6rem; padding: 1.2rem 1.4rem; border-radius: 0; background: var(--surface); }
  .mk-callback-row span { font-size: 1.2rem; color: var(--ink-3); }
  .mk-callback-row code { padding: 0; border: 0; background: none; overflow-wrap: anywhere; font-size: 1.3rem; }
  .mk-callback-row.is-old code { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
  .mk-callback-row.is-new { background: var(--kind-soft, var(--surface)); box-shadow: inset 3px 0 0 var(--kind, var(--router)); }
  .mk-callback-arrow { justify-self: center; color: var(--ink-3); }
  .mk-callback-arrow .icon.is-down { width: 1.8rem; height: 1.8rem; rotate: 180deg; }
  .mk-callback-note { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 0; font-size: 1.3rem; color: var(--ink-2); }
  .mk-callback-note .icon { width: 1.6rem; height: 1.6rem; color: var(--ok); }
  /* What stays and what moves: three plain rows beside the two that change, tinted in the router colour. */
  .mk-swap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.6rem; }
  .mk-swap-side { padding: 2.8rem 3.2rem; border-radius: 0; background: var(--surface); }
  .mk-swap-side.is-change { background: var(--router-soft); box-shadow: inset 0 3px 0 var(--router); }
  .mk-swap-title { display: flex; align-items: center; gap: .8rem; margin: 0 0 2rem; font-size: 1.2rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
  .mk-swap-title .icon { width: 1.8rem; height: 1.8rem; color: var(--ok); }
  .mk-swap-side.is-change .mk-swap-title .icon { color: var(--router); }
  .mk-swap ul { display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; }
  .mk-swap li { display: grid; gap: .4rem; }
  .mk-swap strong { font-size: 1.7rem; font-weight: 600; }
  .mk-swap span { color: var(--ink-2); line-height: 1.5; }
  .mk-shadow { max-width: 56rem; }
  #weeks .mk-art { min-height: 0; padding: 4.8rem 4rem; background: var(--surface); }
  #weeks .mk-art::before { display: none; }
  /* The move as a Gantt chart in half weeks: your service until the switch, luftflow's stages in their screen colours, the switch as a dashed flag line. */
  .mk-gantt { position: relative; display: grid; grid-template-columns: 18rem repeat(8, minmax(0, 1fr)); grid-template-rows: 4.8rem 4.4rem repeat(5, 3.2rem); row-gap: .8rem; width: 100%; font-size: 1.3rem; line-height: 1.3; }
  .mk-gantt::before { content: ""; grid-row: 2 / -1; grid-column: 2 / -1; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%); pointer-events: none; }
  .mk-gantt-week { grid-row: 1; grid-column: calc(var(--from) + 1) / span 2; align-self: end; padding: 0 0 .8rem .8rem; border-bottom: 1px solid var(--line-strong); color: var(--ink-2); font-size: 1.1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .mk-gantt-row { grid-row: var(--row); grid-column: 1; display: flex; align-items: center; gap: .8rem; padding-right: 1.2rem; color: var(--ink-2); white-space: nowrap; }
  .mk-gantt-row.is-old { color: var(--ink); font-weight: 600; }
  .mk-gantt-row .icon { width: 1.8rem; height: 1.8rem; flex: none; color: var(--lane, var(--ink-3)); }
  .mk-gantt-bar { position: relative; z-index: 1; grid-row: var(--row); grid-column: calc(var(--from) + 1) / calc(var(--to) + 1); display: flex; align-items: center; min-width: 0; margin: 0 .3rem; padding: 0 1.2rem; border-radius: .4rem; background: var(--lane); color: #ffffff; font-size: 1.2rem; font-weight: 600; }
  .mk-gantt-bar > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  :is(.mk-gantt-row, .mk-gantt-bar).is-build { --lane: var(--input); }
  :is(.mk-gantt-row, .mk-gantt-bar).is-staging { --lane: var(--menu); }
  :is(.mk-gantt-row, .mk-gantt-bar).is-shadow { --lane: var(--router); }
  :is(.mk-gantt-row, .mk-gantt-bar).is-drill { --lane: var(--form); }
  :is(.mk-gantt-row, .mk-gantt-bar).is-live { --lane: var(--end); }
  .mk-gantt-bar.is-old { background: color-mix(in srgb, var(--ink) 14%, var(--surface)); color: var(--ink); font-weight: 500; }
  .mk-gantt-bar.is-standby { background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--ink) 9%, transparent) 6px 8px); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-3); font-weight: 400; }
  .mk-gantt-switch { position: relative; z-index: 2; grid-row: 1 / -1; grid-column: calc(var(--at) + 1); margin-left: -1px; border-left: 2px dashed var(--ink); pointer-events: none; }
  .mk-gantt-switch > span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1rem .4rem .8rem; background: var(--ink); color: var(--bg); font-size: 1.1rem; font-weight: 600; white-space: nowrap; translate: -50% 0; }
  .mk-gantt-switch .icon { width: 1.4rem; height: 1.4rem; }
  #weeks .mk-art { padding-bottom: 6.4rem; }  .mk-shadow .shadow-agreement { color: var(--ok-ink); }
  .mk-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 0; }
  .mk-control-grid div { padding: 2.8rem 2.8rem 3.2rem; border-radius: 0; background: var(--surface); }
  .mk-control-grid .pictogram { color: var(--ink); }
  .mk-table-wrap { overflow-x: auto; border-radius: 0; background: var(--surface); }
  .mk-table { width: 100%; min-width: 64rem; border-collapse: collapse; font-size: 1.5rem; line-height: 1.5; }
  .mk-table th, .mk-table td { padding: 1.4rem 1.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
  .mk-table tbody tr:last-child > * { border-bottom: 0; }
  .mk-table thead th { color: var(--ink); font-size: 1.4rem; font-weight: 600; background: var(--surface-2); }
  .mk-table tbody th { width: 22%; color: var(--ink); font-weight: 600; }
  .mk-table td { color: var(--ink-2); }
  .mk-table-wrap + .hint { margin-top: 1.6rem; }
  .mk-report { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6.4rem; align-items: end; }
  .mk-report .mk-section-lede { margin: 0; }
  .mk-cta-band { --ink: var(--mk-on-band); --ink-2: var(--mk-on-band-2); --ink-3: var(--mk-on-band-3); background: var(--mk-violet); color: var(--ink); }
  .mk-cta-band a:not(.btn) { color: var(--ink); }
  .mk-cta-band .btn { border-color: #ffffff; background: #ffffff; color: #161616; }
  .mk-cta-band .btn:hover { border-color: #e0e0e0; background: #e0e0e0; }
  .mk-cta-band-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: center; max-width: 124rem; margin: 0 auto; padding: 7.2rem 2.4rem; }
  .mk-cta-band .mk-section-lede { margin: 0 0 2.4rem; }
  .mk-review p { margin: 0 0 1.6rem; color: var(--ink-2); }
  .mk-review .hint { margin: 2.4rem 0 0; }
  .mk-guarded .scribble { width: auto; height: 10rem; margin: 0 0 1.6rem -1.6rem; }
  .mk-cta-band .mk-guarded .scribble { --spot: var(--mk-amber); --scribble-paper: color-mix(in srgb, #ffffff 16%, var(--mk-violet)); }

  /* Early access: the form, the status page and the design-partner offer. */
  .mk-join { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5.6rem; align-items: start; }
  .mk-join.is-page { padding-top: 6.4rem; }
  .mk-join-copy { position: sticky; top: 10.4rem; }
  .mk-join-copy .hint { margin-top: 2.4rem; }
  .mk-spot-panel { border-radius: var(--mk-r); background: var(--kind-soft); overflow: hidden; }
  .mk-spot-panel .spot { background: none; }
  .mk-join-copy .mk-spot-panel { max-width: 36rem; margin-bottom: 3.2rem; }
  .mk-partner { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 2.4rem; margin-top: 3.2rem; }
  .mk-partner-title { margin: 0; font-size: 1.4rem; font-weight: 600; color: var(--ink-2); }
  .mk-partner .mk-points { margin-top: 1.2rem; }
  .mk-form { display: grid; gap: 2.2rem; padding: 3.2rem; border-radius: var(--mk-r); background: var(--surface); color: var(--ink); }
  .mk-form .label { display: block; margin-bottom: .5rem; }
  .mk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.6rem; }
  .mk-form-wide { grid-column: 1 / -1; }
  .mk-needs { margin: 0; padding: 0; border: 0; }
  .mk-more { padding: 1.2rem 1.6rem; border: 1px solid var(--line); border-radius: 0; }
  .mk-more[open] { padding-bottom: 2rem; }
  .mk-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font-weight: 600; cursor: pointer; }
  .mk-more > summary .hint { font-weight: 400; }
  .mk-more > :not(summary) { margin-top: 1.6rem; }
  .mk-wait { display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: 1.6rem; margin-top: 4rem; }
  .mk-wait-card { display: grid; align-content: start; justify-items: start; gap: 1rem; padding: 2.4rem; border-radius: 0; background: var(--surface); }
  .mk-wait-card p { margin: 0; color: var(--ink-2); line-height: 1.55; }
  .mk-needs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .6rem; }
  .mk-check { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 0; cursor: pointer; }
  .mk-check:has(input:checked) { border-color: var(--ink-3); background: var(--surface-2); }
  .mk-check input { flex: none; width: 1.7rem; height: 1.7rem; margin: .25rem 0 0; accent-color: var(--primary); }
  .mk-check strong { display: block; font-weight: 600; }
  .mk-check .hint { display: block; margin: .1rem 0 0; }
  .mk-consent { border: 0; padding: 0; color: var(--ink-2); }
  .mk-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
  .mk-form-actions .hint { margin: 0; }
  .mk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .mk-status { max-width: 76rem; padding-top: 7.2rem; }
  .mk-status-mark .mark { width: 5.6rem; height: 5.6rem; }
  .mk-status .mk-h1 { margin-top: 2rem; }
  .mk-status-back { margin: 4rem 0 0; }
  .mk-status-head { display: grid; grid-template-columns: minmax(0, 1fr) 26rem; gap: 3.2rem; align-items: end; }
  .mk-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 4rem 0 0; padding: 0; list-style: none; }
  .mk-timeline-step { display: grid; gap: .4rem; padding: 1.6rem 0 0; border-top: 2px solid var(--line); color: var(--ink-3); }
  .mk-timeline-step strong { color: var(--ink-2); font-weight: 600; }
  .mk-timeline-step.is-reached { border-top-color: var(--primary); }
  .mk-timeline-step.is-current strong { color: var(--ink); }
  .mk-share { margin-top: 4.8rem; padding: 2.4rem; border-radius: 0; background: var(--surface); }
  .mk-share > p { margin: .8rem 0 1.6rem; color: var(--ink-2); }
  .mk-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.4rem; margin: 4rem 0 2rem; }
  .mk-summary dt { font-size: 1.3rem; color: var(--ink-3); }
  .mk-summary dd { margin: .2rem 0 0; font-weight: 600; }

  .mk-prose { max-width: 76rem; padding-top: 7.2rem; }
  .mk-prose .mk-h3 { margin-top: 4rem; }
  .mk-prose p { max-width: 66ch; line-height: 1.65; color: var(--ink-2); }

  /* Footer: Carbon's inverse, three groups. */
  .mk-footer { --ink: #f4f4f4; --ink-2: #c6c6c6; --ink-3: #8d8d8d; --line: rgb(255 255 255 / .14); background: #161616; color: var(--ink); }
  :root:not([data-theme="light"]) .mk-footer { background: #0b0b0b; }
  @media (prefers-color-scheme: light) { :root:not([data-theme]) .mk-footer { background: #161616; } }
  .mk-footer a { color: var(--ink-2); text-decoration: none; }
  .mk-footer a:hover { color: var(--ink); text-decoration: underline; }
  .mk-footer-inner { max-width: 124rem; margin: 0 auto; padding: 7.2rem 2.4rem 0; }
  .mk-footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.8rem; padding-bottom: 5.6rem; }
  .mk-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .mk-footer-line { max-width: 22ch; margin: 0; font-size: clamp(2.2rem, 2.2vw, 2.8rem); font-weight: 300; line-height: 1.25; text-wrap: balance; }
  .mk-footer-end { display: inline-flex; align-items: center; gap: 1rem; margin: 0; font-family: var(--mono); font-size: 1.3rem; color: var(--ink-2); }
  .mk-footer-end-code { padding: .1rem .6rem; border-radius: .4rem; background: #044317; color: #a7f0ba; font-size: 1.15rem; font-weight: 600; }
  .mk-footer .mk-footer-cta { margin-top: .8rem; color: var(--on-primary); }
  .mk-footer .mk-footer-cta:hover { color: var(--on-primary); text-decoration: none; }
  .mk-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2rem; }
  .mk-footer-heading { margin: 0 0 1.4rem; font-size: 1.2rem; color: var(--ink-3); }
  .mk-footer-group ul { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; font-size: 1.4rem; }
  .mk-footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2.4rem; padding: 2rem 0; border-top: 1px solid var(--line); }
  .mk-footer-note { margin: 0; font-size: 1.3rem; color: var(--ink-3); }
  .mk-footer-tools { display: flex; flex-wrap: wrap; gap: .8rem; }
  .mk-footer-tool { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.6rem; padding: 0 1.4rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 1.3rem; cursor: pointer; }
  .mk-footer a.mk-footer-tool:hover, .mk-footer-tool:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
  .mk-footer-tool:focus-visible, .mk-footer a:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
  .mk-footer-tool .icon { width: 1.6rem; height: 1.6rem; }

  /* Staff list */
  .admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
  .admin-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); gap: 1.2rem; align-items: stretch; max-width: 92rem; }
  .admin-way { position: relative; display: grid; gap: .3rem; padding: 1.4rem 1.8rem 1.4rem 4.8rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; }
  .admin-way::before { content: ""; position: absolute; top: 1.6rem; left: 1.6rem; width: 1.7rem; height: 1.7rem; border: 1px solid var(--line-strong); border-radius: 50%; }
  .admin-way.is-chosen { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
  .admin-way.is-chosen::before { border-color: var(--focus); border-width: .5rem; }
  .admin-way:hover { border-color: var(--line-strong); }
  .admin-way span { color: var(--ink-3); font-size: 1.3rem; }
  .admin-row-actions { display: flex; gap: .6rem; }
  /* Which places a box answers for: the path its network dials, beside the address that makes. */
  .serving-table { margin-top: 1rem; }
  .serving-table .field { min-width: 14rem; }
  .serving-url { overflow-wrap: anywhere; font-size: 1.25rem; color: var(--ink-2); user-select: all; }
  /* A rehearsal beside the live service: one row a step, opened out only where the two disagree. */
  .shadow-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem 1.2rem; margin: 0 0 1rem; }
  .shadow-agreement { font-size: 2rem; font-weight: 650; color: var(--warning); }
  .shadow-agreement.is-ok { color: var(--ok-ink); }
  .shadow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
  .shadow-step { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .shadow-step.is-differing { border-left: 3px solid var(--warning); }
  .shadow-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: 1.3rem; }
  .shadow-step-head .hint { margin: 0; }
  .shadow-mark .icon { width: 1.6rem; height: 1.6rem; color: var(--ok); }
  .shadow-step.is-differing .shadow-mark .icon { color: var(--warning); }
  .shadow-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; margin-top: .8rem; }
  .shadow-pair .label { margin-bottom: .3rem; }
  .shadow-reply { margin: .6rem 0 0; padding: .8rem 1rem; border-radius: var(--r-control); background: var(--surface-2); font-family: var(--mono); font-size: 1.25rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
  .shadow-reply.is-ours { background: var(--warning-soft); }
  /* The calls a rehearsal refuses, and the ones it has been told it may send. */
  .shadow-writes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
  .shadow-write { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .4rem 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); font-size: 1.3rem; }
  .shadow-write.is-allowed { border-color: var(--ok-line); background: var(--ok-soft); }
  .shadow-write-mark .icon { width: 1.5rem; height: 1.5rem; color: var(--warning); }
  .shadow-write.is-allowed .shadow-write-mark .icon { color: var(--ok-ink); }
  .shadow-write-call { overflow-wrap: anywhere; font-size: 1.2rem; }
  .shadow-write-state { color: var(--ink-3); white-space: nowrap; }
  @media (max-width: 52rem) { .shadow-write { grid-template-columns: auto minmax(0, 1fr); } }
  /* One network's registration of a sender: its state, why, and a save, stacked in the cell. */
  .sms-registration { display: grid; gap: .4rem; min-width: 16rem; }
  .sms-registration .btn { justify-self: start; }
  .admin-panel.is-form { max-width: 92rem; }
  .callback-who { color: var(--ink-3); font-size: 1.3rem; }
  .admin-templates { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: 1.3rem; }
  .admin-templates code { font-size: 1.2rem; }
  .admin-sub { display: block; margin-top: .2rem; color: var(--ink-3); font-size: 1.3rem; }
  .admin-priority { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .admin-ladder { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 26rem; margin: .8rem 0 0; padding: 0; list-style: none; }
  .admin-ladder li { padding: 0 .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); font-size: 1.15rem; line-height: 1.7; }
  .admin-ladder li.is-reached { border-color: transparent; background: var(--ok-soft); color: var(--ok-ink); }
  .admin-notes { max-width: 36ch; margin: .6rem 0 0; color: var(--ink-2); font-size: 1.3rem; }
  .admin-open { color: inherit; text-decoration: none; }
  .admin-open:hover { text-decoration: underline; }
  /* Features, after Carbon's expandable data table: a feature a row, opening onto the teams that hold it. */
  .flag-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .flag-list > li + li { border-top: 1px solid var(--line); }
  .flag > summary { list-style: none; cursor: pointer; }
  .flag > summary::-webkit-details-marker { display: none; }
  .flag > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
  .flag-row { display: flex; align-items: center; gap: 1.6rem; padding: 1.4rem 1.6rem; }
  .flag-row:hover, .flag[open] > .flag-row { background: var(--surface-2); }
  .flag-caret { flex: none; display: grid; place-items: center; color: var(--ink-3); rotate: -90deg; transition: rotate .12s ease; }
  .flag[open] .flag-caret { rotate: 0deg; }
  .flag-caret .icon { width: 1.6rem; height: 1.6rem; }
  .flag-text { flex: 1; min-width: 0; display: grid; gap: .2rem; }
  .flag-name { font-size: 1.5rem; font-weight: 600; }
  .flag-text .hint { margin: 0; }
  .flag-count { flex: none; color: var(--ink-2); font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  /* Carbon's expanded panel: 48px in from the caret, 16 above and right, 24 below. */
  .flag-teams { padding: 1.6rem 1.6rem 2.4rem 4.8rem; }
  .flag-team { display: flex; align-items: center; gap: 2.4rem; min-height: 4rem; }
  .flag-team + .flag-team { border-top: 1px solid var(--line); }
  .flag-team-name { flex: 1; min-width: 0; overflow: hidden; font-size: 1.4rem; white-space: nowrap; text-overflow: ellipsis; }
  @media (prefers-reduced-motion: reduce) { .flag-caret { transition: none; } }

  /* One request on its own page. */
  .admin-back { color: var(--ink-3); font-size: 1.3rem; }
  .admin-decide { display: flex; align-items: center; gap: 1.6rem; }
  .admin-score { margin: 0; text-align: center; }
  .admin-score .admin-sub { margin: 0; line-height: 1.2; }
  .admin-panel { padding: 2rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .admin-panel-title { margin: 0; font-size: 1.5rem; font-weight: 600; }
  .admin-panel-sub { margin: 2rem 0 .6rem; color: var(--ink-3); font-size: 1.25rem; font-weight: 600; }
  .admin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.6rem; margin: 1.6rem 0 0; }
  .admin-facts dt { color: var(--ink-3); font-size: 1.25rem; }
  .admin-facts dd { margin: .3rem 0 0; font-size: 1.4rem; }
  .admin-quote { max-width: 70ch; margin: 0; padding-left: 1.2rem; border-left: 2px solid var(--line-strong); color: var(--ink-2); font-size: 1.4rem; white-space: pre-line; }
  .admin-list { margin: 0; padding-left: 1.8rem; font-size: 1.4rem; }
  .admin-ladder.is-wide { max-width: none; }
  .pill.is-waiting { background: var(--warning-soft); border-color: var(--warning-line); color: var(--ink); }
  .pill.is-invited { background: var(--router-soft); border-color: var(--router-line); color: var(--router-ink); }
  .pill.is-joined { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-ink); }


  @media (prefers-reduced-motion: reduce) { .mk-nav-menu > summary .icon, .mk-chapter, .mk-story-progress li { transition: none; } }

  @media (max-width: 1080px) {
    .mk-hero-stage { height: 60rem; }
    .mk-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3.2rem; }
    .mk-proof { grid-template-columns: auto minmax(0, 1fr); }
    .mk-status-list { grid-column: 1 / -1; }
    .mk-channel-art { padding-inline: 1.6rem; }
    .mk-stage-art > .node { display: none; }
    .mk-story-body { grid-template-columns: minmax(0, 1fr); }
    .mk-story-phone { display: none; }
    .mk-chapter { min-height: 0; padding: 4.8rem 0 0; }
    .mk-story[data-chapter] .mk-chapter:not(.is-current) { opacity: 1; }
    .mk-chapter-screen { display: flex; align-items: center; gap: 1rem; width: fit-content; max-width: 100%; margin: 0 0 2.4rem; padding: .8rem 1.4rem; background: var(--phone-alert); color: var(--phone-ink); font-family: var(--phone-font); font-size: 1.35rem; line-height: 1.35; box-shadow: 0 12px 30px -18px rgb(var(--shade) / .5); }
    .mk-chapter-screen::before { content: ""; flex: none; width: .8rem; height: .8rem; border-radius: 50%; background: var(--kind); }
    .mk-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 879px) {
    .mk-nav, .mk-sign-in { display: none; }
    .mk-mobile-nav { display: block; }
    .mk-bar { gap: 1.2rem; padding: 0 1.6rem; }
    .mk-actions .mk-nav-link { padding-inline: .8rem; }
    .mk-section { padding: 6.4rem 1.6rem; }
    .mk-hero { gap: 4rem; padding: 4rem 1.6rem 4.8rem; }
    .mk-hero, .mk-head, .mk-panel, .mk-close, .mk-sub-hero, .mk-feature, .mk-feature.is-flipped, .mk-join, .mk-report, .mk-cta-band-inner, .mk-footer-top { grid-template-columns: minmax(0, 1fr); }
    .mk-head { gap: 1.6rem; margin-bottom: 3.2rem; }
    .mk-feature, .mk-panel, .mk-close, .mk-sub-hero { gap: 4rem; }
    .mk-feature.is-flipped > :first-child { order: 0; }
    .mk-hero-stage, .mk-stage { height: 48rem; max-width: 44rem; width: 100%; justify-self: center; }
    .mk-hero-block, .mk-stage-block { inset: 3.2rem 0 3.2rem 4rem; border-radius: 2.4rem; }
    .mk-hero-photo, .mk-stage-photo { right: 1.2rem; width: 58%; border-radius: 2rem; }
    .mk-hero-phone { width: 20rem; }
    .mk-hero-phone .device, .mk-stage-art > .device { zoom: .66; }
    .mk-chip { padding: .5rem 1.2rem .5rem .5rem; gap: .8rem; }
    .mk-chip .kind-icon { width: 2.8rem; height: 2.8rem; padding: .6rem; }
    .mk-chip small { display: none; }
    .mk-chip.is-menu { left: 5.6rem; top: .8rem; }
    .mk-chip.is-input { right: -.4rem; top: 4.8rem; }
    .mk-chip.is-router { left: 20.8rem; bottom: 1.6rem; }
    .mk-chip.is-end { right: 0; bottom: 10.4rem; }
    .mk-stage-art > .mk-callback { right: 0; bottom: 1.6rem; width: auto; padding: 1.6rem; }
    .mk-stage-art > .mk-callback code { font-size: 1.1rem; white-space: normal; }
    .mk-stage-art > .ill-pin { left: 0; right: 0; bottom: 1.6rem; grid-template-columns: minmax(0, 1fr); }
    .mk-stage-art > .ill-pin .ill-terminal { display: none; }
    .mk-stage-art > .ill-pin .ill-pin-phone { right: 1.2rem; bottom: 1.6rem; width: 20rem; }
    .mk-frame-line, .mk-frame-bar .btn, .mk-frame-tabs span:not(.is-on) { display: none; }
    .mk-frame-canvas { padding: 1.6rem; }
    .mk-proof { gap: 2rem; padding: 0 1.6rem; }
    .mk-status-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mk-status-item { padding: 1rem 1.2rem; }
    .mk-status-item b { white-space: normal; font-size: 1.2rem; }
    .mk-channel-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .mk-channel { grid-template-rows: auto auto; grid-row: auto; }
    .mk-channel-list { gap: 4rem; }
    .mk-teams { display: flex; gap: 1.2rem; margin-inline: -1.6rem; padding: 0 1.6rem 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.6rem; scrollbar-width: none; }
    .mk-team { flex: none; width: 70%; scroll-snap-align: start; }
    .mk-tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
    .mk-tab { padding: 1.2rem 1.4rem; }
    .mk-tab span { font-size: 1.4rem; }
    .mk-panel { padding-top: 3.2rem; }
    .mk-art { min-height: 0; padding: 2.4rem 1.6rem; overflow: hidden; border-radius: 2rem; }
    .mk-art .ill-build { width: auto; zoom: 1; }
    .mk-shot { padding: 1.6rem; }
    .mk-shot .sends-stat { padding: 1rem 1.2rem; }
    .mk-controls-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; }
    .mk-cell .pictogram, .mk-controls-row .pictogram, .mk-control-grid .pictogram { width: 3.2rem; height: 3.2rem; margin-bottom: 0; }
    .mk-grid, .mk-control-grid, .mk-plans, .mk-list, .mk-pair, .mk-form-grid, .mk-needs-grid, .mk-timeline, .mk-summary { grid-template-columns: minmax(0, 1fr); }
    .mk-grid, .mk-controls-row { margin-top: 4.8rem; }
    .mk-grid, .mk-controls-row { gap: 3.2rem; }
    .mk-controls-row dt, .mk-control-grid dt { gap: 1.2rem; }
    .mk-plan { padding: 2.4rem; }
    .mk-sub-hero { padding: 4rem 1.6rem 0; }
    .mk-sub-hero.is-plain { grid-template-columns: minmax(0, 1fr); }
    .mk-subnav { margin-top: 4.8rem; }
    .mk-subnav-inner { padding: 0 1.6rem; overflow-x: auto; scrollbar-width: none; }
    .mk-cta-band-inner { padding: 5.6rem 1.6rem; gap: 2.4rem; }
        .mk-swap { grid-template-columns: minmax(0, 1fr); }
    .mk-gantt { grid-template-columns: 9.6rem repeat(8, minmax(0, 1fr)); grid-template-rows: 4.8rem 3.6rem repeat(5, 2.8rem); font-size: 1.1rem; }
    .mk-gantt-row { white-space: normal; line-height: 1.15; gap: .4rem; padding-right: .6rem; }
    .mk-gantt-row .icon { display: none; }
    .mk-gantt-bar { padding: 0 .4rem; font-size: 0; }
    .mk-gantt-week { padding-left: .2rem; font-size: .9rem; letter-spacing: 0; }
    .mk-gantt-switch > span { translate: -78% 0; }
    .mk-swap-side { padding: 2rem; }
    .mk-join-copy { position: static; }
    .mk-status-head { grid-template-columns: minmax(0, 1fr); }
    .mk-status-head .mk-spot-panel { max-width: 28rem; grid-row: 1; }
    .mk-join-copy .mk-spot-panel { max-width: 24rem; margin-bottom: 2.4rem; }
    .mk-form { padding: 2.4rem 1.6rem; border-radius: 2rem; }
    .mk-footer-inner { padding: 5.6rem 1.6rem 0; }
    .mk-footer-top { gap: 4rem; padding-bottom: 4rem; }
    .mk-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem 2.4rem; }
    .ill-build { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; padding: 0; }
    .ill-build .node.ill-node { grid-column: auto; grid-row: auto; margin: 0 !important; }
    .ill-build .node[data-wire="auth_failed"], .ill-wires { display: none; }
    .ill-pin { grid-template-columns: minmax(0, 1fr); }
    .mk-story { padding: 6.4rem 1.6rem 1.6rem; }
    .mk-chapter { gap: 2.4rem; padding-top: 4rem; }
    .mk-chapter-art { padding: 1.6rem; }
    .mk-chapter-art .ill-build { width: auto; zoom: 1; }
    .ill-wf-head { display: none; }
    .ill-wf-row { grid-template-columns: 4.8rem minmax(0, 1fr); }
    .ill-wf-bar { grid-column: 1 / -1; }
    .ill-tally p { gap: 1rem; padding: 1.2rem; font-size: 1.3rem; }
    .ill-tally-number { font-size: 3.6rem; }
    .ill-json { font-size: 1.15rem; }
    .ill-environments { grid-template-columns: minmax(0, 1fr); }
    .ill-traffic .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ill-traffic .funnel-step { grid-template-columns: 8rem minmax(0, 1fr) 2rem; }
    .ill-residency { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .res-zone { padding: 5.2rem 1.6rem 1.6rem; }
    .res-border { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .8rem; padding: 2.4rem 0; }
    .res-border-line { left: -1.6rem; right: -1.6rem; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed rgb(255 255 255 / .4); }
    .res-arrow { display: none; }
    .res-flow.is-in b::before { content: "↓ "; }
    .res-flow.is-out b::before { content: "↑ "; }
    .res-map { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "callers" "ussd" "aggregator" "callbacks" "runtime" "api-link" "api"; }
    .res-link { min-height: 6.4rem; }
    .res-link.is-api .res-line, .res-link.is-ussd .res-line { left: 50%; right: auto; top: .4rem; bottom: .4rem; width: 2px; height: auto; transform: scaleY(var(--t)); transform-origin: top; }
    .res-link.is-api .res-line::before { left: -5px; top: -2px; border: 6px solid transparent; border-bottom: 9px solid var(--line); border-top: 0; }
    .res-link.is-api .res-line::after { left: -5px; right: auto; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--line); border-bottom: 0; }
    .res-link.is-ussd .res-line::before { left: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--line); border-bottom: 0; }
    .res-summary { grid-template-columns: minmax(0, 1fr); }
    .res-link.is-callbacks .res-line { transform-origin: top; }
    .res-link.is-callbacks .res-line::before { top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--line); border-bottom: 0; }
  }
  @media (max-width: 399px) { .mk-actions .theme-toggle { display: none; } }
}
