:root {
  color-scheme: light dark;
  --night: #0b101e;
  --night-top: #1a233d;
  --night-card: #131c31;
  --night-ink: #f3f6fb;
  --night-muted: #a4b0c6;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --surface-alt: #edf1f7;
  --ink: #111827;
  --muted: #556075;
  --rule: #dce2ec;
  --link: #22669e;
  --brand: #2f7fc3;
  --brand-soft: rgba(47, 127, 195, 0.11);
  --green: #2fb357;
  --amber: #e59312;
  --red: #ef4444;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b101e;
    --surface: #131b2e;
    --surface-alt: #19233a;
    --ink: #e8edf5;
    --muted: #96a2b8;
    --rule: #232f47;
    --link: #7ec0f8;
    --brand-soft: rgba(88, 166, 255, 0.14);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
code, pre { font-family: var(--mono); font-size: .87em; }

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--night-top), var(--night) 88%);
  color: var(--night-ink);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero a { color: #9fd0fa; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--night-ink) !important;
  text-decoration: none;
  font-weight: 680;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.top nav a { color: var(--night-muted); text-decoration: none; }
.top nav a:hover { color: var(--night-ink); }
.nav-btn {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--night-ink);
  font: 600 .88rem var(--sans);
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
}
.nav-btn:hover { background: rgba(255,255,255,.12); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 52px;
  align-items: center;
  padding: 32px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 600;
  color: #a8d4fb;
  background: rgba(47, 127, 195, 0.2);
  border: 1px solid rgba(134, 191, 238, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.55rem, 5.8vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.036em;
  font-weight: 720;
  margin: 0 0 22px;
  max-width: 11.5ch;
}

.lead {
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  line-height: 1.52;
  color: #cad3e4;
  max-width: 33em;
  margin: 0 0 30px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font: 600 1rem var(--sans);
  padding: 13px 22px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(47, 127, 195, 0.65);
  transition: transform .1s, filter .15s;
}
.btn-hero:hover { filter: brightness(1.07); }
.btn-hero:active { transform: scale(.99); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--night-ink) !important;
  font: 600 .96rem var(--sans);
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.13); }

.fine {
  margin: 22px 0 0;
  font-size: .9rem;
  color: var(--night-muted);
  max-width: 36em;
}

/* TITANIUM PHONE MOCKUP */
.phone {
  position: relative;
  justify-self: center;
  width: min(326px, 84vw);
  padding: 10px;
  border: 3px solid transparent;
  border-radius: 48px;
  background:
    linear-gradient(#050811, #050811) padding-box,
    linear-gradient(135deg, #9a9ea6, #44474e 24%, #202226 50%, #4c4f56 76%, #9a9ea6) border-box;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 40px 90px -20px rgba(0,0,0,.72);
}
.key {
  position: absolute;
  left: -6px;
  width: 4px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #6f737b, #383a40);
}
.key.act { top: 17%; height: 5%; }
.key.up { top: 25%; height: 8.5%; }
.key.down { top: 35.5%; height: 8.5%; }
.key.side {
  left: auto; right: -6px; top: 27%; height: 13%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #383a40, #6f737b);
}
.screen {
  background: radial-gradient(circle at 50% 0%, #1f3158, #0c1222 68%);
  border-radius: 38px;
  padding: 14px 13px 18px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f3f6fc;
}

.island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #000;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .74rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.island-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(47, 179, 87, .75);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(47, 179, 87, .75); }
  to { box-shadow: 0 0 0 9px rgba(47, 179, 87, 0); }
}

.phone-ladder {
  margin: 12px 0;
  display: grid;
  gap: 6px;
  font-size: .74rem;
}
.pl-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  color: #9aa7bf;
  border: 1px solid rgba(255,255,255,.06);
}
.pl-row.active {
  background: rgba(47, 127, 195, .24);
  border-color: rgba(126, 192, 248, .45);
  color: #fff;
  font-weight: 600;
}

.tg-card {
  background: rgba(19, 28, 49, 0.94);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 13px;
  font-size: .8rem;
  box-shadow: 0 18px 34px -12px rgba(0,0,0,.55);
}
.tg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: .72rem;
  color: #8fc6f9;
  font-weight: 600;
}
.tg-title { font-weight: 680; font-size: .87rem; line-height: 1.3; margin-bottom: 6px; }
.tg-meta {
  display: inline-block;
  font-size: .7rem;
  color: #86efac;
  background: rgba(34, 197, 94, .14);
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 9px;
}
.tg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tg-btns button {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #f1f5fb;
  border-radius: 9px;
  padding: 7px 6px;
  font: 600 .72rem var(--sans);
  cursor: pointer;
}
.tg-btns button:hover { background: rgba(47,127,195,.38); border-color: #7ec0f8; }
.tg-btns button.wide-btn { grid-column: 1 / -1; }
.phone-reply {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(47, 179, 87, 0.16);
  border: 1px solid rgba(47, 179, 87, 0.4);
  font-family: var(--mono);
  font-size: .7rem;
  color: #bbf7d0;
  display: none;
}
.phone-reply.show { display: block; }

/* SECTIONS */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
}
h3 { font-size: 1.13rem; line-height: 1.3; letter-spacing: -0.012em; margin: 0 0 6px; }
.intro { color: var(--muted); font-size: 1.08rem; max-width: 38em; margin: 0 0 42px; }

/* WEB WIZARD */
.wizard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 28px;
  align-items: start;
}
.wiz-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}
.wiz-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .92rem;
  flex: none;
}

.channel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.ch-btn {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.ch-btn b { display: block; font-size: .92rem; }
.ch-btn span { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.ch-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.ch-btn.disabled { opacity: .62; }

.channel-panel {
  padding: 16px;
  border-radius: 13px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: .93rem;
}
.tg-connect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.qr-box {
  width: 78px; height: 78px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  display: grid;
  place-items: center;
  font: 700 .72rem var(--mono);
  color: var(--muted);
  text-align: center;
  padding: 6px;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.input-row input, .field select, .field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: .93rem var(--sans);
}

.mode-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 11px;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}
.mode-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 .9rem var(--sans);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.mode-switch button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(47, 179, 87, 0.14);
  border: 1px solid rgba(47, 179, 87, 0.42);
  color: var(--green);
}

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.client-tabs button {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  font: 600 .84rem var(--sans);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.client-tabs button.active {
  border-color: var(--brand);
  color: var(--ink);
  background: var(--brand-soft);
}

.cmd {
  display: flex;
  margin: 0 0 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.cmd code {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--ink);
}
.cmd button {
  flex: none;
  border: 0;
  border-left: 1px solid var(--rule);
  background: var(--surface);
  color: var(--link);
  font: 600 .9rem var(--sans);
  padding: 0 18px;
  cursor: pointer;
}
.cmd button:hover { background: var(--surface-alt); }

.wiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-solid {
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font: 600 .95rem var(--sans);
  padding: 11px 18px;
  cursor: pointer;
}
.btn-outline {
  border: 1.5px solid var(--rule);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: 600 .95rem var(--sans);
  padding: 10px 16px;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--brand); }

/* RIGHT SIDEBAR: LIVE YAML + SIMULATOR */
.sticky-side { position: sticky; top: 20px; }
.yaml-card {
  background: #0d1322;
  color: #dbe6f6;
  border-radius: 16px;
  border: 1px solid #23304a;
  overflow: hidden;
  margin-bottom: 18px;
}
.yaml-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font: 600 .8rem var(--mono);
  color: #93a6c4;
}
.yaml-card pre {
  margin: 0;
  padding: 14px 16px;
  font-size: .8rem;
  line-height: 1.52;
  overflow-x: auto;
}

.sim-card {
  background: var(--surface);
  border: 1.5px solid var(--brand);
  border-radius: 16px;
  padding: 18px;
  display: none;
}
.sim-card.visible { display: block; }
.sim-terminal {
  margin-top: 12px;
  background: #0b101e;
  color: #a7f3d0;
  border-radius: 11px;
  padding: 12px;
  font: .78rem/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* TIMELINE (.trip from callmemcp aesthetic) */
.trip { list-style: none; margin: 0; padding: 0; max-width: 880px; }
.trip li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 28px; }
.trip .who { font-weight: 600; color: var(--muted); text-align: right; padding-top: 2px; font-size: .95rem; }
.trip .what { position: relative; border-left: 2px solid var(--rule); padding: 0 0 34px 28px; }
.trip li:last-child .what { border-left-color: transparent; padding-bottom: 0; }
.trip .what::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--paper);
}
.trip .you::before { background: var(--green); }
.trip p { margin: 0; }
.trip .said { font-size: 1.22rem; line-height: 1.42; letter-spacing: -0.01em; }
.trip pre {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* FEATURES & FAQ */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 60px;
  max-width: 940px;
}
.features p { margin: 0; color: var(--muted); }

.faq { max-width: 780px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 19px 40px 19px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 13px;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 42em; }

/* MODAL (Progressive Auth) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.68);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 16px;
  z-index: 50;
}
.modal-backdrop.open { display: grid; }
.modal {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 70px -15px rgba(0,0,0,.5);
}
.github-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: #161b22;
  color: #fff;
  font: 600 .96rem var(--sans);
  cursor: pointer;
  margin-bottom: 14px;
}
.divider {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin: 12px 0;
}

footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer p { margin: 0; }

/* COMPACT 3-HOP GRAPHICAL TEAM RELAY */
.team-relay-shell {
  background: linear-gradient(150deg, #0c1323 0%, #141f38 100%);
  border: 1px solid rgba(126, 192, 248, 0.22);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 16px;
  color: #edf2fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px -14px rgba(8,14,28,0.55);
}
.relay-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.relay-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 .66rem var(--mono);
  letter-spacing: .05em;
  color: #93b4db;
}
.relay-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.relay-invite-btn {
  border: 1px solid rgba(126, 192, 248, 0.32);
  background: rgba(47, 127, 195, 0.18);
  color: #bfe0ff;
  border-radius: 999px;
  padding: 3px 9px;
  font: 600 .71rem var(--sans);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.relay-invite-btn:hover {
  background: rgba(47, 127, 195, 0.35);
  border-color: #7ec0f8;
}
.relay-track {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.relay-node {
  position: relative;
  flex: 1 1 0;
  min-width: 112px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 8px 9px;
  transition: border-color .15s, background .15s, transform .15s;
}
.relay-node:hover {
  border-color: rgba(126, 192, 248, 0.45);
  background: rgba(255, 255, 255, 0.075);
}
.relay-node.empty {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  text-align: center;
}
.relay-node.empty:hover {
  border-color: #7ec0f8;
  background: rgba(47, 127, 195, 0.12);
}
.relay-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.relay-rank {
  font: 800 .6rem var(--mono);
  padding: 1px 5px;
  border-radius: 5px;
  letter-spacing: .04em;
}
.relay-rank.r1 { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.relay-rank.r2 { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
.relay-rank.r3 { background: rgba(251, 191, 36, 0.2); color: #fde68a; }
.relay-actions {
  display: inline-flex;
  gap: 3px;
}
.relay-icon-btn {
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: .68rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.relay-icon-btn:hover { background: rgba(126, 192, 248, 0.3); color: #fff; }
.relay-person {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.relay-avatar-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
}
.relay-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 1.5px solid rgba(255,255,255,0.22);
  display: grid;
  place-items: center;
  font: 700 .72rem var(--sans);
  color: #fff;
}
.relay-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #0e1629;
}
.relay-dot.ready { background: #22c55e; }
.relay-dot.pending { background: #f59e0b; }
.relay-meta { min-width: 0; flex: 1; }
.relay-handle {
  font: 650 .78rem var(--sans);
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.relay-ch-pills {
  display: flex;
  gap: 3px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.relay-ch-pill {
  font: 700 .56rem var(--mono);
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}
.relay-ch-pill.pend {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}
.relay-plus-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: #94a3b8;
  margin-bottom: 3px;
}
.relay-empty-lbl { font: 600 .72rem var(--sans); color: #94a3b8; }

.relay-wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 38px;
  position: relative;
}
.relay-delay-pill {
  border: 1px solid rgba(126, 192, 248, 0.35);
  background: #13203b;
  color: #93c5fd;
  border-radius: 999px;
  padding: 2px 6px;
  font: 700 .62rem var(--mono);
  cursor: pointer;
  z-index: 1;
  transition: transform .12s, border-color .12s;
}
.relay-delay-pill:hover {
  border-color: #7ec0f8;
  transform: scale(1.06);
}
.relay-wire-line {
  width: 100%;
  height: 2px;
  background: rgba(126, 192, 248, 0.25);
  margin-top: -9px;
  position: relative;
  overflow: hidden;
}
.relay-wire-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  animation: relayFlow 2.1s infinite linear;
}
@keyframes relayFlow {
  to { left: 100%; }
}
.relay-endcap {
  flex: none;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font: 600 .66rem var(--mono);
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
}
.relay-edit-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.relay-edit-input {
  width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid #60a5fa;
  background: #090f1d;
  color: #fff;
  font: .75rem var(--mono);
  outline: none;
}
.relay-edit-btns {
  display: flex;
  gap: 4px;
}
.relay-edit-btns button {
  flex: 1;
  border: 0;
  border-radius: 5px;
  padding: 3px 5px;
  font: 600 .66rem var(--sans);
  cursor: pointer;
}
.relay-save-mini { background: #2563eb; color: #fff; }
.relay-cancel-mini { background: rgba(255,255,255,0.1); color: #cbd5e1; }

.relay-roster {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: .7rem;
  color: #94a3b8;
}
.roster-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  font: 600 .7rem var(--sans);
  cursor: pointer;
}
.roster-chip:hover { border-color: #7ec0f8; background: rgba(47, 127, 195, 0.22); }
.roster-chip img { width: 16px; height: 16px; border-radius: 50%; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 60px; }
  .wizard-shell { grid-template-columns: minmax(0, 1fr); }
  .sticky-side { position: static; }
  .channel-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top nav .wide { display: none; }
  section { padding: 62px 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .trip li { grid-template-columns: minmax(0, 1fr); }
  .trip .who { text-align: left; border-left: 2px solid var(--rule); padding: 0 0 6px 28px; }
}
