:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: rgba(13, 18, 27, 0.84);
  --panel-strong: rgba(18, 26, 38, 0.96);
  --border: rgba(126, 166, 198, 0.2);
  --text: #eef6ff;
  --muted: #9fb3c8;
  --green: #5ec8ff;
  --green-soft: rgba(94, 200, 255, 0.14);
  --yellow: #f5d65b;
  --yellow-soft: rgba(245, 214, 91, 0.16);
  --red: #ff5d6c;
  --red-soft: rgba(255, 93, 108, 0.17);
  --up-red: #ff5d6c;
  --up-soft: rgba(255, 93, 108, 0.14);
  --down-green: #25c27a;
  --down-soft: rgba(37, 194, 122, 0.14);
  --cyan: #55e7ff;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(94, 200, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 84% 2%, rgba(255, 93, 108, 0.08), transparent 26rem),
    linear-gradient(135deg, #05070b 0%, #070b12 48%, #101622 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(126, 166, 198, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 166, 198, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 40% 20%, black, transparent 72%);
}

#app {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.landing-page {
  overflow-x: hidden;
}

.site-nav,
.landing-hero,
.landing-strip,
.landing-section,
.landing-cta,
.landing-footer,
.noscript-fallback {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  z-index: 2;
}

.brand-lockup,
.site-nav nav,
.hero-actions,
.landing-strip,
.landing-footer {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(94, 200, 255, 0.4);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #061018;
  background: linear-gradient(135deg, #5ec8ff, #56f0c2);
  font-size: 15px;
  font-weight: 950;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--muted);
}

.site-nav nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a:not(.brand-lockup) {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
  border: 1px solid rgba(94, 200, 255, 0.42);
  color: var(--green);
  background: rgba(94, 200, 255, 0.12);
}

.landing-hero {
  min-height: 620px;
  border: 1px solid rgba(126, 166, 198, 0.22);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.88) 42%, rgba(7, 11, 18, 0.4) 100%),
    linear-gradient(0deg, rgba(7, 11, 18, 0.86), rgba(7, 11, 18, 0.16)),
    url("/assets/terminal-preview.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 720px;
  z-index: 1;
}

.hero-copy h1,
.section-heading h2,
.landing-cta h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 92px);
}

.hero-lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: #c7d7e8;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
}

.primary-button {
  border: 1px solid rgba(94, 200, 255, 0.72);
  color: #061018;
  background: linear-gradient(135deg, #5ec8ff, #56f0c2);
}

.secondary-button {
  border: 1px solid rgba(126, 166, 198, 0.32);
  background: rgba(7, 11, 18, 0.66);
}

.primary-button:hover,
.secondary-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  transform: translateY(-1px);
}

.risk-inline {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-preview {
  width: min(820px, 100%);
  margin: 42px 0 0;
}

.hero-preview img {
  width: 100%;
  display: block;
  border: 1px solid rgba(126, 166, 198, 0.26);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.hero-preview figcaption {
  margin-top: 10px;
  color: #c7d7e8;
  font-size: 14px;
  line-height: 1.5;
}

.landing-strip {
  min-height: 78px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(7, 11, 18, 0.72);
  box-shadow: var(--shadow);
}

.landing-strip div {
  display: grid;
  gap: 4px;
}

.landing-strip strong,
.feature-grid strong,
.trust-grid strong {
  font-size: 16px;
}

.landing-strip span {
  color: var(--muted);
  font-size: 14px;
}

.landing-section,
.landing-cta {
  margin-top: 52px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading h2,
.landing-cta h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.section-heading p:not(.eyebrow),
.landing-cta p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.feature-grid,
.scenario-grid,
.trust-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-grid,
.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.scenario-grid article,
.trust-grid article,
.landing-cta,
.noscript-fallback {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(13, 19, 28, 0.9), rgba(6, 10, 16, 0.74));
  box-shadow: var(--shadow);
}

.feature-grid p,
.scenario-grid p,
.trust-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.scenario-grid span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.scenario-grid h3 {
  margin: 10px 0 0;
  font-size: 26px;
  letter-spacing: 0;
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-cta {
  padding: 30px;
}

.landing-footer {
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.noscript-fallback {
  margin-top: 20px;
  margin-bottom: 24px;
  color: var(--text);
}

.noscript-fallback p {
  color: var(--muted);
  line-height: 1.6;
}

.noscript-fallback a {
  color: var(--green);
}

.desk-header,
.panel,
.desk-summary {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(13, 19, 28, 0.94), rgba(6, 10, 16, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.desk-header {
  min-height: 68px;
  margin-bottom: 12px;
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.desk-title h1,
.desk-title span {
  display: block;
}

.desk-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.desk-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.desk-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.desk-status span {
  border: 1px solid rgba(126, 166, 198, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  white-space: nowrap;
}

.desk-status b {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 800;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.desk-summary {
  min-height: 56px;
  margin-bottom: 12px;
  border-radius: 16px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: repeat(4, max-content) minmax(220px, 1fr);
  align-items: center;
  gap: 0;
}

.summary-cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid rgba(126, 166, 198, 0.16);
  white-space: nowrap;
}

.summary-cell:first-child {
  padding-left: 0;
}

.summary-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.summary-cell strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.summary-cell .signal-counts {
  color: var(--green);
}

.summary-note {
  min-width: 0;
  margin: 0;
  padding-left: 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-note b {
  margin-right: 8px;
  color: var(--green);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.72fr);
  gap: 16px;
}

.main-col,
.side-col {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.panel {
  border-radius: 24px;
  padding: 22px;
  min-width: 0;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pill,
button {
  border: 1px solid rgba(94, 200, 255, 0.32);
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}

button {
  cursor: pointer;
  font-family: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ghost-button {
  border-color: rgba(126, 166, 198, 0.22);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.watch-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -2px 0 12px;
}

.watch-tabs,
.watch-sortbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.watch-sortbar {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
}

.watch-tab,
.watch-sort-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.watch-sort-chip {
  min-height: 32px;
  padding: 6px 10px;
  border-color: rgba(126, 166, 198, 0.18);
  font-size: 12px;
}

.watch-tab b,
.watch-sort-chip b {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.25;
}

.watch-tab.is-active,
.watch-sort-chip.is-active {
  color: var(--green);
  border-color: rgba(94, 200, 255, 0.42);
  background: var(--green-soft);
}

.table-empty {
  border: 1px dashed rgba(126, 166, 198, 0.24);
  border-radius: 14px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.table-wrap {
  max-width: 100%;
  max-height: min(68vh, 760px);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(126, 166, 198, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: rgba(11, 16, 24, 0.98);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 4px 6px;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: 900;
  text-align: left;
}

.table-sort-button:hover,
.table-sort-button.is-active {
  color: var(--green);
  background: rgba(94, 200, 255, 0.08);
}

.table-sort-button b {
  min-width: 12px;
  color: currentColor;
  font-size: 11px;
  line-height: 1;
}

td:last-child {
  line-height: 1.45;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.row-tags i {
  border: 1px solid rgba(126, 166, 198, 0.18);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.up {
  color: var(--up-red);
}

.down {
  color: var(--down-green);
}

.flat {
  color: var(--muted);
}

.signal {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
}

.odds-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  border: 1px solid rgba(126, 166, 198, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.odds-badge b {
  flex: 0 0 auto;
  min-width: 24px;
  color: var(--text);
}

.odds-badge.prime,
.odds-badge.improving {
  border-color: rgba(255, 93, 108, 0.34);
  color: var(--up-red);
  background: var(--up-soft);
}

.odds-badge.watch {
  border-color: rgba(245, 214, 91, 0.34);
  color: var(--yellow);
  background: var(--yellow-soft);
}

.odds-badge.low,
.odds-badge.weak {
  color: var(--muted);
}

.signal.green,
.level-card.green,
.heat-tile.green {
  border-color: rgba(94, 200, 255, 0.42);
  background: var(--green-soft);
}

.signal.yellow,
.level-card.yellow,
.heat-tile.yellow {
  border-color: rgba(245, 214, 91, 0.45);
  background: var(--yellow-soft);
  color: var(--yellow);
}

.signal.red,
.level-card.red,
.heat-tile.red {
  border-color: rgba(255, 93, 108, 0.45);
  background: var(--red-soft);
  color: var(--red);
}

.signal.neutral,
.level-card.neutral,
.heat-tile.neutral {
  border-color: rgba(126, 166, 198, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  grid-auto-rows: 142px;
  gap: 10px;
}

.heat-tile {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  overflow: hidden;
}

.heat-tile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.heat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.heat-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-meta b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.heat-tile strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 20px;
}

.heat-tile em {
  display: block;
  margin-bottom: 6px;
  font-style: normal;
  font-weight: 900;
}

.heat-tile.strength-hot {
  border-color: rgba(255, 93, 108, 0.42);
}

.heat-tile.strength-hot .heat-meta b,
.heat-tile.odds-prime .heat-meta b,
.heat-tile.odds-improving .heat-meta b {
  color: var(--up-red);
  background: var(--up-soft);
}

.heat-tile.strength-watch .heat-meta b,
.heat-tile.odds-watch .heat-meta b {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.heat-tile.odds-prime,
.heat-tile.odds-improving {
  border-color: rgba(255, 93, 108, 0.42);
}

.strength-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.strength-tags i {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 3px 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.level-stack,
.news-list {
  display: grid;
  gap: 12px;
}

.level-card,
.news-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.level-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.level-card header span {
  color: var(--muted);
  font-size: 12px;
}

.level-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.level-dot {
  border-radius: 12px;
  padding: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.level-dot b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.level-dot.support b {
  color: var(--cyan);
}

.level-dot.pressure b {
  color: var(--yellow);
}

.level-dot.repair b {
  color: var(--green);
}

.level-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.news-card time {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.news-card h3 {
  margin: 8px 0;
  font-size: 16px;
}

.news-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

textarea {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  border: 1px solid rgba(126, 166, 198, 0.18);
  border-radius: 18px;
  padding: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  line-height: 1.72;
  font: 14px/1.72 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.import-panel {
  padding: 16px 18px;
}

.import-panel summary strong {
  font-size: 18px;
}

.import-body {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.import-body textarea {
  min-height: 136px;
}

.import-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.import-actions span,
.import-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.insight-panel {
  position: sticky;
  top: 16px;
}

.dock-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.dock-tab {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  white-space: normal;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.dock-tab.is-active {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(94, 200, 255, 0.42);
}

.dock-body {
  min-height: 360px;
}

.dock-pane[hidden] {
  display: none;
}

.signal-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.signal-lane {
  min-width: 0;
  border: 1px solid rgba(126, 166, 198, 0.16);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.signal-lane span,
.signal-lane small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-lane strong {
  display: block;
  margin: 3px 0;
  font-size: 18px;
  line-height: 1;
}

.signal-lane.green strong {
  color: var(--green);
}

.signal-lane.yellow strong {
  color: var(--yellow);
}

.signal-lane.red strong {
  color: var(--red);
}

.signal-group-list {
  display: grid;
  gap: 8px;
}

.signal-group-card {
  border: 1px solid rgba(126, 166, 198, 0.16);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.signal-group-card.green {
  border-color: rgba(94, 200, 255, 0.32);
}

.signal-group-card.yellow {
  border-color: rgba(245, 214, 91, 0.28);
}

.signal-group-card.red {
  border-color: rgba(255, 93, 108, 0.3);
}

.signal-group-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.signal-group-card strong,
.signal-group-card small {
  display: block;
}

.signal-group-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.signal-group-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.signal-group-card em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.signal-group-card.yellow em {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.signal-group-card.red em {
  color: var(--red);
  background: var(--red-soft);
}

.signal-group-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.queue-footnote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.compact-details summary::-webkit-details-marker {
  display: none;
}

.compact-details summary strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.brief-tools {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0 12px;
}

dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

dl div {
  border-top: 1px solid rgba(126, 166, 198, 0.14);
  padding-top: 12px;
}

dt {
  color: var(--green);
  font-weight: 900;
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  margin-top: 18px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 980px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    justify-content: flex-start;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    position: static;
  }

  .feature-grid,
  .scenario-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .desk-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  .summary-cell {
    border-right: 0;
    padding: 0;
  }

  .summary-note {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .heatmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-nav,
  .landing-hero,
  .landing-strip,
  .landing-section,
  .landing-cta,
  .landing-footer,
  .noscript-fallback {
    width: min(100% - 20px, 1180px);
  }

  .site-nav nav a:not(.nav-cta) {
    display: none;
  }

  .landing-hero {
    min-height: 560px;
    border-radius: 20px;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-lede,
  .section-heading p:not(.eyebrow),
  .landing-cta p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-strip,
  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .scenario-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  #app {
    width: min(100% - 20px, 1440px);
    padding-top: 10px;
  }

  .panel,
  .desk-summary,
  .desk-header {
    border-radius: 18px;
    padding: 16px;
  }

  .desk-summary {
    grid-template-columns: 1fr;
  }

  .summary-cell {
    justify-content: space-between;
  }

  .desk-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .desk-status {
    justify-content: flex-start;
  }

  .row-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .dock-tabs {
    grid-template-columns: 1fr;
  }

  .signal-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heatmap,
  .level-line {
    grid-template-columns: 1fr;
  }

}
