:root {
  --void: #02040d;
  --ink: #050918;
  --panel: rgba(6, 11, 23, 0.76);
  --panel-strong: rgba(6, 11, 23, 0.92);
  --line: rgba(164, 187, 231, 0.14);
  --line-cyan: rgba(16, 220, 255, 0.44);
  --line-violet: rgba(117, 64, 255, 0.38);
  --text: #f9fbff;
  --muted: #a9b5ca;
  --dim: #74839a;
  --cyan: #10dcff;
  --blue: #1d75ff;
  --violet: #7540ff;
  --magenta: #bd37ff;
  --white: #ffffff;
  --radius: 12px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--void);
  font-family: "Segoe UI Variable", "Aptos Display", "Geist", ui-sans-serif, system-ui, sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 4px),
    linear-gradient(115deg, transparent 0 38%, rgba(16, 220, 255, 0.06) 39%, transparent 41%);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
}

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

button {
  cursor: pointer;
}

button,
a,
input,
textarea,
select {
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    background 220ms var(--ease),
    box-shadow 220ms var(--ease),
    color 220ms var(--ease);
}

button:active,
.rail-nav a:active {
  transform: translateY(1px) scale(0.99);
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 30;
  padding: 10px 12px;
  color: var(--void);
  background: var(--cyan);
  transform: translateY(-160%);
}

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

.space-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 11%, rgba(117, 64, 255, 0.5), transparent 28%),
    radial-gradient(circle at 83% 8%, rgba(16, 220, 255, 0.34), transparent 25%),
    radial-gradient(circle at 72% 92%, rgba(29, 117, 255, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(44, 6, 86, 0.5), transparent 34%, rgba(0, 49, 79, 0.48)),
    var(--void);
}

.space-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 220, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 220, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(16, 220, 255, 0.45) 0 1px, transparent 1.5px);
  background-size: 92px 92px, 92px 92px, 150px 118px;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 86%, transparent);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(16, 220, 255, 0.28);
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(16, 220, 255, 0.24));
}

.orbit-a {
  width: 1220px;
  height: 690px;
  right: -180px;
  top: -180px;
  transform: rotate(8deg);
}

.orbit-b {
  width: 1180px;
  height: 650px;
  left: -310px;
  top: 74px;
  border-color: rgba(189, 55, 255, 0.3);
  transform: rotate(-12deg);
}

.orbit-c {
  width: 1220px;
  height: 520px;
  right: -80px;
  top: 300px;
  border-color: rgba(29, 117, 255, 0.16);
  transform: rotate(3deg);
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  filter: drop-shadow(0 0 18px currentColor);
}

.node-a {
  left: 92px;
  top: 226px;
  color: var(--violet);
}

.node-b {
  left: 310px;
  top: 680px;
  width: 12px;
  height: 12px;
  color: var(--magenta);
}

.node-c {
  right: 118px;
  top: 742px;
  color: var(--cyan);
}

.app-rail {
  position: fixed;
  inset: 22px auto 22px 22px;
  z-index: 4;
  width: 190px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(11, 17, 36, 0.92), rgba(3, 6, 16, 0.96)),
    rgba(5, 7, 21, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 74px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(117, 64, 255, 0.22);
  backdrop-filter: blur(18px);
}

.brand-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 220, 255, 0.9);
  border-radius: 10px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(16, 220, 255, 0.18), rgba(189, 55, 255, 0.08)),
    #061326;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 28px rgba(16, 220, 255, 0.42);
}

.rail-nav {
  margin-top: 34px;
  display: grid;
  gap: 8px;
}

.rail-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(65, 83, 121, 0.48);
  border-radius: 9px;
  color: #9aa7bd;
  background: rgba(5, 10, 20, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.rail-nav a:hover,
.rail-nav a.active {
  color: var(--cyan);
  border-color: rgba(16, 220, 255, 0.82);
  background: linear-gradient(145deg, rgba(16, 220, 255, 0.14), rgba(8, 29, 52, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(16, 220, 255, 0.22);
}

.rail-foot {
  margin-top: auto;
  display: grid;
  gap: 2px;
  color: #8492aa;
  font-size: 10px;
  font-weight: 900;
}

.app-shell {
  width: auto;
  min-height: 100vh;
  margin-left: 244px;
  margin-right: clamp(22px, 3vw, 56px);
  padding: clamp(22px, 2.2vw, 40px) clamp(22px, 3vw, 56px) 44px 0;
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--white);
  font-weight: 950;
}

.brand-lockup b {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(16, 220, 255, 0.52);
}

.brand-lockup em {
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin: 16px 0 0;
  font-size: clamp(48px, 5.8vw, 92px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 0 13px rgba(255, 255, 255, 0.28),
    0 0 42px rgba(16, 220, 255, 0.16);
}

h2 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.05;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(16, 220, 255, 0.46);
  border-radius: 999px;
  color: #e8f2ff;
  background: rgba(4, 9, 19, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 16px rgba(16, 220, 255, 0.16);
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.status-chip.violet {
  border-color: rgba(117, 64, 255, 0.56);
}

.status-chip.violet i {
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}

.command-button,
.secondary-command,
.danger-command,
.connect-button {
  min-height: 44px;
  border-radius: 9px;
  color: var(--white);
  font-weight: 950;
}

.command-button {
  min-width: 142px;
  border: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.25), transparent 28%),
    linear-gradient(115deg, var(--cyan), var(--blue) 58%, var(--magenta));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 28px rgba(16, 220, 255, 0.42),
    0 0 28px rgba(189, 55, 255, 0.2);
}

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

.command-button:disabled {
  opacity: 0.66;
  cursor: wait;
}

.secondary-command {
  width: 100%;
  border: 1px solid rgba(16, 220, 255, 0.72);
  background: linear-gradient(145deg, rgba(16, 220, 255, 0.18), rgba(7, 19, 38, 0.94));
  box-shadow: 0 0 18px rgba(16, 220, 255, 0.18);
}

.danger-command {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(189, 55, 255, 0.58);
  background: linear-gradient(145deg, rgba(189, 55, 255, 0.18), rgba(7, 19, 38, 0.94));
  box-shadow: 0 0 18px rgba(189, 55, 255, 0.16);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 18px;
}

.workflow-strip article,
.metric-card,
.module {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.058), transparent 34%),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 26px 84px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(16, 220, 255, 0.07);
  backdrop-filter: blur(18px);
}

.workflow-strip article {
  min-height: 98px;
  padding: 16px;
}

.workflow-strip span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.workflow-strip strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 16px;
}

.workflow-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 90px;
  padding: 16px;
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.metric-card strong {
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-card.cyan {
  border-color: rgba(16, 220, 255, 0.42);
}

.metric-card.cyan strong {
  color: var(--cyan);
}

.metric-card.white {
  border-color: rgba(255, 255, 255, 0.3);
}

.metric-card.white strong {
  color: var(--white);
}

.metric-card.magenta {
  border-color: rgba(189, 55, 255, 0.42);
}

.metric-card.magenta strong {
  color: var(--magenta);
}

.metric-card.violet {
  border-color: rgba(117, 64, 255, 0.42);
}

.metric-card.violet strong {
  color: var(--violet);
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(520px, 1.45fr) minmax(310px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.module {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.module::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(16, 220, 255, 0.18), transparent) top left / 100% 1px no-repeat,
    radial-gradient(circle at 16% 0%, rgba(16, 220, 255, 0.12), transparent 30%),
    radial-gradient(circle at 96% 20%, rgba(189, 55, 255, 0.1), transparent 32%);
}

.module > * {
  position: relative;
  z-index: 1;
}

.module-generator,
.module-preview {
  grid-column: span 2;
}

.module-library {
  grid-column: 1 / -1;
}

.module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.module-head > div {
  min-width: 0;
}

.module-head span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(16, 220, 255, 0.35);
}

.magenta-text {
  color: var(--magenta);
}

.stack-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(58, 77, 115, 0.58);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(3, 7, 18, 0.72);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input,
select {
  height: 44px;
  padding: 0 14px;
}

textarea {
  min-height: 120px;
  padding: 13px 14px;
  line-height: 1.45;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(16, 220, 255, 0.84);
  box-shadow: 0 0 20px rgba(16, 220, 255, 0.18);
}

.reactor-controls {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(220px, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.review-pill {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border: 1px solid rgba(16, 220, 255, 0.72);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(3, 11, 20, 0.78);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

#runSelector {
  color: var(--muted);
}

.script-stack {
  display: grid;
  gap: 12px;
}

.script-card {
  position: relative;
  min-height: 74px;
  padding: 14px 72px 14px 20px;
  overflow: hidden;
  border: 1px solid rgba(16, 220, 255, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 220, 255, 0.065), transparent 42%),
    rgba(3, 7, 18, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 0 18px rgba(16, 220, 255, 0.1);
}

.script-card:hover {
  transform: translateX(4px);
  border-color: rgba(16, 220, 255, 0.86);
}

.script-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.script-card:nth-child(2)::before {
  background: var(--magenta);
}

.script-card:nth-child(3)::before {
  background: var(--violet);
}

.script-card:nth-child(4)::before,
.script-card:nth-child(5)::before {
  background: var(--white);
}

.script-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.script-card h3 {
  max-width: 520px;
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
}

.hook {
  margin: 0;
  color: #8d9bb2;
  font-size: 12px;
  line-height: 1.25;
}

.copy {
  display: none;
}

.score-badge {
  position: absolute;
  right: 20px;
  top: 20px;
  min-width: 48px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--cyan);
  background: #07101c;
  font-size: 12px;
  font-weight: 950;
}

.script-card:nth-child(2) .score-badge {
  color: var(--magenta);
}

.script-card:nth-child(3) .score-badge {
  color: var(--violet);
}

.script-card:nth-child(4) .score-badge,
.script-card:nth-child(5) .score-badge {
  color: var(--white);
}

.module-footer,
.helper-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.caption-preview {
  min-height: 126px;
  margin: 0 0 16px;
  padding: 16px;
  white-space: pre-line;
  color: #dce8fb;
  border: 1px solid rgba(58, 77, 115, 0.5);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.62);
}

.comment-steps {
  display: grid;
  gap: 10px;
}

.comment-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(16, 220, 255, 0.28);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.58);
}

.comment-step b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(16, 220, 255, 0.55);
  border-radius: 8px;
  background: rgba(16, 220, 255, 0.08);
}

.comment-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.timeline-board {
  display: grid;
  gap: 10px;
}

.timeline-board article,
.channel-item,
.job-item,
.source-item,
.asset-item,
.scheduled-item,
.package-item {
  border: 1px solid rgba(58, 77, 115, 0.5);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.58);
}

.timeline-board article {
  padding: 13px;
}

.timeline-board b,
.channel-item strong,
.source-item strong,
.job-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.timeline-board span,
.channel-item span,
.source-item span,
.job-item span,
.asset-item span,
.scheduled-item span,
.package-item span {
  color: var(--dim);
  font-size: 11px;
}

.subpanel {
  margin-top: 18px;
}

.subpanel h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.platform-picker {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(58, 77, 115, 0.5);
  border-radius: 8px;
}

.connect-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.connect-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(16, 220, 255, 0.48);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(3, 7, 18, 0.58);
  font-size: 12px;
  text-decoration: none;
}

.connect-button.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.platform-picker legend {
  padding: 0 6px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 950;
}

.platform-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}

.platform-picker input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.channel-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.platform-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--platform-color), transparent 34%);
  border-radius: 8px;
  color: var(--platform-color);
  background:
    radial-gradient(circle at 35% 20%, color-mix(in srgb, var(--platform-color), transparent 64%), transparent 58%),
    rgba(3, 7, 18, 0.82);
  box-shadow: 0 0 18px color-mix(in srgb, var(--platform-color), transparent 78%);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.job-list,
.channel-list,
.source-list,
.asset-list,
.scheduled-list,
.package-list {
  display: grid;
  gap: 10px;
}

.job-list,
.asset-list {
  margin-top: 16px;
}

.job-item,
.channel-item,
.source-item,
.asset-item,
.scheduled-item {
  padding: 12px;
}

.package-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  color: inherit;
  text-align: left;
}

.package-item.active {
  border-color: rgba(16, 220, 255, 0.76);
  box-shadow: 0 0 18px rgba(16, 220, 255, 0.14);
}

.media-upload-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.channel-badge {
  padding: 6px 8px;
  color: var(--magenta);
  border: 1px solid rgba(189, 55, 255, 0.42);
  border-radius: 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.channel-badge.ready {
  color: var(--cyan);
  border-color: rgba(16, 220, 255, 0.58);
}

.source-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.empty {
  padding: 16px;
  border: 1px dashed rgba(16, 220, 255, 0.3);
  border-radius: 8px;
  color: var(--dim);
  background: rgba(3, 7, 18, 0.46);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  min-width: 260px;
  max-width: 420px;
  padding: 13px 15px;
  border: 1px solid rgba(16, 220, 255, 0.55);
  border-radius: 10px;
  color: var(--text);
  background: rgba(5, 10, 20, 0.96);
  box-shadow: 0 0 26px rgba(16, 220, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

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

@media (min-width: 1540px) {
  .module-grid {
    grid-template-columns: minmax(330px, 0.92fr) minmax(660px, 1.5fr) minmax(340px, 0.95fr);
  }
}

@media (max-width: 1450px) {
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .module-generator,
  .module-preview,
  .module-library {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .app-rail {
    width: 168px;
  }

  .app-shell {
    width: auto;
    margin-left: 212px;
    margin-right: 18px;
  }

  .app-topbar,
  .system-status {
    align-items: stretch;
    flex-direction: column;
  }

}

@media (max-width: 820px) {
  .app-rail {
    position: static;
    width: auto;
    min-height: 76px;
    margin: 8px;
  }

  .rail-nav {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .rail-nav a {
    white-space: nowrap;
  }

  .rail-foot {
    display: none;
  }

  .app-shell {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 14px 28px;
  }

  .workflow-strip,
  .metric-row,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-generator,
  .module-preview,
  .module-library {
    grid-column: auto;
  }

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

  h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .command-button,
  .status-chip {
    width: 100%;
    justify-content: center;
  }
}
