.robotaxi-status-page {
    background: #f6f8fb;
    color: #162033;
}

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

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

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

.robotaxi-status-hero {
    margin-bottom: 14px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.robotaxi-status-hero h1 {
    max-width: none;
    margin-bottom: 0;
    color: #101828;
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    white-space: nowrap;
}

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

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

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

.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;
}

.legend-dot.scaling {
    background: #15803d;
}

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

.legend-dot.safety,
.legend-dot.supervised {
    background: #0ea5e9;
}

.legend-dot.prep,
.legend-dot.planned {
    background: #f59e0b;
}

.legend-dot.permit {
    background: #d97706;
}

.legend-dot.vehicle {
    background: #64748b;
}

.legend-dot.hiring {
    background: #6366f1;
}

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

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

.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,
.map-actions button:focus-visible {
    border-color: #94a3b8;
    background: #f8fafc;
    outline: none;
}

.map-frame {
    position: relative;
    min-height: 566px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #eaf2fb;
}

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

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

.state-shape:hover,
.state-shape.active {
    stroke: #0f172a;
    stroke-width: 1.4;
}

.nation-outline {
    fill: none;
    stroke: #738197;
    stroke-linejoin: round;
    stroke-width: 0.85;
    vector-effect: non-scaling-stroke;
}

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

.city-marker:hover,
.city-marker.active {
    stroke: #0f172a;
    stroke-width: 2.8;
}

.city-marker.status-watchlist,
.city-marker.status-none {
    stroke: #64748b;
    stroke-width: 1.8;
}

.city-marker.dimmed,
.state-shape.dimmed {
    opacity: 0.28;
}

.map-tooltip {
    position: absolute;
    z-index: 4;
    display: none;
    max-width: 265px;
    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;
}

.market-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

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

.market-detail h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

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

.detail-progress {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    background: #f8fafc;
}

.detail-progress-title {
    margin-bottom: 8px;
    color: #344054;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.detail-progress-title.secondary {
    margin-top: 12px;
}

.detail-progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
}

.detail-progress-grid>div {
    min-width: 0;
    padding: 8px;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    background: #ffffff;
}

.detail-progress dt {
    margin: 0 0 5px;
    color: #667085;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.detail-progress dd {
    margin: 0;
    color: #172033;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.15;
}

.detail-progress small {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 0.62rem;
    font-weight: 800;
}

.progress-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.progress-badge,
.progress-empty {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.05;
}

.progress-empty {
    border-color: #d8e1ed;
    background: #ffffff;
    color: #667085;
}

.detail-evidence {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    background: #ffffff;
}

.evidence-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.evidence-item,
.evidence-empty {
    min-width: 0;
    padding: 9px;
    border: 1px solid #d8e1ed;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
}

.evidence-item.approval {
    border-left-color: #d97706;
}

.evidence-item.fleet {
    border-left-color: #64748b;
}

.evidence-item.hiring {
    border-left-color: #6366f1;
}

.evidence-item.status {
    border-left-color: #16a34a;
}

.evidence-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.evidence-chip,
.evidence-date,
.evidence-confidence {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.evidence-chip {
    background: #e2e8f0;
    color: #334155;
}

.evidence-date {
    background: #eef2ff;
    color: #4338ca;
}

.evidence-confidence {
    background: #f1f5f9;
    color: #475467;
}

.evidence-confidence.high {
    background: #dcfce7;
    color: #166534;
}

.evidence-confidence.medium {
    background: #fef3c7;
    color: #92400e;
}

.evidence-confidence.low {
    background: #fee2e2;
    color: #991b1b;
}

.evidence-item p {
    margin: 0;
    color: #172033;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.28;
}

.evidence-sources {
    display: grid;
    gap: 3px;
    margin-top: 6px;
}

.evidence-sources a,
.evidence-sources span,
.evidence-caveat,
.evidence-empty {
    color: #667085;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.25;
}

.evidence-sources a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.evidence-caveat {
    display: block;
    margin-top: 6px;
}

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

.detail-status.scaling {
    background: #15803d;
}

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

.detail-status.supervised {
    background: #0ea5e9;
}

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

.detail-status.safety {
    background: #0ea5e9;
}

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

.detail-status.permit {
    background: #d97706;
}

.detail-status.vehicle {
    background: #64748b;
}

.detail-status.hiring {
    background: #6366f1;
}

.detail-status.cybercab {
    background: #64748b;
}

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

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

.timeline-board {
    position: relative;
    margin-top: 16px;
    padding: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    color: #172033;
}

.timeline-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 18px;
    align-items: start;
}

.timeline-header h2 {
    margin: 0 0 6px;
    color: #101828;
    font-size: 1.55rem;
    font-weight: 800;
}

.timeline-header p {
    max-width: 880px;
    margin: 0;
    color: #526071;
}

.timeline-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.timeline-kpis div {
    min-height: 86px;
    padding: 14px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fafc;
}

.timeline-kpis dt {
    margin-bottom: 6px;
    color: #0f172a;
    font-family: var(--font-heading, Outfit, sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.timeline-kpis dd {
    margin: 0;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.timeline-loading {
    grid-column: 1 / -1;
    margin: 0;
    color: #667085;
    font-weight: 800;
}

.progress-matrix-wrap {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 2px;
}

.progress-matrix {
    width: 100%;
    min-width: 928px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #172033;
    font-size: 0.69rem;
}

.progress-matrix th,
.progress-matrix td {
    border: 1px solid #d5deea;
}

.progress-matrix thead .matrix-header-row th {
    height: 122px;
    padding: 0;
    vertical-align: bottom;
}

.progress-matrix thead .matrix-group-row th {
    height: auto;
    padding: 8px 6px;
    color: #344054;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    background: #eef4fb;
}

.progress-matrix thead .matrix-group-row .state-head,
.progress-matrix thead .matrix-group-row .city-head {
    padding: 0 4px 6px;
    text-align: left;
    vertical-align: bottom;
    background: #f8fafc;
}

.progress-matrix .state-head,
.progress-matrix .city-head {
    height: auto;
    padding: 0 4px 6px;
    color: #344054;
    text-align: left;
    vertical-align: bottom;
    background: #f8fafc;
}

.progress-matrix .state-col {
    width: 132px;
}

.progress-matrix .city-col {
    width: 98px;
}

.progress-matrix .stage-col {
    width: 96px;
}

.stage-header {
    position: relative;
    background: #f8fafc;
}

.stage-header .stage-label {
    position: absolute;
    bottom: 11px;
    left: 8px;
    width: 130px;
    color: #344054;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    transform: rotate(-48deg);
    transform-origin: left bottom;
    white-space: nowrap;
}

.stage-tooltip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 7;
    visibility: hidden;
    width: 220px;
    padding: 8px 10px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    transition: opacity 0.12s ease;
}

.stage-header:hover .stage-tooltip,
.stage-header:focus .stage-tooltip {
    visibility: visible;
    opacity: 1;
}

.state-block {
    padding: 5px 4px;
    background: #eef2f7;
    color: #344054;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
    text-transform: uppercase;
    vertical-align: top;
}

.city-cell {
    padding: 3px 3px;
    color: #172033;
    font-size: 0.71rem;
    font-weight: 800;
    line-height: 1.05;
    vertical-align: middle;
}

.matrix-row {
    cursor: pointer;
}

.matrix-row:hover .city-cell,
.matrix-row:focus .city-cell,
.matrix-row.active .city-cell {
    color: #047857;
}

.matrix-cell {
    position: relative;
    height: 34px;
    padding: 2px 4px;
    background: #ffffff;
    color: #667085;
    font-size: 0.54rem;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

.matrix-cell .cell-main,
.matrix-cell .cell-sub {
    display: block;
}

.matrix-cell .cell-main {
    word-break: normal;
}

.matrix-cell .cell-sub {
    margin-top: 2px;
    color: #047857;
    font-size: 0.48rem;
    font-weight: 850;
}

.matrix-cell.hit {
    background: #d1fadf;
    color: #065f46;
}

.matrix-cell.hit::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    z-index: 2;
    width: 0;
    height: 0;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 10px solid #d1fadf;
}

.matrix-cell.muted {
    color: #98a2b3;
}

.matrix-cell.muted .cell-sub {
    color: #98a2b3;
}

.matrix-cell.blank {
    color: transparent;
}

.matrix-row.active .matrix-cell.hit {
    background: #86efac;
}

.matrix-row.active .matrix-cell.hit::after {
    border-left-color: #86efac;
}

.progress-matrix-note {
    margin: 12px 0 0;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
}

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

.map-preview-mode [include-html],
.map-preview-mode .development-banner,
.map-preview-mode .site-header,
.map-preview-mode header,
.map-preview-mode footer,
.map-preview-mode .robotaxi-status-hero,
.map-preview-mode .map-toolbar,
.map-preview-mode .selected-market-panel,
.map-preview-mode .timeline-board {
    display: none !important;
}

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

.map-preview-mode .robotaxi-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 .robotaxi-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 #robotaxi-map {
    width: 100%;
    height: 100vh;
}

@media (max-width: 1120px) {
    .robotaxi-status-hero,
    .robotaxi-map-dashboard,
    .timeline-header {
        grid-template-columns: 1fr;
    }

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

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

    .robotaxi-status-hero h1 {
        white-space: normal;
    }

    .timeline-kpis {
        grid-template-columns: 1fr;
    }

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

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

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

    #robotaxi-map {
        height: 430px;
    }

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

    .detail-status {
        width: fit-content;
        max-width: 100%;
    }
}
