:root{color-scheme:dark}.top-error{margin:0 0 18px}.logout-form{margin:0}.logout-button{display:inline-flex;align-items:center;color:#d5c7a4;background:#22372e;border:1px solid #3a5145;border-radius:7px;padding:7px 12px;font-size:12px;font-weight:750}.logout-button:hover{background:#345042}.tour-row-link{display:flex;color:inherit}.tour-row-link:hover{background:#22362d}.empty-state{padding:26px;color:#a3b2a5}.matrix-section{margin:24px 0;scroll-margin-top:20px;overflow:hidden}.matrix-section .panel-heading{border-bottom:1px solid #33433a}.stat-jumps{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 22px}.stat-jumps a{border:1px solid #384e40;background:#23362c;border-radius:25px;padding:8px 12px;color:#e4dcc5;font-size:12px}.stat-jumps a:hover{border-color:#c9a870}.wide-stat{width:100%;max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#5d735f #192821}.matrix-table{border-collapse:separate;border-spacing:0;min-width:100%;white-space:nowrap;font-size:12px}.matrix-table th,.matrix-table td{padding:12px 13px;min-width:91px;text-align:center;border-bottom:1px solid #2b4236}.matrix-table thead th{position:sticky;top:0;background:#23372d;color:#cfc9b6;z-index:2;font-weight:700;font-size:11px}.matrix-table thead a{display:block}.matrix-table thead th small{display:block;font-size:10px;color:#8da597;font-weight:400;margin-top:3px}.matrix-table tbody tr:nth-child(even){background:#1b2b23}.matrix-table tbody tr:hover{background:#2c4033}.matrix-table th.sticky-name{position:sticky;left:0;z-index:3;min-width:140px;text-align:left;background:#22372d;box-shadow:3px 0 8px #0b1a1355}.matrix-table tbody tr:nth-child(even) th.sticky-name{background:#203228}.matrix-table tbody th.sticky-name{font-size:12px}.matrix-table code{background:#304735;padding:4px 6px;border-radius:5px;color:#ecd09b;font-weight:800}.muted-cell{opacity:.35}.chart-wrap{padding:20px 16px 15px;border-top:1px solid #2b4035}.chart-wrap svg{width:100%;height:auto;display:block;max-height:270px}.chart-legend{display:flex;flex-wrap:wrap;gap:7px 14px;padding:11px 4px}.chart-legend span{font-size:10px;color:#b5c6bb;display:flex;gap:6px;align-items:center}.chart-legend i{width:9px;height:9px;border-radius:100%}.detail-summary{display:flex;gap:18px;flex-wrap:wrap;margin:18px 0 10px;background:#1d3126;border:1px solid #354c3c;border-radius:10px;padding:15px 18px;color:#a9bdab}.detail-summary strong{color:#e3dfd1}.delete-form{display:flex;justify-content:flex-end;margin:20px 0}.button-danger{border-color:#8d4b46;color:#ffc6bc;background:#3c2525}.login-panel{max-width:460px;padding:28px;display:grid;gap:17px}.login-panel .field input,.manage-form input,.manage-form select{padding:11px;border:1px solid #42574b;border-radius:8px;background:#14241c;color:#e8f0e5;width:100%;outline-offset:2px}.manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 22px}.manage-form{padding:0 22px 24px;display:grid;gap:15px}.manage-form .field{gap:6px}.actions-group{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.actions-group .button{white-space:nowrap}.gay-checkbox{font-size:12px;display:flex;gap:6px;align-items:center;white-space:nowrap;color:#ebd4e5}.capture-table td.gay-only-col{min-width:90px}.capture-table th.gay-only-col{white-space:nowrap}.capture-table{min-width:590px}.capture-aside{min-width:0}.capture-panel .capture-table-wrap{scrollbar-width:thin}.capture-table input[type=checkbox].gay-finalist{width:16px;height:16px;accent-color:#b78cc3}.capture-panel{min-width:0}.capture-panel .field input{color:#e7f0e5}.capture-panel .field input:disabled{opacity:.6}.capture-panel .validation-output{padding-top:0}
@media(max-width:810px){.manage-grid{grid-template-columns:1fr}}
@media(max-width:580px){.capture-table{min-width:0}.capture-table tr{grid-template-columns:26px minmax(0,1fr) minmax(0,1fr)}.capture-table tr:has(.gay-only-col:not([style*="display: none"])) td.gay-only-col{grid-column:2 / 4;grid-row:3}.capture-table .gay-only-col{min-width:0}.chart-wrap{padding:10px}.matrix-table th,.matrix-table td{min-width:79px;padding:11px 9px}.matrix-table th.sticky-name{min-width:95px}.capture-actions .actions-group{display:grid;grid-template-columns:1fr 1fr;width:100%}.capture-actions .actions-group .button:last-child{grid-column:1 / -1}.topbar-right{gap:6px}.logout-button{font-size:10px;padding:7px}}

/* CBS v0.9 UI adjustments */
.capture-player-row[hidden]{display:none!important}
.guest-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:17px 22px;border-top:1px solid rgba(255,255,255,.09)}
.guest-picker label{font-weight:700;font-size:.87rem}
.guest-picker select{min-width:190px;max-width:100%;padding:11px;border-radius:10px;background:#13201b;color:#fff;border:1px solid #526258}
.qualification-tag{display:inline-block;font-size:.68rem;font-weight:700;padding:3px 7px;background:#59442d;color:#ffdb91;border-radius:6px;white-space:nowrap;margin-left:6px}
.qualification-note{color:#c7c9bd;margin:10px 20px 22px;font-size:.85rem}
.member-icon{display:inline-flex;align-items:center;justify-content:center;color:#e0be7c;font-size:1rem;margin-left:5px}
.cbs-checkbox{display:flex;align-items:center;gap:9px;margin:6px 0 16px;font-size:.9rem}
.cbs-checkbox input{width:18px;height:18px;accent-color:#d8ad6c}
.version-foot{font-size:.8rem;letter-spacing:.08em;color:#96a79b}
.tour-winners{color:#dfbe7b!important;display:block;margin-top:5px}
@media(max-width:600px){.guest-picker{align-items:stretch}.guest-picker label,.guest-picker select,.guest-picker button{width:100%}}

.member-manage{margin-top:24px}.member-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px;padding:18px 22px}.member-line{display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,255,255,.035);padding:9px 12px;border-radius:9px}.member-line label{display:flex;align-items:center;gap:10px;font-size:.9rem}.member-line input{accent-color:#d8ad6c;width:17px;height:17px}.member-manage .panel-heading p{color:#b8c2b5;font-size:.86rem;margin-top:6px}

.player-legend{display:flex;align-items:center;gap:12px;margin-top:18px;padding:15px 18px;border:1px solid #35473c;border-radius:12px;background:#1b2e25;color:#bacbbd;font-size:13px;line-height:1.5}.player-legend .member-icon{font-size:22px;margin-left:0;flex-shrink:0}.player-legend strong{color:#e7ecdf}

/* Spielregeln: einspaltige Leseseite, Tabellen und Listen */
.rules-layout{display:block;max-width:1050px}
.rules-layout .reading-panel{width:100%;max-width:none}
.rules-layout .rule-split{margin:23px 0 0}
.rules-list{margin:12px 0 0;padding-left:21px;color:#b6c5b9;line-height:1.75}
.rules-list li{padding:0 0 9px 3px}
.rules-list li::marker{color:#dabe81}
.rules-list strong,.rules-layout strong{color:#edf0e4}
.rules-subheading{font-size:18px;margin:24px 0 11px;color:#eee5cd}
.rules-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #34483c;border-radius:10px;margin:15px 0 7px}
.rules-table{border-collapse:collapse;width:100%;font-size:13px;min-width:360px}
.rules-table th{background:#273c30;color:#e1d4b3;text-align:left;font-size:11px;letter-spacing:.035em}
.rules-table th,.rules-table td{padding:11px 15px;border-bottom:1px solid #2a4034}
.rules-table tbody tr:last-child td{border-bottom:0}
.rules-table tbody tr:nth-child(even){background:#1c2f26}
.rules-table th:not(:first-child),.rules-table td:not(:first-child){text-align:right;white-space:nowrap}
.rules-fines th:last-child,.rules-fines td:last-child{width:100px;color:#e6cf91;font-weight:750}
.rules-caption{font-size:12px;color:#9eae9f;margin:10px 0 15px;line-height:1.65}
.rules-inline-link{color:#e2c78c;text-decoration:underline;text-underline-offset:3px}
.rules-layout .reading-divider{margin-top:30px;margin-bottom:27px}
@media(max-width:580px){.rules-layout .reading-panel{padding:19px 16px}.rules-layout .rule-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rules-layout .rule-split div:last-child{grid-column:1 / -1}.rules-table th,.rules-table td{padding:10px 11px}.rules-list{padding-left:17px}}

/* Telegram-Benutzerverknuepfung in der Verwaltung */
.telegram-id-form{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.telegram-id-form input{width:12.5rem;max-width:100%;padding:.55rem .65rem;border:1px solid #64766b;border-radius:8px;background:#eef3e9;color:#183528;font:inherit}.telegram-id-form .logout-button{white-space:nowrap}
