.preseason_report {
    padding-bottom: 1rem;
}
.preseason_report_draft {
    color: #a1560c;
}

.preseason_report_top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
}
.preseason_report_box {
    min-width: 0;
    margin-bottom: 0;
}
.preseason_report_box:first-child {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.preseason_report_box:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.preseason_report_box .title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
}
.preseason_report_link {
    font-size: 0.875rem;
    font-weight: normal;
}
.preseason_report_box_body {
    padding: 0 12px 12px;
}
.preseason_report_note {
    margin: 8px 0 0;
    color: #6c757d;
    font-size: 0.8125rem;
}
.preseason_report_steps {
    margin: 0;
    padding-left: 1.25em;
}
.preseason_report_steps li + li {
    margin-top: 6px;
}

.preseason_report_heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 1em;
    margin-bottom: 0.75rem;
}
.preseason_report_heading h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}
.preseason_report_heading span {
    color: #6c757d;
    font-size: 0.875rem;
}
.preseason_report_matches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report_card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.5em;
    background-color: #fff;
    scroll-margin-top: 100px;
}
.report_card_done {
    background-color: #f5f6f7;
}
.report_card_header {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}
.report_card_players {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: baseline;
    justify-content: center;
    gap: 0;
}
.report_card_player {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    font-weight: 600;
}
.report_card_player:first-child {
    align-items: end;
}
.report_card_player:last-child {
    align-items: start;
}
.report_card_discord {
    color: #6c757d;
    font-size: 0.8125rem;
    font-weight: normal;
}
.report_card_vs {
    color: #6c757d;
}

.report_form {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
}
.report_fields {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.report_final {
    margin: 12px 0 0;
    color: #6c757d;
    font-size: 0.875rem;
}

.report_label {
    margin-bottom: 6px;
    font-weight: 600;
}

.report_choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.report_winner {
    display: flex;
    gap: 2px;
}
.report_choice {
    position: relative;
    margin: 0;
}
.report_choice input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.report_choice span {
    position: relative;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 0.4em;
    color: var(--color);
    font-weight: 600;
    isolation: isolate;
}
.report_choice span::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: var(--color);
    opacity: 0.1;
}
.report_choice:hover span::before {
    opacity: 0.2;
}
.report_choice input:checked + span {
    color: #fff;
}
.report_choice input:checked + span::before {
    opacity: 1;
}

.report_form_readonly .report_choice input {
    cursor: default;
}
.report_form_readonly .report_choice:hover span::before {
    opacity: 0.1;
}
.report_form_readonly .report_choice:hover input:checked + span::before {
    opacity: 1;
}
.report_form_readonly .report_options {
    opacity: 0.45;
}
.report_choice input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}
.report_winner .report_choice:first-child span {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.report_winner .report_choice:last-child span {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.report_color_terran { --color: var(--race-terran); }
.report_color_protoss { --color: var(--race-protoss); }
.report_color_zerg { --color: var(--race-zerg); }
.report_color_random { --color: var(--race-random); }
.report_color_racepicker { --color: var(--race-racepicker); }
.report_color_declaredweekly { --color: var(--race-declaredweekly); }
.report_color_unknown { --color: var(--race-unknown); }
.report_color_neutral { --color: #6c757d; }

.report_options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    margin-top: 12px;
    font-size: 0.875rem;
}
.report_walkover {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.report_replay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    font-weight: 600;
}
.report_replay input {
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: normal;
}
.report_disabled {
    opacity: 0.45;
}

.report_hints {
    margin-top: 8px;
    color: #495057;
    font-size: 0.875rem;
}
.report_hint {
    margin: 0;
}

.report_errors {
    margin: 10px 0 0;
    padding-left: 1.25em;
    color: #dc3545;
    font-size: 0.875rem;
}
.report_warning {
    margin: 10px 0 0;
    color: #a1560c;
    font-size: 0.875rem;
}
.report_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}
.report_saved {
    color: #28a745;
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .preseason_report_top,
    .preseason_report_matches {
        grid-template-columns: minmax(0, 1fr);
    }
}
