/* --- Läufe starten/beenden: Kachel-UI --- */
.lbwsw-races-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 0 0 0;
}
.lbwsw-race-kachel {
    border: 2px solid #bcd0e8;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
    box-shadow: 0 8px 24px rgba(19, 74, 159, 0.08);
    padding: 16px 18px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
    position: relative;
}
.lbwsw-race-kachel-head {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a2c4a;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.lbwsw-race-kachel-head.is-active {
    color: #166534;
    background: #e0fce2;
    border-radius: 8px;
    padding: 2px 8px;
}
.lbwsw-race-kachel-head.is-ended {
    color: #7c2d12;
    background: #fef2f2;
    border-radius: 8px;
    padding: 2px 8px;
}
.lbwsw-race-kachel-title {
    font-size: 1.08em;
    font-weight: 900;
    flex: 1 1 auto;
}
.lbwsw-race-kachel-status {
    font-size: 0.98em;
    font-weight: 700;
}
.lbwsw-race-kachel-times {
    display: flex;
    gap: 18px;
    font-size: 0.98em;
    color: #385376;
    margin-bottom: 4px;
}
.lbwsw-race-kachel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.lbwsw-race-kachel-announcement-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #385376;
}

.lbwsw-race-announcement {
    width: 100%;
    min-height: 86px;
    border: 1px solid #bfd0e8;
    border-radius: 10px;
    padding: 10px 12px;
    resize: vertical;
    font: inherit;
    color: #17365e;
    background: rgba(255, 255, 255, 0.96);
}

.lbwsw-race-announcement:disabled {
    opacity: 0.72;
}

.lbwsw-race-btn-start,
.lbwsw-race-btn-end {
    border: 1.5px solid #21406d;
    background: linear-gradient(180deg, #e0e7ef 0%, #c9d4e5 100%);
    color: #1a2c4a;
    font-weight: 800;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lbwsw-race-btn-start:disabled,
.lbwsw-race-btn-end:disabled {
    opacity: 0.5;
    cursor: default;
}
.lbwsw-race-btn-start {
    border-color: #15803d;
    background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 100%);
    color: #166534;
}
.lbwsw-race-btn-end {
    border-color: #b91c1c;
    background: linear-gradient(180deg, #fecaca 0%, #f87171 100%);
    color: #991b1b;
}
.lbwsw-race-override {
    margin-left: 6px;
    accent-color: #f59e0b;
}
.lbwsw-races-empty {
    text-align: center;
    color: #7b8794;
    font-size: 1.1em;
    padding: 24px 0;
}
.lbwsw-migration-led {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lbwsw-migration-led--green {
    background: #10b981;
    border-color: #059669;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
}

.lbwsw-migration-led--red {
    background: #ef4444;
    border-color: #dc2626;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
}

.lbwsw-migration-led--warning {
    background: #f59e0b;
    border-color: #d97706;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.6);
}

.lbwsw-migration-led--disabled {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.lbwsw-migration-status-text {
    display: inline-block;
    margin-left: 0;
    font-size: 12px;
    line-height: 1.2;
    color: #374151;
    vertical-align: middle;
}

.lbwsw-migration-status-line {
    min-height: 24px;
    width: 100%;
    max-width: 360px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.lbwsw-migration-status-text.is-error {
    color: #b91c1c;
    font-weight: 600;
}

.lbwsw-migration-warning {
    margin-left: 0;
    padding: 1px 8px;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    line-height: 1.6;
    cursor: pointer;
}

.lbwsw-migration-conflicts-info {
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    font-size: 12px;
}

.lbwsw-migration-warning.is-blinking {
    animation: lbwswMigrationWarnBlink 1s ease-in-out infinite;
}

.lbwsw-migration-conflicts-dialog {
    width: min(760px, 92vw);
    border: 0;
    border-radius: 12px;
    padding: 0;
}

.lbwsw-migration-conflicts-shell {
    padding: 14px;
}

.lbwsw-migration-conflicts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lbwsw-migration-conflict-row {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    background: #fffbeb;
}

.lbwsw-migration-conflict-class {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.5;
    color: #7c2d12;
    background: #ffedd5;
    border: 1px solid #fdba74;
}

.lbwsw-migration-conflict-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

@keyframes lbwswMigrationWarnBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.lbwsw-migration-debug {
    display: none;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    max-width: 420px;
}

.lbwsw-migration-debug.is-visible {
    display: inline-block;
}

.lbwsw-migration-debug--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.lbwsw-checkin {
    border: 1px solid #c9d4e5;
    border-radius: 10px;
    padding: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    font-size: 12px;
    line-height: 1.2;
}

/* Spezifische font-size Einträge - nur für Tabellen und Tabs */
.lbwsw-table th,
.lbwsw-table td {
    font-size: 0.7rem;
}

.lbwsw-checkin__tab {
    font-size: 0.7rem;
}

.lbwsw-checkin__header {
    display: flex;
    align-items: start;
    gap: 8px;
    width: 100%;
    height: 27vh;
    min-height: 20vh;
    max-height: 30vh;
    overflow-y: hidden;
    overflow-x: hidden;
}

.lbwsw-checkin__header h2 {
    margin: 0;
    font-size: 1rem;
}

.lbwsw-checkin__header-left {
    display: grid;
    grid-template-rows: 30% 46% 20%;
    gap: 4px;
    width: 32%;
    height: 100%;
    max-width: 32%;
    min-width: 210px;
    container-type: size;
}

.lbwsw-checkin__header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    min-height: 0;
}

.lbwsw-checkin__header-live-stack {
    display: flex;
    /*flex-direction: column;*/
    gap: 4px;
    min-height: 0;
}

.lbwsw-checkin__header-clock-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lbwsw-checkin__header-center {
    width: 68%;
    flex: 0 0 68%;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    justify-content: stretch;
    gap: 4px;
    height: 100%;
    min-height: 0;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid #c7d6ea;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(19, 74, 159, 0.08);
}

/* Safety net for cached old markup: the live clock must never render inside header-center. */
.lbwsw-checkin__header-center #lbwsw-live-clock {
    display: none !important;
}

.lbwsw-checkin__header-left #lbwsw-live-clock {
    display: block !important;
}



.lbwsw-checkin__center-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}

.lbwsw-checkin__center-row-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    align-content: stretch;
    gap: 3px;
    min-height: 0;
    height: 100%;
}

.lbwsw-checkin__top-col {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    border-radius: 12px;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.lbwsw-checkin__top-left-flexbox {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
    min-height: 0;
}

.lbwsw-checkin__top-col-left-nachruecker {
    min-height: 0;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.lbwsw-checkin__top-col-left-teilnehmer {
    min-height: 0;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.lbwsw-top-col-right-timer {
    min-height: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.lbwsw-checkin__center-row-status {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: start;
    justify-content: stretch;
    height: 100%;
}

.lbwsw-checkin__issue-mode {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
    align-items: center;
}

.lbwsw-checkin__override-warning {
    width: auto;
    flex: 1 1 45%;
    border: 1px solid #f59e0b;
    background: linear-gradient(180deg, rgba(255, 243, 205, 0.95) 0%, rgba(254, 215, 170, 0.95) 100%);
    color: #92400e;
    border-radius: 12px;
    padding: 4px 6px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.12);
}

.lbwsw-checkin__header-status {
    width: auto;
    flex: 1 1 55%;
    min-height: 22px;
    padding: 4px 6px;
    border-radius: 12px;
    border: 1px solid #d5dfed;
    background: rgba(255, 255, 255, 0.95);
    color: #385376;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.lbwsw-checkin__override-warning.is-active {
    animation: lbwsw-override-glow 1.7s ease-in-out infinite;
}

.lbwsw-checkin__issue-toggle,
.lbwsw-checkin__issue-state-label {
    min-width: 168px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.lbwsw-checkin__issue-toggle {
    border: 1px solid #c73f4f;
    background: linear-gradient(180deg, #ff7585 0%, #ef4f67 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(199, 63, 79, 0.24);
}

.lbwsw-checkin__issue-toggle.is-active {
    border-color: #15803d;
    background: linear-gradient(180deg, #39cf7b 0%, #1ea95d 100%);
    box-shadow: 0 10px 24px rgba(21, 128, 61, 0.24);
}

.lbwsw-checkin__issue-toggle.is-saving {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.24);
    opacity: 0.8;
    animation: lbwsw-pulse 1s infinite;
}

.lbwsw-checkin__issue-toggle.is-saved {
    border-color: #10b981;
    background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

@keyframes lbwsw-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.lbwsw-checkin__issue-toggle:disabled {
    opacity: 0.6;
    cursor: default;
}

.lbwsw-checkin__issue-state-label {
    border: 1px solid #d4dceb;
    background: #fff;
    color: #4a648a;
}

.lbwsw-checkin__issue-state-label.is-active {
    border-color: #15803d;
    color: #166534;
    background: rgba(34, 197, 94, 0.10);
}

.lbwsw-checkin__live-clock {
    width: auto;
    text-align: left;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1;
    font-weight: 900;
    color: #123466;
    font-variant-numeric: tabular-nums;
}

.lbwsw-checkin__competition-deadlines {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(var(--lbwsw-timer-cols), minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: minmax(0, 1fr);
    align-items: stretch;
    align-content: stretch;
    gap: 3px;
}

.lbwsw-anmeldetimer-widget {
    width: 100%;
    height: 100%;
    min-height: 0;
    /*padding: 5%;*/
    --lbwsw-timer-scale: 1;
    --lbwsw-timer-cols: 4;
    --lbwsw-timer-tile-height: auto;
    display: grid;
    grid-template-columns: repeat(var(--lbwsw-timer-cols), minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    justify-items: stretch;
    align-items: stretch;
    justify-content: center;
    align-content: center;
    gap: 3px;
}

.lbwsw-anmeldetimer-widget.lbwsw-anmeldetimer-widget--checkin {
    max-height: 100%;
    height: 100%;
    min-height: 0;
    align-content: stretch;
    overflow: visible;
}

.lbwsw-anmeldetimer-widget.lbwsw-anmeldetimer-widget--checkin.is-one-line {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 3px;
    overflow: visible;
}

/* ========== NACHMELDUNGEN-STATIC-CSS-START ========== */

.lbwsw-nachmeldungen-widget {
    position: relative;
    display: grid;
    grid-template-rows: 20% 50% 20%;
    gap: 0;
    height: 100%;
    min-height: 0;
    width: 100%;
    --lbwsw-nach-scale: 1;
    --lbwsw-nach-primary-scale: 1;
    container-type: size;
    aspect-ratio: 16 / 10;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    border: 1px solid #d2def0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(238, 246, 255, 0.95) 100%);
    box-shadow: 0 8px 20px rgba(19, 74, 159, 0.08);
    padding: calc(4px * var(--lbwsw-nach-scale)) calc(6px * var(--lbwsw-nach-scale));
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.lbwsw-nachmeldungen-widget.is-updated {
    box-shadow: 0 8px 28px rgba(52, 84, 124, 0.22), inset 0 0 0 2px rgba(52, 84, 124, 0.15);
    border-color: #9db4d4;
}

.lbwsw-nachmeldungen-widget.is-races-started {
    filter: grayscale(1);
    opacity: 0.62;
}

.lbwsw-nachmeldungen-widget__title {
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: clamp(0.6rem, calc(3.2cqh * var(--lbwsw-nach-scale)), 0.98rem);
    font-weight: 800;
    color: #2f4f7b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lbwsw-nachmeldungen-widget__primary {
    display: flex;
    min-height: 0;
    height: 100%;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.lbwsw-nachmeldungen-widget__free {
    position: relative;
    font-size: clamp(1rem, calc(12.8cqh * var(--lbwsw-nach-primary-scale)), 4.8rem);
    line-height: 1;
    font-weight: 900;
    color: #103864;
    font-variant-numeric: tabular-nums;
}

.lbwsw-nachmeldungen-widget__delta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
    pointer-events: none;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.lbwsw-nachmeldungen-widget__delta.is-visible.is-rise {
    color: #f97316;
    animation: lbwsw-nach-delta-pop 0.9s ease-out forwards;
}

.lbwsw-nachmeldungen-widget__delta.is-visible.is-drop {
    color: #dc2626;
    animation: lbwsw-nach-delta-pop 0.9s ease-out forwards;
}

.lbwsw-interne-teilnehmeranzahl-widget__delta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
    pointer-events: none;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.lbwsw-interne-teilnehmeranzahl-widget__delta.is-visible.is-rise {
    color: #f97316;
    animation: lbwsw-nach-delta-pop 0.9s ease-out forwards;
}

.lbwsw-interne-teilnehmeranzahl-widget__delta.is-visible.is-drop {
    color: #dc2626;
    animation: lbwsw-nach-delta-pop 0.9s ease-out forwards;
}

.lbwsw-nachmeldungen-widget__for {
    font-size: clamp(0.54rem, calc(3.4cqh * var(--lbwsw-nach-scale)), 1rem);
    font-weight: 700;
    color: #627b9d;
}

.lbwsw-nachmeldungen-widget__unassigned {
    font-size: clamp(0.92rem, calc(9.4cqh * var(--lbwsw-nach-primary-scale)), 3.4rem);
    font-weight: 800;
    color: #1d4f87;
    font-variant-numeric: tabular-nums;
}

.lbwsw-nachmeldungen-widget__secondary {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.lbwsw-nachmeldungen-widget__secondary-line {
    font-size: clamp(0.6rem, calc(2.8cqh * var(--lbwsw-nach-scale)), 0.86rem);
    font-weight: 700;
    color: #587198;
    line-height: 1.2;
    white-space: nowrap;
}

@keyframes lbwsw-nach-delta-pop {
    0% {
        transform: translate(-50%, -50%) scale(0.45);
        opacity: 0;
    }
    18% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.55);
        opacity: 0;
    }
}

/* ========== NACHMELDUNGEN-STATIC-CSS-END ========== */

.lbwsw-checkin__deadline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    height: var(--lbwsw-tile-max-height, 15em);
    max-height: var(--lbwsw-tile-max-height, 15em);
    padding: calc(6px * var(--lbwsw-timer-scale)) calc(6px * var(--lbwsw-timer-scale));
    border-radius: 14px;
    border: 1px solid #d2def0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 244, 255, 0.92) 100%);
    box-shadow: 0 10px 22px rgba(19, 74, 159, 0.08);
    color: #34547c;
    text-align: center;
    min-height: var(--lbwsw-timer-tile-height);
    height: var(--lbwsw-timer-tile-height);
}

.lbwsw-anmeldetimer-widget.is-tile-height-content .lbwsw-checkin__deadline-item {
    min-height: 0;
    height: auto;
}

.lbwsw-checkin__deadline-item.is-issue-ended {
    background: linear-gradient(180deg, rgba(243, 246, 250, 0.96) 0%, rgba(233, 238, 246, 0.94) 100%);
    border-color: #cdd8e6;
    color: #71839d;
}

.lbwsw-checkin__deadline-name {
    flex: 0 0 30%;
    font-weight: 800;
    color: #123466;
    /*line-height: 1.2;*/
    text-decoration: underline;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.62rem, calc(0.62rem * var(--lbwsw-timer-scale)), 2.0rem)
}

.lbwsw-checkin__deadline-rows {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lbwsw-checkin__deadline-row {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: calc(2px * var(--lbwsw-timer-scale));
    align-items: center;
    justify-content: center;
}

.lbwsw-checkin__deadline-row.lbwsw-checkin__deadline-row--start {
    margin-top: auto;
}

.lbwsw-checkin__deadline-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(4px * var(--lbwsw-timer-scale));
    flex-wrap: nowrap;
}

.lbwsw-checkin__deadline-label {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(12px * var(--lbwsw-timer-scale));
    color: #5f7698;
    font-size: clamp(0.44rem, calc(0.5rem * var(--lbwsw-timer-scale)), 0.82rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lbwsw-checkin__deadline-label-icon i {
    font-size: clamp(0.62rem, calc(0.72rem * var(--lbwsw-timer-scale)), 1rem);
}

.lbwsw-checkin__deadline-time {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: clamp(0.64rem, calc(0.96rem * var(--lbwsw-timer-scale)), 1.8rem);
    color: #173c73;
}

.lbwsw-checkin__deadline-time.is-warning {
    color: #d97706;
    animation: lbwsw-deadline-pulse-orange 1.2s ease-in-out infinite;
}

.lbwsw-checkin__deadline-time.is-critical {
    color: #dc2626;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 18px rgba(220, 38, 38, 0.45);
    animation: lbwsw-deadline-pulse-red 0.9s ease-in-out infinite;
}

.lbwsw-checkin__deadline-time.is-ended {
    color: #7c2d12;
}

.lbwsw-checkin__deadline-row.is-ended .lbwsw-checkin__deadline-label,
.lbwsw-checkin__deadline-row.is-ended .lbwsw-checkin__deadline-time {
    color: #8b97a9;
}

.lbwsw-checkin__deadline-announcement {
    flex: 1 1 35%;
    padding: calc(6px * var(--lbwsw-timer-scale)) calc(8px * var(--lbwsw-timer-scale));
    border-radius: 10px;
    border: 1px dashed #a9bdd9;
    background: rgba(255, 0, 0, 0.288);
    color: #000000;
    font-size: clamp(0.7rem, calc(0.86rem * var(--lbwsw-timer-scale)), 0.92rem);
    font-weight: 700;
    line-height: 1.25;
    white-space: pre-wrap;
    overflow: auto;
}

.lbwsw-checkin__deadline-stats {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.73rem, calc(0.75rem * var(--lbwsw-timer-scale)), 0.98rem);
    font-weight: 700;
    color: #587198;
    white-space: nowrap;
}

.lbwsw-zeit-widget {
    width: 100%;
    height: 100%;
    min-height: 0;
    --lbwsw-zeit-scale: 1;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: calc(8px * var(--lbwsw-zeit-scale));
    border-radius: 14px;
    border: 1px solid #d2def0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(238, 246, 255, 0.95) 100%);
    box-shadow: 0 8px 20px rgba(19, 74, 159, 0.08);
    padding: calc(10px * var(--lbwsw-zeit-scale)) calc(12px * var(--lbwsw-zeit-scale));
}

.lbwsw-zeit-widget__head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: calc(10px * var(--lbwsw-zeit-scale));
    align-items: center;
}

.lbwsw-zeit-widget__logo {
    width: calc(42px * var(--lbwsw-zeit-scale));
    height: calc(42px * var(--lbwsw-zeit-scale));
    border-radius: 10px;
    border: 1px solid #c7d6ea;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #56719a;
    font-size: calc(0.72rem * var(--lbwsw-zeit-scale));
    font-weight: 700;
}

.lbwsw-zeit-widget__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lbwsw-zeit-widget__title {
    color: #2f4f7b;
    font-size: calc(1rem * var(--lbwsw-zeit-scale));
    font-weight: 800;
    line-height: 1.2;
}

.lbwsw-zeit-widget__clock {
    text-align: center;
    color: #103864;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    font-size: clamp(1.8rem, calc(3.8vw * var(--lbwsw-zeit-scale)), 4.6rem);
    line-height: 1;
}

.lbwsw-zeit-widget__races {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: calc(6px * var(--lbwsw-zeit-scale));
}

.lbwsw-zeit-widget__race-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: calc(8px * var(--lbwsw-zeit-scale));
    align-items: center;
    border: 1px solid #d2def0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    padding: calc(6px * var(--lbwsw-zeit-scale)) calc(8px * var(--lbwsw-zeit-scale));
    color: #34547c;
}

.lbwsw-zeit-widget__race-row.is-started {
    border-color: #86efac;
    background: rgba(220, 252, 231, 0.8);
    color: #166534;
}

.lbwsw-zeit-widget__race-row.is-ended {
    border-color: #fecaca;
    background: rgba(254, 242, 242, 0.8);
    color: #991b1b;
}

.lbwsw-zeit-widget__race-name {
    font-size: calc(0.9rem * var(--lbwsw-zeit-scale));
    font-weight: 800;
    line-height: 1.2;
}

.lbwsw-zeit-widget__race-start,
.lbwsw-zeit-widget__race-state {
    font-size: calc(0.82rem * var(--lbwsw-zeit-scale));
    font-weight: 800;
    white-space: nowrap;
}

.lbwsw-zeit-widget__race-state {
    display: inline-flex;
    align-items: center;
    gap: calc(4px * var(--lbwsw-zeit-scale));
}

.lbwsw-zeit-widget__runner {
    width: calc(18px * var(--lbwsw-zeit-scale));
    height: calc(18px * var(--lbwsw-zeit-scale));
    display: inline-flex;
}

.lbwsw-zeit-widget__runner svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.lbwsw-zeit-widget__race-empty {
    padding: calc(10px * var(--lbwsw-zeit-scale));
    border: 1px dashed #9eb7db;
    border-radius: 10px;
    color: #526a8c;
    text-align: center;
}

/* Event Selector for Zeit Widget */
.lbwsw-zeit-widget__selector {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: calc(8px * var(--lbwsw-zeit-scale));
    align-items: center;
    padding: calc(8px * var(--lbwsw-zeit-scale));
    background: rgba(238, 246, 255, 0.6);
    border: 1px solid #d2def0;
    border-radius: 10px;
    margin-bottom: calc(4px * var(--lbwsw-zeit-scale));
}

.lbwsw-zeit-widget__selector label {
    font-size: calc(0.85rem * var(--lbwsw-zeit-scale));
    font-weight: 700;
    color: #2f4f7b;
    white-space: nowrap;
}

.lbwsw-zeit-widget__event-select {
    padding: calc(6px * var(--lbwsw-zeit-scale)) calc(8px * var(--lbwsw-zeit-scale));
    border: 1px solid #c7d6ea;
    border-radius: 6px;
    background: #fff;
    color: #34547c;
    font-size: calc(0.85rem * var(--lbwsw-zeit-scale));
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lbwsw-zeit-widget__event-select:hover {
    border-color: #5b94d9;
    box-shadow: 0 2px 6px rgba(19, 74, 159, 0.1);
}

.lbwsw-zeit-widget__event-select:focus {
    outline: none;
    border-color: #1349f5;
    box-shadow: 0 0 0 3px rgba(19, 73, 245, 0.1);
    background: #fafbff;
}

.lbwsw-zeit-widget__event-select option {
    padding: calc(4px * var(--lbwsw-zeit-scale));
    background: #fff;
    color: #34547c;
    font-weight: 600;
}

.lbwsw-checkin__deadline-empty {
    grid-column: 1 / -1;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed #9eb7db;
    background: #f8fbff;
    color: #526a8c;
    text-align: center;
}

@keyframes lbwsw-deadline-pulse-orange {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.78;
    }
}

@keyframes lbwsw-deadline-pulse-red {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.82;
    }
}

@keyframes lbwsw-override-glow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(180, 83, 9, 0.12);
    }
    50% {
        box-shadow: 0 10px 26px rgba(180, 83, 9, 0.28);
    }
}

.lbwsw-checkin__header-titlecard {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.2cqw, 10px);
    padding: clamp(4px, 1.6cqh, 10px) clamp(6px, 1.8cqw, 12px);
    border-radius: 14px;
    border: 1px solid #bfd0e8;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 24px rgba(19, 74, 159, 0.08);
    width: 100%;
    max-width: none;
}

.lbwsw-checkin__header-eyebrow {
    font-size: clamp(0.5rem, 2.4cqh, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #56719a;
    margin-bottom: 3px;
}

.lbwsw-checkin__header-titletext h2,
.lbwsw-checkin__header-titletext div#lbwsw-event-name {
    margin: 0;
    font-size: clamp(0.72rem, 4.6cqh, 1.3rem);
    line-height: 1.15;
    color: #123466;
}

.lbwsw-checkin__competition-logo--hero {
    width: clamp(28px, 16cqh, 64px);
    height: clamp(28px, 16cqh, 64px);
    flex-basis: clamp(28px, 16cqh, 64px);
}

.lbwsw-checkin__header-left #lbwsw-open-options {
    min-height: clamp(22px, 10cqh, 34px);
    padding: 0 clamp(8px, 2.4cqw, 14px);
    font-size: clamp(0.56rem, 2.8cqh, 0.86rem);
}

.lbwsw-checkin__header-left .lbwsw-checkin__issue-toggle,
.lbwsw-checkin__header-left .lbwsw-checkin__issue-state-label {
    min-width: 0;
    min-height: clamp(20px, 9.2cqh, 28px);
    padding: clamp(2px, 1.2cqh, 5px) clamp(7px, 1.8cqw, 12px);
    font-size: clamp(0.54rem, 2.7cqh, 0.86rem);
    max-height: (30px, 9.2cqh, 50px);
}

.lbwsw-checkin__header-left .lbwsw-checkin__live-clock {
    font-size: clamp(1.25rem, 4.4cqh, 1.22rem);
}

.lbwsw-checkin__dialog {
    width: min(100%, 760px);
    border: 1px solid #bfd0e8;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 24px 60px rgba(15, 35, 75, 0.26);
}

.lbwsw-checkin__dialog::backdrop {
    background: rgba(10, 18, 36, 0.45);
    backdrop-filter: blur(2px);
}

.lbwsw-checkin__dialog-shell {
    padding: 16px;
}

.lbwsw-checkin__dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.lbwsw-checkin__dialog-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Visual indicator for required/optional fields in waitlist dialog */
.lbwsw-field--required {
    font-weight: 500;
}

.lbwsw-field--required::after {
    content: ' *';
    color: #d32f2f;
    font-weight: bold;
}

.lbwsw-field--optional {
    opacity: 0.85;
}

.lbwsw-waitlist-uebertraegen-btn:disabled{
    background: rgba(14, 59, 117, 0.37);

} 

.lbwsw-waitlist-bib-withdraw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.lbwsw-checkin__dialog-competitionblock {
    border: 1px solid #d8e2f0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.lbwsw-checkin__dialog-optionblock {
    border: 1px solid #d8e2f0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.lbwsw-checkin__ignore-time-toggle {
    min-height: 42px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #9eb7db;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
    color: #163b74;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
}

.lbwsw-checkin__ignore-time-toggle.is-active {
    border-color: #b45309;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.lbwsw-checkin__tabs {
    display: flex;
    gap: 8px;
    margin: 18px 0 14px;
    border-bottom: 1px solid #c9d4e5;
}

.lbwsw-checkin__tab {
    border: 1px solid;
    background: #df7272;
    border-color: #85322c;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: #21406d;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
}

.lbwsw-checkin__tab.is-active {
    background: #b91d1d;
    border-color: #5c0600;
    border-bottom-color: #fff;
    color: whitesmoke;
}

.lbwsw-checkin__panels {
    position: relative;
}

.lbwsw-checkin__panel {
    display: none;
}

.lbwsw-checkin__panel.is-active {
    display: block;
}

.lbwsw-checkin__topbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.lbwsw-checkin__filters {
    width: min(100%, 980px);
    border: 1px solid #bfd0e8;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(19, 74, 159, 0.08);
}

.lbwsw-checkin__filters > summary {
    cursor: pointer;
    font-weight: 800;
    color: #163b74;
    list-style: none;
}

.lbwsw-checkin__filters > summary::-webkit-details-marker {
    display: none;
}

.lbwsw-checkin__filters-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.lbwsw-checkin__competition-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.lbwsw-checkin__competition-options-wrap {
    flex: 1 1 440px;
    min-width: 280px;
}

.lbwsw-checkin__field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.lbwsw-checkin__competition-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lbwsw-checkin__competition-empty {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed #9eb7db;
    background: #f8fbff;
    color: #526a8c;
    font-size: 0.95rem;
    line-height: 1.4;
}

.lbwsw-checkin__competition-pill,
.lbwsw-checkin__competition-toggle {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #9eb7db;
    background: #fff;
    color: #17437d;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lbwsw-checkin__competition-pill.is-selected,
.lbwsw-checkin__competition-toggle.is-selected,
.lbwsw-checkin__competition-filter input:checked + .lbwsw-checkin__competition-toggle {
    background: #1e63d0;
    color: #fff;
    border-color: #134a9f;
}

.lbwsw-checkin__competition-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.lbwsw-checkin__competition-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lbwsw-checkin__competition-filter input:focus-visible + .lbwsw-checkin__competition-toggle {
    outline: 2px solid #1e63d0;
    outline-offset: 2px;
}

.lbwsw-checkin__action-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
}

.lbwsw-checkin__action-cell .lbwsw-issue-btn,
.lbwsw-checkin__action-cell .lbwsw-return-btn,
.lbwsw-checkin__action-cell .lbwsw-undo-btn,
.lbwsw-checkin__action-cell .lbwsw-not-collected-btn {
    flex: 0 0 auto;
}

.lbwsw-table tbody tr.lbwsw-checkin__row--issued td {
    background: rgba(46, 255, 123, 0.46);
}

.lbwsw-table tbody tr.lbwsw-checkin__row--returned td {
    background: rgba(161, 61, 255, 0.46);
}

.lbwsw-table tbody tr.lbwsw-checkin__row--open td {
    background: rgba(255, 255, 255, 0.42);
}

.lbwsw-table tbody tr.lbwsw-checkin__row--not-collected td {
    background: rgba(245, 158, 11, 0.46);
}

.lbwsw-table tbody tr.lbwsw-checkin__row--waitlist td {
    background: rgba(34, 211, 238, 0.42);
}

.lbwsw-checkin__deadline-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
    font-weight: 800;
}

.lbwsw-checkin__competition-display {
    flex: 0 0 300px;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed #9eb7db;
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.lbwsw-checkin__competition-logo {
    /*width: 64px;
    height: 64px;*/
    flex: 0 0 64px;
    border-radius: 12px;
    border: 1px solid #bfd0e8;
    background: linear-gradient(135deg, #dbe8fb 0%, #edf4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #4a6792;
    font-size: 0.85rem;
    font-weight: 800;
}

.lbwsw-checkin__competition-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lbwsw-checkin__competition-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #123466;
    line-height: 1.15;
}

/* Removed - replaced by .lbwsw-checkin__header-row layout */

.lbwsw-checkin__overview-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 12px;
}

.lbwsw-checkin__overview-search {
    flex: 1 1 320px;
}

.lbwsw-checkin__overview-grouping {
    flex: 0 0 auto;
    min-width: 220px;
    border: 1px solid #d8e2f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.lbwsw-checkin__overview-toggle {
    min-height: 42px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #9eb7db;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
    color: #163b74;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
}

.lbwsw-checkin__overview-toggle.is-active {
    border-color: #134a9f;
    background: linear-gradient(180deg, #2f74dd 0%, #1f5fc4 100%);
    color: #fff;
}

.lbwsw-checkin__overview-compfilters {
    flex: 2 1 520px;
    border: 1px solid #d8e2f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.lbwsw-checkin__overview-compfilters .lbwsw-checkin__competition-empty,
.lbwsw-checkin__dialog-competitionblock .lbwsw-checkin__competition-empty {
    margin-top: 2px;
}

.lbwsw-checkin label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.lbwsw-checkin input[type="text"],
.lbwsw-checkin input[type="number"],
.lbwsw-checkin select {
    font-size: 1.1rem;
    min-height: 46px;
    padding: 8px 10px;
}

#lbwsw-firstname-toggle,
.lbwsw-issue-btn {
    min-height: 46px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #134a9f;
    background: #1e63d0;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.lbwsw-return-btn {
    min-height: 46px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #7c3aed;
    background: #8b5cf6;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.lbwsw-return-btn:hover {
    border: 1px solid #460da8;
    background: #341775;
}

.lbwsw-undo-btn {
    min-height: 46px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #b91c1c;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.lbwsw-undo-btn:hover {
    border: 1px solid #550202;
    background: #dc2626;
} 

.lbwsw-not-collected-btn {
    min-height: 46px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #b45309;
    background: #f59e0b;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.lbwsw-not-collected-btn:hover {
    border: 1px solid #7c2d12;
    background: #d97706;
}

#lbwsw-firstname-toggle.is-active {
    background: #0f9155;
    border-color: #0c7847;
}

.lbwsw-table-wrap {
    overflow-x: auto;
}

.lbwsw-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 1.65em;
}

#lbwsw-overview-results {
    table-layout: fixed;
}

.lbwsw-table th,
.lbwsw-table td {
    border: 1px solid #d9e2f1;
    /*padding: 10px;*/
    text-align: left;
}

.lbwsw-table th.lbwsw-col-club,
.lbwsw-table td.lbwsw-col-club {
    width: 15%;
    max-width: 15%;
}

.lbwsw-table td.lbwsw-col-club {
    overflow: hidden;
}

.lbwsw-cell-ellipsis {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lbwsw-table th {
    background: #e6eefb;
}

.lbwsw-table__sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.lbwsw-table__sort.is-active {
    color: #134a9f;
}

.lbwsw-checkin__group-row td {
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(207, 224, 247, 0.96) 0%, rgba(233, 242, 255, 0.96) 100%);
    color: #123466;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-top: 2px solid #b8cbe7;
}

.lbwsw-status {
    min-height: 24px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #163b74;
}

.lbwsw-status--error {
    color: #b32323;
}

.lbwsw-notice {
    border-radius: 8px;
    padding: 10px 12px;
}

.lbwsw-notice--error {
    background: #ffe5e5;
    color: #7f1111;
    border: 1px solid #f1b7b7;
}

.lbwsw-checkin__searchbox {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d2def0;
    background: rgba(255, 255, 255, 0.7);
}

.lbwsw-checkin__searchbox-label {
    flex: 1 1 100%;
    font-size: 0.92rem;
    font-weight: 700;
    color: #163b74;
}

.lbwsw-checkin__searchbox-input {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}

.lbwsw-checkin__searchbox input[type="text"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    font-size: 0.95rem;
    padding: 8px 12px;
    border: 1px solid #c9d4e5;
    border-radius: 8px;
    background: #fff;
}

.lbwsw-checkin__filter-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #134a9f;
    background: #f0f7ff;
    color: #163b74;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.lbwsw-checkin__filter-option:has(input[type="checkbox"]:checked) {
    background: #1e63d0;
    color: #fff;
    border-color: #134a9f;
}

.lbwsw-checkin__filter-option input[type="checkbox"] {
    display: none;
}

.lbwsw-nachruecker-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.lbwsw-nachruecker-badge--assigned {
    background: #0369a1;
    cursor: help;
    padding: 0 6px;
    gap: 3px;
}

.lbwsw-checkin__waitlist-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.lbwsw-waitlist-batch-shell {
    width: 100%;
}

.lbwsw-waitlist-batch-tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
}

.lbwsw-waitlist-batch-tab {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e3a8a;
    border-radius: 8px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
}

.lbwsw-waitlist-batch-tab.is-active {
    background: #1d4ed8;
    color: #fff;
    border-color: #1e40af;
}

.lbwsw-waitlist-batch-panel {
    display: none;
}

.lbwsw-waitlist-batch-panel.is-active {
    display: block;
}

.lbwsw-waitlist-batch-page-topline {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.lbwsw-waitlist-batch-page-main {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    min-height: 156px;
}

.lbwsw-waitlist-batch-page-line {
    font-size: 1rem;
    line-height: 1.45;
    color: #0f172a;
    margin: 0 0 6px;
}

.lbwsw-waitlist-batch-page-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.lbwsw-waitlist-batch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 56vh;
    overflow-y: auto;
    padding-right: 2px;
}

.lbwsw-waitlist-batch-list-item {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
}

.lbwsw-waitlist-batch-list-head {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.lbwsw-waitlist-batch-list-line {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1e293b;
}

.lbwsw-waitlist-batch-empty {
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    padding: 16px;
    color: #475569;
    background: #f8fafc;
}

.lbwsw-waitlist-paid-btn,
.lbwsw-waitlist-delete-btn {
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid #9eb7db;
    background: #fff;
    color: #163b74;
    padding: 4px 10px;
    font-weight: 700;
    cursor: pointer;
}

.lbwsw-waitlist-paid-btn.is-active {
    background: #16a34a;
    border-color: #15803d;
    color: #fff;
}

.lbwsw-waitlist-delete-btn {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

/* Blacklisted row styling */
.lbwsw-waitlist-blacklisted {
    background: rgba(0, 0, 0, 0.35);
}

.lbwsw-waitlist-blacklisted .lbwsw-waitlist-paid-btn {
    display: none;
}

/* Cross-event blacklist indicator (weaker highlighting) */
.lbwsw-waitlist-cross-event-blacklist {
    background: rgba(220, 38, 38, 0.1);
}

/* Own-registred row styling (cyan for self-registered participants) */
.lbwsw-waitlist-own-registred {
    background: rgba(0, 255, 255, 0.15);
}

.lbwsw-waitlist-own-registred .lbwsw-waitlist-paid-btn {
    display: none;
}

.lbwsw-blacklist-indicator {
    cursor: help;
    font-weight: 600;
    color: #dc2626;
}

.lbwsw-waitlist-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #16a34a;
    background: #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
}

.lbwsw-waitlist-action-cell {
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

.lbwsw-waitlist-action-cell button,
.lbwsw-waitlist-action-cell span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 4px;
}

/* Style for transferred waitlist entries (position_nachruecker set) */
tr.lbwsw-waitlist-transferred {
    background-color: #fef3c7 !important;
    opacity: 0.85;
    font-style: italic;
}

tr.lbwsw-waitlist-transferred td {
    border-color: #fcd34d;
}

tr.lbwsw-waitlist-transferred .lbwsw-waitlist-paid-btn {
    display: none;
}

.lbwsw-waitlist-priority-select {
    min-width: 68px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
}

.lbwsw-waitlist-priority-select:disabled {
    background: #f8fafc;
    color: #64748b;
}

.lbwsw-waitlist-priority-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: #94a3b8;
    font-weight: 700;
}

.lbwsw-waitlist-blacklist-cell {
    font-weight: bolder;
    font-size: 1.3em;
}

.lbwsw-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}

.lbwsw-icon-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.lbwsw-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    border-color: #d1d5db;
}

.lbwsw-icon-btn:disabled:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.lbwsw-waitlist-blacklist-toggle-btn.is-active {
    background: #fecaca;
    border-color: #dc2626;
    color: #991b1b;
    font-weight: 800;
}

.lbwsw-waitlist-blacklist-toggle-btn.is-active:hover {
    background: #fca5a5;
    border-color: #b91c1c;
}

.lbwsw-waitlist-delete-btn.lbwsw-icon-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.lbwsw-waitlist-edit-btn.lbwsw-icon-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}


.lbwsw-waitlist-locked::before {
    content: "\1F512";
    font-size: 0.82rem;
    line-height: 1;
}

.lbwsw-status-cell {
    display: table-cell;
    vertical-align: middle;
    line-height: 1.2;
}

.lbwsw-status-cell > div {
    display: block;
    width: 100%;
}

.lbwsw-status-time {
    font-size: 0.75rem;
    color: #6b7c99;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .lbwsw-checkin__header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .lbwsw-checkin__header-left,
    .lbwsw-checkin__header-actions,
    .lbwsw-checkin__header-center,
    .lbwsw-checkin__header-titlecard {
        max-width: 100%;
        min-width: 0;
    }

    .lbwsw-checkin__header-left,
    .lbwsw-checkin__header-center {
        width: 100%;
        height: auto;
    }

    .lbwsw-checkin__header-left {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .lbwsw-checkin__header-center {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .lbwsw-checkin__header-titlecard {
        width: 100%;
    }

    .lbwsw-checkin__dialog,
    .lbwsw-checkin__overview-search,
    .lbwsw-checkin__overview-grouping,
    .lbwsw-checkin__overview-compfilters,
    .lbwsw-checkin__searchbox {
        width: 100%;
        max-width: 100%;
    }

    .lbwsw-checkin__header-row {
        flex-direction: column;
        gap: 12px;
    }

    .lbwsw-checkin__last-action {
        width: 100%;
        max-width: 100%;
    }

    .lbwsw-checkin__competition-display {
        flex: 1 1 100%;
    }

    .lbwsw-checkin__center-row-top {
        flex-direction: column;
        min-height: 0;
    }

    .lbwsw-checkin__top-left-flexbox {
        flex: 1 1 auto;
        min-width: 0;
    }

    .lbwsw-checkin__top-col-left-nachruecker,
    .lbwsw-checkin__top-col-right-timer {
        flex: 1 1 auto;
        max-height: none;
    }

    .lbwsw-checkin__center-row-status {
        flex-direction: column;
    }

    .lbwsw-checkin__waitlist-toolbar {
        justify-content: stretch;
    }

    .lbwsw-checkin__waitlist-toolbar .button {
        width: 100%;
    }

    .lbwsw-waitlist-batch-page-nav {
        flex-direction: column;
    }

    .lbwsw-waitlist-batch-page-nav .button {
        width: 100%;
    }
}

/* interne_teilnehmeranzahl Widget */
.lbwsw-interne-teilnehmeranzahl-widget {
    position: relative;
    display: grid;
    grid-template-rows: auto 1.5fr auto;
    gap: 3px;
    height: 100%;
    min-height: 0;
    width: 100%;
    --lbwsw-interno-scale: 0.9;
    container-type: size;
    aspect-ratio: 16 / 4;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    border: 1px solid #d2def0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(238, 246, 255, 0.95) 100%);
    box-shadow: 0 8px 20px rgba(19, 74, 159, 0.08);
    padding: calc(3px * var(--lbwsw-interno-scale)) calc(5px * var(--lbwsw-interno-scale));
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.lbwsw-interne-teilnehmeranzahl-widget.is-updated {
    box-shadow: 0 8px 28px rgba(52, 84, 124, 0.22), inset 0 0 0 2px rgba(52, 84, 124, 0.15);
    border-color: #9db4d4;
}

.lbwsw-interne-teilnehmeranzahl-widget__title {
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: clamp(0.95rem, calc(6.2cqh * var(--lbwsw-interno-scale)), 0.98rem);
    font-weight: 800;
    color: #2f4f7b;
    text-transform: uppercase;
    padding-top: calc(2px * var(--lbwsw-interno-scale));
}

.lbwsw-interne-teilnehmeranzahl-widget__primary {
    display: flex;
    min-height: 0;
    height: auto;
    justify-content: center;
    align-items: center;
    align-content: center;
    font-size: clamp(1.2rem, calc(34cqh * var(--lbwsw-interno-scale)), 4.2rem);
    font-weight: 900;
    color: #103864;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.lbwsw-interne-teilnehmeranzahl-widget__secondary {
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.72rem, calc(15.8cqh * var(--lbwsw-interno-scale)), 1.4rem);
    font-weight: 700;
    color: #587198;
    font-variant-numeric: tabular-nums;
}

.lbwsw-interne-teilnehmeranzahl-widget__allover,
.lbwsw-interne-teilnehmeranzahl-widget__total {
    position: relative;
    display: inline;
    white-space: nowrap;
}

.lbwsw-interne-teilnehmeranzahl-widget__slash {
    display: inline;
    margin: 0 0.15em;
}

/* Event Selector for Teilnehmeranzahl Widget */
.lbwsw-interne-teilnehmeranzahl-widget__selector {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: calc(8px * var(--lbwsw-zeit-scale, 1));
    align-items: center;
    padding: calc(8px * var(--lbwsw-zeit-scale, 1));
    background: rgba(238, 246, 255, 0.6);
    border: 1px solid #d2def0;
    border-radius: 10px;
    margin-bottom: calc(4px * var(--lbwsw-zeit-scale, 1));
}

.lbwsw-interne-teilnehmeranzahl-widget__selector label {
    font-size: calc(0.85rem * var(--lbwsw-zeit-scale, 1));
    font-weight: 700;
    color: #2f4f7b;
    white-space: nowrap;
}

.lbwsw-interne-teilnehmeranzahl-widget__event-select {
    padding: calc(6px * var(--lbwsw-zeit-scale, 1)) calc(8px * var(--lbwsw-zeit-scale, 1));
    border: 1px solid #c7d6ea;
    border-radius: 6px;
    background: #fff;
    color: #34547c;
    font-size: calc(0.85rem * var(--lbwsw-zeit-scale, 1));
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lbwsw-interne-teilnehmeranzahl-widget__event-select:hover {
    border-color: #5b94d9;
    box-shadow: 0 2px 6px rgba(19, 74, 159, 0.1);
}

.lbwsw-interne-teilnehmeranzahl-widget__event-select:focus {
    outline: none;
    border-color: #1349f5;
    box-shadow: 0 0 0 3px rgba(19, 73, 245, 0.1);
    background: #fafbff;
}

.lbwsw-interne-teilnehmeranzahl-widget__event-select option {
    padding: calc(4px * var(--lbwsw-zeit-scale, 1));
    background: #fff;
    color: #34547c;
    font-weight: 600;
}

/* Club search pills / filter buttons */
.lbwsw-club-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
}

.lbwsw-search-club-options {
    flex: 1 1 100%;
    width: 100%;
}

.lbwsw-club-pill {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e8f0f8;
    border: 1px solid #bcd0e8;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a2c4a;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: auto;
}

.lbwsw-club-pill:hover {
    background-color: #d0e5f5;
    border-color: #94b8d8;
    color: #0d1a2a;
}

.lbwsw-club-pill:active {
    background-color: #b8d8f0;
    border-color: #7a9cc8;
}

.lbwsw-checkin__header-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: stretch;
}

.lbwsw-checkin__searchbox {
    flex: 0 0 auto;
    min-width: 50%;
    max-width: 50%;
}

.lbwsw-checkin__last-action {
    flex: 1 1 auto;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 1.1em;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #b8cee5;
    background: linear-gradient(135deg, #e8f4ff 0%, #d0e5f5 100%);
    line-height: 1.2;
}

.lbwsw-last-action__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #163b74;
}

.lbwsw-last-action__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 35px;
    justify-content: center;
}

.lbwsw-last-action__bib {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1e63d0;
    letter-spacing: 0.05em;
}

.lbwsw-last-action__bib-button {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #1e63d0;
    letter-spacing: 0.05em;
    background: transparent;
    border: solid 1px #7f1d1d;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    padding: revert-rule;
}

.lbwsw-last-action__bib-button:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.lbwsw-last-action__bib-button:active {
    opacity: 0.6;
}

.lbwsw-last-action__details {
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.2;
}

/* Action-spezifische Farben für die letzten Aktionen */
.lbwsw-checkin__last-action.is-issued {
    border: 1px solid #15803d;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.lbwsw-checkin__last-action.is-issued .lbwsw-last-action__bib,
.lbwsw-checkin__last-action.is-issued .lbwsw-last-action__bib-button {
    color: #16a34a;
}

.lbwsw-checkin__last-action.is-issued .lbwsw-last-action__label,
.lbwsw-checkin__last-action.is-issued .lbwsw-last-action__details {
    color: #15803d;
}

.lbwsw-checkin__last-action.is-returned {
    border: 1px solid #7c3aed;
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
}

.lbwsw-checkin__last-action.is-returned .lbwsw-last-action__bib,
.lbwsw-checkin__last-action.is-returned .lbwsw-last-action__bib-button {
    color: #8b5cf6;
}

.lbwsw-checkin__last-action.is-returned .lbwsw-last-action__label,
.lbwsw-checkin__last-action.is-returned .lbwsw-last-action__details {
    color: #5b21b6;
}

.lbwsw-checkin__last-action.is-not-collected {
    border: 1px solid #b45309;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.lbwsw-checkin__last-action.is-not-collected .lbwsw-last-action__bib,
.lbwsw-checkin__last-action.is-not-collected .lbwsw-last-action__bib-button {
    color: #f59e0b;
}

.lbwsw-checkin__last-action.is-not-collected .lbwsw-last-action__label,
.lbwsw-checkin__last-action.is-not-collected .lbwsw-last-action__details {
    color: #78350f;
}

.lbwsw-checkin__last-action.is-undo {
    border: 1px solid #b91c1c;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.lbwsw-checkin__last-action.is-undo .lbwsw-last-action__bib,
.lbwsw-checkin__last-action.is-undo .lbwsw-last-action__bib-button {
    color: #dc2626;
}

.lbwsw-checkin__last-action.is-undo .lbwsw-last-action__label,
.lbwsw-checkin__last-action.is-undo .lbwsw-last-action__details {
    color: #7f1d1d;
}

/* NEW: Action History Header */
.lbwsw-last-action__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lbwsw-last-action__counter {
    font-size: 0.70rem;
    color: #666;
    font-weight: 500;
}

/* NEW: Navigation Controls */
.lbwsw-last-action__navigation {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 4px;
}

.lbwsw-last-action__nav-button {
    flex: 1;
    padding: 4px 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #163b74;
    background: #f0f5fa;
    border: 1px solid #d2def0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lbwsw-last-action__nav-button:hover:not(:disabled) {
    background: #e0ecf5;
    border-color: #aabfd4;
    transform: scale(1.05);
}

.lbwsw-last-action__nav-button:active:not(:disabled) {
    background: #d0dff0;
    transform: scale(0.98);
}

.lbwsw-last-action__nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* NEW: Top Row (Button + Metadata) */
.lbwsw-last-action__top-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

/* NEW: Metadata Display (Gender, Age Class) */
.lbwsw-last-action__metadata {
    display: inline-block;
    padding: 2px 4px;
    font-size: 1.0rem;
    font-weight: 600;
    color: #163b74;
    /*background: #e8f1f8;*/
    border-radius: 3px;
    white-space: nowrap;
}

/* Dialog Title: Nachruecker anlegen */
#lbwsw-waitlist-dialog-title {
    display: block;
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 12px 0;
    color: #1a2c4a;
    font-weight: 700;
}

/* Speichern Button: Deaktiviert Styling */
#lbwsw-waitlist-save:disabled,
#lbwsw-waitlist-save[disabled] {
    background-color: #d0d0d0;
    color: #888;
    border-color: #a0a0a0;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

#lbwsw-waitlist-save:disabled:hover,
#lbwsw-waitlist-save[disabled]:hover {
    background-color: #d0d0d0;
    color: #888;
}


/* ========================================
   RESULTS TAB STYLES
   ======================================== */

.lbwsw-results-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.lbwsw-results-quick-stats-shell {
    margin: 8px 0 0;
    padding: 12px;
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.lbwsw-results-quick-stats-empty {
    padding: 12px;
    border: 1px dashed #adc3e6;
    border-radius: 8px;
    color: #4b6488;
    text-align: center;
}

.lbwsw-results-competition-stats {
    border: 1px solid #c5d8f1;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.lbwsw-results-competition-stats > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #eef5ff 0%, #e2ecfb 100%);
}

.lbwsw-results-competition-stats > summary::-webkit-details-marker {
    display: none;
}

.lbwsw-results-competition-stats__name {
    font-weight: 800;
    color: #133d77;
}

.lbwsw-results-competition-stats__meta {
    font-size: 0.86rem;
    color: #3f5f8d;
    font-weight: 700;
}

.lbwsw-results-competition-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    padding: 10px;
}

.lbwsw-results-competition-stats__top3 {
    padding: 0 10px 10px;
    color: #2c4f80;
    font-size: 0.82rem;
    line-height: 1.35;
}

.lbwsw-quick-stat-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lbwsw-quick-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0c4a6e;
    font-weight: 600;
    margin-bottom: 4px;
}

.lbwsw-quick-stat-value {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0369a1;
}

.lbwsw-results-top3 {
    margin: 0;
    padding: 12px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 12px;
}

.lbwsw-results-top3 h4 {
    margin: 0 0 8px;
}

.lbwsw-top3-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 0;
}

.lbwsw-top3-card {
    padding: 8px;
    border: 1px solid #d8ddea;
    border-radius: 8px;
    background: #f8faff;
}

.lbwsw-top3-card__rank {
    font-size: 0.86rem;
    font-weight: 800;
    color: #1f4f94;
}

.lbwsw-top3-card__name {
    margin-top: 4px;
    font-weight: 700;
    color: #123466;
}

.lbwsw-top3-card__time {
    margin-top: 2px;
    color: #355e95;
    font-size: 0.82rem;
}

.lbwsw-results-toolbar,
.lbwsw-checkin__results-toolbar {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lbwsw-checkin__results-top-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.lbwsw-checkin__results-top-row h3 {
    margin: 0;
    display: flex;
    align-items: center;
}

.lbwsw-checkin__results-grouping {
    flex: 0 0 auto;
    min-width: 220px;
    border: 1px solid #d8e2f0;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}

.lbwsw-checkin__results-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

.lbwsw-results-row {
    cursor: pointer;
}

#lbwsw-results-table tbody tr.lbwsw-results-row:hover {
    background: #f0f9ff;
}

@media (max-width: 900px) {
    .lbwsw-checkin__results-grouping {
        width: 100%;
        min-width: 0;
    }
}
