:root {
  --bg: #eef3f7;
  --surface: #fbfcfd;
  --surface-2: #f3f7fa;
  --panel: #ffffff;
  --ink: #14212b;
  --muted: #637282;
  --line: #d8e1ea;
  --lab-blue: #2d6cdf;
  --signal: #f2a23a;
  --thermal: #141c24;
  --thermal-2: #1d2934;
  --cyan: #2ca6a4;
  --danger: #d36d4a;
  --shadow: 0 18px 44px rgba(31, 52, 71, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(238,243,247,.94) 360px),
    repeating-linear-gradient(90deg, rgba(45,108,223,.035) 0 1px, transparent 1px 72px),
    var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

a { color: var(--lab-blue); text-decoration: none; font-weight: 700; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
  background: rgba(251, 252, 253, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.app-header strong { letter-spacing: .01em; color: #102033; }
.app-header span { margin-left: 8px; color: var(--muted); font-size: 13px; }
.app-header nav { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.app-header nav a {
  padding: 8px 10px;
  color: #304456;
  border-radius: 6px;
}
.app-header nav a:hover { background: #e7eef7; color: var(--lab-blue); }
.app-header nav a.nav-feature {
  color: #102033;
  background: #fff7e8;
  border: 1px solid #f3c56d;
}
.app-header nav a.nav-feature:hover {
  background: var(--signal);
  color: #fff;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
}

.home-hero, .brief-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,247,251,.92));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.brief-hero {
  min-height: 340px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy, .brief-hero > div {
  display: grid;
  align-content: center;
  gap: 18px;
}
.eyebrow, .section-head span, .narrative-grid span, .matrix-copy span {
  color: var(--signal);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  max-width: 880px;
  font-size: clamp(38px, 5vw, 74px);
  line-height: .98;
  letter-spacing: 0;
  color: #102033;
}
.hero-copy p, .brief-hero p {
  max-width: 760px;
  color: #526577;
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
button, .button {
  border: 0;
  border-radius: 7px;
  background: var(--lab-blue);
  color: #fff;
  padding: 10px 15px;
  min-height: 42px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.button { display: inline-flex; align-items: center; }
.button.secondary {
  background: #eef3f8;
  color: #22364a;
  border: 1px solid var(--line);
}
.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #243442;
  background: var(--thermal);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.12) brightness(.84) saturate(.8);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,11,15,.74), transparent 45%);
}
.scan-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  min-width: 230px;
  padding: 14px;
  background: rgba(12, 18, 24, .82);
  border: 1px solid rgba(242,162,58,.48);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.scan-card span, .scan-card small { display: block; color: #b9c6d0; font-size: 12px; }
.scan-card b { display: block; margin: 6px 0; color: var(--signal); font-size: 30px; line-height: 1; }

.axis-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 1px;
  margin: 18px 0 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}
.axis-strip div { padding: 16px; background: var(--surface); }
.axis-strip b { display: block; color: var(--lab-blue); font-size: 18px; margin-bottom: 8px; }
.axis-strip span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.matrix-showcase {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr);
  gap: 24px;
  margin: 28px 0;
  padding: 26px;
  background:
    linear-gradient(rgba(45,108,223,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,108,223,.055) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.matrix-copy h2 { font-size: 32px; margin: 8px 0 12px; color: #102033; }
.matrix-copy p { color: var(--muted); line-height: 1.85; margin-bottom: 0; font-size: 16px; }
.matrix-lattice {
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  position: relative;
}
.matrix-lattice::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(45,108,223,.25);
  border-radius: 10px;
  pointer-events: none;
}
.node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  padding: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid #cfdbea;
  border-radius: 8px;
  color: #26394c;
  text-align: center;
}
.node b { font-size: 18px; color: #102033; margin-bottom: 7px; }
.node span { color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 700; }
.node.primary {
  grid-row: span 2;
  background: #eaf2ff;
  border-color: #9cc5ff;
  color: #164a96;
}
.node.primary b { color: #164a96; font-size: 24px; }
.node.output {
  grid-column: span 2;
  background: #fff4dc;
  border-color: #f3c56d;
  color: #865b11;
}
.node.output b { color: #865b11; font-size: 22px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 30px 0 12px;
}
.section-head h2 { margin: 4px 0 0; font-size: 28px; color: #102033; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.showcase-grid.compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.equipment-tile, .capture-card, .panel, .login-panel, .narrative-grid article, .workflow-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.equipment-tile img, .capture-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--thermal);
}
.equipment-tile div, .capture-card div { padding: 14px; }
.equipment-tile strong, .capture-card strong { display: block; margin-bottom: 6px; font-size: 17px; color: #102033; }
.equipment-tile span, .capture-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }

.capability-band {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 18px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f0f6fb);
  box-shadow: var(--shadow);
}
.capability-band h2 { font-size: 30px; color: #102033; }
.capability-band p { color: var(--muted); line-height: 1.7; }
.capability-list { display: grid; gap: 10px; }
.capability-list div {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.capability-list b { color: var(--signal); font-size: 22px; }
.capability-list span { color: #405468; line-height: 1.5; }

.narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.narrative-grid article { padding: 20px; }
.narrative-grid h2 { font-size: 24px; color: #102033; }
.narrative-grid p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  margin: 18px 0;
}
.spotlight-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(45,108,223,.16), transparent 34%),
    #ffffff;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.spotlight-card.primary {
  background:
    radial-gradient(circle at 85% 22%, rgba(242,162,58,.28), transparent 34%),
    linear-gradient(135deg, #102033, #203b56);
  color: #fff;
  border-color: rgba(242,162,58,.55);
}
.spotlight-card span {
  display: block;
  color: var(--signal);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 900;
  margin-bottom: 12px;
}
.spotlight-card h2 { margin-bottom: 10px; font-size: 30px; color: inherit; }
.spotlight-card p { margin: 0; color: #637282; line-height: 1.7; }
.spotlight-card.primary p { color: #c8d5df; }

.matrix-primer {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr);
  gap: 18px;
  margin: 18px 0;
  padding: 22px;
  background:
    linear-gradient(rgba(45,108,223,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,108,223,.055) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.matrix-primer h2 { font-size: 30px; margin-bottom: 10px; color: #102033; }
.matrix-primer p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.matrix-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.matrix-board div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}
.matrix-board b { display: block; color: var(--lab-blue); font-size: 20px; margin-bottom: 8px; }
.matrix-board span { color: #405468; line-height: 1.55; }

.ood-panel {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(440px, 1.15fr);
  gap: 18px;
  margin: 18px 0;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(44,166,164,.35);
  background:
    radial-gradient(circle at 10% 0, rgba(44,166,164,.14), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef9f8);
  box-shadow: var(--shadow);
}
.ood-panel > div > span {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 900;
}
.ood-panel h2 { font-size: 30px; margin: 8px 0 10px; color: #102033; }
.ood-panel p { color: var(--muted); line-height: 1.75; margin-bottom: 0; }
.ood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ood-grid div {
  min-height: 112px;
  padding: 15px;
  border: 1px solid rgba(44,166,164,.28);
  border-radius: 9px;
  background: rgba(255,255,255,.78);
}
.ood-grid b { display: block; color: #16766f; font-size: 20px; margin-bottom: 8px; }
.ood-grid span { color: #405468; line-height: 1.55; }

.dark-panel { background: #ffffff; }
.scale-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
}
.scale-rail div { padding: 18px; background: var(--surface); }
.scale-rail b { display: block; margin-bottom: 8px; color: var(--lab-blue); font-size: 20px; }
.scale-rail span { color: var(--muted); line-height: 1.5; }

.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.workflow-card { padding: 18px; }
.workflow-card b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--lab-blue);
  margin-bottom: 14px;
}
.workflow-card h3 { margin-bottom: 8px; color: #102033; }
.workflow-card p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }

.hero, .panel, .login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.hero { padding: 22px; margin-bottom: 16px; }
.hero p, .empty { color: var(--muted); margin-bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-height: 94px; }
.stat b { display: block; color: var(--lab-blue); font-size: 30px; line-height: 1; margin-bottom: 8px; }
.stat span, .vehicle-card p, .sample-card p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.panel { margin-bottom: 16px; overflow: hidden; }
.panel.narrow { max-width: 980px; margin: 0 auto; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.panel-head h1, .panel-head h2 { margin: 0; font-size: 20px; color: #102033; }

.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); }
.matrix div { background: var(--surface); padding: 14px; }
.matrix b { display: block; margin-bottom: 8px; }
.matrix span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
input, select, textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: #102120;
}
.filters input { flex: 1 1 260px; }
.filters select { width: auto; min-width: 150px; }

.vehicle-grid, .sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 14px; }
.vehicle-card, .sample-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vehicle-card img, .sample-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--thermal); }
.vehicle-card div, .sample-card h3, .sample-card p, .sample-card .badge { margin-left: 12px; margin-right: 12px; }
.vehicle-card div { padding: 12px 0; }
.vehicle-card h3, .sample-card h3 { margin-bottom: 6px; color: #102033; }
.badge, .status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: #eaf2ff;
  color: #164a96;
  margin-bottom: 12px;
}
.video-tile { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--thermal); color: var(--signal); font-weight: 700; }
.login-panel { max-width: 420px; margin: 10vh auto; padding: 24px; }
.form { display: grid; gap: 14px; }
.grid-form { padding: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form .full, .grid-form button { grid-column: 1 / -1; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.error { background: #fff0e9; color: #8f3e1d; border-left: 3px solid var(--danger); padding: 10px 12px; margin-bottom: 12px; border-radius: 6px; }

.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 13px; line-height: 1.45; }
.table th { background: var(--surface-2); color: #304456; }
.status.ok { background: #e7faf7; color: #16766f; }
.status.approx { background: #fff4dc; color: #865b11; }
.status.missing { background: #fff0e9; color: #8f3e1d; }

.comparison-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, .65fr);
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 16%, rgba(242,162,58,.2), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef4fa);
  box-shadow: var(--shadow);
}
.comparison-hero h1 {
  max-width: 980px;
  font-size: clamp(34px, 4.2vw, 60px);
}
.comparison-hero p {
  max-width: 920px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.legend-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.legend-item {
  display: grid;
  align-content: center;
  min-height: 108px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #102033;
}
.legend-item b { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.legend-item span { color: var(--muted); font-size: 14px; font-weight: 800; }
.legend-item.exact { border-color: rgba(44,166,164,.35); background: #effbf8; }
.legend-item.family { border-color: rgba(242,162,58,.42); background: #fff8e8; }
.legend-item.task { border-color: rgba(45,108,223,.36); background: #eef5ff; }
.legend-item.missing { border-color: rgba(211,109,74,.35); background: #fff2ed; }
.legend-item.active {
  outline: 3px solid rgba(45,108,223,.24);
  box-shadow: 0 14px 28px rgba(31,52,71,.12);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.comparison-card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.comparison-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
}
.comparison-card-head span { color: var(--muted); font-size: 13px; font-weight: 800; }
.comparison-card-head b {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #fff;
  background: var(--lab-blue);
}
.comparison-card.ok .comparison-card-head b { background: #16766f; }
.comparison-card.approx .comparison-card-head b { background: #b97810; }
.comparison-card.task .comparison-card-head b { background: var(--lab-blue); }
.comparison-card.missing .comparison-card-head b { background: #a64724; }
.visual-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
}
.image-side {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.image-side.real-side { background: #f8fbfd; }
.image-side.wt-side { background: #eef5ff; border-color: #c7d9f3; }
.image-side-title {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}
.image-side-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.image-side-title strong {
  display: block;
  color: #102033;
  font-size: 19px;
  line-height: 1.3;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.image-tile {
  position: relative;
  display: block;
  min-height: 126px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(216,225,234,.9);
  background: #101820;
  color: #fff;
}
.image-tile.primary-image {
  grid-column: 1 / -1;
  min-height: 260px;
}
.image-tile img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  transition: transform .18s ease;
}
.image-tile.primary-image img { height: 260px; }
.image-tile:hover img { transform: scale(1.035); }
.image-tile small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 20px 9px 7px;
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
}
.image-tile.is-broken { display: none; }
.image-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 260px;
  padding: 16px;
  border: 1px dashed #cfdbea;
  border-radius: 8px;
  background: #f7fafc;
  text-align: center;
}
.image-empty b { color: #304456; }
.image-empty span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.image-search {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    #172533;
  background-size: 16px 16px;
  text-align: center;
}
.image-search span {
  color: var(--signal);
  font-weight: 900;
}
.image-search small {
  position: static;
  padding: 0;
  color: #b9c6d0;
  background: none;
}
.replacement-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 15px;
}
.equipment-box {
  min-height: 128px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.equipment-box span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.equipment-box strong {
  display: block;
  color: #102033;
  font-size: 21px;
  line-height: 1.28;
}
.equipment-box.real { background: #f7fafc; }
.equipment-box.wt { background: #eef5ff; border-color: #c7d9f3; }
.comparison-card.missing .equipment-box.wt {
  background: #fff2ed;
  border-color: #f0c6b6;
}
.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--signal);
  font-size: 30px;
  font-weight: 900;
}
.category-hint {
  margin: 0 15px 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--lab-blue);
  border-radius: 8px;
  background: #f7fafc;
  color: #405468;
  line-height: 1.55;
}
.comparison-card.ok .category-hint { border-left-color: #16766f; }
.comparison-card.approx .category-hint { border-left-color: var(--signal); }
.comparison-card.task .category-hint { border-left-color: var(--lab-blue); }
.comparison-card.missing .category-hint { border-left-color: var(--danger); }
.diff-list {
  display: grid;
  gap: 8px;
  padding: 0 15px 15px;
}
.diff-list div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  line-height: 1.55;
}
.empty-comparison { padding: 22px; }

@media (max-width: 980px) {
  .home-hero, .capability-band, .narrative-grid, .matrix-primer, .matrix-showcase, .spotlight-grid, .ood-panel, .comparison-hero { grid-template-columns: 1fr; }
  .axis-strip, .scale-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-header { align-items: flex-start; flex-direction: column; }
  .container { padding: 14px; }
  .grid-form { grid-template-columns: 1fr; }
  .axis-strip, .scale-rail, .ood-grid, .matrix-lattice { grid-template-columns: 1fr; }
  .node.primary, .node.output { grid-column: auto; grid-row: auto; }
  .comparison-grid, .legend-panel, .replacement-flow, .visual-compare, .image-gallery { grid-template-columns: 1fr; }
  .flow-arrow { min-height: 24px; transform: rotate(90deg); }
  h1 { font-size: 34px; }
}
