/* Project tokens and component rules: /DESIGN.md. */
:root body.observatory-interface {
    --ob-ink: #18212f;
    --ob-muted: #59616e;
    --ob-paper: #f7f8f9;
    --ob-line: #dcdfe4;
    --ob-accent: #11346b;
    --ob-radius: 12px;
    --ob-space: 24px;
    font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
:root body.observatory-interface button,
:root body.observatory-interface input,
:root body.observatory-interface select {
    font-family: inherit;
}
:root body.observatory-interface .sidebar {
    background: #fff;
    color: #525c6b;
    border-right: 1px solid var(--ob-line);
}
:root body.observatory-interface .brand {
    border-color: var(--ob-line);
    color: var(--ob-ink);
    margin-bottom: 24px;
}
:root body.observatory-interface .brand strong {
    color: #202c3f;
    font-size: 15px;
}
:root body.observatory-interface .brand small {
    color: #666f7d;
    font-size: 13px;
}
:root body.observatory-interface #brand-logo {
    background: #edf0f4;
    color: #143b79;
    border-color: #d6dde8;
}
:root body.observatory-interface .nav-item {
    color: #505866;
    font-size: 13px;
    min-height: 46px;
}
:root body.observatory-interface .nav-item:hover {
    background: #f0f2f5;
    color: #11346b;
}
:root body.observatory-interface .nav-item.active {
    background: #11346b;
    border-color: #11346b;
    color: #fff;
    box-shadow: none;
}
:root body.observatory-interface .ob-nav-label {
    font-size: 13px;
    letter-spacing: 0.9px;
    color: #6d7581;
}
:root body.observatory-interface .ob-nav-count {
    background: #fff0d2;
    color: #7a520c;
    font-size: 13px;
}
:root body.observatory-interface .ob-sidebar-note {
    background: #f3f5f8;
    border-color: #dde1e8;
    border-radius: 10px;
    padding: 16px;
}
:root body.observatory-interface .ob-sidebar-note strong {
    color: #303f57;
    font-size: 13px;
}
:root body.observatory-interface .ob-sidebar-note p {
    color: #586374;
    font-size: 13px;
}
:root body.observatory-interface .ob-sidebar-note svg {
    color: #465f87;
}
:root body.observatory-interface .sidebar-bottom {
    border-color: var(--ob-line);
    color: #6c737e;
    font-size: 13px;
}
:root body.observatory-interface .sidebar-bottom strong {
    color: #3b4659;
    font-size: 13px;
}
:root body.observatory-interface .institute {
    color: #4d5f7d;
    background: #edf0f4;
    border-color: #dadfe6;
}
:root body.observatory-interface .topbar {
    background: #fff;
    border-color: var(--ob-line);
}
:root body.observatory-interface #breadcrumb {
    font-size: 13px;
    color: #5d6571;
}
:root body.observatory-interface .account {
    font-size: 13px;
}
:root body.observatory-interface .notification-button {
    width: 44px;
    height: 44px;
}
:root body.observatory-interface .btn {
    font-size: 13px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 500;
}
:root body.observatory-interface .form-control {
    font-size: 14px;
    min-height: 44px;
    background: white;
    border-color: #cbd0d8;
}
:root body.observatory-interface .page-head h1 {
    font-size: 30px;
    font-weight: 600;
}
:root body.observatory-interface .page-head p {
    font-size: 14px;
    color: var(--ob-muted);
}
:root body.observatory-interface .card {
    border-radius: var(--ob-radius);
    box-shadow: none;
}
:root body.observatory-interface .card h2 {
    font-size: 20px;
}
:root body.observatory-interface .badge {
    font-size: 13px;
}
:root body.observatory-interface .gate-banner {
    border-radius: 8px;
    padding: 16px;
}
:root body.observatory-interface .gate-banner strong,
:root body.observatory-interface .gate-banner p,
:root body.observatory-interface .gate-banner a {
    font-size: 13px;
    line-height: 1.7;
}
:root body.observatory-interface footer {
    font-size: 13px;
}

.ob-design-system .ob-eyebrow {
    font-size: 13px;
    letter-spacing: 0.9px;
    color: #5e6879;
}
.ob-design-system .ob-page-heading {
    margin: 0 0 24px;
    align-items: center;
}
.ob-design-system .ob-page-heading h1 {
    font-size: clamp(25px, 2.3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 1.35;
    margin: 9px 0;
}
.ob-design-system .ob-page-heading p {
    font-size: 13px;
    line-height: 1.7;
    max-width: none;
}
:root body.observatory-interface .ob-design-system .ob-report {
    font-size: 13px !important;
    padding: 10px 15px;
    margin-top: 0;
}
.ob-design-system .ob-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    min-height: 0;
    background: #13223a;
    margin-bottom: 24px;
}
.ob-design-system .ob-welcome:after {
    display: none;
}
.ob-design-system .ob-location {
    font-size: 13px;
    letter-spacing: 0;
    color: #b7c5db;
}
.ob-design-system .ob-welcome h2 {
    font:
        500 clamp(29px, 2.7vw, 40px)/1.25 "Be Vietnam Pro",
        sans-serif;
    letter-spacing: -1.3px;
    margin: 18px 0 14px;
    color: #f4f6fa;
}
.ob-design-system .ob-welcome p {
    color: #c1c9d7;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 23px;
}
.ob-design-system .ob-welcome-actions {
    gap: 17px;
    flex-wrap: wrap;
}
.ob-design-system .ob-primary {
    min-height: 46px;
    padding: 11px 17px;
    font-size: 13px;
    border-radius: 8px;
    background: #d7e2f4;
    color: #14294c;
    border-color: #d7e2f4;
}
.ob-design-system .ob-primary:hover {
    background: #e6edf9;
    transform: none;
}
.ob-hero-guide {
    color: #d2d9e5;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 13px;
}
.ob-design-system .ob-mode {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 21px;
    font-size: 13px;
    line-height: 1.7;
    color: #c4cddc;
}
.ob-design-system .ob-mode i {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
}
.ob-design-system .ob-mode > span {
    color: #afb9c9;
    border-left: 1px solid #a6b3c744;
    padding-left: 9px;
}
.ob-live-preview {
    min-width: 0;
    border: 1px solid #91a2bd45;
    border-radius: 12px;
    padding: 22px 20px 16px;
    background: #ffffff06;
    color: #edf1f7;
}
.ob-preview-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    font-size: 13px;
}
.ob-preview-heading > span:first-child {
    color: #c2ccdd;
}
.ob-preview-level {
    color: #f4d9b4;
    background: #ffffff07;
    border: 1px solid #dabda633;
    border-radius: 5px;
    padding: 5px 7px;
    font-size: 13px;
}
.ob-preview-number {
    display: flex;
    gap: 17px;
    align-items: center;
    padding: 18px 0 10px;
}
.ob-preview-number > strong {
    font:
        500 48px/1.1 "Be Vietnam Pro",
        sans-serif;
    color: #f4f7fb;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}
.ob-preview-number > span {
    display: block;
    font-size: 13px;
    color: #bbc6d8;
    line-height: 1.8;
}
.ob-preview-number > span strong {
    display: block;
    font-size: 13px;
    color: #f4d9af;
    font-weight: 500;
}
.ob-preview-route {
    display: grid;
    grid-template-columns: repeat(var(--preview-points), minmax(0, 1fr));
    position: relative;
    gap: 5px;
    padding: 11px 0 17px;
}
.ob-preview-route:before {
    content: "";
    position: absolute;
    top: 53px;
    height: 1px;
    background: #909fb678;
    left: 10%;
    right: 10%;
}
.ob-preview-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    color: var(--preview-color);
    background: transparent;
    border: 0;
    min-width: 0;
    border-radius: 6px;
}
.ob-preview-grade {
    font:
        10px/1.5 "JetBrains Mono",
        monospace;
    margin-bottom: 10px;
}
.ob-preview-dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #24334a;
    border: 1px solid var(--preview-color);
    position: relative;
    z-index: 1;
}
.ob-preview-dot svg {
    width: 19px;
    height: 19px;
}
.ob-preview-point.estimated .ob-preview-dot {
    border-style: dashed;
}
.ob-preview-point.measured .ob-preview-dot {
    background: var(--preview-color);
    color: #19263c;
}
.ob-preview-point.selected .ob-preview-dot {
    box-shadow: 0 0 0 4px #c4d0e426;
}
.ob-preview-point:hover .ob-preview-dot {
    box-shadow: 0 0 0 4px #c4d0e439;
}
.ob-preview-point > strong {
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    color: #eceff5;
}
.ob-preview-point > small {
    font-size: 13px;
    margin-top: 3px;
    text-align: center;
    line-height: 1.5;
}
.ob-preview-empty {
    grid-column: 1/-1;
}
.ob-preview-key {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid #bdc8da1c;
    font-size: 13px;
    color: #c7cfdb;
}
.ob-preview-key > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ob-preview-key i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b4c1d6;
    border: 1px solid #b4c1d6;
}
.ob-preview-key i.estimated {
    background: transparent;
    border-style: dashed;
}
.ob-design-system .ob-preview-note {
    font-size: 13px;
    line-height: 1.6;
    margin: 9px 0 0;
    color: #a9b4c6;
}

:root body.observatory-interface .ob-design-system .ob-summary {
    gap: 16px;
    margin: 0 0 20px;
}
:root body.observatory-interface .ob-design-system .ob-stat {
    border: 1px solid #dbdee4;
    border-radius: var(--ob-radius);
    background: #fff;
    min-height: 0;
    padding: 14px 16px 10px;
    box-shadow: none;
}
:root body.observatory-interface .ob-design-system .ob-stat:hover {
    transform: none;
    box-shadow: 0 2px 8px #29334409;
}
:root body.observatory-interface .ob-design-system .ob-stat-top {
    font-size: 13px;
    color: #5a6372;
    font-weight: 500;
}
:root body.observatory-interface .ob-design-system .ob-stat-icon {
    background: #edf0f5;
    color: #4a5c7a;
    width: 31px;
    height: 31px;
    border-radius: 8px;
}
.ob-design-system .ob-kpi-network:before {
    display: none;
}
.ob-design-system .ob-kpi-main {
    margin: 17px 0 12px;
    gap: 12px;
}
.ob-design-system .ob-kpi-main > strong {
    font:
        500 48px/1.1 "Be Vietnam Pro",
        sans-serif;
    color: #1c2c46;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}
.ob-design-system .ob-kpi-main > span {
    color: #5a6473;
    font-size: 13px;
}
.ob-design-system .ob-kpi-main > span > small {
    color: #5e6877;
    font-size: 13px;
}
.ob-design-system .ob-kpi-caption {
    font-size: 13px;
    color: #5c6675;
}
.ob-design-system .ob-kpi-action {
    font-size: 13px;
    color: #233d66;
    line-height: 1.6;
    padding-top: 13px;
    border-color: #dadee4;
}
.ob-design-system .ob-kpi-nodes:before {
    background: #8597b3;
}
.ob-design-system .ob-kpi-nodes > i {
    border-color: #677c9d;
    background: white;
    width: 12px;
    height: 12px;
}
.ob-design-system .ob-kpi-nodes > i.measured {
    background: #395178;
    box-shadow: 0 0 0 4px #e0e6ef;
}
:root body.observatory-interface .ob-design-system .ob-kpi-attention {
    background: #fff8eb;
    border-color: #e9d9b9;
}
.ob-design-system .ob-kpi-attention .ob-stat-top,
.ob-design-system .ob-kpi-attention .ob-kpi-caption {
    color: #81612b;
}
.ob-design-system .ob-kpi-attention .ob-kpi-main > strong {
    color: #845714;
}
.ob-design-system .ob-kpi-attention .ob-kpi-action {
    color: #775721;
    border-color: #e9d9b9;
}
.ob-design-system .ob-kpi-levels b {
    font-size: 13px;
    color: #816634;
}
.ob-design-system .ob-kpi-levels small {
    font-size: 13px;
    color: #816634;
}
.ob-design-system .ob-kpi-ring {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.ob-design-system .ob-kpi-ring > span {
    color: #324769;
    font-size: 17px;
}
.ob-design-system .ob-kpi-ring small {
    font-size: 13px;
}
.ob-design-system .ob-kpi-availability {
    height: 16px;
}

:root body.observatory-interface .ob-design-system .ob-network {
    background: white;
    border: 1px solid var(--ob-line);
    padding: 18px;
    border-radius: var(--ob-radius);
    margin-bottom: 24px;
}
.ob-design-system .ob-section-heading {
    gap: 16px;
    margin-bottom: 20px;
}
.ob-design-system .ob-section-heading h2 {
    font-size: 23px;
    font-weight: 600;
    margin: 7px 0;
    letter-spacing: -0.5px;
}
.ob-design-system .ob-section-heading p {
    font-size: 13px;
    line-height: 1.7;
    color: #616977;
}
.ob-design-system .ob-network-count,
.ob-design-system .ob-count-pill {
    font-size: 13px;
    background: #eff1f5;
    color: #4b5970;
    border-color: #dce0e7;
    padding: 8px 12px;
}
:root body.observatory-interface .ob-design-system .river-node.ob-station-tab {
    background: #f7f8fa;
    padding: 16px;
    border-color: #dce0e7;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab:hover {
    transform: none;
    background: #edf0f6;
    box-shadow: none;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected {
    background: #e8ecf3;
    border-color: #657ca2;
    box-shadow: inset 0 0 0 1px #657ca2;
}
:root body.observatory-interface .ob-design-system .ob-station-tab strong {
    font-size: 17px;
    color: #25344c;
}
:root body.observatory-interface .ob-design-system .ob-station-tab small {
    font-size: 13px;
    color: #606a79;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    strong {
    color: #25344c;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    small {
    color: #4f5c71;
}
.ob-design-system .ob-station-top {
    margin-bottom: 12px;
}
.ob-design-system .ob-station-symbol,
.ob-design-system .selected .ob-station-symbol {
    background: #e0e5ed;
    border-color: #cdd5e2;
    color: #395075;
}
.ob-design-system .ob-station-viewing {
    color: #3c5071;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-tab-status .badge {
    display: inline-flex;
    width: auto;
    height: auto;
    overflow: visible;
    font-size: 13px;
    line-height: 1.6;
    color: inherit !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-0 {
    color: #176c3e !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-1 {
    color: #85620e !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-2 {
    color: #ac501c !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-3,
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-4 {
    color: #a52c3f !important;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-tab-status
    .badge.level-null {
    color: #5d6470 !important;
}
:root body.observatory-interface .ob-design-system .river-observatory-map {
    scroll-margin-top: 20px;
    border-radius: var(--ob-radius);
}
:root body.observatory-interface .ob-design-system .station-instrument {
    background: #fff;
    border-color: var(--ob-line);
    border-radius: var(--ob-radius);
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .station-instrument h2 {
    font-size: 25px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-selector
    .form-control {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .hydro-hero > .badge {
    font-size: 16px;
}
:root body.observatory-interface .ob-design-system .hydro-hero > p {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric {
    min-height: 0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric:hover {
    transform: none;
    box-shadow: none;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-label {
    font-size: 13px;
    color: #5b6677;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-value {
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -1px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-unit {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-source,
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-note,
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-quality {
    font-size: 13px;
    line-height: 1.7;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"] {
    background: #14243e;
    border-color: #14243e;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-label {
    color: #c3ccdb;
}
:root body.observatory-interface .ob-design-system .instrument-provenance {
    font-size: 13px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-provenance
    strong {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .instrument-detail {
    background: #11346b;
    border-color: #11346b;
    color: white;
}
:root body.observatory-interface .ob-design-system .analysis-trend {
    border-radius: var(--ob-radius);
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .analysis-heading h2 {
    font-size: 22px;
    font-weight: 600;
}
:root body.observatory-interface .ob-design-system .analysis-heading p {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system #overview-chart-parameter {
    font-size: 13px;
    min-height: 44px;
}
.ob-design-system .ob-chart-stats span {
    font-size: 13px;
    color: #606875;
}
.ob-design-system .ob-chart-stats strong {
    font:
        500 24px/1.5 "Be Vietnam Pro",
        sans-serif;
    color: #25354f;
}
.ob-design-system .ob-chart-stats small {
    font-size: 13px;
    color: #5c6574;
}
.ob-design-system .ob-chart-sample-note {
    font-size: 13px;
    color: #646c7a;
}
:root body.observatory-interface .ob-design-system .data-context {
    background: #edf0f4;
    border: 1px solid #d4dae4;
    border-radius: var(--ob-radius);
    color: #314059;
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .data-context h2 {
    color: #29374e;
    font-size: 26px;
}
.ob-design-system .ob-context-heading {
    color: #505f76;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .data-context p {
    color: #535d6e;
    font-size: 13px;
}
.ob-design-system .ob-data-coverage > strong {
    color: #23385a;
    font-family: "Be Vietnam Pro", sans-serif;
}
.ob-design-system .ob-data-coverage > span {
    font-size: 13px;
    color: #525e71;
}
.ob-design-system .ob-data-progress {
    background: #c8d0dc;
}
.ob-design-system .ob-data-progress > i {
    background: #62779a;
}
:root body.observatory-interface .ob-design-system .context-row {
    color: #5a6678;
    font-size: 13px;
    border-color: #cad1dc;
}
:root body.observatory-interface .ob-design-system .context-row strong {
    color: #2a3950;
    font-size: 13px;
}
.ob-design-system .ob-context-link {
    color: #2a4167;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .fleet-comparison {
    border-radius: var(--ob-radius);
}
:root body.observatory-interface .ob-design-system .fleet-comparison th {
    background: #f1f3f6;
    font-size: 13px;
    color: #555e6d;
}
:root body.observatory-interface .ob-design-system .fleet-comparison td {
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
:root body.observatory-interface .ob-design-system .fleet-comparison .badge {
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .river-header p {
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .map-segment button,
:root body.observatory-interface .water-alert-map #map-fullscreen {
    min-height: 44px;
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .river-station small {
    display: block;
}

@media (max-width: 1200px) {
    .ob-design-system .ob-welcome {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        gap: 18px;
        padding: 20px;
    }
    .ob-design-system .ob-welcome-copy {
        max-width: none;
    }
    .ob-design-system .ob-live-preview {
        max-width: none;
    }
    .ob-design-system .ob-welcome h2 {
        font-size: 37px;
    }
    :root body.observatory-interface .ob-design-system .ob-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        min-height: 0;
    }
}
@media (max-width: 980px) {
    :root body.observatory-interface #menu-button {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    :root body.observatory-interface .sidebar.open #sidebar-close {
        width: 44px;
        height: 44px;
        background: #eff1f5;
        border: 1px solid #d2d8e1;
        color: #374965;
    }
    :root body.observatory-interface .ob-design-system .river-analysis {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    .ob-design-system .ob-page-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .ob-design-system .ob-page-heading h1 {
        font-size: 26px;
    }
    .ob-design-system .ob-page-heading p {
        font-size: 13px;
    }
    .ob-design-system .ob-welcome {
        padding: 18px;
        gap: 25px;
        border-radius: 12px;
    }
    .ob-design-system .ob-welcome h2 {
        font-size: 31px;
        letter-spacing: -0.9px;
    }
    .ob-design-system .ob-welcome p {
        font-size: 13px;
    }
    .ob-live-preview {
        padding: 17px 12px 14px;
    }
    .ob-preview-heading {
        font-size: 13px;
    }
    .ob-preview-level {
        font-size: 13px;
    }
    .ob-preview-number > strong {
        font-size: 41px;
    }
    .ob-preview-dot {
        width: 29px;
        height: 29px;
    }
    .ob-preview-dot svg {
        width: 16px;
        height: 16px;
    }
    .ob-preview-route:before {
        top: 50px;
    }
    .ob-preview-point > strong {
        font-size: 13px;
    }
    .ob-preview-point > small {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .ob-summary {
        gap: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        padding: 18px 16px 15px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat-top {
        font-size: 13px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
    }
    .ob-design-system .ob-kpi-main > span {
        display: none;
    }
    .ob-design-system .ob-kpi-main > strong {
        font-size: 43px;
    }
    .ob-design-system .ob-kpi-ring {
        width: 48px;
        height: 48px;
    }
    .ob-design-system .ob-kpi-ring > span {
        font-size: 13px;
    }
    .ob-design-system .ob-kpi-main {
        gap: 8px;
    }
    .ob-design-system .ob-kpi-caption {
        font-size: 13px;
    }
    .ob-design-system .ob-kpi-action {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .ob-network {
        padding: 20px 17px;
    }
    .ob-design-system .ob-section-heading h2 {
        font-size: 22px;
    }
    .ob-design-system .ob-section-heading p {
        font-size: 13px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .river-node.ob-station-tab {
        flex: 0 0 178px;
    }
    :root body.observatory-interface .ob-design-system .station-instrument {
        padding: 20px 17px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric {
        padding: 16px 14px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-label {
        font-size: 13px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 30px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-unit {
        font-size: 13px;
        white-space: normal;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-source,
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-note,
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-quality {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .instrument-detail {
        width: 100%;
    }
    :root body.observatory-interface .ob-design-system .fleet-comparison td {
        font-size: 14px;
    }
}
@media (max-width: 360px) {
    .ob-design-system .ob-welcome {
        padding: 20px 16px;
    }
    .ob-design-system .ob-welcome h2 {
        font-size: 28px;
    }
    .ob-design-system .ob-primary {
        width: 100%;
        justify-content: space-between;
        font-size: 13px;
    }
    .ob-design-system .ob-preview-point > small {
        font-size: 13px;
    }
    .ob-design-system .ob-preview-dot {
        width: 25px;
        height: 25px;
    }
    .ob-design-system .ob-preview-point > strong {
        font-size: 13px;
    }
    .ob-design-system .ob-preview-route:before {
        top: 48px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        padding: 16px 12px;
    }
    .ob-design-system .ob-kpi-ring {
        display: none;
    }
    .ob-design-system .ob-kpi-main > strong {
        font-size: 40px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric {
        padding: 14px 11px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 26px;
    }
}

/* Version 5: balanced density and blue identity across all screens. */
:root body.observatory-interface {
    --ob-ink: #1e304d;
    --ob-muted: #5d6d85;
    --ob-paper: #f4f7fc;
    --ob-line: #dce5f2;
    --ob-accent: #2563eb;
    --ink: #1e304d;
    --muted: #5d6d85;
    --teal: #2563eb;
    --teal-dark: #1d4ed8;
    --navy: #16346b;
    --line: #dce5f2;
    --bg: #f4f7fc;
}
:root body.observatory-interface #content {
    padding: 24px;
}
:root body.observatory-interface .brand {
    padding: 22px 8px 20px;
    margin-bottom: 18px;
}
:root body.observatory-interface .nav-item {
    font-size: 14px;
    min-height: 44px;
    padding: 8px 10px;
    gap: 10px;
}
:root body.observatory-interface .nav-item > svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 9px;
    opacity: 1;
    background: #eaf2ff;
    color: #2563eb;
    flex-shrink: 0;
}
:root body.observatory-interface .nav-item[href="#monitoring"] > svg {
    color: #0891b2;
    background: #e5f8fc;
}
:root body.observatory-interface .nav-item[href="#alerts"] > svg {
    color: #ea580c;
    background: #fff0e5;
}
:root body.observatory-interface .nav-item[href="#manual"] > svg {
    color: #7c3aed;
    background: #f1eaff;
}
:root body.observatory-interface .nav-item[href="#scenarios"] > svg {
    color: #4f46e5;
    background: #ececff;
}
:root body.observatory-interface .nav-item[href="#thresholds"] > svg {
    color: #db2777;
    background: #fce9f3;
}
:root body.observatory-interface .nav-item[href="#operations"] > svg {
    color: #0d9488;
    background: #e5f6f2;
}
:root body.observatory-interface .nav-item[href="#admin"] > svg {
    color: #64748b;
    background: #eef2f7;
}
:root body.observatory-interface .nav-item[href="#guide"] > svg {
    color: #d97706;
    background: #fff5df;
}
:root body.observatory-interface .nav-item.active {
    background: #eaf2ff;
    color: #1d4ed8;
    border-color: #d9e6fd;
    box-shadow: inset 3px 0 #2563eb;
}
:root body.observatory-interface .ob-nav-label {
    font-size: 11px;
    letter-spacing: 0.7px;
    padding-bottom: 6px;
}
:root body.observatory-interface .ob-nav-label:not(:first-child) {
    margin-top: 16px;
}
:root body.observatory-interface .ob-sidebar-note {
    background: linear-gradient(120deg, #edf5ff, #f4f0ff);
    padding: 12px;
    margin: 18px 6px;
}
:root body.observatory-interface .ob-sidebar-note svg {
    margin-bottom: 6px;
}
:root body.observatory-interface .sidebar-bottom {
    padding-top: 12px;
    margin-bottom: 14px;
}
:root body.observatory-interface .topbar {
    height: 64px;
    min-height: 64px;
    padding: 0 24px;
}
:root body.observatory-interface #breadcrumb,
:root body.observatory-interface .account {
    font-size: 14px;
}
:root body.observatory-interface .avatar {
    background: #eef1ff;
    color: #6366d1;
    border-color: #dee3fa;
}
:root body.observatory-interface .btn {
    font-size: 14px;
}
:root body.observatory-interface .form-control {
    font-size: 15px;
}
:root body.observatory-interface .page-head {
    margin-bottom: 18px;
}
:root body.observatory-interface .page-head p {
    font-size: 15px;
}
:root body.observatory-interface .card {
    padding: 18px;
}
:root body.observatory-interface .card-title {
    margin-bottom: 14px;
}
:root body.observatory-interface .card-title h2 > svg {
    width: 32px;
    height: 32px;
    padding: 6px;
    color: #2563eb;
    background: #eaf2ff;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .stack
    > .card:nth-child(2)
    .card-title
    h2
    > svg {
    color: #7c3aed;
    background: #f1eaff;
}
:root
    body.observatory-interface
    .stack
    > .card:nth-child(3)
    .card-title
    h2
    > svg {
    color: #ea580c;
    background: #fff0e5;
}
:root
    body.observatory-interface
    :is(
        .tiny,
        .note,
        .card-title small,
        .samples-info,
        .toolbar-info,
        .chart-legend,
        .checks small,
        .checks .check small,
        .notification-item small,
        .help-text
    ) {
    font-size: 13px;
}
:root
    body.observatory-interface
    :is(label, .field label, .tabs button, .segment button) {
    font-size: 14px;
}
:root body.observatory-interface table,
:root body.observatory-interface td {
    font-size: 14px;
}
:root body.observatory-interface th {
    font-size: 13px;
    background: #f1f5fc;
    color: #516583;
}
:root body.observatory-interface :is(th, td) {
    padding: 12px 14px;
}
:root body.observatory-interface .toolbar {
    padding: 14px 18px;
    gap: 16px;
}
:root body.observatory-interface .metric-label {
    font-size: 15px;
    color: #526780;
}
:root body.observatory-interface .metric-source,
:root body.observatory-interface .metric-note {
    font-size: 13px;
}
:root body.observatory-interface .metric-unit {
    font-size: 13px;
    color: #657792;
    white-space: normal;
}
:root body.observatory-interface .compact-metric {
    position: relative;
    display: block;
    padding: 12px;
    min-height: 0;
    background: #f9fbff;
}
:root body.observatory-interface .compact-metric .metric-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 27px;
    height: 27px;
    padding: 4px;
}
:root body.observatory-interface .compact-metric .metric-icon svg {
    width: 18px;
    height: 18px;
}
:root body.observatory-interface .compact-metric .metric-label {
    padding-right: 25px;
    font-size: 14px;
}
:root body.observatory-interface .compact-metric .metric-value {
    font-size: 28px;
    line-height: 1.35;
    margin: 5px 0;
    color: #244777;
}
:root body.observatory-interface .gate-banner {
    padding: 12px 16px;
}
:root body.observatory-interface .gate-banner :is(strong, p, a) {
    font-size: 13px;
    line-height: 1.65;
}
:root body.observatory-interface :focus-visible {
    outline-color: #2563eb;
}
:root body.observatory-interface footer {
    font-size: 12px;
    padding: 14px 24px;
}

:root body.observatory-interface .ob-design-system .ob-page-heading {
    margin: 0 0 18px;
}
:root body.observatory-interface .ob-design-system .ob-page-heading h1 {
    margin: 6px 0;
}
:root body.observatory-interface .ob-design-system .ob-page-heading p {
    font-size: 15px;
    line-height: 1.6;
}
:root body.observatory-interface .ob-design-system .ob-report {
    font-size: 14px !important;
    padding: 10px 14px;
    margin: 0;
    min-height: 44px !important;
}
:root body.observatory-interface .ob-design-system .ob-welcome {
    padding: 24px;
    gap: 24px;
    min-height: 0;
    border: 1px solid #d5e4fa;
    border-radius: 14px;
    background: linear-gradient(115deg, #f1f6ff, #e7f1ff);
    margin-bottom: 18px;
}
:root body.observatory-interface .ob-design-system .ob-location {
    font-size: 14px;
    color: #4773a8;
}
:root body.observatory-interface .ob-design-system .ob-welcome h2 {
    font:
        600 34px/1.25 "Be Vietnam Pro",
        sans-serif;
    letter-spacing: -1px;
    margin: 12px 0;
    color: #193f80;
}
:root body.observatory-interface .ob-design-system .ob-welcome-copy > p {
    color: #516c91;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 470px;
}
:root body.observatory-interface .ob-design-system .ob-welcome-actions {
    gap: 14px;
}
:root body.observatory-interface .ob-design-system .ob-primary {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
:root body.observatory-interface .ob-design-system .ob-primary:hover {
    background: #1d4ed8;
}
:root body.observatory-interface .ob-design-system .ob-hero-guide {
    color: #365e96;
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-mode {
    margin-top: 14px;
    font-size: 12px;
    color: #526c91;
}
:root body.observatory-interface .ob-design-system .ob-mode > span {
    color: #637d9c;
    border-color: #c3d4ed;
}
:root body.observatory-interface .ob-live-preview {
    background: linear-gradient(130deg, #16346b, #244b93);
    color: #f4f8ff;
    border-color: #1e427d;
    padding: 16px 18px;
}
:root body.observatory-interface .ob-preview-heading {
    font-size: 13px;
}
:root body.observatory-interface .ob-preview-heading > span:first-child {
    color: #dce8ff;
}
:root body.observatory-interface .ob-preview-level {
    font-size: 12px;
    padding: 3px 6px;
}
:root body.observatory-interface .ob-preview-number {
    gap: 12px;
    padding: 9px 0 4px;
}
:root body.observatory-interface .ob-preview-number > strong {
    font-size: 32px;
    color: #fff;
    letter-spacing: -1px;
}
:root body.observatory-interface .ob-preview-number > span,
:root body.observatory-interface .ob-preview-number > span strong {
    font-size: 12px;
}
:root body.observatory-interface .ob-preview-route {
    padding: 8px 0 12px;
}
:root body.observatory-interface .ob-preview-route:before {
    top: 40px;
    background: #9ab5e87a;
}
:root body.observatory-interface .ob-preview-grade {
    font-size: 12px;
    margin-bottom: 5px;
}
:root body.observatory-interface .ob-preview-dot {
    width: 30px;
    height: 30px;
    background: #284e89;
}
:root body.observatory-interface .ob-preview-dot svg {
    width: 18px;
    height: 18px;
}
:root body.observatory-interface .ob-preview-point > strong {
    font-size: 13px;
    margin-top: 6px;
}
:root body.observatory-interface .ob-preview-point > small {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}
:root body.observatory-interface .ob-preview-key {
    padding-top: 8px;
    font-size: 12px;
    gap: 14px;
}
:root body.observatory-interface .ob-design-system .ob-preview-note {
    font-size: 12px;
    line-height: 1.5;
    color: #bdd1f3;
    margin: 6px 0 0;
}

:root body.observatory-interface .ob-design-system .ob-summary {
    gap: 14px;
    margin: 0 0 20px;
}
:root body.observatory-interface .ob-design-system .ob-stat {
    --tile-color: #2563eb;
    border: 1px solid #dce5f2;
    border-top: 3px solid var(--tile-color);
    border-radius: 10px;
    padding: 14px 16px 10px;
    min-height: 0;
}
:root body.observatory-interface .ob-design-system .ob-stat-top {
    color: #506681;
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-stat-icon {
    background: #eaf2ff;
    color: #2563eb;
    width: 32px;
    height: 32px;
    border: 0;
    flex-shrink: 0;
}
:root body.observatory-interface .ob-design-system .ob-kpi-fresh {
    --tile-color: #7c3aed;
    background: #fdfbff;
}
:root body.observatory-interface .ob-design-system .ob-kpi-fresh .ob-stat-icon {
    color: #7c3aed;
    background: #f1eaff;
}
:root body.observatory-interface .ob-design-system .ob-kpi-attention {
    --tile-color: #ea8a20;
    background: #fffbf4;
    border-color: #ecdfc6;
    border-top-color: var(--tile-color);
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-attention
    .ob-stat-icon {
    color: #d97706;
    background: #fff0d5;
}
:root body.observatory-interface .ob-design-system .ob-kpi-pending {
    --tile-color: #0891b2;
    background: #f8fdff;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-pending
    .ob-stat-icon {
    color: #0891b2;
    background: #e5f8fc;
}
:root body.observatory-interface .ob-design-system .ob-kpi-main {
    min-height: 50px;
    margin: 8px 0;
    gap: 10px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-main > strong {
    font:
        600 40px/1.1 "Be Vietnam Pro",
        sans-serif;
    letter-spacing: -1.5px;
    color: #234e95;
}
:root body.observatory-interface .ob-design-system .ob-kpi-main > span,
:root body.observatory-interface .ob-design-system .ob-kpi-main > span small {
    color: #63728a;
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-attention
    .ob-kpi-main
    > strong {
    color: #a15d17;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-fresh
    .ob-kpi-main
    > strong {
    color: #7041b3;
}
:root body.observatory-interface .ob-design-system .ob-kpi-caption {
    font-size: 12px;
    color: #60728a;
    line-height: 1.5;
    margin: 3px 0 6px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-action {
    font-size: 13px;
    color: #2d61ae;
    border-color: #dfe7f3;
    padding: 9px 0 0;
    line-height: 1.5;
    min-height: 36px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes {
    min-height: 14px;
    margin: 2px 0 6px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes:before {
    background: #a9c3ec;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes > i {
    width: 11px;
    height: 11px;
    border-color: #6594dc;
}
:root body.observatory-interface .ob-design-system .ob-kpi-nodes > i.measured {
    background: #3b82f6;
    box-shadow: 0 0 0 3px #e5efff;
}
:root body.observatory-interface .ob-design-system .ob-kpi-ring {
    width: 46px;
    height: 46px;
    padding: 4px;
    background: conic-gradient(#8b5cf6 var(--ob-progress), #e8ddfa 0);
}
:root body.observatory-interface .ob-design-system .ob-kpi-ring > span {
    color: #7041b3;
    background: #fdfbff;
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-ring small {
    font-size: 10px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-levels {
    height: 40px;
    margin-bottom: 6px;
    gap: 8px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-levels > div {
    padding-top: 0;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-levels
    :is(b, small) {
    font-size: 11px;
    color: #876736;
    margin: 0;
}
:root body.observatory-interface .ob-design-system .ob-kpi-levels i {
    max-height: 14px;
}
:root body.observatory-interface .ob-design-system .ob-kpi-availability {
    height: 12px;
    margin: 4px 0 7px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-availability
    > i.ready {
    background: #d8eef8;
    border-color: #c6e5f2;
}

:root body.observatory-interface .ob-design-system .ob-network {
    padding: 18px;
    margin-bottom: 20px;
}
:root body.observatory-interface .ob-design-system .ob-section-heading {
    margin-bottom: 14px;
}
:root body.observatory-interface .ob-design-system .ob-section-heading h2 {
    margin: 4px 0;
}
:root body.observatory-interface .ob-design-system .ob-section-heading p {
    font-size: 14px;
}
:root
    body.observatory-interface
    .ob-design-system
    :is(.ob-network-count, .ob-count-pill) {
    font-size: 13px;
    padding: 6px 10px;
    background: #edf4ff;
    color: #406ca9;
    border-color: #dce7fa;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-section-heading
    .ob-eyebrow {
    margin-bottom: 4px;
}
:root body.observatory-interface .ob-design-system .ob-station-tabs {
    gap: 10px;
}
:root body.observatory-interface .ob-design-system .river-node.ob-station-tab {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    background: #f9fbff;
    border-color: #dce5f2;
    border-radius: 9px;
    padding: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab:hover {
    background: #eff5ff;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected {
    background: #edf4ff;
    border-color: #7ba5ed;
    box-shadow: inset 0 0 0 1px #7ba5ed;
}
:root body.observatory-interface .ob-design-system .ob-station-top {
    margin: 0;
}
:root
    body.observatory-interface
    .ob-design-system
    :is(.ob-station-index, .ob-station-viewing) {
    display: none;
}
:root body.observatory-interface .ob-design-system .ob-station-symbol {
    width: 30px;
    height: 34px;
    background: #e7efff;
    border: 0;
    color: #467ed5;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-station-tab:nth-child(2n)
    .ob-station-symbol {
    color: #7c3aed;
    background: #f0eaff;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-station-tab:nth-child(3n)
    .ob-station-symbol {
    color: #0891b2;
    background: #e1f4fa;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab
    strong {
    color: #284878;
    font-size: 16px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab
    small {
    color: #61728c;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 2px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    strong {
    color: #1e4e9c;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-node.ob-station-tab.selected
    .ob-station-name
    small {
    color: #54739e;
}
:root body.observatory-interface .ob-design-system .ob-tab-status {
    grid-column: 1/-1;
    border-color: #dce5f2;
    padding-top: 6px;
    margin: 0;
}
:root body.observatory-interface .ob-design-system .ob-tab-status .badge {
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .river-observatory.ob-live-grid {
    gap: 20px;
    margin-bottom: 22px;
}
:root body.observatory-interface .ob-design-system .river-workspace {
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .river-header {
    margin-bottom: 14px;
}
:root body.observatory-interface .ob-design-system .station-instrument {
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .station-instrument h2 {
    font-size: 24px;
    margin: 5px 0 10px;
}
:root body.observatory-interface .ob-design-system .ob-measurement-header {
    margin-bottom: 12px;
    gap: 16px;
}
:root body.observatory-interface .ob-design-system .ob-selected-code {
    background: #eaf2ff;
    color: #3162aa;
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-selector
    .form-control {
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .hydro-hero {
    padding: 10px 14px;
}
:root body.observatory-interface .ob-design-system .hydro-hero > p {
    font-size: 14px;
}
:root body.observatory-interface .hydro-hero-meta .freshness {
    font-size: 12px;
}
:root body.observatory-interface .hydro-hero .mode-chip {
    font-size: 11px;
}
:root body.observatory-interface .ob-design-system .instrument-readings {
    gap: 12px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric {
    min-height: 0;
    padding: 14px;
    background: #f9fbff;
    border-color: #e1e8f3;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-icon {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-label {
    font-size: 15px;
    color: #526780;
    padding-right: 32px;
    margin-bottom: 8px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-value {
    font:
        600 32px/1.3 "Be Vietnam Pro",
        sans-serif;
    color: #244777;
    letter-spacing: -1px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 6px;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-unit {
    font-size: 13px;
    white-space: normal;
    margin-left: 0;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    :is(.metric-source, .metric-note, .metric-quality, .spark-empty) {
    font-size: 12px;
    line-height: 1.6;
    color: #657791;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric-spark {
    height: 24px;
    margin-top: 7px;
    color: #6b96da;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"] {
    background: linear-gradient(130deg, #1b448a, #285dac);
    border-color: #2856a3;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    :is(
        .metric-label,
        .metric-source,
        .metric-unit,
        .metric-note,
        .metric-quality
    ) {
    color: #c8defd;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-value {
    color: #fff;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-icon {
    background: #ffffff1c;
    color: #99e6ff;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="DO"]
    .metric-spark {
    color: #a3dcff;
}
:root
    body.observatory-interface
    .ob-design-system
    .instrument-readings
    .metric[data-parameter="NH4"] {
    background: #fffbf3;
    border-color: #f1e5cd;
}
:root body.observatory-interface .ob-design-system .instrument-detail {
    background: #2563eb;
    border-color: #2563eb;
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-measurement-footer {
    margin-top: 12px;
}
:root body.observatory-interface .ob-design-system .river-analysis {
    gap: 20px;
    margin-bottom: 22px;
}
:root body.observatory-interface .ob-design-system .analysis-trend {
    padding: 18px;
}
:root body.observatory-interface .analysis-heading p {
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system #overview-chart-parameter {
    font-size: 14px;
    width: 190px;
}
:root body.observatory-interface .ob-design-system .ob-chart-stats {
    padding: 12px 14px;
    margin-bottom: 8px;
}
:root body.observatory-interface .ob-design-system .ob-chart-stats span {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-chart-stats small {
    font-size: 12px;
}
:root body.observatory-interface .ob-design-system .ob-chart-sample-note {
    font-size: 12px;
    margin-bottom: 10px;
}
:root body.observatory-interface .ob-design-system .data-context {
    padding: 18px;
    background: linear-gradient(140deg, #f0f3ff, #edf5ff);
    border-color: #dde4fa;
}
:root body.observatory-interface .ob-design-system .data-context h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
}
:root body.observatory-interface .ob-design-system .data-context p {
    font-size: 14px;
}
:root body.observatory-interface .ob-design-system .ob-data-coverage {
    padding: 12px 0;
}
:root body.observatory-interface .ob-design-system .ob-data-coverage > strong {
    color: #4f46b1;
    font:
        500 40px/1.2 "Be Vietnam Pro",
        sans-serif;
}
:root body.observatory-interface .ob-design-system .ob-data-coverage > span {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-data-progress {
    background: #dce3f7;
    margin-bottom: 16px;
}
:root body.observatory-interface .ob-design-system .ob-data-progress > i {
    background: #818cf8;
}
:root body.observatory-interface .ob-design-system .context-row {
    font-size: 13px;
    padding: 10px 0;
}
:root body.observatory-interface .ob-design-system .context-row strong {
    font-size: 13px;
}
:root body.observatory-interface .ob-design-system .ob-context-link {
    font-size: 14px;
    margin-top: 14px;
}
:root
    body.observatory-interface
    .ob-design-system
    .fleet-comparison
    .analysis-heading {
    padding: 18px;
}
:root body.observatory-interface .ob-design-system .fleet-comparison th {
    font-size: 13px;
    background: #f1f5fc;
    color: #516583;
}
:root body.observatory-interface .ob-design-system .fleet-comparison td {
    font-size: 15px;
    padding: 14px 18px;
}

/* Status colors continue to represent data independently of brand colors. */
:root
    body.observatory-interface
    .water-alert-map
    .river-header
    :is(p, .river-instruction) {
    font-size: 13px;
}
:root body.observatory-interface .water-alert-map .map-segment button,
:root body.observatory-interface .water-alert-map #map-fullscreen {
    font-size: 13px;
}
:root body.observatory-interface .map-situation {
    background: #edf4ff;
    border-color: #d8e5fa;
    color: #284f88;
    padding: 12px 16px;
    margin-bottom: 14px;
}
:root body.observatory-interface .map-situation p {
    font-size: 13px;
    color: #617a9d;
}
:root body.observatory-interface .map-mode {
    font-size: 12px;
    color: #426899;
    background: #e1ecfc;
    border-color: #cbdcf5;
}
:root body.observatory-interface .map-alert-rail {
    padding: 14px 10px 10px;
    background: #f6f9ff;
    border-color: #dce5f2;
}
:root body.observatory-interface .map-rail-heading {
    border-color: #dce5f2;
    padding-bottom: 10px;
}
:root body.observatory-interface .map-rail-heading > span {
    font-size: 11px;
    color: #667e9d;
}
:root body.observatory-interface .map-rail-heading > strong {
    font:
        600 28px/1.4 "Be Vietnam Pro",
        sans-serif;
    color: #345c96;
}
:root body.observatory-interface .map-rail-heading :is(p, small) {
    font-size: 12px;
    color: #617695;
}
:root body.observatory-interface .water-alert-map .river-station strong {
    font-size: 14px;
    color: #304d79;
}
:root body.observatory-interface .water-alert-map .river-station small {
    font-size: 12px;
}
:root body.observatory-interface .water-alert-map .map-rail-text > span {
    font-size: 11px;
    color: #6a7e99;
}
:root body.observatory-interface .map-alert-link {
    font-size: 13px;
    color: #3466ad;
    border-color: #dce5f2;
}
:root body.observatory-interface .map-focus-strip {
    padding: 12px 14px;
    margin-top: 14px;
}
:root body.observatory-interface .map-focus-strip p {
    font-size: 14px;
    color: #526580;
}
:root
    body.observatory-interface
    .map-focus-strip
    :is(small, div > span:first-child) {
    font-size: 12px;
    color: #6a7e99;
}
:root body.observatory-interface .map-level-legend > span {
    font-size: 12px;
}
:root
    body.observatory-interface
    .water-alert-map
    :is(.geographic-legend, .map-angle, .signal-help, .map-disclaimer) {
    font-size: 12px;
    color: #637895;
}
:root body.observatory-interface .water-alert-map .map-disclaimer {
    background: #f3f6fc;
    border-color: #e3eaf5;
}
:root body.observatory-interface .water-alert-map .map-floating-tools button {
    font-size: 12px;
}
:root body.observatory-interface .chart text {
    font-size: 12px;
    fill: #71839f;
}

@media (max-width: 1200px) {
    :root body.observatory-interface .ob-design-system .ob-welcome {
        gap: 18px;
        padding: 20px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome h2 {
        font-size: 29px;
    }
}
@media (max-width: 760px) {
    :root body.observatory-interface #content {
        padding: 18px 16px;
    }
    :root body.observatory-interface .topbar {
        padding: 0 16px;
    }
    :root body.observatory-interface #breadcrumb {
        font-size: 13px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome h2 {
        font-size: 30px;
        margin: 10px 0;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome-copy > p {
        font-size: 15px;
        margin-bottom: 14px;
    }
    :root body.observatory-interface .ob-design-system .ob-page-heading {
        flex-wrap: wrap;
        gap: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-page-heading h1 {
        font-size: 27px;
    }
    :root body.observatory-interface .ob-design-system .ob-page-heading p {
        font-size: 14px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat {
        padding: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-stat-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
        font-size: 14px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main > span {
        display: none;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main > strong {
        font-size: 36px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main {
        min-height: 44px;
        margin: 7px 0;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-action {
        font-size: 12px;
        min-height: 44px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        :is(.ob-network, .station-instrument) {
        padding: 16px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .river-node.ob-station-tab {
        flex: 0 0 190px;
    }
    :root body.observatory-interface .ob-design-system .river-workspace {
        padding: 16px;
    }
    :root body.observatory-interface .ob-design-system .instrument-readings {
        gap: 10px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric {
        padding: 12px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-label {
        font-size: 14px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 29px;
    }
    :root body.observatory-interface .ob-design-system .ob-chart-stats strong {
        font-size: 20px;
    }
    :root body.observatory-interface .ob-design-system .ob-chart-stats small {
        display: block;
    }
    :root body.observatory-interface .ob-design-system .ob-measurement-footer {
        flex-direction: column;
        align-items: stretch;
    }
    :root body.observatory-interface .ob-design-system .instrument-detail {
        width: 100%;
    }
    :root body.observatory-interface .map-situation {
        flex-wrap: wrap;
        padding: 12px;
    }
    :root body.observatory-interface .map-mode {
        margin-left: 0;
        flex: 0 0 auto;
    }
}
@media (max-width: 400px) {
    :root body.observatory-interface .ob-design-system .ob-summary {
        gap: 10px;
    }
    :root body.observatory-interface .ob-preview-point > small {
        display: none;
    }
    :root body.observatory-interface .ob-preview-heading {
        font-size: 12px;
    }
    :root body.observatory-interface .ob-live-preview {
        padding: 14px 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-ring {
        display: none;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-caption {
        font-size: 12px;
    }
    :root body.observatory-interface .ob-design-system .ob-kpi-main > strong {
        font-size: 34px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-value {
        font-size: 27px;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-icon {
        display: none;
    }
    :root
        body.observatory-interface
        .ob-design-system
        .instrument-readings
        .metric-label {
        padding-right: 0;
    }
    :root body.observatory-interface .ob-design-system .ob-primary {
        font-size: 13px;
    }
    :root body.observatory-interface .toolbar .station-selector {
        min-width: 0;
        width: 100%;
    }
}

/* Finish the type hierarchy where earlier module selectors are more specific. */
:root
    body.observatory-interface
    .ob-design-system
    .ob-section-heading
    .ob-eyebrow,
:root
    body.observatory-interface
    .ob-design-system
    .fleet-comparison
    .ob-eyebrow {
    font-size: 12px;
    color: #637c9c;
    letter-spacing: 0.6px;
}
:root body.observatory-interface .ob-preview-point.measured .ob-preview-dot {
    background: var(--preview-color);
    color: #17366b;
}
:root body.observatory-interface .ob-design-system .ob-welcome {
    padding: 20px;
}
:root body.observatory-interface .ob-design-system .ob-welcome h2 {
    font-size: 32px;
    margin: 10px 0;
}
:root body.observatory-interface .ob-design-system .ob-welcome-copy > p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 12px;
}
:root body.observatory-interface .ob-design-system .ob-mode {
    margin-top: 10px;
}
:root body.observatory-interface .ob-preview-route {
    padding: 5px 0 8px;
}
:root body.observatory-interface .ob-preview-route:before {
    top: 37px;
}
:root
    body.observatory-interface
    .ob-design-system
    .ob-kpi-levels
    :is(b, small) {
    font-size: 12px;
}
:root body.observatory-interface .map-rail-text em,
:root body.observatory-interface .map-level-legend b {
    font-size: 11px;
}
:root body.observatory-interface .water-alert-map .map-rail-text > span {
    font-size: 12px;
}
:root body.observatory-interface .water-alert-map .map-rail-heading > span {
    font-size: 12px;
}
:root body.observatory-interface .map-pin-label > span {
    font-size: 10px;
}
:root body.observatory-interface .water-alert-map .map-compass b {
    font-size: 10px;
}
@media (max-width: 760px) {
    :root body.observatory-interface .ob-design-system .ob-welcome {
        padding: 16px;
    }
    :root body.observatory-interface .ob-design-system .ob-welcome h2 {
        font-size: 28px;
    }
    :root body.observatory-interface .ob-design-system .ob-hero-guide {
        display: none;
    }
    :root body.observatory-interface .ob-preview-number {
        display: none;
    }
}
:root body.observatory-interface .segments button {
    font-size: 14px;
    min-height: 44px;
}
@media (max-width: 600px) {
    :root body.observatory-interface .water-alert-map .map-floating-tools {
        flex-direction: column;
        align-items: flex-end;
    }
    :root
        body.observatory-interface
        .water-alert-map
        .map-floating-tools
        button {
        white-space: nowrap;
        padding: 8px 10px;
        min-height: 36px;
    }
}
@media (max-width: 1100px) {
    :root body.observatory-interface .sidebar {
        width: 236px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    :root body.observatory-interface .sidebar.open {
        transform: translateX(0);
        box-shadow: 16px 0 70px #16346b30;
    }
    :root body.observatory-interface .workspace {
        margin-left: 0;
    }
    :root body.observatory-interface #menu-button {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        min-height: 44px;
        margin-right: 10px;
        background: #edf4ff;
        border: 1px solid #d5e4fc;
        border-radius: 8px;
        color: #3466ad;
    }
    :root body.observatory-interface .sidebar.open #sidebar-close {
        display: grid;
        place-items: center;
        position: static;
        align-self: flex-end;
        flex-shrink: 0;
        margin: 8px 0 0;
        width: 44px;
        height: 44px;
        background: #edf4ff;
        border: 1px solid #d5e4fc;
        border-radius: 8px;
        color: #3466ad;
    }
    :root body.observatory-interface .sidebar.open .brand {
        padding-top: 8px;
    }
    :root body.observatory-interface .topbar-right {
        margin-left: auto;
    }
}
:root body.observatory-interface .alert-summary-stat {
    position: relative;
    border-top: 3px solid var(--summary-color);
    background: color-mix(in srgb, var(--summary-color) 2%, white);
}
:root
    body.observatory-interface
    .alert-summary-stat
    > span:not(.mini-stat-icon) {
    font-size: 14px;
    padding-right: 36px;
}
:root body.observatory-interface .alert-summary-stat .mini-stat-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--summary-color);
    background: color-mix(in srgb, var(--summary-color) 9%, white);
    border-radius: 9px;
}
@media (max-width: 760px) {
    :root body.observatory-interface .chart text {
        font-size: 16px;
    }
}
