:root {
  color-scheme: light;
  --bg: #edf3f7;
  --bg-soft: #f7fafc;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: #f4f7fb;
  --line: rgba(98, 122, 153, 0.18);
  --line-strong: rgba(63, 91, 122, 0.24);
  --ink: #10243a;
  --muted: #5f738c;
  --brand: #1f6e64;
  --brand-strong: #0f5a52;
  --brand-soft: rgba(39, 122, 111, 0.12);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --warn: #c97300;
  --warn-soft: rgba(201, 115, 0, 0.12);
  --err: #c63d52;
  --err-soft: rgba(198, 61, 82, 0.12);
  --ok: #11815f;
  --ok-soft: rgba(17, 129, 95, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 12px 28px rgba(14, 31, 54, 0.06);
  --shadow-md: 0 22px 60px rgba(14, 31, 54, 0.1);
  --shadow-lg: 0 28px 80px rgba(14, 31, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 460px at -10% -15%, rgba(25, 118, 210, 0.16), transparent 60%),
    radial-gradient(920px 420px at 110% -10%, rgba(17, 129, 95, 0.16), transparent 60%),
    linear-gradient(180deg, #f6fafc 0%, var(--bg) 48%, #ecf2f7 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(250px, 286px) minmax(0, 1fr);
  min-height: 100vh;
}

.app-rail {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1.5rem;
  align-self: start;
  min-height: 100vh;
  padding: 1.3rem 1.15rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 253, 0.78)),
    rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(20px);
}

.rail-brand,
.rail-status,
.surface,
.topbar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.rail-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(17, 129, 95, 0.96), rgba(37, 99, 235, 0.92));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-copy h1,
.section-head h2,
.surface-head h3,
.surface-hero h3 {
  margin: 0;
}

.brand-copy {
  display: grid;
  gap: 0.24rem;
}

.brand-copy h1 {
  font-size: 1.18rem;
}

.brand-note,
.section-copy,
.support-copy,
.metric-meta,
.hero-copy,
.subtitle-copy {
  color: var(--muted);
  line-height: 1.45;
}

.brand-note {
  margin: 0;
  font-size: 0.88rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-nav {
  display: grid;
  gap: 0.55rem;
}

.rail-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.rail-link:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(37, 99, 235, 0.12);
  transform: translateX(2px);
}

.rail-link.is-active {
  background: linear-gradient(135deg, rgba(17, 129, 95, 0.14), rgba(37, 99, 235, 0.1));
  border-color: rgba(17, 129, 95, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.rail-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rail-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.rail-status {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1rem;
}

.support-block {
  display: grid;
  gap: 0.22rem;
}

.support-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.topbar-copy {
  display: grid;
  gap: 0.26rem;
}

.topbar-title {
  margin: 0;
  max-width: 48rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.topbar-meta,
.hero-pills,
.control-summary,
.section-tools,
.filters-row,
.log-toolbar,
.log-stats {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.topbar-pill,
.pill,
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.1rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.topbar-pill strong,
.pill strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-check input {
  margin: 0;
}

.view-stack {
  display: grid;
  min-width: 0;
}

.view-section {
  display: none;
  gap: 1rem;
  min-width: 0;
  animation: section-in 220ms ease;
}

.view-section.is-active {
  display: grid;
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head,
.surface-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.section-head h2 {
  font-size: 1.55rem;
  font-weight: 800;
}

.section-copy {
  margin: 0.25rem 0 0;
  max-width: 58rem;
  font-size: 0.94rem;
}

.surface {
  padding: 1rem;
}

.surface-hero {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(17, 129, 95, 0.08), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.surface-hero h3 {
  font-size: clamp(1.4rem, 2vw, 2.05rem);
  line-height: 1.05;
}

.hero-copy {
  margin: 0;
  max-width: 52rem;
  font-size: 0.96rem;
}

.overview-hero,
.split-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
}

.compact-surface {
  display: grid;
  align-content: stretch;
}

.compact-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}

.mini-stat {
  display: grid;
  gap: 0.24rem;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 249, 252, 0.78));
}

.mini-stat strong {
  font-size: 1.7rem;
  line-height: 1;
}

.metric-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.metric-tile {
  display: grid;
  gap: 0.32rem;
  min-height: 160px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 253, 0.82));
  box-shadow: var(--shadow-sm);
}

.metric-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.04;
}

.metric-meta {
  font-size: 0.82rem;
}

.filters-row {
  justify-content: flex-start;
  margin-bottom: 0.95rem;
}

.field {
  display: grid;
  gap: 0.34rem;
  min-width: 180px;
}

.field.grow {
  flex: 1 1 260px;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.field-inline {
  min-width: 130px;
}

.field input,
.field select,
.control-grid input,
.control-grid select {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.65rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.field input:focus,
.field select:focus,
.control-grid input:focus,
.control-grid select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 0.72rem 0.68rem;
  border-bottom: 1px solid rgba(98, 122, 153, 0.14);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(245, 248, 251, 0.95);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

th.has-tooltip {
  cursor: help;
  text-decoration: underline dotted rgba(20, 83, 45, 0.42);
  text-underline-offset: 0.18rem;
}

tbody tr:hover td {
  background: rgba(17, 129, 95, 0.04);
}

.counter-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.36rem;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.1);
  color: #14532d;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.os-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 1.75rem;
  padding: 0.12rem 0.38rem;
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.95rem;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-badge.ok,
.status-badge.ready,
.status-badge.success,
.status-badge.completed,
.status-badge.online,
.status-badge.active,
.status-badge.full,
.status-badge.live {
  color: var(--ok);
  background: var(--ok-soft);
}

.status-badge.extracting,
.status-badge.running {
  color: var(--accent);
  background: var(--accent-soft);
}

.status-badge.pending,
.status-badge.queued,
.status-badge.inventory,
.status-badge.idle,
.status-badge.warn,
.status-badge.slow,
.status-badge.overrun,
.status-badge.sample_test,
.status-badge.sample,
.status-badge.mixed,
.status-badge.no_email_lane,
.status-badge.running_no_probe,
.status-badge.starved {
  color: var(--warn);
  background: var(--warn-soft);
}

.status-badge.failed,
.status-badge.timeout,
.status-badge.timed_out,
.status-badge.aborted,
.status-badge.offline,
.status-badge.stalled,
.status-badge.stuck-no-timeout {
  color: var(--err);
  background: var(--err-soft);
}

tr.done-row td {
  background: rgba(17, 129, 95, 0.06);
}

tr.running-row td {
  background: rgba(37, 99, 235, 0.05);
}

tr.muted-row td {
  opacity: 0.62;
}

.alerts {
  display: grid;
  gap: 0.7rem;
}

.alerts-summary {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.alert {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(249, 251, 253, 0.95), rgba(255, 255, 255, 0.86));
}

.alert.error,
.alert.critical {
  border-color: rgba(198, 61, 82, 0.18);
  background: linear-gradient(180deg, rgba(255, 241, 243, 0.96), rgba(255, 249, 250, 0.92));
}

.alert.warn,
.alert.warning {
  border-color: rgba(201, 115, 0, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 245, 0.92));
}

.alert-title {
  font-weight: 800;
}

.alert-detail,
.alert-action {
  line-height: 1.45;
}

.alert-action {
  color: var(--muted);
  font-size: 0.84rem;
}

.log-toolbar {
  margin: 0.1rem 0 0.9rem;
}

.log-stats {
  margin-bottom: 0.7rem;
}

.ops-events {
  display: grid;
  gap: 0.45rem;
  margin: 0.15rem 0 0.75rem;
}

.readiness-list,
.cleanup-panel {
  display: grid;
  gap: 0.58rem;
}

.readiness-list {
  margin-bottom: 0.9rem;
}

.readiness-item {
  display: grid;
  grid-template-columns: auto minmax(120px, 0.5fr) minmax(180px, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.94);
  font-size: 0.84rem;
}

.readiness-item.ok {
  border-color: rgba(17, 129, 95, 0.16);
  background: rgba(236, 253, 243, 0.86);
}

.readiness-item.warn {
  border-color: rgba(201, 115, 0, 0.16);
  background: rgba(255, 247, 237, 0.9);
}

.readiness-item.failed {
  border-color: rgba(198, 61, 82, 0.16);
  background: rgba(255, 241, 243, 0.9);
}

.cleanup-panel {
  padding: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(247, 250, 252, 0.88);
}

.op-event {
  display: grid;
  gap: 0.18rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.94);
  font-size: 0.82rem;
}

.op-event .op-type {
  font-weight: 800;
}

.op-event .op-when {
  color: var(--muted);
  font-size: 0.76rem;
}

.op-event.critical,
.op-event.error {
  border-color: rgba(198, 61, 82, 0.16);
  background: rgba(255, 241, 243, 0.94);
}

.op-event.warn,
.op-event.warning {
  border-color: rgba(201, 115, 0, 0.16);
  background: rgba(255, 247, 237, 0.94);
}

.op-event.info,
.op-event.ok {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(239, 246, 255, 0.92);
}

.log-meta {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.log-viewer {
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid rgba(8, 21, 40, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(5, 15, 31, 0.94), rgba(10, 24, 41, 0.96)),
    #071321;
  color: #e1ebf8;
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.log-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.log-info {
  color: #dce7f6;
}

.log-ok {
  color: #98f0bf;
}

.log-warn {
  color: #ffd089;
}

.log-error {
  color: #ffb7c1;
}

.download-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  margin: 0.12rem 0.22rem 0.12rem 0;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.9);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.download-link:hover {
  background: rgba(219, 234, 254, 1);
}

.download-stack {
  display: grid;
  gap: 0.26rem;
}

.premium-gate {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.premium-controls {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.premium-controls input {
  min-width: 170px;
}

.download-buckets {
  display: grid;
  gap: 1.1rem;
}

.download-bucket {
  display: grid;
  gap: 0.75rem;
}

.variant-evidence {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: lowercase;
}

.partial-row {
  background: rgba(255, 251, 235, 0.3);
}

.variant-block {
  display: grid;
  gap: 0.36rem;
  min-width: 190px;
}

.variant-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.variant-meta,
.blocker-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.blocker-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.22rem 0.52rem;
  border: 1px solid rgba(201, 115, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: #985600;
  font-size: 0.74rem;
  font-weight: 700;
}

.launch-lock {
  display: grid;
  gap: 0.24rem;
  padding: 0.95rem 1rem;
  border: 1px dashed rgba(201, 115, 0, 0.34);
  border-radius: 20px;
  background: rgba(255, 247, 237, 0.88);
  color: #915400;
}

.control-next,
.autopilot-box,
.advanced-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(247, 250, 252, 0.88);
}

.control-next {
  margin-bottom: 0.8rem;
  padding: 0.8rem 0.9rem;
  line-height: 1.55;
}

.control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-start {
  background: rgba(236, 253, 243, 0.96);
  border-color: rgba(17, 129, 95, 0.24);
  color: #166048;
}

.btn-pause {
  background: rgba(255, 247, 237, 0.96);
  border-color: rgba(201, 115, 0, 0.24);
  color: #8e5400;
}

.btn-resume {
  background: rgba(239, 246, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
}

.btn-abort {
  background: rgba(255, 241, 243, 0.96);
  border-color: rgba(198, 61, 82, 0.24);
  color: #a73044;
}

.autopilot-box {
  padding: 0.8rem;
  margin-bottom: 0.85rem;
}

.advanced-box {
  padding: 0.75rem 0.9rem;
}

.advanced-box > summary {
  cursor: pointer;
  font-weight: 800;
}

.control-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0.8rem;
}

.control-grid label {
  display: grid;
  gap: 0.34rem;
  color: var(--muted);
  font-size: 0.82rem;
}

body[data-viewer-role="read"] .launch-admin-only {
  display: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-rail {
    position: static;
    min-height: auto;
    grid-template-rows: auto auto auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  }

  .rail-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    overflow: auto;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 1040px) {
  .topbar,
  .section-head,
  .surface-head,
  .overview-hero,
  .split-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

@media (max-width: 760px) {
  .app-main {
    padding: 0.8rem;
  }

  .topbar,
  .surface,
  .rail-brand,
  .rail-status {
    border-radius: 22px;
  }

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

  .compact-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .topbar-meta,
  .filters-row,
  .log-toolbar,
  .control-actions,
  .premium-gate,
  .premium-controls {
    width: 100%;
    align-items: stretch;
  }

  .field,
  .field.grow,
  .field-inline,
  .premium-controls input {
    min-width: 100%;
  }

  th,
  td {
    font-size: 0.8rem;
  }

  .download-table thead {
    display: none;
  }

  .download-table,
  .download-table tbody,
  .download-table tr,
  .download-table td {
    display: block;
    width: 100%;
  }

  .download-table tr {
    padding: 0.72rem;
    border-bottom: 1px solid rgba(98, 122, 153, 0.18);
  }

  .download-table tr:last-child {
    border-bottom: 0;
  }

  .download-table td {
    display: grid;
    grid-template-columns: minmax(5.8rem, 0.34fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.48rem 0;
    border-bottom: 0;
    white-space: normal;
  }

  .download-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .download-table .empty-product-row td {
    display: block;
  }

  .download-table .empty-product-row td::before {
    content: "";
  }

  .download-table .variant-block {
    min-width: 0;
  }

  .download-table .download-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-table .download-link,
  .download-table .status-badge {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .readiness-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .rail-nav {
    grid-auto-columns: minmax(138px, 1fr);
  }
}
