:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-elevated: #1a1f26;
  --surface: #111821;
  --surface-soft: #17212b;
  --surface-strong: #202b36;
  --control-bg: #0d1117;
  --input-bg: #0d1117;
  --ink: #f4f8f6;
  --muted: #8aa1b2;
  --subtle: #718898;
  --line: #273544;
  --line-strong: #3b5365;
  --primary: #22d18c;
  --primary-strong: #17b978;
  --primary-soft: rgba(34, 209, 140, 0.14);
  --primary-contrast: #0d1117;
  --accent: #00e5ff;
  --accent-soft: rgba(0, 229, 255, 0.13);
  --blue: #00e5ff;
  --purple: #b26bff;
  --purple-soft: rgba(178, 107, 255, 0.14);
  --warning: #ffc857;
  --danger: #ef6d5d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --glow: 0 0 34px rgba(34, 209, 140, 0.22);
  --header-bg: rgba(13, 17, 23, 0.88);
  --panel-bg: rgba(17, 24, 33, 0.92);
  --grid-line: rgba(0, 229, 255, 0.07);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9fb;
  --bg-elevated: #eef4f7;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --surface-strong: #e9f1f4;
  --control-bg: #ffffff;
  --input-bg: #ffffff;
  --ink: #07101d;
  --muted: #596b78;
  --subtle: #748897;
  --line: #dce6ec;
  --line-strong: #bdced8;
  --primary: #0aa866;
  --primary-strong: #067548;
  --primary-soft: rgba(10, 168, 102, 0.12);
  --primary-contrast: #ffffff;
  --accent: #008aa0;
  --accent-soft: rgba(0, 138, 160, 0.1);
  --blue: #008aa0;
  --purple: #7d44c8;
  --purple-soft: rgba(125, 68, 200, 0.1);
  --warning: #b77b00;
  --danger: #b24635;
  --shadow: 0 22px 55px rgba(34, 52, 70, 0.12);
  --glow: 0 0 30px rgba(10, 168, 102, 0.16);
  --header-bg: rgba(255, 255, 255, 0.9);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --grid-line: rgba(42, 112, 214, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg) 28rem);
  color: var(--ink);
}

:root[data-theme="light"] body {
  background: linear-gradient(180deg, #ffffff, var(--bg) 30rem);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  z-index: 100;
  overflow: hidden;
  border: 0 solid var(--accent);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0;
  font-weight: 900;
  line-height: 1.2;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  max-width: calc(100vw - 24px);
  height: auto;
  overflow: visible;
  border-width: 1px;
  padding: 10px 14px;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}

.button:focus-visible,
.mobile-menu-toggle:focus-visible,
.theme-toggle:focus-visible,
.preview-picker:focus-visible,
.preview-arrow:focus-visible {
  border-color: var(--accent);
}

#main-content:focus {
  outline: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell > main {
  flex: 1 0 auto;
}

.dashboard-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  width: 8.85rem;
  gap: 2px;
}

.brand-copy strong {
  width: 100%;
  font-size: 1.265rem;
  line-height: 1.05;
}

.brand-copy small,
.footer-slogan,
.brand-slogan {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy small {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 0.22em;
  font-size: 0.44rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.slogan-dot {
  color: var(--accent);
  font-style: normal;
  letter-spacing: 0;
}

.slogan-dot-yellow {
  color: var(--warning);
}

.slogan-dot-purple {
  color: var(--purple);
}

.site-nav,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-menu-panel {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.site-nav {
  justify-content: center;
}

.site-nav a,
.dashboard-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a {
  padding: 8px 10px;
}

.site-nav a.active,
.dashboard-nav a.active {
  color: var(--ink);
  background: var(--surface-strong);
}

.button,
.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  line-height: 1;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--glow);
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  box-shadow: none;
}

.button-secondary,
.button-ghost,
.theme-toggle {
  border-color: var(--line);
  background: color-mix(in srgb, var(--control-bg) 90%, transparent);
  color: var(--ink);
}

.button-secondary:hover,
.button-ghost:hover,
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.button-ghost {
  color: var(--muted);
}

.button-full,
.theme-toggle-wide {
  width: 100%;
}

.theme-toggle {
  gap: 9px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--control-bg) 90%, transparent);
  color: var(--ink);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-header.is-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 6px 0 0 var(--primary);
}

:root[data-theme="light"] .theme-toggle-icon {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.app-simulator-page {
  min-height: 100vh;
  background: var(--bg);
}

.rf-workbench {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: 100vh;
  border-bottom: 1px solid var(--line);
  background: #070b10;
}

:root[data-theme="light"] .rf-workbench {
  background: #eef4f7;
}

.rf-palette {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 88%, #02070a);
  padding: 18px;
}

.rf-app-brand {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rf-app-brand strong {
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.rf-app-brand span {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rf-palette-group {
  display: grid;
  gap: 9px;
}

.rf-palette-group h2 {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.rf-palette-group div {
  display: grid;
  gap: 7px;
}

.rf-module-card {
  display: grid;
  min-height: 54px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 3px 9px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--control-bg) 86%, transparent);
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.rf-module-card span {
  grid-row: span 2;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.rf-module-card strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.05;
  text-transform: uppercase;
  text-overflow: ellipsis;
}

.rf-module-card small {
  overflow: hidden;
  color: var(--subtle);
  font-size: 0.64rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-module-green {
  border-color: var(--primary);
}

.rf-module-green strong,
.rf-module-green span {
  color: var(--primary);
}

.rf-module-amber {
  border-color: var(--warning);
}

.rf-module-amber strong,
.rf-module-amber span {
  color: var(--warning);
}

.rf-workspace {
  display: grid;
  min-width: 0;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.rf-workspace-topbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, var(--surface));
  padding: 7px 14px;
}

.rf-workspace-topbar nav,
.rf-workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rf-mode-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rf-view-tab,
.rf-workspace-actions a,
.rf-unsaved {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rf-view-tab.active,
.rf-view-tab-small {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.rf-view-tab-small {
  min-width: 62px;
  justify-content: center;
  padding: 0 8px;
}

.rf-workspace-actions a {
  min-height: 28px;
  text-transform: none;
}

.rf-unsaved {
  border-color: transparent;
  color: var(--warning);
  padding: 0 4px;
  text-transform: lowercase;
}

.rf-unsaved::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 12px var(--warning);
}

.rf-theme-toggle {
  min-height: 30px;
  padding: 0 10px;
}

.rf-workspace-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 400px;
}

.rf-canvas-panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    #060a0f;
  background-size: 37px 37px;
}

:root[data-theme="light"] .rf-canvas-panel {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    #f8fbfc;
}

.rf-reset-button {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--control-bg);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
}

.rf-cable {
  position: absolute;
  z-index: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 18px rgba(54, 199, 221, 0.32);
  transform-origin: left center;
}

.rf-cable-one {
  left: 275px;
  top: 224px;
  width: 84px;
  transform: rotate(21deg);
}

.rf-cable-two {
  left: 360px;
  top: 252px;
  width: 62px;
  transform: rotate(0deg);
}

.rf-instrument-card {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 198px;
  min-height: 114px;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, #030609);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  padding: 11px;
}

.rf-card-siggen {
  left: 76px;
  top: 150px;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(54, 199, 221, 0.16), 0 18px 42px rgba(0, 0, 0, 0.34);
}

.rf-card-sensor {
  left: 418px;
  top: 190px;
}

.rf-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rf-card-title span {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rf-card-title strong {
  color: var(--ink);
  font-size: 0.7rem;
}

.rf-readout {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(34, 226, 123, 0.18);
  border-radius: 4px;
  background: #030806;
  padding: 10px;
}

:root[data-theme="light"] .rf-readout {
  background: #eef7f3;
}

.rf-readout strong {
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1rem;
}

.rf-readout span {
  color: var(--warning);
  font-size: 0.65rem;
  font-weight: 900;
}

.rf-card-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.rf-card-controls span {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  padding: 4px 3px;
  font-size: 0.56rem;
  font-weight: 900;
  text-align: center;
}

.rf-properties-panel {
  min-height: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 90%, #05090d);
}

.rf-properties-header {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.rf-properties-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.rf-properties-header input {
  min-height: 28px;
  padding: 7px 9px;
  font-size: 0.75rem;
}

.rf-properties-panel section {
  border-bottom: 1px solid var(--line);
}

.rf-properties-panel h3 {
  margin: 0;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--ink);
  padding: 6px 14px;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.rf-properties-panel dl {
  display: grid;
  margin: 0;
}

.rf-properties-panel dl div {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rf-properties-panel dt,
.rf-properties-panel dd {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.76rem;
}

.rf-properties-panel dt {
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.03);
}

.rf-properties-panel dd {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.rf-terminal-strip {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, #02060a);
  padding: 12px 16px;
}

.rf-terminal-strip div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rf-terminal-strip strong {
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.rf-terminal-strip span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 9px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.rf-terminal-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 680px;
  padding: 70px clamp(18px, 5vw, 72px) 58px;
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 24px);
  margin-bottom: 22px;
}

.hero-brand-mark {
  display: grid;
  width: clamp(76px, 8vw, 112px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
}

.hero-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-title-copy {
  display: grid;
  width: max-content;
  max-width: 100%;
}

.hero-title-copy h1 {
  width: max-content;
  max-width: 100%;
  font-size: 4.65rem;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 0 16px;
  border: 1px solid rgba(34, 226, 123, 0.28);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0 11px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  font-size: 5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lede,
.page-hero p,
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.brand-slogan {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 24px 0 0;
  color: var(--muted);
}

.hero-brand-slogan {
  width: max-content;
  max-width: 100%;
  justify-content: flex-start;
  gap: 0.45em;
  margin: 9px 0 0;
  font-size: clamp(1.12rem, 1.78vw, 1.58rem);
  letter-spacing: 0.035em;
  line-height: 1.05;
}

.hero-brand-slogan .slogan-dot {
  margin: 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
}

.preview-hero {
  min-height: clamp(590px, calc(100vh - 128px), 760px);
  align-items: center;
  padding-top: clamp(34px, 5vw, 54px);
  padding-bottom: clamp(30px, 5vw, 46px);
}

.preview-hero .hero-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.preview-carousel {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.preview-stage {
  min-width: 0;
}

.preview-slide {
  display: grid;
  gap: 14px;
  grid-template-rows: auto 128px;
}

.preview-slide[hidden] {
  display: none;
}

.preview-window {
  min-height: 430px;
}

.preview-topbar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.preview-grid {
  grid-template-columns: 156px minmax(0, 1fr) 178px;
  min-height: 304px;
}

.bench-grid.preview-grid {
  grid-template-columns: 156px minmax(0, 1fr) 178px;
  min-height: 304px;
}

.preview-source-rail,
.preview-properties {
  padding: 12px;
}

.source-rail.preview-source-rail,
.properties-rail.preview-properties {
  padding: 12px;
}

.preview-source-rail {
  gap: 8px;
}

.source-item small {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1.25;
}

.preview-canvas {
  min-height: 304px;
}

.bench-canvas.preview-canvas {
  min-height: 304px;
}

.node-tone-blue strong {
  color: var(--accent);
}

.node-tone-amber strong {
  color: var(--warning);
}

.node-tone-red strong {
  color: var(--danger);
}

.node-tone-green strong {
  color: var(--primary);
}

.preview-terminal {
  min-height: 72px;
  padding: 12px 14px;
}

.scpi-terminal.preview-terminal {
  min-height: 72px;
  padding: 12px 14px;
}

.preview-caption {
  display: grid;
  gap: 8px;
  min-height: 128px;
  align-content: start;
  padding: 4px 2px 0;
}

.preview-caption .eyebrow {
  min-height: 24px;
  margin-bottom: 2px;
  padding: 0 9px;
  font-size: 0.68rem;
}

.preview-caption h2 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.15;
}

.preview-caption p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.preview-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.preview-picker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-picker,
.preview-arrow {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--control-bg) 90%, transparent);
  color: var(--muted);
}

.preview-picker {
  display: grid;
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  text-align: left;
}

.preview-picker.active,
.preview-picker:hover,
.preview-arrow:hover {
  border-color: rgba(34, 226, 123, 0.52);
  background: var(--primary-soft);
  color: var(--ink);
}

.preview-picker strong {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
}

.preview-picker span {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
}

.preview-arrow {
  display: grid;
  width: 44px;
  min-height: 50px;
  place-items: center;
  padding: 0;
}

.preview-arrow span {
  font-size: 1.2rem;
  font-weight: 950;
}

.preview-image-frame {
  display: grid;
  margin: 0;
  min-height: 0;
  height: clamp(260px, 30vw, 360px);
  place-items: center;
  background: #05090d;
  padding: 0;
}

.preview-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.preview-image-wide {
  overflow: hidden;
}

.preview-image-wide img {
  width: 100%;
  max-width: 100%;
  object-position: center;
}

.preview-image-window img {
  object-position: center 52%;
}

.simulator-visual {
  min-height: 452px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.simulator-visual.preview-image-frame {
  min-height: 0;
}

.bench-visual {
  position: relative;
}

.bench-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
}

.bench-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.bench-topbar strong {
  display: block;
  color: var(--primary);
  font-size: 0.86rem;
}

.bench-topbar span {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bench-topbar nav {
  display: flex;
  gap: 6px;
}

.bench-tab {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
}

.bench-tab.active {
  border-color: rgba(34, 226, 123, 0.45);
  color: var(--primary);
  background: var(--primary-soft);
}

.bench-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 190px;
  min-height: 394px;
}

.source-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.source-rail p {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-item {
  display: block;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 6px;
  background: var(--control-bg);
  color: var(--muted);
  padding: 9px 10px;
  font-size: 0.76rem;
  font-weight: 850;
}

.properties-rail {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.properties-rail p,
.properties-rail dt {
  margin: 0;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.properties-rail strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.properties-rail dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.properties-rail dl div {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.properties-rail dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.scpi-terminal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  padding: 14px 16px;
}

.scpi-terminal div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scpi-terminal strong {
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scpi-terminal span {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.scpi-terminal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.source-green {
  border-left-color: var(--primary);
}

.source-blue {
  border-left-color: var(--blue);
}

.source-amber {
  border-left-color: var(--warning);
}

.source-red {
  border-left-color: var(--danger);
}

.bench-canvas {
  position: relative;
  min-height: 394px;
  padding: 20px;
}

.instrument-node {
  position: absolute;
  display: grid;
  gap: 6px;
  width: 158px;
  min-height: 126px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  padding: 14px;
}

:root[data-theme="light"] .instrument-node {
  box-shadow: 0 16px 36px rgba(28, 48, 66, 0.12);
}

.instrument-node span,
.instrument-node small {
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.instrument-node strong {
  color: var(--primary);
  font-size: 1.45rem;
}

.node-meter {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.node-a {
  left: 32px;
  top: 34px;
}

.node-b {
  left: 250px;
  top: 118px;
}

.node-c {
  right: 34px;
  top: 62px;
}

.node-d {
  right: 156px;
  bottom: 38px;
}

.cable {
  position: absolute;
  z-index: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: left center;
}

.cable-one {
  left: 182px;
  top: 112px;
  width: 112px;
  transform: rotate(19deg);
}

.cable-two {
  left: 404px;
  top: 178px;
  width: 126px;
  transform: rotate(-21deg);
}

.cable-three {
  right: 162px;
  bottom: 132px;
  width: 124px;
  transform: rotate(12deg);
  background: linear-gradient(90deg, var(--warning), var(--primary));
}

.content-band,
.page-hero,
.split-section,
.pricing-grid,
.pricing-section,
.share-grid {
  padding: 64px clamp(18px, 5vw, 72px);
}

.content-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.compact-hero {
  max-width: 940px;
}

.compact-hero h1 {
  font-size: 3.75rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.pricing-section {
  border-top: 1px solid var(--line);
}

.pricing-section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.metric-grid,
.card-grid,
.pricing-grid,
.pricing-card-grid,
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card-grid,
.share-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid,
.pricing-card-grid {
  align-items: stretch;
}

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

.workflow-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 42%, transparent), transparent),
    var(--surface);
}

.workflow-card span {
  width: fit-content;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workflow-card h3 {
  font-size: 1.05rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.stacked-list {
  display: grid;
  gap: 18px;
}

.metric-card,
.project-card,
.plan-card,
.shared-card,
.access-card,
.info-panel,
.form-card,
.provider-panel,
.billing-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-card,
.project-card,
.plan-card,
.access-card,
.info-panel,
.form-card,
.provider-panel,
.billing-summary > div {
  padding: 22px;
}

.metric-card span,
.metric-card small,
.card-topline,
.project-card p,
.plan-summary,
.artifact-list small,
.billing-summary span,
.billing-summary small,
.user-chip small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 2.1rem;
  line-height: 1;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-card-popular {
  border-color: rgba(34, 226, 123, 0.62);
  box-shadow: var(--glow);
}

.plan-card-header,
.card-topline,
.artifact-list li,
.dashboard-heading,
.dashboard-topbar,
.billing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge,
.status-pill,
.tag-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.badge-popular {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-pill {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-pill-block {
  justify-content: center;
  width: 100%;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price span {
  color: var(--primary);
  font-size: 2.65rem;
  font-weight: 900;
}

.plan-price small {
  color: var(--muted);
}

.feature-list,
.artifact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list {
  flex: 1;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--primary);
  vertical-align: 1px;
}

.project-card {
  display: grid;
  gap: 10px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-track[data-progress="38"] span {
  width: 38%;
}

.progress-track[data-progress="72"] span {
  width: 72%;
}

.progress-track[data-progress="91"] span {
  width: 91%;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.shared-card {
  display: block;
  overflow: hidden;
}

.shared-card:hover,
.project-card:hover,
.plan-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.design-preview {
  display: grid;
  min-height: 170px;
  place-items: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 28px;
}

.design-preview span {
  display: block;
  width: 100%;
  height: 82px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.design-preview span:nth-child(2) {
  height: 118px;
}

.design-preview-teal {
  background: linear-gradient(135deg, #0b6f67, #22e27b);
}

.design-preview-amber {
  background: linear-gradient(135deg, #8a5d0d, #f1b84b);
}

.design-preview-indigo {
  background: linear-gradient(135deg, #244c80, #36c7dd);
}

.shared-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  background: var(--surface-strong);
  color: var(--muted);
}

.auth-page {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 38px 18px;
}

.auth-panel {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.auth-panel-signup {
  align-items: start;
}

.auth-panel-signup .auth-copy {
  grid-column: 1;
  grid-row: 1;
}

.auth-panel-signup .form-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.auth-panel-signup .auth-step-list {
  grid-column: 1;
  grid-row: 2;
}

.auth-panel h1 {
  font-size: 3.8rem;
}

.form-card {
  display: grid;
  gap: 16px;
}

.auth-next-steps p {
  margin: 0;
}

.confirmation-email-target {
  color: var(--muted);
  line-height: 1.55;
}

.confirmation-email-target strong {
  color: var(--ink);
}

.auth-helper-copy {
  max-width: 560px;
  color: var(--muted);
}

.auth-step-list {
  display: grid;
  max-width: 620px;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.auth-step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 12px;
}

.auth-step-list span {
  grid-row: span 2;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-step-list strong {
  color: var(--ink);
  line-height: 1.2;
}

.auth-step-list small {
  color: var(--muted);
  line-height: 1.45;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-provider-button {
  gap: 10px;
}

.provider-dot {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #1f1f1f;
  font-size: 0.9rem;
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--ink);
  padding: 12px 13px;
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: wait;
  opacity: 0.7;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.dashboard-nav {
  display: grid;
  gap: 8px;
}

.dashboard-nav a {
  padding: 12px 14px;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-topbar {
  min-height: 80px;
  padding: 18px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 850;
}

.dashboard-content {
  display: grid;
  gap: 28px;
  padding: 42px clamp(18px, 4vw, 42px);
}

.dashboard-heading h1 {
  margin: 0;
  font-size: 3.35rem;
}

.dashboard-section {
  display: grid;
  gap: 4px;
}

.billing-summary {
  align-items: stretch;
}

.billing-summary > div {
  display: grid;
  flex: 1;
  gap: 6px;
}

.billing-summary strong {
  font-size: 1.3rem;
}

.provider-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: start;
  margin: 36px clamp(18px, 5vw, 72px) 36px;
}

.entitlement-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 clamp(18px, 5vw, 72px) 36px;
}

.entitlement-panel div,
.plan-limit-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.entitlement-panel div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.entitlement-panel span,
.plan-limit-list dt {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entitlement-panel strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.entitlement-panel small {
  color: var(--muted);
  line-height: 1.55;
}

.provider-panel-compact {
  margin: 0;
}

.provider-panel h2 {
  margin-bottom: 10px;
  font-size: 1.75rem;
}

.provider-panel p,
.provider-status-grid small {
  color: var(--muted);
  line-height: 1.65;
}

.provider-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.provider-status-grid div {
  min-width: 0;
  border-left: 2px solid var(--line-strong);
  padding-left: 12px;
}

.provider-status-grid span {
  display: block;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-status-grid strong {
  display: block;
  margin: 4px 0;
}

.provider-handoff-list {
  margin-top: 20px;
  color: var(--muted);
}

.plan-limit-list {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
}

.plan-limit-list div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
}

.plan-limit-list div + div {
  border-top: 1px solid var(--line);
}

.plan-limit-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

.compact-pricing {
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 38px;
  align-items: center;
  padding: 72px clamp(18px, 5vw, 72px) 28px;
}

.detail-layout h1 {
  font-size: 4.25rem;
}

.detail-preview {
  min-height: 330px;
  border-radius: 8px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary);
  font-weight: 800;
}

.info-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.info-panel ol,
.info-panel ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.access-section {
  align-items: start;
}

.access-card-highlight {
  border-color: rgba(34, 226, 123, 0.62);
  box-shadow: var(--glow);
}

.artifact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex: 0 0 auto;
  margin-top: auto;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 700;
}

.toast-success {
  border-left-color: var(--primary);
}

.toast-info {
  border-left-color: var(--accent);
}

.route-loading,
.error-state {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.error-state h1 {
  font-size: 3.8rem;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px 18px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .rf-workbench {
    grid-template-columns: 1fr;
  }

  .rf-palette {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .rf-palette-group div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-workspace,
  .rf-workbench {
    min-height: auto;
  }

  .rf-workspace-body {
    grid-template-columns: 1fr;
  }

  .rf-canvas-panel {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .site-nav,
  .header-actions {
    flex-wrap: wrap;
  }

  .public-menu-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
  }

  .hero-section,
  .split-section,
  .auth-panel,
  .detail-layout,
  .provider-panel {
    grid-template-columns: 1fr;
  }

  .auth-panel-signup .auth-copy,
  .auth-panel-signup .form-card,
  .auth-panel-signup .auth-step-list {
    grid-column: 1;
    grid-row: auto;
  }

  .preview-hero {
    min-height: auto;
  }

  .hero-title-copy h1 {
    font-size: 4rem;
  }

  .simulator-visual {
    min-height: 360px;
  }

  .preview-window {
    min-height: 430px;
  }

  .metric-grid,
  .workflow-grid,
  .pricing-grid,
  .pricing-card-grid,
  .card-grid,
  .share-grid,
  .compact-pricing,
  .entitlement-panel,
  .provider-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    padding: 20px clamp(18px, 4vw, 42px);
  }

  .dashboard-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 3.25rem;
  }

  .rf-workspace-topbar,
  .rf-workspace-topbar nav,
  .rf-workspace-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .rf-workspace-actions {
    width: 100%;
  }

  .rf-palette-group div,
  .rf-card-controls {
    grid-template-columns: 1fr;
  }

  .rf-instrument-card {
    position: relative;
    left: auto;
    top: auto;
    width: min(260px, calc(100vw - 52px));
    margin: 18px;
  }

  .rf-card-sensor {
    margin-left: auto;
  }

  .rf-cable {
    display: none;
  }

  h2,
  .compact-hero h1,
  .auth-panel h1,
  .dashboard-heading h1,
  .detail-layout h1,
  .error-state h1 {
    font-size: 2.35rem;
  }

  .hero-section,
  .content-band,
  .page-hero,
  .split-section,
  .pricing-grid,
  .pricing-section,
  .share-grid,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-band,
  .page-hero,
  .split-section,
  .pricing-grid,
  .pricing-section,
  .share-grid,
  .detail-layout {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .pricing-hero {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .pricing-hero h1 {
    font-size: 2.05rem;
  }

  .pricing-hero > p:not(.eyebrow),
  .pricing-section-heading > p:not(.eyebrow) {
    line-height: 1.5;
  }

  .pricing-section {
    padding-top: 28px;
  }

  .pricing-section-heading {
    margin-bottom: 18px;
  }

  .pricing-section-heading h2 {
    font-size: 1.75rem;
  }

  .provider-panel {
    margin-top: 28px;
    margin-bottom: 28px;
    margin-right: 16px;
    margin-left: 16px;
  }

  .entitlement-panel {
    margin-bottom: 28px;
  }

  .hero-section {
    gap: 24px;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .hero-brand-lockup {
    display: grid;
    gap: 14px;
  }

  .hero-brand-mark {
    width: 72px;
  }

  .hero-title-copy,
  .hero-title-copy h1 {
    width: auto;
  }

  .hero-title-copy h1 {
    font-size: 3.25rem;
  }

  .hero-brand-slogan {
    width: max-content;
    max-width: 100%;
    font-size: clamp(0.78rem, 3.7vw, 1rem);
    letter-spacing: 0.04em;
  }

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

  .preview-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-topbar nav {
    justify-content: flex-start;
  }

  .preview-controls {
    grid-template-columns: 1fr;
  }

  .preview-arrow {
    display: none;
  }

  .preview-picker-list {
    grid-template-columns: 1fr;
  }

  .preview-canvas {
    min-height: 500px;
  }

  .preview-caption h2 {
    font-size: 1.22rem;
  }

  .preview-slide {
    grid-template-rows: auto 156px;
  }

  .preview-image-frame {
    height: clamp(220px, 58vw, 300px);
  }

  .preview-caption {
    min-height: 156px;
  }

  .hero-actions,
  .header-actions,
  .site-footer,
  .dashboard-heading,
  .dashboard-topbar,
  .billing-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav,
  .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy {
    width: 7.1rem;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .public-menu-panel {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 4px;
  }

  .site-header.is-menu-open .public-menu-panel {
    display: grid;
  }

  .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a {
    min-height: 34px;
    justify-content: center;
    padding: 0 6px;
    font-size: 0.72rem;
    text-align: center;
  }

  .header-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 0.85fr 0.85fr 1fr;
    gap: 8px;
  }

  .header-actions .button,
  .header-actions .theme-toggle {
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .workflow-card,
  .metric-card,
  .project-card,
  .plan-card,
  .access-card,
  .info-panel,
  .form-card,
  .provider-panel,
  .billing-summary > div {
    padding: 18px;
  }

  .dashboard-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 12px 16px;
  }

  .dashboard-sidebar .brand,
  .dashboard-nav {
    grid-column: 1 / -1;
  }

  .dashboard-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-nav a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 0.72rem;
    text-align: center;
  }

  .dashboard-sidebar .button-full,
  .dashboard-sidebar .theme-toggle-wide {
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .dashboard-topbar {
    min-height: 0;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 8px 16px;
  }

  .dashboard-topbar > div:first-child {
    min-width: 0;
  }

  .dashboard-topbar .eyebrow {
    margin-bottom: 2px;
    font-size: 0.62rem;
  }

  .dashboard-topbar > div:first-child strong {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-chip {
    min-width: 0;
    justify-content: flex-end;
    gap: 8px;
  }

  .user-chip > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .user-chip div {
    min-width: 0;
  }

  .user-chip strong,
  .user-chip small {
    display: block;
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-content {
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .metric-grid,
  .workflow-grid,
  .pricing-grid,
  .pricing-card-grid,
  .card-grid,
  .share-grid,
  .compact-pricing,
  .entitlement-panel,
  .settings-grid,
  .provider-status-grid {
    grid-template-columns: 1fr;
  }

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

  .source-rail,
  .properties-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .properties-rail {
    border-left: 0;
  }

  .bench-canvas {
    min-height: 520px;
  }

  .instrument-node {
    width: min(210px, calc(100vw - 72px));
  }

  .node-a {
    left: 18px;
    top: 28px;
  }

  .node-b {
    left: auto;
    right: 18px;
    top: 172px;
  }

  .node-c {
    left: 18px;
    right: auto;
    top: 316px;
  }

  .node-d {
    right: 18px;
    bottom: 26px;
  }

  .cable {
    display: none;
  }

  .auth-panel {
    min-width: 0;
  }

  .auth-panel-signup .auth-copy,
  .auth-panel-signup .form-card,
  .auth-panel-signup .auth-step-list {
    grid-column: 1;
    grid-row: auto;
  }
}
