.fsd-status-page {
    background:
        radial-gradient(circle at 18% 6%, rgba(34, 197, 94, 0.12), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(14, 165, 233, 0.14), transparent 32%),
        #f8fafc;
    color: #172033;
}

.fsd-status-page .site-header {
    padding-top: 0.75rem;
}

.fsd-status-page .site-header .home-topbar {
    margin-bottom: 0;
    padding-bottom: 0.75rem;
}

.fsd-status-shell {
    padding-top: 14px;
    padding-bottom: 48px;
}

.fsd-status-hero {
    display: block;
    margin-bottom: 14px;
}

.fsd-status-hero h1 {
    max-width: 820px;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 4.3rem);
    font-weight: 800;
    letter-spacing: 0;
}

.fsd-map-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: stretch;
}

.selected-market-panel,
.map-workspace {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.selected-market-panel {
    min-height: 640px;
    padding: 18px;
}

.map-actions button {
    min-height: 38px;
    border: 1px solid #d5dce6;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-actions button:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.legend-dot.approved {
    background: #16a34a;
}

.legend-dot.watch {
    background: #f59e0b;
}

.legend-dot.none {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.map-workspace {
    min-width: 0;
    padding: 14px;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #475467;
    font-size: 0.82rem;
    font-weight: 800;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.map-actions {
    display: inline-grid;
    grid-template-columns: 38px 68px 38px;
    gap: 6px;
}

.map-frame {
    position: relative;
    min-height: 566px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(239, 246, 255, 0.92)),
        #dbeafe;
}

.approved-rollout-panel {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.rollout-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rollout-panel-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.approved-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.approved-rollout-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.86rem;
}

.approved-rollout-table th,
.approved-rollout-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.approved-rollout-table th {
    background: #f8fafc;
    color: #475467;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.approved-rollout-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
}

.table-status.approved {
    background: #16a34a;
}

#fsd-map {
    display: block;
    width: 100%;
    height: 566px;
}

.country-shape {
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 0.18s ease, opacity 0.18s ease, stroke 0.18s ease;
}

.country-shape:hover,
.country-shape.active {
    stroke: #0f172a;
    stroke-width: 1.25;
}

.country-shape.dimmed,
.status-marker.dimmed {
    opacity: 0.22;
}

.status-marker {
    cursor: pointer;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 2;
    transition: opacity 0.18s ease;
    vector-effect: non-scaling-stroke;
}

.status-marker:hover,
.status-marker.active {
    stroke: #0f172a;
    stroke-width: 2.5;
}

.graticule {
    fill: none;
    stroke: rgba(100, 116, 139, 0.22);
    stroke-width: 0.7;
}

.sphere {
    fill: transparent;
}

.map-tooltip {
    position: absolute;
    z-index: 4;
    display: none;
    max-width: 250px;
    padding: 8px 10px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.map-tooltip strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.84rem;
}

.map-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #475467;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.45);
}

.map-loading.hidden {
    display: none;
}

.country-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.selected-market-panel .country-detail {
    margin-top: 0;
    border: 0;
    background: transparent;
    padding: 0;
}

.detail-label {
    margin: 0 0 4px;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.country-detail h2 {
    margin: 0;
    font-size: 1.25rem;
}

.country-detail>p {
    grid-column: 1 / -1;
    margin: 0;
    color: #526071;
    font-size: 0.92rem;
}

.detail-meta {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-meta div {
    display: grid;
    gap: 3px;
}

.detail-meta dt {
    color: #667085;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-meta dd {
    margin: 0;
    color: #172033;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.detail-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
}

.detail-status.approved {
    background: #16a34a;
}

.detail-status.watch {
    background: #f59e0b;
}

.detail-status.none {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475467;
}

.map-preview-mode,
.map-preview-mode body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #eaf2fb;
}

.map-preview-mode .development-banner,
.map-preview-mode .site-header,
.map-preview-mode footer,
.map-preview-mode .fsd-status-hero,
.map-preview-mode .map-toolbar,
.map-preview-mode .approved-rollout-panel,
.map-preview-mode .selected-market-panel,
.map-preview-mode .source-strip {
    display: none !important;
}

.map-preview-mode .fsd-status-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.map-preview-mode .fsd-map-dashboard,
.map-preview-mode .map-workspace,
.map-preview-mode .map-frame {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.map-preview-mode .fsd-map-dashboard {
    display: block;
}

.map-preview-mode .map-workspace,
.map-preview-mode .map-frame {
    border: 0;
    border-radius: 0;
    background: #eaf2fb;
    box-shadow: none;
}

.map-preview-mode #fsd-map {
    width: 100%;
    height: 100vh;
}

@media (max-width: 1100px) {
    .fsd-status-hero,
    .fsd-map-dashboard {
        grid-template-columns: 1fr;
    }

    .selected-market-panel {
        min-height: auto;
    }

}

@media (max-width: 720px) {
    .fsd-status-shell {
        padding-top: 12px;
    }

    .map-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .map-actions {
        width: 100%;
        grid-template-columns: 44px 1fr 44px;
    }

    .map-frame {
        min-height: 430px;
    }

    #fsd-map {
        height: 430px;
    }

    .country-detail {
        grid-template-columns: 1fr;
    }

    .detail-status {
        width: fit-content;
    }

    .rollout-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
