:root {
  --ink: #26312a;
  --ink-soft: #526057;
  --ink-faint: #78847d;
  --paper: #f7f7f2;
  --paper-deep: #eef1ea;
  --white: #ffffff;
  --line: #dce2da;
  --line-strong: #c9d1c7;
  --sage-950: #26372d;
  --sage-900: #34483b;
  --sage-800: #425b4b;
  --sage-700: #587260;
  --sage-600: #6e8876;
  --sage-500: #89a08c;
  --sage-300: #bdcebc;
  --sage-200: #d4e0d2;
  --sage-100: #e7eee4;
  --sage-50: #f1f5ef;
  --mauve-950: #493c49;
  --mauve-900: #584759;
  --mauve-800: #6c566d;
  --mauve-700: #806881;
  --mauve-600: #997d99;
  --mauve-500: #ac91ab;
  --mauve-300: #d1bdd0;
  --mauve-200: #e3d4e1;
  --mauve-100: #f0e8ef;
  --mauve-50: #f8f3f7;
  --amber: #b57d32;
  --amber-soft: #f5e7cc;
  --red: #a65353;
  --red-soft: #f5dfdc;
  --shadow-sm: 0 1px 2px rgba(38, 55, 45, 0.04), 0 6px 18px rgba(38, 55, 45, 0.045);
  --shadow-md: 0 18px 45px rgba(38, 55, 45, 0.1);
  --shadow-lg: 0 32px 80px rgba(38, 55, 45, 0.15);
  --radius-sm: 8px;
  --radius: 13px;
  --radius-lg: 20px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: white;
  background: var(--sage-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(128, 104, 129, 0.42);
  outline-offset: 3px;
}

.section-pad {
  padding-right: max(40px, calc((100vw - 1280px) / 2));
  padding-left: max(40px, calc((100vw - 1280px) / 2));
}

.ecosystem-bar {
  position: relative;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 36px;
  padding: 6px max(40px, calc((100vw - 1280px) / 2));
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.ecosystem-kicker {
  color: var(--mauve-800);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.ecosystem-links a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.ecosystem-links a:hover,
.footer-ecosystem-links a:hover {
  color: var(--sage-900);
  text-decoration: underline;
}

.ecosystem-links a[aria-current="page"] {
  color: var(--sage-900);
  font-weight: 800;
}

.footer-ecosystem-links a {
  color: var(--sage-800);
  font-weight: 600;
  text-decoration: none;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 37px;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  padding: 0 max(40px, calc((100vw - 1280px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 9px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
  padding: 6px;
  background: var(--sage-900);
  border-radius: 7px;
  transform: rotate(-2deg);
}

.brand-mark span {
  width: 7px;
  height: 7px;
  background: var(--sage-200);
  border-radius: 2px;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  background: var(--mauve-300);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-product {
  padding-left: 2px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
}

.landing-nav a {
  transition: color 140ms ease;
}

.landing-nav a:hover {
  color: var(--mauve-800);
}

.site-header > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 39px;
  padding: 0 15px;
  font-size: 12px;
}

.button-quiet {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(38, 55, 45, 0.04);
  backdrop-filter: blur(10px);
}

.button-quiet:hover {
  border-color: var(--mauve-300);
  box-shadow: var(--shadow-sm);
}

.button-primary {
  color: white;
  background: var(--sage-900);
  box-shadow: 0 9px 24px rgba(52, 72, 59, 0.2);
}

.button-primary:hover {
  background: var(--sage-950);
  box-shadow: 0 12px 30px rgba(52, 72, 59, 0.28);
}

.button-light {
  color: var(--sage-950);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(20, 31, 23, 0.16);
}

.button-light:hover {
  background: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  min-height: 780px;
  padding-top: 156px;
  padding-bottom: 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 32%, rgba(212, 224, 210, 0.78), transparent 34%),
    radial-gradient(circle at 22% 74%, rgba(240, 232, 239, 0.82), transparent 28%),
    linear-gradient(180deg, #fbfbf7 0%, var(--paper) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--mauve-500);
  border: 2px solid var(--mauve-100);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(172, 145, 171, 0.14);
}

.hero h1 {
  margin: 25px 0 23px;
  color: var(--sage-950);
  font-size: clamp(62px, 6.1vw, 88px);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: -0.072em;
}

.hero h1 em,
.centered-heading h2 em {
  color: var(--mauve-700);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 555px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.text-link {
  padding-bottom: 4px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 680;
}

.text-link span {
  margin-left: 5px;
  color: var(--mauve-700);
}

.hero-proof {
  display: flex;
  gap: 23px;
  margin-top: 42px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.hero-proof span {
  position: relative;
  padding-left: 13px;
}

.hero-proof span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--sage-500);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 600px;
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.visual-glow-sage {
  top: 7%;
  right: -4%;
  width: 310px;
  height: 310px;
  background: rgba(137, 160, 140, 0.2);
}

.visual-glow-mauve {
  bottom: 5%;
  left: 12%;
  width: 260px;
  height: 260px;
  background: rgba(204, 182, 202, 0.25);
}

.route-window {
  position: relative;
  z-index: 2;
  width: min(100%, 585px);
  padding-bottom: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 209, 199, 0.88);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-2.5deg) rotateX(1deg);
  backdrop-filter: blur(18px);
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 46px;
  padding: 0 17px;
  color: var(--ink-faint);
  background: var(--sage-50);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  background: var(--sage-300);
  border-radius: 50%;
}

.window-dots span:nth-child(2) {
  background: var(--mauve-300);
}

.window-live {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  color: var(--sage-700);
}

.window-live i,
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--sage-600);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110, 136, 118, 0.12);
}

.route-stage {
  display: flex;
  align-items: center;
  gap: 13px;
  width: calc(100% - 58px);
  min-height: 69px;
  margin: 19px auto 0;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.route-stage > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.route-stage strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-stage small,
.mini-offer small {
  color: var(--ink-faint);
  font-size: 9px;
}

.stage-kicker {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stage-icon {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.stage-icon-app {
  color: var(--mauve-800);
  background: var(--mauve-100);
}

.stage-icon-client {
  color: var(--sage-950);
  background: var(--sage-100);
}

.stage-icon-target {
  color: white;
  background: var(--mauve-800);
}

.stage-status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-status-neutral {
  color: var(--ink-faint);
  background: var(--paper-deep);
}

.stage-status-sage {
  color: var(--sage-800);
  background: var(--sage-100);
}

.stage-status-warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.route-connector {
  position: relative;
  display: flex;
  justify-content: center;
  width: calc(100% - 58px);
  height: 22px;
  margin: 0 auto -19px;
}

.route-connector i {
  width: 1px;
  height: 100%;
  background: var(--line-strong);
}

.route-connector span {
  position: absolute;
  top: 7px;
  left: calc(50% + 9px);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
}

.registry-stage {
  display: block;
  padding: 14px;
  background: var(--sage-50);
}

.registry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.registry-heading > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-count {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
}

.mini-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid transparent;
  border-radius: 8px;
}

.mini-offer + .mini-offer {
  margin-top: 6px;
}

.mini-offer > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.mini-offer-selected {
  background: white;
  border-color: var(--sage-300);
  box-shadow: 0 4px 13px rgba(52, 72, 59, 0.07);
}

.mini-offer-muted {
  opacity: 0.72;
}

.offer-node {
  width: 9px;
  height: 9px;
  border: 2px solid white;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.offer-node-mauve {
  background: var(--mauve-500);
}

.offer-node-sage {
  background: var(--sage-600);
}

.selected-connector i {
  background: var(--sage-500);
}

.target-stage {
  border-color: var(--mauve-300);
  box-shadow: 0 8px 20px rgba(108, 86, 109, 0.1);
}

.route-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: white;
  background: var(--sage-600);
  border-radius: 50%;
  font-size: 11px;
}

.steps-section {
  padding-top: 120px;
  padding-bottom: 130px;
  background: white;
}

.section-heading h2 {
  margin: 14px 0 0;
  color: var(--sage-950);
  font-size: clamp(42px, 4.3vw, 60px);
  font-weight: 710;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-number {
  color: var(--mauve-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 80px;
}

.split-heading > p {
  max-width: 470px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 75px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps-grid li {
  position: relative;
  min-height: 315px;
  padding: 29px 25px 20px 0;
  border-right: 1px solid var(--line);
}

.steps-grid li:not(:first-child) {
  padding-left: 25px;
}

.steps-grid li:last-child {
  padding-right: 0;
  border-right: 0;
}

.step-number {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 9px;
}

.step-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 39px 0 29px;
  place-items: center;
  color: var(--sage-800);
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.steps-grid li:nth-child(even) .step-symbol {
  color: var(--mauve-800);
  background: var(--mauve-100);
  border-color: var(--mauve-200);
}

.steps-grid h3 {
  margin: 0 0 13px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.steps-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.steps-grid code {
  color: var(--mauve-800);
  font-family: var(--mono);
  font-size: 10px;
}

.possibilities-section {
  padding-top: 120px;
  padding-bottom: 130px;
  background:
    radial-gradient(circle at 10% 30%, rgba(227, 212, 225, 0.45), transparent 24%),
    radial-gradient(circle at 88% 68%, rgba(212, 224, 210, 0.58), transparent 25%),
    var(--paper);
}

.centered-heading {
  max-width: 800px;
  margin: 0 auto 70px;
  text-align: center;
}

.centered-heading > p {
  max-width: 580px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.possibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.capability-status {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.status-current { background: #dce8da; color: #34503d; }
.status-live { background: #ccefe7; color: #164f43; border: 1px solid #79d0c0; }
.status-planned { background: #eaddeb; color: #503a55; }
.status-exploratory { background: #f5e4c5; color: #795023; }
.landing-status-note { color: var(--ink-soft); line-height: 1.7; }
.landing-status-note .capability-status { margin: 0 8px 8px 0; }
.possibility-card.capability-card { min-height: 270px; }
.capability-card h3 { margin-top: 24px; }
.roadmap-section { background: var(--paper); }
.process-example ol { padding: 20px 32px 20px 48px; }
.process-example li { padding: 12px 0; line-height: 1.7; }
.process-example strong, .process-example li span { display: block; }
.process-example li span { color: #c9d4cb; font-size: 14px; }
.process-example .code-titlebar { flex-wrap: wrap; gap: 8px; padding: 14px 17px; }
.harper-copy p { color: var(--ink-soft); line-height: 1.8; }
.harper-copy a { text-decoration: underline; text-underline-offset: 3px; }
#landing-view section[id] { scroll-margin-top: 24px; }

.possibility-card {
  position: relative;
  min-height: 415px;
  padding: 35px 37px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.possibility-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.possibility-card::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  background: var(--sage-100);
  border-radius: 50%;
  content: "";
  opacity: 0.62;
}

.card-vertex::after,
.card-hybrid::after {
  background: var(--mauve-100);
}

.possibility-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 44px;
}

.card-index {
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
}

.possibility-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  border-radius: 14px;
}

.device-icon i {
  position: absolute;
  inset: 13px 10px 15px;
  border: 2px solid var(--sage-700);
  border-radius: 4px;
}

.device-icon i::before {
  position: absolute;
  right: 7px;
  bottom: -7px;
  left: 7px;
  height: 2px;
  background: var(--sage-700);
  content: "";
}

.sun-icon i {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 -10px 0 -8px var(--amber), 0 10px 0 -8px var(--amber), 10px 0 0 -8px var(--amber), -10px 0 0 -8px var(--amber);
}

.cloud-icon,
.hybrid-icon {
  background: var(--mauve-100);
  border-color: var(--mauve-200);
}

.cloud-icon i {
  position: absolute;
  right: 10px;
  bottom: 14px;
  left: 10px;
  height: 15px;
  border: 2px solid var(--mauve-700);
  border-radius: 12px;
}

.cloud-icon i::before {
  position: absolute;
  top: -11px;
  left: 8px;
  width: 15px;
  height: 15px;
  background: var(--mauve-100);
  border: 2px solid var(--mauve-700);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  content: "";
}

.hybrid-icon i,
.hybrid-icon b {
  position: absolute;
  top: 13px;
  width: 16px;
  height: 28px;
  border: 2px solid var(--mauve-700);
  border-radius: 4px;
}

.hybrid-icon i {
  left: 9px;
}

.hybrid-icon b {
  right: 9px;
  border-color: var(--sage-700);
}

.hybrid-icon::after {
  position: absolute;
  top: 26px;
  left: 25px;
  width: 5px;
  height: 2px;
  background: var(--ink-faint);
  content: "";
}

.possibility-label {
  color: var(--mauve-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.possibility-card h3 {
  margin: 9px 0 13px;
  color: var(--sage-950);
  font-size: 29px;
  letter-spacing: -0.045em;
}

.possibility-card > p {
  max-width: 480px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.card-route {
  position: absolute;
  z-index: 2;
  right: 37px;
  bottom: 75px;
  left: 37px;
  display: flex;
  align-items: center;
}

.card-route span,
.fork-route span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 9px;
}

.card-route i {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.fork-route {
  position: absolute;
  z-index: 2;
  right: 37px;
  bottom: 65px;
  left: 37px;
  display: flex;
  align-items: center;
}

.fork-route > i {
  width: 44px;
  height: 1px;
  background: var(--line-strong);
}

.fork-route > div {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding-left: 25px;
}

.fork-route > div::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.fork-route > div span {
  position: relative;
}

.fork-route > div span::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 25px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.card-chips {
  position: absolute;
  bottom: 30px;
  left: 37px;
  display: flex;
  gap: 7px;
}

.card-chips span {
  padding: 5px 8px;
  color: var(--sage-700);
  background: var(--sage-50);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-vertex .card-chips span,
.card-hybrid .card-chips span {
  color: var(--mauve-700);
  background: var(--mauve-50);
}

.client-section {
  padding-top: 110px;
  padding-bottom: 110px;
  background: white;
}

.client-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  padding: 76px;
  color: white;
  background:
    radial-gradient(circle at 8% 100%, rgba(128, 104, 129, 0.45), transparent 35%),
    linear-gradient(135deg, var(--sage-950), var(--sage-900));
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(38, 55, 45, 0.17);
}

.light-number {
  color: var(--mauve-300);
}

.client-copy h2 {
  margin: 17px 0 22px;
  font-size: clamp(42px, 4vw, 57px);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.client-copy > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: 14px;
  line-height: 1.75;
}

.operation-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px !important;
}

.operation-examples span {
  padding: 6px 8px;
  color: var(--sage-200);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 8px;
}

.client-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 31px 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.client-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 63px;
  padding: 16px 10px 10px 0;
  color: rgba(255, 255, 255, 0.83);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  line-height: 1.45;
}

.client-points li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.client-points li:nth-child(even) {
  padding-left: 15px;
}

.client-points span {
  color: var(--mauve-300);
  font-family: var(--mono);
  font-size: 8px;
}

.client-code {
  align-self: center;
  overflow: hidden;
  background: #202c24;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 25px 60px rgba(14, 20, 16, 0.35);
}

.code-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 17px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--mono);
  font-size: 10px;
}

.code-language {
  color: var(--sage-300);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-code pre {
  min-height: 390px;
  margin: 0;
  padding: 31px 28px;
  overflow: auto;
  color: #e4e9e3;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
}

.code-muted {
  color: #78877c;
}

.code-key {
  color: var(--mauve-300);
}

.code-string {
  color: #b6d0b8;
}

.code-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  color: #8fa091;
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 8px;
}

.landing-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  align-items: end;
  gap: 80px;
  padding-top: 110px;
  padding-bottom: 110px;
  background: var(--mauve-100);
}

.landing-cta h2 {
  margin: 15px 0 0;
  color: var(--mauve-950);
  font-size: clamp(43px, 4.4vw, 63px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.landing-cta p {
  margin: 0 0 26px;
  color: var(--mauve-800);
  font-size: 14px;
  line-height: 1.7;
}

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

.cta-secondary {
  padding-bottom: 4px;
  color: var(--mauve-800);
  border-bottom: 1px solid var(--mauve-300);
  font-size: 11px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 110px;
  color: var(--ink-faint);
  background: var(--paper);
  font-size: 10px;
}

.site-footer > span {
  justify-self: end;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.site-footer p strong {
  color: var(--sage-800);
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* Console */
.console-view {
  min-height: 100vh;
  background: #f4f5f1;
}

.console-sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 228px;
  padding: 27px 18px 20px;
  color: rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 15% 88%, rgba(128, 104, 129, 0.35), transparent 36%),
    var(--sage-950);
}

.sidebar-brand {
  margin: 0 9px 38px;
  color: white;
}

.brand-mark-light {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.console-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.console-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 610;
  transition: background 150ms ease, color 150ms ease;
}

.console-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.console-nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.115);
  box-shadow: inset 3px 0 0 var(--mauve-300);
}

.nav-icon {
  position: relative;
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  opacity: 0.75;
}

.active .nav-icon {
  opacity: 1;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
}

.nav-grid i {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.nav-stack i {
  position: absolute;
  left: 2px;
  width: 13px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.nav-stack i:nth-child(1) { top: 1px; }
.nav-stack i:nth-child(2) { top: 7px; }
.nav-stack i:nth-child(3) { top: 13px; }

.nav-route i {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nav-route i:nth-child(1) { top: 0; left: 0; }
.nav-route i:nth-child(2) { top: 6px; right: 0; }
.nav-route i:nth-child(3) { bottom: 0; left: 1px; }

.nav-route::after {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  content: "";
  transform: rotate(-20deg);
}

.nav-pulse i,
.nav-pulse::before,
.nav-pulse::after {
  position: absolute;
  top: 7px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.nav-pulse i { left: 0; }
.nav-pulse::before { left: 7px; }
.nav-pulse::after { right: 0; }

.nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 7px;
  text-align: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
}

.nav-broker {
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.sidebar-bottom {
  margin-top: auto;
}

.readonly-panel {
  display: flex;
  gap: 11px;
  margin-bottom: 17px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
}

.readonly-panel > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.readonly-panel strong {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.readonly-panel small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 11px;
  line-height: 1.5;
}

.lock-icon {
  position: relative;
  flex: 0 0 15px;
  width: 15px;
  height: 12px;
  margin-top: 6px;
  border: 1.5px solid var(--mauve-300);
  border-radius: 3px;
}

.lock-icon::before {
  position: absolute;
  top: -7px;
  left: 3px;
  width: 6px;
  height: 7px;
  border: 1.5px solid var(--mauve-300);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.back-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.back-link:hover {
  color: white;
}

.console-main {
  min-height: 100vh;
  margin-left: 228px;
}

.console-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 79px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.console-breadcrumb {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 12px;
}

.console-breadcrumb strong {
  color: var(--ink-soft);
}

.console-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.global-search,
.table-search {
  position: relative;
  display: flex;
  align-items: center;
}

.global-search > span,
.table-search > span {
  position: absolute;
  left: 13px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
}

.global-search > span::after,
.table-search > span::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  background: var(--ink-faint);
  content: "";
  transform: rotate(45deg);
}

.global-search input {
  width: 220px;
  height: 38px;
  padding: 0 37px 0 35px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  outline: 0;
}

.global-search input:focus,
.table-search input:focus,
.filter-bar select:focus,
.route-form select:focus {
  border-color: var(--mauve-500);
  box-shadow: 0 0 0 3px rgba(172, 145, 171, 0.13);
}

.global-search kbd {
  position: absolute;
  right: 9px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--ink-faint);
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
}

.readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  color: var(--mauve-800);
  background: var(--mauve-100);
  border: 1px solid var(--mauve-200);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
}

.readonly-badge i {
  width: 6px;
  height: 6px;
  background: var(--mauve-500);
  border-radius: 50%;
}

.avatar-button {
  width: 34px;
  height: 34px;
  color: white;
  background: var(--sage-800);
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
}

.console-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 30px 35px;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 20px;
  padding: 0 16px;
  color: var(--mauve-800);
  background: var(--mauve-100);
  border: 1px solid var(--mauve-200);
  border-radius: 9px;
  font-size: 13px;
}

.demo-banner p {
  flex: 1;
  margin: 0;
}

.demo-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: white;
  background: var(--mauve-600);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.demo-banner button {
  color: var(--mauve-700);
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.console-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}

.console-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
}

.console-tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.console-tab-btn.active {
  color: var(--sage-950);
  background: white;
  border-color: var(--line-strong);
  box-shadow: 0 2px 6px rgba(38, 55, 45, 0.06);
  font-weight: 750;
}

.tab-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  color: var(--ink-soft);
  background: var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.console-tab-btn.active .tab-badge {
  background: var(--sage-100);
  color: var(--sage-800);
}

.console-tab-panel {
  display: block;
}

.console-tab-panel[hidden] {
  display: none !important;
}

.console-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 17px;
}

.section-overline {
  color: var(--mauve-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.console-section-heading h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.updated-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.updated-label i {
  width: 6px;
  height: 6px;
  background: var(--sage-600);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--sage-100);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.summary-card {
  position: relative;
  min-height: 120px;
  padding: 18px 20px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.summary-card::after {
  position: absolute;
  top: -22px;
  right: -18px;
  width: 75px;
  height: 75px;
  background: var(--sage-50);
  border-radius: 50%;
  content: "";
}

.summary-card:nth-child(even)::after {
  background: var(--mauve-50);
}

.summary-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--sage-700);
  background: var(--sage-100);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.summary-card:nth-child(even) .summary-symbol {
  color: var(--mauve-700);
  background: var(--mauve-100);
}

.summary-value {
  display: block;
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.summary-detail {
  color: var(--ink-faint);
  font-size: 12px;
}

.summary-detail strong {
  color: var(--sage-700);
  font-weight: 740;
}

.console-grid {
  display: grid;
  gap: 16px;
}

.topology-grid {
  display: block;
  margin-bottom: 20px;
}

.topology-grid .network-card {
  width: 100%;
}

.overview-grid {
  grid-template-columns: minmax(0, 1.68fr) minmax(270px, 0.72fr);
  margin-bottom: 14px;
}

.console-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 68px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.card-header h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-header p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-available { background: var(--sage-600); }
.legend-busy { background: var(--amber); }

.network-column-labels {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.9fr) minmax(360px, 1.6fr);
  gap: 24px;
  padding: 12px 20px 9px;
  color: var(--ink-faint);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network-map {
  padding: 10px 18px 16px;
}

.provider-lane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.9fr) minmax(360px, 1.6fr);
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.provider-lane:last-child {
  border-bottom: 0;
}

.provider-lane::before,
.provider-lane::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.provider-lane::before {
  left: 28%;
  width: 3%;
}

.provider-lane::after {
  left: 55%;
  width: 3%;
}

.provider-cell,
.agent-cell,
.lane-offers {
  position: relative;
  z-index: 1;
}

.provider-cell,
.agent-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.provider-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--sage-700);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.provider-lane:nth-child(even) .provider-avatar {
  background: var(--mauve-700);
}

.provider-cell > span,
.agent-cell > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.provider-cell strong,
.agent-cell strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-cell small,
.agent-cell small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-glyph {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-glyph::before,
.agent-glyph::after {
  position: absolute;
  left: 8px;
  width: 16px;
  height: 7px;
  border: 1.5px solid var(--sage-700);
  border-radius: 2px;
  content: "";
}

.agent-glyph::before { top: 7px; }
.agent-glyph::after { bottom: 7px; }

.agent-live-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: var(--sage-600);
  border: 2px solid white;
  border-radius: 50%;
}

.lane-offers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lane-offer {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease;
}

.lane-offer:hover {
  background: var(--sage-50);
  border-color: var(--sage-300);
}

.lane-offer > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lane-offer.available > i { background: var(--sage-600); }
.lane-offer.busy > i { background: var(--amber); }
.lane-offer.draining > i { background: var(--mauve-600); }
.lane-offer.offline > i { background: var(--red); }

.lane-offer strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 670;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lane-offer span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.health-ring {
  position: relative;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 3px solid var(--sage-200);
  border-top-color: var(--sage-600);
  border-radius: 50%;
}

.health-ring i {
  width: 7px;
  height: 7px;
  background: var(--sage-600);
  border-radius: 50%;
}

.registry-hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 24px 16px 20px;
  text-align: center;
}

.registry-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: var(--sage-800);
  background: var(--sage-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 770;
}

.registry-status i {
  width: 7px;
  height: 7px;
  background: var(--sage-600);
  border-radius: 50%;
}

.registry-hero strong {
  font-size: 16px;
  font-weight: 700;
}

.registry-hero small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 12px;
}

.registry-details {
  margin: 0;
  padding: 0 20px;
}

.registry-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-top: 1px solid var(--line);
}

.registry-details dt,
.registry-details dd {
  margin: 0;
  font-size: 13px;
}

.registry-details dt { color: var(--ink-faint); }
.registry-details dd { color: var(--ink-soft); font-family: var(--mono); }

.soft-warning {
  padding: 4px 8px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
}

.storage-live-tag {
  display: inline-block;
  padding: 4px 8px;
  color: #164f43;
  background: #ccefe7;
  border: 1px solid #79d0c0;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
}

.capacity-block {
  margin: 16px 20px 20px;
  padding: 14px;
  background: var(--sage-50);
  border-radius: 9px;
}

.capacity-block > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 12px;
}

.capacity-block strong {
  color: var(--sage-800);
  font-family: var(--mono);
}

.capacity-track {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--sage-200);
  border-radius: 999px;
}

.capacity-track i {
  display: block;
  width: 67%;
  height: 100%;
  background: linear-gradient(90deg, var(--sage-600), var(--mauve-500));
  border-radius: inherit;
  transition: width 350ms ease;
}

/* Side-by-side status cards */
.status-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.broker-summary-card {
  display: flex;
  flex-direction: column;
}

.broker-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.broker-summary-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.broker-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.broker-metric {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.broker-metric .metric-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.broker-metric .metric-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.broker-metric .metric-val.mono {
  font-family: var(--mono);
  color: var(--sage-800);
}

.rules-summary-box {
  padding: 14px 16px;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: 8px;
}

.rules-box-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sage-800);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rules-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.rules-list .rule-icon {
  font-size: 14px;
}

.redteam-status-box {
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 12px;
  color: #166534;
}

/* HarperDB Broker & Policy Panel */
.broker-full-panel {
  margin-bottom: 20px;
}

.broker-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  color: #164f43;
  background: #ccefe7;
  border: 1px solid #79d0c0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.broker-status-tag i {
  width: 7px;
  height: 7px;
  background: #0f766e;
  border-radius: 50%;
}

.broker-panel-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.broker-overview-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.broker-info-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.info-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--mauve-700);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.broker-info-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.broker-info-card p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.broker-meta-list {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.broker-meta-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.broker-meta-list div:last-child {
  border-bottom: 0;
}

.broker-meta-list dt {
  margin: 0;
  color: var(--ink-faint);
}

.broker-meta-list dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
}

.broker-rules-detailed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.broker-rules-detailed li {
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.broker-rules-detailed strong {
  font-size: 14px;
  color: var(--ink);
  font-family: var(--mono);
}

.broker-rules-detailed span {
  font-size: 12px;
  color: var(--ink-soft);
}

.broker-rules-detailed code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 4px;
}

.rule-badge {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.rule-block {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.rule-guard {
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #fef08a;
}

.red-team-section {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.red-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.red-team-header h4 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.red-team-header p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.verdict-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.verdict-tag.safe {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.red-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.red-team-item {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vector-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.vector-status {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
}

.vector-status.passed {
  color: #15803d;
  background: #dcfce7;
}

.red-team-item small {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.4;
}

.offers-card {
  margin-bottom: 20px;
  overflow: hidden;
}

.offers-header {
  align-items: center;
}

.offer-actions {
  display: flex;
  gap: 8px;
}

.button-icon,
.disabled-action {
  min-height: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}

.button-icon {
  width: 36px;
  cursor: pointer;
}

.button-icon:hover {
  color: var(--mauve-800);
  border-color: var(--mauve-300);
}

.disabled-action {
  padding: 0 14px;
  color: var(--ink-faint);
  cursor: not-allowed;
  opacity: 0.58;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.table-search {
  flex: 1;
  min-width: 220px;
}

.table-search input,
.filter-bar select,
.route-form select {
  height: 38px;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  outline: 0;
}

.table-search input {
  width: 100%;
  padding: 0 14px 0 38px;
}

.filter-bar select {
  min-width: 130px;
  padding: 0 28px 0 12px;
}

.clear-filters {
  color: var(--mauve-700);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  height: 40px;
  padding: 0 14px;
  color: var(--ink-faint);
  background: #fbfbf8;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 770;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

th:nth-child(1) { width: 23%; padding-left: 20px; }
th:nth-child(2) { width: 14%; }
th:nth-child(3) { width: 11%; }
th:nth-child(4) { width: 12%; }
th:nth-child(5) { width: 15%; }
th:nth-child(6) { width: 10%; }
th:nth-child(7) { width: 10%; }
th:nth-child(8) { width: 5%; }

td {
  height: 64px;
  padding: 10px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}

td:first-child {
  padding-left: 20px;
}

tbody tr {
  cursor: pointer;
  transition: background 120ms ease;
}

tbody tr:hover,
tbody tr:focus-within {
  background: var(--sage-50);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.offer-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.target-glyph {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--sage-800);
  background: var(--sage-100);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.target-glyph.cloud {
  color: var(--mauve-800);
  background: var(--mauve-100);
}

.offer-title-cell > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.offer-title-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-title-cell small,
.provider-table-cell small {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.experimental-tag {
  margin-left: 4px;
  padding: 2px 6px;
  color: var(--mauve-700);
  background: var(--mauve-100);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-table-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.provider-table-cell strong {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.cell-chip,
.energy-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 680;
}

.cell-chip {
  color: var(--ink-soft);
  background: var(--paper-deep);
}

.energy-chip {
  color: var(--sage-800);
  background: var(--sage-100);
}

.energy-chip.cloud-energy {
  color: var(--mauve-700);
  background: var(--mauve-100);
}

.energy-chip i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.capacity-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.capacity-cell span {
  font-family: var(--mono);
  font-size: 12px;
}

.mini-capacity {
  width: 60px;
  height: 4px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.mini-capacity i {
  display: block;
  height: 100%;
  background: var(--sage-600);
  border-radius: inherit;
}

.status-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-chip.available {
  color: var(--sage-800);
  background: var(--sage-100);
}

.status-chip.available i { background: var(--sage-600); }

.status-chip.busy {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-chip.busy i { background: var(--amber); }

.status-chip.draining {
  color: var(--mauve-700);
  background: var(--mauve-100);
}

.status-chip.draining i { background: var(--mauve-600); }

.status-chip.offline {
  color: var(--red);
  background: var(--red-soft);
}

.status-chip.offline i { background: var(--red); }

.inspect-row {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.inspect-row:hover {
  color: var(--mauve-800);
  background: var(--mauve-100);
}

.empty-row td {
  height: 120px;
  color: var(--ink-faint);
  text-align: center;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 20px;
  color: var(--ink-faint);
  background: #fbfbf8;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.bottom-grid {
  grid-template-columns: 1.12fr 0.88fr;
}

.route-card,
.events-card {
  min-height: 420px;
}

.simulation-badge {
  padding: 5px 9px;
  color: var(--mauve-700);
  background: var(--mauve-100);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.route-form {
  padding: 16px 20px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.route-form > label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.select-run-row {
  display: flex;
  gap: 10px;
}

.route-form select {
  flex: 1;
  padding: 0 14px;
}

.run-button {
  min-width: 110px;
  min-height: 38px;
  color: white;
  background: var(--sage-900);
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 730;
  cursor: pointer;
}

.run-button:hover {
  background: var(--sage-950);
}

.run-button span {
  margin-left: 8px;
}

.route-note {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}

.route-result {
  padding: 20px;
}

.trace-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: 8px;
}

.trace-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trace-summary span {
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trace-summary strong {
  font-size: 14px;
  font-weight: 700;
}

.trace-summary small {
  color: var(--ink-faint);
  font-size: 12px;
}

.grant-chip {
  padding: 6px 10px;
  color: var(--sage-800);
  background: var(--sage-200);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
}

.trace-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-attempt {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.trace-attempt:last-child {
  border-bottom: 0;
}

.trace-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--ink-faint);
  background: var(--paper-deep);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
}

.trace-attempt.selected .trace-index {
  color: white;
  background: var(--sage-600);
}

.trace-attempt > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.trace-attempt strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace-attempt small {
  color: var(--ink-faint);
  font-size: 12px;
}

.trace-outcome {
  font-size: 12px;
  font-weight: 730;
}

.trace-attempt.selected .trace-outcome { color: var(--sage-700); }
.trace-attempt.rejected .trace-outcome { color: var(--amber); }
.trace-attempt.not_attempted { opacity: 0.53; }

.text-button {
  color: var(--mauve-700);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.event-list {
  margin: 0;
  padding: 6px 20px;
  list-style: none;
}

.event-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.event-item:last-child {
  border-bottom: 0;
}

.event-glyph {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--sage-700);
  background: var(--sage-100);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.event-item:nth-child(even) .event-glyph {
  color: var(--mauve-700);
  background: var(--mauve-100);
}

.event-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.event-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.event-copy small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-age {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.events-paused .event-glyph {
  filter: grayscale(1);
  opacity: 0.6;
}

.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  color: var(--ink-faint);
  font-size: 12px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 89;
  inset: 0;
  background: rgba(30, 40, 34, 0.3);
  backdrop-filter: blur(2px);
}

.offer-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(500px, calc(100vw - 30px));
  background: white;
  box-shadow: -24px 0 60px rgba(38, 55, 45, 0.2);
  transform: translateX(105%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.offer-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.drawer-header button {
  width: 34px;
  height: 34px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 20px;
  cursor: pointer;
}

.drawer-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.drawer-offer-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-offer-heading .target-glyph {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 12px;
}

.drawer-offer-heading > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.drawer-offer-heading h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.drawer-offer-heading p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.5;
}

.drawer-description {
  margin: 18px 0;
  padding: 14px;
  color: var(--ink-soft);
  background: var(--sage-50);
  border-left: 3px solid var(--sage-500);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.65;
}

.drawer-section {
  margin-top: 22px;
}

.drawer-section h4 {
  margin: 0 0 10px;
  color: var(--mauve-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-size: 13px;
}

.detail-list dt {
  color: var(--ink-faint);
}

.detail-list dd {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: var(--mono);
  line-height: 1.5;
}

.digest-block {
  padding: 12px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.drawer-footer span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 12px;
}

.drawer-footer i {
  width: 7px;
  height: 7px;
  background: var(--mauve-500);
  border-radius: 50%;
}

.drawer-footer button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink-faint);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  opacity: 0.6;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  max-width: 340px;
  padding: 12px 16px;
  color: white;
  background: var(--sage-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .hero h1 {
    font-size: 67px;
  }

  .client-panel {
    gap: 45px;
    padding: 55px;
  }

  .console-sidebar {
    width: 200px;
  }

  .console-main {
    margin-left: 200px;
  }

  .overview-grid,
  .status-pair-grid,
  .broker-overview-cards {
    grid-template-columns: 1fr;
  }

  .red-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registry-card {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
  }

  .registry-card .card-header {
    grid-column: 1 / -1;
  }

  .capacity-block {
    grid-column: 1 / -1;
  }

  .global-search {
    display: none;
  }
}

@media (max-width: 900px) {
  .section-pad {
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
  }

  .landing-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    min-height: auto;
    padding-top: 145px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    justify-content: center;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid li:nth-child(2) {
    border-right: 0;
  }

  .steps-grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .steps-grid li:nth-child(3),
  .steps-grid li:nth-child(5) {
    padding-left: 0;
  }

  .possibility-grid {
    grid-template-columns: 1fr;
  }

  .client-panel {
    grid-template-columns: 1fr;
  }

  .landing-cta {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 26px;
    padding-bottom: 26px;
    text-align: left;
  }

  .site-footer > span {
    justify-self: start;
  }

  .console-sidebar {
    position: sticky;
    top: 0;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 62px;
    padding: 0 16px;
  }

  .sidebar-brand {
    margin: 0 25px 0 0;
  }

  .console-nav {
    flex: 1;
    flex-direction: row;
  }

  .console-nav a {
    min-height: 36px;
  }

  .console-nav a.active {
    box-shadow: inset 0 -3px 0 var(--mauve-300);
  }

  .sidebar-bottom {
    display: none;
  }

  .console-main {
    margin-left: 0;
  }

  .console-topbar {
    top: 62px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .site-header .button {
    padding: 0 11px;
  }

  .brand-product,
  .site-header .button span {
    display: none;
  }

  .hero h1 {
    font-size: 53px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-proof {
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: 550px;
  }

  .route-window {
    transform: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid li,
  .steps-grid li:not(:first-child) {
    min-height: auto;
    padding: 26px 0 35px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .step-symbol {
    margin: 25px 0 20px;
  }

  .possibility-card {
    min-height: 450px;
    padding: 28px;
  }

  .card-route,
  .fork-route {
    right: 28px;
    left: 28px;
  }

  .card-chips {
    left: 28px;
  }

  .client-panel {
    padding: 36px 24px;
  }

  .client-points {
    grid-template-columns: 1fr;
  }

  .client-points li:nth-child(odd) {
    border-right: 0;
  }

  .client-points li:nth-child(even) {
    padding-left: 0;
  }

  .client-code pre {
    padding: 23px 17px;
    font-size: 9px;
  }

  .console-sidebar {
    overflow-x: auto;
  }

  .sidebar-brand {
    position: sticky;
    left: 0;
    z-index: 2;
    padding-right: 11px;
    background: var(--sage-950);
  }

  .console-nav {
    flex: none;
  }

  .console-nav a {
    padding: 0 9px;
    white-space: nowrap;
  }

  .nav-icon,
  .nav-count {
    display: none;
  }

  .console-topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .readonly-badge {
    display: none;
  }

  .console-content {
    padding: 15px 12px 25px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .summary-card {
    min-height: 104px;
    padding: 14px;
  }

  .network-column-labels {
    display: none;
  }

  .provider-lane {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .provider-lane::before,
  .provider-lane::after {
    display: none;
  }

  .registry-card {
    display: block;
  }

  .filter-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .table-search {
    flex-basis: 100%;
  }

  .filter-bar label:not(.table-search) {
    flex: 1;
  }

  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  table {
    min-width: 900px;
  }

  .select-run-row {
    flex-direction: column;
  }

  .run-button {
    min-height: 36px;
  }

  .console-tabs-bar {
    gap: 4px;
    padding: 4px;
  }

  .console-tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .red-team-grid {
    grid-template-columns: 1fr;
  }

  .status-pair-grid {
    grid-template-columns: 1fr;
  }

  .console-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .site-footer p { text-align: left; }
}

@media (max-width: 650px) {
  .cta-actions { align-items: flex-start; flex-direction: column; }
}
