:root {
    --bg: #0d1117;
    --panel: #151b23;
    --panel-2: #1d2630;
    --text: #f0f6fc;
    --muted: #8b949e;
    --line: #30363d;
    --green: #56d364;
    --yellow: #e3b341;
    --red: #ff7b72;
    --blue: #58a6ff;
    --shadow: 0 20px 60px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1b3354, var(--bg) 36rem);
    color: var(--text);
}

a { color: var(--blue); text-decoration: none; }

.shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.shell.narrow { width: min(920px, calc(100vw - 32px)); }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.hero.compact { padding-bottom: 14px; }

.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .15em; font-weight: 800; font-size: .78rem; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 5vw, 4.5rem); line-height: .95; margin: 0; }
h2 { margin: 0 0 12px; font-size: 1.25rem; }
.subhead { max-width: 720px; color: #c9d1d9; font-size: 1.1rem; margin: 16px 0 0; }

.panel { background: rgba(21, 27, 35, .92); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 18px 0; box-shadow: var(--shadow); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 22px; }
.form-stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #c9d1d9; font-size: .94rem; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #0d1117; color: var(--text); padding: 12px 14px; font: inherit; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88,166,255,.15); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.checkline { display: flex; align-items: center; gap: 10px; }
.checkline input { width: auto; }

.button { border: 0; border-radius: 999px; background: var(--green); color: #07120a; font-weight: 800; padding: 12px 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.button.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.button:hover { filter: brightness(1.08); }

.status { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.status.good { border-color: rgba(86,211,100,.55); }
.status.bad { border-color: rgba(255,123,114,.55); }

.muted, .hint { color: var(--muted); }
.hint { font-size: .86rem; margin: 8px 0 0; }

.score-card { background: linear-gradient(135deg, rgba(86,211,100,.12), rgba(88,166,255,.12)); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: rgba(240,246,252,.08); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: #d0d7de; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
#map { height: 520px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0d1117; }

.property-list { display: grid; gap: 12px; }
.property-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.property-row h3 { margin: 0 0 4px; font-size: 1rem; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-weight: 800; font-size: .78rem; border: 1px solid var(--line); color: #d0d7de; background: #0d1117; }
.badge.good { color: var(--green); }
.badge.warn { color: var(--yellow); }
.badge.bad { color: var(--red); }

.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.metric { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.metric .value { font-size: 1.8rem; font-weight: 900; }

.report-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

ul.clean { padding-left: 20px; }
pre.json { white-space: pre-wrap; background: #06090f; color: #d0d7de; padding: 16px; border-radius: 14px; border: 1px solid var(--line); overflow: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #c9d1d9; }

@media (max-width: 820px) {
    .hero, .section-title { align-items: flex-start; flex-direction: column; }
    .grid-2, .report-grid, .inline-fields { grid-template-columns: 1fr; }
    #map { height: 420px; }
}

.report-topline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.score-box,
.risk-box {
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.12);
}

.score-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 8px;
}

.score-number {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
}

.risk-text {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
}

.readiness-link {
    display: inline-block;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.readiness-link:hover,
.readiness-link:focus-visible {
    opacity: 0.78;
}

.readiness-section {
    scroll-margin-top: 92px;
}

.readiness-section:focus {
    outline: none;
}

.readiness-section:target {
    border-radius: 20px;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.32);
}

.readiness-heading,
.readiness-factor-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.readiness-heading p {
    max-width: 860px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.readiness-summary {
    flex: 0 0 auto;
    border: 1px solid;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.readiness-factor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.readiness-factor {
    padding: 17px;
    border: 1px solid var(--line);
    border-left-width: 5px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
}

.readiness-factor.available { border-left-color: #0b7a42; }
.readiness-factor.concern { border-left-color: #b42318; }
.readiness-factor.pending { border-left-color: #d68a00; }

.readiness-factor h3 {
    margin: 0;
    font-size: 17px;
}

.readiness-factor span {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.readiness-factor.available span { color: #0b7a42; }
.readiness-factor.concern span { color: #b42318; }
.readiness-factor.pending span { color: #9a5b00; }

.readiness-factor p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.good {
    background: rgba(20, 160, 90, 0.16);
    border-color: rgba(20, 160, 90, 0.55);
    color: #0b7a42;
}

.bad {
    background: rgba(220, 60, 60, 0.16);
    border-color: rgba(220, 60, 60, 0.55);
    color: #b42318;
}

.warn {
    background: rgba(245, 170, 40, 0.18);
    border-color: rgba(245, 170, 40, 0.65);
    color: #9a5b00;
}

.neutral {
    background: rgba(120, 130, 150, 0.12);
    border-color: rgba(120, 130, 150, 0.35);
    color: #4b5563;
}

.summary-hero {
    padding: 24px;
    border-radius: 20px;
    background: rgba(60, 100, 180, 0.08);
    margin-bottom: 24px;
}

.summary-hero h2,
.report-section h2 {
    margin-top: 0;
    font-size: 24px;
}

.summary-hero p {
    font-size: 20px;
    line-height: 1.55;
}

.source-line {
    margin-top: 12px;
}

.report-section {
    margin-top: 28px;
}

.big-badge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.big-badge {
    border-radius: 18px;
    padding: 20px;
    border: 2px solid;
    text-align: center;
}

.big-badge span {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.big-badge strong {
    display: block;
    font-size: 30px;
    font-weight: 900;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fact-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(120, 130, 150, 0.25);
    background: rgba(255,255,255,0.04);
}

.fact-card.known {
    border-left: 6px solid #16a34a;
}

.fact-card.unknown {
    border-left: 6px solid #f59e0b;
    opacity: 0.88;
}

.fact-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.fact-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.signal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signal-list li {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border-left: 7px solid;
}

.signal-list.positive li {
    background: rgba(20, 160, 90, 0.12);
    border-left-color: #16a34a;
}

.signal-list.negative li {
    background: rgba(220, 60, 60, 0.12);
    border-left-color: #dc2626;
}

.signal-list.missing li,
.signal-list.due li {
    background: rgba(245, 170, 40, 0.13);
    border-left-color: #f59e0b;
}

.signal-list.evidence li {
    background: rgba(60, 100, 180, 0.10);
    border-left-color: #3b82f6;
}

.empty-note {
    font-size: 18px;
    color: #6b7280;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(120, 130, 150, 0.10);
}

.table-wrap {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.report-table th,
.report-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(120, 130, 150, 0.25);
    text-align: left;
}

.report-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

.raw-json {
    margin-top: 32px;
    border-radius: 16px;
    padding: 18px;
    background: rgba(0,0,0,0.05);
}

.raw-json summary {
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
}

.raw-json pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.45;
}

.error {
    color: #dc2626;
    font-weight: 800;
}

@media (max-width: 800px) {
    .report-topline,
    .big-badge-grid,
    .fact-grid,
    .readiness-factor-grid {
        grid-template-columns: 1fr;
    }

    .readiness-heading,
    .readiness-factor-topline {
        flex-direction: column;
    }

    .score-number {
        font-size: 52px;
    }

    .risk-text {
        font-size: 28px;
    }
}

















.map-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(20, 160, 90, 0.12);
    border: 2px solid rgba(20, 160, 90, 0.45);
}

.map-title {
    font-size: 22px;
    font-weight: 900;
    color: #0b7a42;
    margin-bottom: 6px;
}

.map-coordinates {
    font-size: 18px;
    font-weight: 700;
    word-break: break-word;
}

.map-subtitle {
    font-size: 16px;
    opacity: 0.8;
}

.map-button {
    display: inline-block;
    padding: 14px 18px;
    border-radius: 14px;
    background: #16a34a;
    color: white !important;
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.map-button:hover {
    filter: brightness(0.95);
}

.missing-map {
    background: rgba(245, 170, 40, 0.13);
    border-color: rgba(245, 170, 40, 0.55);
}

.missing-map .map-title {
    color: #9a5b00;
}

.embedded-map-frame {
    height: 420px;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #101820;
}

.embedded-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.map-section-heading h2 { margin-bottom: 5px; }
.map-section-heading p { margin: 0; }

.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 14px;
    color: var(--muted);
    font-size: .78rem;
}

.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #0d1117; }
.legend-land { background: #f85149; }
.legend-city { background: #58a6ff; }
.legend-grocery { background: #3fb950; }
.legend-retail { background: #e3b341; }

.interactive-map {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #18212b;
}

.interactive-map .leaflet-popup-content-wrapper,
.interactive-map .leaflet-popup-tip { color: #111827; background: #fff; }

.distance-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.distance-list.stores {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.distance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    background: rgba(240, 246, 252, .035);
    text-decoration: none;
}

.distance-item:hover { border-color: #58a6ff; background: rgba(88, 166, 255, .08); }
.distance-item span { min-width: 0; }
.distance-item strong, .distance-item small { display: block; }
.distance-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.distance-item small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.distance-item b { flex: 0 0 auto; color: #79c0ff; font-size: .82rem; font-variant-numeric: tabular-nums; }
.map-attribution { margin: 9px 0 0; font-size: .72rem; }

@media (max-width: 800px) {
    .map-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-button {
        width: 100%;
        text-align: center;
    }

    .embedded-map-frame { height: 330px; }
    .map-section-heading { flex-direction: column; }
    .map-legend { justify-content: flex-start; }
    .interactive-map { height: 330px; }
    .distance-list { grid-template-columns: 1fr; }
}

.climate-section h3 {
    margin: 24px 0 10px;
    font-size: 1rem;
    color: #d0d7de;
}

.climate-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.climate-heading p { margin: -4px 0 0; }
.climate-heading .climate-station { margin-top: 7px; color: #79c0ff; font-size: .82rem; font-weight: 700; }

.climate-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 12px;
    color: #c9d1d9;
    font-size: .82rem;
}

.climate-legend span { display: inline-flex; align-items: center; gap: 7px; }
.climate-legend i { display: inline-block; flex: 0 0 auto; }
.legend-range { width: 25px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #58a6ff, #ff7b72); }
.legend-average { width: 11px; height: 11px; border-radius: 50%; background: #f0f6fc; border: 2px solid #0d1117; box-shadow: 0 0 0 1px #f0f6fc; }
.legend-humidity { width: 25px; height: 3px; border-radius: 999px; background: #3fb950; box-shadow: 8px 0 0 -1px #3fb950; }
.legend-rain, .legend-snow { width: 11px; height: 11px; border-radius: 3px; }
.legend-rain { background: #388bfd; }
.legend-snow { background: #d2efff; border: 1px solid #79c0ff; }

.temperature-plot {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: stretch;
}

.temperature-scale {
    height: 244px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 37px 7px 25px 0;
    color: var(--muted);
    font-size: .72rem;
    text-align: right;
}

.temperature-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.temperature-chart {
    position: relative;
    min-width: 720px;
    height: 244px;
    display: grid;
    grid-template-columns: repeat(12, minmax(48px, 1fr));
    gap: 8px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top, transparent 0, transparent 44px, rgba(240,246,252,.055) 45px);
}

.temperature-column {
    display: grid;
    grid-template-rows: 36px 180px 28px;
    min-width: 0;
}

.climate-month {
    color: #c9d1d9;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.temperature-vertical-track {
    position: relative;
    width: 18px;
    height: 180px;
    justify-self: center;
    border-radius: 999px;
    background: rgba(240, 246, 252, .07);
    border: 1px solid rgba(240, 246, 252, .09);
}

.temperature-range {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, #58a6ff, #e3b341 55%, #ff7b72);
}

.temperature-average {
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f0f6fc;
    border: 2px solid #0d1117;
    box-shadow: 0 0 0 1px #f0f6fc;
    transform: translate(-50%, 50%);
}

.temperature-values {
    display: flex;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: .62rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.temperature-values span:first-child { color: #ff7b72; }
.temperature-values strong { color: #f0f6fc; }
.temperature-values span:last-child { color: #58a6ff; }
.temperature-column .climate-month { text-align: center; }

.humidity-line {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 244px;
    overflow: visible;
    pointer-events: none;
}

.humidity-line polyline {
    fill: none;
    stroke: #3fb950;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.humidity-point {
    position: absolute;
    left: 50%;
    z-index: 4;
    width: 9px;
    height: 9px;
    border: 2px solid #0d1117;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 0 1px #56d364;
    transform: translate(-50%, 50%);
}

.humidity-axis {
    position: absolute;
    right: 4px;
    z-index: 5;
    padding: 1px 3px;
    border-radius: 3px;
    color: #56d364;
    background: rgba(13, 17, 23, .78);
    font-size: .62rem;
    font-weight: 800;
    pointer-events: none;
}

.humidity-axis-high { top: 36px; }
.humidity-axis-low { bottom: 28px; }

.precipitation-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.precipitation-chart {
    min-width: 720px;
    height: 230px;
    display: grid;
    grid-template-columns: repeat(12, minmax(48px, 1fr));
    gap: 8px;
    padding: 8px 4px 0;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top, transparent 0, transparent 44px, rgba(240,246,252,.055) 45px);
}

.precipitation-column {
    display: grid;
    grid-template-rows: 28px 1fr 24px;
    min-width: 0;
}

.precipitation-values {
    display: flex;
    justify-content: center;
    gap: 5px;
    color: var(--muted);
    font-size: .62rem;
    font-variant-numeric: tabular-nums;
}

.precipitation-bars {
    height: 170px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.precipitation-bar {
    width: min(16px, 38%);
    min-height: 0;
    border-radius: 4px 4px 1px 1px;
}

.precipitation-bar.rain { background: linear-gradient(#79c0ff, #1f6feb); }
.precipitation-bar.snow { background: linear-gradient(#f0f9ff, #79c0ff); border: 1px solid rgba(240,249,255,.65); }
.precipitation-month { text-align: center; color: #c9d1d9; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.climate-source { margin: 12px 0 0; font-size: .78rem; line-height: 1.5; }

@media (max-width: 700px) {
    .temperature-plot { grid-template-columns: 36px minmax(0, 1fr); }
}

/* Purchase intelligence dashboard */
html { scroll-behavior: smooth; }

.report-navigator {
    position: sticky;
    top: 8px;
    z-index: 900;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 0 24px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 15px;
    background: rgba(13, 17, 23, .92);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    scrollbar-width: thin;
}

.report-navigator a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: .8rem;
    font-weight: 800;
    transition: color .18s ease, background .18s ease;
}

.report-navigator a:hover,
.report-navigator a:focus-visible { color: #fff; background: #233044; outline: 2px solid transparent; }

.section-heading-row,
.subsection-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.section-heading-row h2 { margin-bottom: 7px; }
.section-kicker { margin: 0 0 6px; color: #5eead4; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-description, .subsection-heading p { max-width: 760px; margin: 0; color: #94a3b8; line-height: 1.55; }

.source-pill,
.data-state,
.source-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .025em;
    white-space: nowrap;
}

.source-pill.public, .data-state.available { color: #5eead4; border-color: rgba(45, 212, 191, .45); background: rgba(13, 148, 136, .13); }
.source-pill.claim { color: #93c5fd; border-color: rgba(96, 165, 250, .45); background: rgba(37, 99, 235, .13); }
.data-state.pending, .source-count-badge { color: #fbbf24; border-color: rgba(245, 158, 11, .4); background: rgba(217, 119, 6, .12); }
.data-state.unavailable { color: #cbd5e1; border-color: #475569; background: rgba(71, 85, 105, .18); }

.evidence-table-wrap { overflow-x: auto; border: 1px solid #334155; border-radius: 16px; }
.evidence-table { min-width: 760px; background: rgba(15, 23, 42, .48); }
.evidence-table th, .evidence-table td { padding: 14px; border-color: #334155; }
.evidence-table thead th { position: sticky; top: 0; z-index: 1; background: #172130; }
.evidence-table tbody th { width: 22%; color: #f8fafc; font-size: .86rem; }
.evidence-table td { width: 39%; }
.evidence-value { display: grid; gap: 5px; padding: 9px 10px; border-left: 3px solid #14b8a6; border-radius: 0 8px 8px 0; background: rgba(20, 184, 166, .06); line-height: 1.45; }
.evidence-value + .evidence-value { margin-top: 8px; }
.evidence-value a, .evidence-value small { color: #93c5fd; font-size: .72rem; font-weight: 700; }
.evidence-value.unavailable { border-left-color: #64748b; color: #94a3b8; background: rgba(100, 116, 139, .08); }
.evidence-value.unavailable small { color: #64748b; }
.official-source-links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.official-source-links a { text-decoration: underline; text-underline-offset: 2px; }
.verification-badge { display: inline-flex; width: fit-content; margin: 0 0 7px; padding: 4px 8px; border: 1px solid #475569; border-radius: 999px; color: #cbd5e1; background: rgba(71,85,105,.16); font-size: .68rem; font-weight: 900; line-height: 1.2; }
.verification-badge.public_match { color: #5eead4; border-color: rgba(45,212,191,.48); background: rgba(13,148,136,.14); }
.verification-badge.corroborated_listings { color: #bfdbfe; border-color: rgba(96,165,250,.5); background: rgba(37,99,235,.14); }
.verification-badge.single_listing { color: #fcd34d; border-color: rgba(245,158,11,.45); background: rgba(217,119,6,.12); }
.verification-badge.listing_conflict,
.verification-badge.public_match_with_listing_conflict { color: #fda4af; border-color: rgba(244,63,94,.5); background: rgba(190,18,60,.14); }

.master-map { height: 540px; overflow: hidden; border: 1px solid #334155; border-radius: 18px; background: #0b1220; }
.master-map .leaflet-control-layers { max-width: 240px; border: 1px solid #475569; border-radius: 12px; background: rgba(15, 23, 42, .94); color: #e2e8f0; box-shadow: 0 12px 32px rgba(0,0,0,.32); }
.master-map .leaflet-control-layers label { display: flex; color: #e2e8f0; }
.master-map .leaflet-control-layers input { width: auto; }
.map-disclosure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.map-disclosure-grid > div { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; padding: 12px; border: 1px solid #334155; border-radius: 12px; background: rgba(30, 41, 59, .55); }
.map-disclosure-grid small { grid-column: 2; margin-top: 3px; color: #94a3b8; line-height: 1.35; }
.legend-swatch { width: 11px; height: 11px; margin-top: 3px; border-radius: 3px; }
.legend-swatch.parcel { background: #2dd4bf; }
.legend-swatch.road { background: #f59e0b; }
.legend-swatch.hazard { background: #e11d48; }
.legend-swatch.unknown { background: repeating-linear-gradient(135deg, #64748b 0 2px, transparent 2px 4px); border: 1px solid #64748b; }

.visual-empty-state { display: grid; gap: 6px; padding: 22px; border: 1px dashed #475569; border-radius: 14px; color: #cbd5e1; background: repeating-linear-gradient(135deg, rgba(71,85,105,.08) 0 8px, transparent 8px 16px); }
.visual-empty-state span { color: #94a3b8; line-height: 1.5; }

.buildability-layout { display: grid; grid-template-columns: 190px 1fr 1.2fr; align-items: center; gap: 22px; padding: 20px; border: 1px solid #334155; border-radius: 18px; background: linear-gradient(135deg, rgba(15,118,110,.12), rgba(15,23,42,.72)); }
.coverage-ring { width: 165px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#14b8a6 var(--coverage), #334155 0); box-shadow: 0 0 30px rgba(20,184,166,.12); }
.coverage-ring::before { content: ''; grid-area: 1/1; width: 125px; aspect-ratio: 1; border-radius: 50%; background: #151b23; }
.coverage-ring > div { position: relative; grid-area: 1/1; display: grid; text-align: center; }
.coverage-ring strong { font-size: 2rem; }
.coverage-ring span { max-width: 95px; color: #94a3b8; font-size: .7rem; line-height: 1.25; }
.buildability-metrics { display: grid; gap: 10px; }
.buildability-metrics > div { display: grid; gap: 4px; padding: 12px; border: 1px solid #334155; border-radius: 12px; background: rgba(15,23,42,.5); }
.buildability-metrics span { color: #94a3b8; font-size: .75rem; }
.constraint-stack { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.constraint-stack > strong { flex-basis: 100%; margin-bottom: 4px; }
.constraint-stack span { padding: 6px 9px; border: 1px solid rgba(245,158,11,.32); border-radius: 999px; color: #fbbf24; background: rgba(217,119,6,.1); font-size: .7rem; }
.buildable-bar { display: flex; min-height: 38px; margin-top: 12px; overflow: hidden; border-radius: 10px; font-size: .7rem; font-weight: 900; }
.buildable-bar span { display: grid; place-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.buildable-bar .known { background: #0f766e; }
.buildable-bar .unknown { color: #cbd5e1; background: repeating-linear-gradient(135deg, #334155 0 8px, #263244 8px 16px); }

.terrain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric-visual-card { padding: 20px; border: 1px solid #334155; border-radius: 16px; background: linear-gradient(145deg, rgba(30,41,59,.8), rgba(15,23,42,.72)); }
.metric-visual-card > span { display: block; color: #94a3b8; font-size: .78rem; }
.metric-visual-card > strong { display: block; margin: 8px 0; font-size: 2rem; }
.metric-visual-card small { color: #64748b; }
.slope-scale { position: relative; height: 16px; margin: 19px 0 6px; border-radius: 999px; background: linear-gradient(90deg, #22c55e 0 22%, #eab308 42%, #f97316 66%, #ef4444 100%); }
.slope-scale i { position: absolute; top: 50%; width: 19px; height: 25px; border: 3px solid #fff; border-radius: 6px; background: #0f172a; transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.slope-labels { display: flex; justify-content: space-between; color: #94a3b8; font-size: .68rem; }
.soil-components { display: grid; gap: 9px; margin-top: 14px; }
.soil-components article { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(140px, 1.2fr) 44px; align-items: center; gap: 14px; padding: 11px 13px; border: 1px solid #334155; border-radius: 12px; background: rgba(15,23,42,.45); }
.soil-components article > div:first-child { display: grid; gap: 3px; }
.soil-components span { color: #94a3b8; font-size: .7rem; }
.soil-bar { height: 9px; overflow: hidden; border-radius: 999px; background: #334155; }
.soil-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a16207, #84cc16); }
.soil-components b { text-align: right; }
.map-action-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: #94a3b8; font-size: .78rem; }

.utility-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.utility-status { padding: 15px; border: 1px solid #334155; border-top: 4px solid; border-radius: 14px; background: rgba(15,23,42,.52); }
.utility-status.available { border-top-color: #14b8a6; }
.utility-status.pending { border-top-color: #f59e0b; }
.utility-status > div { display: flex; justify-content: space-between; gap: 8px; }
.utility-status b { color: #fbbf24; font-size: .67rem; text-transform: uppercase; }
.utility-status.available b { color: #5eead4; }
.utility-status p { margin: 12px 0 8px; line-height: 1.45; }
.utility-status small { color: #64748b; line-height: 1.35; }
.subsection-heading { margin-top: 22px; }
.subsection-heading h3 { margin: 0 0 5px; }
.road-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.road-list article { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border: 1px solid #334155; border-radius: 11px; }
.road-list span { grid-column: 1; color: #94a3b8; font-size: .72rem; }
.road-list b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #fbbf24; }

.parcel-screen-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.parcel-screen { display: grid; gap: 7px; padding: 13px; border: 1px solid #334155; border-bottom: 4px solid; border-radius: 12px; background: rgba(15,23,42,.54); }
.parcel-screen span { color: #94a3b8; font-size: .7rem; }
.parcel-screen.available { border-bottom-color: #14b8a6; }
.parcel-screen.concern { border-bottom-color: #ef4444; }
.parcel-screen.pending { border-bottom-color: #f59e0b; }
.nri-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0; }
.nri-summary > div { display: grid; gap: 5px; padding: 16px; border: 1px solid #334155; border-radius: 14px; background: linear-gradient(135deg, rgba(225,29,72,.1), rgba(15,23,42,.65)); }
.nri-summary span, .nri-summary small { color: #94a3b8; }
.nri-summary strong { font-size: 1.45rem; }
.hazard-bars { display: grid; gap: 8px; }
.hazard-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(140px, 1.4fr) 54px; align-items: center; gap: 12px; }
.hazard-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.hazard-row span { color: #94a3b8; font-size: .68rem; }
.hazard-track { height: 9px; overflow: hidden; border-radius: 999px; background: #334155; }
.hazard-track i { display: block; height: 100%; border-radius: inherit; background: #64748b; }
.hazard-row.low .hazard-track i { background: #38bdf8; }
.hazard-row.moderate .hazard-track i { background: #eab308; }
.hazard-row.high .hazard-track i { background: #ef4444; }
.hazard-row > b { text-align: right; font-variant-numeric: tabular-nums; }
.method-note { margin-top: 14px; color: #64748b; font-size: .74rem; line-height: 1.5; }

.zoning-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zoning-hero-grid article { display: grid; gap: 6px; padding: 18px; border: 1px solid #334155; border-radius: 15px; background: rgba(15,23,42,.52); }
.zoning-hero-grid span, .zoning-hero-grid small { color: #94a3b8; }
.zoning-hero-grid strong { font-size: 1.35rem; }
.use-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.use-matrix article { display: grid; gap: 6px; padding: 13px; border: 1px solid #334155; border-left: 4px solid; border-radius: 12px; background: rgba(15,23,42,.48); }
.use-matrix article.allowed { border-left-color: #22c55e; }
.use-matrix article.prohibited { border-left-color: #ef4444; }
.use-matrix article.unknown { border-left-color: #f59e0b; }
.use-matrix span, .use-matrix small { color: #94a3b8; }
.use-matrix small { line-height: 1.35; }

.comp-chart { display: grid; gap: 10px; }
.comp-chart article { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(120px, 1.2fr) minmax(150px, .7fr); align-items: center; gap: 14px; padding: 13px; border: 1px solid #334155; border-radius: 12px; }
.comp-chart article > div { display: grid; gap: 3px; }
.comp-chart span { color: #94a3b8; font-size: .7rem; }
.comp-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #334155; }
.comp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #38bdf8); }
.public-data-gap { display: grid; gap: 4px; margin-top: 12px; padding: 14px; border: 1px dashed #475569; border-radius: 12px; }
.public-data-gap span { color: #94a3b8; line-height: 1.45; }

.cost-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 18px; }
.cost-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cost-inputs label { padding: 12px; border: 1px solid #334155; border-radius: 12px; background: rgba(15,23,42,.5); }
.cost-inputs label > span { color: #e2e8f0; font-weight: 800; }
.cost-inputs small { color: #64748b; line-height: 1.35; }
.money-input { display: grid; grid-template-columns: 24px 1fr; align-items: center; border: 1px solid #334155; border-radius: 9px; background: #0d1117; }
.money-input i { text-align: right; color: #5eead4; font-style: normal; }
.money-input input { border: 0; background: transparent; box-shadow: none; }
.cost-visual-panel { align-self: start; position: sticky; top: 76px; padding: 18px; border: 1px solid #334155; border-radius: 16px; background: linear-gradient(145deg, rgba(15,118,110,.12), rgba(15,23,42,.78)); }
.cost-total { display: grid; gap: 5px; margin-bottom: 18px; }
.cost-total span, .cost-total small { color: #94a3b8; }
.cost-total strong { font-size: 2rem; }
.cost-bars { display: grid; gap: 8px; }
.cost-bars > div:not(.cost-empty) { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(100px, 1fr) 90px; align-items: center; gap: 8px; font-size: .7rem; }
.cost-bars > div > div { height: 8px; overflow: hidden; border-radius: 999px; background: #334155; }
.cost-bars i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #2dd4bf); }
.cost-bars b { text-align: right; }
.cost-empty { padding: 18px; border: 1px dashed #475569; border-radius: 10px; color: #94a3b8; text-align: center; }
.cost-visual-panel > p { margin: 17px 0 0; color: #64748b; font-size: .72rem; line-height: 1.45; }

.infrastructure-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.infrastructure-groups article { padding: 13px; border: 1px solid #334155; border-radius: 13px; background: rgba(15,23,42,.5); }
.infrastructure-group-title { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.infrastructure-group-title span { color: #94a3b8; font-size: .7rem; }
.infrastructure-groups article > a { display: flex; justify-content: space-between; gap: 12px; min-height: 38px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(71,85,105,.5); }
.infrastructure-groups article > a b { color: #5eead4; font-size: .72rem; }
.infrastructure-groups article > p { color: #64748b; }

@media (max-width: 900px) {
    .map-disclosure-grid, .use-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buildability-layout { grid-template-columns: 170px 1fr; }
    .constraint-stack { grid-column: 1 / -1; }
    .utility-status-grid, .parcel-screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cost-layout { grid-template-columns: 1fr; }
    .cost-visual-panel { position: static; }
}

@media (max-width: 620px) {
    .section-heading-row, .subsection-heading, .map-action-row { flex-direction: column; }
    .master-map { height: 440px; }
    .master-map .leaflet-control-layers { max-width: 190px; font-size: .72rem; }
    .map-disclosure-grid, .terrain-grid, .utility-status-grid, .parcel-screen-grid, .zoning-hero-grid, .use-matrix, .infrastructure-groups, .cost-inputs, .nri-summary, .road-list { grid-template-columns: 1fr; }
    .buildability-layout { grid-template-columns: 1fr; justify-items: center; }
    .buildability-metrics, .constraint-stack { width: 100%; }
    .constraint-stack { grid-column: auto; }
    .soil-components article { grid-template-columns: 1fr 45px; }
    .soil-bar { grid-column: 1 / -1; grid-row: 2; }
    .hazard-row, .comp-chart article { grid-template-columns: 1fr; }
    .hazard-row > b { text-align: left; }
    .comp-chart article > div:last-child { grid-template-columns: auto 1fr; align-items: baseline; }
    .cost-bars > div:not(.cost-empty) { grid-template-columns: 1fr 80px; }
    .cost-bars > div > div { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
