/* Layout: the page is itself a flow. A full PAD Designer window (Actions pane, canvas, Variables pane)
   in the hero; the KBs as cloud-flow action cards with a parallel branch; on very wide screens two
   fixed side panes: contents (like PAD's Actions pane) and release history (like a run history). */
:root {
  --pad-blue: #096cfd;        /* PAD title bar, sampled from a real capture */
  --pad-blue-ink: #0a57c9;
  --canvas: #f2f2ef;          /* PAD canvas */
  --pane: #f8f8f5;            /* PAD side panes */
  --stage: #e7eaf1;           /* behind the window */
  --card: #ffffff;
  --ink: #1f2328;
  --ink-2: #5b616b;
  --line: #d9dde4;
  --chip-bg: #eaf2ff;
  --chip-line: #9cc1fb;
  --chip-ink: #0a4fb5;
  --loop: #ddf8fb;            /* PAD loop row */
  --loop-line: #9fdfe6;
  --err: #c4314b;
  --err-bg: #fdecef;
  --ok: #107c41;
  --ok-bg: #e6f4ea;
  --bar-track: #e4e8ef;
  /* cloud-designer connector colors, read from make.powerautomate.com's own icons */
  --c-trigger: #0077ff;       /* Manually trigger a flow */
  --c-desktop: #0066ff;       /* Desktop flows */
  --c-http: #709727;          /* HTTP */
  --c-dataverse: #088142;     /* Microsoft Dataverse */
  --c-sharepoint: #036c70;    /* SharePoint */
  --c-variables: #770bd6;     /* Variables */
  --c-dataop: #8c6cff;        /* Data Operation */
  --c-control: #464f59;       /* Control */
  --card-line: #cac8c7;       /* designer card border */
  --tint: 15%;                /* header = connector color at 15% on the card */
  --yes: #dff6dd; --yes-ink: #0e700e;
  --no: #fde7e9; --no-ink: #b10e1c;
  --font: "Segoe UI Variable Text", "Segoe UI", "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .07);
  --max: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pad-blue: #2f7dff; --pad-blue-ink: #8ab8ff;
    --canvas: #1d1f22; --pane: #24272b; --stage: #141619; --card: #2a2d32;
    --ink: #e8eaed; --ink-2: #a5abb5; --line: #3a3f46;
    --chip-bg: #1c2f4d; --chip-line: #3d68a8; --chip-ink: #a9c8ff;
    --loop: #17393d; --loop-line: #2b6b72;
    --err: #ff8a9b; --err-bg: #3d1f26; --ok: #6fd49a; --ok-bg: #18301f;
    --bar-track: #33373d;
    --card-line: #474c53; --tint: 26%;
    --yes: #1d3a1f; --yes-ink: #8fdc8f; --no: #431d22; --no-ink: #ff9aa5;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pad-blue: #2f7dff; --pad-blue-ink: #8ab8ff;
  --canvas: #1d1f22; --pane: #24272b; --stage: #141619; --card: #2a2d32;
  --ink: #e8eaed; --ink-2: #a5abb5; --line: #3a3f46;
  --chip-bg: #1c2f4d; --chip-line: #3d68a8; --chip-ink: #a9c8ff;
  --loop: #17393d; --loop-line: #2b6b72;
  --err: #ff8a9b; --err-bg: #3d1f26; --ok: #6fd49a; --ok-bg: #18301f;
  --bar-track: #33373d;
  --card-line: #474c53; --tint: 26%;
  --yes: #1d3a1f; --yes-ink: #8fdc8f; --no: #431d22; --no-ink: #ff9aa5;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-padding-top: 64px; }
body { background: var(--stage); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
a { color: var(--pad-blue-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pad-blue); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.mono { font-family: var(--font-mono); }
.tbd { display: inline-block; font-size: 11px; font-weight: 600; color: var(--ink-2); border: 1px dashed var(--ink-2); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }

/* ---------- App bar: the PAD title bar and menu ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--pad-blue); }
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--pad-blue); color: #fff; }
.appbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 48px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.menu { display: flex; gap: 2px; flex-wrap: wrap; margin-left: 8px; }
.menu a { color: #fff; text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 4px; }
.menu a:hover { background: rgba(255,255,255,.16); }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.license { font-size: 12px; opacity: .85; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font); padding: 10px 16px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-light { background: #fff; color: #0a4fb5; }
.btn-primary { background: var(--pad-blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pad-blue); }
/* Reddit and LinkedIn in the title bar: labelled like GitHub on wide windows, icon only below 1440px,
   and left to the Community section below 900px, where the bar has no room and would wrap */
@media (max-width: 1439.98px) {
  .btn-social { padding: 10px; }
  .btn-social span { display: none; }
}
@media (max-width: 1279.98px) {
  .license { display: none; }
}
@media (max-width: 899.98px) {
  .btn-social { display: none; }
}
/* Search in the title bar, where Windows apps put it. It is the same search as the Actions pane's: the
   two boxes mirror each other and the results show in the pane. From 1100px the bar is a three-column
   grid (left group | search | right group) with equal side columns, which centres the search in the
   window whenever both sides fit. Below that there is no room, and the pane's own box is right there. */
.top-search { display: none; }
.appbar-left { display: contents; }
@media (min-width: 1100px) {
  .appbar .wrap { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(160px, 340px) minmax(max-content, 1fr); }
  .appbar-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
  .appbar-right { margin-left: 0; justify-self: end; }
  .top-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 4px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; }
  .top-search:focus-within { background: #fff; border-color: #fff; color: #1f2328; }
  .top-search input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font: 14px/1 var(--font); color: inherit; outline: none; }
  .top-search input::placeholder { color: inherit; opacity: .9; }
}
/* while the title-bar box is in use, the pane's box is outlined to show they are one search */
.search.linked { border-color: var(--pad-blue); box-shadow: inset 0 -1px 0 var(--pad-blue); }

/* ---------- Hero ---------- */
.hero .wrap { padding-block: 52px 64px; display: grid; gap: 36px; }
/* one column at every width: headline, then the text, then the buttons */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; container-type: inline-size; }
/* The headline is sized from the column it sits in (cqw), so it stays on one line from laptop widths up:
   the line is about 18em long, and 5.2cqw leaves it a little room. Under about 650px of column it stops
   shrinking at 34px and wraps. The first font-size is for browsers without container units. */
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); font-size: clamp(34px, 5.2cqw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--pad-blue-ink); }
/* the text runs the full width of the column, like the headline; the buttons sit centred under it */
.hero p.lede { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fact { font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.fact b { font-weight: 600; }

/* PAD Designer window: Actions pane | canvas | Variables pane */
.designer { background: var(--canvas); border-radius: 10px; box-shadow: 0 2px 6px rgba(16,24,40,.08), 0 24px 48px rgba(16,24,40,.14); overflow: hidden; border: 1px solid var(--line); min-width: 0; }
.d-title { background: var(--pad-blue); color: #fff; font-size: 12px; display: flex; align-items: center; gap: 14px; padding: 7px 12px; }
.d-title .d-menu { display: flex; gap: 14px; opacity: .95; }
.d-title .d-name { margin-left: auto; margin-right: auto; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-title .dots { display: flex; gap: 10px; opacity: .9; }
.d-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 250px; height: 660px; }
.pane { background: var(--pane); display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.pane.left { border-right: 1px solid var(--line); }
.pane.right { border-left: 1px solid var(--line); }
.pane-head { padding: 12px 14px 8px; display: grid; gap: 8px; }
.pane-head h3 { font-size: 17px; font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font-size: 12.5px; color: var(--ink-2); }
.pane-list { overflow-y: auto; padding: 0 8px 10px; }
.mod { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: 12.5px; padding: 4px 6px; border-radius: 4px; }
.mod:hover { background: var(--card); }
.mod .chev { color: var(--ink-2); font-size: 10px; }
.mod .cnt { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.vgroup { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 10px 6px 4px; display: flex; justify-content: space-between; }
.var { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 12.5px; }
.var .tx { font-family: var(--font-mono); font-size: 11.5px; }
.var .ty { margin-left: auto; color: var(--ink-2); font-size: 11.5px; }
.var-empty { font-size: 12px; color: var(--ink-2); padding: 4px 6px; }
.center { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; position: relative; }
.d-tool { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--pane); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font: 600 12.5px/1 var(--font); border: 0; background: transparent; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--pad-blue); color: #fff; }
.d-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--pad-blue-ink); background: var(--card); border: 1px solid var(--chip-line); border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-count.bad { color: var(--err); border-color: var(--err); }
.d-tabs { display: flex; padding: 0 12px; background: var(--pane); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.d-tabs span { padding: 8px 14px; color: var(--ink-2); }
.d-tabs span.on { color: var(--ink); border-bottom: 2px solid var(--pad-blue); font-weight: 600; }
.d-body { padding: 12px 14px 8px; overflow-y: auto; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr); align-items: start; gap: 8px; }
.row .n { font-size: 12px; color: var(--ink-2); text-align: right; padding-top: 9px; font-variant-numeric: tabular-nums; }
.row .ic { width: 22px; height: 22px; margin-top: 7px; color: var(--ink-2); }
.act { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; min-width: 0; }
.act b { display: block; font-size: 13.5px; font-weight: 600; }
.act span.d { display: block; font-size: 12.5px; color: var(--ink-2); }
.row.in .act { margin-left: 18px; }
.row.loop .act, .row.end .act { background: var(--loop); border-color: var(--loop-line); display: inline-block; }
.chip { display: inline-block; font-size: 11.5px; line-height: 1.5; background: var(--chip-bg); border: 1px solid var(--chip-line); color: var(--chip-ink); border-radius: 999px; padding: 0 7px; margin: 0 1px; white-space: nowrap; }
.q { color: var(--pad-blue-ink); }
.code { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 12.5px; display: grid; gap: 5px; }
.code li { display: grid; grid-template-columns: 26px 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.code .n { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.code .x { width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font: 700 11px/16px var(--font); text-align: center; margin-top: 1px; }
.code code { font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--err-bg); border-bottom: 2px wavy var(--err); padding: 1px 4px; border-radius: 3px; }
.d-status { display: flex; align-items: center; gap: 16px; padding: 7px 12px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--canvas); flex-wrap: wrap; }
.d-status .st { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ok); display: inline-grid; place-items: center; flex: none; }
.dot::after { content: ""; width: 6px; height: 3px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translate(1px, -1px); }
.dot.bad { border-color: var(--err); }
.dot.bad::after { content: "!"; border: 0; transform: none; width: auto; height: auto; color: var(--err); font: 700 10px/1 var(--font); }
.d-caption { font-size: 13px; color: var(--ink-2); text-align: center; margin: 12px 0 0; }

/* The Actions pane is a working lookup: search or open a module, pick an action, read its golden example.
   Data: actions-index.json (built from the KB by tools/build-actions-index.js), loaded on first use. */
.search:focus-within { border-color: var(--pad-blue); box-shadow: inset 0 -1px 0 var(--pad-blue); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-2); opacity: 1; }
.pane-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }
button.mod { width: 100%; border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink); text-align: left; cursor: pointer; }
.mod.head { font-weight: 600; }
.mod.head:hover { background: transparent; }
.acti { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: baseline; width: 100%; border: 0; background: transparent; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--ink); text-align: left; padding: 4px 6px 4px 24px; border-radius: 4px; cursor: pointer; }
.acti:hover { background: var(--card); }
.acti[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.acti .an { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acti .af { font-family: var(--font); font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pane-more { font-size: 11.5px; color: var(--ink-2); padding: 8px 6px; }
/* the action dialog, modelled on PAD's own; it covers the canvas and leaves the pane usable */
.dlg-scrim { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--ink) 24%, transparent); }
.dlg { width: min(580px, 100%); max-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--card); border: 1px solid var(--card-line); border-radius: 8px; box-shadow: 0 10px 32px rgba(16, 24, 40, .3); overflow: hidden; }
.dlg:focus { outline: none; }
.dlg-head { display: flex; align-items: start; gap: 12px; padding: 14px 16px 10px; }
.dlg-head h3 { font-family: var(--font-mono); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.dlg-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); }
.dlg-x { margin-left: auto; flex: none; width: 28px; height: 28px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.dlg-x:hover { background: var(--pane); color: var(--ink); }
.dlg-body { overflow-y: auto; padding: 2px 16px 14px; }
.dlg-sec { margin-top: 12px; }
.dlg-sec h4 { font-family: var(--font); font-size: 12.5px; font-weight: 600; margin: 0 0 6px; }
.dlg-sec p { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-2); }
.dlg-code { margin: 0; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; background: var(--pane); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.form { display: inline-block; margin: 0 6px 6px 0; font: 12px/1.4 var(--font-mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.form:hover { border-color: var(--pad-blue); }
.form[aria-pressed="true"] { border-color: var(--pad-blue); color: var(--pad-blue-ink); font-weight: 600; }
.prow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 64px; gap: 12px; align-items: baseline; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.prow .pn { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.prow .pt { color: var(--ink-2); overflow-wrap: anywhere; }
.prow .pr { color: var(--ink-2); font-size: 11.5px; text-align: right; }
.etok { display: inline-block; margin: 0 6px 6px 0; font: 12px/1.4 var(--font-mono); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--pane); }
.dlg-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--pane); font-size: 12px; color: var(--ink-2); }
.dlg-foot .st { display: inline-flex; align-items: center; gap: 6px; }
.dlg-btns { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dlg-code + p { margin: 6px 0 0; }
.dlg-sec p .chip { font-family: var(--font-mono); }
.dlg .btn { padding: 8px 14px; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .designer[data-anim] .rows > li, .designer[data-anim] .code > li { animation: drop .35s ease-out both; animation-delay: calc(var(--i) * 55ms); }
  @keyframes drop { from { opacity: .2; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
section.band { padding-block: 72px; }
section.band.canvas { background: var(--canvas); }
section.band.card { background: var(--card); }
/* section titles and their text run the full width of the column, like the hero's */
.sec-head { display: grid; gap: 10px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ---------- What's inside: module bar chart ---------- */
/* title and text at full width, then the big count centred under them */
.inside-head { margin-bottom: 28px; }
.inside-head .sec-head { margin-bottom: 0; }
.big { font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--pad-blue-ink); text-align: center; margin-top: 28px; }
.big small { display: block; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 6px; }
.bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 40px; list-style: none; margin: 0; padding: 0; }
.bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13px; padding: 3px 4px; border-radius: 4px; position: relative; cursor: default; }
.bar:hover, .bar:focus-visible { background: var(--pane); outline: none; }
.bar .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .tr { display: block; height: 10px; background: var(--bar-track); border-radius: 0 4px 4px 0; }
.bar .fl { height: 100%; width: var(--w); background: var(--c-desktop); border-radius: 0 4px 4px 0; min-width: 3px; }
.bar .ct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tip { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 4px); background: var(--ink); color: var(--card); font-size: 12px; padding: 5px 9px; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.bar:hover .tip, .bar:focus-visible .tip { opacity: 1; }
.chart-note { font-size: 12.5px; color: var(--ink-2); margin: 18px 0 0; }

/* ---------- The flow of KB cards ---------- */
.flow { display: grid; justify-items: center; }
.node { width: min(820px, 100%); background: var(--card); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--card-line); scroll-margin-top: 72px; }
/* classic designer card: tinted header, solid icon tile, help and menu on the right */
.node header { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 0; min-height: 44px; color: var(--ink); background: color-mix(in srgb, var(--c) var(--tint), var(--card)); border-bottom: 1px solid var(--card-line); }
.node header .tile { width: 44px; align-self: stretch; background: var(--c); display: grid; place-items: center; flex: none; }
.node header h3 { font-size: 15px; font-weight: 500; font-family: var(--font); }
.node header .ver { margin-left: auto; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.hd-tools { display: flex; align-items: center; gap: 12px; color: var(--ink-2); flex: none; }
.hd-tools .help { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #2884f9; color: #2884f9; font: 700 10px/13px var(--font); text-align: center; }
.hd-tools .more { letter-spacing: 2px; font-weight: 700; }
.node header .ver + .hd-tools { margin-left: 0; }
.node header h3 + .hd-tools { margin-left: auto; }
.node .fields { padding: 16px 18px 6px; display: grid; gap: 12px; }
.field { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.field label { font-size: 13px; color: var(--ink-2); }
.field label i { color: var(--err); font-style: normal; }
.field .val { font-size: 14.5px; min-width: 0; }
.field .val.box { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; background: var(--pane); }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.token { font-size: 12.5px; padding: 2px 9px; border-radius: 4px; background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--card)); }
.node footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 18px 14px; font-size: 13px; }
.node footer a { font-weight: 600; text-decoration: none; }
.node footer a:hover { text-decoration: underline; }
.node footer .adv { color: var(--ink-2); }
.connector { display: grid; justify-items: center; height: 56px; position: relative; width: 100%; }
.connector::before { content: ""; width: 2px; height: 100%; background: var(--ink-2); opacity: .55; }
.connector.arrow::after, .split .drop::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--ink-2); opacity: .7; }
.connector .plus { position: absolute; top: 50%; transform: translateY(-60%); width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); font-size: 16px; line-height: 1; }
/* parallel branch */
.branch-wrap { width: min(1180px, 100%); }
.split, .join { position: relative; height: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.split::before, .join::after { content: ""; position: absolute; left: 50%; width: 2px; height: 50%; background: var(--ink-2); opacity: .55; transform: translateX(-1px); }
.split::before { top: 0; }
.join::after { bottom: 0; }
.split .h, .join .h { position: absolute; top: 50%; left: calc((100% - 48px) / 4); right: calc((100% - 48px) / 4); height: 2px; background: var(--ink-2); opacity: .55; }
.split .drop, .join .drop { position: relative; }
.split .drop::before, .join .drop::before { content: ""; position: absolute; left: 50%; width: 2px; height: 50%; background: var(--ink-2); opacity: .55; transform: translateX(-1px); }
.split .drop::before { top: 50%; }
.join .drop::before { top: 0; }
.split .lbl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -125%); font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--canvas); padding: 0 8px; white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; }
.branch { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.branch .node { width: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.branch-tag { font-size: 13px; font-weight: 600; margin-bottom: 10px; padding: 8px 12px; border: 1px solid var(--card-line); border-radius: 2px; }
.branch-tag.no { background: var(--no); color: var(--no-ink); }
.branch-tag.yes { background: var(--yes); color: var(--yes-ink); }
.cond-q { font-family: var(--font-mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cond-q .op { border: 1px solid var(--card-line); background: var(--pane); border-radius: 2px; padding: 3px 10px; font-family: var(--font); }
.end-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* ---------- Videos: feature row ---------- */
.videos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.vids-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; min-width: 0; }
.vid { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.vid:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.thumb { aspect-ratio: 16 / 9; max-width: 100%; position: relative; background: var(--canvas); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--pad-blue); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(9,108,253,.4); }
.vid.feature .thumb .play { width: 76px; height: 76px; }
.thumb .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.thumb.ph { background: repeating-linear-gradient(135deg, var(--canvas) 0 12px, var(--pane) 12px 24px); }
.thumb.ph .ph-rows { position: absolute; inset: 16% 18%; display: grid; gap: 7px; align-content: center; }
.thumb.ph .ph-rows i { display: block; height: 14px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); }
.thumb.ph .ph-rows i:nth-child(2) { margin-left: 18px; background: var(--loop); border-color: var(--loop-line); }
.thumb.ph .ph-rows i:nth-child(3) { margin-left: 18px; }
.vid.small { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
.vid.small .thumb { aspect-ratio: auto; height: 100%; min-height: 140px; }
/* small cards: show the whole 16:9 frame, play button in the corner so it never covers the title */
.vid.small .thumb img { object-fit: contain; }
.vid.small .thumb.fit { background: var(--thumb-bg, var(--canvas)); }
.vid.small .thumb .play { width: 40px; height: 40px; right: 10px; bottom: 10px; }
.vid .meta { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.vid .meta b { font-size: 15.5px; }
.vid.feature .meta b { font-size: 19px; font-family: var(--font-display); }
.vid .meta span { font-size: 13.5px; color: var(--ink-2); }
.vid .meta .k { font-size: 12px; font-weight: 600; color: var(--c); }
.inthis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.inthis span { font-size: 12.5px; color: var(--ink); background: var(--pane); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }
.inthis span em { font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Community as run history ---------- */
.history { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--pane); }
tr:last-child td { border-bottom: 0; }
td.when { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.where { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.where i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); white-space: nowrap; }
.status.pending { color: var(--ink-2); }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: grid; gap: 4px; text-decoration: none; color: inherit; }
.person:hover { border-color: var(--pad-blue); }
.person b { font-size: 15px; }
.person span { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Start ---------- */
/* the four steps as a short cloud flow, left to right */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 0; }
.steps .node { width: 100%; position: relative; overflow: visible; display: grid; grid-template-rows: auto 1fr; }
.steps .node header { min-height: 40px; }
.steps .node header .tile { width: 40px; }
.steps .node header h3 { font-size: 14px; }
.steps .node + .node::before { content: ""; position: absolute; left: -36px; top: 20px; width: 28px; height: 2px; background: var(--ink-2); opacity: .55; }
.steps .node + .node::after { content: ""; position: absolute; left: -10px; top: 15px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--ink-2); opacity: .7; }
.steps .body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.steps b { font-size: 15px; }
.steps span { font-size: 13.5px; color: var(--ink-2); }
.tile .glyph { color: #fff; font: 600 14px/1 var(--font-mono); }
.cmd { margin-top: 20px; background: #16181c; color: #e8eaed; border-radius: 8px; padding: 14px 16px; font-family: var(--font-mono); font-size: 13px; overflow-x: auto; white-space: pre; }
.cmd .p { color: #7fb2ff; }

/* ---------- Check a script ----------
   The KB repo's check-flows.js (robin-check.js, generated by tools/build-checker.js) run on what is typed,
   against actions-index.json. Laid out like the Designer with PAD's Flow checker pane on the right. */
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: 520px; }
.ck-edit { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.ck-tool { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--pane); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ck-tool button { font: 500 12.5px/1 var(--font); padding: 7px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.ck-tool button:hover { border-color: var(--pad-blue); }
.ck-code { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 0; background: var(--card); }
.ck-gutter { overflow: hidden; padding: 10px 0; border-right: 1px solid var(--line); background: var(--pane); font: 12px/20px var(--font-mono); color: var(--ink-2); text-align: right; user-select: none; font-variant-numeric: tabular-nums; }
.ck-gutter div { height: 20px; padding-right: 8px; }
.ck-gutter div.bad { background: var(--err-bg); color: var(--err); font-weight: 700; }
.ck-code textarea { border: 0; margin: 0; padding: 10px 12px; resize: none; background: transparent; color: var(--ink); font: 12.5px/20px var(--font-mono); white-space: pre; overflow: auto; outline: none; tab-size: 4; }
.ck-code textarea:focus-visible { box-shadow: inset 0 0 0 2px var(--pad-blue); }
.ck-code textarea::placeholder { color: var(--ink-2); opacity: 1; }
.ck-pane { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; background: var(--pane); border-left: 1px solid var(--line); }
.ck-list { overflow-y: auto; padding: 0 10px 10px; }
.ck-card { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 8px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-top: 8px; font-size: 12.5px; }
.ck-x { width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font: 700 11px/16px var(--font); text-align: center; margin-top: 1px; }
.ck-card.note .ck-x { background: var(--ink-2); }
.ck-card > :not(.ck-x) { grid-column: 2; }
.ck-card button { justify-self: start; border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
.ck-go { font-weight: 600; color: var(--ink); }
.ck-go:hover, .ck-look:hover { text-decoration: underline; }
.ck-look { color: var(--pad-blue-ink); font-weight: 600; }
.ck-card .m { color: var(--ink-2); overflow-wrap: anywhere; }
.ck-card .h { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Side panes (laptop widths and up) ----------
   Docked like PAD's own panes: flush to the window edges, under the title bar, full height, one line
   between pane and page. The title bar spans the window so its ends sit above the panes.
   1760px and wider: the page keeps its full 1280px column and the panes take the margins.
   1280px to 1759px: there are no margins to spare, so the panes get a fixed width and the page column
   narrows to fit between them (--max). The layout breakpoints at the end of this sheet have a second
   range for these widths, so the column switches layouts by its own width, not the window's. */
:root { --rail-gap: 24px; --rail: min(300px, calc((100vw - var(--max)) / 2 - var(--rail-gap))); }
.rail { display: none; }
@media (min-width: 1280px) {
  .rail { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: fixed; top: calc(env(safe-area-inset-top, 0px) + 48px); bottom: 0; width: var(--rail); background: var(--pane); z-index: 4; overflow: hidden; }
  .rail.left { left: 0; border-right: 1px solid var(--line); }
  .rail.right { right: 0; border-left: 1px solid var(--line); }
  .appbar .wrap { max-width: none; }
}
@media (min-width: 1280px) and (max-width: 1759.98px) {
  :root { --rail: 208px; --max: calc(100vw - 2 * (var(--rail) + var(--rail-gap))); }
  .rail-head { padding: 12px 12px 8px; }
  .rail-foot { padding: 10px 12px; }
  .runs a { gap: 8px; padding: 8px 6px; }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
  :root { --rail: 176px; }
}
.rail-head { padding: 14px 16px 8px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.rail-head h3 { font-size: 16px; font-weight: 600; }
.rail-body { overflow-y: auto; padding: 8px; }
.rail-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.rail-foot a { font-weight: 600; text-decoration: none; }
.toc-group { font-size: 12.5px; font-weight: 600; padding: 8px 8px 4px; display: flex; gap: 6px; color: var(--ink); }
.toc-group .chev { color: var(--ink-2); font-size: 10px; padding-top: 2px; }
.toc a { display: block; font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 5px 8px 5px 26px; border-radius: 4px; }
.toc a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.toc a.on { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.runs a { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 4px; color: inherit; text-decoration: none; }
.runs a:hover { background: var(--card); }
.runs a:hover b { color: var(--pad-blue-ink); }
.runs .dot { margin-top: 3px; }
.runs b { font-size: 13px; }
.runs .dt { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-left: 6px; font-weight: 400; }
.runs p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.runs .sc { font-size: 11.5px; color: var(--ok); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site { background: var(--card); border-top: 1px solid var(--line); }
footer.site .wrap { padding-block: 28px; display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-2); }
footer.site .wrap > :last-child { margin-left: auto; }

/* Each breakpoint's second range is the window width at which the column between the rails is that narrow:
   column = window - 400px (176px rails, up to 1439px) or window - 464px (208px rails, up to 1759px). */
@media (max-width: 1180px), (min-width: 1280px) and (max-width: 1644px) {
  .d-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .pane.right { display: none; }
  .bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px), (min-width: 1280px) and (max-width: 1360px) {
  .videos, .people { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps .node + .node::before { left: 50%; top: -32px; width: 2px; height: 24px; }
  .steps .node + .node::after { left: calc(50% - 5px); top: -10px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--ink-2); border-bottom: 0; }
}
@media (max-width: 860px) {
  .d-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  /* the Actions pane sits above the canvas as a search box; its list opens once the box is used */
  .pane.left { border-right: 0; border-bottom: 1px solid var(--line); }
  .pane.left .pane-list { display: none; max-height: 260px; }
  .pane.left[data-open] .pane-list { display: block; }
  .search input { font-size: 16px; }
  button.mod, .acti { padding-block: 10px; }
  /* the checker stacks: script on top, findings below */
  .ck-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ck-code { height: 320px; }
  .ck-code textarea { font-size: 16px; }
  .ck-pane { border-left: 0; border-top: 1px solid var(--line); max-height: 420px; }
  .d-body { min-height: 380px; }
  .branch { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .branch > div + div::before { content: ""; display: block; width: 2px; height: 40px; margin: 0 auto; background: var(--ink-2); opacity: .55; }
  .split, .join { grid-template-columns: minmax(0, 1fr); height: 48px; }
  .split .h, .join .h, .split .drop + .drop, .join .drop + .drop { display: none; }
  .bars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .menu, .license { display: none; }
  .field { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .d-title .d-menu { display: none; }
  .hd-tools .help { display: none; }
  .vid.small { grid-template-columns: minmax(0, 1fr); }
  .vid.small .thumb { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .bar { grid-template-columns: 120px minmax(0, 1fr) 30px; }
  footer.site .wrap > :last-child { margin-left: 0; }
}

/* ---------- Pages ----------
   The site is a hub (/) plus one page per KB. The title-bar menu marks the page you're on. */
.menu a[aria-current="page"] { background: rgba(255,255,255,.22); }
.toc-pages { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 4px; }
.toc-pages a::after { content: " \2192"; }
.node footer .links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.node footer a.sub { font-weight: 400; color: var(--ink-2); }
.hero.hub .wrap { padding-block: 52px 8px; }


/* ---------- Deployment KB page ---------- */
.facts-c { justify-content: center; }
/* run details: the steps on a canvas, the chosen step's details in a side pane */
.rd-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; background: var(--pane); border-bottom: 1px solid var(--line); font-size: 13px; }
.rd-legend { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.mark { display: inline-block; font: 600 11.5px/1.6 var(--font); padding: 0 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.mark.re { background: var(--ok-bg); color: var(--ok); }
.mark.pr { background: var(--chip-bg); color: var(--chip-ink); }
.mark.me { background: color-mix(in srgb, var(--c-variables) 14%, var(--card)); color: color-mix(in srgb, var(--c-variables) 80%, var(--ink)); }
.mark.un { background: var(--err-bg); color: var(--err); }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); height: 680px; }
.rd-canvas { list-style: none; margin: 0; padding: 24px 20px; overflow-y: auto; display: grid; align-content: start; justify-items: center; background: var(--canvas); }
.rd-canvas li { width: min(420px, 100%); display: grid; justify-items: center; }
.rd-canvas li + li::before { content: ""; width: 2px; height: 22px; background: var(--ink-2); opacity: .55; }
.rstep { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: stretch; gap: 0; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: color-mix(in srgb, var(--c) 8%, var(--card)); border: 1px solid var(--card-line); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; }
.rstep:hover { border-color: var(--pad-blue); }
.rstep[aria-pressed="true"] { outline: 2px solid var(--pad-blue); outline-offset: 1px; }
.rstep .tile { background: var(--c); display: grid; place-items: center; }
.rstep .tx { padding: 8px 10px; display: grid; gap: 1px; min-width: 0; }
.rstep .tx b { font-size: 14px; font-weight: 600; }
.rstep .tx span { font-size: 12.5px; color: var(--ink-2); }
.rstep .dot { align-self: center; justify-self: start; }
.dot.plain { border-color: var(--ink-2); }
.dot.plain::after { display: none; }
.rd-pane { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; padding: 16px 20px 20px; }
.rd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-head h3 { font-size: 18px; font-weight: 600; }
.rd-sum { margin: 8px 0 0; font-size: 14px; }
.rd-sec { margin-top: 16px; }
.rd-sec h4 { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rd-sec p { margin: 0; font-size: 13.5px; }
.rd-pane code, .dc-card code, .path code { font-family: var(--font-mono); font-size: 12px; background: var(--pane); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv > span:first-child { color: var(--ink-2); }
.rd-code { margin: 0 0 8px; font: 12px/1.5 var(--font-mono); background: var(--pane); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
.watch { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.rd-measured, .unsup { border-radius: 4px; padding: 10px 12px; }
.rd-measured { background: color-mix(in srgb, var(--c-variables) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--c-variables) 25%, var(--card)); }
.unsup { background: var(--err-bg); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
.rd-kb { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; text-decoration: none; }
.rd-kb::after { content: " \2192"; }
.rd-kb:hover { text-decoration: underline; }
/* the four paths as the cases of a Switch */
.branch.paths .node + .connector { height: 28px; }
.branch-tag.case { background: var(--pane); color: var(--ink); }
.node.path header h3 { font-weight: 600; }
.node.path .field { grid-template-columns: 150px minmax(0, 1fr); }
.node.path.is-unsup { border-color: var(--err); }
.both { margin: 32px auto 0; max-width: 820px; background: var(--pane); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.both h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.both p { margin: 0; font-size: 14px; color: var(--ink-2); }
.both b { color: var(--ink); }
/* error decoder */
.dc-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); height: 560px; }
.dc-in { padding: 16px; display: grid; align-content: start; gap: 10px; background: var(--card); min-width: 0; }
.dc-in label { font-size: 13px; font-weight: 600; }
.dc-in textarea { width: 100%; resize: vertical; font: 13px/1.5 var(--font-mono); color: var(--ink); background: var(--pane); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; outline: none; }
.dc-in textarea:focus { border-color: var(--pad-blue); box-shadow: inset 0 -1px 0 var(--pad-blue); }
.dc-ex { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.dc-ex button { font: 12px/1.4 var(--font-mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.dc-ex button:hover { border-color: var(--pad-blue); }
.dc-card { gap: 4px 8px; }
.dc-sym { font-weight: 600; overflow-wrap: anywhere; }
.dc-sym b { font-weight: 600; }
.dc-row { color: var(--ink-2); overflow-wrap: anywhere; }
.dc-row i { font-style: normal; font-weight: 600; color: var(--ink); margin-right: 6px; }
.dc-none { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.vid.solo { max-width: 760px; margin: 0 auto; }
@media (max-width: 1180px), (min-width: 1280px) and (max-width: 1644px) {
  .rd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .node.path .field { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 860px) {
  .rd-grid, .dc-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .rd-pane { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .rd-legend { margin-left: 0; }
  .dc-in textarea { font-size: 16px; }
  .dc-grid .ck-pane { border-left: 0; border-top: 1px solid var(--line); max-height: 520px; }
}
@media (max-width: 560px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* On phones the menu gets its own row under the title bar and scrolls sideways, so the KB pages
   stay one tap apart (the rails, which link them on wide screens, are hidden here). */
@media (max-width: 560px) {
  .menu { display: flex; order: 3; width: 100%; margin: 0 0 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .menu a { white-space: nowrap; }
  html { scroll-padding-top: 104px; }
}

/* ---------- Solutions KB page ---------- */
.mark.ut { background: var(--pane); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.45; }
.mark.fa { background: var(--err-bg); color: var(--err); }
.node header .mark { margin-left: auto; }
.node header .mark + .hd-tools { margin-left: 0; }
/* move plan: the path picker in the bar, that path's row of section 1 under it */
.pp-bar .seg { flex: none; }
.pp-info { background: var(--card); border-bottom: 1px solid var(--line); padding: 4px 14px 6px; min-height: 64px; }
.pp-info .kv:last-child { border-bottom: 0; }
.pp-info .kv > span:first-child { white-space: nowrap; }
.pp-info .pane-note { margin: 10px 0; }
/* sync: the hash recipe beside the baselines Condition */
.sync-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sync-grid .node { width: 100%; }
.sync-p { margin: 0; font-size: 14px; }
.sync-grid code, .sync-notes code, .dur-tbl code, .pp-info code { font-family: var(--font-mono); font-size: 12px; background: var(--pane); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; overflow-wrap: anywhere; }
.sync-q { display: grid; gap: 10px; }
.sync-q .field { grid-template-columns: 200px minmax(0, 1fr); align-items: center; }
.sync-q .seg { justify-self: start; }
.seg button:disabled { opacity: .45; cursor: default; }
.sync-tbl table, .dur-tbl table { min-width: 0; }
.sync-tbl td, .sync-tbl th { padding: 8px 12px; font-size: 13.5px; }
.sync-tbl tr.on td { background: var(--chip-bg); color: var(--chip-ink); font-weight: 600; }
.sync-tbl tr.on td:first-child { box-shadow: inset 3px 0 0 var(--pad-blue); }
.sync-out { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 22px; }
.sync-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.sync-notes .both { margin: 0; max-width: none; }
.dur-tbl { max-width: 820px; margin: 0 auto; }
.dur-tbl td.when { white-space: normal; }
@media (max-width: 860px) {
  .sync-grid, .sync-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sync-q .field { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pp-bar .seg button { padding: 7px 9px; }
}
