html:has(.map-report-dialog[open]),
body:has(.map-report-dialog[open]) {
    overflow: hidden;
}

.map-report-dialog {
    overscroll-behavior: contain;
    box-sizing: border-box;
    width: min(92vw, 31rem);
    max-height: min(92vh, 46rem);
    padding: clamp(1.15rem, 4vw, 1.75rem);
    overflow-y: auto;
    cursor: default;
}

.map-report-dialog::backdrop {
    background: rgba(1, 7, 10, 0.78);
    backdrop-filter: blur(5px);
}

.map-report-form {
    display: grid;
    gap: 0.65rem;
    text-align: left;
}

.map-report-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.map-report-heading h2 {
    margin: 0;
    color: #f4fff9;
    font-size: 1.35rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.map-report-heading .account-eyebrow {
    margin: 0 0 0.4rem;
    color: #8fffd3;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.map-report-explanation {
    margin: 0 0 0.45rem;
    color: #b7cbc5;
    font-size: 0.9rem;
    line-height: 1.55;
}

.map-report-form label,
.map-report-label {
    display: block;
    margin-top: 0.3rem;
    color: #e5f4ee;
    font-size: 0.88rem;
    font-weight: 700;
}

.map-report-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(175, 255, 229, 0.2);
    border-radius: 0.7rem;
    background: #0b1519;
    color: #f4fff9;
    font: inherit;
}

.map-report-form textarea {
    min-height: 5rem;
    resize: vertical;
}

.map-report-form textarea:focus {
    outline: 2px solid rgba(0, 255, 174, 0.55);
    outline-offset: 1px;
}

.map-report-form small {
    color: #aabeb8;
    font-size: 0.76rem;
    line-height: 1.5;
}

.map-report-status {
    min-height: 1.3em;
    color: #b7cbc5;
    font-size: 0.86rem;
    line-height: 1.5;
}

.map-report-status[data-state="success"] {
    color: #a8ffdf;
}

.map-report-status[data-state="error"] {
    color: #ff9b9b;
}

.map-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.map-report-actions button {
    min-height: 2.65rem;
    padding: 0.6rem 0.95rem;
    border-radius: 0.7rem;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 750;
    cursor: pointer;
}

.map-report-cancel {
    border: 1px solid rgba(175, 255, 229, 0.2);
    background: rgba(255, 255, 255, 0.045);
    color: #e1eee9;
}

.map-report-submit {
    border: 1px solid #54e6b5;
    background: #00d99a;
    color: #05221a;
}

.map-report-actions button:hover:not(:disabled) {
    filter: brightness(1.12);
}

.map-report-actions button:focus-visible {
    outline: 2px solid #8fffd3;
    outline-offset: 2px;
}

.map-report-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.map-report-dialog textarea {
    cursor: text;
}

.map-report-dialog .dialog-close {
    cursor: pointer;
}
