.area-report-modal {
    padding: clamp(12px, 3vw, 24px);
    background: rgba(2, 6, 23, .72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.area-report-modal__box {
    display: flex;
    flex-direction: column;
    width: min(980px, 96vw);
    max-height: min(88vh, 960px);
    overflow: hidden;
    border-radius: 16px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.area-report-modal__header,
.area-report-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
}

.area-report-modal__header { border-bottom: 1px solid #e2e8f0; }
.area-report-modal__heading { min-width: 0; }
.area-report-modal__title { margin: 0; color: #0f172a; font-size: 16px; font-weight: 900; }
.area-report-modal__date { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }

.area-report-modal__close {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #64748b;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.area-report-modal__close:hover { color: #0f172a; background: #f1f5f9; }

.area-report-modal__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.area-report-modal__stat { min-width: 0; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.area-report-modal__stat-label { color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.area-report-modal__stat-value { margin-top: 3px; color: #0f172a; font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }

.area-report-modal__neighborhoods {
    padding: 10px 22px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11px;
}

.area-report-modal__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 22px 12px; }
.area-report-modal__table { width: 100%; border-collapse: collapse; font-size: 11px; }
.area-report-modal__table th { position: sticky; top: 0; padding: 10px 6px; border-bottom: 2px solid #e2e8f0; color: #64748b; background: #fff; text-align: left; }
.area-report-modal__table td { padding: 8px 6px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: top; }
.area-report-modal__code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.area-report-modal__sample-note { padding: 10px 6px; color: #a16207; font-size: 11px; font-weight: 700; }

.area-report-modal__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
}

.area-report-modal__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #0f172a;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.area-report-modal__button:hover { background: #f8fafc; }
.area-report-modal__button--primary { border-color: #2563eb; color: #fff; background: #2563eb; }
.area-report-modal__button--primary:hover { background: #1d4ed8; }
.area-report-modal__button:focus-visible,
.area-report-modal__close:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }

@media (max-width: 640px) {
    .area-report-modal { padding: 10px; }
    .area-report-modal__box { width: 100%; max-height: 92vh; border-radius: 12px; }
    .area-report-modal__header,
    .area-report-modal__actions { padding: 12px; }
    .area-report-modal__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
    .area-report-modal__neighborhoods { padding: 10px 12px; }
    .area-report-modal__body { padding: 0 12px 10px; }
    .area-report-modal__table { min-width: 640px; }
    .area-report-modal__actions { justify-content: stretch; }
    .area-report-modal__button { flex: 1 1 100%; }
}
