:root {
  color-scheme: light dark;
  --page: #f4f1e9;
  --page-deep: #e9e3d7;
  --panel: rgba(255, 255, 251, 0.82);
  --panel-solid: #fffef8;
  --ink: #161914;
  --muted: #686c61;
  --faint: #96998f;
  --line: rgba(26, 29, 23, 0.13);
  --line-strong: rgba(26, 29, 23, 0.25);
  --lime: #b9ff45;
  --lime-soft: rgba(185, 255, 69, 0.2);
  --violet: #715eea;
  --violet-soft: rgba(113, 94, 234, 0.12);
  --teal: #116c62;
  --orange: #f08a48;
  --rose: #e45b78;
  --shadow: 0 28px 80px rgba(52, 48, 39, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --page: #10120f;
  --page-deep: #171a15;
  --panel: rgba(27, 30, 24, 0.82);
  --panel-solid: #1c1f19;
  --ink: #f5f3e8;
  --muted: #a8aca0;
  --faint: #7e8278;
  --line: rgba(245, 243, 232, 0.13);
  --line-strong: rgba(245, 243, 232, 0.25);
  --lime-soft: rgba(185, 255, 69, 0.12);
  --violet-soft: rgba(143, 126, 255, 0.15);
  --violet: #9c8cff;
  --teal: #69c9ba;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 5%, var(--lime-soft), transparent 26rem),
    radial-gradient(circle at 92% 12%, var(--violet-soft), transparent 32rem),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image: radial-gradient(var(--line-strong) 0.65px, transparent 0.65px);
  background-size: 15px 15px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--violet) 55%, transparent); outline-offset: 2px; }

.portal-shell { width: min(1540px, 100%); margin: 0 auto; }
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
}
.portal-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 850; letter-spacing: -0.045em; }
.portal-brand > span:last-child { display: grid; }
.portal-brand em { color: var(--violet); font-style: normal; }
.portal-brand small { margin-top: -2px; color: var(--muted); font-size: 0.63rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.brand-orbit { position: relative; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; }
.brand-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(185, 255, 69, 0.72); }
.brand-orbit i:nth-child(1) { top: 1px; left: 16px; }
.brand-orbit i:nth-child(2) { right: 0; bottom: 5px; background: var(--violet); }
.brand-orbit i:nth-child(3) { bottom: 1px; left: 4px; background: var(--orange); }
.portal-topbar nav { display: flex; justify-content: center; gap: clamp(12px, 2vw, 28px); }
.portal-topbar nav a { color: var(--muted); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.portal-topbar nav a:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .quiet-button, .text-action { border: 0; background: transparent; cursor: pointer; }
.icon-button, .quiet-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.78rem; font-weight: 750; }
.icon-button { display: flex; gap: 7px; align-items: center; }

main { padding: 0 clamp(20px, 4vw, 64px) 72px; }
.login-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.58fr); gap: clamp(36px, 8vw, 120px); align-items: center; min-height: calc(100vh - 82px); padding: 64px 0; }
.login-story h1, .command-hero h1, .section-heading h2, .join-section h2, .agent-section h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.06em; line-height: 0.94; }
.login-story h1 { max-width: 760px; font-size: clamp(3.5rem, 7.8vw, 8rem); }
.login-story > p:last-of-type { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; }
.eyebrow, .card-label { margin: 0 0 14px; color: var(--violet); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 32px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--lime); }
.login-graphic { position: relative; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; max-width: 720px; margin-top: 54px; }
.login-graphic span { position: relative; z-index: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 0.76rem; font-weight: 800; box-shadow: 0 12px 28px rgba(20, 22, 17, 0.06); }
.login-graphic b { height: 1px; background: linear-gradient(90deg, var(--lime), var(--violet)); transform-origin: left; animation: signal-travel 2.8s ease-in-out infinite; }
.login-graphic i { position: absolute; left: 48%; top: -30px; color: var(--violet); font-size: 1.4rem; animation: float-signal 3.2s ease-in-out infinite; }
.glass-card, .panel-card { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(130%); }
.login-card { display: grid; gap: 17px; padding: clamp(28px, 4vw, 46px); border-radius: 28px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--panel-solid) 76%, transparent); color: var(--ink); padding: 12px 13px; line-height: 1.35; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; border: 0; border-radius: 999px; padding: 0 19px; text-decoration: none; font-size: 0.82rem; font-weight: 850; cursor: pointer; }
.primary-action { background: var(--lime); color: #11140e; box-shadow: 0 10px 28px rgba(137, 188, 42, 0.18); }
.primary-action:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(137, 188, 42, 0.24); }
.secondary-action { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.form-status { min-height: 1.2em; margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.form-status.is-error { color: var(--rose); }
.form-status.is-success { color: var(--teal); }
.inline-link { color: var(--violet); font-size: 0.78rem; font-weight: 750; }

.portal-app { animation: app-arrive 0.65s ease both; }
.command-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 0.85fr); gap: clamp(38px, 7vw, 100px); align-items: center; min-height: 650px; padding: 74px 0; }
.command-hero h1 { max-width: 780px; font-size: clamp(3.6rem, 7vw, 7.2rem); }
.command-hero > div:first-child > p:last-of-type { max-width: 700px; margin: 28px 0; color: var(--muted); font-size: 1.08rem; line-height: 1.68; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.text-action { color: var(--violet); font-size: 0.82rem; font-weight: 800; }
.signal-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 390px; padding: 44px; border: 1px solid var(--line); border-radius: 42% 58% 46% 54% / 55% 40% 60% 45%; background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--violet-soft) 42%, transparent)); box-shadow: var(--shadow); animation: portal-morph 12s ease-in-out infinite; }
.signal-map > div { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 122px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--panel-solid) 72%, transparent); backdrop-filter: blur(12px); }
.signal-map small { color: var(--violet); font-weight: 850; }
.signal-map strong { margin: 8px 0 4px; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.signal-map span { color: var(--muted); font-size: 0.76rem; }
.signal-map svg { position: absolute; inset: 25% 4%; width: 92%; fill: none; stroke: var(--lime); stroke-width: 2; opacity: 0.8; filter: drop-shadow(0 0 8px rgba(185, 255, 69, 0.45)); }
.signal-map circle { fill: var(--lime); }

.metric-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 112px; border-block: 1px solid var(--line); }
.metric-ribbon article { padding: 27px 24px; border-right: 1px solid var(--line); }
.metric-ribbon article:last-child { border-right: 0; }
.metric-ribbon small { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.metric-ribbon strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 2.8rem; font-weight: 500; line-height: 1; }

.portal-section, .split-section, .join-section { margin-bottom: 128px; scroll-margin-top: 112px; }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 38px; }
.section-heading h2, .join-section h2 { max-width: 830px; font-size: clamp(2.8rem, 5vw, 5.7rem); }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.65; }
.pipeline-board { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 14px; }
.pipeline-stage { min-height: 250px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.pipeline-stage header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pipeline-stage header strong { font-size: 0.72rem; text-transform: capitalize; }
.pipeline-stage header span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-size: 0.68rem; font-weight: 850; }
.pipeline-person { width: 100%; margin: 0 0 9px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-solid); color: var(--ink); text-align: left; cursor: pointer; }
.pipeline-person strong, .pipeline-person small { display: block; }
.pipeline-person strong { font-size: 0.78rem; }
.pipeline-person small { margin-top: 5px; color: var(--muted); font-size: 0.67rem; }
.pipeline-empty { color: var(--faint); font-size: 0.7rem; line-height: 1.5; }

.split-section { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 20px; }
.full-span { grid-column: 1 / -1; }
.panel-card { border-radius: 25px; padding: clamp(22px, 3vw, 34px); }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.panel-card h3 { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.035em; }
.role-builder { display: grid; gap: 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field-help { margin: -4px 0 2px; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.agent-chip, .human-chip, .count-badge, .status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 0.63rem; font-weight: 850; white-space: nowrap; }
.agent-chip { background: var(--violet-soft); color: var(--violet); }
.human-chip { background: var(--lime-soft); color: color-mix(in srgb, var(--teal) 72%, var(--ink)); }
.count-badge { justify-content: center; min-width: 28px; padding: 0 8px; background: var(--ink); color: var(--page); }
.role-list { display: grid; gap: 12px; max-height: 720px; overflow: auto; }
.role-row { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel-solid) 72%, transparent); }
.role-row header { display: flex; justify-content: space-between; gap: 15px; }
.role-row h4 { margin: 0; font-size: 0.95rem; }
.role-row p { margin: 9px 0 14px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.role-meta, .role-actions, .button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.role-meta span { color: var(--faint); font-size: 0.65rem; }
.role-actions { margin-top: 15px; }
.mini-button { min-height: 31px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 0.66rem; font-weight: 800; cursor: pointer; }
.mini-button.primary { background: var(--lime); color: #10130d; border-color: transparent; }
.mini-button.danger { color: var(--rose); }
.status-pill { background: var(--violet-soft); color: var(--violet); text-transform: capitalize; }
.status-pill.open, .status-pill.connected, .status-pill.accepted, .status-pill.sent { background: var(--lime-soft); color: var(--teal); }
.status-pill.closed, .status-pill.declined, .status-pill.withdrawn { background: color-mix(in srgb, var(--rose) 12%, transparent); color: var(--rose); }
.empty-state { padding: 34px 20px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); text-align: center; font-size: 0.78rem; line-height: 1.55; }

.room-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.candidate-card, .stage-card { grid-column: span 6; }
.message-card { grid-column: span 7; }
.evidence-card { grid-column: span 5; }
.offer-card { grid-column: span 12; }
.candidate-card .candidate-name { margin: 5px 0 9px; font-family: var(--serif); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.05em; }
.candidate-card p, .candidate-role-card p { color: var(--muted); line-height: 1.55; }
.candidate-card a, .candidate-role-card a { color: var(--violet); font-weight: 800; }
.stage-card { display: grid; gap: 15px; }
.message-thread, .evidence-list, .offer-list { display: grid; gap: 10px; max-height: 430px; overflow: auto; margin: 12px 0 20px; }
.message-bubble { max-width: 86%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: color-mix(in srgb, var(--panel-solid) 76%, transparent); }
.message-bubble.own { margin-left: auto; border-radius: 18px 18px 6px 18px; background: var(--violet-soft); }
.message-bubble.draft { border-style: dashed; opacity: 0.78; }
.message-bubble p { margin: 6px 0 0; white-space: pre-wrap; font-size: 0.82rem; line-height: 1.55; }
.message-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.61rem; }
.message-meta strong { color: var(--ink); }
.message-approve { margin-top: 10px; }
.evidence-card form, .offer-card form { display: grid; gap: 13px; }
.evidence-note, .offer-row { padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.evidence-note header, .offer-row header { display: flex; justify-content: space-between; gap: 12px; }
.evidence-note p, .offer-row p { color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.offer-terms { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: var(--muted); font-size: 0.71rem; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.agent-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr); gap: 72px; align-items: center; margin: 140px calc(clamp(20px, 4vw, 64px) * -1) 0; padding: clamp(64px, 8vw, 110px) clamp(28px, 8vw, 120px); border-radius: 44px 44px 0 0; background: #151812; color: #f7f4e9; }
.agent-section h2 { font-size: clamp(3rem, 5.6vw, 6.3rem); }
.agent-section > div:first-child > p:last-of-type { max-width: 720px; color: #aeb3a5; font-size: 1rem; line-height: 1.7; }
.endpoint-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; max-width: 720px; margin-top: 30px; padding: 10px 12px 10px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.05); }
.endpoint-box small { color: var(--lime); font-size: 0.6rem; font-weight: 850; letter-spacing: 0.11em; }
.endpoint-box code { overflow: hidden; color: #d6d9cf; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-box button { border: 0; border-radius: 999px; padding: 8px 12px; background: var(--lime); color: #12150f; font-size: 0.67rem; font-weight: 850; cursor: pointer; }
.agent-boundary-graphic { display: grid; gap: 15px; padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 38% 62% 58% 42% / 43% 40% 60% 57%; background: radial-gradient(circle at 50% 45%, rgba(185,255,69,.11), transparent 58%), rgba(255,255,255,.03); animation: portal-morph 13s ease-in-out infinite reverse; }
.agent-node, .approval-gate, .outcome-node { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 17px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.05); }
.agent-node span, .outcome-node span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(185,255,69,.12); color: var(--lime); }
.agent-node small, .approval-gate small, .outcome-node small { color: #aeb3a5; font-size: 0.68rem; }
.approval-gate { position: relative; margin-inline: 34px; border-color: rgba(185,255,69,.45); }
.approval-gate i { grid-row: span 2; width: 34px; height: 34px; border: 2px solid var(--lime); border-radius: 10px; box-shadow: 0 0 22px rgba(185,255,69,.2); }
.trust-strip { margin: 0 calc(clamp(20px, 4vw, 64px) * -1); padding: 24px clamp(28px, 8vw, 120px); background: var(--lime); color: #151812; }
.trust-strip p { max-width: 1200px; margin: 0 auto; font-size: 0.82rem; line-height: 1.6; }

.join-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr); gap: 60px; align-items: center; padding: 56px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(145deg, var(--violet-soft), transparent 70%); }
.join-section > div > p:last-child { max-width: 620px; color: var(--muted); line-height: 1.65; }
.join-card { display: grid; gap: 14px; padding: 28px; border-radius: 23px; }
.candidate-room-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.candidate-room-tile { display: grid; min-height: 240px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); text-align: left; cursor: pointer; }
.candidate-room-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.candidate-room-tile small { color: var(--violet); font-weight: 850; text-transform: uppercase; }
.candidate-room-tile h3 { margin: auto 0 8px; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; letter-spacing: -0.04em; }
.candidate-room-tile p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.candidate-room-tile footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.candidate-room-grid .candidate-role-card { grid-column: span 5; }
.candidate-room-grid .message-card { grid-column: span 7; }
.candidate-room-grid .candidate-offer-card { grid-column: span 12; }

.invitation-result { margin-top: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--lime-soft); }
.invitation-result code { display: block; margin: 8px 0; overflow-wrap: anywhere; font-size: 0.68rem; }

@keyframes signal-travel { 0%, 100% { transform: scaleX(.16); opacity: .35; } 55% { transform: scaleX(1); opacity: 1; } }
@keyframes float-signal { 0%, 100% { transform: translate3d(-8px, 0, 0) rotate(0); } 50% { transform: translate3d(12px, -8px, 0) rotate(18deg); } }
@keyframes portal-morph { 0%, 100% { border-radius: 42% 58% 46% 54% / 55% 40% 60% 45%; } 50% { border-radius: 56% 44% 60% 40% / 42% 59% 41% 58%; } }
@keyframes app-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .portal-topbar nav { display: none; }
  .portal-topbar { grid-template-columns: 1fr auto; }
  .login-stage, .command-hero, .agent-section, .join-section { grid-template-columns: 1fr; }
  .login-stage { min-height: auto; }
  .signal-map { width: min(680px, 100%); }
  .split-section { grid-template-columns: 1fr; }
  .role-builder, .role-list-panel { grid-column: 1; }
  .candidate-room-list { grid-template-columns: repeat(2, 1fr); }
  .agent-boundary-graphic { max-width: 620px; }
}

@media (max-width: 760px) {
  main { padding-inline: 16px; }
  .portal-topbar { min-height: 70px; padding-inline: 16px; }
  .portal-brand small, .icon-button [data-theme-label] { display: none; }
  .login-stage { padding-block: 45px; }
  .login-story h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .login-graphic { grid-template-columns: 1fr; justify-items: start; }
  .login-graphic b { width: 1px; height: 20px; margin-left: 25px; }
  .command-hero { min-height: auto; padding: 58px 0 72px; }
  .command-hero h1 { font-size: clamp(3.1rem, 14vw, 5.2rem); }
  .signal-map { grid-template-columns: 1fr; min-height: auto; padding: 22px; border-radius: 32px; animation: none; }
  .signal-map svg { display: none; }
  .metric-ribbon { grid-template-columns: repeat(2, 1fr); margin-bottom: 88px; }
  .metric-ribbon article:nth-child(2) { border-right: 0; }
  .metric-ribbon article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { display: grid; gap: 20px; }
  .section-heading h2, .join-section h2 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .field-grid { grid-template-columns: 1fr; }
  .candidate-card, .stage-card, .message-card, .evidence-card, .offer-card, .candidate-room-grid .candidate-role-card, .candidate-room-grid .message-card, .candidate-room-grid .candidate-offer-card { grid-column: 1 / -1; }
  .room-grid { grid-template-columns: 1fr; }
  .agent-section { margin-inline: -16px; padding-inline: 24px; border-radius: 28px 28px 0 0; }
  .agent-section h2 { font-size: clamp(2.8rem, 13vw, 4.7rem); }
  .endpoint-box { grid-template-columns: 1fr auto; }
  .endpoint-box small { grid-column: 1 / -1; }
  .trust-strip { margin-inline: -16px; padding-inline: 24px; }
  .join-section { padding: 28px 20px; }
  .candidate-room-list { grid-template-columns: 1fr; }
  .message-bubble { max-width: 94%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
