* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #0b1f3a;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(4, 22, 54, .94) 0%, rgba(4, 22, 54, .76) 32%, rgba(255, 255, 255, .18) 58%, rgba(7, 57, 118, .68) 100%),
        url('/assets/judo-bg.jpg') center center/cover no-repeat fixed;
}

.top-hero {
    position: relative;
    min-height: 128px;
    padding: 8px 32px;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(auto, 900px) minmax(150px, 1fr);
    align-items: center;
    gap: 18px;
    background: linear-gradient(90deg, #fff 0%, #f7fbff 18%, #fff 50%, #f7fbff 82%, #fff 100%);
    color: #071d3d;
    border-bottom: 5px solid #c80022;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.right-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.lang-switch {
    margin: 0;
}

.lang-switch select {
    width: auto;
    min-width: 145px;
    padding: 6px 10px;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.club-login-info {
    font-size: 18px;
    font-weight: 800;
    color: #071d3d;
    display: flex;
    gap: 12px;
}

.club-login-info a {
    color: #0a3775;
    text-decoration: none;
    font-weight: 800;
    transition: color .15s ease;
}

.club-login-info a:hover {
    opacity: 0.625;
}

.logout-form {
    display: inline-flex;
    margin: 0;
}

.logout-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0a3775;
    font: inherit;
    cursor: pointer;
}

.logout-link:hover {
    opacity: 0.625;
}

.left-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100px;
}

.left-panel a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform .15s ease;
}

.left-panel a:hover {
    transform: scale(1.05);
}

.left-panel img {
    display: block;
    object-fit: contain;
    height: 96px;
    width: auto;
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    min-width: 0;
}

.main-title-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
}

.site-logo-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    transition: transform .15s ease;
}

.site-logo-link:hover {
    transform: scale(1.04);
}

.site-heading-logo {
    display: block;
    width: 92px;
    height: auto;
}

.main-title h1 {
    margin: 0;
    font-size: clamp(34px, 3.7vw, 52px);
    line-height: 1;
    letter-spacing: 1.5px;
    font-weight: 900;
    color: #071d3d;
    white-space: normal;
}

.main-title p {
    margin: 0;
    font-size: clamp(11px, 1.05vw, 15px);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a3775;
    font-weight: 800;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    background: #061b3a;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 18px 28px;
    font-weight: 800;
    border-left: 1px solid rgba(255, 255, 255, .16);
    transition: background .15s ease;
}

.main-nav a:first-child {
    border-left: 0
}

.main-nav a:hover,
.main-nav a.active:hover {
    background: #0a63d8
}

.main-nav a.active {
    background: #083f89
}

.main-nav .admin-nav {
    background: #0b1f3a
}

.page-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 54px auto 42px;
}

.landing-clean {
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-copy {
    color: #0b1f3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 1180px;
    padding: 42px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .64));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}

html[data-theme="dark"] .landing-copy {
    color: white;
    background: linear-gradient(90deg, rgba(5, 24, 54, .92), rgba(5, 24, 54, .64));
    text-shadow: 0 2px 8px rgba(0, 0, 0, .42);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.landing-logo {
    display: block;
    width: min(300px, 100%);
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25));
}

.landing-copy>div {
    max-width: 900px;
}

.landing-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.02;
    text-transform: uppercase;
}

.landing-copy p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 21px;
    line-height: 1.45;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.info-strip div {
    background: #f0f4f8;
    color: #0b1f3a;
    padding: 22px;
    border-radius: 16px;
    border-left: 5px solid #c80022;
}

html[data-theme="dark"] .info-strip div {
    background: rgba(5, 24, 54, .92);
    color: white;
}

.info-strip strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.info-strip span {
    opacity: .88
}

.site-footer {
    margin-top: 50px;
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(5, 24, 54, .96);
    color: white;
    border-top: 4px solid #c80022;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: #4da6ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    min-width: 0;
    min-height: 44px;
    transition: color .15s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.site-footer > div:first-child a {
    color: #4da6ff;
    text-decoration: none;
    transition: color .15s ease;
}

.site-footer > div:first-child a:hover {
    color: white;
    text-decoration: underline;
}

.footer-sep {
    color: rgba(255, 255, 255, .35);
    font-size: 14px;
    user-select: none;
}

/* Internal page compatibility */
.card {
    background: rgba(255, 255, 255, .94);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .20);
    margin-bottom: 22px;
}

.card.banner {
    width: 100%;
    border-radius: 0;
    background: #e8f4fd;
    border-left: 5px solid #0a63d8;
    padding: 22px 36px;
    border-radius: 18px;
}

.content-panel {
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .20);
}

.privacy-notice {
    line-height: 1.6;
}

.privacy-notice h2 {
    margin-top: 0;
}

.error-card {
    width: min(720px, 100%);
    margin: 0 auto;
}

.error-code {
    margin: 0 0 8px;
    color: #c80022;
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .06em;
}

.error-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
}

.error-description {
    max-width: 60ch;
    margin: 0;
    color: #202f43;
    font-size: 18px;
    line-height: 1.6;
}

.error-reference {
    margin: 18px 0 0;
    font-family: monospace;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.error-actions .btn {
    margin: 0;
}

.error-layout {
    display: flex;
}

.error-shell {
    width: min(1180px, calc(100% - 36px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: center;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
    font-size: 16px;
    background: white;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.required-marker {
    color: #b42318;
}

.multi-select {
    position: relative;
}

.multi-select-input {
    cursor: pointer;
}

.multi-select-dropdown {
    position: absolute;
    z-index: 10;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(11, 31, 58, .18);
}

.multi-select-dropdown label {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.multi-select-dropdown label:hover {
    background: #f2f6fb;
}

.multi-select-dropdown input[type=checkbox] {
    width: auto;
    margin: .15em 0 0;
}

label:has(input[type=checkbox]),
label:has(input[type=radio]) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    margin-bottom: 6px;
}

label:has(input[type=checkbox]) input[type=checkbox],
label:has(input[type=radio]) input[type=radio] {
    width: auto;
    padding: 0;
    margin: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    margin: 4px 0;
}

.checkbox-group label {
    margin-bottom: 0;
}

.consent-field {
    align-items: flex-start !important;
    margin: 18px 0;
    line-height: 1.45;
}

.consent-field input[type=checkbox] {
    flex: 0 0 auto;
    margin-top: .2em;
}

button,
input[type=submit] {
    cursor: pointer
}

button.btn {
    border: 0;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.btn.green {
    color: white;
    background: #058642;
}

.btn.orange {
    color: white;
    background: #e28000;
}

/* Add display values and properties since btn might also be links */
a.btn {
    display: inline-block;
    text-decoration: none;
    border: 0;
    color: white;
    background: #0a63d8;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 800;
    text-align: center;
    vertical-align: middle;
}

a.btn.green {
    background: #058642;
}

a.btn.red,
button.btn.red {
    color: white;
    background: #c80022;
}

a.btn.gray,
button.btn.gray {
    background: #6c757d;
}

.btn-sm,
a.btn-sm {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

a.btn-sm {
    color: white;
    background: #0a63d8;
    border: 0;
    transition: background .15s ease;
}

a.btn-sm:hover {
    background: #083f89;
}

.table-full .btn-sm,
.table-full a.btn-sm {
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}

.notice {
    background: #fff4d7;
    border: 1px solid #e9ce82;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.notice.success {
    background: #e3f6e9;
    border-color: #8bc69d;
    color: #155724;
}

.notice.warning {
    background: #fff4d7;
    border-color: #d5ad43;
    color: #6b4c00;
}

.notice.info {
    border-color: #83b9ed;
    background: #e7f4ff;
    color: #173e69;
}

.csv-federal-import-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border-inline-start: 5px solid #0a63d8;
}

.csv-federal-import-notice__icon {
    flex: 0 0 auto;
    font-size: 1.3rem;
    line-height: 1.2;
}

.csv-federal-import-notice p {
    margin: 3px 0 0;
    line-height: 1.45;
}

.field-warning {
    display: block;
    color: #b42318;
    font-size: .8rem;
    margin-top: .25rem;
}

.field-warning[hidden] {
    display: none;
}

.csv-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 20px;
}

.csv-import-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.csv-import-form label {
    grid-column: 1 / -1;
    margin: 0;
}

.csv-import-form .import-merge-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
    line-height: 1.35;
}

.csv-import-form .import-merge-option input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.import-report {
    margin: 0 0 18px;
}

.import-report h4 {
    margin: 0 0 10px;
}

.import-report table {
    min-width: 720px;
}

.import-report th:first-child,
.import-report td:first-child {
    width: 72px;
}

.csv-help {
    margin: 14px 0 0;
    color: #334b68;
    font-size: 14px;
    line-height: 1.45;
}

.csv-privacy {
    margin: 14px 0 0;
    font-weight: 700;
    color: #8b1a2b;
}

.registration-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.change-indicator {
    margin-left: .5rem;
    color: #c80022;
    font-weight: 600;
    font-size: 0.9rem;
}

.field-help {
    margin: 4px 0 12px;
    color: #334b68;
    font-size: .9rem;
    line-height: 1.45;
}

.form-note {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5rem;
}

.form-inline-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-inline-grow {
    flex: 1;
    min-width: 0;
}

.athlete-cleanup-form {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.athlete-cleanup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.athlete-cleanup-actions .btn {
    margin: 0;
}

.athlete-cleanup-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.athlete-cleanup-summary>div {
    padding: 14px;
    border: 1px solid #cfd7e3;
    border-radius: 10px;
    background: #f7f9fc;
}

.athlete-cleanup-summary dt {
    color: #334b68;
    font-size: .85rem;
    font-weight: 700;
}

.athlete-cleanup-summary dd {
    margin: 4px 0 0;
    font-size: 1.6rem;
    font-weight: 900;
}

.athlete-cleanup-resolution-list {
    min-width: 260px;
    margin: 0;
    padding-left: 18px;
}

.athlete-cleanup-report h3 {
    margin-top: 26px;
}

.event-editor-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.event-manager-list {
    max-height: 16rem;
    overflow-y: auto;
}

.event-manager-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-manager-list input {
    width: auto;
}

.event-payment-fieldset {
    min-width: 0;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #cfd7e3;
    border-radius: 12px;
}

.event-payment-fieldset legend {
    padding: 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
}

.registration-option-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(130px, .35fr) auto auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #dfe6f0;
    border-radius: 10px;
    background: #f7f9fc;
}

.registration-option-row label {
    margin-bottom: 6px;
}

.registration-option-default {
    align-self: center;
    margin: 22px 0 0;
    white-space: nowrap;
}

.registration-option-remove {
    align-self: center;
    margin-top: 22px;
}

.registration-option-selector {
    max-width: 560px;
    margin: 20px 0;
}

.event-registration-fees {
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.event-registration-fees li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.registration-default-badge {
    padding: 2px 7px;
    border-radius: 999px;
    color: #17385f;
    background: #dce9f8;
    font-size: .75rem;
    font-weight: 700;
}

.notice-error {
    color: #721c24;
    border-color: #f0a8af;
    background: #fbe7e9;
}

.registration-payment-summary {
    margin-top: 22px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #b7c9df;
    border-radius: 14px;
    background: #f7f9fc;
}

.registration-payment-summary h3 {
    margin-top: 0;
}

.registration-change-grid,
.sepa-payment-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.registration-change-grid>div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe6f0;
    border-radius: 10px;
    background: #fff;
}

.registration-change-grid h4,
.sepa-payment-layout h4 {
    margin: 0 0 10px;
}

.registration-change-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.registration-change-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e5ebf3;
}

.registration-change-list li:last-child {
    border-bottom: 0;
}

.registration-change-list strong {
    flex: 0 0 auto;
}

.registration-payment-totals,
.sepa-payment-details {
    margin: 18px 0;
}

.registration-payment-totals>div,
.sepa-payment-details>div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 7px 0;
    border-bottom: 1px solid #dfe6f0;
}

.registration-payment-totals dt,
.sepa-payment-details dt {
    font-weight: 700;
}

.registration-payment-totals dd,
.sepa-payment-details dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.registration-payment-totals .registration-amount-due {
    font-size: 1.15rem;
    font-weight: 800;
}

.sepa-payment-layout {
    align-items: start;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #b7c9df;
}

.epc-qr-code {
    margin: 0;
    text-align: center;
}

.epc-qr-code img {
    display: block;
    width: min(240px, 100%);
    height: auto;
    margin: 0 auto 10px;
    border: 8px solid #fff;
}

.epc-qr-code figcaption {
    font-size: .9rem;
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.row2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

table,
.table-full {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 20px;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
    outline: 3px solid #0a63d8;
    outline-offset: 2px;
}

.table-scroll table {
    min-width: 640px;
    margin-bottom: 0;
}

.table-scroll--wide table {
    min-width: 960px;
}

.table-full th,
.table-full td {
    padding: 6px 10px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #dfe6f0;
    text-align: left;
}

th {
    background: #edf3fb
}

/* Odd/even row background colors */
tr:nth-child(even) {
    background: #f8faff;
}

tr:nth-child(odd) {
    background: #ffffff;
}

tr.club-row--current {
    background: #e7f4ff !important;
}

tr.club-row--current td {
    font-weight: 600;
}

.club-badge--current {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a3775;
    background: #cce5ff;
    border-radius: 12px;
}

.club-badge--icon {
    min-width: 2rem;
    padding-inline: 6px;
    text-align: center;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 3px solid #0a63d8;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #0a63d8;
    outline-offset: 2px;
}

/* Ensure touch targets are at least 20x44 */
.main-nav a,
.submenu-item,
.club-login-info a,
button,
input[type="submit"],
a.btn,
a.btn-sm,
.event-actions a,
.event-actions button {
    min-height: 20px;
    min-width: 44px;
}

/* RESPONSIVE CSS INLINE FOR INTEGRATION */
body {
    overflow-x: hidden;
}

img,
table {
    max-width: 100%;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    white-space: nowrap;
}

table th,
table td {
    padding: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 4px;
}

.card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
}

.row,
.row2 {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.row>div,
.row2>div {
    flex: 1;
    min-width: 240px;
}

/* TABLET */
@media screen and (max-width:1024px) {
    body {
        font-size: 15px;
    }

    .card {
        padding: 14px;
    }
}

/* SMARTPHONE & GENERAL MOBILE OVERRIDES */
@media screen and (max-width:768px) {
    body {
        font-size: 16px;
        padding: 6px;
    }

    .row,
    .row2 {
        flex-direction: column;
    }

    .btn,
    a.btn {
        width: 100%;
        margin-bottom: 8px;
    }

    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 8px;
    }

    .card {
        padding: 10px;
        border-radius: 10px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* VERY SMALL SCREENS */
@media screen and (max-width:480px) {
    body {
        font-size: 15px;
    }

    .btn,
    a.btn {
        font-size: 14px;
        padding: 12px;
    }

    table {
        font-size: 12px;
    }

    .card {
        padding: 8px;
    }
}

@media(max-width:900px) {
    .top-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "left right"
            "title title";
        min-height: auto;
        text-align: center;
        padding: 8px 10px;
        overflow: visible;
        gap: 16px;
    }

    .main-title {
        grid-area: title;
        margin-top: 6px;
    }

    .left-panel {
        grid-area: left;
        display: flex;
        flex-direction: row;
        justify-content: left;
        align-items: flex-start;
        height: auto;
        gap: 8px;
    }

    .left-panel img {
        max-height: 40px;
        width: auto;
    }

    .right-panel {
        grid-area: right;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 8px;
    }

    .lang-switch {
        margin: 0;
    }

    .lang-switch select {
        min-width: 100px;
        padding: 4px 8px;
        font-size: 13px;
    }

    .club-login-info {
        justify-content: flex-end;
        margin-top: 0;
        font-size: 14px;
    }

    .site-heading-logo {
        width: 80px;
    }

    .main-title-heading {
        gap: 12px;
    }

    .main-title h1 {
        font-size: clamp(24px, 6.5vw, 34px);
    }

    .main-title p {
        font-size: clamp(8px, 1.5vw, 11px);
        letter-spacing: .35px;
    }

    .main-nav a {
        flex: 1 1 100%;
        text-align: center;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .landing-clean {
        min-height: auto;
    }

    .landing-copy {
        padding: 26px;
    }

    .info-strip,
    .row,
    .row2 {
        grid-template-columns: 1fr;
    }

    .csv-actions,
    .csv-import-form {
        grid-template-columns: 1fr;
    }

    .csv-import-form label {
        grid-column: auto;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width:700px) {
    .landing-copy {
        gap: 20px;
    }

    .landing-logo {
        width: min(260px, 80%);
        margin: 0 auto;
    }
}

@media(max-width:480px) {
    .site-heading-logo {
        width: 80px;
    }

    .main-title-heading {
        gap: 8px;
    }

    .main-title h1 {
        font-size: 23px;
    }

    .main-title p {
        font-size: 10px;
        letter-spacing: 0;
    }
}

.reset-email {
    font-size: 1.5em;
}

/* Event List Card Layout */
.event-card-public {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    gap: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #cfd7e3;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.event-poster {
    flex: 0 0 200px;
    max-width: 200px;
    min-height: 150px;
}

.event-poster-link {
    display: block;
    min-height: 150px;
    color: inherit;
    text-decoration: none;
}

.event-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.poster-pdf,
.poster-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    background: #edf3fb;
    border: 2px dashed #cfd7e3;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.poster-placeholder {
    background:
        linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)),
        url('/assets/judo-bg.jpg') center center/cover no-repeat;
}

.poster-placeholder-label {
    display: inline-block;
    padding: 8px 14px;
    border-radius: .75em;
    background: rgba(255, 255, 255, .78);
    color: #0b1f3a;
}

.event-info {
    flex: 1 1 280px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.event-info h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #071d3d;
    font-size: 22px;
}

.event-info p {
    margin-bottom: 16px;
    color: #20242a;
    line-height: 1.5;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.event-actions .btn {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 600px) {
    .event-card-public {
        flex-direction: column;
    }

    .event-poster {
        max-width: 100%;
        flex: 1;
    }
}

.submenu {
    display: flex;
    gap: 0;
    padding-top: 0;
    margin-top: 0;
}

.submenu-item {
    text-align: center;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 800;
    color: white;
    background: #083f89;
    border-left: 1px solid rgba(255, 255, 255, .16);
    transition: background .15s ease;
}

button.submenu-item {
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.submenu-item:first-child {
    border-left: 0
}

.submenu-item:hover {
    background: #0a63d8
}

.submenu-item--active {
    background: #0a63d8;
    cursor: default
}

.submenu-item--email:hover {
    background: transparent
}

.submenu-item--email {
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, .16);
    cursor: default;
    opacity: 0.85;
}

@media(max-width:900px) {
    .submenu {
        flex-direction: column;
        width: 100%;
    }

    .submenu .logout-form {
        width: 100%;
        margin: 0;
    }

    .submenu-item {
        box-sizing: border-box;
        display: block;
        width: 100%;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .submenu> :first-child .submenu-item,
    .submenu>.submenu-item:first-child {
        border-top: 0;
    }

    .submenu-item--email {
        border-left: 0;
    }
}

.event-details-card {
    overflow: visible;
}

.event-details-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
}

.event-details-poster {
    width: 100%;
    min-height: 180px;
}

.event-details-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-details-info {
    width: 100%;
}

.event-info-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    margin-bottom: 18px;
    white-space: normal;
    table-layout: auto;
}

.event-info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #dfe6f0;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: break-word;
}

.event-info-table td:first-child {
    width: 40%;
    white-space: nowrap;
    font-weight: 700;
    color: #071d3d;
}

.event-details-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}


.submenu-wrap {
    display: flex;
    justify-content: center;
    background: #083f89;
}

.event-line {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.055);
    font-size: 15px;
    flex-wrap: wrap;
}

.upcoming-events-list {
    display: grid;
    gap: 10px;
}

.upcoming-events-list .event-line {
    margin-bottom: 0;
}

.event-line__summary {
    flex: 1 1 280px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.event-closed-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    background: #6c757d;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.event-closed-badge--poster {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.event-closed-badge--corner {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: .75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    vertical-align: middle;
}

.status-badge--pending {
    background: #f0ad4e;
    color: #3d2c00;
}

.status-badge--approved {
    background: #28a745;
    color: #fff;
}

.event-details-btn {
    margin-left: auto;
    white-space: nowrap;
}

.next-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.next-event-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.next-event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.next-event-item .location {
    color: #555;
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s;
    background: transparent;
    font-family: inherit;
}

[data-client-pagination] tbody > tr[hidden] {
    display: none !important;
}

.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
}

.table-sort-button:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 3px;
    border-radius: 3px;
}

.table-sort-indicator {
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 0.8em;
}

.pagination-link:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.pagination-link.active {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
    font-weight: 600;
}

.pagination-link.disabled {
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-link.disabled:hover {
    background: transparent;
    border-color: #ddd;
}

.count-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e9ecef;
    border-radius: 12px;
    color: #495057;
    vertical-align: middle;
}

.next-event-details {
    margin-top: 8px;
    padding: 8px;
    background: #f7f7f7;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}

/* Checkbox dropdown styles */
.checkbox-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    text-align: left;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.8em;
}

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
    margin-bottom: 4px;
}

.dropdown-item {
    display: block;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #f7f9fc;
}

.table-actions-cell {
    white-space: normal;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.table-actions form {
    margin: 0;
}

.table-actions a.table-action-icon,
.table-actions button.table-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    inline-size: 44px;
    block-size: 44px;
    min-inline-size: 44px;
    padding: 2px;
    margin: 0;
    background: #e5e7eb;
    color: #1f2937;
    font-size: 1.6rem;
    line-height: 1;
}

.table-actions a.table-action-icon:hover,
.table-actions button.table-action-icon:hover {
    background: #d1d5db;
}

.belt-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 10px 4px 6px;
    border: 1px solid #d4deeb;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f3f6fa);
    color: #24364f;
    box-shadow:
        0 1px 2px rgba(11, 31, 58, .08),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}

.belt-badge__visual {
    position: relative;
    display: inline-block;
    inline-size: 38px;
    block-size: 19px;
    flex: 0 0 38px;
}

.belt-badge__band,
.belt-badge__knot {
    position: absolute;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .42);
    background: #e5e7eb;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .32),
        0 1px 2px rgba(15, 23, 42, .2);
}

.belt-badge__band {
    inset: 6px 0 auto;
    block-size: 9px;
    border-radius: 3px;
    transform: skewX(-5deg);
}

.belt-badge__knot {
    inset: 2px auto auto 50%;
    inline-size: 11px;
    block-size: 16px;
    border-radius: 3px;
    transform: translateX(-50%) rotate(2deg);
}

.belt-badge__segment {
    min-width: 0;
    flex: 1 1 0;
}

.belt-badge__segment--c-f5f5f5 {
    background-color: #f5f5f5;
}

.belt-badge__segment--c-ffc107 {
    background-color: #ffc107;
}

.belt-badge__segment--c-fd7e14 {
    background-color: #fd7e14;
}

.belt-badge__segment--c-4caf50 {
    background-color: #4caf50;
}

.belt-badge__segment--c-214284 {
    background-color: #214284;
}

.belt-badge__segment--c-795548 {
    background-color: #795548;
}

.belt-badge__segment--c-424242 {
    background-color: #424242;
}

.belt-badge__segment--c-d32f2f {
    background-color: #d32f2f;
}

.belt-badge__segment--c-9ca3af {
    background-color: #9ca3af;
}

.belt-badge__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-full .belt-badge {
    min-height: 27px;
    padding-block: 3px;
    font-size: .72rem;
}

.table-full .belt-badge__visual {
    inline-size: 32px;
    flex-basis: 32px;
}

/* Desktop tables that become cards on narrow screens */
.admin-list-page {
    overflow: visible;
}

.admin-list-heading {
    margin-bottom: 18px;
}

.admin-list-heading h2 {
    margin: 0;
}

.admin-list-heading--with-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.admin-list-eyebrow {
    margin: 0 0 5px;
    color: #526176;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-heading-actions .btn {
    margin: 0;
}

.admin-list-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #b7c4d6;
    border-radius: 12px;
    background: #f7f9fc;
}

.admin-list-table-wrap {
    margin-bottom: 16px;
}

.admin-list-table {
    font-size: .88rem;
}

.admin-list-table th {
    vertical-align: bottom;
    white-space: nowrap;
}

.admin-list-table td {
    vertical-align: top;
    line-height: 1.4;
}

.admin-list-table__primary {
    min-width: 180px;
    color: #071d3d;
    font-weight: 800;
}

.admin-list-table td>a:not(.btn) {
    overflow-wrap: anywhere;
}

.admin-code-badge,
.admin-date-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0a3775;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
}

.admin-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8edf3;
    color: #425269;
    font-size: .78rem;
    font-weight: 800;
}

.admin-status-chip.is-positive {
    background: #dff5e8;
    color: #17663a;
}

.admin-status-chip.is-closed {
    background: #fde6e9;
    color: #9f1530;
}

.admin-table-actions {
    min-width: 150px;
    gap: 6px;
}

.admin-table-actions form {
    margin: 0;
}

.admin-table-actions .btn,
.admin-table-actions a.btn {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin: 0;
    white-space: nowrap;
}

.admin-belt-value {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Public club directory */
.public-club-directory {
    overflow: visible;
}

.public-club-directory__heading {
    margin-bottom: 18px;
}

.public-club-directory__heading h3 {
    margin: 0;
}

.public-club-table-wrap {
    margin-bottom: 16px;
}

.public-club-table th:first-child,
.public-club-table td:first-child {
    width: 72px;
}

.public-club-table__name {
    color: #071d3d;
    font-weight: 800;
}

.public-club-table__name .club-badge--current {
    margin-left: 8px;
    vertical-align: middle;
}

.public-club-index {
    color: #657287;
    font-size: .78rem;
    font-weight: 800;
}

.public-club-code {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0a3775;
    font-size: .78rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.responsive-table th,
.responsive-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.responsive-table input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
}

.responsive-table {
    font-size: .86rem;
}

.responsive-table th,
.responsive-table td {
    padding: 7px 9px;
    line-height: 1.35;
    vertical-align: middle;
}

.responsive-table th {
    color: #31435a;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .025em;
}

.responsive-table tbody tr {
    transition: background .15s ease, box-shadow .15s ease;
}

.responsive-table tbody tr:hover {
    background: #f0f6ff;
}

.numeric-cell {
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.table-density-value {
    display: inline;
}

.card-density-value,
.status-symbol__label {
    display: none;
}

.gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #334155;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
}

.gender-badge--male {
    background: #dbeafe;
    color: #1d4ed8;
}

.gender-badge--female {
    background: #fce7f3;
    color: #be185d;
}

.card-density-value .gender-badge {
    margin-inline-end: 5px;
}

.status-symbol {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    line-height: 1;
}

.table-view-toolbar {
    display: none;
}

.table-view-toggle {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #c7d3e2;
    border-radius: 8px;
    background: #f7f9fc;
    color: #29415f;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

.table-view-toggle:hover {
    border-color: #92a8c2;
    background: #eaf2fc;
}

[data-inline-edit-row] [data-inline-editor] {
    display: none;
}

[data-inline-edit-row].is-inline-editing [data-inline-display] {
    display: none !important;
}

[data-inline-edit-row].is-inline-editing .inline-edit-control {
    display: block;
}

[data-inline-edit-row].is-inline-editing .inline-edit-stack,
[data-inline-edit-row].is-inline-editing .inline-edit-check,
[data-inline-edit-row].is-inline-editing .inline-edit-actions {
    display: flex;
}

[data-inline-edit-row].is-inline-editing {
    background: #fff8df !important;
    box-shadow: inset 3px 0 #d89500;
}

.inline-edit-control {
    width: min(220px, 100%);
    min-width: 82px;
    min-height: 34px;
    margin: 0;
    padding: 5px 7px;
    border: 1px solid #9eb1c8;
    border-radius: 7px;
    background: #fff;
    color: #0b1f3a;
    font: inherit;
}

.inline-edit-control--compact {
    width: min(150px, 100%);
}

.inline-edit-control--date {
    width: 142px;
}

.inline-edit-control--number {
    width: 76px;
}

.inline-edit-stack {
    width: min(200px, 100%);
    flex-direction: column;
    gap: 5px;
}

.inline-edit-stack .inline-edit-control {
    width: 100%;
}

.inline-edit-check {
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.inline-edit-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

.table-actions a.table-action-button,
.table-actions button.table-action-button {
    display: inline-flex;
    inline-size: 32px;
    block-size: 32px;
    min-inline-size: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 7px;
    font-size: 1rem;
    line-height: 1;
}

.table-action-label {
    display: none;
}

.inline-edit-actions {
    min-width: 108px;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

@media (min-width: 769px) {
    .table-scroll--responsive {
        border: 1px solid #d4deeb;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(11, 31, 58, .06);
    }

    .table-scroll--responsive table.responsive-table {
        margin-bottom: 0;
    }

    .table-view-toolbar {
        position: sticky;
        left: 0;
        z-index: 2;
        display: flex;
        width: 100%;
        justify-content: flex-end;
        padding: 7px 8px;
        border-bottom: 1px solid #e1e8f1;
        background: #fbfcfe;
    }

    .table-scroll--responsive.is-card-view {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .is-card-view .table-view-toolbar {
        padding: 0 0 8px;
        border: 0;
        background: transparent;
    }

    .table-scroll--responsive.is-card-view table.responsive-table {
        display: block;
        min-width: 0;
        background: transparent;
    }

    .is-card-view .responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .is-card-view .responsive-table tbody {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
        gap: 14px;
    }

    .is-card-view .responsive-table tbody tr {
        display: block;
        width: 100%;
        overflow: hidden;
        border: 1px solid #d8e1ed;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(11, 31, 58, .07);
    }

    .is-card-view .responsive-table tbody tr.club-row--current {
        border-color: #6e9dd6;
        background: #eef6ff !important;
    }

    .is-card-view .responsive-table tbody td {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr);
        gap: 12px;
        align-items: start;
        padding: 9px 12px;
        border: 0;
        border-bottom: 1px solid #e3e9f1;
        background: transparent;
        text-align: left;
    }

    .is-card-view .responsive-table tbody td:last-child {
        border-bottom: 0;
    }

    .is-card-view .responsive-table tbody td::before {
        content: attr(data-label);
        color: #526176;
        font-size: .76rem;
        font-weight: 800;
        line-height: 1.4;
    }

    .is-card-view .responsive-table tbody td.responsive-table__empty {
        display: block;
        grid-column: 1 / -1;
        padding: 16px;
        text-align: center;
    }

    .is-card-view .responsive-table tbody td.responsive-table__empty::before {
        display: none;
    }

    .is-card-view .admin-list-table__primary {
        min-width: 0;
    }

    .is-card-view .table-density-value {
        display: none;
    }

    .is-card-view .card-density-value,
    .is-card-view .status-symbol__label {
        display: inline;
    }

    .is-card-view .responsive-table tbody td.table-actions-cell {
        grid-template-columns: 1fr;
    }

    .is-card-view .responsive-table .table-actions:not([data-inline-editor]),
    .is-card-view .responsive-table [data-inline-edit-row].is-inline-editing .inline-edit-actions {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
        gap: 6px;
    }

    .is-card-view .responsive-table .table-actions form {
        width: 100%;
    }

    .is-card-view .responsive-table .table-actions a.table-action-button,
    .is-card-view .responsive-table .table-actions button.table-action-button {
        inline-size: 100%;
        block-size: auto;
        min-inline-size: 0;
        min-height: 40px;
        justify-content: flex-start;
        gap: 7px;
        padding: 7px 9px;
        text-align: left;
        white-space: normal;
    }

    .is-card-view .responsive-table .table-action-label {
        display: inline;
        flex: 1;
        font-size: .78rem;
        font-weight: 800;
        line-height: 1.2;
    }
}

/* Theme selector */
:root {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 38px;
    block-size: 38px;
    min-width: 38px;
    padding: 0;
    border: 1px solid #cfd7e3;
    border-radius: 11px;
    background: linear-gradient(180deg, #fff, #f2f6fb);
    color: #071d3d;
    box-shadow:
        0 2px 5px rgba(11, 31, 58, .1),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    font: inherit;
    line-height: 1;
    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.theme-toggle:hover {
    border-color: #aebed2;
    background: #edf3fb;
    box-shadow:
        0 4px 9px rgba(11, 31, 58, .14),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transform: translateY(-1px);
}

.theme-toggle:active {
    box-shadow: 0 1px 3px rgba(11, 31, 58, .12);
    transform: translateY(0);
}

.theme-toggle:focus-visible {
    outline: 3px solid #0a63d8;
    outline-offset: 2px;
}

.theme-toggle-icon {
    display: block;
    inline-size: 22px;
    block-size: 22px;
    transition: transform .2s ease;
}

.theme-toggle-icon [data-theme-icon="dark"],
html[data-theme="dark"] .theme-toggle-icon [data-theme-icon="light"] {
    display: none;
}

html[data-theme="dark"] .theme-toggle-icon [data-theme-icon="dark"] {
    display: inline;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(7deg) scale(1.04);
}

html[data-theme="dark"] .theme-toggle:hover .theme-toggle-icon {
    transform: rotate(-7deg) scale(1.04);
}

.recap-summary {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f7f9fc;
}

.recap-summary > h4 {
    margin-top: 0;
}

.event-entries-summary {
    position: relative;
}

.event-entries-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.table-filter-form {
    display: grid;
    gap: 12px;
    margin: 18px 0 12px;
    padding: 14px;
    border: 1px solid #d8e1ed;
    border-radius: 10px;
    background: #f7f9fc;
}

.table-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.table-filter-field {
    min-width: 0;
}

.table-filter-field label {
    margin-bottom: 6px;
}

.table-filter-field input,
.table-filter-field select {
    width: 100%;
    margin: 0;
}

.table-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.opponent-groups {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.opponent-group {
    min-width: 0;
    padding: 16px;
    border: 1px solid #d8e1ed;
    border-radius: 10px;
    background: #f7f9fc;
}

.opponent-group h3 {
    margin: 0 0 8px;
}

.closed-event-club-entries__count {
    color: #526176;
    font-weight: 700;
}

.entries-club-breakdowns {
    display: grid;
    gap: 4px;
}

.entries-breakdown {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e9ef;
}

.entries-breakdown__bars {
    display: block;
    width: 100%;
    height: 100%;
}

.entries-category-weight-chart {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #d8e1ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(11, 31, 58, .08);
}

.entries-category-weight-chart__title {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
}

.entries-category-weight-chart__rows {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.entries-category-weight-chart__row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.entries-category-weight-chart__heading {
    margin: 0;
    line-height: 1.3;
}

.entries-category-weight-chart__heading strong,
.entries-category-weight-chart__heading span {
    display: block;
}

.entries-category-weight-chart__heading span {
    margin-top: 3px;
    color: #526176;
    font-size: .8rem;
}

.entries-category-weight-chart__content {
    min-width: 0;
}

.entries-category-weight-chart__track {
    display: block;
    width: 100%;
    height: 30px;
    overflow: hidden;
    border-radius: 8px;
    background: #e8edf4;
}

.entries-category-weight-chart__bars {
    display: block;
    width: 100%;
    height: 100%;
}

.entries-category-weight-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 8px 0 0;
    padding: 0;
    color: #526176;
    font-size: .78rem;
    line-height: 1.3;
    list-style: none;
}

.entries-category-weight-chart__legend li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.entries-category-weight-chart__swatch {
    flex: 0 0 11px;
    width: 11px;
    height: 11px;
    border-radius: 2px;
    overflow: hidden;
}

.entries-category-weight-chart__swatch svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

@media (max-width: 700px) {
    .table-filter-actions .btn {
        flex: 1 1 150px;
    }

    .entries-category-weight-chart {
        padding: 14px;
    }

    .entries-category-weight-chart__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .entries-category-weight-chart__track {
        height: 24px;
    }
}

.entries-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 20px;
}

.entries-chart-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d8e1ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(11, 31, 58, .08);
}

.entries-chart-card__title {
    min-height: 2.5em;
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
}

.entries-chart-card__visual {
    display: flex;
    justify-content: center;
}

.entries-chart__pie {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.entries-chart__legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 14px 0 0;
    padding: 0;
    font-size: .85rem;
    list-style: none;
}

.entries-chart__legend li {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.3;
}

.entries-chart__swatch {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin-top: 1px;
    border-radius: 2px;
    overflow: hidden;
}

.entries-chart__swatch svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.entries-chart__swatch--bordered {
    border: 1px solid #aeb8c5;
}

html[data-theme="dark"] body {
    color: #e7edf7;
    background:
        linear-gradient(90deg, rgba(2, 10, 25, .96) 0%, rgba(4, 19, 43, .88) 42%, rgba(7, 25, 52, .9) 100%),
        url('/assets/judo-bg.jpg') center center/cover no-repeat fixed;
}

html[data-theme="dark"] .top-hero {
    background: linear-gradient(90deg, #101d31 0%, #162842 50%, #101d31 100%);
    color: #edf3fc;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .main-title h1,
html[data-theme="dark"] .club-login-info,
html[data-theme="dark"] .event-info h3,
html[data-theme="dark"] .event-info-table td:first-child {
    color: #edf3fc;
}

html[data-theme="dark"] .main-title p,
html[data-theme="dark"] .club-login-info a,
html[data-theme="dark"] .logout-link,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .page-shell a:not(.btn):not(.btn-sm) {
    color: #a9caff;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .lang-switch select,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    border-color: #405675;
    background: #172841;
    color: #edf3fc;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .multi-select-dropdown label:hover,
html[data-theme="dark"] .dropdown-item:hover {
    background: #223958;
}

html[data-theme="dark"] .theme-toggle {
    background: linear-gradient(180deg, #223958, #172841);
    box-shadow:
        0 2px 7px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .theme-toggle:hover {
    border-color: #657e9f;
    background: #294362;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .1);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .content-panel,
html[data-theme="dark"] .event-card-public,
html[data-theme="dark"] .event-line {
    background: rgba(17, 30, 50, .94);
    border-color: #405675;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .content-panel {
    background: rgba(17, 30, 50, .88);
}

html[data-theme="dark"] .admin-list-table__primary,
html[data-theme="dark"] .public-club-table__name {
    color: #edf3fc;
}

html[data-theme="dark"] .admin-list-eyebrow {
    color: #afbed2;
}

html[data-theme="dark"] .admin-code-badge,
html[data-theme="dark"] .admin-date-badge {
    background: #294767;
    color: #dce9fa;
}

html[data-theme="dark"] .admin-status-chip {
    background: #35475e;
    color: #dce9fa;
}

html[data-theme="dark"] .admin-status-chip.is-positive {
    background: #194b34;
    color: #c7f0d2;
}

html[data-theme="dark"] .admin-status-chip.is-closed {
    background: #562a33;
    color: #ffd3d7;
}

html[data-theme="dark"] .admin-list-empty {
    border-color: #526b8d;
    background: #203653;
}

html[data-theme="dark"] .public-club-index {
    color: #afbed2;
}

html[data-theme="dark"] .public-club-code {
    background: #294767;
    color: #dce9fa;
}

html[data-theme="dark"] .belt-badge {
    border-color: #526b8d;
    background: linear-gradient(180deg, #29415f, #20344f);
    color: #edf3fc;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .belt-badge__band,
html[data-theme="dark"] .belt-badge__knot {
    border-color: rgba(255, 255, 255, .5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .24),
        0 1px 3px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .gender-badge {
    background: #3b4758;
    color: #e2e8f0;
}

html[data-theme="dark"] .gender-badge--male {
    background: #1e3a5f;
    color: #bfdbfe;
}

html[data-theme="dark"] .gender-badge--female {
    background: #5b2945;
    color: #fbcfe8;
}

html[data-theme="dark"] .recap-summary {
    border: 1px solid #405675;
    background: #203653;
}

html[data-theme="dark"] .entries-chart-card {
    border-color: #526b8d;
    background: #172841;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .table-filter-form {
    border-color: #405675;
    background: #203653;
}

html[data-theme="dark"] .opponent-group {
    border-color: #405675;
    background: #172841;
}

html[data-theme="dark"] .entries-category-weight-chart {
    border-color: #526b8d;
    background: #172841;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .entries-category-weight-chart__track {
    background: #314865;
}

html[data-theme="dark"] .entries-category-weight-chart__heading span,
html[data-theme="dark"] .entries-category-weight-chart__legend {
    color: #afbed2;
}

html[data-theme="dark"] .entries-chart__swatch--bordered {
    border-color: #8496ad;
}

html[data-theme="dark"] .entries-breakdown {
    background: #405675;
}

html[data-theme="dark"] .error-description,
html[data-theme="dark"] .event-info p,
html[data-theme="dark"] .csv-help,
html[data-theme="dark"] .closed-event-club-entries__count,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .next-event-item .location {
    color: #c4d1e2;
}

html[data-theme="dark"] .multi-select-dropdown,
html[data-theme="dark"] .dropdown-menu {
    border-color: #405675;
    background: #172841;
    color: #edf3fc;
}

html[data-theme="dark"] .poster-pdf {
    border-color: #526b8d;
    background: #203653;
}

html[data-theme="dark"] .poster-placeholder {
    border-color: #526b8d;
    background:
        linear-gradient(rgba(3, 14, 32, .58), rgba(3, 14, 32, .58)),
        url('/assets/judo-bg.jpg') center center/cover no-repeat;
}

html[data-theme="dark"] .poster-placeholder-label {
    background: rgba(10, 25, 48, .84);
    color: #edf3fc;
}

html[data-theme="dark"] table,
html[data-theme="dark"] .table-full {
    background: #172841;
}

html[data-theme="dark"] th {
    background: #243b5d;
}

html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .event-info-table td,
html[data-theme="dark"] .next-event-item {
    border-color: #405675;
}

html[data-theme="dark"] tr:nth-child(even) {
    background: #1b2f4d;
}

html[data-theme="dark"] tr:nth-child(odd) {
    background: #172841;
}

html[data-theme="dark"] tr.club-row--current {
    background: #203e63 !important;
}

html[data-theme="dark"] .responsive-table th {
    color: #dce9fa;
}

html[data-theme="dark"] .responsive-table tbody tr:hover {
    background: #213a5c;
}

html[data-theme="dark"] .table-scroll--responsive,
html[data-theme="dark"] .table-view-toolbar {
    border-color: #405675;
    background: #172841;
}

html[data-theme="dark"] .table-view-toggle {
    border-color: #526b8d;
    background: #29415f;
    color: #edf3fc;
}

html[data-theme="dark"] .table-view-toggle:hover {
    border-color: #6c88ad;
    background: #385778;
}

html[data-theme="dark"] .inline-edit-control {
    border-color: #6680a3;
    background: #12243b;
    color: #edf3fc;
}

html[data-theme="dark"] [data-inline-edit-row].is-inline-editing {
    background: #473b1d !important;
    box-shadow: inset 3px 0 #e0aa32;
}

html[data-theme="dark"] .is-card-view .table-view-toolbar,
html[data-theme="dark"] .table-scroll--responsive.is-card-view {
    background: transparent;
}

html[data-theme="dark"] .is-card-view .responsive-table tbody tr {
    border-color: #405675;
    background: #172841;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .is-card-view .responsive-table tbody tr.club-row--current {
    border-color: #668cbd;
    background: #203e63 !important;
}

html[data-theme="dark"] .is-card-view .responsive-table tbody td {
    border-color: #405675;
}

html[data-theme="dark"] .is-card-view .responsive-table tbody td::before {
    color: #afbed2;
}

html[data-theme="dark"] .club-badge--current,
html[data-theme="dark"] .count-badge {
    color: #dce9fa;
    background: #294767;
}

html[data-theme="dark"] .notice {
    color: #f8e3a0;
    border-color: #896e24;
    background: #4a3c17;
}

html[data-theme="dark"] .notice.success {
    color: #c7f0d2;
    border-color: #43825a;
    background: #193e2a;
}

html[data-theme="dark"] .notice.warning {
    color: #f8e3a0;
    border-color: #896e24;
    background: #4a3c17;
}

html[data-theme="dark"] .notice.info {
    color: #dce9fa;
    border-color: #527da9;
    background: #203e63;
}

html[data-theme="dark"] .notice-error {
    color: #ffd3d7;
    border-color: #9d4f5a;
    background: #4b2229;
}

html[data-theme="dark"] .event-payment-fieldset,
html[data-theme="dark"] .athlete-cleanup-summary>div,
html[data-theme="dark"] .registration-option-row,
html[data-theme="dark"] .registration-payment-summary,
html[data-theme="dark"] .registration-change-grid>div,
html[data-theme="dark"] .registration-change-list li,
html[data-theme="dark"] .registration-payment-totals>div,
html[data-theme="dark"] .sepa-payment-details>div,
html[data-theme="dark"] .sepa-payment-layout {
    border-color: #405675;
}

html[data-theme="dark"] .registration-option-row,
html[data-theme="dark"] .athlete-cleanup-summary>div,
html[data-theme="dark"] .registration-payment-summary {
    background: #203653;
}

html[data-theme="dark"] .athlete-cleanup-summary dt {
    color: #c4d1e2;
}

html[data-theme="dark"] .registration-change-grid>div {
    background: #172841;
}

html[data-theme="dark"] .registration-default-badge {
    color: #dce9fa;
    background: #294767;
}

html[data-theme="dark"] .pagination-link {
    border-color: #526b8d;
    color: #dce9fa;
}

html[data-theme="dark"] .pagination-link:hover {
    border-color: #6c88ad;
    background: #294767;
}

html[data-theme="dark"] .pagination-link.disabled {
    color: #8496ad;
}

html[data-theme="dark"] .pagination-link.disabled:hover {
    border-color: #526b8d;
    background: transparent;
}

html[data-theme="dark"] .table-sort-indicator {
    color: #adb5bd;
}

html[data-theme="dark"] .next-event-details {
    background: #203653;
}

html[data-theme="dark"] .table-actions a.table-action-icon,
html[data-theme="dark"] .table-actions button.table-action-icon {
    background: #29415f;
    color: #edf3fc;
}

html[data-theme="dark"] .table-actions a.table-action-icon:hover,
html[data-theme="dark"] .table-actions button.table-action-icon:hover {
    background: #385778;
}

@media (max-width: 768px) {
    .table-scroll--responsive {
        overflow: visible;
        overscroll-behavior-inline: auto;
    }

    .table-scroll--responsive:focus-visible {
        outline-offset: 4px;
    }

    .table-scroll--responsive table.responsive-table {
        display: block;
        min-width: 0;
        margin: 0;
        background: transparent;
    }

    .responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .responsive-table.table-is-sortable thead {
        position: static;
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0 0 10px;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .responsive-table.table-is-sortable thead tr {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .responsive-table.table-is-sortable thead th {
        display: block;
        width: auto;
        padding: 6px 9px;
        border: 1px solid #cbd6e4;
        border-radius: 999px;
        background: #eef3f8;
        font-size: .78rem;
    }

    .responsive-table.table-is-sortable thead th[data-sortable="false"] {
        display: none;
    }

    .responsive-table.table-is-sortable .table-sort-button {
        gap: 5px;
        width: auto;
    }

    .responsive-table tbody {
        display: grid;
        width: 100%;
        gap: 12px;
    }

    .responsive-table tbody tr {
        display: block;
        width: 100%;
        overflow: hidden;
        border: 1px solid #d8e1ed;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(11, 31, 58, .06);
    }

    .responsive-table tbody tr.club-row--current {
        border-color: #6e9dd6;
        background: #eef6ff !important;
    }

    .responsive-table tbody td {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(112px, .82fr) minmax(0, 1.18fr);
        gap: 12px;
        align-items: start;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid #e3e9f1;
        background: transparent;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .responsive-table tbody td:last-child {
        border-bottom: 0;
    }

    .responsive-table tbody td::before {
        content: attr(data-label);
        color: #526176;
        font-size: .76rem;
        font-weight: 800;
        line-height: 1.4;
    }

    .table-density-value {
        display: none;
    }

    .card-density-value,
    .status-symbol__label {
        display: inline;
    }

    .numeric-cell {
        text-align: left;
    }

    .inline-edit-control,
    .inline-edit-control--compact,
    .inline-edit-control--date,
    .inline-edit-control--number,
    .inline-edit-stack {
        width: 100%;
    }

    .table-actions a.table-action-button,
    .table-actions button.table-action-button {
        inline-size: 100%;
        block-size: auto;
        min-inline-size: 0;
        min-height: 44px;
        justify-content: flex-start;
        gap: 7px;
        padding: 8px 10px;
        font-size: 1.2rem;
        text-align: left;
        white-space: normal;
    }

    .responsive-table tbody td.table-actions-cell {
        grid-template-columns: 1fr;
    }

    .responsive-table .table-actions:not([data-inline-editor]),
    .responsive-table [data-inline-edit-row].is-inline-editing .inline-edit-actions {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
        gap: 6px;
    }

    .responsive-table .table-actions form {
        width: 100%;
    }

    .responsive-table .table-action-label {
        display: inline;
        flex: 1;
        font-size: .82rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .responsive-table tbody td.responsive-table__empty {
        display: block;
        padding: 16px;
        text-align: center;
    }

    .responsive-table tbody td.responsive-table__empty::before {
        display: none;
    }

    .responsive-table .table-actions {
        justify-content: flex-start;
    }

    .event-info-table,
    .event-info-table tbody {
        display: block;
        width: 100%;
    }

    .event-info-table tr {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #dfe6f0;
        background: transparent !important;
    }

    .event-info-table tr:last-child {
        border-bottom: 0;
    }

    .event-info-table td,
    .event-info-table td:first-child {
        display: block;
        width: 100%;
        padding: 2px 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html[data-theme="dark"] .responsive-table tbody tr {
        border-color: #405675;
        background: #172841;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    }

    html[data-theme="dark"] .responsive-table tbody tr.club-row--current {
        border-color: #668cbd;
        background: #203e63 !important;
    }

    html[data-theme="dark"] .responsive-table tbody td,
    html[data-theme="dark"] .event-info-table tr {
        border-color: #405675;
    }

    html[data-theme="dark"] .responsive-table tbody td::before {
        color: #afbed2;
    }

    html[data-theme="dark"] .responsive-table.table-is-sortable thead th {
        border-color: #526b8d;
        background: #203653;
    }

    .admin-list-heading--with-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-heading-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-list-table__primary {
        min-width: 0;
    }

    .admin-table-actions {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-table-actions form,
    .admin-table-actions .btn,
    .admin-table-actions a.btn {
        width: 100%;
    }

    .public-club-table th:first-child,
    .public-club-table td:first-child {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-controls {
        gap: 4px;
    }

    .lang-switch select {
        width: 100px;
        min-width: 100px;
    }

    .registration-option-row,
    .registration-change-grid,
    .sepa-payment-layout {
        grid-template-columns: 1fr;
    }

    .registration-option-default,
    .registration-option-remove {
        margin-top: 0;
    }

    .responsive-table tbody td {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-table-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 240px) {
    .entries-chart__legend {
        grid-template-columns: 1fr;
    }
}
.club-entries-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.club-entries-heading h2 {
    margin: 0;
}

.entry-data-review details {
    margin-block: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #888);
    border-radius: .5rem;
}

.entry-data-review summary {
    cursor: pointer;
    font-weight: 600;
}

.entry-data-review summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
