/* FoxLand Stage4 5.1: compact active cards and a short history row. */
#fox-punishment-list > tr.fox-punishment-row {
    grid-template-columns: minmax(0, 1.1fr) 76px minmax(0, 1.5fr) minmax(96px, .8fr) minmax(108px, .9fr) minmax(0, 1.1fr);
    gap: 8px;
    align-items: center;
    padding: 5px 10px;
}

#fox-punishment-list > tr.fox-punishment-row > td {
    grid-column: auto;
    min-height: 36px;
    padding: 3px 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
}

#fox-punishment-list .fox-punishment-row__type {
    gap: 3px;
    overflow: visible;
}

#fox-punishment-list .fox-punishment-row__reason > .fox-punishment-pill {
    display: block;
    max-width: 100%;
    padding: 6px 9px;
    border-color: rgba(var(--fox-rgb-as4l15, 184, 128, 247), .32);
    border-radius: 7px;
    color: var(--fox-tone-as2l18, #e1d2f2);
    background: rgba(var(--fox-rgb-as2l11, 132, 70, 200), .1);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

#fox-punishment-list .fox-punishment-row__remaining,
#fox-punishment-list .fox-punishment-row__date {
    flex-direction: column;
    gap: 3px;
}

#fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__remaining::before,
#fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__date::before {
    content: attr(data-label);
    color: var(--fox-tone-as1l13, #a792bd);
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
}

#fox-punishment-list .fox-punishment-row__remaining > .fox-punishment-pill {
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--fox-tone-as4l18, #e2c3ff);
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    line-height: 1.25;
}

#fox-punishment-list > tr.fox-punishment-row--removed {
    grid-template-columns: minmax(0, 1fr) minmax(72px, .55fr) minmax(96px, 1fr) minmax(0, 1fr);
    padding-top: 3px;
    padding-bottom: 3px;
}

#fox-punishment-list > .fox-punishment-row--removed > .fox-punishment-row__remaining > .fox-punishment-pill {
    color: #6cffab;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .08em;
    text-shadow: 0 0 9px rgba(68, 239, 143, .38);
}

#fox-punishment-list > .fox-punishment-row--removed .fox-punishment-person img,
#fox-punishment-list > .fox-punishment-row--removed .fox-punishment-person__fallback {
    display: none;
}

#fox-punishment-list > .fox-punishment-row--removed .fox-punishment-person__name {
    font-size: 12px;
}

@media (max-width: 1100px) {
    #fox-punishment-list > tr.fox-punishment-row--active {
        grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
        grid-template-areas: "player type admin" "reason remaining date";
        gap: 5px 10px;
    }
    #fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__player { grid-area: player; }
    #fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__type { grid-area: type; }
    #fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__reason { grid-area: reason; }
    #fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__remaining { grid-area: remaining; }
    #fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__date { grid-area: date; }
    #fox-punishment-list > .fox-punishment-row--active > .fox-punishment-row__admin { grid-area: admin; }
}

@media (max-width: 600px) {
    #fox-punishment-list > tr.fox-punishment-row--active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "player type" "reason reason" "remaining date" "admin admin";
        gap: 4px 8px;
        padding: 6px 8px;
    }
    #fox-punishment-list > tr.fox-punishment-row > td { min-height: 28px; }
    #fox-punishment-list .fox-punishment-row__reason > .fox-punishment-pill {
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
    #fox-punishment-list > tr.fox-punishment-row--removed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "player type" "remaining remaining" "admin admin";
        gap: 2px 8px;
        padding: 6px 8px;
    }
    #fox-punishment-list > .fox-punishment-row--removed > .fox-punishment-row__player { grid-area: player; }
    #fox-punishment-list > .fox-punishment-row--removed > .fox-punishment-row__type { grid-area: type; }
    #fox-punishment-list > .fox-punishment-row--removed > .fox-punishment-row__remaining { grid-area: remaining; }
    #fox-punishment-list > .fox-punishment-row--removed > .fox-punishment-row__admin { grid-area: admin; }
}
