.switch-field {
    padding: 16px 18px !important;
    border-color: var(--color-border) !important;
    background: var(--color-background-muted) !important;
    box-shadow: none !important;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.field-action {
    width: 100%;
    margin-top: 21px;
}

.badge-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.relationship-card {
    padding: 16px !important;
    border-color: var(--color-border) !important;
    background: #fbfdfc !important;
    box-shadow: none !important;
}

.community-logo {
    display: grid;
    width: 124px;
    height: 124px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-background-muted);
    color: var(--color-primary-strong);
}

.community-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.community-logo .rz-icon {
    font-size: 48px;
}

.plate {
    display: inline-flex;
    min-width: 92px;
    padding: 6px 10px;
    justify-content: center;
    border: 1px solid #9eaaa5;
    border-radius: 6px;
    background: #fff;
    color: #20382e;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 800;
    letter-spacing: .08em;
}

.grid-secondary {
    display: block;
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: .78rem;
}

.incident-photo {
    width: min(100%, 560px);
    max-height: 360px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.date-badge {
    display: inline-flex;
    min-width: 54px;
    padding: 7px 9px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-primary-soft);
    color: var(--color-primary-strong);
    font-weight: 800;
}

.report-filters {
    flex-wrap: wrap !important;
}

.audit-json {
    max-height: 470px;
    margin: 0;
    padding: 18px;
    overflow: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #122c25;
    color: #dcece5;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .82rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 760px) {
    .field-action {
        margin-top: 0;
    }

    .report-filters,
    .report-filters > * {
        width: 100% !important;
    }

    .community-logo {
        width: 104px;
        height: 104px;
    }
}
