:root {
  --ink: #111827;
  --ink-soft: #425066;
  --paper: #f4f2ed;
  --panel: #ffffff;
  --line: #d8d5cf;
  --line-dark: #bec4cd;
  --coral: #bd351d;
  --coral-soft: #fee9e2;
  --blue: #0c5bc4;
  --blue-soft: #e5efff;
  --green: #147a57;
  --green-soft: #e0f4eb;
  --amber: #9a6500;
  --amber-soft: #fff3d5;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }
button, [role="button"] { touch-action: manipulation; }
button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(23, 105, 224, .34);
  outline-offset: 3px;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 144px 12px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 237, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brandline, .top-actions, .demo-state { display: flex; align-items: center; }
.brandline { gap: 12px; }
.brandline p { margin: 0; }
.product { font-size: 16px; font-weight: 760; letter-spacing: -.02em; }
.campaign { color: var(--ink-soft); font-size: 12px; }

.signal-mark {
  width: 38px;
  height: 38px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
}
.signal-mark i {
  display: block;
  height: 3px;
  border-radius: 99px;
  transform-origin: left center;
  background: var(--paper);
}
.signal-mark i:nth-child(1) { width: 45%; }
.signal-mark i:nth-child(2) { width: 72%; }
.signal-mark i:nth-child(3) { width: 100%; }

.top-actions { gap: 10px; }
.demo-state { gap: 7px; color: var(--ink-soft); font-size: 12px; }
.demo-state i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(215, 71, 40, .12);
}
.guide-button, .close-button, .secondary-button, .channel-button, .option-button {
  min-height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
}
.guide-button { padding: 9px 14px; font-size: 13px; font-weight: 700; }
.guide-button:hover, .secondary-button:hover, .channel-button:hover, .option-button:hover { border-color: var(--ink); }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px 96px; }

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  align-items: end;
  gap: 72px;
  padding: 84px 0 60px;
  border-bottom: 1px solid var(--line-dark);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}
.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 750;
}
.lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}
.principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.principles span {
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  background: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 700;
}
.hero-stats {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--ink);
}
.hero-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-dark);
}
.hero-stats dt { color: var(--ink-soft); font-size: 12px; }
.hero-stats dd { margin: 0; font-size: 30px; line-height: 1; font-weight: 760; letter-spacing: -.04em; }
.hero-stats div:last-child dd { color: var(--coral); }

.campaign-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 690px;
  margin-top: 58px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  overflow: clip;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(17, 24, 39, .08);
}
.stage-nav {
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  color: #fff;
  background: var(--ink);
}
.stage-nav-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 8px 18px; }
.stage-nav-head p, .stage-nav-head span { margin: 0; font-size: 10px; letter-spacing: .15em; }
.stage-nav-head p { color: #aeb9cb; }
.stage-nav-head span { color: #fff; }
.stage-nav ol { list-style: none; display: grid; gap: 5px; margin: 0; padding: 0; }
.stage-nav button {
  width: 100%; min-height: 66px;
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #bac4d4;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.stage-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.stage-nav button[aria-current="step"] {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
}
.stage-index {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #58667a;
  font-size: 10px;
}
.stage-nav button[aria-current="step"] .stage-index { border-color: var(--coral); background: var(--coral); }
.stage-label strong { display: block; font-size: 13px; color: inherit; }
.stage-label small { display: block; margin-top: 2px; color: #8794a8; font-size: 10px; }
.stage-nav button[aria-current="step"] small { color: #c6cfdd; }
.stage-note { margin: auto 8px 0; color: #8f9bae; font-size: 11px; line-height: 1.55; }

.stage-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 54px);
  background: #fff;
}
.panel-head { display: grid; grid-template-columns: 1fr minmax(230px, .58fr); gap: 42px; align-items: start; }
.step-tag { margin: 0 0 13px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.panel-head h2 { max-width: 650px; margin: 0; font-size: clamp(31px, 4vw, 50px); line-height: 1.02; letter-spacing: -.045em; }
.panel-summary { margin: 0; padding-top: 25px; border-top: 2px solid var(--ink); color: var(--ink-soft); font-size: 14px; }
.stage-body { flex: 1; margin-top: 42px; }
.stage-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
}
.stage-actions p { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: 11px; }
.stage-action-buttons { display: flex; gap: 8px; margin-left: auto; }
.primary-button, .secondary-button {
  min-height: 44px; padding: 10px 17px; border-radius: 8px; cursor: pointer; font-weight: 750;
}
.primary-button { border: 1px solid var(--ink); color: #fff; background: var(--ink); }
.primary-button:hover { background: #263248; }
.secondary-button { border: 1px solid var(--line-dark); background: #fff; }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .46; }

.contract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.contract-item { min-height: 140px; padding: 22px; border-bottom: 1px solid var(--line); }
.contract-item:nth-child(odd) { border-right: 1px solid var(--line); }
.contract-item:nth-last-child(-n+2) { border-bottom: 0; }
.mini-label { margin: 0 0 10px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.contract-item h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.2; }
.contract-item p:last-child { margin: 0; color: var(--ink-soft); font-size: 13px; }
.split-lane { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.lane { padding: 15px; border-radius: 9px; background: var(--blue-soft); }
.lane.outbound { background: var(--coral-soft); }
.lane strong { display: block; font-size: 12px; }
.lane span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 11px; }

.signal-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .75fr); gap: 20px; }
.signal-list { display: grid; gap: 9px; }
.signal-card {
  width: 100%; min-height: 86px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px;
  padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: pointer;
}
.signal-card:hover { border-color: var(--ink); }
.signal-card[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); background: #f8fbff; }
.signal-source { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--ink); font-size: 10px; font-weight: 800; }
.signal-card strong { display: block; font-size: 13px; }
.signal-card small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.strength { padding: 5px 8px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 800; white-space: nowrap; }
.strength.weak { color: var(--amber); background: var(--amber-soft); }
.signal-detail { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f6; }
.signal-detail h3 { margin: 0 0 10px; font-size: 18px; }
.signal-detail > p { margin: 0 0 18px; color: var(--ink-soft); font-size: 12px; }
.evidence-list { list-style: none; margin: 0; padding: 0; }
.evidence-list li { position: relative; margin-top: 12px; padding: 12px 0 0 20px; border-top: 1px solid var(--line); font-size: 11px; }
.evidence-list li::before { content: ""; position: absolute; top: 17px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.source-rule { margin-top: 18px; padding: 12px; border-radius: 7px; color: #fff; background: var(--ink); font-size: 10px; line-height: 1.55; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-card, .decision-card, .message-card, .guard-card, .metrics-card { border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.account-card { padding: 22px; }
.company-row { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.company-row h3 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.company-row p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; }
.fit-score { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-size: 15px; font-weight: 800; }
.account-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); }
.account-facts div { padding: 13px; background: #fff; }
.account-facts span { display: block; color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.account-facts strong { display: block; margin-top: 5px; font-size: 12px; }
.decision-card { padding: 22px; background: var(--ink); color: #fff; }
.decision-card .mini-label { color: #8fb5ff; }
.decision-card h3 { margin: 0 0 16px; font-size: 24px; }
.decision-card dl { margin: 0; }
.decision-card dl div { padding: 13px 0; border-top: 1px solid #38465a; }
.decision-card dt { color: #9ba8bb; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.decision-card dd { margin: 5px 0 0; font-size: 12px; }
.ready-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; padding: 7px 10px; border-radius: 99px; color: #a7f2d2; background: rgba(20,122,87,.25); font-size: 10px; font-weight: 800; }
.ready-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #54d6a3; }

.channel-tabs { display: flex; gap: 7px; margin-bottom: 13px; }
.channel-button { min-height: 40px; padding: 8px 13px; background: #fff; font-size: 11px; font-weight: 800; }
.channel-button[aria-pressed="true"] { border-color: var(--ink); color: #fff; background: var(--ink); }
.message-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(210px, .65fr); gap: 18px; }
.message-card { overflow: hidden; }
.message-head { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.message-head span { color: var(--ink-soft); font-size: 10px; }
.message-body { padding: 22px; }
.message-subject { margin: 0 0 18px; font-weight: 800; }
.message-copy { white-space: pre-line; margin: 0; color: #2f3b4d; font: 14px/1.7 Georgia, serif; }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.evidence-tags span { padding: 5px 8px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 750; }
.review-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f6; }
.review-card h3 { margin: 0 0 14px; font-size: 15px; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list li { display: flex; gap: 9px; margin-top: 10px; color: var(--ink-soft); font-size: 10px; }
.review-list li::before { content: "✓"; color: var(--green); font-weight: 900; }
.review-card button { width: 100%; margin-top: 19px; }
.approval-note { margin: 10px 0 0; color: var(--green); font-size: 10px; font-weight: 700; }

.guard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .7fr); gap: 18px; }
.guard-card { overflow: hidden; }
.guard-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.guard-row:last-child { border-bottom: 0; }
.guard-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 900; }
.guard-row strong { display: block; font-size: 12px; }
.guard-row small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 9px; }
.pass { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.gate-card { padding: 20px; border-radius: 11px; color: #fff; background: var(--ink); }
.gate-card h3 { margin: 0 0 7px; font-size: 19px; }
.gate-card > p { margin: 0; color: #aeb9cb; font-size: 11px; }
.gate-options { display: grid; gap: 7px; margin-top: 18px; }
.option-button { width: 100%; min-height: 45px; padding: 9px 12px; border-color: #49566a; color: #d9e0ea; background: transparent; font-size: 11px; font-weight: 700; }
.option-button[aria-pressed="true"] { border-color: #fff; color: var(--ink); background: #fff; }
.gate-result { min-height: 86px; margin-top: 13px; padding: 13px; border: 1px solid #3c495c; border-radius: 8px; }
.gate-result strong { display: block; font-size: 12px; }
.gate-result p { margin: 5px 0 0; color: #aeb9cb; font-size: 10px; }
.gate-result.blocked { border-color: #b94d38; background: rgba(215,71,40,.12); }
.gate-result.ready { border-color: #2a9c73; background: rgba(20,122,87,.13); }

.metrics-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 18px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.metric { padding: 18px; border-right: 1px solid var(--line); background: #fff; }
.metric:last-child { border-right: 0; }
.metric span { display: block; color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.metric strong { display: block; margin-top: 10px; font-size: 27px; line-height: 1; }
.reply-quality { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.reply-quality h3 { margin: 0 0 18px; font-size: 15px; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 28px; gap: 10px; align-items: center; margin-top: 11px; font-size: 10px; }
.bar-track { height: 8px; border-radius: 99px; background: #e7e8eb; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.bar-row:nth-child(3) i { background: var(--green); }
.bar-row:nth-child(4) i { background: var(--amber); }
.bar-row:nth-child(5) i { background: #9ca4b1; }
.learning-card { padding: 22px; border-radius: 11px; color: #fff; background: var(--ink); }
.learning-card h3 { margin: 0 0 14px; font-size: 21px; }
.learning-card > p { margin: 0; color: #b3bdcc; font-size: 11px; }
.learning-card ul { list-style: none; margin: 20px 0 0; padding: 0; }
.learning-card li { padding: 13px 0; border-top: 1px solid #3a4658; }
.learning-card li span { display: block; color: #8ea9d8; font-size: 9px; letter-spacing: .1em; }
.learning-card li strong { display: block; margin-top: 5px; font-size: 12px; }

.boundary { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; margin-top: 96px; padding-top: 54px; border-top: 1px solid var(--line-dark); }
.boundary h2 { max-width: 480px; margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1; letter-spacing: -.045em; }
.boundary header > p:last-child { max-width: 500px; margin: 22px 0 0; color: var(--ink-soft); }
.boundary-grid { display: grid; gap: 12px; }
.boundary-grid article { display: grid; grid-template-columns: 44px 1fr; gap: 17px; padding: 23px; border: 1px solid var(--line-dark); border-radius: 11px; background: rgba(255,255,255,.55); }
.boundary-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-weight: 850; }
.boundary-icon.auto { color: var(--blue); background: var(--blue-soft); }
.boundary-icon.human { color: var(--coral); background: var(--coral-soft); }
.boundary-grid h3 { margin: 0; font-size: 16px; }
.boundary-grid p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 20px; background: rgba(8, 13, 23, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal-backdrop[hidden] { display: none; }
.guide-modal { width: min(820px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(24px, 4vw, 42px); border-radius: 16px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.guide-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.guide-head h2 { margin: 0; font-size: clamp(32px, 5vw, 50px); line-height: 1; letter-spacing: -.045em; }
.close-button { width: 43px; flex: 0 0 43px; padding: 0; font-size: 0; position: relative; background: transparent; }
.close-button::before, .close-button::after { content: ""; position: absolute; top: 20px; left: 11px; width: 20px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.close-button::after { transform: rotate(-45deg); }
.guide-intro { max-width: 650px; margin: 23px 0 0; color: var(--ink-soft); font-size: 15px; }
.guide-steps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 30px 0 0; padding: 1px; background: var(--line); }
.guide-steps li { display: grid; grid-template-columns: 31px 1fr; gap: 11px; padding: 20px; background: var(--paper); }
.guide-steps li > span { color: var(--coral); font-size: 10px; font-weight: 800; }
.guide-steps h3 { margin: 0; font-size: 14px; }
.guide-steps p { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; }
.guide-start { margin-top: 24px; }
body.modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 42px; min-height: 0; padding-top: 68px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { display: block; padding: 14px 10px; border-right: 1px solid var(--line-dark); }
  .hero-stats div:last-child { border-right: 0; }
  .hero-stats dd { margin-top: 9px; }
  .campaign-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .stage-panel { padding: 30px; }
  .panel-head { grid-template-columns: 1fr; gap: 20px; }
  .panel-summary { padding-top: 15px; }
  .signal-layout, .account-grid, .message-layout, .guard-grid, .metrics-layout { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .boundary { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 64px; padding: 9px 116px 9px 15px; }
  .campaign { display: none; }
  .top-actions { gap: 7px; }
  .demo-state { display: none; }
  .guide-button { padding: 8px 10px; font-size: 11px; }
  main { padding: 0 14px 72px; }
  .hero { padding: 54px 0 40px; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .lede { font-size: 16px; }
  .hero-stats { display: grid; grid-template-columns: 1fr; }
  .hero-stats div { display: flex; padding: 13px 0; border-right: 0; }
  .hero-stats dd { margin-top: 0; font-size: 25px; }
  .campaign-shell { display: block; min-height: 0; margin-top: 36px; overflow: visible; border-radius: 12px; }
  .stage-nav { padding: 15px; border-radius: 11px 11px 0 0; }
  .stage-nav ol { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x mandatory; }
  .stage-nav li { flex: 0 0 135px; scroll-snap-align: start; }
  .stage-nav button { min-height: 57px; grid-template-columns: 26px 1fr; padding: 7px; }
  .stage-index { width: 25px; height: 25px; }
  .stage-label strong { font-size: 11px; }
  .stage-label small, .stage-note { display: none; }
  .stage-nav-head { padding: 0 3px 12px; }
  .stage-panel { min-height: 650px; padding: 28px 18px 22px; border-radius: 0 0 11px 11px; }
  .panel-head h2 { font-size: 34px; }
  .stage-body { margin-top: 30px; }
  .contract-grid { grid-template-columns: 1fr; }
  .contract-item, .contract-item:nth-child(odd), .contract-item:nth-last-child(-n+2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contract-item:last-child { border-bottom: 0; }
  .split-lane { grid-template-columns: 1fr; }
  .signal-card { grid-template-columns: 36px 1fr; }
  .signal-source { width: 34px; height: 34px; }
  .strength { grid-column: 2; justify-self: start; margin-top: -8px; }
  .account-facts { grid-template-columns: 1fr; }
  .message-body { padding: 18px; }
  .guard-row { grid-template-columns: 30px 1fr; }
  .guard-row .pass { grid-column: 2; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px; }
  .metric strong { font-size: 23px; }
  .bar-row { grid-template-columns: 82px 1fr 25px; }
  .stage-actions { align-items: flex-start; flex-direction: column; }
  .stage-action-buttons { width: 100%; margin: 0; }
  .stage-action-buttons button { flex: 1; }
  .boundary { margin-top: 70px; padding-top: 44px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-modal { max-height: calc(100vh - 20px); }
}

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