:root {
    color-scheme: dark;
    --bg: #0a121e;
    --panel: #111e2c;
    --panel2: #142333;
    --line: #223142;
    --text: #e8edf4;
    --muted: #8c9bac;
    --orange: #ff9659;
    --red: #f16d73;
    --yellow: #d9c583;
    --green: #72c7b6;
    --radius: 15px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}
button,
select,
input {
    font: inherit;
}
button,
a,
select {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: 0.6;
}
button,
select {
    color: inherit;
}
a {
    color: inherit;
    text-decoration: none;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}
button {
    border: 0;
}
button:not(.primary):hover {
    filter: brightness(1.2);
}
[hidden] {
    display: none !important;
}
small {
    font-size: 11px;
}
.shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 218px;
    min-height: 100vh;
    max-width: 1920px;
    margin: auto;
}
main {
    min-width: 0;
}
.topbar {
    height: 63px;
    border-bottom: 1px solid var(--line);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
}
.breadcrumb,
.top-tags {
    display: flex;
    align-items: center;
    gap: 14px;
}
.breadcrumb b {
    font-weight: 500;
    color: #d3dce8;
}
.brand-dot {
    width: 8px;
    height: 8px;
    background: #7eacb8;
    border-radius: 50%;
    box-shadow: 0 0 12px #537a8c;
}
.top-tags {
    gap: 9px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    border: 1px solid #35414b;
    border-radius: 6px;
    padding: 5px 8px;
    color: var(--muted);
    white-space: nowrap;
}
.pill.orange {
    color: var(--orange);
    background: #ff96590a;
    border-color: #ff965929;
}
.pill.green {
    color: var(--green);
    background: #72c7b60b;
    border-color: #72c7b62a;
}
.workspace {
    padding: 28px 30px 22px;
    background: radial-gradient(ellipse at 90% 0, #452e2428, transparent 37%);
}
.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 0 0 25px;
}
.eyebrow {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.65px;
    color: #e1a479;
    display: flex;
    align-items: center;
    gap: 6px;
}
.small-flame {
    font-size: 14px;
}
.heading h1 {
    font-size: 32px;
    font-weight: 650;
    letter-spacing: -1.1px;
    margin: 9px 0 7px;
    line-height: 1.15;
}
.heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 15px;
    border-radius: 8px;
    background: var(--panel2);
    color: #cad5e1;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--line);
    white-space: nowrap;
}
.button.primary {
    background: var(--orange);
    color: #2c201b;
    border-color: var(--orange);
    box-shadow: 0 3px 14px #ff965916;
}
.button.primary:hover {
    background: #ffad7e;
}
.button.primary span {
    font-size: 17px;
    line-height: 12px;
}
.icon-button {
    background: transparent;
    color: var(--muted);
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 16px;
}
.filterbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 11px;
    margin-bottom: 19px;
    min-width: 0;
}
.select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 7px;
    flex: 1;
    min-width: 120px;
}
.select-wrap > span {
    color: var(--muted);
    font-size: 18px;
}
select {
    background: transparent;
    border: 0;
    outline: none;
    font-size: 11px;
    max-width: 100%;
    padding: 7px 3px;
    cursor: pointer;
}
select option {
    background: #142333;
    color: var(--text);
}
#region {
    width: 100%;
}
.mode-switch {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    background: #0b1725;
    padding: 3px;
    border: 1px solid #1e3041;
    border-radius: 7px;
}
.mode {
    background: transparent;
    padding: 7px 10px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 10px;
}
.mode.active {
    background: #2d2c2b;
    color: #f5ba97;
    box-shadow: 0 0 0 1px #f1b58b25;
}
.run-wrap {
    max-width: 225px;
    border-left: 1px solid var(--line);
    padding-left: 8px;
}
.run-wrap select {
    width: 100%;
}
.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: linear-gradient(140deg, #14212e, #101c2a);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 15px 10px;
    overflow: hidden;
}
.stat-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}
.stat-icon {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    background: #74879a13;
    border: 1px solid #74879a20;
    border-radius: 50%;
    color: #b1c5d4;
}
.stat-number {
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 11px 0 9px;
}
.bars {
    height: 23px;
    display: flex;
    align-items: end;
    gap: 4px;
    opacity: 0.7;
}
.bars i {
    flex: 1;
    background: var(--tone, #7b8fa4);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    opacity: 0.25;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 266px;
    gap: 15px;
}
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 17px 17px 14px;
}
.panel-header h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -0.2px;
}
.muted {
    color: var(--muted);
}
.panel-header small {
    color: var(--muted);
}
.map-wrap {
    padding: 0 12px 12px;
    position: relative;
}
.map-view {
    height: 350px;
    background: #102333;
    border: 1px solid #2c3f50;
    border-radius: 9px;
    overflow: hidden;
    isolation: isolate;
}
.map-overlay {
    position: absolute;
    top: 11px;
    left: 24px;
    z-index: 450;
    pointer-events: none;
}
.map-overlay .pill {
    background: #132030ee;
    color: #c6d6e5;
    border-color: #314353;
}
.map-bottom {
    position: absolute;
    bottom: 29px;
    left: 23px;
    z-index: 450;
    display: flex;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 5px;
    background: #0c1524e8;
    font-size: 9px;
    color: #aebac7;
}
.legend-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}
.rank-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rank-list {
    padding: 0 12px;
    flex: 1;
    max-height: 275px;
    overflow: auto;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    width: 100%;
    text-align: left;
    margin-bottom: 6px;
    color: inherit;
}
.rank-item.selected {
    background: #1b2b3a;
    border-color: #43505b;
}
.rank-item:hover {
    background: #1b2b3a;
}
.score-ring {
    --tone: #ff9659;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--tone);
    box-shadow: inset 0 0 0 4px #111e2c;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 650;
    flex-shrink: 0;
    background: #ffffff04;
}
.rank-item .name {
    font-size: 11px;
    font-weight: 550;
    display: block;
    margin-bottom: 5px;
}
.rank-item small {
    color: var(--muted);
    font-size: 9px;
    display: block;
    line-height: 1.7;
}
.rank-actions {
    padding: 12px 14px 14px;
}
.rank-actions .button {
    width: 100%;
}
.rank-actions p {
    margin: 10px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 9px;
}
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}
.metric {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.metric-icon {
    color: #748ca0;
    background: #7993ac0d;
    border-radius: 7px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.metric small {
    color: var(--muted);
    display: block;
    font-size: 9px;
    margin-bottom: 4px;
}
.metric strong {
    font-size: 10px;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 155px;
}
.notice {
    display: flex;
    gap: 11px;
    align-items: center;
    background: #2e241f40;
    border: 1px solid #6f4c322e;
    padding: 13px;
    border-radius: 10px;
    margin-top: 18px;
}
.notice-symbol {
    color: #d59a6a;
    font-size: 17px;
}
.notice strong {
    display: block;
    font-size: 10px;
    font-weight: 500;
}
.notice small {
    display: block;
    color: #9b9c9f;
    font-size: 9px;
    margin-top: 4px;
    line-height: 1.6;
}
.text-button {
    margin-left: auto;
    flex-shrink: 0;
    background: transparent;
    color: #dcaa81;
    font-size: 10px;
}
.text-button span {
    margin-left: 9px;
}
.sidebar {
    background: #0e1825;
    border-left: 1px solid var(--line);
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    margin: 0 0 34px;
}
.logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 42px;
    background: linear-gradient(160deg, #ff8a52, #ef6f43);
    border-radius: 10px;
    color: #182130;
    font-weight: 600;
    font-size: 30px;
}
.brand strong {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.6px;
    display: block;
}
.brand small {
    display: block;
    font-size: 6.5px;
    letter-spacing: 1.4px;
    color: #8d9cac;
    margin-top: 6px;
}
.sidebar-label {
    font-size: 8px;
    letter-spacing: 1.3px;
    color: #6e8295;
    margin-bottom: 10px;
}
.study {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 11px 8px;
    background: #142231;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 10px;
    margin-bottom: 22px;
}
.study > span:last-child {
    margin-left: auto;
    color: #6e8295;
}
.study small {
    display: block;
    color: #8f9eae;
    font-size: 9px;
    margin-top: 5px;
}
.study-dot,
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #77c4ae;
    flex-shrink: 0;
}
.nav-item {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    background: transparent;
    color: #a4b1c2;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 7px;
    font-size: 11px;
}
.nav-item span {
    font-size: 17px;
    color: #9bacc1;
    width: 18px;
}
.nav-item.active {
    color: #f0b18a;
    background: #ff965914;
    border-color: #a96f3a35;
}
.nav-item.active span {
    color: #f5a36e;
}
.sidebar-bottom {
    margin-top: auto;
}
.system {
    display: flex;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 13px 9px;
    background: #152131;
    font-size: 7px;
    letter-spacing: 0.9px;
    color: #c6a381;
    line-height: 1.6;
}
.system .status-dot {
    margin-top: 4px;
}
.system small {
    display: block;
    letter-spacing: 0;
    color: #8c9aaa;
    font-size: 9px;
    margin-top: 4px;
}
.sidebar-version {
    display: flex;
    justify-content: space-between;
    color: #5a6d81;
    font-size: 9px;
    margin-top: 18px;
}
.error-banner {
    background: #4b242533;
    color: #edaaa5;
    border: 1px solid #71423d;
    border-radius: 9px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.7;
}
.loading-panel,
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 300px;
    color: var(--muted);
    text-align: center;
    padding: 35px;
    line-height: 1.7;
}
.empty strong {
    font-size: 18px;
    color: #d3deea;
    font-weight: 500;
}
.empty p {
    max-width: 440px;
    font-size: 12px;
    margin: 0;
}
.empty-symbol {
    font-size: 32px;
    color: #638298;
}
.spinner {
    border: 2px solid #38475a;
    border-top-color: var(--orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.priority-filters {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 15px;
}
.priority-button {
    padding: 7px 12px;
    background: #111f2e;
    border: 1px solid #233245;
    border-radius: 6px;
    color: #8e9eae;
    font-size: 10px;
}
.priority-button.active {
    color: #ffc29c;
    background: #51372855;
    border-color: #7c563a;
}
.table-scroll {
    overflow: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    white-space: nowrap;
    font-size: 11px;
}
th {
    text-align: left;
    font-weight: 500;
    color: #8094a8;
    background: #0f1b29;
    padding: 14px 17px;
    font-size: 9px;
    letter-spacing: 0.5px;
}
td {
    padding: 16px 17px;
    border-top: 1px solid #24314477;
    color: #aab9c8;
}
td:first-child {
    color: #e0e7ef;
}
tbody tr:hover {
    background: #1b2b3a66;
}
.table-action {
    background: transparent;
    color: var(--orange);
    font-size: 10px;
}
.tag {
    font-size: 8px;
    font-weight: 550;
    padding: 4px 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--tone) 10%, transparent);
    color: var(--tone);
    border: 1px solid color-mix(in srgb, var(--tone) 25%, transparent);
    display: inline-block;
    white-space: nowrap;
}
.source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.source-card {
    padding: 22px;
}
.source-card h3 {
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}
.source-card dl {
    margin: 0;
}
.source-card dt {
    color: var(--muted);
    font-size: 10px;
    margin-top: 16px;
}
.source-card dd {
    margin: 6px 0 0;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.source-card .pill {
    margin: 0 0 10px;
}
.leaflet-container {
    font-family: inherit;
    background: #122434;
}
.leaflet-tile-pane {
    filter: grayscale(1) invert(1) brightness(0.7) contrast(1.1);
}
.leaflet-control-attribution {
    font-size: 8px !important;
    background: #0a1523cf !important;
    color: #8094a8 !important;
}
.leaflet-control-attribution a {
    color: #9dafbe !important;
}
.leaflet-bar a {
    background: #172d3f !important;
    color: #9db3c5 !important;
    border-color: #2b4254 !important;
}
.leaflet-bar {
    border: 1px solid #334858 !important;
    box-shadow: none !important;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #152333;
    color: var(--text);
    border: 1px solid #536170;
}
.leaflet-popup-content {
    font-size: 10px;
    line-height: 1.8;
}
.leaflet-popup-content b {
    color: #f6b58e;
}
.leaflet-popup-close-button {
    color: #93a6b8 !important;
}
.hotspot-marker {
    display: grid;
    place-items: center;
    position: relative;
}
.hotspot-marker::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tone), transparent 70%);
    opacity: 0.32;
}
.hotspot-marker span {
    height: 12px;
    width: 12px;
    border: 2px solid #fff2de;
    border-radius: 50%;
    background: var(--tone);
    box-shadow:
        0 0 0 5px #ffb07315,
        0 0 15px var(--tone);
}
.hotspot-marker.selected span {
    box-shadow:
        0 0 0 6px #ffb07325,
        0 0 0 15px #ffb0730d,
        0 0 24px var(--tone);
}
dialog {
    background: #101e2d;
    color: var(--text);
    border: 1px solid #394656;
    border-radius: 17px;
    padding: 25px;
    max-width: 720px;
    width: calc(100% - 32px);
    max-height: 90vh;
    box-shadow: 0 30px 150px #0008;
}
dialog::backdrop {
    background: #030a13c9;
    backdrop-filter: blur(5px);
}
.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
}
.dialog-header h2 {
    margin: 9px 0 0;
    font-size: 24px;
    letter-spacing: -0.6px;
}
.detail-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 23px;
    padding: 19px;
    background: #172635;
    border-radius: 10px;
}
.detail-hero .score-ring {
    width: 65px;
    height: 65px;
    font-size: 19px;
}
.detail-hero p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
    margin: 7px 0 0;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.detail-grid > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    overflow-wrap: anywhere;
}
.detail-grid small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-bottom: 7px;
}
.detail-grid strong {
    font-size: 12px;
    font-weight: 500;
}
.detail-section {
    margin: 22px 0;
}
.detail-section h3 {
    font-size: 12px;
    font-weight: 550;
}
.detail-section p,
.detail-section li {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
}
.hash {
    font-family: Consolas, monospace;
    font-size: 10px !important;
    word-break: break-all;
}
.map-unavailable {
    position: absolute;
    z-index: 450;
    bottom: 48px;
    right: 24px;
    max-width: 210px;
    background: #122232e8;
    padding: 8px;
    border-radius: 6px;
    color: #a4b2c3;
    font-size: 9px;
}
#toast {
    position: fixed;
    bottom: 24px;
    left: 28px;
    padding: 13px 20px;
    background: #243c45;
    color: #dbeee8;
    border: 1px solid #65827d;
    border-radius: 9px;
    z-index: 2000;
    font-size: 12px;
}
.page-note {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.8;
    margin: 14px 0;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 13px;
}
.section-heading h2 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}
.hash-link {
    font-family: Consolas, monospace;
    color: #b6c9dc;
}
.action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.map-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
}
@media (min-width: 1600px) {
    .workspace {
        padding: 35px 45px;
    }
    .map-view {
        height: 430px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
    }
    .rank-list {
        max-height: 355px;
    }
    .shell {
        grid-template-columns: minmax(0, 1fr) 250px;
    }
    .sidebar {
        padding: 30px 22px;
    }
    .stat-card {
        padding: 20px;
    }
    .heading h1 {
        font-size: 36px;
    }
}
@media (max-width: 1100px) {
    .shell {
        grid-template-columns: minmax(0, 1fr) 180px;
    }
    .workspace {
        padding: 23px 20px;
    }
    .topbar {
        padding: 0 20px;
    }
    .sidebar {
        padding: 23px 12px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 225px;
    }
    .run-wrap {
        max-width: 150px;
    }
    .mode {
        padding: 7px;
    }
    .heading h1 {
        font-size: 28px;
    }
    .metric {
        padding: 10px 8px;
        gap: 6px;
    }
    .metric-icon {
        width: 23px;
    }
    .metric strong {
        max-width: 115px;
    }
    .stat-card {
        padding: 13px 10px;
    }
    .stat-label {
        font-size: 10px;
    }
    .map-view {
        height: 330px;
    }
}
@media (max-width: 800px) {
    .shell {
        display: block;
    }
    .sidebar {
        height: 65px;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: block;
        border-left: 0;
        border-top: 1px solid #314253;
        background: #111d2bef;
        backdrop-filter: blur(15px);
        padding: 6px 9px;
    }
    .sidebar > .brand,
    .sidebar-label,
    .study,
    .sidebar-bottom {
        display: none;
    }
    .sidebar nav {
        display: flex;
        justify-content: space-around;
    }
    .nav-item {
        flex-direction: column;
        gap: 3px;
        width: auto;
        padding: 5px 10px;
        margin: 0;
        font-size: 8px;
        border: 0;
        background: transparent !important;
    }
    .nav-item span {
        font-size: 19px;
        text-align: center;
    }
    .topbar {
        height: 50px;
        padding: 0 16px;
    }
    .workspace {
        padding: 23px 16px 90px;
    }
    .heading {
        align-items: flex-start;
        margin-bottom: 21px;
    }
    .heading h1 {
        font-size: 28px;
    }
    .heading p {
        font-size: 11px;
        max-width: 250px;
    }
    .heading > .button {
        font-size: 0;
        min-width: 37px;
        padding: 11px;
        margin-top: 24px;
    }
    .heading > .button span {
        font-size: 20px;
    }
    .filterbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .select-wrap {
        flex-basis: 65%;
    }
    .mode-switch {
        order: 3;
        flex: 1;
        justify-content: center;
    }
    .mode {
        flex: 1;
    }
    .run-wrap {
        order: 4;
        max-width: none;
        width: 50%;
        border: 0;
        padding: 0;
    }
    .filterbar > #reset {
        margin-left: auto;
    }
    .stats {
        gap: 8px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .stat-card {
        padding: 10px 8px;
        border-radius: 10px;
    }
    .stat-label {
        font-size: 9px;
        gap: 4px;
    }
    .stat-icon {
        display: none;
    }
    .stat-number {
        font-size: 23px;
        margin: 10px 0;
    }
    .bars {
        gap: 2px;
        height: 17px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .map-view {
        height: 350px;
    }
    .rank-list {
        max-height: 225px;
    }
    .rank-panel .rank-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 8px;
    }
    .rank-item {
        padding: 11px 6px;
    }
    .rank-actions p {
        text-align: left;
    }
    .metrics-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .metric strong {
        max-width: 150px;
    }
    .notice {
        align-items: start;
        gap: 8px;
    }
    .notice .text-button {
        font-size: 9px;
    }
    .notice small {
        max-width: 230px;
    }
    .notice strong {
        font-size: 9px;
    }
    .source-grid {
        grid-template-columns: 1fr;
    }
    .top-tags .pill:not(#connection) {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

.run-context {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 17px;
    color: #8c9bac;
    font-size: 9px;
    line-height: 1.7;
}
.run-context b {
    font-weight: 500;
    color: #bccbd9;
}
.run-context .pill {
    font-size: 9px;
}
@media (max-width: 800px) {
    .run-context {
        gap: 5px 10px;
        font-size: 8px;
    }
}
