@import url("/assets/controls.css?v=5f4e75383284");
/* Shared type scale for the public pages and private dashboard. */
:root {
  --type-body: 1rem;
  --type-title: 3rem;
  --type-section: 1.5rem;
  --type-card: 1.125rem;
  --type-control: 0.875rem;
  --type-meta: 0.75rem;
  --type-metric: 2.25rem;
  --type-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --layout-gap: 14px;
  --card-padding: 16px;
  --card-radius: 12px;
  --control-radius: 8px;
  --card-heading: 18px;
  --card-copy: 14px;
}
.skip:not(:focus) { clip-path: inset(50%); }
body { font: 400 var(--type-body)/1.6 var(--type-font); }
body h1, body .intro h1, #pulse h1, .pulse-directory h1 {
  font-size: var(--type-title); line-height: 1.12;
  font-weight: 600; letter-spacing: -.035em;
}
body h2, #pulse h2, #pulse .pulse-board-heading h2,
.section-heading h2, .connect-section h2, .activation-card h2 {
  font-family: var(--type-font); font-size: var(--type-section);
  line-height: 1.3; font-weight: 600; letter-spacing: -.025em;
}
body h3, #pulse h3, .panel h3, .connections h3,
.methodology h3, .task-card h3, #pulse .pulse-card-question {
  font-size: var(--type-card); line-height: 1.4;
  font-weight: 600; letter-spacing: -.015em;
}
.lede, .pulse-intro .lede, .connect-content p, .connections p,
.methodology p, .method details p, .task-snippet, .task-empty {
  font-size: var(--type-body); line-height: 1.65;
}
.masthead .brand { font-size: 24px; line-height: 1.25; font-weight: 700; }
.masthead .brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.055em; }
.brand .brand-mark { display: block; flex: 0 0 32px; width: 32px; height: 32px; }
.masthead .brand .brand-wordmark { font: inherit; color: inherit; letter-spacing: inherit; }
.masthead nav, .header-links, .masthead nav a { font-size: var(--type-control); line-height: 1.4; }
button, select, input, textarea, #pulse button, #pulse select, #pulse textarea {
  font-family: var(--type-font); line-height: 1.4;
}
button, #pulse button, .pulse-button, .pulse-chart-switch button,
.connection-bottom button, .endpoint button { font-size: var(--type-control); }
select, input, textarea, #pulse select, #pulse textarea,
.controls select, .pulse-filter select, .activation-card textarea {
  font-size: var(--type-body); line-height: 1.5;
}
.masthead button, .controls button, .controls select, .pulse-button { min-height: 44px; }
.eyebrow, .small-label, .connection-top .small-label,
.connect-section .eyebrow, .origin-gaps .small-label {
  font-size: var(--type-meta); line-height: 1.5; font-weight: 600; letter-spacing: .08em;
}
small, .caption, .pulse-caption, .status, .access-tag, .pulse-tag,
.pulse-meta, .pulse-counts, .pulse-row-meta small, .pulse-row-summary,
.pulse-invite p, .pulse-share, .pulse-invite-links a, .pulse-filter label,
.pulse-controls>span, .pulse-prompt label, .pulse-vote-prompt p,
.panel-note, .chart-key, .chart-foot, .chart-empty, .empty-state,
.data-footer, .update-line, .panel-title>span, .signal small,
.connection-bottom, .coverage, .coverage>div, .coverage p,
.exchange-detail, .exchange-metrics small, .response-summary,
.kpis small, .metrics small, .task-status, .task-meta, .task-card-footer,
.task-card-footer code, .task-footer p, .task-note, .criterion-state,
.criteria-progress, footer, footer p, footer>span, footer>a:last-child,
.pulse-footer, .footer-admin {
  font-size: var(--type-meta); line-height: 1.6;
}
.kpis p, .metrics p, .exchange-metrics span, .country-name,
.interface-row, .interface-row strong, .transport-head, .section-top>p,
.text-links, .connections a, .method a, .method summary,
.methodology summary, .notice, .error, #pulse details,
.pulse-prompt p, .pulse-collaborate p, .pulse-response-label,
.pulse-donut-key, .pulse-donut-key strong {
  font-size: var(--type-control); line-height: 1.6;
}
table, th, td, td strong, .action-count, .action-success { font-size: 13px; line-height: 1.5; }
th, td code, .interface-tag { font-size: var(--type-meta); line-height: 1.5; }
.activation-card pre, .admission-card code, .connect-content code,
.connections code, .criteria-list li, .task-success h4 { font-size: 13px; line-height: 1.6; }
.kpis strong, .metrics strong, .participation-grid strong,
.exchange-metrics strong, .exchange-metrics .exchange-completed strong {
  font-size: var(--type-metric); line-height: 1.15; font-weight: 600;
}
.pulse-counts strong { font-size: var(--type-section); }
#history-chart text, .timeline text { font-size: var(--type-meta); }
@media (max-width: 600px) {
  :root { --type-title: 2.125rem; --type-section: 1.375rem; --type-metric: 2rem; }
  .section-heading, .heading-line { flex-wrap: wrap; }
  .controls { flex-wrap: wrap; }
  .pulse-board-heading { align-items: baseline; flex-wrap: wrap; }
  .pulse-controls { display: flex; flex-wrap: wrap; }
  .pulse-controls .pulse-filter { flex: 1 1 calc(50% - 6px); }
  .pulse-controls>.pulse-button { flex: 0 0 44px; }
  .pulse-controls>span { flex: 1; }
}

/* Compact, adaptive surfaces. The node mark supplies the visual identity;
   hierarchy, containment and touch targets follow Material's design principles. */
:root { --surface-soft: #edf2e9; --surface-line: #dce4d7; --surface-ink: #234b3d; }
.shell > .masthead { height: 80px; gap: 20px; }
.shell > .masthead nav {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 344px;
  box-sizing: border-box; align-items: center; gap: 2px; padding: 4px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--surface-soft); border: 1px solid var(--surface-line); border-radius: 999px;
}
.shell > .masthead nav a {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  padding: 0 4px; min-width: 0; min-height: 44px; white-space: nowrap;
  border: 0; border-radius: 999px; color: #4e6257; text-decoration: none;
  transition: background-color 150ms, color 150ms;
}
.shell > .masthead nav a[aria-current="page"] { background: var(--surface-ink); color: #fff; }
.shell > .masthead nav a:hover:not([aria-current="page"]) { background: #e0e8db; color: #203d34; }
.shell .eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: .12em; }
.shell h1 { text-wrap: balance; }
.shell .pulse-intro, #pulse .pulse-intro { gap: 24px; padding: 32px 0; }
.pulse-button, .controls button, .controls select { border-radius: var(--control-radius); }
.pulse-primary { background: var(--surface-ink); border-color: var(--surface-ink); box-shadow: 0 2px 3px #203d3410; }
.pulse-primary:hover { background: #173b2e; }
.pulse-invite { gap: 4px; }
.pulse-invite-links { display: flex; gap: 12px; }
.pulse-invite-links a { padding: 0 4px; }
.pulse-controls {
  display: grid; grid-template-columns: minmax(140px,220px) minmax(140px,200px) auto 1fr;
  gap: 12px; align-items: end; padding: 12px var(--card-padding); margin-bottom: var(--layout-gap);
  border: 1px solid var(--surface-line); border-radius: var(--card-radius); background: #fff;
}
.pulse-filter { gap: 5px; }
.pulse-controls select { border-radius: 10px; background: #f6f8f3; border-color: var(--surface-line); }
.pulse-controls > span { justify-self: end; margin-left: 0; font-size: 12px; }
.pulse-panel, .pulse-list-row, .pulse-prompt, .pulse-empty, .connection-card { border-radius: var(--card-radius); }
.pulse-list-row { border-color: var(--surface-line); margin-bottom: 10px; }
.pulse-list-item { padding: 12px var(--card-padding); }
.pulse-row-meta .pulse-tag { padding: 3px 8px; border-radius: 7px; font-size: 11px; }
.pulse-row-meta { gap: 6px; }
.pulse-row-chevron { display: grid; place-items: center; width: 24px; height: 24px; }
.pulse-list-item[aria-expanded=true] { background: #edf3e7; border-color: #d7e1d1; }
.pulse-empty { padding: var(--card-padding); background: linear-gradient(115deg,#edf3e7,#fafcf7); border-color: #d9e4d2; }
.pulse-empty > .small-label { font-size: 10px; letter-spacing: .1em; }
.pulse-empty h2 { max-width: 540px; }
.pulse-chart-switch { padding: 3px; border-radius: 999px; background: #f0f4eb; }
.pulse-chart-switch button { border-radius: 999px; min-height: 40px; padding: 6px 14px; }
.pulse-history select { border-radius: 10px; min-height: 44px; }
.activation-grid { gap: var(--layout-gap); margin: var(--layout-gap) 0; }
.activation-grid .activation-card { margin: 0; padding: var(--card-padding); }
.activation-card { padding: var(--card-padding); margin-bottom: var(--layout-gap); }
.activation-card textarea, .pulse-prompt textarea { border-radius: var(--control-radius); }
.connector-setup > details > summary { min-height: 44px; padding: 9px 0; font-weight: 600; cursor: pointer; }
.connector-body { margin-top: 18px; }
.connector-body pre { border-radius: 12px; }
.pulse-footer { line-height: 1.8; }
.pulse-footer .pulse-share { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 780px) {
  .shell > .masthead { display: flex; padding: 0; height: 76px; }
  .shell > .masthead .brand { font-size: 23px; }
  .shell > .masthead nav { font-size: 13px; }
  .pulse-controls { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 44px; }
  .pulse-controls > span { grid-column: 1 / -1; justify-self: start; width: auto; }
  .pulse-controls > .pulse-button { width: 44px; padding: 8px; font-size: 20px; }
  .pulse-controls .refresh-label { display: none; }
}
@media (max-width: 600px) {
  :root { --type-title: 1.875rem; --type-section: 1.25rem; --type-card: 1rem; --type-metric: 1.8125rem; }
  .shell { padding-left: 16px; padding-right: 16px; }
  .shell > .masthead { display: grid; grid-template-columns: minmax(0,1fr); min-height: 0; height: auto; gap: 6px; padding: 10px 0; }
  .shell > .masthead .brand { font-size: 21px; gap: 6px; }
  .shell > .masthead .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .shell > .masthead nav { width: 100%; gap: 0; padding: 2px; }
  .shell > .masthead nav a { padding: 0 3px; min-height: 44px; font-size: 13px; }
  .shell .intro, .shell .pulse-intro, #pulse .pulse-intro { padding: 22px 0; gap: 16px; }
  .shell .pulse-intro, #pulse .pulse-intro { align-items: stretch; }
  .shell .intro h1, #pulse h1, #connect h1 { margin: 8px 0 12px; line-height: 1.12; }
  .shell .lede, .pulse-intro .lede { font-size: 15px; line-height: 1.55; }
  .pulse-invite { display: flex; width: 100%; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0; border: 0; }
  .pulse-invite > .pulse-primary { width: auto; min-height: 44px; flex: 0 0 auto; padding: 10px 14px; }
  .pulse-invite > p { display: none; }
  .pulse-invite-links { display: flex; width: auto; gap: 0; }
  .pulse-invite-links a { min-height: 44px; font-size: 12px; }
  .pulse-controls { gap: 9px; padding: 12px; margin-bottom: 16px; }
  .pulse-controls .pulse-filter { min-width: 0; }
  .pulse-controls .pulse-filter select { font-size: 16px; padding: 8px; }
  .pulse-controls > span { font-size: 11px; line-height: 1.4; }
  #pulse .pulse-board-heading h2 { margin: 2px 0 12px; font-size: 18px; }
  .pulse-list-item { padding: 14px; gap: 8px; }
  #pulse .pulse-card-question { font-size: 16px; margin: 7px 0 5px; }
  .pulse-row-summary { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; line-height: 1.5; }
  .pulse-list-row #poll-detail { padding: 14px; }
  .pulse-empty { margin-top: 0; padding: var(--card-padding); }
  .pulse-empty h2 { margin: 10px 0; }
  .pulse-empty p { font-size: 14px; line-height: 1.6; margin: 8px 0 16px; }
  .pulse-empty > .small-label { font-size: 10px; margin: 0 0 10px; }
  .pulse-empty .pulse-button { padding: 10px 12px; text-align: left; white-space: normal; }
  .pulse-prompt { padding: var(--card-padding); }
  .pulse-prompt textarea, .activation-card textarea { height: 190px; min-height: 150px; padding: 12px; }
  .pulse-donut { display: grid; grid-template-columns: minmax(110px,140px) minmax(0,1fr); gap: 14px; margin: 16px 0; align-items: center; }
  .pulse-donut svg { width: 100%; height: auto; }
  .pulse-donut-legend { min-width: 0; width: auto; }
  .pulse-donut-key { font-size: 12px; gap: 6px; grid-template-columns: 7px minmax(0,1fr) auto; margin: 10px 0; }
  .pulse-donut-key strong { font-size: 12px; }
  .pulse-swatch { width: 7px; height: 7px; }
  .pulse-caption, .pulse-meta, .pulse-counts { font-size: 12px; line-height: 1.5; }
  .pulse-history { margin-top: 16px; padding-top: 16px; }
  #history-chart { height: 145px; }
  .pulse-context { gap: 16px; }
  .pulse-collaborate { padding: 18px; gap: 12px; }
  .activation-grid { gap: 10px; margin: 16px 0; }
  .activation-card, .activation-grid .activation-card { padding: var(--card-padding); }
  .activation-card h2 { margin: 6px 0 10px; }
  .activation-card p { font-size: 14px; line-height: 1.6; }
  .activation-card .small-label { font-size: 11px; margin-top: 0; }
  .activation-card pre { padding: 14px; font-size: 12px; }
  .connection-card { padding: 16px; }
  .connection-card > code { margin: 16px 0; }
  .connection-top .small-label { font-size: 10px; }
  .connection-top .access-tag { font-size: 10px; }
  .kpis { gap: 20px 0; padding: 20px 0; }
  .kpis p { margin-bottom: 8px; font-size: 12px; }
  .kpis small { margin-top: 7px; font-size: 11px; }
  .primary-grid, .secondary-grid { gap: 14px; }
  .panel { border-radius: 14px; }
  .panel-heading { padding: 16px; }
  .participation-grid { gap: 10px; margin: 14px 0; }
  .participation-grid article { padding: 14px; }
  .participation-grid p { margin: 6px 0 0; font-size: 12px; }
  .pulse-footer { margin-top: 22px; padding-top: 14px; }
}
@media (max-width: 359px) {
  .pulse-controls { gap: 7px; padding: 10px; }
  .pulse-controls .pulse-filter select { padding-left: 5px; padding-right: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell > .masthead nav a, .pulse-list-item, .pulse-row-chevron { transition: none; }
}

/* Activity is a compact dashboard, with definitions available on demand. */
.activity-page .intro {
  grid-template-columns: minmax(0,1fr) minmax(280px,340px);
  gap: 24px; padding: 24px 0 20px;
}
.activity-page .intro .eyebrow { margin-bottom: 5px; font-size: 10px; }
.activity-page .intro h1 { font-size: 32px; margin: 0 0 8px; }
.activity-page .intro .lede { max-width: none; font-size: 14px; line-height: 1.5; }
.activity-page .connection-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 4px 12px; padding: 12px 16px; border-radius: 12px;
}
.activity-page .connection-top { grid-column: 1; }
.activity-page .connection-top .small-label { max-width: none; margin: 0; font-size: 10px; }
.activity-page .connection-card > code { grid-column: 1; font-size: 13px; margin: 0; }
.activity-page .connection-bottom { grid-column: 2; grid-row: 1 / 3; border: 0; padding: 0; }
.activity-page .connection-bottom > span { display: none; }
.activity-page .connection-bottom button { min-width: 44px; min-height: 44px; padding: 0; font-size: 12px; }
.activity-page .connection-bottom button span { margin-left: 4px; }
.activity-page .activity-section { padding-top: 14px; }
.activity-page .section-heading { gap: 12px; }
.activity-page .section-heading h2 { font-size: 18px; }
.activity-page .controls button { width: 44px; }
.activity-page .controls select { font-size: 14px; }
.activity-page .kpis { padding: 16px 0; gap: 0; }
.activity-page .kpis article { padding: 0 18px; }
.activity-page .kpis article:first-child { padding-left: 0; }
.activity-page .kpis p { font-size: 12px; margin: 0 0 5px; }
.activity-page .kpis strong { font-size: 30px; letter-spacing: -.035em; }
.activity-page .kpis small { font-size: 11px; margin-top: 5px; line-height: 1.5; }
.activity-page .participation-panel {
  padding: 14px 16px 10px; margin-bottom: 14px;
  border: 1px solid var(--surface-line); border-radius: 12px; background: #edf2e980;
}
.activity-page .participation-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.activity-page .participation-heading h3 { font-size: 15px; margin: 0; }
.activity-page .participation-heading .caption { font-size: 11px; white-space: normal; }
.activity-page .participation-grid { gap: 0; margin: 12px 0 10px; }
.activity-page .participation-grid article { padding: 0 18px; border: 0; border-left: 1px solid #d5dfcf; border-radius: 0; background: transparent; }
.activity-page .participation-grid article:first-child { padding-left: 0; border: 0; }
.activity-page .participation-grid strong { font-size: 25px; }
.activity-page .participation-grid p { font-size: 12px; line-height: 1.4; margin: 4px 0 0; }
.activity-page #participation-detail { font-size: 11px; line-height: 1.6; color: #586852; margin: 0; padding-top: 8px; border-top: 1px solid #d9e2d2; }
.activity-page .primary-grid, .activity-page .secondary-grid { gap: 14px; align-items: start; }
.activity-page .primary-grid { align-items: stretch; }
.activity-page .panel { border-radius: var(--card-radius); }
.activity-page .panel-heading, .activity-page .exchange-panel .panel-heading { padding: 14px 16px 10px; gap: 10px; }
.activity-page .panel .small-label { font-size: 10px; margin-bottom: 3px; }
.activity-page .panel h3 { font-size: 16px; }
.activity-page .panel .caption { font-size: 11px; }
.activity-page .chart-key, .activity-page .chart-foot, .activity-page .country-list,
.activity-page .coverage, .activity-page .interface-list, .activity-page .response-summary { margin-left: 16px; margin-right: 16px; }
.activity-page .timeline { height: 180px; margin: 0 12px; }
.activity-page .chart-foot { padding: 8px 0 12px; font-size: 11px; }
.activity-page .country-list { min-height: 0; }
.activity-page .country-row { margin-bottom: 8px; }
.activity-page .country-name { font-size: 12px; }
.activity-page .country-row meter { margin-top: 3px; }
.activity-page .coverage { padding: 8px 0 10px; }
.activity-page .coverage > div { margin-bottom: 5px; font-size: 11px; }
.activity-page .coverage p { font-size: 11px; margin-top: 5px; }
.activity-page .outcomes-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.activity-page .exchange-panel { margin: 0; }
.activity-page .exchange-panel .caption { white-space: normal; text-align: right; max-width: 130px; }
.activity-page .exchange-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; padding: 0 16px 12px; }
.activity-page .exchange-metrics > div { padding-left: 16px; }
.activity-page .exchange-metrics > div:nth-child(odd) { padding-left: 0; border: 0; }
.activity-page .exchange-metrics span { font-size: 12px; margin-bottom: 4px; }
.activity-page .exchange-metrics strong, .activity-page .exchange-metrics .exchange-completed strong { font-size: 27px; line-height: 1.15; }
.activity-page .exchange-metrics small { font-size: 11px; margin-top: 4px; max-width: none; line-height: 1.5; }
.activity-page .exchange-detail { gap: 4px 14px; margin: 0 16px; padding: 9px 0; font-size: 11px; }
.activity-page .exchange-detail > span:last-child { width: 100%; margin-left: 0; }
.activity-page .outcome-notes { border-top: 1px solid var(--line); margin: 0 16px; }
.activity-page .outcome-notes summary, .activity-page .unused-actions summary { cursor: pointer; font-size: 12px; min-height: 44px; padding: 12px 0; color: #4d6657; }
.activity-page .outcome-notes .panel-note { margin: 0 0 12px; font-size: 12px; }
.activity-page .table-scroll { padding: 0 16px; }
.activity-page td { padding-top: 9px; padding-bottom: 9px; }
.activity-page td code { margin-top: 1px; font-size: 10px; }
.activity-page .unused-actions { margin: 0 16px; border-bottom: 1px solid var(--line); }
.activity-page .unused-actions .table-scroll { padding: 0 0 10px; }
.activity-page .panel-note { margin: 10px 16px 12px; font-size: 11px; line-height: 1.6; }
.activity-page .interface-row { margin: 7px 0 12px; font-size: 13px; }
.activity-page .response-summary { gap: 16px; padding: 10px 0 12px; font-size: 11px; flex-wrap: wrap; }
.activity-page .connect-section { gap: 24px; padding: 22px 0; margin-top: 24px; }
.activity-page .connect-section h2 { font-size: 22px; }
.activity-page .connect-section .eyebrow { margin-bottom: 8px; }
.activity-page .connect-content p { font-size: 14px; margin-bottom: 10px; }
.activity-page .text-links { margin-top: 12px; }
@media (max-width: 900px) {
  .activity-page .outcomes-grid { grid-template-columns: 1fr; }
  .activity-page .exchange-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  .activity-page .exchange-metrics > div:nth-child(3) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .activity-page .intro { grid-template-columns: 1fr; gap: 12px; padding: 18px 0 16px; }
  .activity-page .intro h1 { font-size: 28px; }
  .activity-page .intro .lede { font-size: 13px; }
  .activity-page .connection-card { max-width: none; }
  .activity-page .section-heading { flex-wrap: wrap; }
  .activity-page .section-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .activity-page .heading-line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .activity-page .status { font-size: 11px; }
  .activity-page .status span { max-width: none; }
  .activity-page .controls { margin-left: auto; }
  .activity-page .controls select { font-size: 16px; }
  .activity-page .kpis { gap: 14px 0; }
  .activity-page .kpis article:nth-child(3) { padding-left: 0; }
  .activity-page .kpis article:nth-child(even) { padding-left: 14px; padding-right: 0; }
  .activity-page .kpis strong { font-size: 27px; }
  .activity-page .participation-panel { padding: 12px; }
  .activity-page .participation-heading { flex-wrap: wrap; gap: 2px; }
  .activity-page .participation-grid { gap: 12px 0; }
  .activity-page .participation-grid article { padding-left: 14px; padding-right: 0; }
  .activity-page .participation-grid article:nth-child(3) { border: 0; padding-left: 0; }
  .activity-page .participation-grid strong { font-size: 24px; }
  .activity-page .geography-panel .country-list { min-height: 0; }
  .activity-page .timeline { height: 175px; }
  .activity-page .chart-foot { display: block; }
  .activity-page .chart-foot > span { display: none; }
  .activity-page .exchange-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-page .exchange-metrics > div:nth-child(3) { padding-left: 0; border: 0; }
  .activity-page .panel-heading { flex-wrap: wrap; }
  .activity-page .table-scroll { padding: 0 12px; }
  .activity-page td strong { font-size: 12px; }
  .activity-page .connect-section { grid-template-columns: 1fr; gap: 12px; }
}

/* Private collaboration: consent, encrypted exchange, optional project storage. */
#private-invitation[hidden]{display:none}
#private-invitation textarea{box-sizing:border-box;width:100%;max-width:100%;font:inherit;font-size:.9rem;line-height:1.5;padding:.75rem;border:1px solid #cbd5c7;border-radius:8px;background:#fff;color:#203d34;resize:vertical}
.connection-explainer{overflow:hidden;padding:0}
.collaboration-overview{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);gap:36px;padding:30px}
.collaboration-copy{display:flex;flex-direction:column;align-items:flex-start;padding:6px 0;min-width:0}
.collaboration-copy .small-label{margin:0 0 14px;color:#526b5d}
.collaboration-copy h2{font-size:clamp(24px,2.5vw,31px);line-height:1.17;letter-spacing:-.045em;margin:0 0 16px;max-width:20ch}
.collaboration-copy>p:not(.small-label){font-size:15px;line-height:1.6;color:#58665e;max-width:37ch;margin:0 0 22px}
.collaboration-promises{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:12px}
.collaboration-promises li{position:relative;padding-left:18px;font-size:13px;line-height:1.5;color:#344b40}
.collaboration-promises li::before{content:"";position:absolute;left:1px;top:6px;width:6px;height:6px;border:1px solid #5f816b;border-radius:50%;background:#edf2e7}
.collaboration-protocol{display:inline-flex;gap:20px;align-items:center;margin-top:auto;min-height:44px;font-size:13px;font-weight:600;text-decoration:none;border-bottom:1px solid #bfccbd}
.collaboration-protocol:hover{color:#527359;border-color:currentColor}
.collaboration-sequence{list-style:none;margin:0;padding:18px 20px;background:#f5f7f2;border:1px solid #e0e6dc;border-radius:14px;min-width:0}
.collaboration-stage{padding:14px 0;border-bottom:1px solid #dde4d8}
.collaboration-stage:first-child{padding-top:0}.collaboration-stage:last-child{border:0;padding-bottom:0}
.collaboration-stage-label{display:flex;align-items:center;gap:10px;min-width:0}
.collaboration-stage-label h3{font-size:13px;line-height:1.4;font-weight:600;letter-spacing:0;margin:0;color:#263b31}
.stage-number{font:10px/1.5 ui-monospace,monospace;color:#73816c;flex:0 0 auto}
.collaboration-network{display:grid;grid-template-columns:1fr 28px 1.15fr 28px 1fr;align-items:center;gap:6px;margin:18px 0 10px}
.collaboration-agent{display:grid;justify-items:center;gap:6px;min-width:0;font-size:11px;line-height:1.4;color:#506055;text-align:center}
.agent-symbol{display:grid;place-items:center;width:34px;height:34px;border:1px solid #cdd8c6;border-radius:10px;background:#fff;font:600 12px/1 ui-monospace,monospace;color:#385440}
.collaboration-wire{width:100%;fill:none;stroke:#8b9b82;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.collaboration-hub{display:grid;justify-items:center;gap:5px;padding:10px 6px;border:1px solid #bfcfba;border-radius:11px;background:#e7eee0;min-width:0;color:#2d4838;box-shadow:0 2px 0 #dae3d3}
.collaboration-hub img{display:block}.collaboration-hub strong{font-size:12px;font-weight:650;line-height:1.3;letter-spacing:-.02em}
.connection-explainer .collaboration-note{font-size:11px;line-height:1.5;color:#62725e;margin:8px 0 0;text-align:center}
.collaboration-channel{display:grid;grid-template-columns:1fr 28px 1.15fr 28px 1fr;align-items:start;gap:6px;margin:14px 0 0;color:#44614b}
.channel-peer{font:11px/1.3 ui-monospace,monospace;color:#65755f}
.channel-line{height:1px;background:#b6c7ac;min-width:6px;position:relative;margin-top:17px}
.channel-lock{display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;text-align:center;white-space:normal;font-size:11px;font-weight:600}
.channel-lock svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.collaboration-optional{margin-left:auto;padding:2px 7px;border:1px solid #d5dece;border-radius:5px;color:#62705a;font-size:10px;line-height:1.5}
.collaboration-repository{display:flex;align-items:center;gap:12px;margin:12px 0 0}
.collaboration-repository>svg{width:25px;height:25px;flex:0 0 auto;stroke:#627558;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;fill:none}
.collaboration-repository>div{display:grid;gap:3px}.collaboration-repository strong{font-size:12px;font-weight:500;line-height:1.4;color:#334c3b}.collaboration-repository span{font-size:11px;line-height:1.4;color:#67755f}
.collaboration-details{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e0e6dc;background:#fafbf8}
.collaboration-details>details{min-width:0;padding:4px 28px 8px}.collaboration-details>details+details{border-left:1px solid #e0e6dc}
.collaboration-details summary{font-size:13px;font-weight:500;min-height:44px;align-content:center;cursor:pointer;padding:10px 0;box-sizing:border-box}
.collaboration-details summary::marker{color:#74846b;font-size:11px}.collaboration-details summary:focus-visible,.collaboration-protocol:focus-visible{outline:2px solid #54745d;outline-offset:4px}
.connection-explainer .collaboration-details p,.collaboration-details a{font-size:12px;line-height:1.7;color:#53624f}.collaboration-details a{display:inline-flex;align-items:center;gap:8px;min-height:44px}
@media(max-width:760px){
 .connection-explainer.activation-card{padding:0}
 .collaboration-overview{grid-template-columns:1fr;gap:18px;padding:20px}
 .collaboration-copy{padding:0}.collaboration-copy h2{font-size:26px;margin-bottom:12px;max-width:none}
 .collaboration-copy .small-label{margin-bottom:10px}.collaboration-copy>p:not(.small-label){max-width:48ch;font-size:14px;margin-bottom:12px}
 .collaboration-promises{display:none}.collaboration-promises li{font-size:12px}
 .collaboration-protocol{min-height:44px;font-size:12px;margin-top:0}
 .collaboration-sequence{padding:16px}.collaboration-details{grid-template-columns:1fr}
 .collaboration-details>details{padding:2px 20px}.collaboration-details>details+details{border-left:0;border-top:1px solid #e0e6dc}
}
@media(max-width:380px){
 .collaboration-overview{padding:16px;gap:16px}.collaboration-copy h2{font-size:24px}
 .collaboration-sequence{padding:14px 12px}.collaboration-network{grid-template-columns:1fr 18px 1.15fr 18px 1fr;gap:3px}
 .collaboration-stage-label{gap:7px}.collaboration-stage-label h3{font-size:12px}.collaboration-channel{grid-template-columns:1fr 18px 1.15fr 18px 1fr;gap:3px}
 .channel-lock{font-size:10px;gap:4px}.channel-lock svg{width:14px;height:14px}.collaboration-details>details{padding:2px 16px}
}

/* Shared public hierarchy: the same title, card and control scale on every route. */
.shell .pulse-intro, #pulse .pulse-intro { padding: 24px 0 20px; gap: var(--layout-gap); }
.shell .pulse-intro h1, #pulse h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
.shell .pulse-intro .eyebrow { margin: 0 0 5px; font-size: 10px; }
.shell .pulse-intro .lede { font-size: var(--card-copy); line-height: 1.5; margin: 0; }
.pulse-prompt { padding: var(--card-padding); margin-bottom: var(--layout-gap); }
#pulse .pulse-prompt h2, #pulse .pulse-empty h2, .activation-card h2 { font-size: var(--card-heading); margin: 0 0 6px; }
.pulse-prompt > p, .pulse-empty > p, .activation-card > p { font-size: var(--card-copy); line-height: 1.55; margin: 6px 0 12px; }
.pulse-empty > .small-label { font-size: 10px; margin: 0 0 8px; }
.pulse-prompt textarea { box-sizing: border-box; }
.shell .pulse-footer { gap: 8px 16px; flex-wrap: wrap; margin-top: 20px; padding: 14px 0 20px; }
.shell .pulse-footer .footer-admin { display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; }

/* Connect uses compact summaries; longer prompts and setup stay available on demand. */
.connect-page #connect { font-size: var(--card-copy); line-height: 1.55; }
.connect-page #connect > section { margin: 0 0 var(--layout-gap); }
.connect-page #connect > .pulse-intro { margin-bottom: 0; }
.connect-page #connect .small-label { margin: 0 0 4px; font-size: 10px; line-height: 1.5; }
.connect-page #connect h2 { font-size: var(--card-heading); line-height: 1.3; margin: 0 0 6px; }
.connect-page #connect p { font-size: var(--card-copy); line-height: 1.55; }
.connect-page #connect p.small-label { font-size: 10px; }
.connect-page #connect .eyebrow { font-size: 10px; line-height: 1.5; }
.connect-page .activation-card > p:last-child { margin-bottom: 0; }
.connect-page .connect-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connect-page .connect-section-heading .pulse-button { flex-shrink: 0; }
.connect-page .connect-start > p { max-width: 82ch; margin: 6px 0 8px; }
.connect-page .connect-prompt-preview { border-top: 1px solid var(--surface-line); margin-top: 10px; }
.connect-page #connect summary { cursor: pointer; min-height: 44px; align-content: center; box-sizing: border-box; font-size: var(--card-copy); }
.connect-page #connect summary:focus-visible, .connect-page #connect .pulse-button:focus-visible { outline: 2px solid var(--surface-ink); outline-offset: 3px; }
.connect-page .connect-prompt-preview textarea { display: block; width: 100%; min-height: 160px; height: 180px; padding: 12px; font-size: 16px; line-height: 1.5; }
.connect-page #connect [role=status]:empty { display: none; }
.connect-page #connect [role=status] { font-size: 12px; margin: 8px 0 0; }
.connect-page .connect-integration { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 24px; align-items: center; }
.connect-page .connect-integration p { margin: 4px 0 0; }
.connect-page .connect-integration-links { display: grid; gap: 0; min-width: 160px; }
.connect-page .connect-integration-links a { justify-content: space-between; margin: 0; }
.connect-page .participation-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: var(--card-padding); }
.connect-page .participation-steps article { min-width: 0; padding: 0 var(--card-padding); border-left: 1px solid var(--surface-line); }
.connect-page .participation-steps article:first-child { padding-left: 0; border-left: 0; }
.connect-page .participation-steps article:last-child { padding-right: 0; }
.connect-page #connect .participation-steps h2 { font-size: 16px; }
.connect-page .participation-steps p { margin: 6px 0 0; }
.connect-page .participation-steps code { display: block; font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.connect-page .connect-disclosure { padding: 0 var(--card-padding); }
.connect-page .connect-disclosure > details > summary { min-height: 50px; padding: 12px 0; font-weight: 600; }
.connect-page .connector-body { margin: 0; padding: 0 0 var(--card-padding); }
.connect-page .connector-body p { margin: 8px 0 12px; }
.connect-page .connector-body pre { padding: 12px; border-radius: var(--control-radius); }
.connect-page .connector-body details { border-top: 1px solid var(--surface-line); margin-top: 10px; }
.connect-page .connection-explainer { padding: 0; }
.connect-page .collaboration-overview { gap: 24px; padding: var(--card-padding); }
.connect-page .collaboration-copy { padding: 0; }
.connect-page #connect .collaboration-copy h2 { max-width: none; font-size: 22px; margin-bottom: 8px; }
.connect-page .collaboration-copy > p:not(.small-label) { margin: 0 0 12px; }
.connect-page .collaboration-promises { gap: 8px; margin: 0 0 12px; }
.connect-page .collaboration-protocol { margin-top: 0; }
.connect-page .collaboration-sequence { padding: 12px 16px; border-radius: var(--card-radius); }
.connect-page .collaboration-stage { padding: 10px 0; }
.connect-page .collaboration-stage:first-child { padding-top: 0; }
.connect-page .collaboration-stage:last-child { padding-bottom: 0; }
.connect-page .collaboration-network { margin: 12px 0 8px; }
.connect-page #connect .collaboration-note { font-size: 11px; line-height: 1.5; margin-top: 6px; }
.connect-page .collaboration-details > details { padding: 0 var(--card-padding); }
.connect-page #connect .collaboration-details p { font-size: 13px; }
@media (max-width: 760px) {
  .connect-page .collaboration-overview { gap: var(--layout-gap); }
  .connect-page .participation-steps { grid-template-columns: 1fr; }
  .connect-page .participation-steps article { padding: 12px 0; border: 0; border-top: 1px solid var(--surface-line); }
  .connect-page .participation-steps article:first-child { padding-top: 0; border: 0; }
  .connect-page .participation-steps article:last-child { padding-bottom: 0; }
}
@media (max-width: 600px) {
  :root { --layout-gap: 12px; --card-padding: 14px; }
  .shell .pulse-intro, #pulse .pulse-intro { padding: 20px 0 16px; }
  .shell .pulse-intro h1, #pulse h1, .activity-page .intro h1 { font-size: 28px; }
  .connect-page .connect-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .connect-page .connect-integration { grid-template-columns: 1fr; gap: 8px; }
  .connect-page .connect-integration-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .connect-page #connect .collaboration-copy h2 { font-size: 20px; }
  .connect-page .collaboration-sequence { padding: 12px; }
}

/* Shared palette: warm ivory, Starry Night blues, and sunflower gold.
   Gold text is reserved for dark surfaces; ochre carries warm labels on light. */
:root {
  --paper: #faf8f1;
  --bg: var(--paper);
  --panel: #ffffff;
  --ink: #1c2d49;
  --muted: #59657a;
  --line: #e1e1da;
  --accent: #355ecb;
  --green: var(--accent);
  --lime: #e8edfc;
  --surface-soft: #eef1fa;
  --surface-line: #dce1eb;
  --surface-ink: #192f56;
  --signal-warm: #866119;
  --sunflower: #efc45b;
  --chart-gold: #b18322;
  --signal-warm-soft: #fff4d3;
  --signal-success: #197266;
}
body { background: var(--paper); color: var(--ink); }
::selection { background: #f3d98e; color: #192f56; }
body :is(.lede,.pulse-intro .lede,.small-label,.caption,.panel-note,.data-footer,
  .coverage p,.coverage > div,.chart-key,.chart-foot,.chart-foot output,
  .empty-state,.chart-empty,.kpis p,.kpis small,.exchange-metrics span,
  .exchange-metrics small,.exchange-detail,.response-summary,.panel-note,
  .methodology p,.methodology h3,.methodology summary,.connect-content p,
  .pulse-caption,.pulse-meta,.pulse-row-summary,.pulse-controls > span,
  .pulse-filter label,.pulse-invite p,.connection-bottom,.count-tag,
  .origin-gap,footer,td code,th) { color: var(--muted); }
body .eyebrow { color: var(--signal-warm); }
body :is(.masthead,.panel,.pulse-panel,.pulse-list-row,.pulse-controls,.pulse-prompt,
  .exchange-panel,.participation-grid article,.task-card,.connection-card,
  .activation-card textarea,.pulse-prompt textarea) { border-color: var(--line); }
body :is(.panel,.pulse-panel,.pulse-list-row,.task-card) {
  box-shadow: 0 2px 8px #1c2d4904;
}
.shell > .masthead nav { background: #eeede5; border-color: #e1e1da; }
.shell > .masthead nav a { color: #42536e; }
.shell > .masthead nav a[aria-current="page"] { background: var(--surface-ink); color: #fff; }
.shell > .masthead nav a:hover:not([aria-current="page"]) { background: #e2e8f9; color: #203e72; }
body :is(button,select,input,textarea,.pulse-button,.pulse-controls select,.pulse-history select) { border-color: var(--line); }
body :is(select,input,textarea,.pulse-button) { color: var(--ink); }
body :is(a,button,select,input,textarea,summary,.timeline):focus-visible,
#pulse :is(button,select,textarea):focus-visible { outline-color: var(--accent); }
body .connection-card { background: #edf1fb; border-color: #ccd9f2; }
body .connection-top .small-label { color: #31568c; }
body :is(.access-tag,.country-code,.interface-tag,.pulse-tag,.agent-symbol) {
  background: #edf2fc; border-color: #d9e3f4; color: #3d5883;
}
body .connection-bottom { border-color: #d1ddf1; }
body :is(.key-requests,.timeline .request-bar) { background: #6f90d4; fill: #6f90d4; }
body .timeline .request-bar.active { fill: var(--accent); }
body .key-tools { background: var(--chart-gold); }
body .timeline .tool-line { stroke: var(--chart-gold); stroke-width: 2.5; }
body .timeline .tool-point { fill: var(--chart-gold); }
body .timeline .inspect-line { stroke: #657da7; }
body .timeline .gridline { stroke: #eeeee9; }
body .timeline text, #history-chart text { fill: var(--muted); }
body meter, body meter::-webkit-meter-bar { background: #eaf0fa; }
body meter::-webkit-meter-optimum-value { background: #6285d0; }
body meter::-moz-meter-bar { background: #6285d0; }
body :is(.chart-foot,.coverage,.response-summary,.origin-gaps,td,th) { border-color: #eeeee8; }
body :is(.action-success,.exchange-completed strong) { color: var(--signal-success); }
body .action-success.has-errors { color: #a45425; }
body .action-success.no-calls { color: var(--muted); }
body .response-detail { color: var(--muted); }
body .participation-grid strong { color: var(--ink); }
.activity-page .kpis article:nth-child(2) strong { color: var(--accent); }
.activity-page .participation-panel {
  background: var(--surface-ink); border-color: var(--surface-ink); color: #f7f9ff;
}
.activity-page .participation-panel h3 { color: #f7f9ff; }
.activity-page .participation-panel strong { color: var(--sunflower); }
.activity-page .participation-panel :is(.caption,p) { color: #d1dcef; }
.activity-page .participation-panel .participation-grid article { border-color: #3e5375; }
.activity-page #participation-detail { color: #d1dcef; border-color: #3e5375; }
body .pulse-empty { background: #edf2fc; border-color: #d7e1f3; }
body .pulse-controls select { background: #f7f9fd; }
body .pulse-list-item[aria-expanded=true] { background: #edf2fc; border-color: #d7e1f3; }
body .pulse-list-item:hover { background: #f4f7fd; }
body .pulse-chart-switch { background: #eef1fa; }
body .pulse-chart-switch button[aria-pressed=true] { background: var(--surface-ink); color: #fff; }
body .pulse-track { background: #e7edf7; }
body .pulse-fill { background: var(--accent); }
body :is(.activation-card pre,.connector-body pre) { background: #eef2f9; color: #30486d; }
body :is(.collaboration-copy > p:not(.small-label),.collaboration-agent,
  .collaboration-note,.channel-peer,.collaboration-repository span,
  .collaboration-details p,.collaboration-details a,.invitation-facts,
  .invitation-caption,.invitation-privacy) { color: var(--muted); }
body :is(.collaboration-copy .small-label,.collaboration-promises li,
  .collaboration-stage-label h3,.collaboration-repository strong) { color: var(--ink); }
body .collaboration-sequence { background: #f2f4fa; border-color: var(--line); }
body :is(.collaboration-stage,.collaboration-details,.collaboration-details > details + details) { border-color: var(--line); }
body .collaboration-hub { background: #e1eaff; border-color: #bfcef0; color: #254d99; box-shadow: 0 2px 0 #d3dff5; }
body .collaboration-wire { stroke: #8397b9; }
body .collaboration-channel { color: var(--signal-success); }
body .channel-line { background: #93bfb5; }
body .collaboration-details { background: #fcfbf7; }
body .collaboration-repository > svg { stroke: var(--signal-warm); }
body .collaboration-optional { border-color: #e8d79d; background: var(--signal-warm-soft); color: #78591a; }
body .collaboration-promises li::before { background: #e6eefc; border-color: #6988bd; }
body .invitation-card { border-top-color: var(--accent); }
body :is(.invitation-icon,.invitation-steps span) { background: #edf1fb; color: #31568c; border-color: #ccd9f2; }
body .invitation-steps { border-color: var(--line); }
.admin-tabs [role=tab]:hover { background: #eef1fa; }
.admin-tabs [aria-selected=true] { color: var(--accent); border-color: var(--accent); }
body #tasks :is(.task-total,.task-view-switch) { background: #eeede5; }
body #tasks .task-summary:hover { background: #f5f7fc; }
body .footer-brand { color: var(--ink); }

/* A compact disclosure for a real, explicitly scoped operational test. */
.verified-exchange{border-top:1px solid var(--line,#dce0e8);background:var(--paper,#faf8f1)}
.verified-exchange>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;cursor:pointer;padding:14px 20px;font-size:13px;font-weight:600;list-style:none}
.verified-exchange>summary::-webkit-details-marker{display:none}
.verified-exchange>summary::before{content:"›";font-size:18px;line-height:1;transition:transform .15s}
.verified-exchange[open]>summary::before{transform:rotate(90deg)}
.verified-exchange>summary:focus-visible{outline:2px solid #355ecb;outline-offset:-3px}
.verified-exchange-status{font-size:11px;color:#17695f;border:1px solid #bfd6cd;background:#edf6ef;border-radius:5px;padding:3px 6px;font-weight:600}
.verified-exchange-body{padding:0 20px 16px}
.verified-exchange-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0;margin:14px 0;list-style:none}
.verified-exchange-steps>li{display:flex;gap:8px;min-width:0}
.verified-exchange-steps>li+li{border-left:1px solid var(--line,#dce0e8);padding-left:20px}
.verified-exchange-steps h3{font-size:14px;line-height:1.4;margin:0 0 10px}
.connection-explainer .verified-exchange-steps p{font-size:12px;line-height:1.6;margin:8px 0 0;color:#4d5c79}
.example-identities{display:flex;align-items:center;gap:12px;min-height:40px}.example-link{color:#6076a2}
.example-roundtrip{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;min-height:40px;align-content:center;font-size:11px;color:#17695f}
.example-roundtrip>span:nth-child(odd){font-family:ui-monospace,monospace;white-space:nowrap}
.connection-explainer .example-result{display:flex;align-items:center;gap:8px;min-height:40px;margin:0;color:#17695f;font-weight:600}
.example-result>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e3efdf}
.verified-exchange-facts{display:flex;gap:8px 24px;flex-wrap:wrap;border-top:1px solid var(--line,#dce0e8);padding-top:12px;font-size:12px;color:#4d5c79}
.verified-exchange-facts strong{color:#192f56;margin-right:3px}
.connection-explainer .verified-exchange-scope{font-size:11px;line-height:1.6;color:#62718a;margin:12px 0 0;max-width:110ch}
.verified-exchange .collaboration-protocol{margin-top:8px;font-size:12px}
@media(max-width:650px){.verified-exchange-steps{grid-template-columns:1fr;gap:14px}.verified-exchange-steps>li+li{border-left:0;border-top:1px solid var(--line,#dce0e8);padding:14px 0 0}.verified-exchange>summary,.verified-exchange-body{padding-left:16px;padding-right:16px}.verified-exchange>summary{gap:7px}.verified-exchange-facts{gap:6px 14px}}
@media(prefers-reduced-motion:reduce){.verified-exchange>summary::before{transition:none}}

.flow-scene { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.8fr); align-items:center; gap:20px; padding:16px 20px; margin:0 0 16px; background:#f1f3fa; border:1px solid #d9dfed; border-radius:12px; color:#20314e; }
.flow-scene .flow-copy h2 { font-size:var(--type-section); margin:0; }
.flow-copy p { margin:6px 0 0; max-width:64ch; font-size:14px; line-height:1.5; }
.flow-link { min-height:44px; border:0; padding:0 2px; background:transparent; color:#304688; font:600 14px/1.4 var(--type-font); cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.flow-frame { min-width:0; }
.flow-art { display:block; width:100%; max-width:390px; height:auto; margin:auto; }
.flow-art text { font:600 12px var(--type-font),sans-serif; fill:#26374d; }
.flow-art .large { font-size:20px; }
.flow-art .trail { fill:none; stroke:#9aa9c2; stroke-width:1.3; stroke-dasharray:3 4; }
.flow-art .inkline { fill:none; stroke:#293a51; stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; }
.flow-art .traveller { opacity:0; animation:flow-travel 1.55s ease-in-out var(--delay) 1 both; }
@keyframes flow-travel { 0% { opacity:0; transform:translate(0,0); } 15%,80% { opacity:1; } 100% { opacity:0; transform:translate(var(--dx),var(--dy)); } }
@media (max-width:600px) { .flow-scene { grid-template-columns:minmax(0,1fr); gap:0; padding:14px 16px; } .flow-art { max-width:330px; } }
@media (prefers-reduced-motion:reduce) { .flow-art .traveller { animation:none; } }

.asset-packet { offset-path:path("M76 92 Q170 144 264 92"); offset-rotate:0deg; animation:private-delivery 3.7s ease-in-out both; }
@keyframes private-delivery { 0%,30% { offset-distance:0%; } 100% { offset-distance:100%; } }
@media (prefers-reduced-motion:reduce) {
  .asset-packet { animation:none; offset-distance:50%; }
  .flow-scene .replay { display:none; }
}

.saved-run { animation:reuse-confirmed 4.2s ease-out both; }
@keyframes reuse-confirmed { 0%,70% { opacity:.48; } 100% { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .saved-run { animation:none; } }

body .pulse-button.pulse-primary, #panel :is(button,a).primary {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; box-sizing:border-box;
  min-height:44px; max-width:100%; padding:10px 17px; border:1px solid #d8b052; border-radius:7px;
  background:var(--sunflower); color:var(--surface-ink); text-decoration:none;
  box-shadow:inset 0 1px 0 #fff5; font:600 14px/1.35 var(--type-font); cursor:pointer;
}
@media (hover:hover) {
  body .pulse-button.pulse-primary:hover, #panel :is(button,a).primary:hover { background:#e7b748; border-color:#cda33e; }
}
body .pulse-button.pulse-primary:active, #panel :is(button,a).primary:active { background:#dfae44; box-shadow:inset 0 1px 2px #5e440b26; }
body .pulse-button.pulse-primary:focus-visible, #panel :is(button,a).primary:focus-visible { outline:3px solid #5474c4; outline-offset:3px; }
.pulse-primary .action-icon { flex:none; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }

.vote-figure { min-width:0; margin:0; padding:16px 18px 6px; background:#fff; color:#243650; border:1px solid #d5dce9; border-radius:10px; }
.vote-figure figcaption { display:grid; gap:5px; }
.vote-kicker { font:600 11px/1.4 var(--mono); color:#56667f; }
.vote-figure figcaption strong { font:650 16px/1.35 var(--type-font); }
.vote-labels { display:flex; align-items:end; justify-content:space-between; gap:8px; margin:16px 0 7px; }
.vote-labels span { font:650 14px/1.4 var(--type-font); }
.vote-labels small { display:block; color:#516177; font:400 12px/1.4 var(--type-font); font-variant-numeric:tabular-nums; }
.vote-labels span:last-child { text-align:right; }
.vote-share { --decisions:66.6667%; display:flex; overflow:hidden; border-radius:5px; margin-bottom:12px; }
.vote-share span { display:flex; align-items:center; box-sizing:border-box; min-height:32px; padding:0 9px; color:white; font:650 14px/1 var(--type-font); font-variant-numeric:tabular-nums; }
.decision-share { flex:none; width:var(--decisions); background:#465b98; transition:width .55s ease-in-out; }
.evidence-share { flex:1; justify-content:flex-end; border-left:2px solid white; background:#356b59; }
.vote-controls,.vote-snapshots { display:flex; align-items:center; gap:2px; }
.vote-controls { border-top:1px solid #e0e5ec; justify-content:space-between; flex-wrap:wrap; }
#pulse .vote-controls button { min-height:44px; padding:4px 6px; border:0; border-radius:0; background:transparent; color:#52637a; font:500 12px/1.4 var(--type-font); cursor:pointer; }
#pulse .vote-controls button[aria-pressed="true"] { color:#243650; box-shadow:inset 0 -2px #465b98; font-weight:650; }
#pulse .vote-play { text-decoration:underline; text-underline-offset:3px; }
@media (max-width:600px) { .pulse-example { gap:12px; } .vote-figure { padding-inline:12px; } }
@media (prefers-reduced-motion:reduce) { .decision-share { transition:none; } }


.handoff-demo{--hd-ink:#14213d;--hd-ink-soft:#4a5672;--hd-ivory:#f6f0e1;--hd-paper:#fffcf5;--hd-gold:#b98a2e;--hd-gold-ink:#7a5914;--hd-gold-wash:#f4e8c8;--hd-rule:rgba(20,33,61,.15);container-type:inline-size;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 10px;width:100%;min-width:245px;max-width:500px;margin:0;padding:10px;background:var(--hd-ivory);color:var(--hd-ink);border:1px solid var(--hd-rule);border-radius:12px;font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.handoff-demo *,.handoff-demo *::before,.handoff-demo *::after{box-sizing:border-box}
.handoff-demo p{margin:0}
.handoff-demo__stage{position:relative;grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
.handoff-demo__card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:8px;background:var(--hd-paper);border:1px solid var(--hd-rule);border-top:2px solid var(--hd-ink);border-radius:8px;box-shadow:0 1px 0 rgba(20,33,61,.04),0 8px 16px -12px rgba(20,33,61,.4)}
.handoff-demo__card--peer{background:#fcf9f1;border-top-color:var(--hd-ink-soft)}
.handoff-demo__eyebrow{padding-bottom:5px;border-bottom:1px solid var(--hd-rule);font-size:9px;font-weight:650;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;color:var(--hd-ink-soft);overflow-wrap:anywhere}
.handoff-demo__line{min-width:0;padding:4px 6px 5px;background:var(--hd-paper);border:1px solid var(--hd-rule);border-left-width:3px;border-radius:5px}
.handoff-demo__meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 6px;margin-bottom:2px}
.handoff-demo__label{font-size:9px;font-weight:600;line-height:1.25;letter-spacing:.08em;text-transform:uppercase;color:var(--hd-ink-soft)}
.handoff-demo__text{font-family:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;font-size:13px;font-weight:600;line-height:1.2;color:var(--hd-ink);overflow-wrap:anywhere}
.handoff-demo__text--muted{font-size:12px;font-weight:400;color:var(--hd-ink-soft)}
.handoff-demo__text--note{font-size:11.5px;font-weight:400;font-style:italic;line-height:1.25}
.handoff-demo__line--decision,.handoff-demo__line--received{background:var(--hd-gold-wash);border-color:rgba(185,138,46,.45);border-left-color:var(--hd-gold)}
.handoff-demo__line--private{background:repeating-linear-gradient(135deg,rgba(20,33,61,.05) 0 2px,transparent 2px 6px),var(--hd-paper);border-style:dashed;border-left-style:solid;border-color:rgba(20,33,61,.3);border-left-color:var(--hd-ink)}
.handoff-demo__line--existing{border-left-color:rgba(20,33,61,.22)}
.handoff-demo__stamp{display:inline-block;padding:0 4px;font-size:9px;font-weight:700;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;color:var(--hd-gold-ink);border:1px solid currentColor;border-radius:3px;transform:rotate(-2deg)}
.handoff-demo__keep{font-size:9px;font-weight:700;line-height:1.25;letter-spacing:.08em;text-transform:uppercase;color:var(--hd-ink)}
.handoff-demo__slot{display:grid;flex:1 1 auto;align-items:start}
.handoff-demo__slot>*{grid-area:1/1}
.handoff-demo__placeholder{display:flex;align-items:center;justify-content:center;align-self:stretch;min-height:100%;padding:5px;border:1px dashed rgba(20,33,61,.3);border-radius:5px;font-size:9px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;text-align:center;color:var(--hd-ink-soft);opacity:0}
.handoff-demo__flyer{position:absolute;left:0;top:0;z-index:2;margin:0;padding:3px 6px;font-family:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;color:var(--hd-ink);background:var(--hd-paper);border:1px solid var(--hd-gold);border-radius:4px;box-shadow:0 10px 18px -8px rgba(20,33,61,.45),0 0 0 3px rgba(185,138,46,.14);opacity:0;pointer-events:none;transform-origin:0 0;will-change:transform,opacity}
.handoff-demo__caption{grid-column:1;grid-row:2;min-width:0;font-size:11px;line-height:1.35;color:var(--hd-ink-soft)}
.handoff-demo__caption strong{font-weight:650;color:var(--hd-ink)}
.handoff-demo__replay{grid-column:2;grid-row:2;-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:3px 10px;font:inherit;font-size:11px;font-weight:600;line-height:1;color:var(--hd-ink);background:transparent;border:1px solid var(--hd-rule);border-radius:999px;cursor:pointer;transition:border-color .2s ease,background-color .2s ease}
.handoff-demo__replay:hover{border-color:var(--hd-ink);background:var(--hd-paper)}
.handoff-demo__replay:focus-visible{outline:2px solid var(--hd-gold);outline-offset:2px}
.handoff-demo__replay[hidden]{display:none}
@container (min-width:360px){.handoff-demo__stage{gap:14px}.handoff-demo__card{gap:7px;padding:9px 11px 10px}.handoff-demo__eyebrow{font-size:10px}.handoff-demo__label,.handoff-demo__stamp,.handoff-demo__keep,.handoff-demo__placeholder{font-size:9.5px}.handoff-demo__text,.handoff-demo__flyer{font-size:14.5px}.handoff-demo__text--muted{font-size:13px}.handoff-demo__text--note{font-size:12.5px}.handoff-demo__caption{font-size:12px}}
.handoff-demo.is-armed .handoff-demo__card--source,.handoff-demo.is-playing .handoff-demo__card--source{animation:hd-rise .45s cubic-bezier(.2,.7,.2,1) 0s both}
.handoff-demo.is-armed .handoff-demo__card--peer,.handoff-demo.is-playing .handoff-demo__card--peer{animation:hd-rise .45s cubic-bezier(.2,.7,.2,1) .12s both}
.handoff-demo.is-armed .handoff-demo__line--decision,.handoff-demo.is-playing .handoff-demo__line--decision{animation:hd-approve .5s ease-out .55s both}
.handoff-demo.is-armed .handoff-demo__stamp,.handoff-demo.is-playing .handoff-demo__stamp{animation:hd-stamp .42s cubic-bezier(.2,.9,.3,1.25) .72s both}
.handoff-demo.is-armed .handoff-demo__line--private,.handoff-demo.is-playing .handoff-demo__line--private{animation:hd-hold 1s ease-in-out 1.3s both}
.handoff-demo.is-armed .handoff-demo__keep,.handoff-demo.is-playing .handoff-demo__keep{animation:hd-fade .4s ease-out 1.45s both}
.handoff-demo.is-armed .handoff-demo__placeholder,.handoff-demo.is-playing .handoff-demo__placeholder{animation:hd-unfade .35s ease-in 1.95s both}
.handoff-demo.is-armed .handoff-demo__line--received,.handoff-demo.is-playing .handoff-demo__line--received{animation:hd-land .55s cubic-bezier(.2,.8,.2,1) 2.05s both}
.handoff-demo.is-armed *{animation-play-state:paused!important}
@keyframes hd-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes hd-approve{from{background-color:var(--hd-paper);border-color:var(--hd-rule);border-left-color:rgba(185,138,46,0)}}
@keyframes hd-stamp{0%{opacity:0;transform:rotate(-8deg) scale(1.6)}100%{opacity:1;transform:rotate(-2deg) scale(1)}}
@keyframes hd-hold{0%,100%{box-shadow:0 0 0 0 rgba(20,33,61,0)}40%{box-shadow:0 0 0 3px rgba(20,33,61,.14)}}
@keyframes hd-fade{from{opacity:0}to{opacity:1}}
@keyframes hd-unfade{from{opacity:1}to{opacity:0}}
@keyframes hd-land{0%{opacity:0;transform:scale(.97);box-shadow:0 0 0 0 rgba(185,138,46,0)}50%{opacity:1;transform:scale(1.015);box-shadow:0 0 0 4px rgba(185,138,46,.25)}100%{opacity:1;transform:none;box-shadow:0 0 0 0 rgba(185,138,46,0)}}
@media (prefers-reduced-motion:reduce){.handoff-demo *{animation:none!important;transition:none!important}.handoff-demo__flyer{display:none}.handoff-demo__replay{display:none!important}}
#pulse .pulse-example-disclosure { padding:0; border:0; margin:0; }
.pulse-example-disclosure summary { width:fit-content; max-width:100%; cursor:pointer; box-sizing:border-box; padding:12px 4px; min-height:44px; font:600 13px/1.45 var(--type-font); color:#3e5173; }
.pulse-example-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:16px; padding:0 0 12px; }
.pulse-example-detail p { margin:0; max-width:46ch; color:#52637a; font-size:14px; }
@media(max-width:600px) { .pulse-example-detail { grid-template-columns:1fr; gap:8px; } }
@media(prefers-reduced-motion:reduce) { .context-network .network-trace { animation:none; opacity:0; } .context-network .network-result { animation:none; } }

/* Reflow when the browser's preferred text size leaves little room per row. */
@media (max-width: 22em) {
  #pulse .pulse-controls { grid-template-columns: minmax(0,1fr) auto; }
  #pulse .pulse-controls .pulse-filter { grid-column: 1 / -1; }
  #pulse .pulse-controls > .pulse-button { grid-column: 1 / -1; width: auto; justify-self: start; }
  #pulse .pulse-controls .refresh-label { display: inline; }
  .activity-page .section-heading { display: flex; flex-wrap: wrap; }
  .activity-page .section-heading .controls { flex-wrap: wrap; min-width: 0; max-width: 100%; margin-inline-start: 0; }
  .activity-page .controls select { max-width: 100%; }
  .activity-page .controls #refresh { inline-size: var(--md-control-height); block-size: var(--md-control-height); }
  #connect pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .activity-page .data-footer { flex-wrap: wrap; }
  .activity-page .data-footer > span { white-space: normal; overflow-wrap: anywhere; }
}
