﻿:root {
    --color-primary: #0f4f3f;
    --color-primary-strong: #0b3f33;
    --color-primary-soft: #eaf4f0;

    --color-background: #f5f7f6;
    --color-surface: #ffffff;
    --color-border: #dfe6e2;

    --color-text: #1f2933;
    --color-text-muted: #6b7280;
    --color-text-soft: #8a9490;

    --color-success: #1f8f5f;
    --color-danger: #c94a4a;
    --color-warning: #d9892b;
    --color-warning-soft: #f2c94c;

    --sidebar-width: 248px;
    --sidebar-collapsed-width: 76px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 14px rgba(15, 79, 63, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 79, 63, 0.08);

    --transition: 180ms ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--color-background);
    color: var(--color-text);
}

button,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   APPLICATION SHELL
========================================================= */

.app-shell {
    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);

    min-height: 100vh;

    transition:
        grid-template-columns 260ms ease;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    inset:
        0
        auto
        0
        0;

    width: var(--sidebar-width);
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 28px 20px 24px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            var(--color-primary-strong) 0%,
            var(--color-primary) 100%
        );

    color: #ffffff;

    z-index: 20;

    transition:
        width 260ms ease,
        padding 260ms ease;
}


/* =========================================================
   SIDEBAR BRAND
========================================================= */

.sidebar__brand {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 54px;

    padding:
        0
        42px
        28px
        8px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);

    transition:
        padding 260ms ease,
        gap 260ms ease;
}

.sidebar__brand-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.12);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.04em;

    transition:
        width 260ms ease,
        height 260ms ease;
}

.sidebar__brand-text {
    min-width: 0;

    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        width 260ms ease;
}

.sidebar__brand-text strong,
.sidebar__brand-text span {
    display: block;

    white-space: nowrap;
}

.sidebar__brand-text strong {
    margin-bottom: 1px;

    font-size: 13px;
    font-weight: 500;

    opacity: 0.82;
}

.sidebar__brand-text span {
    font-size: 17px;
    font-weight: 700;

    letter-spacing: -0.02em;
}


/* =========================================================
   SIDEBAR TOGGLE
========================================================= */

.sidebar__toggle {
    position: absolute;

    top: 5px;
    right: 0;

    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;

    cursor: pointer;

    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.08);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        right 260ms ease;
}

.sidebar__toggle:hover {
    background:
        rgba(255, 255, 255, 0.16);

    border-color:
        rgba(255, 255, 255, 0.24);
}

.sidebar__toggle:focus-visible {
    outline:
        2px solid
        rgba(255, 255, 255, 0.65);

    outline-offset: 2px;
}

.sidebar__toggle:active {
    transform: scale(0.94);
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.sidebar__nav {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-top: 28px;

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.sidebar__nav-item {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 46px;

    padding:
        0
        14px;

    border-radius: 10px;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}


.sidebar__nav-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    margin-right: 12px;

    object-fit: contain;

    border-radius: 7px;
}

.sidebar__nav-item > span {
    display: inline-flex;
    align-items: center;

    min-width: 0;
}

.sidebar__nav-item:hover {
    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;

    transform: translateX(2px);
}

.sidebar__nav-item--active {
    background:
        rgba(255, 255, 255, 0.14);

    color: #ffffff;
}

.sidebar__nav-item--active::before {
    content: "";

    position: absolute;

    left: -20px;

    width: 4px;
    height: 24px;

    border-radius:
        0
        4px
        4px
        0;

    background: #ffffff;
}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar__footer {
    margin-top: auto;

    padding:
        20px
        8px
        0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 12px;
    line-height: 1.5;

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}


/* =========================================================
   SIDEBAR COLLAPSED
========================================================= */

.app-shell.sidebar-collapsed {
    grid-template-columns:
        var(--sidebar-collapsed-width)
        minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);

    padding:
        28px
        10px
        24px;
}

.app-shell.sidebar-collapsed .sidebar__brand {
    justify-content: center;

    gap: 0;

    padding:
        0
        0
        62px;

    min-height: 112px;
}

.app-shell.sidebar-collapsed .sidebar__brand-text {
    width: 0;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}

.app-shell.sidebar-collapsed .sidebar__brand-icon {
    width: 42px;
    height: 42px;
}

.app-shell.sidebar-collapsed .sidebar__toggle {
    top: 58px;

    left: 50%;
    right: auto;

    transform:
        translateX(-50%);
}

.app-shell.sidebar-collapsed .sidebar__toggle:hover {
    transform:
        translateX(-50%)
        scale(1.04);
}

.app-shell.sidebar-collapsed .sidebar__toggle:active {
    transform:
        translateX(-50%)
        scale(0.94);
}

.app-shell.sidebar-collapsed .sidebar__nav {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}

.app-shell.sidebar-collapsed .sidebar__footer {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    grid-column: 2;

    width: 100%;
    min-width: 0;

    padding:
        34px
        38px
        48px;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 24px;
}

.topbar h1 {
    margin: 0;

    font-size:
        clamp(
            28px,
            2.3vw,
            38px
        );

    font-weight: 750;

    letter-spacing: -0.035em;
}

.topbar p {
    margin:
        8px
        0
        0;

    color: var(--color-text-muted);

    font-size: 14px;
}

.topbar__status {
    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        12px
        16px;

    border:
        1px solid
        var(--color-border);

    border-radius: 999px;

    background:
        var(--color-surface);

    box-shadow:
        var(--shadow-sm);
}

.topbar__status div {
    display: flex;
    flex-direction: column;
}

.topbar__status strong {
    font-size: 12px;
    font-weight: 700;
}

.topbar__status span:not(.status-dot) {
    margin-top: 1px;

    color:
        var(--color-text-muted);

    font-size: 11px;
}

.status-dot {
    width: 9px;
    height: 9px;

    display: inline-block;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        var(--color-success);

    box-shadow:
        0
        0
        0
        4px
        rgba(31, 143, 95, 0.12);
}


/* =========================================================
   FILTERS
========================================================= */

.filters {
    display: grid;

    grid-template-columns:
        minmax(160px, 0.8fr)
        minmax(130px, 0.6fr)
        minmax(230px, 1.3fr)
        auto;

    gap: 14px;

    align-items: end;

    margin-bottom: 28px;

    padding: 18px;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    box-shadow:
        var(--shadow-sm);
}

.filter-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.filter-group label {
    color:
        var(--color-text-muted);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.filter-group select {
    width: 100%;
    min-height: 44px;

    padding:
        0
        42px
        0
        13px;

    border:
        1px solid
        var(--color-border);

    border-radius: 10px;

    background: #ffffff;

    color:
        var(--color-text);

    font-size: 14px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.filter-group select:focus {
    border-color:
        var(--color-primary);

    box-shadow:
        0
        0
        0
        3px
        rgba(15, 79, 63, 0.08);
}


/* =========================================================
   BUTTONS
========================================================= */

.button-primary,
.button-secondary {
    min-height: 44px;

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.button-primary {
    padding:
        0
        20px;

    background:
        var(--color-primary);

    color: #ffffff;

    box-shadow:
        0
        8px
        18px
        rgba(15, 79, 63, 0.14);
}

.button-primary:hover {
    background:
        var(--color-primary-strong);

    transform:
        translateY(-1px);
}

.button-secondary {
    padding:
        0
        16px;

    border:
        1px solid
        var(--color-border);

    background: #ffffff;

    color:
        var(--color-primary);
}

.button-secondary:hover {
    background:
        var(--color-primary-soft);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
}

.section-heading__number {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 10px;

    background:
        var(--color-primary-soft);

    color:
        var(--color-primary);

    font-size: 14px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 750;

    letter-spacing: -0.02em;
}

.section-heading p {
    margin:
        3px
        0
        0;

    color:
        var(--color-text-muted);

    font-size: 12px;
}


/* =========================================================
   OVERVIEW / KPIs
========================================================= */

.overview-section {
    margin-bottom: 24px;
}

.kpi-grid {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.kpi-card {
    position: relative;

    min-height: 128px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 18px;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.kpi-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow-md);
}

.kpi-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 18px;
    right: 18px;

    height: 3px;

    border-radius:
        0
        0
        4px
        4px;

    background:
        var(--color-primary);
}

.kpi-card__label {
    margin-bottom: 10px;

    color:
        var(--color-text-muted);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-card strong {
    display: block;

    color:
        var(--color-text);

    font-size:
        clamp(
            19px,
            1.45vw,
            25px
        );

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.03em;
}

.kpi-card small {
    margin-top: 8px;

    color:
        var(--color-text-soft);

    font-size: 11px;
}

.overview-note {
    margin-top: 12px;

    padding:
        12px
        16px;

    border:
        1px solid
        var(--color-border);

    border-radius: 10px;

    background: #f9fbfa;

    color:
        var(--color-text-muted);

    font-size: 12px;
    line-height: 1.5;
}

.overview-note strong {
    color:
        var(--color-text);
}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(360px, 0.9fr);

    gap: 16px;

    align-items: start;

    margin-top: 24px;
}

.dashboard-side {
    display: grid;

    gap: 16px;
}

.panel {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    box-shadow:
        var(--shadow-sm);
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding:
        18px
        20px
        14px;

    border-bottom:
        1px solid
        var(--color-border);
}

.panel__eyebrow {
    display: block;

    margin-bottom: 4px;

    color:
        var(--color-primary);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.panel__header h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.025em;
}

.panel__header p {
    margin:
        5px
        0
        0;

    color:
        var(--color-text-muted);

    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   RANKING / TABLE
========================================================= */

.panel--ranking {
    min-height: 100%;
}

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 12px;
}

thead {
    background: #f6f8f7;
}

th,
td {
    padding:
        11px
        12px;

    border-bottom:
        1px solid
        var(--color-border);

    text-align: left;

    white-space: nowrap;
}

th {
    color: #4b5563;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.035em;
}

td {
    color: #34403c;

    font-size: 12px;
}

tbody tr {
    transition:
        background
        var(--transition);
}

tbody tr:hover {
    background: #f7faf8;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody td:nth-child(2) {
    color:
        var(--color-text);

    font-weight: 700;
}

.priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 22px;

    padding:
        0
        10px;

    border-radius: 6px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
}

.priority--1 {
    background: #cf3e3e;
}

.priority--2 {
    background: #e78a24;
}

.priority--3 {
    background: #e8bd36;
}


/* =========================================================
   STATE MAP
========================================================= */

.state-map-container {
    position: relative;

    margin: 18px;

    min-height: 390px;

    overflow: hidden;

    border:
        1px solid
        var(--color-border);

    border-radius: 14px;

    background: #f8faf9;
}

#state-map {
    width: 100%;
    height: 390px;

    background: #f8faf9;
}

#map-status {
    position: absolute;

    left: 50%;
    bottom: 14px;

    transform:
        translateX(-50%);

    z-index: 500;

    min-width: 220px;

    max-width:
        calc(
            100% - 28px
        );

    padding:
        10px
        14px;

    border:
        1px solid
        rgba(15, 79, 63, 0.14);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.95);

    color:
        var(--color-text);

    font-size: 11px;
    line-height: 1.45;

    text-align: center;

    box-shadow:
        0
        8px
        24px
        rgba(15, 79, 63, 0.08);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

#map-status strong {
    display: block;

    margin-bottom: 2px;

    color:
        var(--color-primary);

    font-size: 12px;
}

#map-status.map-status--hidden {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   LEAFLET
========================================================= */

.state-map-container .leaflet-container {
    width: 100%;
    height: 100%;

    background: #f8faf9;

    font-family: inherit;
}

.state-map-container .leaflet-pane,
.state-map-container .leaflet-map-pane {
    width: 100%;
    height: 100%;
}

.state-map-container .leaflet-control-zoom {
    overflow: hidden;

    border:
        1px solid
        var(--color-border);

    border-radius: 8px;

    box-shadow:
        0
        6px
        18px
        rgba(15, 79, 63, 0.08);
}

.state-map-container .leaflet-control-zoom a {
    width: 30px;
    height: 30px;

    line-height: 30px;

    border: 0;

    color:
        var(--color-primary);

    font-size: 16px;
}

.state-map-container .leaflet-control-attribution {
    padding:
        2px
        5px;

    background:
        rgba(255, 255, 255, 0.86);

    color:
        var(--color-text-muted);

    font-size: 8px;
}

.state-map-container .leaflet-interactive {
    transition:
        fill 0.12s ease,
        fill-opacity 0.12s ease,
        stroke 0.12s ease;
}

.leaflet-tooltip {
    padding:
        8px
        10px;

    border:
        1px solid
        rgba(15, 79, 63, 0.14);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.97);

    color:
        var(--color-text);

    box-shadow:
        0
        8px
        24px
        rgba(15, 79, 63, 0.10);
}

.map-tooltip {
    display: grid;

    gap: 2px;

    min-width: 130px;
}

.map-tooltip strong {
    color:
        var(--color-primary);

    font-size: 12px;
}

.map-tooltip span {
    color:
        var(--color-text-muted);

    font-size: 10px;
}


/* =========================================================
   MAP SUMMARY
========================================================= */

.map-summary {
    display: grid;

    gap: 4px;

    margin:
        0
        18px
        18px;

    padding: 14px;

    border:
        1px solid
        var(--color-border);

    border-radius: 10px;

    background: #f8faf9;
}

.map-summary strong {
    font-size: 13px;
}

.map-summary span {
    color:
        var(--color-text-muted);

    font-size: 11px;
}


/* =========================================================
   PRIORITY MAP
========================================================= */

.priority-map-placeholder {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 14px;

    padding: 18px;
}

.priority-map-placeholder__map {
    min-height: 230px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 35% 45%,
            #f5b237 0 8%,
            transparent 9%
        ),
        radial-gradient(
            circle at 58% 35%,
            #d94a32 0 7%,
            transparent 8%
        ),
        radial-gradient(
            circle at 73% 60%,
            #ed8d2e 0 9%,
            transparent 10%
        ),
        linear-gradient(
            145deg,
            #f7d74e 0%,
            #f5b63f 52%,
            #e9762b 100%
        );

    clip-path:
        polygon(
            5% 45%,
            15% 30%,
            27% 24%,
            39% 15%,
            53% 20%,
            64% 27%,
            77% 33%,
            83% 43%,
            96% 51%,
            88% 61%,
            76% 66%,
            70% 78%,
            58% 87%,
            44% 80%,
            31% 71%,
            19% 69%,
            8% 58%
        );

    color:
        rgba(255, 255, 255, 0.9);

    font-size: 34px;
    font-weight: 800;
}

.priority-legend {
    align-self: center;

    display: grid;

    gap: 10px;

    min-width: 120px;

    padding: 12px;

    border:
        1px solid
        var(--color-border);

    border-radius: 10px;

    background: #ffffff;
}

.priority-legend div {
    display: flex;
    align-items: center;

    gap: 8px;

    color:
        var(--color-text-muted);

    font-size: 11px;
}

.legend-color {
    width: 11px;
    height: 11px;

    display: inline-block;

    border-radius: 3px;
}

.legend-color--1 {
    background: #d64032;
}

.legend-color--2 {
    background: #e98326;
}

.legend-color--3 {
    background: #f1c232;
}


/* =========================================================
   INTEGRATIONS
========================================================= */

.integrations {
    margin-top: 20px;

    padding: 20px;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    box-shadow:
        var(--shadow-sm);
}

.integrations__header {
    margin-bottom: 16px;
}

.integrations__header h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 800;
}

.integrations__header p {
    margin:
        5px
        0
        0;

    color:
        var(--color-text-muted);

    font-size: 12px;
}

.integrations__grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.integration-card {
    display: grid;

    grid-template-columns:
        auto
        1fr;

    grid-template-areas:
        "dot name"
        "dot status";

    column-gap: 10px;

    align-items: center;

    padding: 14px;

    border:
        1px solid
        var(--color-border);

    border-radius: 10px;

    background: #f9fbfa;
}

.integration-card .status-dot {
    grid-area: dot;
}

.integration-card strong {
    grid-area: name;

    font-size: 12px;
}

.integration-card small {
    grid-area: status;

    margin-top: 2px;

    color:
        var(--color-success);

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE — LARGE
========================================================= */

@media (max-width: 1400px) {

    .kpi-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   RESPONSIVE — TABLET LARGE
========================================================= */

@media (max-width: 1180px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-side {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .integrations__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

    :root {
        --sidebar-width: 210px;
    }

    .main-content {
        padding:
            28px
            24px
            40px;
    }

    .filters {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .button-primary {
        width: 100%;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 760px) {

    :root {
        --mobile-page-padding: 12px;
        --mobile-card-radius: 12px;
    }

    body {
        background: #f4f7f5;
    }

    .app-shell,
    .app-shell.sidebar-collapsed {
        display: block;
        min-height: 100vh;
    }

    /* ---------------------------------------------------------
       MOBILE HEADER / SIDEBAR
    --------------------------------------------------------- */

    .sidebar,
    .app-shell.sidebar-collapsed .sidebar {
        position: relative;
        inset: auto;

        width: 100%;
        min-height: auto;

        padding:
            12px
            var(--mobile-page-padding)
            10px;

        overflow: visible;

        background:
            linear-gradient(
                135deg,
                #0b4a3b 0%,
                #0f654f 100%
            );

        box-shadow:
            0
            8px
            22px
            rgba(11, 74, 59, 0.12);
    }

    .sidebar__brand,
    .app-shell.sidebar-collapsed .sidebar__brand {
        min-height: 44px;

        justify-content: flex-start;

        gap: 10px;

        padding:
            0
            46px
            10px
            0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.10);
    }

    .sidebar__brand-icon,
    .app-shell.sidebar-collapsed .sidebar__brand-icon {
        width: 40px;
        height: 40px;

        border-radius: 10px;

        background:
            rgba(255, 255, 255, 0.13);

        font-size: 13px;
    }

    .sidebar__brand-text,
    .app-shell.sidebar-collapsed .sidebar__brand-text {
        width: auto;

        opacity: 1;
        visibility: visible;

        pointer-events: auto;
    }

    .sidebar__brand-text strong {
        margin-bottom: 0;

        font-size: 10px;
    }

    .sidebar__brand-text span {
        font-size: 15px;
    }

    .sidebar__toggle,
    .app-shell.sidebar-collapsed .sidebar__toggle {
        top: 4px;
        right: 0;
        left: auto;

        width: 30px;
        height: 30px;

        border-radius: 8px;

        transform: none;

        font-size: 18px;
    }

    .sidebar__toggle:hover,
    .app-shell.sidebar-collapsed .sidebar__toggle:hover,
    .sidebar__toggle:active,
    .app-shell.sidebar-collapsed .sidebar__toggle:active {
        transform: none;
    }

    .sidebar__nav,
    .app-shell.sidebar-collapsed .sidebar__nav {
        display: flex;
        flex-direction: row;

        gap: 6px;

        margin-top: 10px;

        padding-bottom: 2px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;

        opacity: 1;
        visibility: visible;

        pointer-events: auto;
    }

    .sidebar__nav::-webkit-scrollbar {
        display: none;
    }

    .sidebar__nav-item,
    .app-shell.sidebar-collapsed .sidebar__nav-item {
        min-height: 34px;

        flex:
            0
            0
            auto;

        padding:
            0
            12px;

        border-radius: 8px;

        color:
            rgba(255, 255, 255, 0.82);

        font-size: 10px;
        font-weight: 650;
    }


    .sidebar__nav-icon {
        width: 22px;
        height: 22px;

        flex: 0 0 22px;

        margin-right: 7px;

        border-radius: 5px;
    }

    .sidebar__nav-item:hover {
        transform: none;
    }

    .sidebar__nav-item--active {
        background:
            rgba(255, 255, 255, 0.13);

        color: #ffffff;
    }

    .sidebar__nav-item--active::before {
        display: none;
    }

    .sidebar__footer,
    .app-shell.sidebar-collapsed .sidebar__footer {
        display: none;
    }

    /* ---------------------------------------------------------
       MAIN CONTENT
    --------------------------------------------------------- */

    .main-content {
        width: 100%;

        padding:
            16px
            var(--mobile-page-padding)
            28px;
    }

    /* ---------------------------------------------------------
       TOPBAR
    --------------------------------------------------------- */

    .topbar {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        align-items: center;

        gap: 10px;

        margin-bottom: 14px;
    }

    .topbar h1 {
        font-size: 20px;
        line-height: 1.1;
    }

    .topbar p {
        margin-top: 4px;

        font-size: 10px;
        line-height: 1.35;
    }

    .topbar__status {
        align-self: center;

        gap: 7px;

        padding:
            8px
            10px;

        border-radius: 10px;

        box-shadow: none;
    }

    .topbar__status strong {
        font-size: 10px;
    }

    .topbar__status span:not(.status-dot) {
        font-size: 9px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    /* ---------------------------------------------------------
       FILTERS
    --------------------------------------------------------- */

    .filters {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 9px;

        margin-bottom: 14px;

        padding: 12px;

        border-radius: var(--mobile-card-radius);
    }

    .filter-group:nth-child(3),
    .button-primary {
        grid-column: 1 / -1;
    }

    .filter-group {
        gap: 5px;
    }

    .filter-group label {
        font-size: 9px;
    }

    .filter-group select {
        min-height: 38px;

        padding:
            0
            34px
            0
            10px;

        border-radius: 8px;

        font-size: 11px;
    }

    .button-primary {
        width: 100%;
        min-height: 40px;

        border-radius: 8px;

        font-size: 11px;
    }

    /* ---------------------------------------------------------
       SECTION HEADING
    --------------------------------------------------------- */

    .overview-section {
        margin-bottom: 14px;
    }

    .section-heading {
        gap: 9px;

        margin-bottom: 10px;
    }

    .section-heading__number {
        width: 30px;
        height: 30px;

        border-radius: 8px;

        font-size: 11px;
    }

    .section-heading h2 {
        font-size: 14px;
        line-height: 1.2;
    }

    .section-heading p {
        margin-top: 2px;

        font-size: 9px;
    }

    /* ---------------------------------------------------------
       KPI GRID
    --------------------------------------------------------- */

    .kpi-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }

    .kpi-card {
        min-height: 92px;

        justify-content: center;

        padding:
            12px
            11px;

        border-radius: 10px;

        box-shadow:
            0
            2px
            8px
            rgba(15, 79, 63, 0.045);
    }

    .kpi-card::before {
        left: 12px;
        right: 12px;

        height: 2px;
    }

    .kpi-card__label {
        margin-bottom: 6px;

        font-size: 8px;
        line-height: 1.25;
    }

    .kpi-card strong {
        font-size: 15px;
        line-height: 1.08;
    }

    .kpi-card small {
        margin-top: 5px;

        font-size: 8px;
    }

    .overview-note {
        margin-top: 8px;

        padding:
            9px
            10px;

        border-radius: 8px;

        font-size: 9px;
        line-height: 1.45;
    }

    /* ---------------------------------------------------------
       DASHBOARD
    --------------------------------------------------------- */

    .dashboard-grid {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 14px;
    }

    .dashboard-side {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .panel {
        border-radius: var(--mobile-card-radius);

        box-shadow:
            0
            3px
            12px
            rgba(15, 79, 63, 0.05);
    }

    .panel__header {
        gap: 10px;

        padding:
            12px
            12px
            10px;
    }

    .panel__eyebrow {
        margin-bottom: 3px;

        font-size: 8px;
    }

    .panel__header h2 {
        font-size: 14px;
        line-height: 1.18;
    }

    .panel__header p {
        margin-top: 3px;

        font-size: 9px;
        line-height: 1.35;
    }

    .button-secondary {
        min-height: 34px;

        padding:
            0
            11px;

        border-radius: 8px;

        font-size: 10px;
    }

    /* ---------------------------------------------------------
       RANKING TABLE
    --------------------------------------------------------- */

    .panel--ranking {
        min-height: 0;
    }

    .table-wrapper {
        overflow-x: auto;

        scrollbar-width: thin;
    }

    table {
        min-width: 540px;

        font-size: 9px;
    }

    th,
    td {
        padding:
            8px
            8px;
    }

    th {
        font-size: 7px;
        letter-spacing: 0.02em;
    }

    td {
        font-size: 9px;
    }

    .priority {
        min-width: 30px;
        height: 19px;

        padding:
            0
            7px;

        border-radius: 5px;

        font-size: 9px;
    }

    /* ---------------------------------------------------------
       STATE MAP
    --------------------------------------------------------- */

    .state-map-container {
        margin: 10px;

        min-height: 280px;

        border-radius: 10px;
    }

    #state-map {
        height: 280px;
    }

    #map-status {
        bottom: 9px;

        min-width: 180px;

        padding:
            8px
            10px;

        border-radius: 8px;

        font-size: 9px;
    }

    .state-map-container .leaflet-control-zoom a {
        width: 28px;
        height: 28px;

        line-height: 28px;
    }

    .map-summary {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 0;

        margin:
            0
            10px
            10px;

        padding:
            10px
            8px;

        border-radius: 9px;
    }

    .map-summary strong,
    .map-summary span {
        min-width: 0;

        padding:
            0
            8px;

        text-align: center;
    }

    .map-summary strong {
        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 10px;
    }

    .map-summary span {
        display: flex;
        align-items: center;
        justify-content: center;

        border-left:
            1px solid
            var(--color-border);

        font-size: 8px;
        line-height: 1.3;
    }

    /* ---------------------------------------------------------
       PRIORITY MAP
    --------------------------------------------------------- */

    .priority-map-placeholder {
        grid-template-columns:
            minmax(0, 1fr)
            104px;

        gap: 8px;

        align-items: center;

        padding: 12px;
    }

    .priority-map-placeholder__map {
        min-height: 190px;

        border-radius: 10px;

        font-size: 26px;
    }

    .priority-legend {
        width: auto;
        min-width: 0;

        gap: 7px;

        padding:
            9px
            8px;

        border-radius: 8px;
    }

    .priority-legend div {
        gap: 6px;

        font-size: 8px;
    }

    .legend-color {
        width: 9px;
        height: 9px;
    }

    /* ---------------------------------------------------------
       INTEGRATIONS
    --------------------------------------------------------- */

    .integrations {
        margin-top: 12px;

        padding: 12px;

        border-radius: var(--mobile-card-radius);
    }

    .integrations__header {
        margin-bottom: 10px;
    }

    .integrations__header h2 {
        font-size: 14px;
    }

    .integrations__header p {
        font-size: 9px;
    }

    .integrations__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }

    .integration-card {
        column-gap: 7px;

        padding: 9px;

        border-radius: 8px;
    }

    .integration-card strong {
        font-size: 9px;
    }

    .integration-card small {
        font-size: 8px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .topbar {
        grid-template-columns: 1fr;
    }

    .topbar__status {
        width: fit-content;
    }

    .kpi-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .priority-map-placeholder {
        grid-template-columns: 1fr;
    }

    .priority-legend {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        width: 100%;
    }

    .priority-legend div {
        justify-content: center;
    }

    .map-summary {
        grid-template-columns: 1fr;
    }

    .map-summary strong,
    .map-summary span {
        padding: 5px 4px;
    }

    .map-summary span {
        border-left: 0;

        border-top:
            1px solid
            var(--color-border);
    }
    }
