/* report placement */
.report-fab {
    position: absolute;
    right: 1rem;
    bottom: 2.5rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-strong);
}

.report-fab:hover {
    background: var(--primary-dark);
}

.report-fab.is-loading {
    color: transparent;
    cursor: wait;
    pointer-events: none;
}

.report-fab.is-loading::after {
    content: "";
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgb(255 255 255 / 35%);
    border-top-color: var(--on-primary);
    border-radius: 50%;
    animation: report-spin 0.8s linear infinite;
}

@keyframes report-spin {
    to {
        transform: rotate(360deg);
    }
}

.report-hint {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    max-width: calc(100% - 2rem);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.9rem;
    box-shadow: 0 2px 10px var(--shadow-strong);
}

.report-hint button {
    padding: 0.2rem 0.5rem;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 4px;
    background: transparent;
    color: var(--on-primary);
    font: inherit;
    cursor: pointer;
}

.report-modal {
    width: min(480px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 10px 30px var(--shadow-strong);
    overflow-y: auto;
}

.report-modal::backdrop {
    background: var(--overlay);
}

.report-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface);
}

.report-modal-header button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.report-success-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.report-form {
    padding: 0.9rem 1rem 1rem;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.report-field>span {
    font-weight: 600;
}

.report-field small,
.report-fieldset small {
    font-weight: 400;
    color: var(--muted);
}

.report-field input,
.report-field select,
.report-field textarea {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--field-border);
    border-radius: 6px;
    background: var(--field-bg);
    color: var(--field-text);
    font: inherit;
}

.report-field select option {
    background: var(--field-bg);
    color: var(--field-text);
}

.report-field input::placeholder,
.report-field textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

.report-field textarea {
    resize: vertical;
}

.report-counter {
    align-self: flex-end;
    font-size: 0.75rem;
    color: var(--muted);
}

.report-fieldset {
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    font-size: 0.85rem;
}

.report-fieldset legend {
    margin-bottom: 0.3rem;
    padding: 0;
    font-weight: 600;
}

.report-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.report-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.report-location {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.report-form-message {
    margin: 0.5rem 0;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--link);
    font-size: 0.85rem;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.report-actions button {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.report-actions button:last-child {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}


.report-hint[hidden],
.report-form-message[hidden] {
    display: none;
}
