.ranked-report {
    box-sizing: border-box;
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line-strong, #444);
    border-radius: 14px;
    background: var(--panel, #181818);
    color: var(--text, #f2f2f2);
    box-shadow: 0 24px 64px #0009;
    color-scheme: dark;
}
.ranked-report::backdrop { background: #000a; }
.v2-profile-match-detail button.v2-match-port-wrap { padding: 0; background-color: transparent; cursor: pointer; }
.ranked-report [hidden] { display: none !important; }
.ranked-report-header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 20px;
    background: var(--panel, #181818);
    border-bottom: 1px solid var(--line, #3a3a3a);
}
.ranked-report h2, .ranked-report h3, .ranked-report p { margin: 0; }
.ranked-report h2 { font-size: 1.2rem; }
.ranked-report h3 { font-size: 1rem; }
.ranked-report-form {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 18px;
    padding: 18px 20px 20px;
    font-size: 0.9rem;
}
.ranked-report-feedback { display: grid; justify-items: start; gap: 12px; padding: 20px; }
.ranked-report-roster, .ranked-report-fields { display: grid; min-width: 0; align-content: start; gap: 12px; }
.ranked-report-fields > label { display: grid; gap: 6px; font-weight: 650; }
.ranked-report :is(input[type="search"], input[type="text"], select, textarea) {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    border: 1px solid var(--line-strong, #494949);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--panel-2, #222);
    color: inherit;
    font: inherit;
}
.ranked-report textarea { resize: vertical; }
.ranked-report input::placeholder, .ranked-report small, .ranked-report [data-match-note] {
    color: var(--muted, #b3b3b3);
    font-weight: 400;
}
.ranked-report [data-submit-error] { color: #ffb1a7; }
.ranked-report-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 6px;
    max-height: min(56dvh, 500px);
    overflow: auto;
    padding: 3px;
}
.ranked-report-fighter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 6px;
    border: 1px solid var(--line, #333);
    border-radius: 8px;
    background: var(--panel-2, #222);
    cursor: pointer;
    overflow-wrap: anywhere;
}
.ranked-report-fighter:hover { background: var(--panel-hover, #292929); }
.ranked-report-fighter:has(:checked) { border-color: #ffc680; background: #2c241a; }
.ranked-report-fighter:has(:focus-visible) { outline: 2px solid #ffd28a; outline-offset: 1px; }
.ranked-report-fighter input { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); }
.ranked-report-portrait { flex: 0 0 42px; width: 42px; height: 42px; object-fit: cover; border-radius: 5px; }
.ranked-report-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 8px 10px;
    border: 1px solid var(--line, #333);
    border-radius: 8px;
    color: var(--text, #f2f2f2);
    overflow-wrap: anywhere;
}
.ranked-report-render { flex: 0 0 62px; width: 62px; height: 62px; object-fit: contain; }
.ranked-report [data-more], .ranked-report [data-submit] { justify-self: start; }
.ranked-report :is(input, select, textarea, button):focus-visible { outline: 2px solid #ffd28a; outline-offset: 1px; }
@media (max-width: 650px) {
    .ranked-report { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .ranked-report-header, .ranked-report-form, .ranked-report-feedback { padding-inline: 12px; }
    .ranked-report-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ranked-report-list { max-height: min(37dvh, 240px); }
}
