/* Extracted from dashboard.html during production code-structure cleanup. */
.dashboard-shell {
    --bg: #f7f4ef;
    --surface: #ffffff;
    --surface-soft: #f2ede4;
    --line: #ddd5c8;
    --text: #203328;
    --muted: #5e6f67;
    --green: #1a4a3a;
    --green-soft: #e3efe8;
    --female: #c4614a;
    --male: #3a5f8a;
    --amber: #d4831a;
    --shadow: 0 10px 28px rgba(26, 74, 58, 0.08);
    --radius: 12px;
    --nav-height: var(--header-height);
    --sidebar-width: 280px;

    min-height: calc(100vh - var(--header-height));
    background: var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", sans-serif;
    line-height: 1.5;
}

.dashboard-shell,
.dashboard-shell *,
.dashboard-shell *::before,
.dashboard-shell *::after {
    box-sizing: border-box;
}

.dashboard-shell button,
.dashboard-shell input,
.dashboard-shell select {
    font: inherit;
}

.dashboard-shell a {
    color: inherit;
    text-decoration: none;
}

.dashboard-shell img,
.dashboard-shell canvas {
    max-width: 100%;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.toolbar-btn {
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(26, 74, 58, 0.14);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.84);
    color: var(--green);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(26, 74, 58, 0.08);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.toolbar-btn:hover,
.toolbar-btn:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(26, 74, 58, 0.28);
}

.toolbar-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 94, 182, 0.3);
}

.portal-actions .dashboard-refresh-status {
    min-width: 7rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: right;
}

.portal-actions .dashboard-refresh-status[data-refresh-tone="error"] {
    color: #9f4d13;
}

.portal-actions .dashboard-refresh-status[data-refresh-tone="loading"] {
    color: var(--green);
}

.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 0;
}

.sidebar {
    position: sticky;
    top: var(--nav-height);
    align-self: start;
    height: calc(100vh - var(--nav-height));
    padding: 1.2rem 1rem 1.4rem;
    border-right: 1px solid rgba(26, 74, 58, 0.08);
    background: linear-gradient(180deg, #f4efe6 0%, #f7f4ef 100%);
    overflow: auto;
}

.sidebar-header h2,
.hero-copy h1 {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    line-height: 1.02;
}

.sidebar-header h2 {
    font-size: 1.65rem;
    color: var(--green);
}

.sidebar-header p {
    margin: 0.6rem 0 1.1rem;
    color: var(--muted);
    line-height: 1.55;
}

.sector-list {
    display: grid;
    gap: 0.65rem;
}

.sector-item {
    width: 100%;
    padding: 0.9rem 0.9rem 0.95rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sector-item:hover,
.sector-item:focus-visible,
.sector-item.is-active {
    transform: translateY(-1px);
    border-color: rgba(26, 74, 58, 0.18);
    box-shadow: var(--shadow);
    outline: none;
}

.sector-item.is-active {
    background: var(--surface);
}

.sector-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    font-size: 1.1rem;
}

.sector-meta strong,
.mobile-tab strong {
    display: block;
    font-weight: 700;
}

.sector-meta span,
.mobile-tab span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.sector-count {
    min-width: 2.2rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(26, 74, 58, 0.08);
    color: var(--green);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.content {
    padding: 1.35rem 1.4rem 6rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-banner,
.hero-sidecard,
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-banner {
    padding: 1.35rem 1.4rem 1.4rem;
    background:
        linear-gradient(135deg, rgba(26, 74, 58, 0.97) 0%, rgba(39, 94, 76, 0.95) 55%, rgba(212, 131, 26, 0.82) 100%);
    color: #fffdf9;
    overflow: hidden;
    position: relative;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: auto -6% -22% auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin-top: 0.85rem;
    font-size: clamp(2.2rem, 4vw, 3.65rem);
    max-width: 12ch;
}

.hero-copy p {
    max-width: 64ch;
    margin: 0.9rem 0 0;
    line-height: 1.7;
    color: rgba(255, 253, 249, 0.86);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.hero-tag {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-sidecard {
    padding: 1.2rem;
    display: grid;
    gap: 0.95rem;
}

.hero-sidecard h3,
.section-title,
.card-head h3 {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    color: var(--green);
}

.hero-sidecard h3 {
    font-size: 1.55rem;
}

.hero-sidecard p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

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

.snapshot-item {
    padding: 0.85rem;
    border-radius: 0.95rem;
    background: var(--surface-soft);
}

.snapshot-item small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.snapshot-item strong {
    display: block;
    margin-top: 0.4rem;
    color: var(--green);
    font-size: 1.4rem;
}

.section-block {
    margin-top: 1.1rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.section-title {
    font-size: 1.9rem;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 60ch;
}

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

.card {
    display: grid;
    min-height: 100%;
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.9rem;
}

.card-head h3 {
    font-size: 1.45rem;
}

.card-head p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.card-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.toggle-btn {
    border: 1px solid rgba(26, 74, 58, 0.12);
    border-radius: 999px;
    background: transparent;
    color: var(--green);
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-weight: 700;
}

.card-body {
    padding: 0 1rem 1rem;
    display: grid;
    gap: 0.95rem;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.kpi {
    padding: 0.85rem;
    border-radius: 0.95rem;
    background: var(--surface-soft);
}

.kpi span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kpi strong {
    display: block;
    margin-top: 0.32rem;
    font-size: 1.42rem;
    color: var(--green);
}

.kpi.female strong {
    color: var(--female);
}

.kpi.male strong {
    color: var(--male);
}

.kpi.gap strong {
    color: var(--amber);
}

.chart-wrap {
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fcfaf7;
}

.chart-wrap canvas {
    width: 100%;
    height: 320px;
}

.card-foot {
    display: grid;
    gap: 0.8rem;
}

.source-block {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: var(--green-soft);
    color: var(--green);
}

.source-block strong {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.source-block span {
    color: var(--muted);
}

.method-drawer {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fcfaf7;
    overflow: hidden;
}

.method-drawer summary {
    cursor: pointer;
    padding: 0.9rem 1rem;
    font-weight: 700;
    color: var(--green);
    list-style: none;
}

.method-drawer summary::-webkit-details-marker {
    display: none;
}

.method-drawer p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--muted);
    line-height: 1.65;
}

.card.is-collapsed .card-body {
    display: none;
}

.table-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
}

.table-tools input,
.table-tools select {
    min-height: 2.7rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fffdf9;
    color: var(--text);
    padding: 0 0.9rem;
}

.table-tools input {
    flex: 1 1 240px;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 1rem;
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fffdf9;
}

th,
td {
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid #ece4d8;
    text-align: left;
}

th {
    background: #f4eee4;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    color: var(--text);
    font-size: 0.9rem;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
}

.table-pagination button {
    min-width: 2.5rem;
    min-height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffdf9;
    color: var(--green);
    cursor: pointer;
    font-weight: 700;
}

.table-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.catalog-empty {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow);
}

.mobile-bottom-nav {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1160px) {
    .hero,
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 980px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding-bottom: 7.2rem;
    }

    .dashboard-toolbar {
        justify-content: flex-start;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 32;
        display: flex;
        gap: 0.55rem;
        padding: 0.75rem 0.85rem max(0.75rem, env(safe-area-inset-bottom));
        overflow-x: auto;
        background: rgba(247, 244, 239, 0.96);
        border-top: 1px solid rgba(26, 74, 58, 0.1);
        box-shadow: 0 -8px 22px rgba(26, 74, 58, 0.08);
    }

    .mobile-tab {
        min-width: 120px;
        padding: 0.75rem 0.85rem;
        border: 1px solid transparent;
        border-radius: 1rem;
        background: #fffdf9;
        color: var(--text);
        text-align: left;
        cursor: pointer;
        box-shadow: var(--shadow);
    }

    .mobile-tab.is-active {
        border-color: rgba(26, 74, 58, 0.18);
        background: var(--green-soft);
    }
}

@media (max-width: 760px) {
    .content {
        padding: 1rem 0.85rem 7.4rem;
    }

    .hero-banner,
    .hero-sidecard,
    .card {
        border-radius: 1rem;
    }

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

    .chart-wrap canvas {
        height: 280px;
    }
}

@media (max-width: 560px) {
    .hero-copy h1 {
        max-width: none;
        font-size: 2.35rem;
    }

    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 2026 dashboard design refresh: analytical, compact, simulation-aware. */
:root {
    --bg: #eef3f8;
    --surface: #ffffff;
    --surface-soft: #f6f9fc;
    --line: #d8e2ed;
    --text: #142d4c;
    --muted: #63758b;
    --green: #0f5e73;
    --green-soft: #e5f4f6;
    --female: #d66355;
    --male: #356da6;
    --amber: #bd7a1d;
    --shadow: 0 14px 34px rgba(16, 42, 72, 0.08);
    --radius: 8px;
    --nav-height: 72px;
    --sidebar-width: 182px;
}

.dashboard-shell {
    background:
        linear-gradient(180deg, #f7fbff 0%, #eef3f8 310px, #eef3f8 100%);
    font-family: "Source Sans 3", "Poppins", sans-serif;
}

.dashboard-shell ~ #djDebug,
#djDebug {
    display: none !important;
}

.app-layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    padding: 0;
    background: #fbfdff;
    border-right: 1px solid #dfe7f0;
    color: #263d58;
}

.sidebar-header {
    min-height: 3.75rem;
    padding: 0.7rem 0.35rem 0.7rem;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #e4ebf3;
}

.sidebar-header h2 {
    font-family: inherit;
    color: #31465f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.sidebar-header p {
    display: none;
}

.sector-list {
    gap: 0;
}

.sector-item {
    position: relative;
    min-height: 4.1rem;
    padding: 0 0.95rem 0 1.2rem;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    gap: 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2f4560;
    box-shadow: none;
    font-size: 0.78rem;
}

.sector-item:hover,
.sector-item:focus-visible,
.sector-item.is-active {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.sector-item:hover,
.sector-item:focus-visible {
    background: #f2f7fc;
}

.sector-item.is-active {
    border-radius: 0 7px 7px 0;
    background: linear-gradient(180deg, #0876df 0%, #0066cf 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 102, 207, 0.2);
}

.sector-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0;
    background: transparent;
    color: #64758a;
    font-size: 0;
}

.sector-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    stroke: currentColor;
}

.sector-item.is-active .sector-icon {
    color: #ffffff;
}

.sector-meta span {
    display: none;
}

.mobile-tab span {
    color: #71849a;
}

.sector-item.is-active .sector-meta span {
    color: rgba(255, 255, 255, 0.8);
}

.sector-meta strong {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.sector-count {
    display: none;
}

.content {
    padding: 1.1rem 1.35rem 4rem;
}

.dashboard-toolbar {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(16, 42, 72, 0.05);
}

.dashboard-toolbar::before {
    content: "Rwanda Gender Data Lab / public indicator dashboard";
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.toolbar-btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #ffffff;
    color: #0f5e73;
    box-shadow: none;
}

.hero {
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
    gap: 1rem;
}

.hero-banner,
.hero-sidecard,
.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-banner {
    min-height: 17rem;
    padding: 1.55rem;
    background:
        linear-gradient(135deg, rgba(15, 47, 83, 0.98) 0%, rgba(17, 78, 104, 0.96) 58%, rgba(36, 109, 166, 0.92) 100%);
}

.hero-banner::after {
    inset: auto 1.2rem 1rem auto;
    width: min(38%, 320px);
    height: 42%;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #aee8f0;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
}

.hero-copy h1 {
    max-width: 18ch;
    margin-top: 0.8rem;
    font-family: inherit;
    font-size: clamp(2.15rem, 3.6vw, 3.45rem);
    font-weight: 800;
    line-height: 1.02;
}

.hero-copy p {
    max-width: 72ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-tag,
.pill {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

.hero-sidecard {
    padding: 1rem;
    align-content: start;
}

.hero-sidecard h3,
.section-title,
.card-head h3 {
    font-family: inherit;
    color: var(--text);
    letter-spacing: 0;
}

.section-title {
    font-weight: 700;
}

.hero-sidecard h3,
.card-head h3 {
    font-weight: 600;
}

.hero-sidecard .eyebrow,
.card .pill {
    color: #0f5e73;
    background: var(--green-soft);
    border-color: #c6e6ec;
}

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

.snapshot-item,
.kpi {
    border-radius: 8px;
    background: var(--surface-soft);
    border: 1px solid #e2eaf2;
}

.snapshot-item strong,
.kpi strong {
    color: var(--text);
    font-weight: 800;
}

.section-heading {
    padding: 0.2rem 0.1rem;
}

.section-title {
    font-size: 1.45rem;
}

.catalog-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: start;
}

.card {
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.card-head {
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e8eef5;
}

.card-head h3 {
    margin-top: 0.55rem;
    font-size: 1.08rem;
    line-height: 1.28;
}

.card-head p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.48;
}

.card-body {
    padding: 1rem;
}

.kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.kpi {
    min-height: 5rem;
    padding: 0.7rem;
}

.kpi span,
.snapshot-item small,
th {
    letter-spacing: 0.04em;
}

.chart-wrap,
.method-drawer,
.table-wrap {
    border-radius: 8px;
    background: #fbfdff;
    border-color: #dce6f0;
}

.chart-wrap canvas {
    height: 300px;
}

.source-block {
    border-radius: 8px;
    background: #eef7fa;
}

.toggle-btn,
.table-tools input,
.table-tools select,
.table-pagination button {
    border-radius: 8px;
}

table {
    background: #ffffff;
}

th {
    background: #f2f7fb;
    color: #31506f;
}

td {
    color: #1d3554;
}

.mobile-bottom-nav {
    background: rgba(15, 47, 83, 0.96);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.mobile-tab {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    box-shadow: none;
}

.mobile-tab.is-active {
    border-color: #aee8f0;
    background: rgba(174, 232, 240, 0.16);
}

@media (max-width: 1160px) {
    .hero,
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .content,
    .dashboard-toolbar,
    .hero,
    .hero-banner,
    .hero-sidecard,
    .section-block {
        width: 100%;
        max-width: none;
    }

    .dashboard-toolbar::before {
        content: "Simulated public dashboard";
    }
}

@media (max-width: 760px) {
    .dashboard-toolbar {
        align-items: center;
    }

    .hero-banner {
        min-height: auto;
    }

    .hero-banner::after {
        display: none;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

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

    .chart-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .chart-filter-group,
    .chart-more-filters,
    .chart-active-chip,
    .chart-filter-reset {
        flex: 0 0 auto;
    }

    .chart-filter-select {
        max-width: 124px;
    }
}

/* Production government data portal redesign */
:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f7fafd;
    --line: #d8e2ee;
    --line-strong: #c7d5e5;
    --text: #0d2340;
    --muted: #5d6f86;
    --green: #005e7a;
    --green-soft: #e6f4f7;
    --female: #e45f56;
    --male: #2468b8;
    --amber: #bd790f;
    --portal-blue: #005bbb;
    --portal-blue-dark: #003f88;
    --shadow: 0 10px 24px rgba(13, 35, 64, 0.06);
    --radius: 8px;
    --sidebar-width: 182px;
    --sidebar-collapsed-width: 64px;
    --active-sidebar-width: var(--sidebar-width);
}

.dashboard-shell,
.dashboard-shell * {
    letter-spacing: 0;
}

.dashboard-shell [hidden] {
    display: none !important;
}

.dashboard-shell {
    min-height: calc(100vh - var(--header-height));
    background: var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", "Poppins", sans-serif;
    overflow-x: hidden;
}

.dashboard-shell.is-sidebar-collapsed {
    --active-sidebar-width: var(--sidebar-collapsed-width);
}

.dashboard-shell ~ #djDebug,
#djDebug {
    display: none !important;
}

.app-layout {
    display: block;
    grid-template-columns: var(--active-sidebar-width) minmax(0, 1fr);
    padding-left: var(--active-sidebar-width);
    min-width: 0;
    overflow-x: hidden;
    transition: padding-left 0.18s ease;
}

.sidebar {
    position: fixed;
    left: 0;
    z-index: 22;
    top: var(--header-height);
    width: var(--active-sidebar-width);
    height: calc(100vh - var(--header-height));
    padding: 0;
    background: #fbfdff;
    border-right: 1px solid #dfe7f0;
    overflow: auto;
    transition: width 0.18s ease;
}

.sidebar-header {
    min-height: 60px;
    padding: 10px 8px 10px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-bottom: 1px solid #e4ebf3;
}

.sidebar-header h2 {
    margin: 0;
    color: #31465f;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #c9d8e8;
    border-radius: 8px;
    background: #ffffff;
    color: #17385f;
    cursor: pointer;
}

.sidebar-toggle svg {
    width: 17px;
    height: 17px;
    transition: transform 0.18s ease;
}

.sidebar-header p,
.sector-count,
.sector-meta span {
    display: none;
}

.sector-list {
    display: grid;
    gap: 0;
}

.sector-item {
    min-height: 64px;
    width: 100%;
    padding: 0 14px 0 20px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #263d58;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.dashboard-shell.is-sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 10px 6px;
}

.dashboard-shell.is-sidebar-collapsed .sidebar-header h2 {
    display: none;
}

.dashboard-shell.is-sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.dashboard-shell.is-sidebar-collapsed .sector-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 0;
}

.dashboard-shell.is-sidebar-collapsed .sector-meta {
    display: none;
}

.sector-item:hover,
.sector-item:focus-visible {
    background: #eef5fc;
    outline: none;
}

.sector-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 94, 182, 0.3);
}

.sector-item.is-active {
    background: linear-gradient(180deg, #0876df 0%, #0066cf 100%);
    color: #ffffff;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
}

.sector-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #64758a;
    font-size: 0;
}

.sector-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
}

.sector-item.is-active .sector-icon {
    color: #ffffff;
}

.sector-meta strong {
    display: block;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.15;
}

.content {
    padding: 14px 20px 28px;
    min-width: 0;
    overflow-x: hidden;
}

.portal-command {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 118px 145px 142px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.portal-search,
.portal-field select {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.92rem;
    box-shadow: 0 1px 0 rgba(13, 35, 64, 0.03);
}

.portal-search {
    padding: 0 14px 0 42px;
}

.portal-search-wrap {
    position: relative;
}

.portal-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: #64758a;
    transform: translateY(-50%);
    pointer-events: none;
}

.portal-field label {
    display: block;
    margin-bottom: 5px;
    color: #4d6077;
    font-size: 0.74rem;
    font-weight: 700;
}

.portal-field select {
    padding: 0 12px;
}

.portal-field select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 94, 182, 0.25);
}

.portal-actions {
    display: flex;
    gap: 8px;
}

.toolbar-btn {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: #004f9f;
    box-shadow: none;
}

.dashboard-toolbar {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dashboard-toolbar::before {
    content: none;
}

.portal-header {
    margin-bottom: 10px;
}

.portal-title {
    margin: 0;
    color: var(--text);
    font-family: inherit;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
}

.portal-subtitle {
    max-width: 82ch;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 12px 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    overflow: hidden;
}

.trust-item {
    min-height: 48px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid var(--line);
    color: #17385f;
    font-size: 0.9rem;
    font-weight: 700;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item svg,
.rules-item svg,
.card-meta svg {
    width: 18px;
    height: 18px;
    color: #005bbb;
    flex: 0 0 auto;
}

.evidence-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.portal-panel,
.rules-panel,
.card,
.empty-state-card,
.add-indicator-card,
.mobile-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.portal-panel {
    overflow: hidden;
}

.panel-head,
.card-head {
    padding: 16px;
    border-bottom: 1px solid #e8eef5;
}

.panel-title-row,
.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.panel-head h2,
.card-head h3 {
    margin: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 1.12rem;
    line-height: 1.25;
}

.panel-head h2 {
    font-weight: 700;
}

.card-head h3 {
    font-size: 1rem;
    font-weight: 600;
}

.panel-head p,
.card-head p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.code-chip,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #b9d9ff;
    border-radius: 6px;
    background: #eef6ff;
    color: #0055b8;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: none;
}

.panel-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: #54677e;
    font-size: 0.76rem;
    font-weight: 600;
}

.card-meta span,
.panel-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-body {
    padding: 10px 16px 12px;
}

.unit-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.unit-toggle button {
    min-width: 54px;
    min-height: 34px;
    border: 0;
    background: #ffffff;
    color: #31506f;
    cursor: pointer;
    font-weight: 700;
}

.unit-toggle button.is-active {
    background: #005bbb;
    color: #ffffff;
}

.featured-chart {
    height: 280px;
    margin-top: 8px;
}

.featured-chart canvas {
    width: 100%;
    height: 100%;
}

.rules-panel {
    overflow: hidden;
}

.rules-head {
    min-height: 54px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.rules-head h2 {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 800;
}

.rules-list {
    display: grid;
    padding: 0 16px;
}

.rules-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed #d5dfeb;
}

.rules-item:last-child {
    border-bottom: 0;
}

.rules-item strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.2;
}

.rules-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.card {
    display: grid;
    overflow: hidden;
}

.card-body {
    padding: 14px 16px 16px;
    display: grid;
    gap: 12px;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.kpi {
    min-height: 60px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.kpi span {
    display: block;
    color: #687b92;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.kpi strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.kpi.female strong {
    color: var(--female);
}

.kpi.male strong {
    color: var(--male);
}

.kpi.gap strong {
    color: var(--amber);
}

.chart-wrap {
    height: 260px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.chart-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 8px;
}

.chart-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chart-filter-label {
    color: #50647b;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.chart-filter-select,
.chart-filter-reset,
.chart-more-filters summary {
    min-height: 32px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: #17385f;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.chart-filter-select {
    max-width: 138px;
    padding: 0 26px 0 9px;
}

.chart-filter-reset {
    width: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #005bbb;
    cursor: pointer;
}

.chart-filter-reset svg {
    width: 15px;
    height: 15px;
}

.chart-more-filters {
    position: relative;
}

.chart-more-filters summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    cursor: pointer;
    list-style: none;
}

.chart-more-filters summary::-webkit-details-marker {
    display: none;
}

.chart-more-menu {
    position: absolute;
    right: 0;
    z-index: 8;
    width: min(260px, 78vw);
    margin-top: 6px;
    padding: 10px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(13, 35, 64, 0.13);
}

.chart-active-chip {
    min-height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #b9d9ff;
    border-radius: 999px;
    background: #eef6ff;
    color: #0055b8;
    font-size: 0.68rem;
    font-weight: 800;
}

/* chart-empty-state consolidated in 06.css — kept for legacy fallback */
.chart-empty-state {
    min-height: 220px;
}

.featured-filter-host .chart-filter-bar {
    margin-bottom: 6px;
}

.chart-wrap canvas {
    width: 100%;
    height: 100%;
}

.table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.table-tools input,
.table-tools select {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 0 10px;
    font-size: 0.86rem;
}

.table-tools input {
    flex: 1 1 180px;
    max-width: 260px;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8eef5;
    text-align: left;
    font-size: 0.84rem;
}

th {
    background: #f3f7fb;
    color: #38516d;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--muted);
    font-size: 0.84rem;
}

.table-pagination button,
.toggle-btn,
.empty-state-card button,
.add-indicator-card button {
    min-height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: #00518f;
    cursor: pointer;
    font-weight: 800;
}

.toggle-btn {
    padding: 0 12px;
}

.method-drawer {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    overflow: hidden;
}

.method-drawer summary {
    padding: 11px 12px;
    color: #17385f;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.method-drawer summary::-webkit-details-marker {
    display: none;
}

.method-drawer p {
    margin: 0;
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.source-block {
    display: none;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.card.is-collapsed .card-body {
    display: none;
}

.portal-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    gap: 18px;
    align-items: start;
    margin-top: 14px;
}

.empty-state-card,
.add-indicator-card {
    min-height: 88px;
    padding: 18px;
    display: grid;
    align-items: center;
}

.empty-state-card {
    grid-template-columns: 54px 1fr auto;
    gap: 16px;
    border-style: dashed;
    box-shadow: none;
}

.empty-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf3ff;
    color: #005bbb;
}

.empty-state-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.empty-state-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.add-indicator-card {
    justify-items: center;
    border-style: dashed;
    box-shadow: none;
}

.add-indicator-card button {
    padding: 0 20px;
    color: #005bbb;
}

.mobile-preview {
    padding: 12px;
}

.mobile-preview h3 {
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 800;
}

.phone-frame {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.phone-top {
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #005bbb;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
}

.phone-body {
    padding: 10px;
}

.phone-card {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
}

.phone-card small {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.phone-card strong {
    display: block;
    margin-top: 5px;
    font-size: 1.15rem;
}

.phone-table {
    width: 100%;
    min-width: 0;
}

.phone-table th,
.phone-table td {
    padding: 6px;
    font-size: 0.65rem;
}

.phone-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.phone-tabs span {
    padding: 8px 3px;
    text-align: center;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
}

.phone-tabs .is-active {
    color: #005bbb;
}

.simulation-footnote {
    margin: 28px -20px 0;
    min-height: 40px;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    background: #f8fbff;
    color: #4c6078;
    font-size: 0.82rem;
}

.dashboard-footer {
    position: static;
    margin: 0 -20px -28px calc(-20px - var(--active-sidebar-width));
    overflow: hidden;
    border-radius: 0;
    background: #214b8f;
    color: #ffffff;
}

.dashboard-footer-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(24px, 4vw, 64px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px clamp(24px, 5vw, 72px) 28px;
}

.dashboard-footer-main h4 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.82rem, 0.95vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.dashboard-footer-main a {
    display: block;
    margin-bottom: 0;
    padding: 12px 0;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.92rem, 1.05vw, 1.08rem);
    font-weight: 400;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 2px;
}

.dashboard-footer-main a:last-child {
    margin-bottom: 0;
}

.dashboard-footer-main a:hover,
.dashboard-footer-main a:focus-visible {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.dashboard-copyright {
    border-top: 1px solid rgba(151, 181, 217, 0.58);
    padding: 14px 16px;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    font-weight: 500;
    text-align: center;
}

.catalog-empty {
    padding: 22px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
}

.mobile-bottom-nav {
    display: none;
}

/* .visually-hidden is defined once in public-dashboard-01.css (shared utility). */

@media (max-width: 1240px) {
    .evidence-layout,
    .portal-lower {
        grid-template-columns: 1fr;
    }

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

    .mobile-preview {
        max-width: 360px;
    }
}

@media (max-width: 980px) {
    .app-layout {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 12px 14px 112px;
    }

    .portal-command {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .portal-search-wrap {
        grid-column: 1 / -1;
    }

    .portal-actions {
        grid-column: 1 / -1;
    }

    .trust-strip,
    .kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-footer {
        margin: 22px -14px 0;
        border-radius: 0;
    }

    .dashboard-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 24px;
        padding: 28px 18px 26px;
    }

    .dashboard-footer-main div:last-child {
        grid-column: 1 / -1;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: flex;
        gap: 8px;
        padding: 10px 14px max(10px, env(safe-area-inset-bottom));
        overflow-x: auto;
        background: rgba(0, 48, 88, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .mobile-tab {
        min-width: 118px;
        min-height: 58px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        text-align: left;
    }

    .mobile-tab span {
        display: block;
        margin-top: 2px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.74rem;
    }

    .mobile-tab strong {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-tab.is-active {
        border-color: #9bd3ff;
        background: rgba(0, 91, 187, 0.9);
    }
}

@media (max-width: 640px) {
    .portal-command {
        grid-template-columns: 1fr;
    }

    .portal-field,
    .portal-actions,
    .portal-search-wrap {
        grid-column: auto;
    }

    .trust-strip,
    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .featured-chart {
        height: 260px;
    }

    .empty-state-card {
        grid-template-columns: 1fr;
    }

    .simulation-footnote {
        display: none;
    }

    .dashboard-footer-main {
        grid-template-columns: 1fr;
    }

    .dashboard-footer-main div:last-child {
        grid-column: auto;
    }
}

/* Existing dashboard stylesheet. */
.public-dashboard {
    --dashboard-bg: #edf2f8;
    --dashboard-bg-strong: #fbfdff;
    --dashboard-surface: #ffffff;
    --dashboard-surface-soft: #f7faff;
    --dashboard-border: #d7e2f2;
    --dashboard-border-strong: #bdd0ea;
    --dashboard-text: #18365f;
    --dashboard-text-soft: #5f7596;
    --dashboard-accent: #1f5eb6;
    --dashboard-accent-strong: #173f78;
    --dashboard-accent-soft: rgba(31, 94, 182, 0.1);
    --dashboard-success: #237758;
    --dashboard-danger: #a04a43;
    --dashboard-shadow-lg: 0 18px 38px rgba(15, 41, 79, 0.08);
    --dashboard-shadow-md: 0 8px 20px rgba(15, 41, 79, 0.06);
    --dashboard-shadow-sm: 0 4px 12px rgba(15, 41, 79, 0.04);
    min-height: calc(100vh - var(--header-height));
    background:
        radial-gradient(circle at 8% 0%, rgba(31, 94, 182, 0.08) 0%, transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(0, 145, 234, 0.07) 0%, transparent 30%),
        var(--dashboard-bg);
    color: var(--dashboard-text);
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.public-dashboard *,
.public-dashboard *::before,
.public-dashboard *::after {
    box-sizing: border-box;
}

.public-dashboard [hidden] {
    display: none !important;
}

.dashboard-shell {
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
}

.dashboard-hero {
    padding: 34px 0 20px;
}

.dashboard-hero__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 24px;
    align-items: stretch;
}

.dashboard-hero__copy {
    padding: 14px 0;
}

.dashboard-kicker {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--dashboard-accent);
    text-transform: uppercase;
}

.dashboard-hero__title {
    margin: 20px 0 0;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #14396f;
}

.dashboard-hero__description {
    margin: 18px 0 0;
    max-width: 65ch;
    color: var(--dashboard-text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.dashboard-hero__description code {
    color: var(--dashboard-accent-strong);
    background: rgba(31, 94, 182, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 0.45rem;
}

.dashboard-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-chip,
.dashboard-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-chip--ghost {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 94, 182, 0.12);
    color: var(--dashboard-accent-strong);
}

.dashboard-badge {
    background: var(--dashboard-accent-soft);
    color: var(--dashboard-accent-strong);
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-btn:hover,
.dashboard-btn:focus-visible {
    transform: translateY(-1px);
}

.dashboard-btn:focus-visible {
    outline: 2px solid rgba(31, 94, 182, 0.22);
    outline-offset: 2px;
}

.dashboard-btn--primary {
    background: linear-gradient(180deg, #2d6bc3 0%, #1f5eb6 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(22, 61, 120, 0.18);
}

.dashboard-btn--secondary {
    background: #ffffff;
    border-color: var(--dashboard-border);
    color: var(--dashboard-accent-strong);
    box-shadow: var(--dashboard-shadow-sm);
}

.dashboard-btn--full {
    width: 100%;
}

.dashboard-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--dashboard-border);
    border-radius: 22px;
    box-shadow: var(--dashboard-shadow-md);
    overflow: hidden;
}

.dashboard-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 0;
}

.dashboard-card__eyebrow {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--dashboard-accent);
    text-transform: uppercase;
}

.dashboard-card__title {
    margin: 0;
    color: var(--dashboard-text);
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.dashboard-card__header-meta {
    color: var(--dashboard-text-soft);
    font-size: 0.84rem;
    line-height: 1.5;
    text-align: right;
}

.dashboard-intelligence {
    display: grid;
    align-content: start;
    padding-bottom: 24px;
}

.dashboard-intelligence__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 24px 0;
}

.dashboard-intelligence__item {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbfe 0%, #f2f7fc 100%);
    border: 1px solid rgba(188, 205, 226, 0.72);
}

.dashboard-intelligence__label {
    color: var(--dashboard-text-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-intelligence__value {
    margin-top: 8px;
    color: #12366c;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.dashboard-intelligence__note {
    margin-top: 8px;
    color: var(--dashboard-text-soft);
    font-size: 0.82rem;
    line-height: 1.6;
}

.dashboard-intelligence__scope {
    margin: 18px 24px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f3f8fd;
    border: 1px solid var(--dashboard-border);
    color: var(--dashboard-text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
}

.dashboard-intelligence__scope strong {
    color: var(--dashboard-text);
}

.dashboard-sector-band {
    padding-bottom: 18px;
}

.dashboard-sector-ribbon {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-sector-ribbon__item {
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 14px;
    text-align: left;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-sector-ribbon__item:hover,
.dashboard-sector-ribbon__item:focus-visible,
.dashboard-sector-ribbon__item.is-active {
    border-color: var(--dashboard-accent);
    background: #eef5ff;
    box-shadow: var(--dashboard-shadow-sm);
    transform: translateY(-1px);
}

.dashboard-sector-ribbon__item:focus-visible {
    outline: 2px solid rgba(31, 94, 182, 0.18);
    outline-offset: 2px;
}

.dashboard-sector-ribbon__item strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.45;
}

.dashboard-sector-ribbon__item span {
    display: block;
    margin-top: 8px;
    color: var(--dashboard-text-soft);
    font-size: 0.78rem;
}

.dashboard-main {
    padding: 0 0 40px;
}

.dashboard-main__shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-rail {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding-bottom: 24px;
}

.dashboard-filter-group {
    display: grid;
    gap: 12px;
    padding: 0 24px;
    margin-top: 18px;
}

.dashboard-field-label {
    color: var(--dashboard-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-input,
.dashboard-select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--dashboard-border);
    background: #fbfdff;
    color: var(--dashboard-text);
    font-family: inherit;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.dashboard-input:focus-visible,
.dashboard-select:focus-visible {
    outline: none;
    border-color: var(--dashboard-accent);
    box-shadow: 0 0 0 4px rgba(31, 94, 182, 0.14);
    background: #ffffff;
}

.dashboard-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-chip-filter {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--dashboard-border-strong);
    background: #ffffff;
    color: var(--dashboard-accent-strong);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.dashboard-chip-filter:hover,
.dashboard-chip-filter:focus-visible,
.dashboard-chip-filter.is-active {
    transform: translateY(-1px);
    border-color: var(--dashboard-accent);
    background: rgba(31, 94, 182, 0.08);
    box-shadow: var(--dashboard-shadow-sm);
}

.dashboard-chip-filter:focus-visible {
    outline: 2px solid rgba(31, 94, 182, 0.18);
    outline-offset: 2px;
}

.dashboard-color-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.dashboard-rail__actions {
    display: grid;
    gap: 10px;
    padding: 0 24px;
    margin-top: 22px;
}

.dashboard-rail__summary {
    margin: 18px 24px 0;
    padding: 15px 16px;
    border-radius: 16px;
    background: #f3f8fd;
    border: 1px solid var(--dashboard-border);
    color: var(--dashboard-text-soft);
    font-size: 0.89rem;
    line-height: 1.7;
}

.dashboard-workspace {
    display: grid;
    gap: 24px;
}

.dashboard-grid {
    display: grid;
    gap: 24px;
}

.dashboard-grid--lead {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

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

.dashboard-card--feature,
.dashboard-card--spotlight,
.dashboard-library,
.dashboard-grid--secondary .dashboard-card {
    padding-bottom: 24px;
}

.dashboard-feature__chart {
    padding: 18px 24px 0;
}

.dashboard-feature__chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-axis {
    stroke: rgba(23, 63, 120, 0.12);
    stroke-width: 1;
}

.dashboard-gridline {
    stroke: rgba(23, 63, 120, 0.08);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.dashboard-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-line-point {
    stroke: #ffffff;
    stroke-width: 2;
}

.dashboard-bar-svg__bar {
    fill: #4f91de;
}

.dashboard-bar-svg__label,
.dashboard-chart-label {
    fill: var(--dashboard-text-soft);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

.dashboard-bar-svg__value {
    fill: var(--dashboard-text);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-feature__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 24px 0;
}

.dashboard-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--dashboard-surface-soft);
    color: var(--dashboard-accent-strong);
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dashboard-spotlight__summary {
    margin: 18px 24px 0;
    color: var(--dashboard-text-soft);
    font-size: 0.95rem;
    line-height: 1.8;
}

.dashboard-spotlight__metrics {
    display: grid;
    gap: 12px;
    padding: 20px 24px 0;
}

.dashboard-spotlight__metric {
    padding: 16px;
    border-radius: 16px;
    background: var(--dashboard-surface-soft);
    border: 1px solid rgba(188, 205, 226, 0.6);
}

.dashboard-spotlight__metric-label {
    color: var(--dashboard-text-soft);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-spotlight__metric-value {
    margin-top: 8px;
    color: var(--dashboard-text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.dashboard-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 24px 0;
}

.dashboard-sector-card {
    text-align: left;
    background: var(--dashboard-surface-soft);
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    padding: 18px;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-sector-card:hover,
.dashboard-sector-card:focus-visible,
.dashboard-sector-card.is-active {
    transform: translateY(-2px);
    border-color: var(--dashboard-accent);
    background: #eef5ff;
    box-shadow: var(--dashboard-shadow-sm);
}

.dashboard-sector-card:focus-visible {
    outline: 2px solid rgba(31, 94, 182, 0.18);
    outline-offset: 2px;
}

.dashboard-sector-card__tag {
    display: inline-block;
    width: 16px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.dashboard-sector-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.dashboard-sector-card p {
    margin: 10px 0 0;
    color: var(--dashboard-text-soft);
    font-size: 0.86rem;
    line-height: 1.65;
}

.dashboard-sector-card__stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--dashboard-border);
}

.dashboard-sector-card__stat strong {
    display: block;
    color: var(--dashboard-text);
    font-size: 0.96rem;
}

.dashboard-sector-card__stat span {
    display: block;
    margin-top: 4px;
    color: var(--dashboard-text-soft);
    font-size: 0.76rem;
}

.dashboard-bars,
.dashboard-survey-stack {
    display: grid;
    gap: 12px;
    padding: 18px 24px 0;
}

.dashboard-bar-row {
    display: grid;
    gap: 9px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid var(--dashboard-border);
}

.dashboard-bar-row__label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    color: var(--dashboard-text);
    font-size: 0.87rem;
    font-weight: 600;
}

.dashboard-bar-row__label small {
    color: var(--dashboard-text-soft);
    font-size: 0.75rem;
    font-weight: 500;
}

.dashboard-bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(31, 94, 182, 0.08);
    overflow: hidden;
}

.dashboard-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f5eb6 0%, #58a9ec 100%);
}

.dashboard-methodology {
    padding: 16px 24px 0;
    color: var(--dashboard-text-soft);
    font-size: 0.94rem;
    line-height: 1.82;
}

.dashboard-methodology ul {
    margin: 16px 0 0;
    padding-left: 18px;
}

.dashboard-methodology li + li {
    margin-top: 10px;
}

.dashboard-library__header {
    align-items: center;
}

.dashboard-library__meta {
    color: var(--dashboard-text-soft);
    font-size: 0.88rem;
}

.dashboard-library__states {
    padding: 18px 24px 0;
}

.dashboard-library__loading,
.dashboard-library__empty {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 180px;
    padding: 18px;
    border-radius: 18px;
    background: var(--dashboard-surface-soft);
    color: var(--dashboard-text-soft);
    text-align: center;
}

.dashboard-library__empty h3 {
    margin: 0;
    color: var(--dashboard-text);
    font-size: 1.08rem;
}

.dashboard-loader {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid rgba(31, 94, 182, 0.14);
    border-top-color: rgba(31, 94, 182, 0.82);
    animation: dashboard-spin 0.9s linear infinite;
}

.dashboard-library__table-wrap {
    margin: 18px 24px 0;
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    overflow: auto;
}

.dashboard-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    background: #ffffff;
}

.dashboard-table th,
.dashboard-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e3ebf8;
    text-align: left;
    vertical-align: top;
}

.dashboard-table th {
    position: sticky;
    top: 0;
    background: #f4f8fe;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #345789;
    z-index: 1;
}

.dashboard-table td {
    color: var(--dashboard-text);
    font-size: 0.92rem;
    line-height: 1.55;
}

.dashboard-table__indicator {
    display: grid;
    gap: 4px;
}

.dashboard-table__indicator strong {
    font-size: 0.92rem;
}

.dashboard-table__indicator span {
    color: var(--dashboard-text-soft);
    font-size: 0.79rem;
}

.dashboard-table__sector-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-top: 4px;
    width: fit-content;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
}

.dashboard-table__metric-positive {
    color: var(--dashboard-success);
    font-weight: 600;
}

.dashboard-table__metric-negative {
    color: var(--dashboard-danger);
    font-weight: 600;
}

.dashboard-library__pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px 0;
    color: var(--dashboard-text-soft);
    font-size: 0.88rem;
}

@keyframes dashboard-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1220px) {
    .dashboard-hero__shell,
    .dashboard-main__shell,
    .dashboard-grid--lead,
    .dashboard-grid--secondary {
        grid-template-columns: 1fr;
    }

    .dashboard-sector-ribbon {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-rail {
        position: static;
    }
}

@media (max-width: 860px) {
    .dashboard-shell {
        width: min(100% - 28px, 1360px);
    }

    .dashboard-hero {
        padding-top: 22px;
    }

    .dashboard-hero__title {
        max-width: none;
        font-size: clamp(2.15rem, 11vw, 3.3rem);
    }

    .dashboard-intelligence__grid,
    .dashboard-sector-ribbon,
    .dashboard-sector-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .dashboard-library__table-wrap {
        border-radius: 18px;
    }

    .dashboard-card__header,
    .dashboard-feature__chart,
    .dashboard-feature__legend,
    .dashboard-spotlight__metrics,
    .dashboard-bars,
    .dashboard-survey-stack,
    .dashboard-sector-grid,
    .dashboard-library__states,
    .dashboard-library__pagination,
    .dashboard-methodology,
    .dashboard-intelligence__grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dashboard-filter-group,
    .dashboard-rail__actions {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 640px) {
    .dashboard-shell {
        width: calc(100% - 20px);
    }

    .dashboard-hero__actions,
    .dashboard-library__pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-btn,
    .dashboard-library__pagination .dashboard-btn {
        width: 100%;
    }

    .dashboard-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-card__header-meta {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-btn,
    .dashboard-chip-filter,
    .dashboard-sector-card,
    .dashboard-sector-ribbon__item,
    .dashboard-loader {
        transition: none;
        animation: none;
    }
}

.dashboard-shell .portal-field select:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

/* .featured-chart sizing is owned by public-dashboard-07.css (loads after this
   file): 420px desktop / 320px mobile, canvas height:100%. The old 360px rules
   here were dead (superseded) and are removed to avoid a confusing cascade. */

.dashboard-shell .chart-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.7rem;
}

.dashboard-shell .chart-filter-group {
    display: grid;
    gap: 0.28rem;
    min-width: min(190px, 100%);
}

.dashboard-shell .chart-filter-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-shell .chart-filter-select {
    min-height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: #fffdf9;
    color: var(--text);
    padding: 0 0.75rem;
}

.dashboard-shell .chart-filter-reset,
.dashboard-shell .dashboard-card-select {
    min-height: 2.75rem;
    border: 1px solid rgba(15, 94, 115, 0.2);
    border-radius: 0.7rem;
    background: var(--green-soft);
    color: var(--green);
    padding: 0 0.85rem;
    cursor: pointer;
    font-weight: 700;
}

.dashboard-shell .chart-filter-reset:hover,
.dashboard-shell .chart-filter-reset:focus-visible,
.dashboard-shell .dashboard-card-select:hover,
.dashboard-shell .dashboard-card-select:focus-visible {
    border-color: rgba(15, 94, 115, 0.36);
    background: #ffffff;
    outline: none;
}

.dashboard-shell .chart-filter-reset:focus-visible,
.dashboard-shell .dashboard-card-select:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 94, 182, 0.25);
}

.dashboard-shell .chart-empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 0.9rem;
    background: #fcfaf7;
    color: var(--muted);
    text-align: center;
    padding: 1rem;
    font-weight: 700;
}

.dashboard-shell .dashboard-indicator-card {
    border: 1px solid transparent;
}

.dashboard-shell .dashboard-indicator-card.is-active {
    border-color: rgba(15, 94, 115, 0.34);
    box-shadow: 0 14px 32px rgba(15, 94, 115, 0.12);
}

.dashboard-shell .dashboard-card-metadata {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.dashboard-shell .dashboard-card-metadata__item {
    min-width: 0;
    padding: 0.7rem;
    border-radius: 0.75rem;
    background: var(--surface-soft);
}

.dashboard-shell .dashboard-card-metadata__item span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-shell .dashboard-card-metadata__item strong {
    display: block;
    margin-top: 0.25rem;
    overflow: hidden;
    color: var(--green);
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-shell .catalog-preview {
    height: 210px;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fcfaf7;
}

.dashboard-shell .catalog-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.dashboard-shell .dashboard-skeleton,
.dashboard-shell .dashboard-skeleton-card,
.dashboard-shell .dashboard-skeleton-card--catalog {
    position: relative;
    overflow: hidden;
    background: #edf2f6;
}

.dashboard-shell .dashboard-skeleton::after,
.dashboard-shell .dashboard-skeleton-card::after,
.dashboard-shell .dashboard-skeleton-card--catalog::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    animation: dashboard-shimmer 1.3s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-shell .dashboard-skeleton::after,
    .dashboard-shell .dashboard-skeleton-card::after,
    .dashboard-shell .dashboard-skeleton-card--catalog::after {
        animation: none;
    }
}

.dashboard-shell .dashboard-skeleton-card {
    min-height: 320px;
    padding: 1rem;
    border-radius: var(--radius);
}

.dashboard-shell .dashboard-skeleton-card--catalog {
    min-height: 280px;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--dashboard-line);
    background: #ffffff;
}

.dashboard-shell .dashboard-skeleton--title {
    width: 68%;
    height: 1.3rem;
    border-radius: 999px;
}

.dashboard-shell .dashboard-skeleton--chart {
    height: 220px;
    margin-top: 1.2rem;
    border-radius: 0.9rem;
}

.dashboard-shell .dashboard-skeleton--filters {
    width: 100%;
    height: 2.8rem;
    border-radius: 0.9rem;
}

.dashboard-shell .dashboard-skeleton--card-title {
    width: 72%;
    height: 1rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

.dashboard-shell .dashboard-skeleton--card-preview {
    height: 140px;
    border-radius: 8px;
    margin: 0.8rem 0;
}

.dashboard-shell .dashboard-skeleton--card-footer {
    height: 1.8rem;
    border-radius: 999px;
    width: 60%;
}

@keyframes dashboard-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 760px) {
    .dashboard-shell .dashboard-card-metadata {
        grid-template-columns: 1fr;
    }

    /* Mobile .featured-chart height is set in public-dashboard-07.css (320px);
       removed the conflicting 300px !important rule that fought it. */
}

/* Real-data dashboard polish pass. These rules intentionally load after the
   legacy inline dashboard CSS and are scoped to the dashboard shell. */
.dashboard-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    background: linear-gradient(180deg, #f7fbff 0%, #eef3f8 260px, #edf3f8 100%);
    --sidebar-width: 238px;
    --sidebar-collapsed-width: 72px;
    --active-sidebar-width: var(--sidebar-width);
    --portal-shadow-soft: 0 14px 34px rgba(13, 35, 64, 0.08);
    --portal-shadow-card: 0 8px 22px rgba(13, 35, 64, 0.06);
    --nisr-blue: #005bbb;
    --nisr-blue-dark: #003f88;
    --nisr-blue-soft: #eef6ff;
}

.dashboard-shell.is-sidebar-collapsed {
    --active-sidebar-width: var(--sidebar-collapsed-width);
}

.dashboard-shell .app-layout {
    display: block;
    padding-left: var(--active-sidebar-width);
    min-width: 0;
    transition: padding-left 0.18s ease;
}

.dashboard-shell .content {
    width: min(1440px, calc(100vw - var(--active-sidebar-width) - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 18px 16px 36px;
    overflow: visible;
}

.dashboard-shell .sidebar {
    width: var(--active-sidebar-width);
    padding: 12px 10px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-right: 1px solid #dbe5f0;
    box-shadow: 8px 0 24px rgba(13, 35, 64, 0.04);
    transition: width 0.18s ease, padding 0.18s ease;
}

.dashboard-shell .sidebar-header {
    min-height: auto;
    padding: 10px 8px 14px;
    border-bottom: 1px solid #e1e9f2;
}

.dashboard-shell .sidebar-header h2 {
    color: #17385f;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.dashboard-shell .sidebar-toggle {
    width: 36px;
    height: 36px;
    border-color: #d3e0ef;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(13, 35, 64, 0.06);
}

.dashboard-shell .sector-list {
    gap: 8px;
    padding-top: 12px;
}

.dashboard-shell .sector-item {
    min-height: 58px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #263d58;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dashboard-shell .sector-item:hover,
.dashboard-shell .sector-item:focus-visible {
    transform: translateY(-1px);
    border-color: #d8e6f5;
    background: #f0f7ff;
    box-shadow: 0 8px 18px rgba(13, 35, 64, 0.07);
}

.dashboard-shell .sector-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 94, 182, 0.3), 0 8px 18px rgba(13, 35, 64, 0.07);
}

.dashboard-shell .sector-item.is-active {
    background: linear-gradient(180deg, var(--nisr-blue) 0%, var(--nisr-blue-dark) 100%);
    color: #ffffff;
    border-color: rgba(0, 91, 187, 0.42);
    box-shadow: 0 12px 24px rgba(0, 91, 187, 0.22);
}

.dashboard-shell .sector-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--nisr-blue-soft);
    color: var(--nisr-blue);
    flex: 0 0 auto;
}

.dashboard-shell .sector-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.dashboard-shell .sector-item.is-active .sector-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.dashboard-shell .sector-meta strong {
    font-size: 0.9rem;
    line-height: 1.22;
}

.dashboard-shell .sector-meta span,
.dashboard-shell .sector-count {
    display: block;
}

.dashboard-shell .sector-meta span {
    margin-top: 3px;
    color: #6d7f92;
    font-size: 0.73rem;
    font-weight: 600;
}

.dashboard-shell .sector-item.is-active .sector-meta span {
    color: rgba(255, 255, 255, 0.76);
}

.dashboard-shell .sector-count {
    min-width: 30px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #edf5fc;
    color: var(--nisr-blue);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.dashboard-shell .sector-item.is-active .sector-count {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.dashboard-shell.is-sidebar-collapsed .sidebar {
    padding-left: 8px;
    padding-right: 8px;
}

.dashboard-shell.is-sidebar-collapsed .sector-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 0;
}

.dashboard-shell.is-sidebar-collapsed .sector-meta,
.dashboard-shell.is-sidebar-collapsed .sector-count,
.dashboard-shell.is-sidebar-collapsed .sidebar-header h2 {
    display: none;
}

.dashboard-shell .portal-command {
    grid-template-columns: minmax(340px, 1fr) minmax(130px, 0.22fr) minmax(150px, 0.24fr) minmax(160px, 0.28fr) auto;
    gap: 14px;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #dce7f1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--portal-shadow-card);
}

.dashboard-shell .portal-search,
.dashboard-shell .portal-field select,
.dashboard-shell .toolbar-btn {
    min-height: 44px;
    border-radius: 10px;
}

.dashboard-shell .portal-header {
    margin: 0 0 16px;
}

.dashboard-shell .portal-title {
    font-size: clamp(1.9rem, 2.2vw, 2.5rem);
    letter-spacing: 0;
}

.dashboard-shell .portal-subtitle {
    max-width: 96ch;
    font-size: 1rem;
}

.dashboard-shell .portal-panel,
.dashboard-shell .card,
.dashboard-shell .catalog-empty {
    border: 1px solid #dce7f1;
    border-radius: 14px;
    box-shadow: var(--portal-shadow-card);
}

.dashboard-shell .portal-panel {
    overflow: hidden;
    background: #ffffff;
}

.dashboard-shell .panel-head {
    padding: 20px 22px 14px;
    border-bottom: 1px solid #e7eef6;
}

.dashboard-shell .panel-title-row {
    align-items: flex-start;
}

.dashboard-shell .panel-head h2 {
    max-width: 980px;
    font-size: clamp(1.18rem, 1.45vw, 1.55rem);
    line-height: 1.25;
}

.dashboard-shell .code-chip,
.dashboard-shell .pill {
    border-color: #c8ddea;
    border-radius: 999px;
    background: var(--nisr-blue-soft);
    color: var(--nisr-blue-dark);
    white-space: nowrap;
}

.dashboard-shell .panel-meta {
    gap: 8px;
    margin-top: 12px;
}

.dashboard-shell .panel-meta span {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f5f8fb;
    color: #52677d;
}

.dashboard-shell .featured-body {
    padding: 16px 22px 22px;
}

.dashboard-shell .featured-filter-host .chart-filter-bar {
    justify-content: flex-end;
    align-items: end;
    gap: 10px;
    margin: 0 0 12px;
}

.dashboard-shell .chart-filter-group {
    min-width: 156px;
}

.dashboard-shell .chart-filter-label {
    margin-bottom: 4px;
}

.dashboard-shell .chart-filter-select {
    min-height: 44px;
    max-width: none;
    border-radius: 10px;
    background: #ffffff;
}

.dashboard-shell .chart-filter-select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 94, 182, 0.25);
}

.dashboard-shell .chart-filter-reset {
    width: auto;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
}

.dashboard-shell .featured-chart {
    height: 420px;
    min-height: 420px;
    margin-top: 0;
    padding: 12px;
    border: 1px solid #e2ebf4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.dashboard-shell .featured-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.dashboard-shell .special-panel-filter,
.dashboard-shell .gpi-panel-filter {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin: 0 0 12px;
}

.dashboard-shell .chart-filter-group--special,
.dashboard-shell .chart-filter-group--gpi {
    min-width: 240px;
}

.dashboard-shell .special-panel-select,
.dashboard-shell .gpi-dimension-select {
    min-width: 240px;
}

.dashboard-shell .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    margin-top: 18px;
}

.dashboard-shell .dashboard-indicator-card {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    border-color: #dce7f1;
    background: #ffffff;
    overflow: hidden;
}

.dashboard-shell .dashboard-indicator-card.is-active {
    border-color: rgba(0, 91, 187, 0.42);
    box-shadow: 0 16px 34px rgba(0, 91, 187, 0.14);
}

.dashboard-shell .dashboard-indicator-card .card-head {
    min-height: 146px;
    padding: 16px 16px 12px;
}

.dashboard-shell .dashboard-indicator-card .card-head > div {
    min-width: 0;
}

.dashboard-shell .dashboard-indicator-card .card-head h3 {
    display: -webkit-box;
    min-height: calc(1.28em * 3);
    margin-top: 10px;
    overflow: hidden;
    color: #17385f;
    font-size: 1.02rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dashboard-shell .dashboard-indicator-card .card-head p {
    display: -webkit-box;
    min-height: calc(1.35em * 2);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-shell .dashboard-indicator-card .card-body {
    grid-template-rows: minmax(238px, 1fr) auto;
    gap: 14px;
    padding: 14px 16px 16px;
}

.dashboard-shell .dashboard-card-metadata {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-shell .dashboard-card-metadata__item {
    min-height: 68px;
    padding: 10px;
    border: 1px solid #e2ebf4;
    border-radius: 10px;
    background: #f8fbff;
}

.dashboard-shell .dashboard-card-metadata__item strong {
    color: #17385f;
    font-size: 0.82rem;
}

.dashboard-shell .catalog-preview {
    height: 238px;
    padding: 10px;
    border-color: #e2ebf4;
    border-radius: 12px;
    background: #fbfdff;
}

.dashboard-shell .dashboard-card-select {
    width: 100%;
    min-height: 44px;
    align-self: end;
    border-radius: 10px;
    background: var(--nisr-blue);
    color: #ffffff;
}

.dashboard-shell .dashboard-card-select:hover,
.dashboard-shell .dashboard-card-select:focus-visible {
    background: var(--nisr-blue-dark);
    color: #ffffff;
}

/* chart-empty-state consolidated in 06.css */

@media (min-width: 1500px) {
    .dashboard-shell .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1260px) {
    .dashboard-shell .content {
        width: min(100%, calc(100vw - var(--active-sidebar-width) - 24px));
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-shell .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-shell .app-layout {
        padding-left: 0;
    }

    .dashboard-shell .content {
        width: min(100% - 20px, 960px);
        padding: 14px 0 86px;
    }

    .dashboard-shell .sidebar {
        display: none;
    }

    .dashboard-shell .portal-command {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-shell .portal-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .dashboard-shell .content {
        width: calc(100% - 20px);
    }

    .dashboard-shell .portal-command,
    .dashboard-shell .catalog-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-shell .featured-filter-host .chart-filter-bar {
        justify-content: stretch;
    }

    .dashboard-shell .chart-filter-group,
    .dashboard-shell .chart-filter-select,
    .dashboard-shell .chart-filter-reset {
        width: 100%;
    }

    .dashboard-shell .special-panel-filter,
    .dashboard-shell .gpi-panel-filter,
    .dashboard-shell .chart-filter-group--special,
    .dashboard-shell .chart-filter-group--gpi,
    .dashboard-shell .special-panel-select,
    .dashboard-shell .gpi-dimension-select {
        width: 100%;
        min-width: 0;
    }

    .dashboard-shell .featured-chart {
        height: 320px;
        min-height: 320px;
    }

    .dashboard-shell .dashboard-indicator-card .card-head {
        min-height: auto;
    }

    .dashboard-shell .dashboard-card-metadata {
        grid-template-columns: 1fr;
    }
}

/* Show more pagination button */
.catalog-show-more-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.catalog-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border: 1.5px solid var(--nisr-blue, #0f5e73);
    border-radius: 8px;
    background: transparent;
    color: var(--nisr-blue, #0f5e73);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.catalog-show-more-btn:hover,
.catalog-show-more-btn:focus-visible {
    background: var(--nisr-blue, #0f5e73);
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 94, 182, 0.3);
}

/* Dim disabled portal fields so they don't confuse users */
.portal-field.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
/* Final dashboard palette authority.
   Earlier modules keep layout ownership; this layer normalizes color tokens. */
.dashboard-shell {
    --dashboard-brand-navy: #2d51a1;
    --dashboard-brand-blue: #33a7df;
    --dashboard-brand-sky: #b2e6fa;
    --dashboard-male: #2d51a1;
    --dashboard-female: #f68d32;
    --dashboard-positive: #4ba847;
    --dashboard-highlight: #eee808;
    --dashboard-context: #383838;
    --dashboard-text: #383838;
    --dashboard-muted: #5e6672;
    --dashboard-line: #d9e3ea;
    --dashboard-line-strong: #b8c9d7;
    --dashboard-surface-soft: #f8fafc;
    --dashboard-blue-soft: #edf9fe;
    --dashboard-shadow: 0 12px 28px rgba(45, 81, 161, 0.08);

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: var(--dashboard-surface-soft);
    --line: var(--dashboard-line);
    --line-strong: var(--dashboard-line-strong);
    --text: var(--dashboard-text);
    --muted: var(--dashboard-muted);
    --green: var(--dashboard-brand-navy);
    --green-soft: var(--dashboard-blue-soft);
    --female: var(--dashboard-female);
    --male: var(--dashboard-male);
    --amber: var(--dashboard-highlight);
    --portal-blue: var(--dashboard-brand-blue);
    --portal-blue-dark: var(--dashboard-brand-navy);
    --nisr-blue: var(--dashboard-brand-blue);
    --nisr-blue-dark: var(--dashboard-brand-navy);
    --nisr-blue-soft: var(--dashboard-blue-soft);
    --shadow: var(--dashboard-shadow);
    --portal-shadow-card: var(--dashboard-shadow);

    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 280px, #f8fafc 100%);
    color: var(--dashboard-text);
}

.dashboard-shell .sidebar,
.dashboard-shell .portal-command,
.dashboard-shell .portal-panel,
.dashboard-shell .card,
.dashboard-shell .dashboard-indicator-card,
.dashboard-shell .featured-chart,
.dashboard-shell .catalog-preview {
    border-color: var(--dashboard-line);
    background: #ffffff;
}

.dashboard-shell .sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}

.dashboard-shell .portal-title,
.dashboard-shell .panel-head h2,
.dashboard-shell .card-head h3,
.dashboard-shell .dashboard-indicator-card .card-head h3,
.dashboard-shell .sidebar-header h2,
.dashboard-shell .sector-meta strong,
.dashboard-shell .method-drawer summary {
    color: var(--dashboard-brand-navy);
}

.dashboard-shell .portal-subtitle,
.dashboard-shell .panel-head p,
.dashboard-shell .card-head p,
.dashboard-shell .panel-meta,
.dashboard-shell .card-meta,
.dashboard-shell .chart-empty-state,
.dashboard-shell .method-drawer p {
    color: var(--dashboard-muted);
}

.dashboard-shell .sector-item {
    color: #263d58;
}

.dashboard-shell .sector-icon,
.dashboard-shell .portal-search-wrap svg,
.dashboard-shell .trust-item svg,
.dashboard-shell .rules-item svg,
.dashboard-shell .card-meta svg {
    color: var(--dashboard-brand-blue);
}

.dashboard-shell .sector-item:hover,
.dashboard-shell .sector-item:focus-visible,
.dashboard-shell .panel-meta span,
.dashboard-shell .dashboard-card-metadata__item,
.dashboard-shell .chart-empty-state,
.dashboard-shell .method-drawer,
.dashboard-shell th {
    background: var(--dashboard-surface-soft);
}

.dashboard-shell .sector-item.is-active,
.dashboard-shell .unit-toggle button.is-active,
.dashboard-shell .dashboard-card-select,
.dashboard-shell .phone-top {
    background: var(--dashboard-brand-navy);
    color: #ffffff;
}

/* The generic ".sector-meta strong" rule above paints the sector name brand
   navy; on the active card that's navy-on-navy and the name disappears. Flip
   the whole label stack to white when the card is selected. */
.dashboard-shell .sector-item.is-active .sector-meta strong {
    color: #ffffff;
}

.dashboard-shell .sector-item.is-active .sector-meta span {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-shell .sector-item.is-active .sector-icon,
.dashboard-shell .sector-item.is-active .sector-count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.dashboard-shell .dashboard-card-select:hover,
.dashboard-shell .dashboard-card-select:focus-visible {
    background: #243f7d;
}

.dashboard-shell .code-chip,
.dashboard-shell .pill,
.dashboard-shell .chart-active-chip,
.dashboard-shell .empty-icon {
    border-color: #bfdbfe;
    background: var(--dashboard-blue-soft);
    color: var(--dashboard-brand-navy);
}

.dashboard-shell .toolbar-btn,
.dashboard-shell .sidebar-toggle,
.dashboard-shell .table-pagination button,
.dashboard-shell .toggle-btn,
.dashboard-shell .empty-state-card button,
.dashboard-shell .add-indicator-card button {
    color: var(--dashboard-brand-navy);
}

.dashboard-shell .toolbar-btn:hover,
.dashboard-shell .toolbar-btn:focus-visible,
.dashboard-shell .portal-field select:focus-visible,
.dashboard-shell .chart-filter-select:focus-visible,
.dashboard-shell .sector-item:focus-visible {
    border-color: var(--dashboard-brand-blue);
    box-shadow: 0 0 0 3px rgba(51, 167, 223, 0.22);
}

.dashboard-shell .featured-chart,
.dashboard-shell .catalog-preview {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}

.dashboard-shell .dashboard-footer {
    background: var(--dashboard-brand-navy);
}

.dashboard-shell .dashboard-state-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    min-height: 100%;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid rgba(51, 167, 223, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(178, 230, 250, 0.42), rgba(255, 255, 255, 0.94) 54%),
        #ffffff;
    box-shadow: 0 14px 32px rgba(45, 81, 161, 0.08);
    color: var(--dashboard-text);
}

.dashboard-shell .featured-chart .dashboard-state-card {
    align-content: center;
}

.dashboard-shell .dashboard-state-card--catalog {
    grid-column: 1 / -1;
    min-height: 220px;
}

.dashboard-shell .dashboard-state-card--error {
    border-color: rgba(246, 141, 50, 0.34);
    background:
        linear-gradient(135deg, rgba(246, 141, 50, 0.08), rgba(255, 255, 255, 0.95) 58%),
        #ffffff;
}

.dashboard-shell .dashboard-state-card--route {
    border-color: rgba(45, 81, 161, 0.26);
}

.dashboard-shell .dashboard-state-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(51, 167, 223, 0.35);
    border-radius: 10px;
    background: var(--dashboard-blue-soft);
    color: var(--dashboard-brand-navy);
}

.dashboard-shell .dashboard-state-card--error .dashboard-state-icon {
    border-color: rgba(246, 141, 50, 0.36);
    background: rgba(246, 141, 50, 0.1);
    color: #b95d18;
}

.dashboard-shell .dashboard-state-card--loading .dashboard-state-icon svg {
    animation: dashboardStateSpin 1.1s linear infinite;
}

.dashboard-shell .dashboard-state-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-shell .dashboard-state-copy {
    max-width: 720px;
}

.dashboard-shell .dashboard-state-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--dashboard-brand-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.dashboard-shell .dashboard-state-copy strong {
    display: block;
    color: var(--dashboard-brand-navy);
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    font-weight: 800;
    line-height: 1.18;
}

.dashboard-shell .dashboard-state-copy p {
    margin-top: 8px;
    color: var(--dashboard-muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.dashboard-shell .dashboard-state-detail {
    max-width: 620px;
    padding: 10px 12px;
    border: 1px solid var(--dashboard-line);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.86);
    color: #526174;
    font-size: 0.84rem;
}

.dashboard-shell .dashboard-state-details {
    margin-top: 10px;
}

.dashboard-shell .dashboard-state-details summary {
    cursor: pointer;
    color: var(--dashboard-brand-navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-shell .dashboard-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.dashboard-shell .dashboard-state-action {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--dashboard-brand-navy);
    border-radius: 8px;
    background: var(--dashboard-brand-navy);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.dashboard-shell .dashboard-state-action--secondary {
    background: #ffffff;
    color: var(--dashboard-brand-navy);
}

.dashboard-shell .dashboard-state-action--secondary:hover,
.dashboard-shell .dashboard-state-action--secondary:focus-visible {
    background: var(--dashboard-blue-soft);
    border-color: var(--dashboard-brand-navy);
}

.dashboard-shell .dashboard-state-action:hover,
.dashboard-shell .dashboard-state-action:focus-visible {
    background: #243f7d;
    border-color: #243f7d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 167, 223, 0.22);
}

.dashboard-shell .dashboard-state-action--secondary:hover,
.dashboard-shell .dashboard-state-action--secondary:focus-visible {
    background: var(--dashboard-blue-soft);
    border-color: var(--dashboard-brand-blue);
}

/* Overlay pattern — preserves canvas behind branded state card */
.dashboard-shell .featured-chart {
    position: relative;
}

.dashboard-shell .featured-chart.is-loading,
.dashboard-shell .featured-chart.has-error,
.dashboard-shell .featured-chart.has-empty,
.dashboard-shell .featured-chart.has-route {
    min-height: 280px;
}

.dashboard-shell .dashboard-state-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,252,255,0.96) 100%);
    border-radius: 10px;
    z-index: 2;
}

.dashboard-shell .dashboard-state-overlay .dashboard-state-card {
    max-width: 720px;
    width: 100%;
}

.dashboard-shell .featured-chart.is-loading #featuredChart,
.dashboard-shell .featured-chart.has-error #featuredChart {
    opacity: 0.18;
    pointer-events: none;
}

.dashboard-shell .dashboard-side-empty {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(51, 167, 223, 0.28);
    border-radius: 10px;
    background: #ffffff;
    color: var(--dashboard-muted);
}

.dashboard-shell .dashboard-side-empty span {
    color: var(--dashboard-brand-blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-shell .dashboard-side-empty strong {
    color: var(--dashboard-brand-navy);
    font-size: 0.95rem;
}

.dashboard-shell .dashboard-side-empty p {
    color: var(--dashboard-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

@keyframes dashboardStateSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-shell .dashboard-state-card--loading .dashboard-state-icon svg {
        animation: none;
    }
}

@media (max-width: 640px) {
    .dashboard-shell .dashboard-state-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }

    .dashboard-shell .dashboard-state-icon {
        width: 42px;
        height: 42px;
    }
}

/* === CONSOLIDATED sector chrome — replaces 8 duplicate blocks (one per sector) === */
.dashboard-shell[class*="is-sector-"] .portal-command,
.dashboard-shell[class*="is-sector-"] .portal-header,
.dashboard-shell[class*="is-sector-"] .evidence-layout,
.dashboard-shell[class*="is-sector-"] .section-block,
.dashboard-shell.is-trade-business .portal-command,
.dashboard-shell.is-trade-business .portal-header,
.dashboard-shell.is-trade-business .evidence-layout,
.dashboard-shell.is-trade-business .section-block {
    display: none;
}

/* Fail Screen UI - Pure Vanilla CSS (matches attached HTML) */
.gdl-fail-screen {
  min-height: 100vh;
  width: 100%;
  background-color: #F6F8FF;
  color: #0A2540;
  overflow-x: hidden;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

.gdl-fail-screen * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.gdl-fail-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #D6E4FF;
}

.gdl-fail-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .gdl-fail-header-inner {
    padding: 0 40px;
  }
}

.gdl-fail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gdl-fail-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: #0B4FFF;
  display: inline-block;
}

.gdl-fail-brand-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #0A2540;
  text-transform: uppercase;
}

.gdl-fail-header-line {
  display: none;
  height: 1px;
  width: 64px;
  background-color: #EEF4FF;
}

@media (min-width: 768px) {
  .gdl-fail-header-line {
    display: block;
  }
}

.gdl-fail-main {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .gdl-fail-main {
    padding: 0 40px;
  }
}

.gdl-fail-hero {
  padding-top: 88px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .gdl-fail-hero {
    padding-top: 132px;
    padding-bottom: 72px;
  }
}

.gdl-fail-hero-wrap {
  max-width: 560px;
  width: 100%;
}

.gdl-fail-title {
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #0A2540;
}

@media (min-width: 768px) {
  .gdl-fail-title {
    font-size: 42px;
  }
}

.gdl-fail-title-block {
  display: block;
}

.gdl-fail-title-blue {
  display: block;
  color: #0B4FFF;
}

.gdl-fail-subtitle {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: rgba(10, 37, 64, 0.5);
  font-weight: 400;
}

@media (min-width: 768px) {
  .gdl-fail-subtitle {
    font-size: 13.5px;
  }
}

.gdl-fail-ticker-section {
  padding-bottom: 64px;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .gdl-fail-ticker-section {
    padding-bottom: 88px;
  }
}

.gdl-fail-ticker-box {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1120px;
  border-radius: 28px;
  background-color: #EEF4FF;
  border: 1px solid #D6E4FF;
  padding: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .gdl-fail-ticker-box {
    border-radius: 32px;
    padding: 12px;
  }
}

.gdl-fail-ticker-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

@media (min-width: 768px) {
  .gdl-fail-ticker-viewport {
    border-radius: 24px;
  }
}

.gdl-fail-ticker-track {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  width: max-content;
  animation: gdlInfiniteSlide 40s linear infinite;
}

@media (min-width: 768px) {
  .gdl-fail-ticker-track {
    gap: 16px;
  }
}

.gdl-fail-ticker-box:hover .gdl-fail-ticker-track {
  animation-play-state: paused;
}

@keyframes gdlInfiniteSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.gdl-fail-card-wrap {
  flex-shrink: 0;
  width: 212px;
  height: 132px;
  clip-path: polygon(0 0, 92% 0, 100% 18%, 100% 100%, 8% 100%, 0 82%);
  background-color: #B4CCFF;
  padding: 1px;
}

.gdl-fail-card-inner {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px 18px;
  clip-path: polygon(0 0, 92% 0, 100% 18%, 100% 100%, 8% 100%, 0 82%);
}

.gdl-fail-card-id {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(11, 79, 255, 0.5);
}

.gdl-fail-card-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #0A2540;
  text-transform: uppercase;
}

.gdl-fail-mask-left {
  pointer-events: none;
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 36px;
  background: linear-gradient(to right, #EEF4FF, transparent);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.gdl-fail-mask-right {
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 10px;
  bottom: 10px;
  width: 36px;
  background: linear-gradient(to left, #EEF4FF, transparent);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

@media (min-width: 768px) {
  .gdl-fail-mask-left,
  .gdl-fail-mask-right {
    width: 64px;
  }
}

.gdl-fail-action-section {
  padding-bottom: 96px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .gdl-fail-action-section {
    padding-bottom: 140px;
  }
}

.gdl-fail-retry-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 9999px;
  background-color: #0B4FFF;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 79, 255, 0.16), 0 8px 24px rgba(11, 79, 255, 0.12);
  transition: background-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.gdl-fail-retry-btn:hover {
  background-color: #0A44E6;
}

.gdl-fail-retry-btn:active {
  background-color: #093AD1;
}

.gdl-fail-retry-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.gdl-fail-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: gdlSpin 1s linear infinite;
  margin-right: 6px;
}

@keyframes gdlSpin {
  to { transform: rotate(360deg); }
}

.gdl-fail-footer-line {
  width: 100%;
  height: 1px;
  background-color: rgba(214, 228, 255, 0.6);
}

/* === CLEAN PROFESSIONAL CARD HEADER & FULL UNCOMPRESSED INDICATOR NAMES === */
.ec-panel-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.ec-panel-head::before {
  content: "" !important;
  display: block !important;
  width: 3.5px !important;
  height: 16px !important;
  border-radius: 2px !important;
  background: var(--ec-blue, #0B4FFF) !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.ec-card-title,
.ec5-card-title,
.catalog-card-title,
.portal-title,
.card-title,
.dashboard-shell .dashboard-indicator-card .card-head h3,
.dashboard-shell .dashboard-indicator-card .card-head p {
  display: block !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100% !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #0F172A !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
