@media screen {
    /* The legacy body is absolutely positioned and otherwise grows to its content. */
    body.test-shell:has(> .eventGeneralSettings),
    body.test-shell:has(> .clubsWithAnthems) { width: 100%; }
    .test-shell .eventGeneralSettings {
        max-width: 1080px;
        margin: 12px 10px;
        font: 12px/18px Arial, sans-serif;
    }
    .test-shell .settings-card {
        min-width: 0;
        padding: 12px 14px;
        border: 1px solid var(--shell-dialog-border);
        border-radius: 5px;
        background: #1b222c;
    }
    .test-shell .settings-card h2 {
        margin: 0 0 10px;
        color: var(--shell-dialog-text);
        font: 600 13px/18px Arial, sans-serif;
    }
    .test-shell .eventStatuses {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .test-shell .eventStatuses button.eventStatus {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        white-space: nowrap;
    }
    .test-shell .eventStatuses button.eventStatus[selected] {
        border-color: var(--shell-accent);
        background: var(--shell-accent-surface);
        color: var(--shell-accent-light);
        box-shadow: inset 0 -2px var(--shell-accent);
    }
    .test-shell .eventStatuses button.eventStatus[selected]:hover { background: var(--shell-accent-nav-background); }
    .test-shell .eventVisibility {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px;
        margin-top: 12px;
    }
    .test-shell .settings-card .formtable {
        width: 100%;
        margin: 0;
        border: 0;
        border-collapse: collapse;
        table-layout: fixed;
    }
    .test-shell .settings-card .formtable td {
        padding: 4px 0;
        border: 0;
        background: transparent;
        text-align: left;
        vertical-align: middle;
        white-space: normal;
    }
    .test-shell .settings-card .formtable td:first-child { width: 45%; color: #95a5b6; }
    .test-shell .settings-card .formtable td + td { padding-left: 12px; }
    .test-shell .settings-card .formtable label { color: inherit; font: inherit; }
    .test-shell .settings-card .formtable input,
    .test-shell .settings-card .formtable select {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: 28px;
        margin: 0;
        padding: 3px 8px;
        border: 1px solid var(--shell-dialog-border);
        border-radius: 4px;
        background: var(--shell-dialog-field-background);
        color: var(--shell-dialog-text);
        font: 12px Arial, sans-serif;
    }
    .test-shell .division-import-actions {
        display: flex;
        gap: 8px;
        margin: 10px 10px 6px;
    }
    .test-shell .division-import-actions button { flex: 0 0 auto; margin: 0; }

    .test-shell .clubsWithAnthems {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
        gap: 12px;
        max-width: 1480px;
        margin: 12px 10px;
        font: 12px/18px Arial, sans-serif;
    }
    .test-shell .clubsWithAnthems > audio { display: none; }
    .test-shell .clubMedia {
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 12px 14px;
        border: 1px solid var(--shell-dialog-border);
        border-radius: 5px;
        background: #1b222c;
    }
    .test-shell .clubMedia:has(.play[playing]) { border-color: var(--shell-accent); }
    .test-shell .clubMedia .clubName {
        margin: 0 0 4px;
        color: var(--shell-dialog-text);
        font: 600 13px/18px Arial, sans-serif;
        overflow-wrap: anywhere;
    }
    .test-shell .media-country { margin: 0; color: #95a5b6; }
    .test-shell .media-country span { margin-left: 6px; color: var(--shell-accent-light); font-size: 10px; }
    .test-shell .clubImagesAndAnthem { display: flex; gap: 16px; margin: 12px 0; }
    .test-shell .clubImagesAndAnthem figure { margin: 0; }
    .test-shell .clubImagesAndAnthem img {
        display: block;
        box-sizing: border-box;
        height: 80px;
        padding: 6px;
        border: 1px solid var(--shell-dialog-border);
        border-radius: 4px;
        background: var(--shell-dialog-header);
        object-fit: contain;
    }
    .test-shell .clubImagesAndAnthem .flag { width: 120px; }
    .test-shell .clubImagesAndAnthem .logo { width: 80px; }
    .test-shell .clubImagesAndAnthem figcaption { margin-top: 4px; color: #95a5b6; font-size: 10px; }
    .test-shell .media-anthem {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid var(--shell-dialog-border);
    }
    .test-shell .media-field-label { color: #95a5b6; }
    .test-shell .clubsWithAnthems .play {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0 10px;
        color: var(--shell-accent-light);
    }
    .test-shell .clubsWithAnthems .play::before {
        content: "";
        flex: 0 0 auto;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 8px solid currentColor;
    }
    .test-shell .clubsWithAnthems .play[playing] {
        background: var(--shell-accent-surface);
        border-color: var(--shell-accent);
    }
    .test-shell .clubsWithAnthems .play[playing]::before {
        box-sizing: border-box;
        width: 8px;
        height: 10px;
        border: 0;
        border-left: 3px solid currentColor;
        border-right: 3px solid currentColor;
    }
    .test-shell .play:not([playing]) .media-pause-label,
    .test-shell .play[playing] .media-play-label { display: none; }
    .test-shell .media-anthem-status { padding: 6px 0; color: #95a5b6; }
    .test-shell .media-anthem-status.warning { color: var(--shell-danger-text); }
    .test-shell .media-empty {
        grid-column: 1 / -1;
        margin: 0;
        padding: 20px 14px;
        border: 1px solid var(--shell-dialog-border);
        border-radius: 5px;
        color: #95a5b6;
        background: #1b222c;
    }
}
@media screen and (max-width: 760px) {
    .test-shell .eventVisibility { grid-template-columns: minmax(0, 1fr); }
}
