:root {
  --v729-ink: #15251f;
  --v729-muted: #56645f;
  --v729-line: #cad6d0;
  --v729-paper: #fbfcf9;
  --v729-panel: #f0f5f1;
  --v729-accent: #0e6754;
  --v729-accent-2: #b4552d;
  --v729-focus: #005fcc;
}

.route-insight-observatory {
  background: var(--v729-paper);
  color: var(--v729-ink);
}

.v729-hero {
  border-bottom: 1px solid var(--v729-line);
  padding: clamp(2rem, 5vw, 4.5rem) 0 2rem;
}

.v729-hero h1 {
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  line-height: .96;
  max-width: 18ch;
}

.v729-hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 74ch;
}

.v729-scope-note,
.v729-sparse-warning,
.v729-not-measurable,
.v729-noscript {
  background: #fff8e9;
  border-left: .35rem solid var(--v729-accent-2);
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
}

.v729-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0;
}

.v729-view-tabs a {
  background: white;
  border: 1px solid var(--v729-line);
  border-radius: 999px;
  color: var(--v729-ink);
  padding: .55rem .9rem;
  text-decoration: none;
}

.v729-view-tabs a[aria-current="page"] {
  background: var(--v729-ink);
  border-color: var(--v729-ink);
  color: white;
}

.v729-controls {
  background: var(--v729-panel);
  border: 1px solid var(--v729-line);
  border-radius: 1rem;
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0;
  padding: 1rem;
}

.v729-controls label {
  color: var(--v729-muted);
  display: grid;
  font-size: .82rem;
  font-weight: 700;
  gap: .3rem;
}

.v729-controls select {
  background: white;
  border: 1px solid #9caea6;
  border-radius: .45rem;
  color: var(--v729-ink);
  min-height: 2.65rem;
  padding: .45rem;
  width: 100%;
}

.v729-controls .reader-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  grid-column: 1 / -1;
}

.v729-result-status {
  border-bottom: 1px solid var(--v729-line);
  color: var(--v729-muted);
  padding-bottom: 1rem;
}

[data-observatory-view] {
  padding: 1.5rem 0 3rem;
}

[data-observatory-view][hidden] {
  display: none !important;
}

[data-observatory-view] > h2,
.v729-active-records > h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  margin-bottom: .35rem;
}

.v729-section-answer {
  font-size: 1.15rem;
  max-width: 76ch;
}

.v729-insight-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0 3rem;
}

.v729-insight-card {
  background: white;
  border: 1px solid var(--v729-line);
  border-radius: 1rem;
  box-shadow: 0 .35rem 1.2rem rgba(21, 37, 31, .06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.2rem;
}

.v729-card-top {
  align-items: baseline;
  color: var(--v729-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .78rem;
  gap: .5rem;
  justify-content: space-between;
}

.v729-insight-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin: .7rem 0 .3rem;
}

.v729-answer {
  font-size: 1.05rem;
}

.v729-metric {
  align-items: baseline;
  border-bottom: 1px solid var(--v729-line);
  border-top: 1px solid var(--v729-line);
  display: grid;
  gap: .15rem .65rem;
  grid-template-columns: auto 1fr auto 1fr auto;
  margin: 1rem 0;
  padding: .8rem 0;
}

.v729-metric strong {
  color: var(--v729-accent);
  font-size: 1.45rem;
}

.v729-metric span {
  color: var(--v729-muted);
  font-size: .76rem;
}

.v729-meta {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v729-meta div {
  min-width: 0;
}

.v729-meta dt {
  color: var(--v729-muted);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.v729-meta dd {
  margin: .15rem 0 0;
  overflow-wrap: anywhere;
}

.v729-insight-card details {
  border-top: 1px solid var(--v729-line);
  margin-top: .75rem;
  padding-top: .65rem;
}

.v729-insight-card .reader-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.v729-kpis {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.2rem 0;
}

.v729-kpis > div {
  background: var(--v729-panel);
  border-radius: .75rem;
  padding: 1rem;
}

.v729-kpis strong,
.v729-kpis span {
  display: block;
}

.v729-kpis strong {
  color: var(--v729-accent);
  font-size: 1.8rem;
}

.v729-kpis span {
  color: var(--v729-muted);
  font-size: .82rem;
}

.v729-composition-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v729-table-scroll {
  border: 1px solid var(--v729-line);
  border-radius: .7rem;
  max-width: 100%;
  overflow: auto;
}

.route-insight-observatory table {
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1rem 0;
  width: 100%;
}

.v729-table-scroll table {
  margin: 0;
  min-width: 44rem;
}

.route-insight-observatory th,
.route-insight-observatory td {
  border-bottom: 1px solid var(--v729-line);
  padding: .65rem;
  text-align: left;
  vertical-align: top;
}

.route-insight-observatory thead th {
  background: var(--v729-panel);
  color: var(--v729-muted);
  font-size: .76rem;
  letter-spacing: .02em;
  position: sticky;
  top: 0;
  text-transform: uppercase;
}

.route-insight-observatory tbody th {
  font-weight: 650;
}

.route-insight-observatory button:not(.reader-menu-button),
.route-insight-observatory .btn {
  cursor: pointer;
}

.route-insight-observatory button:focus-visible,
.route-insight-observatory a:focus-visible,
.route-insight-observatory select:focus-visible,
.v729-dialog:focus-visible {
  outline: 3px solid var(--v729-focus);
  outline-offset: 3px;
}

.v729-active-records {
  border-top: 1px solid var(--v729-line);
  padding: 2rem 0 4rem;
}

.v729-empty {
  background: #fff8e9;
  border: 1px solid #d7b879;
  border-radius: .7rem;
  padding: 1rem;
}

.v729-dialog {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, .28);
  max-height: 90vh;
  max-width: min(72rem, 94vw);
  padding: 1rem;
  width: 100%;
}

.v729-dialog::backdrop {
  background: rgba(8, 22, 17, .68);
}

.v729-dialog-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.v729-dialog-header h2 {
  margin: 0;
}

.v729-id-list {
  max-height: 12rem;
  overflow: auto;
  padding-left: 1.2rem;
}

.v729-method {
  border-bottom: 1px solid var(--v729-line);
  padding: 2rem 0;
}

.v729-method dl {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v729-method dl > div {
  background: var(--v729-panel);
  border-radius: .6rem;
  padding: .7rem;
}

.v729-method dt {
  font-weight: 750;
}

.v729-method dd {
  margin: .2rem 0 0;
}

.v729-home-observatory {
  background: #eaf2ed;
}

@media (max-width: 900px) {
  .v729-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v729-insight-grid,
  .v729-composition-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .v729-controls,
  .v729-kpis,
  .v729-meta,
  .v729-method dl {
    grid-template-columns: 1fr;
  }

  .v729-metric {
    grid-template-columns: auto 1fr;
  }

  .v729-metric > span:last-child {
    grid-column: 1 / -1;
  }

  .v729-view-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .v729-view-tabs a {
    text-align: center;
  }

  .v729-dialog {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    max-width: 100vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-insight-observatory *,
  .route-insight-observatory *::before,
  .route-insight-observatory *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .v729-insight-card,
  .v729-controls,
  .v729-scope-note,
  .v729-sparse-warning {
    border: 1px solid CanvasText;
  }
}
