/* GENERATED by scripts/write_peer_styles.mjs — do not edit here.
   Source: design-system/base.css + peer.css + themes/demo-powerflow.css */

/* ==========================================================================
   CONTINUITY ECOSYSTEM DESIGN SYSTEM — base layer
   Shared by the coordinator and the four independent peer sites.
   GENERATED into each app's styles.css by scripts/write_peer_styles.mjs.
   Edit design-system/base.css + design-system/themes/*.css, then re-run.
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/fonts/inter-var-latin.woff2") format("woff2-variations"),
       url("./assets/fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  /* Core palette */
  --paper: #F8F9F7;
  --surface: #FFFFFF;
  --surface-2: #F3F5F7;
  --ink: #111827;
  --ink-2: #344054;
  --muted: #667085;
  --line: #E9EDF2;
  --line-strong: #D5DBE3;
  --brand: #4263EB;
  --navy: #0B1220;
  --navy-2: #121B2E;
  --navy-line: #24304A;

  /* Semantic */
  --ok: #067647;
  --ok-bg: #ECFDF3;
  --ok-line: #ABEFC6;
  --warn: #B54708;
  --warn-bg: #FFFAEB;
  --warn-line: #FEDF89;
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --danger-line: #FECDCA;
  --info: #175CD3;
  --info-bg: #EFF8FF;
  --info-line: #B2DDFF;

  /* Site accent — overridden per theme */
  --accent: var(--brand);
  --accent-ink: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, white);
  --accent-line: color-mix(in srgb, var(--accent) 28%, white);
  --accent-strong: color-mix(in srgb, var(--accent) 82%, black);
  --accent-hover: color-mix(in srgb, var(--accent) 84%, black);
  --hero-bg: var(--navy);
  --hero-ink: #F5F7FB;
  --hero-muted: #A6B0C3;

  /* Type */
  --font: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-display: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
  --fs-h2: clamp(1.45rem, 1.15rem + 1vw, 1.95rem);
  --fs-h3: 1.0625rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  /* Space & shape */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -6px rgba(16, 24, 40, 0.08);
  --shadow-3: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 48px -12px rgba(16, 24, 40, 0.16);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--paper); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; color: inherit; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.034em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; font-weight: 620; }
p { margin: 0; }
a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 0.08em 0.38em; border-radius: 6px; overflow-wrap: anywhere; }
small { font-size: var(--fs-xs); color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, white); }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container, .shell { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--s-8); }
.section-tight { padding-block: var(--s-7); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-6); }
.section-head > div { max-width: 640px; }
.section-head p { color: var(--muted); margin-top: var(--s-3); font-size: 1.0625rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow.plain::before { display: none; }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.grid { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.header-bar { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-lockup svg { flex: none; }
.brand-name { display: block; font-weight: 680; letter-spacing: -0.02em; font-size: 1.02rem; line-height: 1.1; }
.brand-domain { display: block; font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 520;
  padding: 8px 12px; border-radius: var(--r-pill);
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a { white-space: nowrap; }
@media (max-width: 1560px) { .brand-domain { display: none; } .site-nav { gap: 2px; } .site-nav a { padding: 8px 10px; } }
@media (max-width: 1240px) { .site-nav { display: none; } }
.site-nav a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.header-meta { display: flex; align-items: center; gap: var(--s-3); }

/* ---------- Buttons ---------- */
.btn, .cta-btn, .approve-btn, .ghost-btn, .mini-btn, .primary-btn, .secondary-btn {
  --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font: 600 var(--fs-sm)/1 var(--font); letter-spacing: -0.005em;
  color: var(--btn-ink); background: var(--btn-bg);
  border: 1px solid var(--btn-line); border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-1);
}
.btn:hover, .ghost-btn:hover, .mini-btn:hover, .secondary-btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-strong)); }
.btn:active, .cta-btn:active, .approve-btn:active, .ghost-btn:active, .mini-btn:active, .primary-btn:active, .secondary-btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible, .cta-btn:focus-visible, .approve-btn:focus-visible, .ghost-btn:focus-visible, .mini-btn:focus-visible, .primary-btn:focus-visible, .secondary-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary, .cta-btn, .primary-btn {
  --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-line: transparent;
  box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover, .cta-btn:hover, .primary-btn:hover { --btn-bg: var(--accent-hover, var(--accent-strong)); }
.btn-dark, .approve-btn { --btn-bg: var(--ink); --btn-ink: #fff; --btn-line: transparent; }
.btn-dark:hover, .approve-btn:hover { --btn-bg: #000; }
.btn-ghost, .ghost-btn { --btn-bg: transparent; box-shadow: none; }
.btn-sm, .mini-btn { min-height: 34px; padding: 0 12px; font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 0.98rem; }
.btn[disabled], .cta-btn[disabled], .approve-btn[disabled], .ghost-btn[disabled], .mini-btn[disabled], .primary-btn[disabled], .secondary-btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; opacity: 1; --btn-bg: var(--surface-2); --btn-ink: #98A2B3; --btn-line: var(--line); box-shadow: none; transform: none;
}
.btn[aria-busy="true"]::after, .cta-btn[aria-busy="true"]::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: ds-spin .7s linear infinite;
}
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Form fields ---------- */
label, .field-label, .input-label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
input[type="text"], input[type="url"], input[type="email"], input[type="password"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 12px 14px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { line-height: 1.55; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #B8C1CD; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }

/* ---------- Cards ---------- */
.card, .panel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--shadow-1);
}
.card-lg { padding: var(--s-6); }
.card-head, .panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-4); flex-wrap: wrap; }
.card-head h2, .panel-header h2 { font-size: 1.15rem; letter-spacing: -0.018em; }
.panel-sub, .card-sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; max-width: 70ch; }
.card-interactive { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card-interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }

/* ---------- Badges & chips ---------- */
.badge, .status-chip, .mono-tag, .pill-badge, .spec-pill, .mode-pill, .inv-tag, .state-tag, .pareto-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.no-dot::before { display: none; }
.badge-ok, .status-chip { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.badge-info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-line); }
.badge-demo, .pill-badge { background: var(--surface); color: var(--muted); border: 1px dashed var(--line-strong); }
.mono-tag { font-family: var(--mono); font-weight: 500; font-size: 0.7rem; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.notice-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; margin-top: 1px; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); color: #05603A; }
.notice-ok .notice-icon { background: var(--ok); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: #93370D; }
.notice-warn .notice-icon { background: var(--warn); }
.notice-info { background: var(--info-bg); border-color: var(--info-line); color: #194185; }
.notice-info .notice-icon { background: var(--info); }

/* Live region feedback that only shows when filled */
.feedback:empty { display: none; }
.feedback {
  display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s-4);
  padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 520;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-strong);
  animation: ds-rise .35s var(--ease);
}
.feedback::before { content: "●"; font-size: 9px; line-height: 2; }

/* ---------- Definition list ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0; }
.spec-grid > div { background: var(--surface); padding: 14px 16px; }
.spec-grid dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.spec-grid dd { margin: 0; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }

/* ---------- Timeline / stepper ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: tl; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  counter-increment: tl; content: counter(tl);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 650; background: var(--surface); color: var(--muted); border: 1.5px solid var(--line-strong);
  position: relative; z-index: 1; transition: all .3s var(--ease);
}
.timeline li::after { content: ""; position: absolute; left: 13.25px; top: 30px; bottom: 2px; width: 1.5px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline .tl-title { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); line-height: 28px; }
.timeline .tl-desc { font-size: var(--fs-xs); color: var(--muted); margin-top: -2px; }
.timeline li[data-state="done"]::before { content: "✓"; background: var(--ok); color: #fff; border-color: var(--ok); }
.timeline li[data-state="done"]::after { background: var(--ok); }
.timeline li[data-state="current"]::before { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.timeline li[data-state="current"] .tl-title::after { content: " · in progress"; color: var(--accent-strong); font-weight: 500; }
.timeline li[data-state="todo"] .tl-title { color: var(--muted); }
.timeline li[data-state="blocked"]::before { content: "!"; background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }

/* Horizontal stepper */
.stepper { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; counter-reset: st; }
.stepper li { position: relative; padding-top: 40px; padding-right: 12px; }
.stepper li::before {
  counter-increment: st; content: counter(st);
  position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 650;
  background: var(--surface); color: var(--muted); border: 1.5px solid var(--line-strong); z-index: 1;
  transition: all .35s var(--ease);
}
.stepper li::after { content: ""; position: absolute; top: 13.5px; left: 34px; right: 6px; height: 1.5px; background: var(--line-strong); transition: background .35s; }
.stepper li:last-child::after { display: none; }
.stepper .st-title { font-weight: 620; font-size: var(--fs-sm); line-height: 1.25; display: block; }
.stepper .st-desc { font-size: var(--fs-xs); color: var(--muted); display: block; margin-top: 4px; }
.stepper li[data-state="done"]::before { content: "✓"; background: var(--ok); color: #fff; border-color: var(--ok); }
.stepper li[data-state="done"]::after { background: var(--ok); }
.stepper li[data-state="current"]::before { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.stepper li[data-state="todo"] .st-title { color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
.data-table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, white); }
.data-table td strong { color: var(--ink); }

/* ---------- Tabs ---------- */
.tablist { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: none; border: 0; background: transparent; color: var(--muted); font: 600 var(--fs-sm)/1 var(--font);
  padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer; min-height: 38px; transition: box-shadow .15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active, .tab-btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.tab-panel { padding-top: var(--s-5); animation: ds-fade .3s var(--ease); }

/* ---------- Artifact links ---------- */
.artifact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.artifact-links a, .artifact-chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2);
  text-decoration: none; padding: 7px 11px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s;
}
.artifact-links a::before, .artifact-chip::before { content: "{ }"; color: var(--accent); font-weight: 700; font-size: 0.7rem; }
.artifact-links a:hover, .artifact-chip:hover { border-color: var(--accent-line); color: var(--accent-strong); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-7); margin-top: var(--s-7); color: var(--muted); font-size: var(--fs-sm); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: start; }
.policy-note, .disclosure-footer { font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   Open Agentic Web runtime skin (#agent-app, ns-*)
   ========================================================================== */
.assistant-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--shadow-2); }
.assistant-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }
.status-line, .runtime-status-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: var(--s-4) 0 0;
  font-size: var(--fs-xs); font-weight: 520; color: var(--muted);
  padding: 8px 12px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line);
}
.status-line:empty, .runtime-status-pill:empty { display: none; }
.status-line::before, .runtime-status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: ds-pulse 1.6s ease-in-out infinite; }
#agent-app {
  --ns-font: var(--font);
  --ns-bg: var(--surface);
  --ns-fg: var(--ink);
  --ns-primary: var(--accent);
  --ns-accent: var(--accent);
  --ns-border: var(--line);
  --ns-panelbg: var(--surface-2);
  --ns-msgbg: var(--surface-2);
  --ns-muted: var(--muted);
  --ns-header-pad: 0 0 12px;
  color: var(--ink);
  margin-top: var(--s-5);
}
.assistant-panels { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s-4); margin-top: var(--s-4); }
#agent-app.ns-composed-app [data-ns-slot="chat"] { height: 620px; }
#agent-app .ns-chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
#agent-app .ns-header { flex-wrap: wrap; background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); }
#agent-app .ns-header .ns-brand, #agent-app .ns-header h3 { color: var(--ink); letter-spacing: -0.01em; }
#agent-app .ns-msg { overflow-wrap: break-word; border-radius: 14px; line-height: 1.55; }
#agent-app .ns-msg a { display: inline-block; padding: 4px 2px; min-height: 24px; }
#agent-app .ns-input { border-radius: var(--r-md); }
#agent-app .ns-send { border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 600; }
#agent-app .ns-agents { border-radius: var(--r-lg); background: var(--surface-2); }
#agent-app .ns-anode { border-radius: var(--r-md); background: var(--surface); }
#agent-app .ns-settings { background: var(--surface); color: var(--ink); border-radius: var(--r-md); border: 1px solid var(--line); padding: 12px 16px; margin-top: var(--s-4); }
#agent-app .ns-settings summary, #agent-app .ns-settings-body, #agent-app .ns-settings-body label { color: var(--ink); margin: 4px 0; font-weight: 500; }
#agent-app .ns-settings summary { cursor: pointer; font-weight: 600; }
#agent-app .ns-key-required-hint, #agent-app .ns-setup-warn { color: var(--warn) !important; font-weight: 600; }
#agent-app .ns-devtoggle:not(.on) { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); }
#agent-app .ns-devtoggle:not(.on):hover, #agent-app .ns-modal-close:hover { background: transparent; }
#agent-app input[type="checkbox"], #agent-app input[type="radio"] { width: auto; min-height: 0; }
#agent-app button { margin: 0; }
#agent-app .ns-w-label { font-family: inherit; }
#agent-app .ns-widget label { margin: 0; }
#agent-app .ns-w-radio label, #agent-app .ns-w-multi label, #agent-app .ns-w-toggle { font-weight: 400; }
#agent-app .ns-w-toggle { font-size: 13px; }
#agent-app .ns-w-choice { color: var(--ns-fg); }
#agent-app .ns-w-choice:disabled:hover { background: #fafbfc; }
#agent-app .ns-consent { background: var(--warn-bg); color: var(--ink); border-radius: var(--r-md); }
#agent-app .ns-msgs:has(.ns-consent-actions) > .ns-turn-status { display: none; }
#agent-app .ns-llmbadge.mock { color: #78350f; background: #fef3c7; border: 1px solid #d97706; }
#agent-app .ns-consent-actions { flex-wrap: wrap; }
#agent-app .ns-consent-actions button { white-space: nowrap; }

/* Bound review dialog (site.js) */
body > dialog h2 { margin: 0 0 12px; font: 650 1.25rem/1.25 var(--font); letter-spacing: -0.02em; }
body > dialog button { margin-right: 8px; }
.assistant-review {
  max-width: 680px; width: min(92%, 680px); max-height: 86vh; overflow: auto;
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px;
  font: 15px/1.55 var(--font); background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(16, 24, 40, 0.45);
}
.assistant-review[open] { animation: ds-pop .28s var(--ease); }
.assistant-review::backdrop { background: rgba(11, 18, 32, 0.55); backdrop-filter: blur(4px); }
.assistant-review dl { display: grid; grid-template-columns: fit-content(40%) 1fr; gap: 8px 18px; margin: 16px 0; padding: 16px; background: var(--surface-2); border-radius: var(--r-md); }
.assistant-review dt { font-weight: 600; color: var(--muted); font-size: var(--fs-sm); }
.assistant-review dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.assistant-review details { margin: 12px 0; }
.assistant-review pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); padding: 12px; border-radius: var(--r-sm); font-size: 0.8rem; }
.assistant-review button { min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; border: none; font-family: inherit; }
.assistant-review .assistant-decline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }

/* ---------- Motion ---------- */
@keyframes ds-spin { to { transform: rotate(360deg); } }
@keyframes ds-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ds-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ds-dash { to { stroke-dashoffset: -24; } }
@keyframes ds-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.reveal-armed { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-armed.is-in { opacity: 1; transform: none; }
.is-updated { animation: ds-flash .8s var(--ease); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #eef1f4 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: ds-shimmer 1.4s ease infinite; border-radius: var(--r-sm); min-height: 14px; }
@keyframes ds-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal-armed { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
}
@media (max-width: 860px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .assistant-panels { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .stepper { grid-auto-flow: row; grid-auto-columns: auto; gap: 14px; }
  .stepper li { padding: 0 0 0 42px; min-height: 28px; }
  .stepper li::after { display: none; }
  .section { padding-block: var(--s-7); }
}
@media (max-width: 600px) {
  .container, .shell { width: min(100% - 28px, var(--container)); }
  .cols-4 { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .card, .panel-card { padding: var(--s-4); border-radius: var(--r-md); }
  .assistant-shell { padding: var(--s-4); border-radius: var(--r-lg); }
  .btn-row > * { flex: 1 1 auto; }
  .header-bar { min-height: 60px; gap: var(--s-3); }
  .brand-domain { display: none; }
  #agent-app.ns-composed-app [data-ns-slot="chat"] { height: 560px; }
  .assistant-review dl { grid-template-columns: 1fr; gap: 2px; }
  .assistant-review dd { margin-bottom: 8px; }
}

/* ---------- Shared Night / Dark Theme Foundation ---------- */
html[data-theme="dark"] {
  --paper: #0A0F1C;
  --surface: #111827;
  --surface-2: #172033;
  --ink: #F3F5F9;
  --ink-2: #CBD2DE;
  --muted: #98A2B3;
  --line: #222D42;
  --line-strong: #2E3A52;
  --accent-soft: #18224A;
  --accent-line: #2B3A7A;
  --accent-strong: #9DB0FF;
  --accent-hover: color-mix(in srgb, var(--accent) 84%, black);
  --ok: #6CE9A6;
  --ok-bg: #0D2A1F;
  --ok-line: #1C5A41;
  --warn: #FDB022;
  --warn-bg: #2B1F0B;
  --warn-line: #5A4115;
  --info: #84CAFF;
  --info-bg: #0F2140;
  --info-line: #1E3D73;
  --danger: #FDA29B;
  --danger-bg: #2D1215;
  --danger-line: #5C2228;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 28px -6px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 4px 10px rgba(0, 0, 0, 0.4), 0 28px 56px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
[data-theme="dark"] code { background: #1B2540; border-color: var(--line-strong); color: var(--ink); }
[data-theme="dark"] .site-header, [data-theme="dark"] .site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .btn-dark:not([disabled]), [data-theme="dark"] .approve-btn:not([disabled]) {
  --btn-bg: #F3F5F9;
  --btn-ink: #0A0F1C;
}
[data-theme="dark"] input:hover, [data-theme="dark"] select:hover, [data-theme="dark"] textarea:hover {
  border-color: #475569;
}
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2398A2B3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="dark"] .notice-icon { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); }
[data-theme="dark"] .notice-ok { color: var(--ok); }
[data-theme="dark"] .notice-ok .notice-icon { background: #059669; color: #fff; border: 0; }
[data-theme="dark"] .notice-warn { color: var(--warn); }
[data-theme="dark"] .notice-warn .notice-icon { background: #D97706; color: #fff; border: 0; }
[data-theme="dark"] .notice-info { color: var(--info); }
[data-theme="dark"] .notice-info .notice-icon { background: #2563EB; color: #fff; border: 0; }
[data-theme="dark"] .timeline li[data-state="done"]::before,
[data-theme="dark"] .stepper li[data-state="done"]::before {
  background: var(--ok);
  color: #052E1C;
  border-color: var(--ok);
}
[data-theme="dark"] .data-table tbody tr:hover { background: #151F33; }
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line-strong) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
}
[data-theme="dark"] #agent-app {
  --ns-bg: var(--surface);
  --ns-fg: var(--ink);
  --ns-primary: var(--accent);
  --ns-accent: var(--accent);
  --ns-border: var(--line-strong);
  --ns-panelbg: var(--surface-2);
  --ns-msgbg: var(--surface-2);
  --ns-muted: var(--muted);
}
[data-theme="dark"] #agent-app .ns-anode,
[data-theme="dark"] #agent-app .ns-widget,
[data-theme="dark"] #agent-app .ns-tbox,
[data-theme="dark"] #agent-app .ns-modal-card {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
[data-theme="dark"] #agent-app .ns-w-choice,
[data-theme="dark"] #agent-app .ns-mact,
[data-theme="dark"] #agent-app .ns-input,
[data-theme="dark"] #agent-app .ns-settings-body input,
[data-theme="dark"] #agent-app .ns-settings-body select {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
}
[data-theme="dark"] #agent-app .ns-w-choice:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
[data-theme="dark"] #agent-app .ns-w-choice:disabled:hover { background: var(--surface-2); }
[data-theme="dark"] #agent-app .ns-key-help > a,
[data-theme="dark"] #agent-app .ns-w-cmeta { color: var(--accent-strong); }
[data-theme="dark"] #agent-app .ns-key-providers a {
  background: var(--surface-2);
  color: var(--accent-strong);
  border-color: var(--line-strong);
}
[data-theme="dark"] #agent-app .ns-key-providers a small { color: var(--ink-2); }
[data-theme="dark"] #agent-app .ns-hint.warn,
[data-theme="dark"] #agent-app .ns-consent-actions button.ghost {
  color: var(--warn);
  border-color: var(--warn-line);
}
[data-theme="dark"] #agent-app .ns-consent {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--ink);
}
[data-theme="dark"] #agent-app .ns-consent-req { color: var(--ink-2); }
[data-theme="dark"] #agent-app .ns-consent-done { color: var(--ok); }
[data-theme="dark"] #agent-app .ns-llmbadge.mock { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
[data-theme="dark"] #agent-app .ns-llmbadge.real { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
[data-theme="dark"] #agent-app .ns-llmbadge.pending { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
[data-theme="dark"] #agent-app .ns-llmbadge.error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }

@media print {
  .site-header, .skip-link, .assistant-shell, .outcome-panel, #live-wall, .btn-row, .workspace-tools, .scenario-strip { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .hero { background: #fff !important; color: #000 !important; padding: 12px 0 !important; border-bottom: 2px solid #000; }
  .hero h1, .hero h1 span, .hero-sub, .hero-lead { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; }
  .card, .panel-card { box-shadow: none !important; border: 1px solid #bbb !important; break-inside: avoid; }
  .reveal-armed { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Peer site layer — shared layout for MoveCo, PermitFlow, HomeConnect, PowerFlow
   ========================================================================== */

.coord-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  font-size: var(--fs-xs); font-weight: 600; text-decoration: none; color: var(--ink);
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.coord-link:hover { border-color: var(--accent); box-shadow: var(--ring); }
.coord-link .coord-dot { width: 18px; height: 18px; border-radius: 6px; background: #0B1220; display: grid; place-items: center; }
.coord-link .coord-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34D399; }

/* Hero */
.peer-hero { position: relative; padding: var(--s-8) 0 var(--s-7); overflow: hidden; }
.peer-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, var(--accent-2, var(--accent)) 10%, transparent), transparent 70%);
}
.peer-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--s-7); align-items: center; }
.peer-hero h1 { font-size: var(--fs-display); letter-spacing: -0.045em; line-height: 1.02; margin: var(--s-4) 0 var(--s-4); max-width: 13ch; }
.peer-hero .lead { max-width: 48ch; }
.peer-hero .btn-row { margin-top: var(--s-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: var(--s-6); color: var(--muted); font-size: var(--fs-xs); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 800; }

/* Record card — the customer's current booking */
.record-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-3); overflow: hidden;
}
.record-top { padding: 22px 24px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); }
.record-kicker { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.record-ref { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); margin-top: 4px; }
.record-title { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.015em; margin-top: 4px; }
.record-body { padding: 22px 24px 24px; display: grid; gap: 18px; }
.record-when { display: flex; gap: 16px; align-items: center; }
.record-when .date-tile { width: 64px; height: 70px; }
.record-when strong { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.record-when span { color: var(--muted); font-size: var(--fs-sm); }
.record-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.record-fact { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.record-fact dt { font-size: var(--fs-xs); color: var(--muted); }
.record-fact dd { margin: 2px 0 0; font-weight: 640; font-size: 0.95rem; }
.record-hold { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); font-size: var(--fs-sm); font-weight: 520; }
.record-hold::before { content: "⏱"; }
.record-foot { padding: 12px 24px; background: var(--surface-2); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* Reserve the space the JS-rendered card and choices will take (avoids layout shift). */
.state-box { min-height: var(--record-min-h, 480px); }
[id$="-choices"] { min-height: var(--choices-min-h, 204px); }

/* Date tile */
.date-tile {
  flex: none; width: 56px; height: 62px; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 1px;
  background: var(--surface); border: 1px solid var(--line-strong); text-align: center; line-height: 1;
}
.date-tile span { font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date-tile strong { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 2px 0; }
.record-when .date-tile { background: var(--accent); border-color: transparent; }
.record-when .date-tile span, .record-when .date-tile strong { color: #fff; }

/* How it works */
.journey { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--shadow-1); }
.journey-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.journey-head h2 { font-size: 1.2rem; }

/* Workspace */
.work-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: var(--s-5); align-items: start; }
.choice-set { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.choice-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 0;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer;
  transition: border-color .15s, box-shadow .2s var(--ease), transform .15s var(--ease);
}
.choice-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.choice-card:has(input:checked) .date-tile { background: var(--accent); border-color: var(--accent); }
.choice-card:has(input:checked) .date-tile span, .choice-card:has(input:checked) .date-tile strong { color: #fff; }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice-card::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface); transition: all .15s;
}
.choice-card:has(input:checked)::after { border: 5px solid var(--accent); }
.choice-body { display: grid; gap: 3px; min-width: 0; flex: 1; padding-right: 22px; }
.choice-title { font-weight: 640; letter-spacing: -0.012em; font-size: 0.98rem; color: var(--ink); }
.choice-meta { font-size: var(--fs-sm); color: var(--muted); }
.choice-note { font-size: var(--fs-xs); color: var(--accent-strong); font-weight: 560; }
.choice-side { display: grid; justify-items: end; gap: 6px; padding-right: 34px; text-align: right; }
.choice-price { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.controls-stack { display: grid; gap: var(--s-4); }
.native-select { display: none; } /* shown by <noscript> when JS is off */
.action-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: var(--s-4); margin-top: var(--s-2); border-top: 1px solid var(--line); }
.action-bar .hint { margin: 0; flex: 1 1 220px; }

/* Activity log */
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.log-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: var(--fs-sm); padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); animation: ds-rise .35s var(--ease); }
.log-item time { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); padding-top: 2px; }
.log-item .badge { grid-column: 2; justify-self: start; }
.log-item.verified { background: var(--ok-bg); }
.log-empty { font-size: var(--fs-sm); color: var(--muted); padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); text-align: center; }

/* Details & developers */
.details-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.dev-card { background: var(--hero-bg); color: var(--hero-ink); border: 0; }
.dev-card h3 { color: #fff; }
.dev-card p { color: var(--hero-muted); font-size: var(--fs-sm); margin: 8px 0 16px; }
.dev-card .artifact-links a { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #E4E9F2; }
.dev-card .artifact-links a:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.demo-disclosure { margin-top: var(--s-4); }

/* Assistant */
.assistant-intro { display: flex; justify-content: space-between; gap: var(--s-5); align-items: flex-start; flex-wrap: wrap; }
.assistant-intro p { color: var(--muted); max-width: 60ch; margin-top: 8px; }
.peer-assistant-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.peer-prompts-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 8px; }
.peer-prompt-chip { font-size: var(--fs-xs); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.peer-prompt-chip:hover { border-color: var(--accent); background: var(--surface); }

@media (max-width: 960px) {
  .peer-hero-grid, .work-grid, .details-grid { grid-template-columns: 1fr; }
  .peer-hero { padding-top: var(--s-7); }
}
@media (max-width: 600px) {
  .peer-hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .record-facts { grid-template-columns: 1fr 1fr; }
  .choice-card { align-items: flex-start; padding: 14px; gap: 12px; }
  .choice-side { padding-right: 0; justify-items: start; text-align: left; }
  .choice-card { flex-wrap: wrap; }
  .choice-side { width: 100%; grid-auto-flow: column; justify-content: start; padding-left: 68px; }
  .journey { padding: var(--s-4); }
  .header-meta .pill-badge { display: none; }
}

/* Compact embed view (embed.html), framed by the coordinator's live provider wall */
.is-embed body { background: var(--surface); overflow: hidden; }
.embed-main { padding: 0; }
.is-embed .state-box { min-height: 0; }
.is-embed .record-card { border: 0; border-radius: 0; box-shadow: none; }
.is-embed .record-top { padding: 14px 16px 12px; }
.is-embed .record-body { padding: 14px 16px; gap: 12px; }
.is-embed .record-title { font-size: .95rem; }
.is-embed .record-kicker { display: none; }
.is-embed .record-top .badge { font-size: .66rem; padding: 5px 8px; }
.is-embed .route, .is-embed .signal, .is-embed .meter-grid, .is-embed .record-facts, .is-embed .record-foot { display: none; }
.is-embed .record-when .date-tile { width: 52px; height: 58px; }
.is-embed .record-when strong { font-size: 1rem; }
.is-embed .feedback { margin: 0 16px 14px; font-size: var(--fs-xs); background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
[data-theme="dark"] .coord-link .coord-dot { border: 1px solid var(--line-strong); }

/* Phone header: the coordinator link stays on one line. */
.coord-link { white-space: nowrap; }
@media (max-width: 480px) { .header-meta { gap: 6px; } .header-meta [data-theme-toggle] { font-size: 0; gap: 0; padding-inline: 10px; } .header-meta [data-theme-toggle] span { font-size: 14px; } .brand-name { font-size: .95rem; } }
/* Below 1240px the page nav becomes a scrollable second row instead of disappearing. */
@media (max-width: 1240px) {
  .site-header .header-bar { flex-wrap: wrap; row-gap: 0; }
  .site-header .site-nav { display: flex; order: 3; width: 100%; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
  .site-header .site-nav::-webkit-scrollbar { display: none; }
  .site-header .site-nav a { padding: 6px 10px; }
}

/* PowerFlow Energy — contemporary energy, trust. Deep green + mint + navy. */
:root {
  --record-min-h: 524px;
  --choices-min-h: 204px;
  --accent: #0E6B4D;
  --accent-2: #34D399;
  --accent-strong: #0A4F39;
  --accent-soft: #ECF7F2;
  --accent-line: #B9E3D1;
  --hero-bg: #0A1A1F;
  --paper: #F6F8F6;
}
.peer-hero h1 em { font-style: normal; color: var(--accent); }
.meter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.meter-tile { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.meter-tile dt { font-size: var(--fs-xs); color: var(--muted); }
.meter-tile dd { margin: 6px 0 0; font-weight: 650; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #98A2B3; box-shadow: 0 0 0 3px rgba(152,162,179,.18); flex: none; }
.led.on { background: #12B76A; box-shadow: 0 0 0 3px rgba(18,183,106,.18); }
.led.wait { background: #F79009; box-shadow: 0 0 0 3px rgba(247,144,9,.18); }
.no-data { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(16,24,40,.018) 10px 20px); }
.no-data svg { flex: none; }
.no-data strong { display: block; font-size: var(--fs-sm); }
.no-data span { font-size: var(--fs-xs); color: var(--muted); }
.choice-card:has(input:checked) { box-shadow: 0 0 0 4px rgba(14, 107, 77, .12); }
@media (max-width: 600px) { .meter-grid { grid-template-columns: 1fr 1fr; } }
html[data-theme="dark"] {
  --paper: #071214;
  --surface: #0E1D21;
  --surface-2: #15292E;
  --line: #1F383F;
  --line-strong: #2B4C55;
  --accent: #0D7A56;
  --accent-hover: #0A6346;
  --accent-2: #34D399;
  --accent-strong: #6EE7B7;
  --accent-soft: #0E2E24;
  --accent-line: #1D5643;
}
[data-theme="dark"] .peer-hero h1 em { color: #6EE7B7; }
[data-theme="dark"] .no-data { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.025) 10px 20px); }
[data-theme="dark"] .choice-card:has(input:checked) { box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }
