@font-face {
    font-family: Lato;
    src: url("/assets/fonts/lato-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Lato;
    src: url("/assets/fonts/lato-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: Lato;
    src: url("/assets/fonts/lato-black.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
}
:root {
    --navy: #17212d;
    --turquoise: #34bed5;
    --teal: #0e6d7d;
    --ink: #243440;
    --muted: #526b77;
    --line: #dfe7e8;
    --canvas: #f3f6f5;
    --white: #fff;
    --soft: #eaf5f5;
    --danger: #aa3949;
    --radius: 12px;
    --shadow: 0 14px 42px #17212d0c;
    --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Lato, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button,
summary {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
button {
    color: inherit;
}
button:disabled {
    cursor: wait;
    opacity: 0.65;
}
button {
    border: 0;
    background: none;
}
a,
button,
input,
select,
textarea,
summary {
    outline-offset: 4px;
}
:focus-visible {
    outline: 3px solid var(--teal);
}
[hidden] {
    display: none !important;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1.2px;
    font-weight: 900;
    color: var(--navy);
}
h2 {
    font-size: 24px;
    letter-spacing: -0.6px;
    line-height: 1.3;
    color: var(--navy);
}
h3 {
    font-size: 16px;
    line-height: 1.4;
}
small {
    font-size: 11px;
}
.muted {
    color: var(--muted);
}
.accent {
    color: var(--teal);
}
.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    line-height: 1.5;
}
.icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    vertical-align: middle;
}
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 100;
    background: var(--white);
    padding: 12px;
}
.skip-link:focus {
    top: 12px;
}
.skip-link:not(:focus) {
    clip-path: inset(50%);
}
.drawer-modal-open {
    overflow: hidden;
}
.app-header {
    height: 86px;
    display: flex;
    align-items: center;
    padding: 0 34px;
    background: var(--navy);
    color: #d8e1e4;
    gap: 26px;
    position: relative;
    z-index: 25;
}
.brand {
    display: flex;
    align-items: center;
    min-width: 160px;
    align-self: stretch;
    padding: 16px 0;
}
.brand img {
    width: 160px;
    max-height: 54px;
}
.product-name {
    padding-left: 26px;
    border-left: 1px solid #ffffff25;
    font-size: 10px;
    letter-spacing: 2.2px;
    font-weight: 900;
    white-space: nowrap;
    color: #fff;
}
.product-name span {
    display: block;
    font-size: 8px;
    letter-spacing: 1.4px;
    color: #a2b3c0;
    margin-top: 4px;
    font-weight: 400;
}
.main-nav {
    display: flex;
    align-self: stretch;
    margin-left: auto;
    gap: 26px;
    align-items: center;
}
.main-nav a {
    font-size: 13px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--turquoise);
}
.main-nav a.active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--turquoise);
}
.account-menu {
    position: relative;
    margin-left: 10px;
}
.account-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-menu summary::-webkit-details-marker {
    display: none;
}
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #324453;
    color: #cbe7eb;
    font-weight: 700;
    flex-shrink: 0;
}
.account-name {
    font-size: 12px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-name small {
    display: block;
    color: #a9bdc8;
    font-size: 10px;
}
.account-dropdown {
    position: absolute;
    right: 0;
    top: 52px;
    min-width: 240px;
    background: white;
    padding: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 10px;
    color: var(--ink);
}
.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: left;
    border-radius: 6px;
}
.account-dropdown a:hover,
.account-dropdown button:hover {
    background: var(--soft);
}
.page-container {
    max-width: 1500px;
    padding: 32px 44px 64px;
    margin: auto;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
}
.page-heading .eyebrow {
    margin-bottom: 10px;
}
.page-heading p {
    margin-top: 10px;
}
.page-heading h1 span:not(.title-count) {
    font-weight: 400;
    color: var(--muted);
}
.heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}
.button:hover {
    transform: translateY(-1px);
}
.button:active {
    transform: translateY(0);
}
.button.primary {
    background: var(--navy);
    color: white;
}
.button.primary .icon {
    color: var(--turquoise);
}
.button.primary:hover {
    background: #273d4d;
    box-shadow: 0 6px 15px #17212d17;
}
.button.secondary {
    border-color: var(--line);
    background: white;
}
.button.secondary:hover {
    border-color: #9fbfc3;
    background: #f7fbfb;
}
.button.quiet {
    color: var(--muted);
}
.button.quiet:hover {
    background: #e7eeed;
    color: var(--navy);
}
.button.danger {
    color: var(--danger);
    border-color: #e7ccd1;
    background: #fff;
}
.button.small {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 11px;
}
.button.full {
    width: 100%;
}
.text-link {
    color: var(--teal);
    font-weight: 700;
}
.breadcrumb {
    display: inline-block;
    color: var(--muted);
    font-size: 12px;
    margin: 4px 0 4px;
}
.breadcrumb:hover {
    color: var(--teal);
}
.title-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 30px;
    margin-left: 16px;
    background: #e0edef;
    color: var(--teal);
    font-size: 16px;
    vertical-align: middle;
    border-radius: 6px;
    letter-spacing: 0;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.summary-card {
    padding: 20px 26px;
    position: relative;
}
.summary-card + .summary-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: var(--line);
}
.summary-card .eyebrow {
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    font-size: 10px;
}
.summary-card strong {
    display: block;
    font-size: 27px;
    line-height: 1.25;
    color: var(--navy);
    letter-spacing: -0.7px;
    margin: 7px 0 5px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.summary-card small {
    color: var(--muted);
    display: block;
    font-size: 10px;
}
.summary-card strong.stat-updated {
    animation: stat-update 0.55s var(--ease);
}
.map-heading {
    padding: 26px 34px 22px;
}
.map-heading h1 {
    font-size: 30px;
}
.map-page .summary-grid {
    margin: 0 34px 20px;
}
.map-page .summary-card {
    padding: 16px 24px;
}
.map-page .summary-card strong {
    font-size: 25px;
}
.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 34px 18px;
}
.metric-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.metric-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    padding: 10px 11px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}
.metric-tab .icon {
    width: 16px;
    height: 16px;
}
.metric-tab:hover {
    background: #e4eded;
}
.metric-tab.active {
    color: var(--teal);
    background: #dff1f2;
    border-color: #bfdee1;
}
.period-select {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 3px 10px;
}
.period-select select {
    border: 0;
    padding: 6px 4px;
    min-height: 32px;
    background: transparent;
    font-weight: 700;
    width: 74px;
}
.period-select .icon {
    width: 16px;
    color: var(--muted);
}
.map-workspace {
    display: grid;
    grid-template-columns: 294px minmax(0, 1fr);
    border-top: 1px solid var(--line);
    min-height: 600px;
    height: calc(100dvh - 382px);
}
.explorer {
    background: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    min-height: 0;
    z-index: 4;
    overflow: hidden;
}
.explorer-top {
    padding: 22px 20px 12px;
    border-bottom: 1px solid var(--line);
}
.section-kicker {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
}
.section-kicker > span:last-child {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--ink);
    font-size: 10px;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f4f7f7;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    min-width: 0;
}
.search-field:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px #34bed51b;
}
.search-field .icon {
    width: 16px;
    color: var(--muted);
}
.search-field input {
    border: 0 !important;
    background: transparent !important;
    min-width: 0;
    width: 100%;
    padding: 10px 0 !important;
    font-size: 12px;
    outline: none;
    box-shadow: none !important;
}
.filter-details {
    margin-top: 13px;
}
.filter-details summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    list-style: none;
}
.filter-details summary > .icon:last-child {
    margin-left: auto;
    width: 14px;
}
.filter-details[open] summary > .icon:last-child {
    transform: rotate(180deg);
}
.filter-grid {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr 1fr;
    margin: 14px 0;
    max-height: 270px;
    overflow: auto;
    padding: 2px 3px;
}
.filter-grid .field {
    margin: 0;
}
.filter-grid label {
    font-size: 10px;
}
.filter-grid select {
    font-size: 10px;
    min-height: 35px;
    padding: 6px;
    max-width: 100%;
}
.reset-filters {
    display: inline-block;
    color: var(--teal);
    font-size: 10px;
    margin-top: 12px;
}
.map-status {
    font-size: 10px;
    color: var(--muted);
    padding: 14px 20px 8px;
}
.company-results {
    overflow-y: auto;
    flex: 1;
    padding: 0 10px 10px;
    min-height: 0;
}
.company-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 10px;
    border-bottom: 1px solid #edf1f2;
    border-radius: 6px;
    transition: background 0.2s;
}
.company-result:hover,
.company-result.selected {
    background: #edf6f5;
}
.company-result > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}
.company-result strong {
    display: block;
    font-size: 12px;
    line-height: 1.4;
}
.company-result small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
    margin-top: 3px;
}
.company-result > .icon {
    width: 14px;
    color: #91a4ae;
}
.result-metric {
    display: block;
    font-size: 10px;
    color: var(--teal);
    margin-top: 6px;
    font-weight: 700;
}
.company-initial {
    flex-shrink: 0;
    width: 36px;
    height: 39px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #edf1f1;
    color: #4a6876;
    font-weight: 900;
    font-size: 15px;
    border: 1px solid #e3e9e9;
}
.company-result:nth-child(3n + 1) .company-initial {
    background: #e8f3ed;
    color: #366e5e;
}
.company-result:nth-child(3n + 2) .company-initial {
    background: #edf0f8;
    color: #586b91;
}
.explorer-footer {
    font-size: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding: 13px 20px;
}
.explorer-footer a {
    margin-left: auto;
    font-size: 15px;
}
.live-dot {
    width: 5px;
    height: 5px;
    background: var(--teal);
    border-radius: 50%;
}
.map-stage {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    background: #eef3f2;
}
.map-caption {
    position: absolute;
    left: 26px;
    top: 23px;
    z-index: 2;
    pointer-events: none;
}
.map-caption .eyebrow {
    font-size: 8px;
    color: #526c76;
    letter-spacing: 1.7px;
}
.map-caption strong {
    display: block;
    margin: 5px 0;
    font-size: 16px;
    color: #405862;
}
.map-caption > span:last-child {
    font-size: 10px;
    color: var(--muted);
}
#benin-map {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: grab;
    animation: map-enter 1s var(--ease);
}
#benin-map:active {
    cursor: grabbing;
}
.department-shape {
    fill: #fbfdfc;
    stroke: #a8c4c9;
    stroke-width: 1.05;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 0.2s;
}
.department-shape:hover {
    fill: #daeeee;
    stroke: #16859a;
}
.department-shape[aria-pressed="true"] {
    fill: #c3e8eb;
    stroke: var(--teal);
    stroke-width: 2;
}
.department-labels {
    pointer-events: none;
    fill: #597482;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
}
.geographic-context {
    fill: #657c85;
    font-size: 10px;
    letter-spacing: 3px;
}
.geographic-context .ocean-label {
    font-size: 10px;
    letter-spacing: 5px;
    fill: #518a94;
}
.company-marker {
    cursor: pointer;
    outline: none;
}
.company-marker > circle {
    transition:
        r 0.3s var(--ease),
        fill 0.3s,
        opacity 0.2s;
    vector-effect: non-scaling-stroke;
}
.company-marker:hover > circle:first-child,
.company-marker:focus-visible > circle:first-child {
    opacity: 0.35;
}
.company-marker:focus-visible > circle:nth-child(2) {
    stroke: var(--navy);
    stroke-width: 4;
}
.company-marker.selected > circle:first-child {
    opacity: 0.35;
}
.cluster-count {
    font-size: 11px;
    font-weight: 900;
    fill: white;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}
.marker-entrance {
    animation: marker-appear 0.45s var(--ease);
}
.map-buttons {
    position: absolute;
    right: 25px;
    top: 25px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--line);
    padding: 4px;
    background: #ffffffed;
    border-radius: 8px;
    box-shadow: 0 4px 20px #17212d09;
}
.map-buttons button {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-buttons button:hover {
    background: #e6f1f1;
}
.map-buttons button[aria-pressed="true"] {
    background: #e3f2f2;
    color: var(--teal);
}
.map-buttons .icon {
    width: 17px;
}
.north-arrow {
    position: absolute;
    right: 34px;
    bottom: 58px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}
.north-arrow svg {
    width: 21px;
    height: 38px;
}
.map-legend {
    position: absolute;
    bottom: 34px;
    left: 24px;
    width: 254px;
    background: #ffffffed;
    border: 1px solid #d3e2e3;
    border-radius: 9px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 3;
    backdrop-filter: blur(10px);
}
.map-legend summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1.1px;
    font-weight: 700;
}
.map-legend summary > span:nth-child(2) {
    flex: 1;
}
.map-legend summary strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0;
    color: var(--navy);
    margin-top: 2px;
}
.map-legend summary > .icon {
    width: 13px;
}
.legend-icon {
    padding: 7px;
    background: var(--soft);
    border-radius: 5px;
    color: var(--teal);
}
.legend-icon .icon {
    width: 15px;
    height: 15px;
}
.legend-content {
    padding: 0 16px 14px;
    border-top: 1px solid #e6eeee;
    max-height: 260px;
    overflow: auto;
}
.legend-content p {
    font-size: 10px;
    line-height: 1.65;
    color: var(--muted);
    margin-top: 11px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    padding: 2px 0;
}
.legend-item svg {
    flex-shrink: 0;
}
.map-attribution {
    position: absolute;
    right: 18px;
    bottom: 10px;
    font-size: 8px;
    color: #657f8a;
    background: #ffffff9e;
    padding: 2px 6px;
    letter-spacing: 0.1px;
}
.map-attribution a {
    text-decoration: underline;
}
.map-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: #f3f6f560;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.map-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    animation: loading 0.9s infinite alternate;
}
.map-loading span:nth-child(2) {
    animation-delay: 0.15s;
}
.map-loading span:nth-child(3) {
    animation-delay: 0.3s;
}
#map-tooltip {
    position: fixed;
    z-index: 80;
    background: var(--navy);
    color: white;
    border: 1px solid #365462;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    box-shadow: var(--shadow);
    pointer-events: none;
    max-width: 260px;
}
#map-tooltip small {
    display: block;
    color: #bdd3db;
    margin-top: 3px;
}
.company-drawer {
    position: fixed;
    right: 0;
    top: 86px;
    bottom: 0;
    width: 450px;
    max-width: 100%;
    background: white;
    z-index: 40;
    box-shadow: -20px 0 80px #17212d20;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: drawer-enter 0.35s var(--ease);
    border-left: 1px solid #cadcdd;
}
.drawer-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--navy);
    color: #d0e2e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
}
.drawer-bar .eyebrow {
    font-size: 9px;
}
.drawer-bar button {
    color: white;
    width: 32px;
    height: 32px;
    display: grid;
    place-content: center;
    border-radius: 5px;
}
.drawer-bar button:hover {
    background: #ffffff1a;
}
.detail-identity {
    padding: 28px 26px 22px;
    border-bottom: 1px solid var(--line);
    background: #f7faf9;
}
.detail-identity h2 {
    font-size: 29px;
    margin: 9px 0;
    overflow-wrap: anywhere;
}
.detail-identity p {
    font-size: 12px;
    color: var(--muted);
}
.inline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    font-size: 11px;
}
.inline-meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.inline-meta .icon {
    width: 14px;
    color: var(--teal);
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #d4e4e3;
    background: #eff6f5;
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
}
.detail-body {
    padding: 24px 26px;
}
.detail-description {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 24px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.section-title h3 {
    font-size: 14px;
}
.detail-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.detail-metrics > div {
    padding: 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.detail-metrics > div:nth-child(2n) {
    border-right: 0;
}
.detail-metrics > div:nth-child(n + 3) {
    border-bottom: 0;
}
.detail-metrics span {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.detail-metrics strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.4px;
}
.trend-chart {
    margin: 26px 0 16px;
}
.trend-chart svg {
    width: 100%;
    height: auto;
    display: block;
}
.trend-chart text {
    font-family: Lato, Arial, sans-serif;
    font-size: 11px;
    fill: #6d818b;
}
.trend-chart .section-title {
    margin-bottom: 10px;
}
.trend-chart .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
}
.empty-chart {
    min-height: 100px;
    display: grid;
    place-content: center;
    background: #f7faf9;
    border-radius: 7px;
    font-size: 11px;
    color: var(--muted);
}
.chart-line {
    stroke-dasharray: 1800;
    stroke-dashoffset: 0;
    animation: draw-line 1.2s var(--ease);
}
.health-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    margin-top: 20px;
    gap: 14px;
}
.health-panel .eyebrow {
    color: #97c2cc;
    font-size: 8px;
    letter-spacing: 1.2px;
}
.health-panel h3 {
    font-size: 15px;
    margin: 6px 0;
}
.health-panel small {
    font-size: 9px;
    color: #b4cad2;
}
.health-panel > strong {
    font-size: 34px;
    color: var(--turquoise);
    white-space: nowrap;
}
.health-panel > strong small {
    font-size: 11px;
}
.score-explanation {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.score-explanation summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    list-style: none;
}
.score-explanation summary .icon {
    width: 14px;
}
.score-explanation p {
    font-size: 11px;
    color: var(--muted);
    padding: 10px 0;
}
.score-explanation a {
    display: block;
    font-size: 11px;
    color: var(--teal);
    margin-top: 10px;
}
.factor {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f1;
}
.factor small {
    display: block;
    font-size: 9px;
    color: var(--muted);
}
.factor strong {
    font-size: 11px;
    white-space: nowrap;
}
.risk-summary {
    display: flex;
    gap: 12px;
    padding: 20px 0;
}
.risk-summary > .icon {
    color: var(--teal);
    margin-top: 2px;
}
.risk-summary strong {
    font-size: 12px;
}
.risk-summary p,
.risk-summary small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
    display: block;
}
.detail-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 17px 0;
}
.detail-footer > span {
    font-size: 10px;
    color: var(--muted);
}
.detail-footer strong {
    display: block;
    font-size: 12px;
    color: var(--navy);
    margin-top: 5px;
}
.data-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
}
.detail-body > .data-note {
    margin: 10px 0 20px;
}
.data-note a {
    text-decoration: underline;
    color: var(--teal);
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 2px 6px #17212d02;
    overflow: hidden;
}
.panel.padded {
    padding: 28px;
}
.panel.padded > h2 {
    margin-bottom: 16px;
}
.panel.padded > p {
    margin-bottom: 18px;
}
.panel-toolbar {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}
.inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
}
.inline-form .search-field {
    min-width: 280px;
}
.table-scroll {
    overflow-x: auto;
    width: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    background: #f7faf9;
    white-space: nowrap;
}
td {
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f1;
    font-size: 12px;
    vertical-align: middle;
}
tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #fbfdfc;
}
td small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 10px;
}
.table-company {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 170px;
}
.table-company a:hover {
    color: var(--teal);
}
.icon-link {
    display: inline-grid;
    place-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 5px;
}
.icon-link:hover {
    background: var(--soft);
}
.icon-link .icon {
    width: 15px;
}
.pagination {
    padding: 20px;
    font-size: 12px;
    color: var(--teal);
}
.pagination nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}
.pagination nav > * {
    padding: 5px;
}
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 60px 30px;
    min-height: 220px;
}
.empty-symbol {
    width: 65px;
    height: 65px;
    display: grid;
    place-content: center;
    border: 1px solid #c5dfe1;
    border-radius: 15px 4px 15px 4px;
    background: #edf6f5;
    color: var(--teal);
    margin-bottom: 20px;
}
.empty-symbol .icon {
    width: 26px;
    height: 26px;
}
.empty-state h3 {
    font-size: 18px;
    max-width: 380px;
    line-height: 1.45;
}
.empty-state p {
    max-width: 400px;
    color: var(--muted);
    font-size: 12px;
    margin: 12px 0 20px;
}
.company-results .empty-state {
    padding: 38px 12px;
}
.company-results .empty-state h3 {
    font-size: 16px;
    letter-spacing: -0.3px;
}
.company-results .empty-state p {
    font-size: 11px;
}
.company-results .empty-symbol {
    width: 48px;
    height: 48px;
}
.notice {
    background: #eaf3f4;
    border: 1px solid #c7dee1;
    border-radius: 7px;
    padding: 15px 18px;
    color: #315963;
    font-size: 12px;
    margin: 0 0 20px;
}
.notice.success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eaf5ef;
    border-color: #cee4d7;
    color: #37634d;
}
.notice.error {
    background: #fcf0f0;
    border-color: #ebc9cd;
    color: #8e3444;
}
.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    background: var(--navy);
    color: white;
    box-shadow: var(--shadow);
    border-radius: 7px;
    font-size: 12px;
}
.form-container {
    max-width: 1220px;
}
.narrow-container {
    max-width: 900px;
}
.sectioned-form {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.form-steps {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 24px;
    gap: 8px;
}
.form-steps button {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 7px;
    font-size: 12px;
    color: var(--muted);
}
.form-steps button span {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
}
.form-steps button:hover {
    background: #e8efef;
}
.form-steps button.active {
    background: var(--navy);
    color: white;
}
.form-steps button.active span {
    color: var(--turquoise);
}
.form-panel {
    padding: 34px;
    margin-bottom: 20px;
    scroll-margin-top: 20px;
}
.form-panel h2 {
    margin: 8px 0 12px;
    font-size: 27px;
}
.form-panel > p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 26px;
    max-width: 500px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
.field {
    min-width: 0;
    margin-bottom: 17px;
}
.form-grid .field {
    margin: 0;
}
.field label,
.field-label {
    font-size: 11px;
    color: #41565f;
    font-weight: 700;
    display: block;
    margin-bottom: 7px;
}
.field label > span {
    color: var(--teal);
    padding-left: 3px;
}
.field input,
.field select,
.field textarea,
select,
input[type="number"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfdbdd;
    border-radius: 6px;
    min-height: 43px;
    background: #fff;
    color: var(--navy);
    font-size: 13px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px #34bed518;
    outline: 0;
}
.field input::placeholder {
    color: #94a4aa;
}
.field textarea {
    resize: vertical;
    line-height: 1.6;
}
.field small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 6px;
}
.field .field-error {
    color: var(--danger);
}
[aria-invalid="true"] {
    border-color: var(--danger) !important;
}
.field input[type="color"] {
    padding: 5px;
    width: 90px;
}
.field input[type="file"] {
    font-size: 11px;
    padding: 8px;
}
.field input::file-selector-button {
    border: 0;
    padding: 4px 10px;
    margin-right: 10px;
    border-radius: 4px;
    background: #edf3f3;
    color: var(--teal);
    font: inherit;
    cursor: pointer;
}
.field-wide {
    grid-column: 1/-1;
}
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}
.form-actions > span {
    font-size: 10px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-actions > span .icon {
    width: 14px;
}
.next-step {
    margin-top: 28px;
}
.form-panels {
    min-width: 0;
}
.dossier-tabs {
    display: flex;
    gap: 4px;
    overflow: auto;
    border-bottom: 1px solid #cfdcdc;
    margin-bottom: 28px;
    scrollbar-width: thin;
}
.dossier-tabs a {
    padding: 15px 16px;
    font-size: 12px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 700;
}
.dossier-tabs a.active {
    color: var(--teal);
    border-color: var(--teal);
}
.dossier-tabs a:hover {
    background: #e9efef;
}
.dossier-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    gap: 26px;
    align-items: start;
}
.dossier-overview > .panel {
    min-width: 0;
}
.dossier-sidebar {
    display: grid;
    gap: 22px;
}
.dossier-overview .detail-identity h2 {
    font-size: 30px;
}
.dossier-overview .panel-toolbar input {
    width: 110px;
}
.dossier-overview .detail-body {
    padding: 28px 32px;
}
.dossier-overview .detail-metrics strong {
    font-size: 22px;
}
.info-list {
    margin: 0;
}
.info-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #eef2f2;
    padding: 13px 0;
    font-size: 12px;
}
.info-list > div:last-child {
    border: 0;
}
.info-list dt {
    color: var(--muted);
    flex-shrink: 0;
}
.info-list dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
    max-width: 65%;
}
.company-logo {
    max-height: 95px;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin: 20px 0;
}
.preserve-lines {
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
}
.archive-block {
    padding: 18px 24px;
    border: 1px dashed #cddadc;
    border-radius: 10px;
}
.archive-block h3 {
    font-size: 13px;
}
.archive-block p {
    font-size: 11px;
    color: var(--muted);
    margin: 10px 0 15px;
}
.history-panel {
    margin-top: 26px;
}
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}
.chart-grid > .panel {
    min-width: 0;
}
.chart-grid .trend-chart {
    margin: 0;
}
.record-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 22px;
    overflow: hidden;
}
.record-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 20px;
    background: #f6f9f8;
    border-bottom: 1px solid var(--line);
}
.record-card h3 {
    font-size: 15px;
}
.record-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 22px;
    margin: 0;
}
.record-values dt {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
}
.record-values dd {
    font-size: 12px;
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.record-values .wide {
    grid-column: 1/-1;
}
.audit-entry {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.audit-entry summary {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}
.audit-entry summary span {
    color: var(--muted);
    font-size: 11px;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.settings-users {
    margin-top: 26px;
}
.sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
}
.sector-editor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}
.sector-editor {
    max-width: 760px;
}
.user-entry {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}
.user-entry summary {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
}
.user-entry summary > span:not(.avatar):not(.pill) {
    color: var(--muted);
}
.user-entry summary > .pill {
    margin-left: auto;
}
.user-entry form {
    margin: 24px 0 10px;
}
.user-entry form > .button {
    margin-top: 20px;
}
.period-form {
    margin-bottom: 22px;
}
.period-form select {
    width: 100px;
}
.distribution-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    padding: 13px 0;
    font-size: 12px;
}
.distribution-row strong {
    color: var(--teal);
}
.distribution-row svg {
    grid-column: 1/-1;
    width: 100%;
    height: 4px;
    border-radius: 2px;
}
.prose {
    font-size: 14px;
    line-height: 1.85;
}
.prose h3 {
    font-size: 18px;
    margin: 30px 0 12px;
}
.prose p {
    color: #526872;
}
.prose ul {
    padding-left: 22px;
}
.prose li {
    margin-bottom: 12px;
}
.prose table {
    line-height: 1.6;
}
.login-page {
    background: white;
}
.login-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100dvh;
}
.login-story {
    padding: 50px 70px;
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.login-story > img {
    width: 190px;
    position: relative;
    z-index: 2;
}
.login-story > .eyebrow {
    margin-top: 100px;
    color: var(--turquoise);
    font-size: 10px;
    position: relative;
    z-index: 2;
}
.login-story h1 {
    color: white;
    font-size: 58px;
    line-height: 1.12;
    letter-spacing: -2px;
    margin-top: 26px;
    position: relative;
    z-index: 2;
}
.login-story h1 em {
    font-style: normal;
    color: var(--turquoise);
    font-weight: 400;
}
.login-story > p {
    font-size: 14px;
    line-height: 1.9;
    color: #a5bec9;
    margin-top: 27px;
    position: relative;
    z-index: 2;
}
.login-story > small {
    color: #8aa4b0;
    font-size: 10px;
    margin-top: auto;
    padding-top: 80px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}
.login-window {
    position: absolute;
    right: -130px;
    bottom: 65px;
    width: 490px;
    height: 530px;
    transform: skewY(-13deg);
    opacity: 0.45;
    pointer-events: none;
}
.login-window > span {
    position: absolute;
    inset: 0;
    border: 1px solid #34bed538;
}
.login-window > span:nth-child(2) {
    inset: 50px;
    background: linear-gradient(140deg, #34bed502, #34bed51d);
}
.login-window > span:nth-child(3) {
    inset: 100px;
    border-width: 2px;
    background: linear-gradient(140deg, #34bed500, #34bed50c);
}
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px;
    position: relative;
}
.login-form-inner {
    width: 100%;
    max-width: 370px;
}
.login-form h2 {
    font-size: 42px;
    letter-spacing: -1.5px;
    margin-top: 15px;
}
.login-form .muted {
    font-size: 13px;
    margin: 14px 0 35px;
}
.login-form .field {
    margin-bottom: 24px;
}
.login-form input {
    min-height: 49px;
    background: #fbfcfc;
}
.login-form .button {
    min-height: 48px;
    margin-top: 6px;
}
.login-help {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.8;
    margin-top: 30px;
}
.login-help .icon {
    width: 13px;
    height: 13px;
    margin-right: 7px;
}
.login-footer {
    position: absolute;
    bottom: 30px;
    font-size: 8px;
    letter-spacing: 2px;
    color: #617780;
}
@keyframes map-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes marker-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes drawer-enter {
    from {
        transform: translateX(100%);
        opacity: 0.5;
    }
    to {
        transform: none;
        opacity: 1;
    }
}
@keyframes stat-update {
    0% {
        opacity: 0.4;
        transform: translateY(3px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
@keyframes draw-line {
    from {
        stroke-dashoffset: 1800;
    }
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes loading {
    from {
        opacity: 0.3;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-6px);
    }
}
@media (min-width: 1700px) {
    .map-workspace {
        grid-template-columns: 330px 1fr;
    }
    .map-legend {
        width: 280px;
        bottom: 44px;
        left: 36px;
    }
}
@media (max-width: 1200px) {
    .app-header {
        padding: 0 24px;
        gap: 20px;
    }
    .product-name {
        display: none;
    }
    .main-nav {
        margin-left: auto;
    }
    .map-toolbar {
        padding-left: 24px;
        padding-right: 24px;
    }
    .metric-tab {
        padding: 9px;
        font-size: 10px;
        gap: 5px;
    }
    .map-heading {
        padding-left: 24px;
        padding-right: 24px;
    }
    .map-page .summary-grid {
        margin-left: 24px;
        margin-right: 24px;
    }
    .map-workspace {
        grid-template-columns: 260px 1fr;
        height: 650px;
    }
    .map-legend {
        width: 225px;
        left: 14px;
    }
    .map-caption {
        left: 16px;
    }
    .map-heading h1 {
        font-size: 26px;
    }
    .page-container {
        padding: 28px;
    }
    .login-story {
        padding: 40px;
    }
    .login-story h1 {
        font-size: 48px;
    }
    .login-form {
        padding: 45px;
    }
    .account-name {
        max-width: 110px;
    }
    .record-values {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .app-header {
        height: auto;
        min-height: 78px;
        flex-wrap: wrap;
        gap: 0 25px;
        padding: 0 20px;
    }
    .brand {
        padding: 15px 0;
    }
    .brand img {
        width: 140px;
    }
    .main-nav {
        order: 3;
        width: 100%;
        height: 42px;
        justify-content: center;
        margin: 0;
        gap: 35px;
    }
    .main-nav a {
        font-size: 11px;
    }
    .main-nav .icon {
        width: 16px;
    }
    .account-menu {
        margin-left: auto;
    }
    .summary-card {
        padding: 16px;
    }
    .summary-card strong,
    .map-page .summary-card strong {
        font-size: 21px;
    }
    .map-page .summary-card {
        padding: 15px;
    }
    .map-heading h1 {
        font-size: 24px;
    }
    .heading-actions .button {
        font-size: 11px;
        padding: 10px 12px;
    }
    .map-heading {
        align-items: flex-start;
    }
    .map-heading .heading-actions {
        flex-direction: column;
        gap: 5px;
    }
    .map-heading .button.quiet {
        display: none;
    }
    .map-toolbar {
        gap: 10px;
        align-items: flex-start;
    }
    .metric-tabs {
        flex-wrap: nowrap;
        overflow: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }
    .metric-tab {
        padding: 10px;
    }
    .metric-tab span {
        font-size: 11px;
    }
    .map-workspace {
        grid-template-columns: 230px minmax(0, 1fr);
        height: 670px;
    }
    .map-legend {
        width: 195px;
        bottom: 32px;
    }
    .legend-content {
        max-height: 150px;
    }
    .map-caption {
        top: 17px;
    }
    .map-caption strong {
        font-size: 13px;
    }
    .map-buttons {
        right: 14px;
        top: 17px;
    }
    .company-drawer {
        top: 0;
        width: 420px;
        z-index: 50;
    }
    .page-heading h1 {
        font-size: 28px;
    }
    .sectioned-form {
        grid-template-columns: 175px minmax(0, 1fr);
        gap: 20px;
    }
    .form-panel {
        padding: 25px;
    }
    .form-grid {
        gap: 18px;
    }
    .dossier-overview {
        grid-template-columns: 1fr;
    }
    .dossier-sidebar {
        grid-template-columns: 1fr 1fr;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .login-story h1 {
        font-size: 42px;
    }
    .login-story {
        padding: 35px;
    }
    .login-story > .eyebrow {
        margin-top: 100px;
    }
    .login-form {
        padding: 32px;
    }
}
@media (max-width: 640px) {
    .app-header {
        padding: 0 16px;
    }
    .brand {
        min-width: 140px;
    }
    .account-name {
        display: none;
    }
    .account-menu summary > .icon {
        width: 14px;
    }
    .main-nav {
        gap: 30px;
        height: 40px;
    }
    .main-nav a {
        font-size: 11px;
    }
    .map-heading {
        padding: 23px 18px 19px;
        gap: 10px;
    }
    .map-heading .eyebrow {
        font-size: 8px;
        letter-spacing: 1.2px;
        margin-bottom: 8px;
    }
    .map-heading h1 {
        font-size: 23px;
        max-width: 235px;
        line-height: 1.2;
    }
    .map-heading h1 span {
        display: block;
    }
    .map-heading .heading-actions .button {
        min-height: 38px;
        font-size: 0;
        padding: 8px 12px;
        gap: 0;
    }
    .map-heading .heading-actions .button .icon {
        width: 19px;
    }
    .map-page .summary-grid {
        margin: 0 16px 16px;
    }
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    .summary-card:nth-child(3),
    .summary-card:nth-child(4) {
        border-top: 1px solid var(--line);
    }
    .summary-card:nth-child(3):before {
        display: none;
    }
    .map-page .summary-card {
        padding: 12px 14px;
    }
    .summary-card .eyebrow {
        font-size: 8px;
        letter-spacing: 0.8px;
    }
    .summary-card small {
        font-size: 9px;
    }
    .summary-card strong,
    .map-page .summary-card strong {
        font-size: 21px;
        margin: 5px 0;
    }
    .map-toolbar {
        padding: 0 16px 12px;
        gap: 9px;
        align-items: center;
    }
    .metric-tabs {
        width: 100%;
    }
    .metric-tab {
        padding: 9px;
        gap: 6px;
    }
    .metric-tab .icon {
        width: 15px;
    }
    .period-select {
        padding: 2px 6px;
        gap: 2px;
    }
    .period-select > .icon {
        display: none;
    }
    .period-select select {
        width: 66px;
        font-size: 11px;
    }
    .map-workspace {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
    }
    .map-stage {
        order: 0;
        height: 570px;
        min-height: 570px;
    }
    .explorer {
        order: 1;
        border-right: 0;
        border-top: 1px solid var(--line);
    }
    .explorer-top {
        padding: 20px;
    }
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
    }
    .company-results {
        max-height: 400px;
        min-height: 120px;
    }
    .map-status {
        padding-top: 16px;
    }
    .company-results .empty-state {
        padding: 35px 20px;
    }
    .map-caption {
        top: 18px;
        left: 18px;
    }
    .map-caption .eyebrow {
        font-size: 7px;
        letter-spacing: 1.2px;
    }
    .map-caption strong {
        font-size: 13px;
    }
    .map-buttons {
        right: 14px;
        top: 16px;
    }
    .map-buttons button {
        width: 31px;
        height: 31px;
    }
    .map-legend {
        width: 200px;
        left: 14px;
        bottom: 30px;
    }
    .map-legend summary {
        padding: 10px;
        font-size: 7px;
        gap: 8px;
    }
    .map-legend summary strong {
        font-size: 10px;
    }
    .legend-content {
        max-height: 130px;
        padding: 0 12px 10px;
    }
    .legend-content p {
        font-size: 9px;
    }
    .legend-item {
        font-size: 9px;
    }
    .map-attribution {
        font-size: 7px;
        bottom: 7px;
        right: 8px;
    }
    .north-arrow {
        bottom: 45px;
        right: 23px;
    }
    .company-drawer {
        width: 100%;
        top: 0;
    }
    .detail-identity {
        padding: 25px 22px;
    }
    .detail-body {
        padding: 22px;
    }
    .page-container {
        padding: 22px 16px 45px;
    }
    .page-heading {
        padding: 13px 0 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    .page-heading h1 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }
    .page-heading .eyebrow {
        font-size: 9px;
    }
    .page-heading .heading-actions {
        flex-wrap: wrap;
    }
    .page-heading p {
        font-size: 12px;
    }
    .panel-toolbar {
        padding: 15px;
        align-items: flex-start;
        flex-direction: column;
    }
    .inline-form {
        width: 100%;
        gap: 8px;
    }
    .inline-form .search-field {
        min-width: 0;
        flex: 1;
    }
    .inline-form .button {
        padding: 9px 12px;
        font-size: 10px;
    }
    th,
    td {
        padding: 13px;
    }
    .table-company {
        min-width: 165px;
    }
    .panel.padded {
        padding: 20px;
    }
    .sectioned-form {
        display: block;
    }
    .form-steps {
        position: static;
        flex-direction: row;
        overflow: auto;
        gap: 4px;
        margin: 5px 0 20px;
    }
    .form-steps button {
        padding: 10px;
        font-size: 10px;
        gap: 7px;
        white-space: nowrap;
    }
    .form-steps button span {
        font-size: 9px;
    }
    .form-panel {
        padding: 22px;
    }
    .form-panel h2 {
        font-size: 24px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }
    .filter-grid select {
        font-size: 12px;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .form-actions > span {
        font-size: 9px;
    }
    .form-actions > .button {
        width: 100%;
    }
    .dossier-tabs {
        gap: 0;
        margin-bottom: 20px;
    }
    .dossier-tabs a {
        padding: 12px;
        font-size: 11px;
    }
    .dossier-sidebar {
        grid-template-columns: 1fr;
    }
    .dossier-overview .detail-body {
        padding: 22px;
    }
    .dossier-overview .detail-metrics strong {
        font-size: 17px;
    }
    .dossier-overview .panel-toolbar {
        flex-direction: row;
        align-items: center;
        font-size: 12px;
    }
    .dossier-overview .panel-toolbar input {
        width: 85px;
    }
    .chart-grid {
        grid-template-columns: 1fr;
        margin: 20px 0;
        gap: 20px;
    }
    .history-panel .section-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .section-title h2 {
        font-size: 22px;
    }
    .record-card header {
        padding: 15px;
        flex-wrap: wrap;
    }
    .record-card .heading-actions {
        gap: 6px;
    }
    .record-values {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 15px;
    }
    .audit-entry summary {
        flex-direction: column;
        gap: 5px;
    }
    .user-entry summary {
        gap: 10px;
        font-size: 11px;
    }
    .user-entry summary > .pill {
        margin-left: 0;
    }
    .login-shell {
        display: block;
    }
    .login-story {
        padding: 24px 26px 32px;
        min-height: 270px;
    }
    .login-story > img {
        width: 150px;
    }
    .login-story > .eyebrow {
        margin-top: 30px;
        font-size: 8px;
    }
    .login-story h1 {
        font-size: 32px;
        letter-spacing: -1px;
        line-height: 1.2;
        margin-top: 14px;
    }
    .login-story h1 br:nth-of-type(2) {
        display: none;
    }
    .login-story > p,
    .login-story > small {
        display: none;
    }
    .login-window {
        bottom: -300px;
        right: -250px;
    }
    .login-form {
        padding: 35px 28px 60px;
        min-height: 570px;
    }
    .login-form h2 {
        font-size: 32px;
    }
    .login-form .muted {
        margin: 12px 0 26px;
    }
    .login-form .eyebrow {
        font-size: 8px;
    }
    .login-help {
        font-size: 10px;
    }
    .login-footer {
        bottom: 20px;
        font-size: 7px;
    }
    .prose {
        font-size: 13px;
    }
    .prose h2 {
        font-size: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .chart-line {
        stroke-dasharray: none;
    }
}
@media print {
    body {
        background: white;
        color: black;
        font-size: 11px;
    }
    .app-header,
    .heading-actions,
    .dossier-tabs,
    .form-actions,
    .button,
    .archive-block,
    .panel-toolbar,
    .company-drawer,
    .map-workspace,
    .account-menu {
        display: none !important;
    }
    .page-container {
        max-width: none;
        padding: 0;
    }
    .panel {
        box-shadow: none;
    }
    .dossier-overview {
        display: block;
    }
    .dossier-sidebar {
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
    }
    .chart-grid {
        grid-template-columns: 1fr 1fr;
    }
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .summary-card strong {
        font-size: 20px;
    }
    .record-card,
    .health-panel,
    .trend-chart,
    table {
        break-inside: avoid;
    }
    .page-heading {
        padding-top: 0;
    }
    .table-scroll {
        overflow: visible;
    }
    .data-note {
        font-size: 9px;
    }
    a {
        color: inherit;
    }
    .history-panel {
        break-before: page;
    }
}

@media (max-width: 640px) {
    .map-page .map-heading {
        padding: 23px 18px 19px;
        flex-direction: row;
        align-items: center;
    }
    .map-page .map-heading .heading-actions {
        flex-direction: row;
    }
    .map-page .map-heading h1 {
        font-size: 23px;
    }
    .map-page .map-heading .button {
        font-size: 0;
    }
    .map-legend {
        max-height: 245px;
    }
}

@media (max-width: 1200px) {
    .map-workspace {
        height: 650px;
    }
}
@media (max-width: 900px) {
    .map-workspace {
        height: 670px;
    }
}
@media (max-width: 640px) {
    .map-workspace {
        height: auto;
    }
    .map-stage {
        height: 570px;
    }
    .company-results {
        min-height: 120px;
    }
    .map-legend:not([open]) {
        width: min(156px, 40vw);
    }
    .map-legend[open] {
        width: 245px;
    }
}
