/* Shared report dialog follows the mobile moderation form. */
.report-modal {
    width: min(430px, calc(100% - 32px));
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(242, 90, 0, 0.2);
    border-radius: 24px;
    background: linear-gradient(180deg, #261b16, #110c0a);
    color: #fff7ed;
    font: inherit;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.58);
}

.report-modal[open] {
    display: flex;
    flex-direction: column;
}

.report-modal::backdrop {
    background: rgba(8, 5, 4, 0.78);
}

.report-modal-header {
    position: relative;
    flex-shrink: 0;
    padding: 26px 54px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    text-align: center;
}

.report-modal h2 {
    margin: 8px 0 6px;
    font-size: 19px;
    font-weight: 900;
    line-height: 26px;
}

.report-modal-header p,
.report-success p {
    margin: 0;
    color: #a99b8d;
    font-size: 12px;
    line-height: 19px;
}

.report-modal button {
    cursor: pointer;
    font: inherit;
}

.report-modal .report-close-button {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: #e9ddd4;
    font-size: 24px;
}

.report-icon,
.report-success-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border: 1px solid rgba(242, 90, 0, 0.34);
    border-radius: 50%;
    background: rgba(242, 90, 0, 0.12);
    color: #ff7a2a;
}

.report-modal svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-form {
    min-height: 0;
    padding: 16px 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.report-reasons {
    min-width: 0;
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.report-reasons legend,
.report-reason input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.report-reason {
    position: relative;
    cursor: pointer;
}

.report-reason-label {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    padding-inline-end: 46px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #cfc4bc;
    font-size: 13px;
    font-weight: 800;
    line-height: 19px;
}

.report-reason-indicator {
    position: absolute;
    top: 11px;
    inset-inline-end: 12px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: transparent;
    font-size: 14px;
    pointer-events: none;
}

.report-reason input:checked + .report-reason-label {
    border-color: rgba(242, 90, 0, 0.42);
    background: rgba(242, 90, 0, 0.13);
    color: #fff7ed;
}

.report-reason input:checked ~ .report-reason-indicator {
    border-color: #f25a00;
    background: #f25a00;
    color: #fff7ed;
}

.report-description {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.report-description > span {
    display: flex;
    justify-content: space-between;
    color: #e8ddd5;
    font-size: 12px;
    font-weight: 800;
}

.report-description small {
    color: #766a62;
    font-size: 10px;
}

.report-description textarea {
    width: 100%;
    min-height: 104px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background: rgba(9, 7, 6, 0.48);
    color: #f5ede7;
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    resize: vertical;
}

.report-description textarea::placeholder {
    color: #71655e;
}

.report-character-count {
    display: block;
    margin-top: 6px;
    color: #70645d;
    font-size: 10px;
    text-align: left;
}

.report-error {
    padding: 8px;
    border: 1px solid rgba(255, 119, 84, 0.2);
    border-radius: 8px;
    background: rgba(255, 100, 62, 0.07);
    color: #ff9a84;
    font-size: 12px;
    line-height: 18px;
}

.report-actions {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.report-primary-button,
.report-cancel-button {
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: #f25a00;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.report-modal .report-cancel-button {
    min-height: 38px;
    background: transparent;
    color: #cbbfb7;
    font-size: 12px;
}

.report-modal button:disabled,
.report-reasons:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.report-modal button:focus-visible,
.report-description textarea:focus-visible,
.report-reason input:focus-visible + .report-reason-label {
    outline: 2px solid #ff7a2a;
    outline-offset: 2px;
}

.report-success {
    padding: 28px;
    overflow-y: auto;
    text-align: center;
}

.report-success-icon {
    width: 58px;
    height: 58px;
    border-color: rgba(140, 230, 184, 0.24);
    background: rgba(140, 230, 184, 0.08);
    color: #8ce6b8;
}

.report-success-icon svg {
    width: 34px;
    height: 34px;
    stroke-width: 1.8;
}

.report-success .report-primary-button {
    margin-top: 20px;
}
