
.ks-ui{--ks-ink:#142235;--ks-muted:#64748b;--ks-line:#dfe7f0;--ks-accent:#2563eb;color:var(--ks-ink);font-family:inherit;max-width:1050px;margin:32px auto;padding:0 16px}
.ks-ui *{box-sizing:border-box}.ks-panel{background:#fff;border:1px solid var(--ks-line);border-radius:20px;padding:clamp(20px,4vw,36px);box-shadow:0 12px 36px rgba(15,23,42,.07);margin-bottom:18px}
.ks-ui h1,.ks-ui h2{color:var(--ks-ink);line-height:1.2;margin:8px 0 16px}.ks-ui h1{font-size:clamp(26px,4vw,38px)}.ks-ui h2{font-size:21px}.ks-muted{color:var(--ks-muted);font-size:14px}.ks-eyebrow{color:var(--ks-accent);text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800}
.ks-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ks-field{display:flex;flex-direction:column;gap:7px;font-weight:650;font-size:14px}.ks-field input{width:100%;min-height:48px;border:1px solid #cbd5e1;border-radius:11px;padding:10px 13px;background:#fff;color:var(--ks-ink);font-size:16px}
.ks-ui input:focus-visible,.ks-ui button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.ks-ui fieldset{border:0;margin:24px 0;padding:0}.ks-ui legend{font-weight:800;font-size:17px;margin-bottom:12px}
.ks-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ks-choice{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--ks-line);border-radius:12px;cursor:pointer;background:#f8fafc;font-weight:600}.ks-choice input{width:20px;height:20px;accent-color:var(--ks-accent)}.ks-consent{display:flex;gap:12px;align-items:flex-start;margin:18px 0}.ks-consent input{margin-top:5px}
.ks-primary,.ks-ui button.ks-primary{display:inline-flex;justify-content:center;align-items:center;background:var(--ks-accent);color:#fff;border:0;border-radius:12px;padding:14px 22px;font-weight:750;font-size:16px;min-height:48px;cursor:pointer}
.ks-primary:hover{background:#1d4ed8}.ks-alert{padding:16px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;margin:18px 0}
.ks-table-wrap{overflow-x:auto;border:1px solid var(--ks-line);border-radius:14px}.ks-ui table{border-collapse:collapse;width:100%;min-width:530px;margin:0}.ks-ui th{background:#f1f5f9;color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.ks-ui td,.ks-ui th{padding:14px 16px;border-bottom:1px solid var(--ks-line);text-align:left}.ks-ui tr:last-child td{border-bottom:0}.ks-ui .ks-results-section{margin:22px 0}
.ks-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ks-status{background:#eff6ff;color:#1d4ed8;padding:7px 10px;border-radius:99px;font-size:12px;font-weight:700}
.ks-score-display{display:flex;align-items:center;gap:16px;background:#eff6ff;border-radius:14px;padding:14px 18px;margin:16px 0}.ks-score-display strong{font-size:36px;color:#1d4ed8;margin-left:auto}.ks-score-display small{color:var(--ks-muted)}
.ks-hit-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.ks-hit-grid button{min-height:60px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e40af;font-size:24px;font-weight:800;cursor:pointer;touch-action:manipulation}.ks-hit-grid button:active{background:#bfdbfe;transform:scale(.97)}
.ks-hit-actions{display:flex;gap:12px;margin:14px 0}.ks-button-secondary{border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:10px 12px;color:var(--ks-ink);cursor:pointer}.ks-hit-sequence{min-height:24px;color:var(--ks-muted);overflow-wrap:anywhere}
@media(max-width:640px){.ks-form-grid,.ks-choice-list{grid-template-columns:1fr}.ks-panel{padding:20px}.ks-hit-grid{gap:6px}.ks-hit-grid button{min-height:58px}.ks-card-top{flex-direction:column}.ks-score-display{gap:10px}.ks-score-display strong{font-size:30px}}

.ks-judge-select{margin:18px 0;display:flex;gap:12px;align-items:end;flex-wrap:wrap}.ks-judge-select .ks-field{flex:1;min-width:210px}.ks-judge-select select{width:100%;min-height:48px;border:1px solid #cbd5e1;border-radius:11px;padding:10px;background:white;color:#142235;font-size:16px}

.ks-start-list{margin-top:34px;padding-top:22px;border-top:1px solid var(--ks-line)}.ks-start-list h2{margin-bottom:8px}.ks-start-list h3{font-size:18px;margin:0 0 12px}.ks-count{font-size:12px;font-weight:650;color:#64748b;background:#f1f5f9;border-radius:99px;padding:5px 9px;margin-left:8px}.ks-start-list .ks-results-section{margin:22px 0}.ks-start-list table{min-width:0}.ks-start-list td:first-child,.ks-start-list th:first-child{width:130px}

.ks-inner-ten{width:100%;margin-top:10px;min-height:54px;background:#dbeafe;border:2px solid #2563eb;border-radius:12px;font-weight:800;font-size:18px;color:#1e40af;cursor:pointer}.ks-series{display:grid;gap:10px;margin:14px 0}.ks-series-row{border:1px solid #dbe4ef;border-radius:12px;padding:12px;background:#f8fafc}.ks-series-row strong{display:block;margin-bottom:6px}.ks-series-row div{overflow-wrap:anywhere}

.ks-shot-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ks-shot-remove{border:1px solid #cbd5e1;border-radius:10px;padding:9px 12px;min-width:52px;min-height:44px;background:#fff;color:#1e293b;font-weight:750;font-size:16px;cursor:pointer}.ks-shot-remove:hover,.ks-shot-remove:focus-visible{border-color:#dc2626;background:#fef2f2;color:#991b1b}

/* Czytelny, dotykowy panel IPSC */
.ks-ipsc-form .ks-field{margin-bottom:14px}.ks-ipsc-form select{min-height:48px;padding:10px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px}
.ks-ipsc-nav{display:flex;gap:7px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:thin}.ks-ipsc-tab{flex:0 0 auto;min-height:44px;padding:9px 15px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#334155;font-weight:700;cursor:pointer}.ks-ipsc-tab.is-active{background:#1d4ed8;border-color:#1d4ed8;color:white}
.ks-ipsc-target{border:1px solid #bfdbfe;border-radius:16px;background:#f8fbff;padding:18px;margin:4px 0 18px}.ks-ipsc-target h3{margin:0 0 8px;font-size:21px}.ks-ipsc-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.ks-ipsc-score{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:76px;padding:12px;border:2px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e40af;font-size:23px;font-weight:850;cursor:pointer;touch-action:manipulation}.ks-ipsc-score:active{transform:scale(.97);background:#dbeafe}.ks-ipsc-count{display:inline-grid;place-items:center;min-width:32px;min-height:32px;border-radius:50%;background:white;color:#1e40af;font-size:16px}.ks-ipsc-miss,.ks-ipsc-pt,.ks-ipsc-proc{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.ks-ipsc-miss .ks-ipsc-count,.ks-ipsc-pt .ks-ipsc-count,.ks-ipsc-proc .ks-ipsc-count{color:#9a3412}.ks-ipsc-minus,.ks-ipsc-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ks-ipsc-minus button{min-height:44px}.ks-ipsc-danger{border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:10px;padding:10px 12px;cursor:pointer}.ks-ipsc-overview{border-top:1px solid #e2e8f0;padding-top:14px;margin-top:18px}.ks-ipsc-overview-item{display:block;width:100%;text-align:left;background:white;border:1px solid #e2e8f0;border-radius:9px;padding:10px;margin:6px 0;color:#334155;cursor:pointer}.ks-ipsc-overview-item.is-active{border-color:#2563eb;background:#eff6ff}.ks-ipsc-summary{font-size:14px;font-weight:650;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:540px){.ks-ipsc-buttons{gap:7px}.ks-ipsc-score{min-height:70px;padding:9px;font-size:19px}.ks-ipsc-target{padding:12px}.ks-ipsc-controls button{flex:1}}

.ks-validation-warning{margin:12px 0;padding:12px 15px;border:1px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:11px;font-size:14px;line-height:1.5}.ks-validation-warning[hidden]{display:none}.ks-validation-warning ul{margin:8px 0 0;padding-left:20px}

/* Ostrzeżenia IPSC widoczne w nawigacji i podsumowaniu, także dla aktywnego celu. */
.ks-ipsc-tab.has-warning,.ks-ipsc-tab.has-warning.is-active{background:#fff0c2;border:2px solid #b45309;color:#78350f}
.ks-ipsc-overview-item.has-warning,.ks-ipsc-overview-item.has-warning.is-active{background:#fff0c2;border:2px solid #b45309;color:#78350f;font-weight:750}
.ks-ipsc-tab.has-warning:focus-visible,.ks-ipsc-overview-item.has-warning:focus-visible{outline:3px solid #92400e;outline-offset:2px}

.ks-ipsc-shot-check{padding:14px 16px;border-radius:12px;font-size:17px;font-weight:800;margin:12px 0}.ks-ipsc-shot-check.is-correct{background:#dcfce7;color:#166534;border:2px solid #16a34a}.ks-ipsc-shot-check.is-incorrect{background:#fee2e2;color:#991b1b;border:2px solid #dc2626}.ks-ipsc-shot-check.is-unset{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}

/* Dwukolumnowa, kompaktowa lista startowa; na wąskich ekranach jedna kolumna. */
.ks-start-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}
.ks-start-person{min-width:0;overflow-wrap:anywhere;padding:9px 12px;border:1px solid var(--ks-line);border-radius:9px;background:#f8fafc}
@media(max-width:480px){.ks-start-people{grid-template-columns:1fr}}

/* Dwie konkurencje obok siebie, zawodnicy pojedynczo pod nazwą konkurencji. */
.ks-start-disciplines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.ks-start-disciplines>.ks-results-section{min-width:0;margin:0;padding:16px;border:1px solid var(--ks-line);border-radius:12px}
.ks-start-disciplines .ks-start-people{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
@media(max-width:700px){.ks-start-disciplines{grid-template-columns:minmax(0,1fr)}}

/* 1.3.7: Duże, czytelne pole czasu IPSC na telefonie i w panelu administratora. */
.ks-ipsc-form input[name="run_time"]{display:block;box-sizing:border-box;width:100%;max-width:420px;min-height:76px;padding:12px 18px;border:2px solid #2563eb;border-radius:14px;background:#fff;color:#0f172a;font-size:clamp(28px,5vw,40px);font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:.035em}
.ks-ipsc-form input[name="run_time"]:focus{outline:3px solid #bfdbfe;outline-offset:2px}
/* Zwarte tło wyników nie jest wymagane: zwięzłe wiersze i czytelne liczby. */
.ks-live-results .ks-results-section{margin:14px 0;padding:16px 18px}
.ks-live-results .ks-results-section h2{font-size:clamp(17px,2vw,21px);line-height:1.25;margin:0 0 10px}
.ks-live-results .ks-table-wrap{overflow-x:auto;border-radius:9px}
.ks-live-results table{min-width:0;width:100%;table-layout:fixed;border-collapse:collapse}
.ks-live-results th,.ks-live-results td{padding:7px 10px;font-size:clamp(13px,1.4vw,15px);line-height:1.3;vertical-align:middle}
.ks-live-results th{font-size:11px;letter-spacing:.025em;white-space:nowrap}
.ks-live-results th:first-child,.ks-live-results td:first-child{width:65px;text-align:center;font-weight:750;font-variant-numeric:tabular-nums}
.ks-live-results th:last-child,.ks-live-results td:last-child{width:100px;text-align:right;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.ks-live-results td:nth-child(2){overflow-wrap:anywhere}
.ks-live-results tbody tr:nth-child(even){background:#f8fafc}
.ks-live-results tbody tr:hover{background:#eff6ff}
@media(max-width:480px){.ks-live-results .ks-results-section{padding:12px 10px}.ks-live-results th,.ks-live-results td{padding:6px 5px;font-size:12px}.ks-live-results th:first-child,.ks-live-results td:first-child{width:46px}.ks-live-results th:last-child,.ks-live-results td:last-child{width:72px}.ks-live-results th{font-size:10px}}

/* IPSC mobile scorecard: large stable scoring controls inspired by practical match-scoring workflows. */
.ks-ipsc-form{max-width:960px;margin-inline:auto}.ks-ipsc-form .ks-field{font-weight:750}.ks-ipsc-form .ks-field input[name="run_time"]{max-width:none;text-align:center;font-size:clamp(36px,7vw,52px);min-height:88px}.ks-ipsc-form .ks-ipsc-target{background:#fff;border:2px solid #cbd5e1;border-radius:18px;padding:16px;box-shadow:0 4px 16px #0f172a0d}.ks-ipsc-target-heading{font-size:25px;font-weight:900;color:#0f172a;letter-spacing:.025em}.ks-ipsc-instruction{font-size:13px;color:#64748b;margin:8px 0}.ks-ipsc-form .ks-ipsc-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}.ks-ipsc-form .ks-ipsc-score{min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:30px;border-radius:12px;box-shadow:0 3px 0 #cbd5e1}.ks-ipsc-form .ks-ipsc-score:focus-visible{outline:4px solid #f59e0b;outline-offset:2px}.ks-ipsc-form .ks-ipsc-score .ks-ipsc-count{font-size:17px;min-height:29px;min-width:29px}.ks-ipsc-form .ks-ipsc-a{background:#dcfce7;border-color:#22c55e;color:#166534}.ks-ipsc-form .ks-ipsc-c{background:#dbeafe;border-color:#60a5fa;color:#1d4ed8}.ks-ipsc-form .ks-ipsc-d{background:#fef3c7;border-color:#fbbf24;color:#92400e}.ks-ipsc-form .ks-ipsc-miss,.ks-ipsc-form .ks-ipsc-pt,.ks-ipsc-form .ks-ipsc-proc{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.ks-ipsc-minus{align-items:center}.ks-ipsc-minus-label{font-size:12px;color:#64748b;font-weight:700;width:100%}.ks-ipsc-form .ks-ipsc-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ks-ipsc-form .ks-ipsc-controls button{min-height:48px;font-weight:750}.ks-ipsc-form .ks-ipsc-nav{position:relative;gap:8px;padding-bottom:12px}.ks-ipsc-form .ks-ipsc-tab{min-height:50px;min-width:74px}.ks-ipsc-form .ks-ipsc-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px}.ks-ipsc-form .ks-ipsc-overview h3{grid-column:1/-1}.ks-ipsc-form .ks-ipsc-overview-item{margin:0;min-height:55px}.ks-ipsc-form .ks-ipsc-summary{padding:12px;background:#f1f5f9;border-radius:10px}.ks-ipsc-form .ks-score-display{position:sticky;bottom:0;z-index:3;background:#0f172a;color:#fff;border-radius:12px;padding:14px 16px;box-shadow:0 -4px 16px #0f172a22}.ks-ipsc-form .ks-score-display strong{color:#86efac}.ks-ipsc-form [data-ipsc-warnings]{margin-top:14px}.ks-ipsc-form .ks-ipsc-shot-check{margin:12px 0}@media(max-width:600px){.ks-ipsc-form .ks-ipsc-score{min-height:84px;font-size:27px}.ks-ipsc-form .ks-ipsc-target{padding:11px}.ks-ipsc-form .ks-ipsc-controls{grid-template-columns:1fr 1fr}.ks-ipsc-form .ks-ipsc-controls button{font-size:13px;padding:9px}.ks-ipsc-form .ks-ipsc-overview{grid-template-columns:1fr 1fr}}

/* 1.4.6: większa wyłącznie cyfra licznika trafień, rozmiar przycisku i etykiety bez zmian */
.ks-ipsc-form .ks-ipsc-score .ks-ipsc-count{font-size:26px;font-weight:900;min-width:36px;min-height:36px}

.ks-trap-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:16px 0}
.ks-trap-target{position:relative;display:block;cursor:pointer}
.ks-trap-target input{position:absolute;opacity:0;width:1px;height:1px}
.ks-trap-target span{display:flex;align-items:center;justify-content:center;min-height:54px;border:2px solid #cbd5e1;border-radius:12px;background:#f8fafc;font-size:22px;font-weight:750;color:#334155}
.ks-trap-target input:checked+span{background:#dcfce7;border-color:#16a34a;color:#166534}
.ks-trap-target input:focus-visible+span{outline:3px solid #2563eb;outline-offset:3px}

.ks-trap-stations{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:15px 0}
.ks-trap-stations label{display:grid;gap:6px;font-weight:650}
.ks-trap-stations select{width:100%;min-height:44px}
.ks-trap-scroll{overflow-x:auto;margin:18px 0}
.ks-trap-scoreboard{width:100%;border-collapse:collapse}
.ks-trap-scoreboard th,.ks-trap-scoreboard td{padding:11px 9px;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap}
.ks-trap-current{padding:18px;border-radius:16px;background:#eff6ff;border:1px solid #bfdbfe;margin-top:18px}
.ks-trap-current h2{font-size:clamp(22px,5vw,32px);margin:8px 0}
.ks-trap-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ks-trap-actions button{min-height:90px;border:0;border-radius:14px;font-size:clamp(18px,3vw,26px);font-weight:800;cursor:pointer}
.ks-trap-hit{background:#16a34a;color:white}.ks-trap-miss{background:#dc2626;color:white}

/* TRAP: po zapisie wróć do aktywnego panelu sędziowania, a nie do nagłówka strony. */
#ks-trap-scoring{scroll-margin-top:16px}

/* Samodzielny panel sędziego: bez nagłówka, stopki i nawigacji motywu. */
body.ks-judge-standalone{margin:0;min-height:100vh;background:#f1f5f9;color:#142235;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
body.ks-judge-standalone #ks-judge-main{width:100%;padding:12px 0 24px}
body.ks-judge-standalone .ks-ui{margin:0 auto;padding:0 14px;max-width:1100px}
@media(max-width:640px){body.ks-judge-standalone #ks-judge-main{padding:6px 0 12px}body.ks-judge-standalone .ks-ui{padding:0 8px}}

/* 1.5.5: panel oceniania przed tabelą, bez automatycznego skoku na dół. */
.ks-trap-setup{margin:8px 0 16px;border:1px solid #dbe4ee;border-radius:12px;background:#fff;padding:10px 14px}
.ks-trap-setup summary{font-weight:700;cursor:pointer;padding:6px 0}
.ks-trap-active-row,.ks-trap-scoreboard tbody tr.ks-trap-active-row{background:#dcfce7!important;box-shadow:inset 5px 0 #16a34a}
.ks-trap-active-row td{font-weight:750;color:#14532d}
.ks-trap-now{display:inline-block;background:#15803d;color:#fff;border-radius:6px;padding:2px 6px;font-size:10px;letter-spacing:.02em;white-space:nowrap}
.ks-trap-current{margin-top:10px}
@media(max-width:600px){.ks-trap-current{padding:13px}.ks-trap-actions button{min-height:84px}}

#ks-trap-scoring{scroll-margin-top:12px}

.ks-judge-status{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0;padding:9px;background:#f1f5f9;border-radius:9px}
.ks-judge-status label{font-size:13px;font-weight:600}
.ks-judge-status select{display:block;min-width:115px;margin-top:4px}
.ks-judge-status .ks-primary{font-size:13px;padding:9px 12px;min-height:35px}
.ks-trap-status-row td{padding:0 8px 8px!important;border-top:0!important}
.ks-trap-status-row .ks-judge-status{margin:0 0 5px}

/* 1.5.17: czytelne podsumowanie IPSC bez dodatkowej karty celów */
.ks-ipsc-summary{font-size:clamp(20px,3.5vw,30px)!important;font-weight:800!important;line-height:1.45!important;letter-spacing:.01em;padding:15px 18px!important;border-radius:12px;background:#eaf2ff;color:#152f55;overflow-wrap:anywhere;margin:15px 0!important}

/* 1.5.18: IPSC status beside save button */
.ks-ipsc-form{display:contents}
.ks-ipsc-form + .ks-judge-status{display:inline-flex;vertical-align:middle;margin:8px 0 8px 12px;padding:5px 8px;gap:6px}
.ks-ipsc-form > button[type=submit]{display:inline-flex;vertical-align:middle;margin:8px 0}
.ks-ipsc-form + .ks-judge-status label{display:flex;align-items:center;gap:6px}
.ks-ipsc-form + .ks-judge-status select{margin:0}
@media(max-width:600px){.ks-ipsc-form + .ks-judge-status{margin-left:0}}

/* 1.5.23: ostatnio dodany cel IPSC na początku listy, bez przewijania poziomego. */
.ks-ipsc-form .ks-ipsc-nav{overflow-x:visible;overflow-y:visible;flex-wrap:wrap;scrollbar-width:none}

/* 1.5.24: odwrotna kolejność celów, ale poziome przesuwanie jak poprzednio */
.ks-ipsc-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scroll-behavior:smooth}
.ks-ipsc-nav .ks-ipsc-tab{flex:0 0 auto}

/* 1.5.25: cele IPSC w jednym przewijanym poziomo rzędzie */
.ks-ipsc-form .ks-ipsc-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;min-width:0;white-space:nowrap;scrollbar-width:thin!important;-webkit-overflow-scrolling:touch}
.ks-ipsc-form .ks-ipsc-nav .ks-ipsc-tab{flex:0 0 auto!important}

/* 1.5.27: niezależne wybieranie konkurencji i godzin */
.ks-discipline-choice{display:flex;flex-direction:column;align-items:stretch;gap:9px;cursor:default}
.ks-discipline-label{display:flex;align-items:center;gap:10px;cursor:pointer}
.ks-discipline-label input[type=checkbox]{flex:0 0 20px}
.ks-slot-choice{display:flex;flex-direction:column;gap:5px;padding-left:30px}
.ks-slot-label{font-size:13px;font-weight:700;color:#334155}
.ks-slot-choice select{width:100%;max-width:280px;min-height:42px;padding:8px;border:1px solid #94a3b8;border-radius:8px;background:white;color:#0f172a;font-size:15px}
.ks-slot-choice select:disabled{opacity:.55}

/* 1.5.32: status obok zapisu trafien w panelu statycznym */
.ks-static-save-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.ks-static-save-row>.ks-judge-status{margin:0;padding:6px 9px;flex:0 1 auto}
@media(max-width:640px){.ks-static-save-row{align-items:stretch}.ks-static-save-row>.ks-judge-status{width:100%}}
/* Godzina jest informacja pomocnicza, mniejsza od nazwiska i imienia */
.ks-start-person .ks-start-time{font-size:.76em;font-weight:600;color:#64748b;white-space:nowrap}

/* 1.5.42: standalone results and start lists sorted into time slots */
.ks-results-standalone{margin:0;background:#f3f6fa;min-height:100vh}
.ks-results-main{max-width:1200px;margin:0 auto;padding:24px 16px 48px}
.ks-start-hour-heading{font-weight:800;color:#254368;font-size:.95rem;padding:12px 4px 5px;margin-top:8px;border-bottom:1px solid #d7e0ed}

/* 1.5.50: rozroznienie zawodnikow z wprowadzonym wynikiem w panelach sedziowskich */
.ks-judge-select select option.ks-judge-scored-option,.ks-trap-stations select option.ks-judge-scored-option{background:#d7f5df;color:#126331;font-weight:700}
.ks-judge-score-legend{display:block;margin-top:5px;color:#16743b;font-size:12px;font-weight:650}
.ks-trap-scoreboard tr.ks-trap-finished-row>td{background:#d7f5df!important;color:#14532d}
.ks-trap-scoreboard tr.ks-trap-progress-row>td{background:#fff4d4}
.ks-trap-done{display:inline-block;margin-left:8px;font-size:11px;color:#166534}

/* 1.5.54: jednoznaczne wyróżnienie strzelającego w TRAP i DOUBLE TRAP */
.ks-trap-scoreboard tbody tr.ks-trap-active-row>td{background:#bbf7d0!important;color:#14532d!important;font-weight:800!important;border-top:2px solid #16a34a;border-bottom:2px solid #16a34a}
.ks-trap-scoreboard tbody tr.ks-trap-active-row>td:first-child{border-left:6px solid #15803d}
.ks-trap-now-badge{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:7px;background:#15803d;color:#fff;font-size:12px;font-weight:800;white-space:nowrap}

/* 1.5.57: wyłącznie aktualnie strzelający ma podświetlenie; pozostałe wiersze neutralne */
.ks-trap-scoreboard tbody tr:not(.ks-trap-active-row)>td{background:transparent!important;box-shadow:none!important;color:inherit}
.ks-trap-scoreboard tbody tr.ks-trap-status-row>td{background:transparent!important}

/* 1.5.63: mobilny TRAP i DOUBLE TRAP, bez przewijania strony. */
@media(max-width:700px){
body.ks-judge-standalone:has(.ks-trap-panel),body.ks-judge-standalone:has(.ks-trap-panel) #ks-judge-main{height:100dvh;overflow:hidden;margin:0}
.ks-ui.ks-judge:has(.ks-trap-panel){height:100%;max-width:none;margin:0;padding:4px 6px;display:flex;flex-direction:column;gap:3px;overflow:hidden}
.ks-judge:has(.ks-trap-panel)>.ks-panel:first-child{padding:3px 6px;margin:0;border-radius:8px;box-shadow:none;flex:none}
.ks-judge:has(.ks-trap-panel) .ks-eyebrow,.ks-judge:has(.ks-trap-panel)>.ks-panel:first-child>p{display:none}
.ks-judge:has(.ks-trap-panel) .ks-judge-select{margin:0;gap:3px;align-items:center;flex-wrap:nowrap}
.ks-judge:has(.ks-trap-panel) .ks-judge-select .ks-field{font-size:0;min-width:0;flex:1}
.ks-judge:has(.ks-trap-panel) .ks-judge-select select{min-height:32px;height:32px;padding:3px 7px;font-size:13px}
.ks-judge:has(.ks-trap-panel) .ks-judge-select button{min-height:32px;padding:4px 9px;font-size:12px}
.ks-trap-panel{flex:1;min-height:0;display:flex;flex-direction:column;padding:5px 7px!important;margin:0!important;gap:3px;overflow:hidden;border-radius:9px;box-shadow:none}
.ks-trap-panel>h2{font-size:14px;margin:0;flex:none}
.ks-trap-setup{margin:0!important;padding:1px 7px!important;flex:none;font-size:12px}
.ks-trap-setup summary{padding:2px 0!important}
.ks-trap-panel .ks-trap-current{order:-1;margin:0;padding:5px 7px;border-radius:8px;flex:none}
.ks-trap-current>span{font-size:11px;line-height:1.15;display:block}
.ks-trap-current h2{font-size:clamp(15px,4.2vw,20px);margin:2px 0}
.ks-trap-current p{font-size:11px;margin:2px 0}
.ks-trap-actions{gap:6px;margin-top:3px}
.ks-trap-actions button{min-height:48px;height:48px;border-radius:8px;font-size:17px}
.ks-trap-panel>h3{font-size:12px;margin:1px 0;flex:none}
.ks-trap-scroll{flex:1;min-height:0;overflow:auto;margin:0}
.ks-trap-scoreboard,.ks-ui .ks-trap-scoreboard{min-width:0;width:100%;table-layout:fixed}
.ks-trap-scoreboard th,.ks-trap-scoreboard td,.ks-ui .ks-trap-scoreboard th,.ks-ui .ks-trap-scoreboard td{padding:4px 3px;font-size:11px;white-space:normal;overflow-wrap:anywhere;line-height:1.12}
.ks-trap-scoreboard th:nth-child(1){width:10%}.ks-trap-scoreboard th:nth-child(2){width:45%}.ks-trap-scoreboard th:nth-child(3){width:20%}.ks-trap-scoreboard th:nth-child(4){width:25%}
.ks-trap-scoreboard th:nth-child(5),.ks-trap-scoreboard td:nth-child(5){display:none}
.ks-trap-now-badge,.ks-trap-done{display:block;margin:2px 0 0;padding:1px 3px;font-size:9px;white-space:normal}
.ks-trap-status-row td{padding:0 3px 2px!important}.ks-trap-status-row details{font-size:10px}.ks-trap-status-row summary{cursor:pointer;padding:1px 0}.ks-trap-status-row .ks-judge-status{margin:2px 0}
.ks-trap-panel .ks-alert{margin:2px 0;padding:5px;font-size:11px}
}

/* 1.5.64: rozwinięte ustawienia grupy nie zasłaniają stanowiska 6. */
@media(max-width:700px){
 .ks-trap-panel .ks-trap-setup[open]{max-height:min(32dvh,230px);overflow-y:auto;overscroll-behavior:contain;flex-shrink:0;scrollbar-width:thin}
 .ks-trap-panel .ks-trap-setup form{max-width:100%;font-size:12px}
 .ks-trap-panel .ks-trap-scroll{overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;flex:1 1 0!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 .ks-trap-panel .ks-trap-scoreboard th,.ks-trap-panel .ks-trap-scoreboard td{font-size:13px!important;line-height:1.2!important;padding:5px 3px!important}
 .ks-trap-panel .ks-trap-scoreboard th:first-child{width:14%}
 .ks-trap-panel .ks-trap-scoreboard th:nth-child(2){width:42%}
 .ks-trap-panel .ks-trap-scoreboard th:nth-child(3){width:21%}
 .ks-trap-panel .ks-trap-scoreboard th:nth-child(4){width:23%}
 .ks-trap-panel .ks-trap-now-badge,.ks-trap-panel .ks-trap-done{font-size:11px!important}
}

/* 1.5.65: czytelniejsza tabela i wybór konkurencji pod przyciskami. */
@media(max-width:700px){
 .ks-judge:has(.ks-trap-panel)>.ks-panel:first-child{display:none}
 .ks-trap-panel .ks-trap-current{order:0}
 .ks-trap-panel .ks-trap-discipline-picker{order:1;flex:0 0 auto;min-width:0;margin:1px 0 2px}
 .ks-trap-panel .ks-trap-discipline-picker .ks-judge-select{display:flex;flex-wrap:nowrap;gap:5px;margin:0;align-items:center}
 .ks-trap-panel .ks-trap-discipline-picker .ks-field{display:block;flex:1;min-width:0;font-size:12px;font-weight:700}
 .ks-trap-panel .ks-trap-discipline-picker select{display:block;width:100%;height:36px;min-height:36px;padding:4px 7px;font-size:14px}
 .ks-trap-panel .ks-trap-discipline-picker button{height:36px;min-height:36px;padding:3px 8px;font-size:12px;flex:0 0 auto}
 .ks-trap-panel>h2{order:2}
 .ks-trap-panel>.ks-trap-setup{order:3}
 .ks-trap-panel>h3{order:4}
 .ks-trap-panel>.ks-trap-scroll{order:5}
 .ks-trap-panel .ks-trap-scoreboard th,.ks-trap-panel .ks-trap-scoreboard td{font-size:15px!important;line-height:1.22!important;padding:6px 3px!important}
 .ks-trap-panel .ks-trap-now-badge,.ks-trap-panel .ks-trap-done{font-size:12px!important}
}

/* 1.5.66: podpis sędziego na samym dole TRAP / DOUBLE TRAP. */
.ks-trap-judge-footer{font-size:12px;color:#475569;text-align:center;padding:5px 4px 2px;flex:0 0 auto}
@media(max-width:700px){.ks-trap-panel>.ks-trap-judge-footer{order:6;font-size:12px;padding:2px 4px 0;line-height:1.2}}

/* 1.5.67: komunikaty potwierdzenia pod tabelą, bez przesuwania oceniania. */
.ks-trap-panel>.ks-trap-notice{margin:2px 0;padding:4px 8px;flex:0 0 auto}
@media(max-width:700px){
 .ks-trap-panel>.ks-trap-notice{order:6;font-size:11px;line-height:1.2;margin:0;padding:3px 6px;max-height:30px;overflow:hidden}
 .ks-trap-panel>.ks-trap-judge-footer{order:7}
}

/* 1.5.68: TRAP/DOUBLE TRAP: większe litery, bez pustej przestrzeni nad przyciskami. */
@media(max-width:700px){
 html:has(body.ks-judge-standalone .ks-trap-panel){height:100%;overflow:hidden}
 body.ks-judge-standalone:has(.ks-trap-panel){position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;overflow:hidden!important;overscroll-behavior:none}
 body.ks-judge-standalone:has(.ks-trap-panel) #ks-judge-main{height:100%;max-height:100%;min-height:0;overflow:hidden!important}
 .ks-ui.ks-judge:has(.ks-trap-panel){height:100%;max-height:100%;min-height:0;box-sizing:border-box;padding:2px 5px;gap:2px}
 .ks-trap-panel{min-height:0!important;max-height:100%;padding:3px 5px!important;gap:2px!important}
 .ks-trap-panel .ks-trap-current{padding:2px 4px!important;margin:0!important}
 .ks-trap-panel .ks-trap-actions{margin:0!important;gap:5px}
 .ks-trap-panel .ks-trap-actions button{min-height:44px;height:44px;font-size:18px}
 .ks-trap-panel .ks-trap-scoreboard th,.ks-trap-panel .ks-trap-scoreboard td{font-size:17px!important;line-height:1.2!important;padding:5px 3px!important}
 .ks-trap-panel .ks-trap-now-badge,.ks-trap-panel .ks-trap-done{font-size:12px!important}
 .ks-trap-panel .ks-trap-scroll{min-height:0!important;flex:1 1 0!important;overflow-y:auto!important}
 .ks-trap-panel .ks-trap-judge-footer{padding:0 3px!important;line-height:1.1!important}
}

/* 1.5.69: większy nagłówek ustawień i historia trafień po ukończeniu. */
.ks-trap-panel .ks-trap-setup>summary{font-size:18px!important;font-weight:800!important;line-height:1.3;padding:5px 2px!important}
.ks-trap-shot-history td{padding:4px 6px 8px!important}
.ks-trap-shot-history-title{font-size:12px;font-weight:700;margin-bottom:5px}
.ks-trap-shot-dots{display:flex;flex-wrap:wrap;gap:5px;align-items:center;max-width:100%}
.ks-trap-shot-dot{display:inline-block;width:13px;height:13px;min-width:13px;border:2px solid #111;border-radius:50%;box-sizing:border-box}
.ks-trap-shot-hit{background:#111}.ks-trap-shot-miss{background:#fff}
@media(max-width:700px){
 .ks-trap-panel .ks-trap-setup>summary{font-size:19px!important;padding:5px 2px!important}
 .ks-trap-panel .ks-trap-shot-history td{padding:5px 4px 9px!important}
 .ks-trap-panel .ks-trap-shot-history-title{font-size:13px!important}
 .ks-trap-panel .ks-trap-shot-dot{width:14px;height:14px;min-width:14px}
}

.ks-trap-next-series{margin:5px 0}.ks-trap-next-series button{width:100%;min-height:42px}.ks-trap-series-label{font-size:14px;font-weight:700;text-align:center}

/* 1.5.73: pełne ustawienia grupy na telefonie; bez kolumny Ostatnie. */
.ks-trap-panel .ks-trap-scoreboard th:nth-child(5),.ks-trap-panel .ks-trap-scoreboard td:nth-child(5){display:none}
@media(max-width:700px){
 .ks-trap-panel .ks-trap-scoreboard th:nth-child(1){width:15%}
 .ks-trap-panel .ks-trap-scoreboard th:nth-child(2){width:47%}
 .ks-trap-panel .ks-trap-scoreboard th:nth-child(3){width:20%}
 .ks-trap-panel .ks-trap-scoreboard th:nth-child(4){width:18%}
 .ks-trap-panel:has(>.ks-trap-setup[open])>.ks-trap-setup[open]{max-height:none!important;min-height:0;flex:1 1 auto!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .ks-trap-panel:has(>.ks-trap-setup[open])>.ks-trap-scroll{display:none}
 .ks-trap-panel:has(>.ks-trap-setup[open])>.ks-trap-notice{display:none}
 .ks-trap-panel:has(>.ks-trap-setup[open])>.ks-trap-series-label{display:none}
}

.ks-trap-undo{margin:2px 0;text-align:center;flex:0 0 auto}.ks-trap-undo-button{font-size:13px;padding:4px 12px;border:1px solid #888;border-radius:7px;background:#f4f4f4;color:#222;cursor:pointer}

/* 1.5.77: komunikat o zakończeniu indywidualnej serii pod tabelą. */
.ks-trap-panel>.ks-trap-series-finished{font-size:13px;line-height:1.25}
@media(max-width:700px){.ks-trap-panel>.ks-trap-series-finished{max-height:48px;overflow:auto;font-size:12px}}

/* 1.5.81: zwarta publiczna lista startowa pod rejestracją */
.ks-start-list{margin-top:18px;padding-top:12px}
.ks-start-list h2{font-size:19px;margin:0 0 5px}
.ks-start-list>.ks-muted{font-size:12px;margin:0 0 10px}
.ks-start-disciplines{gap:10px}
.ks-start-disciplines>.ks-results-section{padding:10px;border-radius:9px}
.ks-start-list .ks-results-section h3{font-size:15px;margin:0 0 7px}
.ks-start-list .ks-count{font-size:10px;padding:2px 6px}
.ks-start-disciplines .ks-start-people{gap:3px}
.ks-start-person{font-size:13px;line-height:1.15;padding:5px 8px;border-radius:5px}
.ks-start-hour-heading{font-size:12px;padding:6px 3px 3px;margin-top:4px}
@media(max-width:480px){.ks-start-disciplines>.ks-results-section{padding:8px}.ks-start-person{font-size:13px;padding:5px 7px}}

/* 1.5.90: wyłącznie pomarańczowe oznaczenie celu z nieprawidłową liczbą ocen; bez pól ostrzeżeń. */
.ks-ipsc-form .ks-ipsc-nav .ks-ipsc-tab.has-warning,.ks-ipsc-form .ks-ipsc-nav .ks-ipsc-tab.has-warning.is-active{background:#ffedd5!important;border:2px solid #ea580c!important;color:#9a3412!important}
.ks-ipsc-form [data-ipsc-warnings],.ks-ipsc-form [data-ipsc-shot-check]{display:none!important}

/* 1.5.92: licznik ocen IPSC zawsze widoczny pod edytorem. */
.ks-ipsc-form [data-ipsc-shot-check]{display:block!important;visibility:visible!important;opacity:1!important;background:#f1f5f9!important;color:#0f172a!important;border:1px solid #cbd5e1!important;padding:10px 12px!important;margin:8px 0!important;border-radius:9px!important;font-size:16px!important;font-weight:750!important}

/* 1.5.94: trzy równe kolumny w pasku IPSC, wartości nad podpisami. */
.ks-ipsc-form .ks-score-display.ks-ipsc-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important;align-items:stretch;text-align:center;padding:10px 5px!important}
.ks-ipsc-form .ks-ipsc-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:3px}
.ks-ipsc-form .ks-ipsc-metric strong{display:block;margin:0!important;font-size:clamp(17px,4.2vw,30px)!important;line-height:1.2;color:#86efac!important;white-space:nowrap;font-weight:800}
.ks-ipsc-form .ks-ipsc-metric span:not([data-ipsc-time]){font-size:clamp(11px,2.8vw,15px);font-weight:700;line-height:1.3;color:#fff}
.ks-ipsc-form [data-ipsc-shot-check].is-correct{background:#dcfce7!important;color:#166534!important;border:2px solid #16a34a!important}
.ks-ipsc-form [data-ipsc-shot-check].is-incorrect{background:#fee2e2!important;color:#991b1b!important;border:2px solid #dc2626!important}
.ks-ipsc-form [data-ipsc-shot-check].is-unset{background:#f1f5f9!important;color:#475569!important;border:1px solid #cbd5e1!important}

/* 1.5.95: większe zielone wartości w trzykolumnowym podsumowaniu IPSC. */
.ks-ipsc-form .ks-score-display.ks-ipsc-metrics .ks-ipsc-metric strong{font-size:clamp(21px,5vw,38px)!important;letter-spacing:-.035em}
@media(max-width:400px){.ks-ipsc-form .ks-score-display.ks-ipsc-metrics .ks-ipsc-metric strong{font-size:clamp(18px,5.1vw,25px)!important}}

/* 1.5.120: czytelna publiczna lista startowa, podział na konkurencje i godziny */
.ks-ui .ks-start-list{margin-top:28px;padding-top:22px;border-top:2px solid #e2e8f0}
.ks-ui .ks-start-list h2{font-size:clamp(21px,3vw,26px);font-weight:800;margin:0 0 8px}
.ks-ui .ks-start-list>.ks-muted{font-size:13px;line-height:1.5;margin:0 0 18px}
.ks-ui .ks-start-disciplines{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.ks-ui .ks-start-disciplines>.ks-results-section.ks-start-discipline{margin:0;padding:0;border:1px solid #cbd5e1;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.ks-ui .ks-start-discipline-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;background:#eff6ff;border-bottom:1px solid #dbeafe}
.ks-ui .ks-start-discipline-head h3{margin:0;font-size:17px;line-height:1.4;font-weight:800;color:#1e3a8a}
.ks-ui .ks-start-discipline-head .ks-count{flex:none;margin:0;padding:5px 10px;font-size:12px;color:#1e40af;background:#dbeafe;border-radius:20px}
.ks-ui .ks-start-time-group{padding:0 16px 12px}
.ks-ui .ks-start-time-group+.ks-start-time-group{border-top:1px solid #e2e8f0}
.ks-ui .ks-start-hour-heading{display:flex;align-items:center;gap:8px;margin:0;padding:13px 0 9px;color:#0f172a;font-size:15px;line-height:1.4}
.ks-ui .ks-start-hour-heading strong{font-size:16px;font-variant-numeric:tabular-nums}
.ks-ui .ks-start-time-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;background:#dbeafe;border-radius:7px;color:#1d4ed8;font-size:20px}
.ks-ui .ks-start-hour-count{margin-left:auto;font-size:12px;font-weight:700;color:#64748b}
.ks-ui ol.ks-start-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;list-style:none;counter-reset:ks-starter;margin:0;padding:0}
.ks-ui .ks-start-person{display:flex;align-items:center;gap:10px;min-width:0;min-height:40px;margin:0;padding:8px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;counter-increment:ks-starter}
.ks-ui .ks-start-person::before{content:counter(ks-starter) '.';flex:none;min-width:20px;color:#64748b;font-size:12px;font-weight:800}
.ks-ui .ks-start-empty{margin:0;padding:16px 18px;color:#64748b;font-size:14px}
@media(max-width:600px){.ks-ui .ks-start-discipline-head{padding:12px;align-items:flex-start}.ks-ui .ks-start-discipline-head h3{font-size:15px}.ks-ui .ks-start-time-group{padding:0 10px 10px}.ks-ui ol.ks-start-people{grid-template-columns:minmax(0,1fr);gap:5px}.ks-ui .ks-start-person{font-size:14px;min-height:42px}}

/* 1.5.124: responsywny podgląd zamkniętego wyniku IPSC */
.ks-ipsc-preview-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:12px 6px!important;max-width:100%;box-sizing:border-box;text-align:center}
.ks-ipsc-preview-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:4px}
.ks-ipsc-preview-metric strong{font-size:clamp(16px,4.6vw,30px);color:#86efac;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.ks-ipsc-preview-metric>span{font-size:clamp(10px,2.8vw,14px);font-weight:700;color:#fff}
.ks-ipsc-preview-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:12px}
.ks-ipsc-preview-table-wrap table{width:100%;min-width:390px;table-layout:auto;border-collapse:collapse}
.ks-ipsc-preview-table-wrap th,.ks-ipsc-preview-table-wrap td{padding:7px 5px;text-align:center;white-space:nowrap}
.ks-score-card{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}

/* Podgląd zapisanego wyniku IPSC: czytelne wartości również na wąskich telefonach. */
.ks-panel .ks-score-display.ks-ipsc-preview-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:0!important;background:#0f172a;color:#fff;border-radius:14px;padding:16px 8px!important;margin:16px 0;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}
.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;max-width:100%;gap:7px;padding:2px 4px;box-sizing:border-box;text-align:center}
.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric+ .ks-ipsc-preview-metric{border-left:1px solid #334155}
.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric strong{display:block;margin:0!important;padding:0!important;width:100%;min-width:0;max-width:100%;font-size:clamp(17px,4.4vw,34px)!important;line-height:1.15!important;font-weight:800;color:#86efac!important;letter-spacing:-.035em;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric>span{display:block;color:#fff!important;font-size:clamp(11px,2.8vw,15px)!important;line-height:1.3;font-weight:700;text-align:center}
@media(max-width:440px){.ks-panel .ks-score-display.ks-ipsc-preview-metrics{grid-template-columns:1fr!important;gap:0!important;padding:5px 16px!important}.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric{flex-direction:row;justify-content:space-between;align-items:center;padding:12px 2px;gap:12px}.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric+ .ks-ipsc-preview-metric{border-left:0;border-top:1px solid #334155}.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric strong{width:auto;max-width:65%;font-size:clamp(24px,7vw,34px)!important;text-align:right;order:2}.ks-panel .ks-ipsc-preview-metrics .ks-ipsc-preview-metric>span{font-size:15px!important;text-align:left;order:1}}

/* Stały pasek wyniku sędziego statycznego, widoczny podczas przewijania. */
body:has(.ks-static-fixed-score){padding-bottom:110px!important}
.ks-hit-form .ks-static-fixed-score{position:fixed!important;bottom:0;left:0;right:0;width:100%;box-sizing:border-box;z-index:9999;background:#0f172a;color:#fff;border-radius:0;padding:12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));box-shadow:0 -4px 18px #0f172a55;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;text-align:center}
.ks-hit-form .ks-static-fixed-score strong{color:#86efac;font-size:clamp(26px,6vw,40px);line-height:1}
.ks-hit-form .ks-static-fixed-score small{color:#cbd5e1;font-size:13px}

/* 1.5.158: trzy czytelne kolumny wyniku statycznego jak w IPSC */
.ks-hit-form .ks-static-fixed-score{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:12px max(8px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important}
.ks-static-fixed-score .ks-static-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:5px;padding:0 5px;text-align:center}
.ks-static-fixed-score .ks-static-metric+.ks-static-metric{border-left:1px solid #334155}
.ks-static-fixed-score .ks-static-metric>span{color:#fff;font-weight:700;font-size:clamp(11px,2.7vw,15px);line-height:1.25}
.ks-hit-form .ks-static-fixed-score .ks-static-metric strong{font-size:clamp(19px,5vw,36px)!important;line-height:1.15!important;white-space:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.ks-hit-form .ks-static-fixed-score [data-current-series]{font-size:clamp(12px,3vw,20px)!important;line-height:1.3!important}
.ks-hit-grid button{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;min-width:0;padding:8px 2px!important;display:flex!important;align-items:center;justify-content:center;line-height:1!important;font-variant-numeric:tabular-nums}

/* Wyróżniona akcja przejścia do kolejnej serii w panelu statycznym. */
.ks-hit-form .ks-next-series-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border:2px solid #15803d;border-radius:10px;background:#16a34a;color:#fff;font-size:15px;font-weight:700;line-height:1.3;cursor:pointer;box-shadow:0 3px 8px rgba(22,163,74,.2);white-space:normal;text-align:center}
.ks-hit-form .ks-next-series-button:hover,.ks-hit-form .ks-next-series-button:focus-visible{background:#15803d;border-color:#166534;color:#fff}
.ks-hit-form .ks-next-series-button:disabled{opacity:.55;cursor:not-allowed}

/* 1.5.160: wybór klasy sprzętowej tuż pod wyborem zawodnika. */
.ks-hit-form .ks-static-equipment-top{margin:0 0 10px;max-width:520px}
.ks-hit-form .ks-static-equipment-top select{width:100%;min-height:48px;border:1px solid #cbd5e1;border-radius:10px;padding:9px 12px;background:#fff;color:#142235;font-size:16px}
.ks-hit-form .ks-static-shooter-heading{margin:6px 0 12px}

/* 1.5.161: większe wyniki, podpisy pod liczbami, bez informacji o serii. */
.ks-hit-form .ks-static-fixed-score{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding-top:15px!important;padding-bottom:calc(15px + env(safe-area-inset-bottom))!important}
.ks-hit-form .ks-static-fixed-score .ks-static-metric{gap:6px}
.ks-hit-form .ks-static-fixed-score .ks-static-metric strong{font-size:clamp(38px,9vw,62px)!important;line-height:1!important;white-space:nowrap}
.ks-hit-form .ks-static-fixed-score .ks-static-metric>span{font-size:clamp(12px,3vw,16px);color:#cbd5e1;font-weight:600}

/* 1.5.162: pasek statyczny wizualnie zgodny z paskiem IPSC: równe kolumny,
   symetryczne wartości i podpisy, zaokrąglone narożniki. */
.ks-hit-form .ks-score-display.ks-static-fixed-score{
  left:12px!important;right:12px!important;bottom:10px!important;
  width:calc(100% - 24px)!important;max-width:960px!important;
  margin:0 auto!important;box-sizing:border-box!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;justify-content:stretch!important;
  gap:4px!important;border-radius:12px!important;
  padding:12px 8px calc(12px + env(safe-area-inset-bottom))!important;
  box-shadow:0 -4px 16px #0f172a33!important;
}
.ks-hit-form .ks-static-fixed-score .ks-static-metric{
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:3px!important;padding:0!important;min-width:0!important;
  border:0!important;text-align:center!important;
}
.ks-hit-form .ks-static-fixed-score .ks-static-metric strong{
  display:block!important;width:100%!important;margin:0!important;
  font-size:clamp(26px,6vw,42px)!important;line-height:1.2!important;
  color:#86efac!important;font-weight:800!important;
  white-space:nowrap!important;text-align:center!important;
}
.ks-hit-form .ks-static-fixed-score .ks-static-metric>span{
  display:block!important;width:100%!important;margin:0!important;
  font-size:clamp(11px,2.8vw,15px)!important;line-height:1.3!important;
  color:#fff!important;font-weight:700!important;text-align:center!important;
}
@media(max-width:480px){.ks-hit-form .ks-score-display.ks-static-fixed-score{left:8px!important;right:8px!important;width:calc(100% - 16px)!important;bottom:8px!important}}

.ks-ipsc-limit-warning{padding:14px 16px;background:#ffedd5;border:2px solid #ea580c;border-radius:12px;color:#9a3412;font-weight:800;margin:14px 0}.ks-ipsc-limit-warning[hidden]{display:none}

/* Steel Challenge: kolejny przebieg i stale widoczny wynik */
.ks-steel-form .ks-steel-run[hidden],.ks-steel-form .ks-steel-submit[hidden]{display:none!important}
.ks-steel-form .ks-steel-run input[type=number]{font-size:clamp(30px,7vw,46px);font-weight:800;text-align:center;min-height:76px;width:100%}
.ks-steel-form .ks-steel-run{padding:12px 0 26px}
.ks-steel-form .ks-steel-next,.ks-steel-form .ks-steel-submit{display:block;width:100%;min-height:58px;margin-top:26px}
.ks-steel-form .ks-steel-metrics{position:sticky;bottom:8px;z-index:10;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;background:#0f172a!important;color:#fff!important;border-radius:14px!important;padding:12px 6px!important;box-shadow:0 -4px 16px #0f172a22}
.ks-steel-form .ks-steel-metrics .ks-ipsc-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-width:0;gap:5px}
.ks-steel-form .ks-steel-metrics .ks-ipsc-metric strong{margin:0!important;color:#86efac!important;font-size:clamp(20px,5vw,38px)!important;white-space:nowrap}
.ks-steel-form .ks-steel-metrics .ks-ipsc-metric span{color:#cbd5e1;font-size:13px}

/* Steel Challenge: duże, czytelne pola czasu i kary oraz nawigacja między przebiegami. */
.ks-steel-form .ks-steel-run input[type="number"]{font-size:clamp(38px,9vw,58px)!important;line-height:1.2!important;font-weight:800!important;min-height:90px!important;font-variant-numeric:tabular-nums}
.ks-steel-form .ks-steel-back{display:block;width:100%;min-height:50px;margin-top:20px;border:2px solid #64748b;border-radius:9px;background:#f1f5f9;color:#0f172a;font-size:17px;font-weight:700;cursor:pointer}
.ks-steel-form .ks-steel-back:hover{background:#e2e8f0}

/* Steel Challenge: wybór przebiegu jak cele IPSC i pola czasu/kary w jednym rzędzie. */
.ks-steel-nav{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 10px}
.ks-steel-tab{min-width:52px;min-height:52px;border:2px solid #94a3b8;border-radius:10px;background:#f1f5f9;color:#0f172a;font-size:22px;font-weight:800;cursor:pointer}
.ks-steel-tab.is-complete{background:#dcfce7;border-color:#16a34a}
.ks-steel-tab.is-active{background:#f59e0b;border-color:#b45309;color:#111827;box-shadow:0 0 0 2px #fcd34d}
.ks-steel-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.ks-steel-fields .ks-field{min-width:0}
.ks-steel-fields input[type=number]{box-sizing:border-box;min-width:0;width:100%;font-size:clamp(26px,6vw,48px)!important}
@media(max-width:420px){.ks-steel-fields{gap:8px}.ks-steel-fields input[type=number]{font-size:30px!important;padding:8px 3px!important}}

/* Steel Challenge: bez pustej ramki/odstępu pod klawiaturą. */
.ks-steel-form .ks-steel-run{padding-bottom:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.ks-steel-form .ks-steel-keypad{margin-bottom:8px!important}

/* Steel Challenge: duże cyfry czasu i kary także w polach tekstowych readonly. */
.ks-steel-fields input[type="text"]{box-sizing:border-box;min-width:0;width:100%;font-size:clamp(34px,7vw,54px)!important;font-weight:700!important;text-align:center;line-height:1.25;padding:12px 5px!important;font-variant-numeric:tabular-nums}
@media(max-width:420px){.ks-steel-fields input[type="text"]{font-size:36px!important;padding:10px 3px!important}}

/* Steel: przycisk zatwierdzania pozostaje nad przyklejonym paskiem wyniku. */
.ks-steel-form .ks-steel-submit{position:relative;z-index:11;margin:24px 0 18px!important;min-height:60px}
.ks-steel-form{padding-bottom:24px}
.ks-steel-form .ks-steel-metrics{margin-top:12px;pointer-events:none}

/* 1.5.194: wielotorowe tabele IPSC nie mogą ściskać nazwisk ani danych. */
.ks-live-results .ks-results-section .ks-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ks-live-results .ks-results-section table.ks-ranking-table,.ks-live-results .ks-results-section table.ks-stage-table{width:max-content;min-width:100%;table-layout:auto}
.ks-live-results .ks-results-section table.ks-ranking-table th,.ks-live-results .ks-results-section table.ks-ranking-table td,.ks-live-results .ks-results-section table.ks-stage-table th,.ks-live-results .ks-results-section table.ks-stage-table td{width:auto;min-width:75px;white-space:nowrap;overflow-wrap:normal;text-align:center}
.ks-live-results .ks-results-section table.ks-ranking-table th:nth-child(2),.ks-live-results .ks-results-section table.ks-ranking-table td:nth-child(2),.ks-live-results .ks-results-section table.ks-stage-table th:first-child,.ks-live-results .ks-results-section table.ks-stage-table td:first-child{min-width:190px;max-width:300px;white-space:normal;overflow-wrap:break-word;text-align:left}
.ks-live-results .ks-results-section table.ks-ranking-table th:first-child,.ks-live-results .ks-results-section table.ks-ranking-table td:first-child{min-width:65px;width:auto}
.ks-live-results .ks-results-section table.ks-ranking-table th:last-child,.ks-live-results .ks-results-section table.ks-ranking-table td:last-child,.ks-live-results .ks-results-section table.ks-stage-table th:last-child,.ks-live-results .ks-results-section table.ks-stage-table td:last-child{width:auto;min-width:100px;text-align:center}
.ks-live-results .ks-results-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ks-live-results .ks-results-filter select{max-width:100%;min-width:190px}

/* 1.5.195: identyczne zestawienie trafień podczas oceny i po zapisaniu toru. */
.ks-ipsc-live-totals{margin:12px 0 18px!important}
.ks-ipsc-live-totals table{width:100%;min-width:390px;table-layout:auto;border-collapse:collapse}
.ks-ipsc-live-totals th,.ks-ipsc-live-totals td{text-align:center;padding:7px 5px;white-space:nowrap}

/* 1.5.196: kompaktowe kolumny trafień A, C, D, Miss, PT i Proc w wynikach online IPSC wielotorowego. */
.ks-live-results .ks-results-section table.ks-stage-table th:nth-child(n+2):nth-child(-n+7),
.ks-live-results .ks-results-section table.ks-stage-table td:nth-child(n+2):nth-child(-n+7){min-width:0!important;width:42px!important;max-width:42px!important;padding-left:5px!important;padding-right:5px!important;white-space:nowrap;text-align:center}

/* Wyniki online IPSC wielotorowe: wąska kolumna PKT (punkty trafień). */
.ks-live-results .ks-results-section table.ks-stage-table th:nth-child(9),
.ks-live-results .ks-results-section table.ks-stage-table td:nth-child(9){min-width:0!important;width:52px!important;max-width:52px!important;padding-left:5px!important;padding-right:5px!important;white-space:nowrap;text-align:center}

/* 1.5.200: kompaktowe tabele wyników online na telefonach. */
.ks-live-results,.ks-live-results .ks-panel,.ks-live-results .ks-results-section{min-width:0;max-width:100%;box-sizing:border-box}
.ks-live-results .ks-results-section .ks-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ks-live-results .ks-results-section table.ks-ranking-table,.ks-live-results .ks-results-section table.ks-stage-table{width:100%;min-width:0;table-layout:auto}
.ks-live-results .ks-results-section table.ks-ranking-table th,.ks-live-results .ks-results-section table.ks-ranking-table td,.ks-live-results .ks-results-section table.ks-stage-table th,.ks-live-results .ks-results-section table.ks-stage-table td{min-width:0;max-width:none;width:auto;padding:6px 4px;font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.ks-live-results .ks-results-section table.ks-ranking-table th:nth-child(2),.ks-live-results .ks-results-section table.ks-ranking-table td:nth-child(2),.ks-live-results .ks-results-section table.ks-stage-table th:first-child,.ks-live-results .ks-results-section table.ks-stage-table td:first-child{min-width:0;max-width:140px;width:auto}
.ks-live-results .ks-results-section table.ks-ranking-table th:first-child,.ks-live-results .ks-results-section table.ks-ranking-table td:first-child{min-width:0;width:40px}
.ks-live-results .ks-results-section table.ks-ranking-table th:last-child,.ks-live-results .ks-results-section table.ks-ranking-table td:last-child,.ks-live-results .ks-results-section table.ks-stage-table th:last-child,.ks-live-results .ks-results-section table.ks-stage-table td:last-child{min-width:0;width:auto}
.ks-live-results .ks-results-section table.ks-stage-table th:nth-child(n+2):nth-child(-n+7),.ks-live-results .ks-results-section table.ks-stage-table td:nth-child(n+2):nth-child(-n+7){min-width:0!important;width:auto!important;max-width:none!important;padding:5px 2px!important}
.ks-live-results .ks-results-section table.ks-stage-table th:nth-child(9),.ks-live-results .ks-results-section table.ks-stage-table td:nth-child(9){min-width:0!important;width:auto!important;max-width:none!important;padding:5px 2px!important}
@media(max-width:600px){
 .ks-live-results .ks-results-section{padding:9px 5px}
 .ks-live-results .ks-results-section table.ks-ranking-table th,.ks-live-results .ks-results-section table.ks-ranking-table td{font-size:10px;padding:5px 2px}
 .ks-live-results .ks-results-section table.ks-stage-table{font-size:9px}
 .ks-live-results .ks-results-section table.ks-stage-table th,.ks-live-results .ks-results-section table.ks-stage-table td{font-size:9px;padding:4px 2px;letter-spacing:0}
 .ks-live-results .ks-results-section table.ks-stage-table th:first-child,.ks-live-results .ks-results-section table.ks-stage-table td:first-child{min-width:75px;max-width:105px}
 .ks-live-results .ks-results-section table.ks-stage-table th:nth-child(n+2):nth-child(-n+7),.ks-live-results .ks-results-section table.ks-stage-table td:nth-child(n+2):nth-child(-n+7){padding:4px 1px!important}
}

/* 1.5.200: czytelniejsze wyniki online na telefonie, przewijanie tabel w poziomie */
@media (max-width:600px){
 .ks-live-results .ks-results-section .ks-table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
 .ks-live-results .ks-results-section table.ks-ranking-table,
 .ks-live-results .ks-results-section table.ks-stage-table{width:max-content!important;min-width:100%!important;table-layout:auto!important}
 .ks-live-results .ks-results-section table.ks-ranking-table th,
 .ks-live-results .ks-results-section table.ks-ranking-table td,
 .ks-live-results .ks-results-section table.ks-stage-table th,
 .ks-live-results .ks-results-section table.ks-stage-table td{font-size:13px!important;line-height:1.3!important;padding:7px 6px!important;white-space:nowrap!important;overflow-wrap:normal!important}
 .ks-live-results .ks-results-section table.ks-stage-table th:first-child,
 .ks-live-results .ks-results-section table.ks-stage-table td:first-child,
 .ks-live-results .ks-results-section table.ks-ranking-table th:nth-child(2),
 .ks-live-results .ks-results-section table.ks-ranking-table td:nth-child(2){min-width:125px!important;max-width:220px!important;white-space:normal!important;overflow-wrap:break-word!important}
 .ks-live-results .ks-results-section table.ks-stage-table th:nth-child(n+2):nth-child(-n+7),
 .ks-live-results .ks-results-section table.ks-stage-table td:nth-child(n+2):nth-child(-n+7),
 .ks-live-results .ks-results-section table.ks-stage-table th:nth-child(9),
 .ks-live-results .ks-results-section table.ks-stage-table td:nth-child(9){width:auto!important;min-width:40px!important;max-width:none!important;padding:7px 5px!important}
}

/* 1.5.205: wyróżniaj wynik łączny, nie ostatni tor/przebieg. */
.ks-live-results .ks-results-section table.ks-ranking-table th:last-child,
.ks-live-results .ks-results-section table.ks-ranking-table td:last-child{font-weight:inherit}
.ks-live-results .ks-results-section table.ks-ranking-table th:nth-child(3),
.ks-live-results .ks-results-section table.ks-ranking-table td:nth-child(3){font-weight:800;font-variant-numeric:tabular-nums}
/* Filtr w stylistyce pozostałych pól formularzy. */
.ks-live-results .ks-results-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}
.ks-live-results .ks-results-filter label{font-weight:700;color:#334155}
.ks-live-results .ks-results-filter select{appearance:auto;box-sizing:border-box;width:min(100%,380px);max-width:100%;min-height:44px;padding:9px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:15px;box-shadow:0 1px 3px #0f172a0b}
.ks-live-results .ks-results-filter select:focus{outline:2px solid #2563eb;outline-offset:2px;border-color:#2563eb}
@media(max-width:480px){.ks-live-results .ks-results-filter{align-items:stretch;flex-direction:column}.ks-live-results .ks-results-filter select{width:100%;min-width:0}}

/* Wyniki online TRAP: czarne trafienia, biale pudla */
.ks-live-results .ks-online-trap-dots{min-width:135px;max-width:360px;gap:4px}
.ks-live-results .ks-online-trap-dots .ks-trap-shot-dot{flex:0 0 13px}

.ks-live-results .ks-online-trap-dots{gap:3px;min-width:0}
.ks-live-results .ks-online-trap-dots .ks-trap-shot-dot{flex:0 0 9px;width:9px;height:9px}
/* 1.5.211: kropki TRAP zawsze okragle, bez zmiany srednicy 9px. */
.ks-live-results .ks-online-trap-dots .ks-trap-shot-dot{
  display:inline-block;
  flex:0 0 9px;
  width:9px;
  min-width:9px;
  max-width:9px;
  height:9px;
  min-height:9px;
  max-height:9px;
  aspect-ratio:1 / 1;
  border-radius:50%;
  box-sizing:border-box;
  padding:0;
  margin:0;
}

/* Steel: zapisany wynik końcowy jak czarny pasek w panelu dynamicznym. */
.ks-panel .ks-score-display.ks-steel-final-score{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0f172a!important;color:#fff!important;border-radius:12px;padding:14px 16px;box-shadow:0 -4px 16px #0f172a22;box-sizing:border-box;width:100%;flex-wrap:wrap}
.ks-panel .ks-score-display.ks-steel-final-score span{color:#fff;font-weight:700;font-size:clamp(14px,3vw,18px)}
.ks-panel .ks-score-display.ks-steel-final-score strong{color:#86efac!important;margin-left:auto;font-size:clamp(24px,6vw,38px);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Dynamic online: tylko Wynik % jest wyróżniony; bez pogrubienia A (kolumna 3). */
.ks-live-results .ks-results-section table.ks-dynamic-ranking tbody td{font-weight:400!important}
.ks-live-results .ks-results-section table.ks-dynamic-ranking tbody td strong{font-weight:inherit!important}
.ks-live-results .ks-results-section table.ks-dynamic-ranking tbody td:last-child,
.ks-live-results .ks-results-section table.ks-dynamic-ranking tbody td:last-child strong{font-weight:800!important}

/* Klasyfikacja laczna: tylko wartosc w kolumnie Wynik jest pogrubiona. */
.ks-live-results .ks-results-section table.ks-aggregate-ranking tbody td,
.ks-live-results .ks-results-section table.ks-aggregate-ranking tbody td:nth-child(3){font-weight:400!important}
.ks-live-results .ks-results-section table.ks-aggregate-ranking tbody td strong{font-weight:400!important}
.ks-live-results .ks-results-section table.ks-aggregate-ranking tbody td:last-child strong{font-weight:800!important}

/* 1.5.258: wszystkie nagłówki kolumn wyników online są pogrubione. */
.ks-live-results .ks-results-section table.ks-ranking-table thead th,
.ks-live-results .ks-results-section table.ks-stage-table thead th,
.ks-live-results .ks-results-section table.ks-aggregate-ranking thead th{font-weight:800!important;}

/* 1.5.261 — panel statyczny: stylistyka panelu Steel, bez zmian w punktacji. */
.ks-ui:has(.ks-static-steel-theme){--ks-accent:#172337}
.ks-static-steel-theme .ks-static-shooter-heading{font-size:clamp(22px,4vw,30px);font-weight:800;color:#172337;margin:8px 0 18px}
.ks-static-steel-theme .ks-hit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:480px;margin:18px auto 10px}
.ks-static-steel-theme .ks-hit-grid button{min-height:62px;border:1px solid #b7c4d4;border-radius:10px;background:#f2f6fa;color:#172337;font-size:clamp(22px,5vw,27px);font-weight:800;box-shadow:none;touch-action:manipulation}
.ks-static-steel-theme .ks-hit-grid button:hover{background:#e2e8f0;border-color:#94a3b8}
.ks-static-steel-theme .ks-hit-grid button:active{background:#d4e8ff;transform:scale(.97)}
.ks-static-steel-theme .ks-inner-ten{display:block;width:100%;max-width:480px;margin:8px auto 16px;min-height:56px;border:2px solid #b45309;border-radius:10px;background:#fef3c7;color:#172337;font-size:18px;font-weight:800;cursor:pointer;touch-action:manipulation}
.ks-static-steel-theme .ks-inner-ten:active{background:#fde68a}
.ks-static-steel-theme .ks-hit-actions{max-width:480px;margin:14px auto;justify-content:center}
.ks-static-steel-theme .ks-next-series-button{width:100%;min-height:54px;border-radius:10px}
.ks-static-steel-theme .ks-hit-sequence{max-width:480px;margin:12px auto;text-align:center;color:#475569;font-size:16px;font-variant-numeric:tabular-nums}
.ks-static-steel-theme .ks-series{max-width:650px;margin:14px auto}
.ks-static-steel-theme .ks-static-equipment-top{max-width:480px;margin:0 auto 16px}
.ks-static-steel-theme .ks-score-display.ks-static-fixed-score{background:#0f172a!important;box-shadow:0 -4px 16px #0f172a33!important}
.ks-ui:has(.ks-static-steel-theme) .ks-static-save-row{max-width:650px;margin:18px auto 0}
.ks-ui:has(.ks-static-steel-theme) .ks-static-save-row>.ks-primary{flex:1;min-height:58px;background:#172337;color:#fff}
.ks-ui:has(.ks-static-steel-theme) .ks-static-save-row>.ks-primary:hover{background:#334155}
@media(max-width:480px){.ks-static-steel-theme .ks-hit-grid button{min-height:58px}.ks-static-steel-theme .ks-inner-ten{font-size:16px}}

/* 1.5.264 — panel dynamiczny IPSC w stylistyce panelu Steel Challenge. */
.ks-panel .ks-ipsc-form .ks-ipsc-target{background:#f8fafc!important;border:1px solid #cbd5e1!important;border-radius:14px!important;box-shadow:none!important;padding:clamp(12px,3vw,20px)!important}
.ks-panel .ks-ipsc-form .ks-ipsc-target-heading,.ks-panel .ks-ipsc-form .ks-ipsc-target h3{color:#0f172a!important;font-weight:850!important}
.ks-panel .ks-ipsc-form .ks-ipsc-tab{min-width:52px!important;min-height:52px!important;border:2px solid #94a3b8!important;border-radius:10px!important;background:#f1f5f9!important;color:#0f172a!important;font-size:17px!important;font-weight:800!important;box-shadow:none!important}
.ks-panel .ks-ipsc-form .ks-ipsc-tab.is-complete{background:#dcfce7!important;border-color:#16a34a!important}
.ks-panel .ks-ipsc-form .ks-ipsc-tab.is-active{background:#f59e0b!important;border-color:#b45309!important;color:#111827!important;box-shadow:0 0 0 2px #fcd34d!important}
.ks-panel .ks-ipsc-form .ks-ipsc-tab.has-warning{background:#ffedd5!important;border-color:#ea580c!important;color:#9a3412!important}
.ks-panel .ks-ipsc-form .ks-ipsc-buttons{gap:9px!important;margin:14px 0!important}
.ks-panel .ks-ipsc-form .ks-ipsc-score{min-height:76px!important;border:2px solid #94a3b8!important;border-radius:12px!important;background:#f1f5f9!important;color:#0f172a!important;box-shadow:0 3px 0 #cbd5e1!important;font-size:clamp(23px,5vw,31px)!important;font-weight:850!important}
.ks-panel .ks-ipsc-form .ks-ipsc-score .ks-ipsc-count{background:#fff!important;color:#0f172a!important;border-radius:10px!important}
.ks-panel .ks-ipsc-form .ks-ipsc-a{background:#e5e7eb!important;border-color:#cbd5e1!important;color:#0f172a!important}
.ks-panel .ks-ipsc-form .ks-ipsc-c{background:#e5e7eb!important;border-color:#cbd5e1!important;color:#0f172a!important}
.ks-panel .ks-ipsc-form .ks-ipsc-d{background:#e5e7eb!important;border-color:#cbd5e1!important;color:#0f172a!important}
.ks-panel .ks-ipsc-form .ks-ipsc-miss,.ks-panel .ks-ipsc-form .ks-ipsc-pt,.ks-panel .ks-ipsc-form .ks-ipsc-proc{background:#94a3b8!important;border-color:#64748b!important;color:#0f172a!important}
.ks-panel .ks-ipsc-form input[name="run_time"]{width:100%!important;max-width:none!important;min-height:90px!important;border:2px solid #64748b!important;border-radius:12px!important;background:#fff!important;color:#0f172a!important;font-size:clamp(36px,8vw,56px)!important;text-align:center!important;font-weight:800!important}
.ks-panel .ks-ipsc-form .ks-ipsc-overview-item{border:2px solid #cbd5e1!important;background:#f8fafc!important;border-radius:10px!important;color:#0f172a!important;font-weight:700!important}
.ks-panel .ks-ipsc-form .ks-ipsc-overview-item.is-active{background:#fef3c7!important;border-color:#f59e0b!important}
.ks-panel .ks-ipsc-form .ks-ipsc-overview-item.has-warning{background:#ffedd5!important;border-color:#ea580c!important}
.ks-panel .ks-ipsc-form .ks-score-display.ks-ipsc-metrics{background:#0f172a!important;color:#fff!important;border-radius:14px!important;padding:12px 6px!important;box-shadow:0 -4px 16px #0f172a22!important}
.ks-panel .ks-ipsc-form .ks-score-display.ks-ipsc-metrics .ks-ipsc-metric strong{color:#86efac!important}
.ks-panel .ks-ipsc-form .ks-score-display.ks-ipsc-metrics .ks-ipsc-metric span{color:#fff!important}
.ks-panel .ks-ipsc-form .ks-ipsc-controls button{border-radius:10px!important;min-height:52px!important;font-weight:800!important}
@media(max-width:480px){.ks-panel .ks-ipsc-form .ks-ipsc-score{min-height:72px!important;padding:8px 4px!important}.ks-panel .ks-ipsc-form .ks-ipsc-tab{min-width:50px!important}}

/* Pojedynki — styl panelu Steel */
.ks-duels .ks-duels-match{background:#edf1f5;border:1px solid #cbd5e1;border-radius:12px;padding:16px;margin:12px 0;color:#172c46}
.ks-duels .ks-duels-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ks-duels .ks-duels-actions .ks-primary{background:#203b5c;color:#fff;border-radius:10px;min-height:64px;font-size:1.1rem}
.ks-duels .ks-score-display{background:#183451;color:#7de2ad;padding:14px;border-radius:10px}
@media(max-width:600px){.ks-duels .ks-duels-actions{grid-template-columns:1fr}}

.ks-duels .ks-duels-assignment label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ks-duels .ks-duels-assignment select{min-height:44px;min-width:180px;border:1px solid #aab8c9;border-radius:8px;background:#fff;color:#203b5c;padding:8px}

/* 1.5.272 — większe nazwiska wyłącznie w panelu sędziego Pojedynki. */
.ks-panel.ks-duels .ks-duels-match > p:nth-child(2){font-size:clamp(21px,4vw,28px);font-weight:750;line-height:1.35}
.ks-panel.ks-duels .ks-duels-actions .ks-primary{font-size:clamp(21px,4vw,28px);font-weight:800;line-height:1.25;padding:14px 12px}
.ks-panel.ks-duels .ks-duels-assignment label > strong{font-size:clamp(19px,3vw,24px);line-height:1.3}
.ks-panel.ks-duels .ks-duels-match.ks-duels-assignment{font-size:clamp(19px,3vw,24px)}
.ks-panel.ks-duels .ks-score-display strong{font-size:clamp(20px,3vw,26px)}

/* 1.5.273 — czytelny, wyśrodkowany zwycięzca i cofanie ostatniego pojedynku. */
.ks-panel.ks-duels .ks-duels-winner{display:flex!important;align-items:center;justify-content:center;text-align:center;background:#173b34!important;color:#a7f3d0!important;border:2px solid #279776!important;border-radius:12px;padding:18px!important;margin-top:14px}
.ks-panel.ks-duels .ks-duels-winner strong{color:#a7f3d0!important;line-height:1.4}
.ks-panel.ks-duels .ks-duels-undo-form{margin:14px 0 22px;text-align:center}
.ks-panel.ks-duels .ks-duels-undo{min-height:48px;padding:10px 22px;border:2px solid #a16207;border-radius:10px;background:#fef3c7;color:#713f12;font-size:16px;font-weight:800;cursor:pointer}
.ks-panel.ks-duels .ks-duels-undo:hover{background:#fde68a}

/* Wyniki pojedynków w głównych wynikach online */
.ks-duels-results .ks-duels>h2:first-child{margin-top:0}
.ks-duels-results .ks-duels-champion{background:#183451;color:#91efb8;text-align:center;padding:15px;border-radius:10px;font-size:1.2rem}
.ks-duels-results table{width:100%;border-collapse:collapse;margin-bottom:20px}
.ks-duels-results th,.ks-duels-results td{padding:10px;border-bottom:1px solid #d7dfe7;text-align:left}
.ks-duels-results th{font-weight:700}

/* 1.5.275 — pojedynki: jednolity wygląd Steel, wybór i anulowanie przed zapisem. */
.ks-panel.ks-duels{color:#172b45}
.ks-panel.ks-duels>h2{color:#132d4b;font-weight:850}
.ks-panel.ks-duels .ks-duels-match{background:#f8fafc;border:2px solid #cbd5e1;border-radius:14px;box-shadow:0 3px 10px #0f172a0d;padding:18px;margin:14px 0}
.ks-panel.ks-duels .ks-duels-match>p:first-child{color:#475569;margin:0 0 8px}
.ks-panel.ks-duels .ks-duels-match>p:nth-child(2){text-align:center;color:#172b45;margin:10px 0 18px}
.ks-panel.ks-duels .ks-duels-actions{gap:12px}
.ks-panel.ks-duels .ks-duels-actions .ks-duels-choice{background:#e2e8f0!important;color:#142b45!important;border:2px solid #94a3b8!important;box-shadow:none!important;border-radius:12px!important;min-height:74px;cursor:pointer}
.ks-panel.ks-duels .ks-duels-actions .ks-duels-choice:hover{background:#cbd5e1!important}
.ks-panel.ks-duels .ks-duels-actions .ks-duels-choice.is-selected{background:#d1fae5!important;border-color:#059669!important;color:#065f46!important;box-shadow:0 0 0 2px #a7f3d0!important}
.ks-panel.ks-duels .ks-duels-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px;background:#edf2f7;border-radius:10px}
.ks-panel.ks-duels .ks-duels-selection-label{font-size:16px;font-weight:700;color:#334155}
.ks-panel.ks-duels .ks-duels-confirm{background:#173b34;color:#fff;border:0;border-radius:10px;min-height:48px;padding:10px 18px;font-size:16px;font-weight:800;cursor:pointer}
.ks-panel.ks-duels .ks-duels-confirm:disabled{background:#94a3b8;color:#e2e8f0;cursor:not-allowed}
.ks-panel.ks-duels .ks-duels-winner{background:#163e35!important;border-color:#059669!important;color:#d1fae5!important}
.ks-panel.ks-duels .ks-duels-winner strong{color:#d1fae5!important}
@media(max-width:600px){.ks-panel.ks-duels .ks-duels-selection{flex-direction:column;text-align:center}.ks-panel.ks-duels .ks-duels-confirm{width:100%}}

/* 1.5.276 */
.ks-panel.ks-duels .ks-duels-champion,.ks-ui.ks-duels .ks-duels-champion{background:#153e35!important;border:2px solid #10b981!important;color:#d1fae5!important;text-align:center!important;padding:20px!important;border-radius:14px!important;font-size:1.35rem!important;box-shadow:0 3px 12px #0f172a20!important}
.ks-panel.ks-duels .ks-duels-champion strong,.ks-ui.ks-duels .ks-duels-champion strong{color:#d1fae5!important}
.ks-duels-status-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.ks-duels-status-row select{min-width:120px}
.ks-duels-standings th{font-weight:800}

/* 1.5.277: wyniki online pojedynków jak standardowe tabele klasyfikacji */
.ks-live-results .ks-duels-results .ks-duels-online>h2{margin:20px 0 10px;color:inherit}
.ks-live-results .ks-duels-results .ks-duels-online>h2:first-child{margin-top:0}
.ks-live-results .ks-duels-results .ks-duels-online>h3{margin:18px 0 8px}
.ks-live-results .ks-duels-results .ks-duels-online .ks-table-wrap{width:100%;overflow-x:auto}
.ks-live-results .ks-duels-results .ks-duels-online table.ks-ranking-table{width:100%;border-collapse:collapse;margin:0 0 14px}
.ks-live-results .ks-duels-results .ks-duels-online table.ks-ranking-table th{font-weight:700}
.ks-live-results .ks-duels-results .ks-duels-online table.ks-ranking-table td{font-weight:400}
.ks-live-results .ks-duels-results .ks-duels-online table.ks-ranking-table .ks-duels-winner-cell strong{font-weight:700}
.ks-live-results .ks-duels-results .ks-duels-online .ks-duels-champion{background:transparent;color:inherit;text-align:left;border:0;border-radius:0;padding:6px 0;font-size:inherit}
.ks-live-results .ks-duels-results .ks-duels-online .ks-duels-champion strong{font-weight:700;color:inherit}

/* 1.5.282 — panel prowadzenia pojedynków */
.ks-duels-judge .ks-duels-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:16px 0 24px}
.ks-duels-judge .ks-duels-nav-link{display:flex;flex-direction:column;gap:5px;padding:14px 16px;background:#eaf1f7;border:1px solid #c4d5e4;border-radius:10px;color:#17324d;text-decoration:none}
.ks-duels-judge .ks-duels-nav-link:hover{background:#dcebf6;border-color:#547e9e}
.ks-duels-judge .ks-duels-nav-link span{font-size:13px;color:#476178}
.ks-duels-judge .ks-duels-class-section{border:1px solid #d2dce6;border-radius:12px;padding:16px;margin:24px 0;background:#fff;scroll-margin-top:24px}
.ks-duels-judge .ks-duels-class-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ks-duels-judge .ks-duels-class-heading h2{margin:0;color:#17324d}
.ks-duels-judge .ks-duels-progress{font-weight:700;color:#245a49;background:#e3f2e9;border-radius:20px;padding:6px 12px}
.ks-duels-judge .ks-duels-progress-track{height:8px;border-radius:9px;background:#e6edf3;overflow:hidden;margin:12px 0 18px}
.ks-duels-judge .ks-duels-progress-track>div{height:100%;background:#23805d;border-radius:9px}
.ks-duels-judge details.ks-duels-round,.ks-duels-judge details.ks-duels-details{border:1px solid #d3dfe8;border-radius:9px;margin:12px 0;overflow:hidden;background:#f8fafc}
.ks-duels-judge details>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:#eaf0f6;color:#17324d;font-weight:700;list-style:none}
.ks-duels-judge details>summary::-webkit-details-marker{display:none}
.ks-duels-judge details>summary:before{content:'▸';font-size:17px}
.ks-duels-judge details[open]>summary:before{content:'▾'}
.ks-duels-judge details>summary span{font-size:13px;color:#476178;font-weight:600;margin-left:auto}
.ks-duels-judge details.ks-duels-round>.ks-duels-match{margin:12px 14px}
.ks-duels-judge details.ks-duels-details>h3,.ks-duels-judge details.ks-duels-details>.ks-table-wrap{margin:14px}
.ks-duels-judge .ks-duels-round[open]>summary{background:#d9eae2;color:#14513b}
@media(max-width:600px){.ks-duels-judge .ks-duels-class-section{padding:10px}.ks-duels-judge details.ks-duels-round>.ks-duels-match{margin:9px 6px}}

/* 1.5.285: przebieg pojedynków */
.ks-duels-judge .ks-duels-workflow{padding:13px 16px;background:#edf5fb;border-left:4px solid #2773a5;border-radius:7px;color:#17324d;line-height:1.55}
.ks-duels-judge .ks-duels-phase{display:inline-block;padding:7px 12px;border-radius:6px;background:#e5f3ea;color:#19553a;font-weight:700;margin:8px 0}
.ks-duels-judge .ks-duels-class-section{scroll-margin-top:25px}
.ks-duels-judge [data-duels-pending]{border-left:5px solid #23805d;background:#fff}
.ks-duels-judge .ks-duels-nav-link:focus-visible,.ks-duels-judge .ks-duels-choice:focus-visible{outline:3px solid #e6a32c;outline-offset:3px}

/* 1.5.287 — uproszczone stanowisko sędziego pojedynków */
.ks-duels-judge .ks-duels-guide{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0;padding:14px;background:#edf4f9;border-radius:12px;color:#17334c;font-weight:600}
.ks-duels-judge .ks-duels-guide span{flex:1 1 180px}.ks-duels-guide b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#163d5c;color:#fff;margin-right:7px}
.ks-duels-judge .ks-duels-nav{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 22px}.ks-duels-judge .ks-duels-nav-link{flex:1 1 190px;text-decoration:none;border:2px solid #d2dee8;border-radius:12px;padding:13px;background:#fff;color:#15364f}.ks-duels-judge .ks-duels-nav-link.is-active{border-color:#08734f;background:#e7f6ef;color:#07563b}
.ks-duels-judge .ks-duels-class-section[hidden],.ks-duels-judge .ks-duels-match[hidden]{display:none!important}
.ks-duels-judge .ks-duels-match[data-duels-pending]{border:2px solid #126c51;background:#fff;border-radius:16px;padding:20px;margin:14px 0;box-shadow:0 3px 14px rgba(10,50,40,.08)}
.ks-duels-judge .ks-duels-prompt{font-weight:700;font-size:1.1rem;color:#17364a;margin:14px 0 8px}.ks-duels-judge .ks-duels-choice{min-height:64px;font-size:1.06rem}.ks-duels-judge .ks-duels-choice.is-selected{background:#08734f!important;color:white!important;border-color:#08734f!important}
.ks-duels-judge .ks-duels-confirm{min-height:50px;padding:12px 22px}.ks-duels-judge .ks-duels-next{display:block;margin:14px auto;padding:12px 20px;background:#eaf1f6;border:1px solid #aabfcc;border-radius:9px;color:#15364f;font-weight:700;cursor:pointer}
.ks-duels-judge .ks-duels-match-number{color:#175e4b;font-size:1.04rem}.ks-duels-judge .ks-duels-round:not([open]){opacity:.85}
@media(max-width:600px){.ks-duels-judge .ks-duels-guide{display:block}.ks-duels-judge .ks-duels-guide span{display:block;margin:8px 0}.ks-duels-judge .ks-duels-actions{display:grid;grid-template-columns:1fr}.ks-duels-judge .ks-duels-choice{width:100%}}

/* 1.5.288: stanowisko sędziego jak TRAP — jedna para na górze, bez przewijania */
.ks-duels-judge .ks-duels-live{margin:12px 0 20px;border:2px solid #17466a;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 5px 20px rgba(15,47,73,.12)}
.ks-duels-judge .ks-duels-live-head{background:#153b59;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;letter-spacing:.035em}
.ks-duels-judge .ks-duels-live-phase{font-weight:500;font-size:.9rem;letter-spacing:0}
.ks-duels-judge .ks-duels-live-body{padding:12px 20px 20px;min-height:130px}
.ks-duels-judge .ks-duels-live-body .ks-duels-match{margin:0!important;border:0!important;box-shadow:none!important;padding:0!important}
.ks-duels-judge .ks-duels-live-body .ks-duels-match>p:nth-child(2){display:none}
.ks-duels-judge .ks-duels-live-body .ks-duels-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.ks-duels-judge .ks-duels-live-body .ks-duels-choice{font-size:1.25rem;min-height:100px;white-space:normal;padding:15px}
.ks-duels-judge .ks-duels-live-body .ks-duels-confirm{width:100%;min-height:58px;font-size:1.1rem}
.ks-duels-judge .ks-duels-live-empty{text-align:center;padding:26px 12px;color:#24526a;font-weight:650}
.ks-duels-judge .ks-duels-class-section{margin-top:20px}
.ks-duels-judge .ks-duels-class-section .ks-duels-round{margin-top:12px}
@media(max-width:650px){.ks-duels-judge .ks-duels-live-body{padding:12px}.ks-duels-judge .ks-duels-live-body .ks-duels-actions{grid-template-columns:1fr;gap:10px}.ks-duels-judge .ks-duels-live-body .ks-duels-choice{min-height:76px}.ks-duels-judge .ks-duels-live-head{padding:12px}}

/* 1.5.291: Pojedynki — przebieg oceniania na wzór TRAP */
.ks-duels-trap-panel .ks-duels-trap-head{margin-bottom:12px}
.ks-duels-trap-classes{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.ks-duels-trap-class{padding:10px 14px;border:2px solid #b7c5d5;border-radius:9px;background:#edf2f7;color:#18324e;text-decoration:none;font-weight:750}
.ks-duels-trap-class.is-active{background:#193b5b;color:#fff;border-color:#193b5b}
.ks-duels-trap-class small{font-weight:500}
.ks-duels-trap-current{border:2px solid #cad5e2;border-radius:14px;background:#f8fafc;padding:18px;margin:10px 0}
.ks-duels-trap-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#213b57}
.ks-duels-trap-current h3{text-align:center;font-size:clamp(21px,3vw,30px);margin:20px 0 8px}
.ks-duels-trap-instruction{text-align:center;font-weight:700;margin:8px 0 16px}
.ks-duels-trap-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ks-duels-trap-actions .ks-duels-trap-winner{border:2px solid #1f6b46;background:#16633e;color:#fff;border-radius:12px;min-height:100px;padding:20px 12px;font-size:clamp(20px,3vw,29px);font-weight:800;line-height:1.25;cursor:pointer}
.ks-duels-trap-actions .ks-duels-trap-winner:hover,.ks-duels-trap-actions .ks-duels-trap-winner:focus{background:#104b30;outline:3px solid #9ce6b8;outline-offset:2px}
.ks-duels-trap-undo button{border:1px solid #9ca3af;border-radius:8px;background:#e5e7eb;color:#25364b;padding:12px 18px;font-weight:700;cursor:pointer}
.ks-duels-trap-history{margin-top:20px;border:1px solid #cbd5e1;border-radius:10px;padding:14px}
.ks-duels-trap-history summary{font-weight:750;cursor:pointer}
.ks-duels-trap-history-row{display:flex;justify-content:space-between;gap:12px;padding:9px 4px;border-bottom:1px solid #e2e8f0}
.ks-duels-trap-done{text-align:center;padding:22px}
@media(max-width:650px){.ks-duels-trap-actions{grid-template-columns:1fr}.ks-duels-trap-actions .ks-duels-trap-winner{min-height:86px}.ks-duels-trap-current{padding:12px}}

/* 1.5.292: kompaktowe przyciski zwycięzców i klasyfikacja pod cofaniem */
.ks-duels-trap-actions{grid-template-columns:repeat(2,minmax(0,300px));justify-content:center;gap:12px}
.ks-duels-trap-actions .ks-duels-trap-winner{width:100%;min-height:72px;padding:12px 10px;font-size:clamp(17px,2.3vw,23px)}
.ks-duels-trap-classification{margin-top:12px;border:1px solid #cbd5e1;border-radius:10px;padding:12px 14px}
.ks-duels-trap-classification summary{cursor:pointer;font-weight:750;color:#183b5a}
.ks-duels-trap-classification h3{margin:16px 0 8px}
@media(max-width:650px){.ks-duels-trap-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ks-duels-trap-actions .ks-duels-trap-winner{min-height:66px;padding:10px 6px;font-size:16px;overflow-wrap:anywhere}}

/* 1.5.293: panel sędziego — większe nazwiska i statusy bieżącej pary */
.ks-duels-trap-actions .ks-duels-trap-winner{font-size:clamp(23px,3.3vw,34px);line-height:1.2}
.ks-duels-pair-status{margin-top:18px;padding:14px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}
.ks-duels-pair-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ks-duels-pair-status-grid label{display:flex;flex-direction:column;gap:7px;color:#172b43}
.ks-duels-pair-status-grid select{width:100%;min-height:42px}
.ks-duels-pair-status-save{margin-top:12px;padding:10px 18px;border-radius:8px;background:#1e3a5f;color:white;border:0;cursor:pointer}
@media(max-width:650px){.ks-duels-trap-actions .ks-duels-trap-winner{font-size:clamp(20px,5vw,27px)}.ks-duels-pair-status-grid{gap:8px}}

/* 1.5.294: pojedynki — kompaktowe przyciski jeden pod drugim */
.ks-duels-trap-actions{display:flex!important;flex-direction:column!important;align-items:center!important;gap:10px!important}
.ks-duels-trap-actions .ks-duels-trap-winner{display:block!important;width:min(100%,360px)!important;min-height:68px!important;padding:12px 16px!important;font-size:clamp(23px,3.3vw,34px)!important;line-height:1.2!important}
@media(max-width:650px){.ks-duels-trap-actions .ks-duels-trap-winner{width:min(100%,320px)!important}}

/* 1.5.296: statusy aktualnej pary zawsze równo obok siebie */
.ks-duels-trap-panel .ks-duels-pair-status-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start;gap:12px;width:100%}
.ks-duels-trap-panel .ks-duels-pair-status-grid label{display:flex!important;flex-direction:column!important;min-width:0;width:100%;margin:0;box-sizing:border-box}
.ks-duels-trap-panel .ks-duels-pair-status-grid select{display:block;width:100%!important;min-width:0;max-width:100%;box-sizing:border-box;margin:0}
.ks-duels-trap-panel .ks-duels-pair-status-grid strong{overflow-wrap:anywhere}
@media(max-width:480px){.ks-duels-trap-panel .ks-duels-pair-status-grid{gap:8px}.ks-duels-trap-panel .ks-duels-pair-status{padding:10px}}

/* 1.5.298: compact online stage headings */
.ks-live-results .ks-results-section h3.ks-online-stage-title{font-size:15px!important;line-height:1.3!important;font-weight:600;margin:14px 0 7px!important;}
@media(max-width:600px){.ks-live-results .ks-results-section h3.ks-online-stage-title{font-size:13px!important;}}

/* 1.5.303: oszczędne komunikaty w panelu sędziego Pojedynki */
.ks-duels-trap-panel.ks-panel{padding-top:8px}
.ks-duels-trap-panel .ks-alert{margin:2px 0 7px;padding:5px 9px;font-size:12px;line-height:1.3;border-radius:7px}
.ks-duels-trap-panel .ks-alert:first-child{margin-top:0}

/* 1.5.305: wybór wielu konkurencji i historia pojedynków online */
.ks-results-multifilter{margin:14px 0 20px}.ks-results-multifilter fieldset{border:1px solid #d9e1e7;border-radius:8px;padding:12px 16px}.ks-results-multifilter legend{font-weight:700;padding:0 6px}.ks-results-filter-options{display:flex;flex-wrap:wrap;gap:10px 20px;margin:6px 0 12px}.ks-results-filter-options label{display:inline-flex;align-items:center;gap:7px;cursor:pointer}.ks-results-filter-options input{margin:0}.ks-results-multifilter button{padding:7px 15px}.ks-duels-online-history{margin-top:22px}.ks-duels-online-history h3{font-size:1.1rem;margin:14px 0 8px}.ks-duels-online-history h4{font-size:.95rem;margin:12px 0 6px}

/* 1.5.306: równe kolumny historii pojedynków i spójny filtr konkurencji */
.ks-live-results .ks-duels-online-history table.ks-duels-history-table{width:100%;table-layout:fixed;border-collapse:collapse}
.ks-live-results .ks-duels-online-history table.ks-duels-history-table th,
.ks-live-results .ks-duels-online-history table.ks-duels-history-table td{width:33.333%!important;min-width:0!important;max-width:none!important;box-sizing:border-box;white-space:normal!important;overflow-wrap:break-word!important;text-align:left!important;font-weight:400}
.ks-live-results .ks-duels-online-history table.ks-duels-history-table thead th{font-weight:700}
.ks-live-results .ks-duels-online-history table.ks-duels-history-table td strong{font-weight:700}
.ks-live-results .ks-results-multifilter{display:block;margin:16px 0 22px;padding:16px 18px;border:1px solid #d9e1e7;border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.ks-live-results .ks-results-multifilter fieldset{border:0;margin:0;padding:0;min-width:0}
.ks-live-results .ks-results-multifilter legend{font-size:16px;font-weight:700;color:#0f172a;padding:0;margin-bottom:12px}
.ks-live-results .ks-results-filter-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:8px 12px;margin:0 0 14px}
.ks-live-results .ks-results-filter-options label{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;font-size:14px;font-weight:500;color:#334155;cursor:pointer}
.ks-live-results .ks-results-filter-options label:has(input:checked){border-color:#a5b4c7;background:#eef4fa}
.ks-live-results .ks-results-filter-options input{width:17px;height:17px;flex:none;accent-color:#1763a6}
.ks-live-results .ks-results-multifilter button{border:0;border-radius:8px;background:#1763a6;color:white;padding:10px 16px;font-size:14px;font-weight:700;cursor:pointer}
.ks-live-results .ks-results-multifilter a{display:inline-block;margin-left:12px;color:#1763a6;font-size:14px;font-weight:600;text-decoration:none}
@media(max-width:480px){.ks-live-results .ks-results-multifilter{padding:12px}.ks-live-results .ks-duels-online-history table.ks-duels-history-table th,.ks-live-results .ks-duels-online-history table.ks-duels-history-table td{font-size:11px;padding:6px 4px}}

/* 1.5.307: zwijany wybór konkurencji w wynikach online */
.ks-live-results .ks-results-multifilter{padding:0;overflow:hidden}
.ks-live-results .ks-results-filter-details>summary{display:list-item;cursor:pointer;font-size:16px;font-weight:700;color:#0f172a;padding:14px 18px;list-style-position:inside}
.ks-live-results .ks-results-filter-details>summary:hover{background:#f8fafc}
.ks-live-results .ks-results-filter-details[open]>summary{border-bottom:1px solid #e2e8f0}
.ks-live-results .ks-results-filter-body{padding:14px 18px 18px}
@media(max-width:480px){.ks-live-results .ks-results-filter-details>summary{padding:12px}.ks-live-results .ks-results-filter-body{padding:12px}}

/* 1.5.313: bardziej zwarta klasyfikacja w panelu sędziego */
.ks-duels-judge-ranking .ks-table-wrap{max-width:760px;margin-left:auto;margin-right:auto}
.ks-duels-judge-ranking table{width:100%;max-width:760px}
@media(max-width:800px){.ks-duels-judge-ranking .ks-table-wrap{max-width:100%}}

/* 1.5.314: kompaktowa klasyfikacja w panelu sędziego pojedynków */
.ks-duels-judge-ranking .ks-table-wrap{width:100%;max-width:760px!important;margin:0 auto 12px;overflow-x:auto}
.ks-duels-judge-ranking table.ks-ranking-table{width:100%!important;max-width:760px!important;table-layout:auto}
.ks-duels-judge-ranking table.ks-ranking-table th,.ks-duels-judge-ranking table.ks-ranking-table td{padding:5px 7px!important;font-size:12px!important;line-height:1.25}
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,.ks-duels-judge-ranking table.ks-ranking-table td:first-child{width:52px}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){width:68px;text-align:center}
@media(max-width:600px){.ks-duels-judge-ranking .ks-table-wrap{max-width:100%!important}.ks-duels-judge-ranking table.ks-ranking-table th,.ks-duels-judge-ranking table.ks-ranking-table td{padding:4px 5px!important;font-size:11px!important}}

/* 1.5.319: pełna szerokość klasyfikacji, węższe kolumny liczbowe */
.ks-duels-judge-ranking table.ks-ranking-table{table-layout:fixed!important}
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,.ks-duels-judge-ranking table.ks-ranking-table td:first-child{width:52px!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){width:68px!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(2),.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(2){width:auto;overflow-wrap:anywhere}

/* 1.5.320: większa czcionka klasyfikacji ogólnej sędziego pojedynków */
.ks-duels-judge-ranking table.ks-ranking-table th,
.ks-duels-judge-ranking table.ks-ranking-table td{font-size:15px!important;line-height:1.4!important;padding:7px 8px!important}
@media(max-width:600px){
 .ks-duels-judge-ranking table.ks-ranking-table th,
 .ks-duels-judge-ranking table.ks-ranking-table td{font-size:13px!important;line-height:1.35!important;padding:6px 5px!important}
}

/* 1.5.321: węższe kolumny liczbowe klasyfikacji sędziego */
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,
.ks-duels-judge-ranking table.ks-ranking-table td:first-child{width:48px!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){width:82px!important}
.ks-duels-judge-ranking table.ks-ranking-table th,
.ks-duels-judge-ranking table.ks-ranking-table td{padding-left:5px!important;padding-right:5px!important}
@media(max-width:600px){
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,
.ks-duels-judge-ranking table.ks-ranking-table td:first-child{width:42px!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){width:72px!important}
}

/* 1.5.322 — bardziej zwarte kolumny liczbowe klasyfikacji sędziego pojedynków */
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,
.ks-duels-judge-ranking table.ks-ranking-table td:first-child{width:40px!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){width:62px!important}
.ks-duels-judge-ranking table.ks-ranking-table th,
.ks-duels-judge-ranking table.ks-ranking-table td{padding-left:3px!important;padding-right:3px!important}
@media(max-width:600px){
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,
.ks-duels-judge-ranking table.ks-ranking-table td:first-child{width:36px!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){width:58px!important}
}

/* 1.5.323: pojedynki sędziego korzystają z jednej, zewnętrznej ramki panelu. */
.ks-judge > .ks-panel > .ks-duels-trap-panel{width:100%;max-width:none;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;box-sizing:border-box}
.ks-judge > .ks-panel > .ks-duels-trap-panel .ks-duels-trap-history{max-width:100%;box-sizing:border-box}

/* 1.5.324: kolumna Zawodnik dopasowana do nazwisk zamiast rozciągania na wolne miejsce. */
.ks-duels-judge-ranking .ks-table-wrap{width:max-content;max-width:100%;margin-left:auto;margin-right:auto}
.ks-duels-judge-ranking table.ks-ranking-table{width:auto!important;max-width:100%!important;table-layout:auto!important;margin:0 auto}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(2),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(2){width:auto!important;min-width:190px;max-width:360px;overflow-wrap:break-word;word-break:normal;text-align:left}
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,
.ks-duels-judge-ranking table.ks-ranking-table td:first-child{min-width:48px}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){min-width:72px}
@media(max-width:600px){
 .ks-duels-judge-ranking table.ks-ranking-table th:nth-child(2),
 .ks-duels-judge-ranking table.ks-ranking-table td:nth-child(2){min-width:135px;max-width:230px}
 .ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),
 .ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){min-width:58px}
}

/* 1.5.325: klasyfikacja sędziego — szerokość tabeli wynika z treści, nie z globalnego min-width:530px. */
.ks-duels-judge-ranking .ks-table-wrap{display:table;width:fit-content!important;max-width:100%!important;min-width:0!important;margin:0 auto 12px;overflow-x:auto}
.ks-duels-judge-ranking table.ks-ranking-table{width:max-content!important;min-width:0!important;max-width:none!important;table-layout:auto!important;margin:0!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(2),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(2){width:1%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;overflow-wrap:normal!important}
.ks-duels-judge-ranking table.ks-ranking-table th:first-child,
.ks-duels-judge-ranking table.ks-ranking-table td:first-child{width:1%!important;min-width:0!important;white-space:nowrap!important}
.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(n+3),
.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(n+3){width:1%!important;min-width:0!important;white-space:nowrap!important}
@media(max-width:600px){.ks-duels-judge-ranking .ks-table-wrap{display:block;width:100%!important}.ks-duels-judge-ranking table.ks-ranking-table th:nth-child(2),.ks-duels-judge-ranking table.ks-ranking-table td:nth-child(2){white-space:normal!important;min-width:120px!important;overflow-wrap:break-word!important}}
/* 1.5.335: widoczny przycisk zapisu statusów w panelu sędziego pojedynków. */
.ks-duels-pair-status .ks-duels-save-status{display:block;margin:12px auto 0;min-height:38px;padding:9px 18px}

/* 1.5.344 — panel skarbnika w stylu wyników online. */
.ks-treasurer{--kst-border:#dbe3ed;--kst-ink:#17253b;max-width:1250px;margin:24px auto 48px;padding:0 12px;color:var(--kst-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}
.ks-treasurer *{box-sizing:border-box}
.ks-treasurer-header{padding:25px 28px;background:linear-gradient(125deg,#142b47,#1f4970);color:white;border-radius:15px;margin-bottom:18px;box-shadow:0 5px 20px rgba(22,48,75,.1)}
.ks-treasurer-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#c2dbf3}
.ks-treasurer-header h2{color:#fff!important;font-size:clamp(22px,3vw,30px);line-height:1.2;margin:8px 0!important}
.ks-treasurer-header p{color:#e0eaf4;margin:0;font-size:14px}
.ks-treasurer-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:18px;background:#fff;border:1px solid var(--kst-border);border-radius:12px;margin-bottom:18px}
.ks-treasurer-year{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0}.ks-treasurer-year label,.ks-treasurer-search{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#50637b}
.ks-treasurer select,.ks-treasurer input[type=search]{height:41px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#17253b;padding:8px 12px;font-size:14px;min-width:130px}
.ks-treasurer-search{flex:1;max-width:370px;min-width:220px}.ks-treasurer-search input{width:100%!important;max-width:100%!important}
.ks-treasurer button{background:#1c527d;border:1px solid #1c527d;border-radius:8px;color:white;padding:10px 15px;min-height:40px;font-weight:700;cursor:pointer;white-space:nowrap}
.ks-treasurer button:hover{background:#133a5d}.ks-treasurer button:focus-visible,.ks-treasurer input:focus-visible,.ks-treasurer select:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.ks-treasurer-section{background:#fff;border:1px solid var(--kst-border);border-radius:14px;overflow:hidden;box-shadow:0 3px 12px rgba(20,40,65,.045)}
.ks-treasurer-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 20px;border-bottom:1px solid var(--kst-border)}
.ks-treasurer-section-heading h3{margin:0;font-size:18px;color:#203752}.ks-treasurer-section-heading span{font-size:12px;font-weight:700;color:#64748b;background:#edf2f7;border-radius:50px;padding:6px 10px;white-space:nowrap}
.ks-treasurer-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.ks-treasurer .ks-treasurer-table{width:100%;min-width:850px;border-collapse:collapse;margin:0;background:white;table-layout:auto}
.ks-treasurer .ks-treasurer-table th{padding:12px 13px;background:#f0f4f9;color:#52647b;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid var(--kst-border);text-align:left;white-space:nowrap}
.ks-treasurer .ks-treasurer-table td{padding:10px 13px;border-bottom:1px solid #e8edf3;font-size:13px;color:#334155;vertical-align:middle;overflow-wrap:anywhere}
.ks-treasurer .ks-treasurer-table tbody tr:nth-child(even){background:#fafcff}.ks-treasurer .ks-treasurer-table tbody tr:hover{background:#f0f7fd}.ks-treasurer .ks-treasurer-table tbody tr:last-child td{border-bottom:0}
.ks-treasurer .ks-treasurer-table th:nth-child(5),.ks-treasurer .ks-treasurer-table th:nth-child(6),.ks-treasurer .ks-treasurer-table td:nth-child(5),.ks-treasurer .ks-treasurer-table td:nth-child(6){text-align:center}
.ks-treasurer .ks-treasurer-table input[type=checkbox]{width:19px;height:19px;accent-color:#177245;cursor:pointer;margin:0}.ks-treasurer .ks-treasurer-save{font-size:12px;min-height:34px;padding:7px 12px}
.ks-treasurer-hint{margin:0;padding:13px 20px;background:#f8fafc;border-top:1px solid var(--kst-border);font-size:12px;color:#64748b}.ks-treasurer-notice{padding:12px 16px;border:1px solid #b4dfc4;border-radius:9px;background:#edf9f0;color:#17613a;font-weight:700;margin-bottom:16px}
.ks-treasurer-row[hidden]{display:none!important}
@media(max-width:650px){.ks-treasurer{padding:0 6px}.ks-treasurer-header{padding:20px 16px}.ks-treasurer-toolbar{padding:14px}.ks-treasurer-search{max-width:none;width:100%}.ks-treasurer-section-heading{padding:14px}.ks-treasurer-section-heading h3{font-size:15px}}

/* 1.5.345: widoczny wybór rozliczeń za lata poprzednie. */
.ks-treasurer-history{background:#fff;border:1px solid #dbe3ed;border-radius:12px;padding:16px 19px;margin:-4px 0 18px}
.ks-treasurer-history strong{font-size:16px;color:#203752}
.ks-treasurer-history p{margin:6px 0 12px;font-size:13px;color:#52647b}
.ks-treasurer-years{display:flex;flex-wrap:wrap;gap:8px}
.ks-treasurer-years .ks-treasurer-year-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;min-width:58px;border:1px solid #cbd5e1;border-radius:8px;background:#f5f8fc;color:#244667;font-size:14px;font-weight:750;text-decoration:none}
.ks-treasurer-years .ks-treasurer-year-link:hover{background:#e7f0fa;border-color:#8fb3d5}
.ks-treasurer-years .ks-treasurer-year-link.is-active{background:#1c527d;border-color:#1c527d;color:#fff}
.ks-treasurer-history .ks-treasurer-older{margin:12px 0 0;font-size:12px}

/* 1.5.346: formularz nowego klubowicza w panelu skarbnika */
.ks-treasurer-add{margin:18px 0;padding:16px 20px;border:1px solid #cbd5e1;border-radius:12px;background:#fff}
.ks-treasurer-add summary{cursor:pointer;font-weight:700;color:#153d69}
.ks-treasurer-add-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}
.ks-treasurer-add-form label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.ks-treasurer-add-form input{width:100%;box-sizing:border-box;padding:9px;border:1px solid #94a3b8;border-radius:7px}
.ks-treasurer-add-form button{align-self:end;background:#173e70;color:#fff;border:0;border-radius:7px;padding:11px 16px;cursor:pointer}

/* 1.5.348 — rozbudowany panel skarbnika */
.ks-treasurer-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}.ks-treasurer-stats>div{background:#fff;border:1px solid #dbe3ed;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:5px}.ks-treasurer-stats strong{font-size:23px;color:#193b5d}.ks-treasurer-stats span{font-size:12px;color:#64748b}.ks-treasurer-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 18px}.ks-treasurer-link{display:inline-block;padding:10px 15px;border-radius:8px;background:#e8f1f9;color:#174568!important;font-weight:700;text-decoration:none!important}.ks-treasurer-extra{border:1px solid #dbe3ed;background:#fff;border-radius:12px;padding:16px;margin-bottom:18px}.ks-treasurer-extra>summary{cursor:pointer;font-weight:700;color:#1b4368}.ks-treasurer-payment,.ks-treasurer-edit{position:relative}.ks-treasurer-payment>summary,.ks-treasurer-edit>summary{cursor:pointer;color:#1c527d;font-weight:700;font-size:12px}.ks-treasurer-payment-fields{display:grid;gap:6px;min-width:190px;padding:10px;background:#f5f8fc;border-radius:8px}.ks-treasurer-payment-fields label,.ks-treasurer-edit label{display:flex;flex-direction:column;gap:3px;font-size:11px}.ks-treasurer-payment-fields input,.ks-treasurer-payment-fields select,.ks-treasurer-payment-fields textarea,.ks-treasurer-edit input{max-width:190px;width:100%;padding:5px;border:1px solid #cbd5e1;border-radius:5px}.ks-treasurer-edit form{display:grid;gap:7px;padding:10px;background:#f5f8fc;border-radius:8px}.ks-treasurer-extra .ks-treasurer-add-form{margin:15px 0}.ks-treasurer-extra .ks-treasurer-table{min-width:650px}@media(max-width:700px){.ks-treasurer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 1.5.356: stały układ sekcji bez kontrolek przesuwania. */
.ks-treasurer-sort-area{display:flex;flex-direction:column;gap:12px}
.ks-treasurer-sort-card{min-width:0}
.ks-treasurer-sort-card>.ks-treasurer-stats,.ks-treasurer-sort-card>.ks-treasurer-toolbar,.ks-treasurer-sort-card>.ks-treasurer-actions,.ks-treasurer-sort-card>.ks-treasurer-extra{margin-bottom:0}

/* 1.5.355: Samodzielny panel skarbnika, jak wyniki online. */
.ks-treasurer-standalone .ks-treasurer-main{max-width:1320px;padding:24px 16px 48px}
.ks-treasurer-standalone .ks-treasurer{margin:0 auto 32px}
@media(max-width:650px){.ks-treasurer-standalone .ks-treasurer-main{padding:12px 8px 32px}}

/* 1.5.357: dyskretne przyciski zmiany kolejności sekcji skarbnika. */
.ks-treasurer-sort-card{position:relative}
.ks-treasurer-move-controls{position:absolute;top:5px;right:7px;z-index:2;display:flex;gap:3px;opacity:.32;transition:opacity .15s}
.ks-treasurer-sort-card:hover>.ks-treasurer-move-controls,.ks-treasurer-move-controls:focus-within{opacity:1}
.ks-treasurer .ks-treasurer-move-btn{min-height:24px;width:25px;padding:0;border:1px solid #cbd5e1;border-radius:5px;background:#f8fafc;color:#64748b;font-size:14px;line-height:22px;font-weight:600}
.ks-treasurer .ks-treasurer-move-btn:hover{background:#e2e8f0;color:#1e3a5f}
.ks-treasurer .ks-treasurer-move-btn:disabled{opacity:.25;cursor:default}
@media(hover:none){.ks-treasurer-move-controls{opacity:.65}}

/* 1.5.358: strzałki są częścią ramki sekcji, a nie pływającą nakładką. */
.ks-treasurer-sort-card{border:1px solid #dbe3ed;border-radius:12px;overflow:hidden;background:#fff}
.ks-treasurer-move-controls{position:static;display:flex;justify-content:flex-end;align-items:center;gap:3px;height:29px;padding:2px 9px;opacity:.4;background:#f8fafc;border-bottom:1px solid #edf1f5;transition:opacity .15s}
.ks-treasurer-sort-card:hover>.ks-treasurer-move-controls,.ks-treasurer-move-controls:focus-within{opacity:1}
.ks-treasurer-sort-card>.ks-treasurer-section,.ks-treasurer-sort-card>.ks-treasurer-toolbar,.ks-treasurer-sort-card>.ks-treasurer-extra,.ks-treasurer-sort-card>.ks-treasurer-add{border:0;border-radius:0;box-shadow:none;margin:0}
.ks-treasurer-sort-card>.ks-treasurer-stats{padding:10px;margin:0}
.ks-treasurer-sort-card>.ks-treasurer-actions{padding:12px;margin:0}
@media(hover:none){.ks-treasurer-move-controls{opacity:.7}}

/* 1.5.359: jeden panel dodawania i wyszukiwania klubowiczów. */
.ks-treasurer-member-tools{border:1px solid #dbe3ed;border-radius:12px;background:#fff;overflow:visible;margin-bottom:18px}
.ks-treasurer-member-tools>.ks-treasurer-add{border:0;border-radius:0;margin:0;padding:15px 18px;border-bottom:1px solid #e2e8f0}
.ks-treasurer-member-tools>.ks-treasurer-toolbar{border:0;border-radius:0;margin:0;padding:16px 18px;background:transparent}
.ks-treasurer-sort-card>.ks-treasurer-member-tools{border:0;border-radius:0;margin:0}

/* 1.5.360: czytelne podpowiedzi wyszukiwarki skarbnika, również poza kontenerem panelu. */
#ks-treasurer-suggestions{color:#17324d!important;background:#fff!important}
#ks-treasurer-suggestions button[role="option"]{color:#17324d!important;-webkit-text-fill-color:#17324d!important;background:#fff!important;text-align:left!important;opacity:1!important;visibility:visible!important}
#ks-treasurer-suggestions button[role="option"]:hover,#ks-treasurer-suggestions button[role="option"]:focus{background:#eaf2fb!important;color:#102d49!important}

/* 1.5.361: wybór roku w ramce Strzelcy i opłaty */
.ks-treasurer-years{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.ks-treasurer-years form{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:0}
.ks-treasurer-years label{display:flex;align-items:center;gap:8px}
.ks-treasurer-years select{min-width:100px}
.ks-treasurer-add-year button{opacity:.8}

/* 1.5.364: publiczna lista startowa bez kolorowych kafelków; zwarta lista nazwisk. */
.ks-ui .ks-start-time-group{padding-bottom:7px}
.ks-ui ol.ks-start-people{gap:0 14px;list-style:none}
.ks-ui ol.ks-start-people>li.ks-start-person{min-height:0;margin:0;padding:4px 2px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;line-height:1.25;font-size:13px;gap:6px;overflow-wrap:normal}
.ks-ui ol.ks-start-people>li.ks-start-person::before{min-width:18px;font-size:11px}
@media(max-width:600px){.ks-ui ol.ks-start-people{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}.ks-ui ol.ks-start-people>li.ks-start-person{font-size:12px;padding:4px 1px}}

/* 1.5.365: bez niebieskiej linii nad lista zawodnikow w rejestracji. */
.ks-ui .ks-start-time-group .ks-start-hour-heading{border-bottom:0!important}
.ks-ui .ks-start-time-group+.ks-start-time-group{border-top:0!important}

/* 1.5.366: informacja o wolnych miejscach pod nazwa konkurencji. */
.ks-discipline-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.ks-discipline-availability{display:block;font-size:.84em;font-weight:400;opacity:.8;line-height:1.3}

/* 1.5.367: bez pustego wiersza godziny lista zaczyna sie tuz pod naglowkiem. */
.ks-ui .ks-start-discipline-head+.ks-start-time-group{padding-top:8px}
.ks-ui .ks-start-time-group:has(>.ks-start-hour-heading){padding-top:0}

/* 1.5.368: oliwkowa kolorystyka publicznej rejestracji, wg wzornika #77803d. */
.ks-ui.ks-registration{--ks-accent:#77803d;--ks-line:#d7ddc7;--ks-ink:#303c24;--ks-muted:#667257}
.ks-registration .ks-eyebrow{color:#77803d}
.ks-registration .ks-panel{border-color:#d7ddc7}
.ks-registration .ks-choice{background:#f7f8f1;border-color:#d7ddc7}
.ks-registration .ks-choice:hover,.ks-registration .ks-discipline-choice:hover{border-color:#a3ad77}
.ks-registration .ks-field input:focus,.ks-registration select:focus{border-color:#77803d;outline-color:#c6cda6}
.ks-registration input[type=checkbox],.ks-registration input[type=radio]{accent-color:#77803d}
.ks-registration .ks-primary,.ks-registration button.ks-primary{background:#77803d;color:#fff}
.ks-registration .ks-primary:hover,.ks-registration button.ks-primary:hover{background:#626c32}
.ks-registration .ks-start-list{border-top-color:#d7ddc7}
.ks-registration .ks-start-disciplines>.ks-results-section.ks-start-discipline{border-color:#cbd3b6}
.ks-registration .ks-start-discipline-head{background:#edf0e3;border-bottom-color:#d7ddc7}
.ks-registration .ks-start-discipline-head h3{color:#4f5c28}
.ks-registration .ks-start-discipline-head .ks-count{background:#dfe5cd;color:#4f5c28}
.ks-registration .ks-start-hour-heading{color:#56642e}
.ks-registration .ks-discipline-availability{color:#5c6836;opacity:1}
.ks-registration .ks-alert{background:#f1f4e8;border-color:#cbd3b6;color:#455329}
.ks-registration .ks-status{background:#e9eedb;color:#53612c}
.ks-registration .ks-start-person::before{color:#77803d}
.ks-registration input:focus-visible,.ks-registration button:focus-visible{outline-color:#b4c083}

/* 1.5.369: czerwony komunikat o terminie rozpoczęcia zapisów. */
.ks-registration .ks-alert.ks-registration-upcoming{background:#fbe9e9;border:1px solid #e9a5a5;color:#8f2020;font-weight:600}

/* 1.5.370: dwie kolumny konkurencji, jedna kolumna zawodnikow w kazdej konkurencji. */
.ks-ui.ks-registration .ks-start-disciplines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.ks-ui.ks-registration ol.ks-start-people{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:0}
@media(max-width:640px){.ks-ui.ks-registration .ks-start-disciplines{grid-template-columns:minmax(0,1fr)}}

/* 1.5.371: komunikaty rejestracji – sukces zielony, błędy i blokady czerwone. */
.ks-registration .ks-alert.ks-registration-success,
.ks-registration .ks-registration-feedback.ks-registration-success{background:#e8f7ec!important;border:1px solid #9cd5ab!important;color:#176337!important;border-radius:10px;padding:12px 16px}
.ks-registration .ks-alert.ks-registration-error,
.ks-registration .ks-alert.ks-registration-upcoming,
.ks-registration .ks-registration-feedback.ks-registration-error{background:#fcebec!important;border:1px solid #e9a5a5!important;color:#922626!important;border-radius:10px;padding:12px 16px}
.ks-registration .ks-time-conflict{background:#fcebec!important;border-color:#d84c4c!important;color:#922626!important}

/* 1.5.416: aktywny cel nie oznacza błędu; pomarańczowy tylko przy has-warning. */
.ks-panel .ks-ipsc-form .ks-ipsc-tab.is-active:not(.has-warning){background:#dbeafe!important;border-color:#2563eb!important;color:#1e3a8a!important;box-shadow:0 0 0 2px #bfdbfe!important}
.ks-panel .ks-ipsc-form .ks-ipsc-tab.has-warning,.ks-panel .ks-ipsc-form .ks-ipsc-tab.has-warning.is-active{background:#ffedd5!important;border-color:#ea580c!important;color:#9a3412!important;box-shadow:none!important}
.ks-panel .ks-ipsc-form .ks-ipsc-overview-item.is-active:not(.has-warning){background:#dbeafe!important;border-color:#2563eb!important}
.ks-panel .ks-ipsc-form .ks-ipsc-overview-item.has-warning,.ks-panel .ks-ipsc-form .ks-ipsc-overview-item.has-warning.is-active{background:#ffedd5!important;border-color:#ea580c!important;color:#9a3412!important}

/* Przyciski przypisywania stanowisk — spójne z panelem sędziego. */
.ks-static-station-queue .ks-station-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-width:0;min-height:38px;height:38px;padding:0 15px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#172337;font:inherit;font-size:14px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background-color .15s,border-color .15s}
.ks-static-station-queue .ks-station-btn-secondary:hover{background:#f1f5f9;border-color:#94a3b8}
.ks-static-station-queue .ks-station-btn-primary{background:var(--ks-accent,#2563eb);border-color:var(--ks-accent,#2563eb);color:#fff}
.ks-static-station-queue .ks-station-btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.ks-static-station-queue .ks-station-btn:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.ks-static-station-queue .ks-station-buttons{gap:8px}

/* Panel sedziego dynamicznego: status toru wewnatrz ramki na kazdym ekranie */
.ks-panel .ks-judge-status{max-width:100%;min-width:0;box-sizing:border-box}
.ks-panel .ks-judge-status label{min-width:0;max-width:100%;box-sizing:border-box}
.ks-panel .ks-judge-status select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;white-space:normal}
.ks-panel .ks-ipsc-form + .ks-judge-status{max-width:100%;margin-left:0;flex-wrap:wrap}
.ks-panel .ks-ipsc-form + .ks-judge-status label{flex-wrap:wrap;max-width:100%}
.ks-panel .ks-judge-status .ks-primary{max-width:100%;white-space:normal}

/* 1.5.443 — przycisk X w siatce, rozmiar identyczny jak 1. */
.ks-static-steel-theme .ks-hit-grid .ks-inner-ten{display:block;width:100%;max-width:none;margin:0;min-height:62px;border:1px solid #b7c4d4;border-radius:10px;background:#f2f6fa;color:#172337;font-size:clamp(12px,2.8vw,16px);font-weight:800;line-height:1.15;padding:4px;box-sizing:border-box}
@media(max-width:480px){.ks-static-steel-theme .ks-hit-grid .ks-inner-ten{min-height:58px;font-size:clamp(11px,3vw,14px)}}

/* 1.5.444: kompaktowy przycisk 10 X oraz zapis bliżej punktacji. */
.ks-static-steel-theme .ks-hit-grid .ks-inner-ten{background:#d1fae5!important;border-color:#059669!important;color:#065f46!important;font-size:clamp(22px,5vw,27px)!important}
.ks-static-steel-theme .ks-hit-grid .ks-inner-ten:hover{background:#a7f3d0!important}
.ks-static-steel-theme .ks-hit-grid .ks-inner-ten:active{background:#6ee7b7!important}
.ks-static-steel-theme .ks-static-save-inline{max-width:480px;margin:8px auto 12px}
.ks-static-steel-theme .ks-static-save-inline>.ks-primary{display:block;width:100%;min-height:54px;background:#172337;color:#fff;font-weight:800}
.ks-static-steel-theme .ks-static-save-inline>.ks-primary:hover{background:#334155}
.ks-ui:has(.ks-static-steel-theme) .ks-static-save-row{margin-top:8px}

/* 1.5.445: pomaranczowy 10 X, zapis pod podsumowaniem, mniejsze odstepy. */
.ks-static-steel-theme .ks-hit-grid .ks-inner-ten{background:#fed7aa!important;border-color:#ea580c!important;color:#9a3412!important}
.ks-static-steel-theme .ks-hit-grid .ks-inner-ten:hover{background:#fdba74!important}
.ks-static-steel-theme .ks-hit-grid .ks-inner-ten:active{background:#fb923c!important}
.ks-static-steel-theme .ks-series{margin:6px auto!important;gap:6px}
.ks-static-steel-theme .ks-hit-sequence{margin:4px 0!important;min-height:0}
.ks-static-steel-theme .ks-static-save-inline{margin:8px auto 4px}
.ks-ui:has(.ks-static-steel-theme) .ks-static-save-row{margin:4px auto 0!important}

/* 1.5.446: rowne odstepy i wyrownanie elementow panelu statycznego. */
.ks-static-steel-theme .ks-hit-actions{margin:10px auto!important}
.ks-static-steel-theme .ks-series{margin:10px auto!important}
.ks-static-steel-theme .ks-static-save-inline{margin:10px auto!important}
.ks-ui:has(.ks-static-steel-theme) .ks-static-save-row{max-width:480px;margin:10px auto 0!important;width:100%}
.ks-ui:has(.ks-static-steel-theme) .ks-static-save-row>.ks-judge-status{width:100%;box-sizing:border-box}

/* 1.5.447 — status toru Steel: ramka i pole jak w panelu dynamicznym wielotorowym. */
.ks-panel .ks-steel-stage-status{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;width:fit-content;max-width:100%;min-width:0;box-sizing:border-box;margin:10px 0;padding:9px;background:#f1f5f9;border-radius:9px}
.ks-panel .ks-steel-stage-status label{display:block;flex:1 1 180px;min-width:0;max-width:100%;box-sizing:border-box;font-size:13px;font-weight:600}
.ks-panel .ks-steel-stage-status select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin-top:4px}
.ks-panel .ks-steel-stage-status .ks-primary{flex:0 1 auto;max-width:100%;box-sizing:border-box;white-space:normal}
@media(max-width:480px){.ks-panel .ks-steel-stage-status{width:100%}.ks-panel .ks-steel-stage-status label,.ks-panel .ks-steel-stage-status .ks-primary{flex-basis:100%;width:100%}}

.ks-series-limit-warning{border-color:#dc2626;background:#fef2f2;color:#b91c1c;font-weight:700}

/* 1.5.463: przewijanie ustawień i dostępne przyciski na małych ekranach. */
.ks-trap-panel:has(>.ks-trap-setup[open])>.ks-trap-setup[open]{
  min-height:0!important;max-height:calc(100dvh - 110px)!important;
  flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
}
.ks-trap-setup[open] .ks-trap-squad-form{padding-bottom:12px}
.ks-trap-setup .ks-trap-setup-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  position:sticky;bottom:0;z-index:3;background:#fff;padding:10px 0 6px}
.ks-trap-setup .ks-trap-setup-actions button{min-height:42px;max-width:100%;white-space:normal}
@media(max-width:700px){
 .ks-trap-setup .ks-trap-setup-actions{flex-direction:column;align-items:stretch}
 .ks-trap-setup .ks-trap-setup-actions button{width:100%;margin:0}
}

/* 1.5.479: kompaktowa kolumna miejsca na każdym torze IPSC. */
.ks-live-results .ks-results-section table.ks-stage-table th:first-child,
.ks-live-results .ks-results-section table.ks-stage-table td:first-child{
  box-sizing:border-box!important;width:65px!important;min-width:65px!important;max-width:65px!important;
  text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;
}
.ks-live-results .ks-results-section table.ks-stage-table th:nth-child(2),
.ks-live-results .ks-results-section table.ks-stage-table td:nth-child(2){
  min-width:125px!important;max-width:220px!important;text-align:left!important;
}
@media(max-width:480px){
 .ks-live-results .ks-results-section table.ks-stage-table th:first-child,
 .ks-live-results .ks-results-section table.ks-stage-table td:first-child{
  width:46px!important;min-width:46px!important;max-width:46px!important;padding:5px 2px!important;
 }
}

/* 1.5.480: identyczna szerokość kolumny Miejsce w tabelach torów i klasyfikacji łącznej. */
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > thead > tr > th:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > tbody > tr > td:first-child {
 width:80px!important;min-width:80px!important;max-width:80px!important;
 box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;
 text-align:center!important;padding:7px 4px!important;
}
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > thead > tr > th:nth-child(2),
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > tbody > tr > td:nth-child(2) {
 min-width:125px!important;white-space:normal!important;text-align:left!important;
}

/* 1.5.486: jednakowa szerokosc kolumny Miejsce w klasyfikacji i torach. */
.ks-live-results .ks-results-section .ks-table-wrap table.ks-ranking-table > thead > tr > th:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-ranking-table > tbody > tr > td:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > thead > tr > th:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > tbody > tr > td:first-child {
  box-sizing:border-box!important;width:80px!important;min-width:80px!important;max-width:80px!important;
  padding:7px 4px!important;text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;
}

/* 1.5.487: jednolita szerokość kolumny MIEJSCE w wynikach online. */
.ks-live-results .ks-results-section .ks-table-wrap table.ks-ranking-table:not(.ks-duels-history-table) > thead > tr > th:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-ranking-table:not(.ks-duels-history-table) > tbody > tr > td:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > thead > tr > th:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > tbody > tr > td:first-child {
  box-sizing:border-box!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  padding-left:2px!important;
  padding-right:2px!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* 1.5.498: zwykła, niepogrubiona czcionka w kolumnie MIEJSCE tabel torów online. */
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > tbody > tr > td:first-child,
.ks-live-results .ks-results-section .ks-table-wrap table.ks-stage-table > tbody > tr > td:first-child strong {
  font-weight:400!important;
}

/* 1.5.499: ukryj wyłącznie pustą dekorację zewnętrznej ramki TRAP,
   bez usuwania kontenera niezbędnego dla panelu mobilnego. */
.ks-judge > .ks-panel:has(.ks-trap-panel) {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}

/* 1.5.526: marginesy formularza zapisów 30 px na telefonie. */
.ks-ui.ks-registration{width:100%;max-width:1180px;box-sizing:border-box}
.ks-ui.ks-registration .ks-panel,.ks-ui.ks-registration form,.ks-ui.ks-registration .ks-field{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:640px){
  .ks-ui.ks-registration{width:calc(100vw - 60px);max-width:none;margin:12px 0 20px calc(50% - 50vw + 30px);padding:0;box-sizing:border-box}
  .ks-ui.ks-registration>.ks-panel{padding:14px 12px;border-radius:14px;margin:0 0 12px}
  .ks-ui.ks-registration .ks-form-grid,.ks-ui.ks-registration .ks-choice-list{grid-template-columns:minmax(0,1fr)}
  .ks-ui.ks-registration input,.ks-ui.ks-registration select,.ks-ui.ks-registration textarea{max-width:100%;box-sizing:border-box}
  .ks-ui.ks-registration .ks-choice{min-width:0;overflow-wrap:anywhere}
}

/* 1.5.550: wspólne stanowiska — wybór konkurencji, zawodnika i szybkie ocenianie */
.ks-static-station-queue .ks-station-card{border:1px solid #dce3eb;border-radius:12px;padding:14px;display:grid;gap:12px;background:#fff;min-width:0}
.ks-static-station-queue .ks-station-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ks-static-station-queue .ks-station-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ks-static-station-queue .ks-station-field{display:grid;gap:6px;min-width:0;font-weight:600}
.ks-static-station-queue .ks-station-field span{font-size:13px}
@media(max-width:620px){.ks-static-station-queue .ks-station-fields{grid-template-columns:minmax(0,1fr)}}

/* 1.5.554: visible expand/collapse arrow on the static stations panel. */
.ks-static-station-queue>summary{list-style:none;justify-content:space-between;gap:12px}
.ks-static-station-queue>summary::-webkit-details-marker{display:none}
.ks-static-station-queue>summary::after{content:"";display:block;flex:0 0 9px;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s ease;margin-right:4px}
.ks-static-station-queue[open]>summary::after{transform:rotate(225deg)}

/* 1.5.557: full-width station navigation buttons with balanced shooter name size. */
.ks-station-navigation-outside { max-width: 100%; box-sizing: border-box; }
.ks-station-nav-button { display:flex; align-items:center; gap:12px; width:100% !important; max-width:none !important; min-height:66px; box-sizing:border-box; padding:9px 12px; margin:7px 0; border:1px solid #d8e0e9; border-radius:7px; background:#f5f7fa; color:#182c45; text-decoration:none !important; cursor:pointer; transition:background .15s,border-color .15s; }
.ks-station-nav-button:hover, .ks-station-nav-button:focus-visible { background:#e9f1fa; border-color:#8eaccf; color:#102744; }
.ks-station-nav-number { display:flex; align-items:center; justify-content:center; flex:0 0 46px; height:46px; border-radius:5px; background:#14243b; color:#fff; font-weight:700; font-size:18px; }
.ks-station-nav-text { display:block; flex:1 1 auto; min-width:0; font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.ks-station-nav-text strong { font-size:17px; font-weight:700; }
.ks-station-nav-competition { font-size:16px; color:#526273; }
.ks-station-nav-arrow { flex:0 0 auto; font-size:23px; line-height:1; color:#526273; }
@media (max-width:600px) { .ks-station-nav-button { gap:8px; padding:8px; } .ks-station-nav-text strong { font-size:17px; } .ks-station-nav-competition { font-size:16px; } }

/* 1.5.644 — spójny, rozwijany panel rozliczeń zawodnika. */
.ks-treasurer,.ks-treasurer *{box-sizing:border-box}
.ks-treasurer .ks-treasurer-section{min-width:0}
.ks-treasurer .ks-treasurer-table{table-layout:fixed;min-width:640px;width:100%}
.ks-treasurer .ks-treasurer-table th,.ks-treasurer .ks-treasurer-table td{text-align:left;vertical-align:middle}
.ks-treasurer .ks-treasurer-table th:nth-child(1){width:30%}
.ks-treasurer .ks-treasurer-table th:nth-child(2){width:19%}
.ks-treasurer .ks-treasurer-table th:nth-child(3){width:30%}
.ks-treasurer .ks-treasurer-table th:nth-child(4){width:21%}
.ks-treasurer .ks-treasurer-table .ks-treasurer-detail-row[hidden],.ks-treasurer .ks-treasurer-table .ks-treasurer-row[hidden]{display:none!important}
.ks-treasurer .ks-treasurer-table .ks-treasurer-detail-row>td{padding:0!important;text-align:left!important;border-bottom:2px solid #dbe3ed;background:#f8fafc}
.ks-treasurer .ks-treasurer-member-status{display:block;color:#64748b;font-size:11px;margin-top:4px}
.ks-treasurer .ks-arrears-bad{color:#a92323;font-weight:700}
.ks-treasurer .ks-arrears-ok{color:#18753b;font-weight:650}
.ks-treasurer .ks-treasurer-toggle{min-height:34px;padding:7px 12px;border:1px solid #bed1e2;border-radius:7px;background:#edf5fb;color:#194b72;font-size:12px;font-weight:700;cursor:pointer;white-space:normal}
.ks-treasurer .ks-treasurer-toggle:hover{background:#dcecf9}
.ks-treasurer .ks-treasurer-detail-panel{padding:22px;min-width:0}
.ks-treasurer .ks-treasurer-detail-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.ks-treasurer .ks-treasurer-detail-title h4{margin:0;font-size:17px;color:#173b5a}
.ks-treasurer .ks-treasurer-detail-title span{font-weight:700;color:#a92323}
.ks-treasurer .ks-treasurer-detail-info{display:flex;flex-wrap:wrap;gap:10px 22px;margin-bottom:16px;color:#46576b}
.ks-treasurer .ks-treasurer-arrears-years{padding:12px 14px;margin-bottom:16px;border-left:3px solid #c73a3a;background:#fff4f4;line-height:1.6}
.ks-treasurer .ks-treasurer-detail-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:start}
.ks-treasurer .ks-treasurer-detail-columns>section{min-width:0;background:#fff;border:1px solid #dbe3ed;border-radius:10px;padding:16px}
.ks-treasurer .ks-treasurer-detail-columns h5{font-size:14px;color:#173b5a;margin:0 0 12px}
.ks-treasurer .ks-treasurer-detail-columns .ks-treasurer-payment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:transparent;padding:0;min-width:0}
.ks-treasurer .ks-treasurer-payment-fields>strong{grid-column:1/-1;padding-top:8px;border-top:1px solid #edf1f5;color:#173b5a}
.ks-treasurer .ks-treasurer-payment-fields label{font-size:12px;min-width:0}
.ks-treasurer .ks-treasurer-payment-fields label:has(textarea){grid-column:1/-1}
.ks-treasurer .ks-treasurer-payment-fields input,.ks-treasurer .ks-treasurer-payment-fields select,.ks-treasurer .ks-treasurer-payment-fields textarea,.ks-treasurer .ks-treasurer-edit input,.ks-treasurer .ks-treasurer-edit select{width:100%;max-width:100%;min-width:0;min-height:36px}
.ks-treasurer .ks-treasurer-detail-columns .ks-treasurer-edit form{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;margin-top:12px}
.ks-treasurer .ks-treasurer-detail-columns .ks-treasurer-edit form button{grid-column:1/-1}
.ks-treasurer .ks-treasurer-detail-columns .ks-treasurer-save{margin-top:14px;min-width:120px}
.ks-treasurer .ks-treasurer-years,.ks-treasurer .ks-treasurer-actions,.ks-treasurer .ks-treasurer-toolbar{align-items:center}
@media(max-width:850px){.ks-treasurer .ks-treasurer-detail-columns{grid-template-columns:1fr}}
@media(max-width:550px){.ks-treasurer .ks-treasurer-payment-fields{grid-template-columns:1fr 1fr}.ks-treasurer .ks-treasurer-detail-panel{padding:12px}.ks-treasurer .ks-treasurer-detail-columns>section{padding:12px}}

/* 1.5.647: widoczny aktualny strzelec i stabilny układ na różnych telefonach. */
.ks-trap-current-shooter{display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 8px 7px;text-align:center;line-height:1.2}
.ks-trap-current-shooter span{font-size:12px;font-weight:800;letter-spacing:.03em;color:#315b40}
.ks-trap-current-shooter strong{font-size:clamp(17px,5vw,23px);font-weight:850;color:#172d20;overflow-wrap:anywhere}
@media(max-width:700px){
 /* Nie uzależniaj widoczności tabeli od wysokości flex/viewport przeglądarki. */
 html:has(body.ks-judge-standalone .ks-trap-panel){height:auto!important;overflow:auto!important}
 body.ks-judge-standalone:has(.ks-trap-panel){position:static!important;height:auto!important;min-height:100dvh;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.ks-judge-standalone:has(.ks-trap-panel) #ks-judge-main{height:auto!important;max-height:none!important;overflow:visible!important}
 .ks-ui.ks-judge:has(.ks-trap-panel){height:auto!important;max-height:none!important;overflow:visible!important}
 .ks-trap-panel{height:auto!important;max-height:none!important;overflow:visible!important}
 .ks-trap-panel>.ks-trap-scroll{display:block;flex:none!important;min-height:110px!important;max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
 .ks-trap-panel .ks-trap-current-shooter{padding:4px 5px 6px}
 .ks-trap-panel .ks-trap-current-shooter strong{font-size:20px}
 /* Przy otwartych ustawieniach pozostaw tabelę widoczną poniżej. */
 .ks-trap-panel:has(>.ks-trap-setup[open])>.ks-trap-scroll{display:block!important}
}

/* 1.5.649: fallback bez :has() dla starszych przeglądarek mobilnych.
   Strona TRAP musi być przewijalna; nie wolno jej unieruchamiać na 100dvh. */
@media(max-width:700px){
 html:has(body.ks-trap-mode),html:has(body.ks-trap-mode) body{height:auto!important}
 body.ks-judge-standalone.ks-trap-mode{position:static!important;inset:auto!important;width:100%!important;height:auto!important;min-height:100vh!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:auto!important}
 body.ks-trap-mode #ks-judge-main{height:auto!important;max-height:none!important;min-height:100vh!important;overflow:visible!important}
 body.ks-trap-mode .ks-ui.ks-judge{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:6px 8px!important}
 body.ks-trap-mode .ks-trap-panel{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.ks-trap-mode .ks-trap-panel>.ks-trap-scroll{display:block!important;flex:none!important;height:auto!important;min-height:100px!important;max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
 body.ks-trap-mode .ks-trap-panel .ks-trap-current{order:initial!important}
 body.ks-trap-mode .ks-trap-panel .ks-trap-current-shooter{display:flex!important}
}

/* 1.5.651: static judge bottom controls remain scrollable above the fixed score bar. */
body.ks-static-score-scroll-fix{height:auto!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior-y:auto!important}
body.ks-static-score-scroll-fix #ks-judge-main{height:auto!important;max-height:none!important;overflow-y:visible!important}
.ks-static-score-bottom-spacer{display:block!important;width:100%;min-height:130px;flex:0 0 auto;pointer-events:none;visibility:hidden}

/* KS 1.5.657: clear network state and recoverable unsent drafts */
.ks-network-state,.ks-draft-recovery{box-sizing:border-box;margin:12px 0;padding:12px 14px;border-radius:9px;border:1px solid #9ca3af;background:#f3f4f6;color:#111827;font-size:14px;line-height:1.5}
.ks-network-state.ks-is-offline{border-color:#b45309;background:#fef3c7;color:#78350f}
.ks-draft-recovery{border-color:#2563eb;background:#eff6ff}
.ks-draft-recovery button{display:inline-block;margin:5px;padding:8px 10px;border-radius:6px;cursor:pointer}

/* 1.5.676 — TRAP / DOUBLE TRAP: fully scrollable squad setup on mobile PWA.
   Override earlier viewport/flex rules that clipped the last station and actions. */
@media (max-width:700px){
 html:has(body.ks-judge-standalone .ks-trap-panel),
 body.ks-judge-standalone:has(.ks-trap-panel),
 body.ks-judge-standalone.ks-trap-mode{height:auto!important;min-height:100%!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;position:static!important;inset:auto!important}
 body.ks-judge-standalone:has(.ks-trap-panel) #ks-judge-main,
 body.ks-trap-mode #ks-judge-main,
 .ks-ui.ks-judge:has(.ks-trap-panel),
 body.ks-trap-mode .ks-ui.ks-judge,
 .ks-trap-panel,body.ks-trap-mode .ks-trap-panel{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .ks-trap-panel:has(>.ks-trap-setup[open])>.ks-trap-setup[open],
 body.ks-trap-mode .ks-trap-setup[open]{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;overflow:visible!important;overscroll-behavior:auto!important;touch-action:pan-y!important}
 .ks-trap-setup[open] .ks-trap-squad-form{display:block!important;overflow:visible!important;padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
 .ks-trap-setup .ks-trap-setup-actions{position:static!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin:16px 0 8px!important;padding:8px 0 16px!important;z-index:auto!important}
 .ks-trap-setup .ks-trap-setup-actions button{display:block!important;width:100%!important;min-height:48px!important;flex:0 0 auto!important;visibility:visible!important;opacity:1!important}
}

/* KS 1.5.679: compact network status in judge PWA */
.ks-judge-standalone .ks-network-state{display:table;width:auto;max-width:100%;margin:4px 0 6px;padding:2px 7px;border-radius:5px;border:1px solid #86b99a;background:#e8f5ed;color:#17653b;font-size:11px;font-weight:600;line-height:1.3}
.ks-judge-standalone .ks-network-state.ks-is-offline{border-color:#e6bc78;background:#fff3dd;color:#8a520c}

/* KS 1.5.680: pending count alongside compact connectivity status */
.ks-judge-standalone .ks-network-state{display:inline-flex;vertical-align:middle;margin-right:7px}
.ks-judge-standalone .ks-pwa-queue-count{display:inline-block;vertical-align:middle;font-size:11px;line-height:1.3;font-weight:600;white-space:nowrap;margin:4px 0 6px}

/* KS 1.5.681: short operational status next to network and pending count */
.ks-judge-standalone .ks-pwa-short-status{display:inline-block;vertical-align:middle;font-size:11px;line-height:1.3;color:#555;font-weight:500;margin:4px 0 6px 8px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ks-judge-standalone .ks-pwa-short-status[hidden]{display:none}

/* KS 1.5.682: keep compact status visible on the same row as queue count */
.ks-judge-standalone .ks-pwa-short-status{display:inline-block!important;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;margin-left:7px}
.ks-judge-standalone .ks-pwa-short-status[hidden]{display:none!important}

/* 1.5.698: only text color; no background or additional box styling. */
.ks-registration .ks-discipline-availability.ks-availability-open{color:#167344;opacity:1}
.ks-registration .ks-discipline-availability.ks-availability-full{color:#bb2525;opacity:1}

/* 1.5.699: pogrubione nazwy konkurencji w formularzu zapisow, bez zmiany wygladu miejsc. */
.ks-registration .ks-discipline-label .ks-discipline-text > span:first-child{font-weight:700}

/* 1.5.751: kompaktowe, niekolidujące przyciski filtra wyników online */
.ks-live-results .ks-results-filter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.ks-live-results .ks-results-filter-actions button{display:inline-flex;align-items:center;justify-content:center;position:static;float:none;margin:0;min-width:0;width:auto;max-width:100%;white-space:normal;line-height:1.3;box-sizing:border-box}
@media(max-width:480px){.ks-live-results .ks-results-filter-actions{gap:8px}.ks-live-results .ks-results-filter-actions button{flex:1 1 130px;padding:10px 9px}}

/* 1.5.754: only public online results use nearly full viewport width on phones. */
@media (max-width:640px){
  .ks-ui.ks-live-results{position:relative;left:50%;transform:translateX(-50%);width:calc(100vw - 10px)!important;max-width:none!important;margin:12px 0!important;padding:0!important;min-width:0!important;}
  .ks-ui.ks-live-results>.ks-panel,.ks-ui.ks-live-results>.ks-results-section{width:100%;max-width:100%;min-width:0;margin-left:0;margin-right:0;}
  .ks-ui.ks-live-results>.ks-panel{padding:12px 9px;}
  .ks-ui.ks-live-results .ks-results-section{padding:10px 7px;}
  .ks-ui.ks-live-results .ks-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
}

/* 1.5.757: natychmiastowe wyszukiwanie startów zawodnika */
.ks-live-results .ks-results-player-search{margin:12px 0 18px;max-width:100%;padding:14px 18px;border:1px solid #d9e1e7;border-radius:12px;background:#fff;box-sizing:border-box}
.ks-live-results .ks-results-player-search label{display:block;font-weight:700;margin-bottom:8px}
.ks-live-results .ks-results-player-search input{display:block;width:100%;box-sizing:border-box;padding:11px 13px;border:1px solid #b8c6d3;border-radius:8px;font:inherit}
.ks-live-results .ks-results-search-empty{margin:10px 0 0}
.ks-live-results [hidden]{display:none!important}
@media(max-width:480px){.ks-live-results .ks-results-player-search{padding:12px}}

/* 1.5.758: kompaktowy naglowek tylko na stronie Wyniki online */
.ks-ui.ks-live-results > .ks-panel:first-child{padding:18px 24px!important;margin-bottom:12px!important;min-height:0!important}
.ks-ui.ks-live-results > .ks-panel:first-child .ks-eyebrow{display:block;margin:0 0 6px!important;line-height:1.25}
.ks-ui.ks-live-results > .ks-panel:first-child h1{margin:0!important;line-height:1.15!important}
@media(max-width:640px){.ks-ui.ks-live-results > .ks-panel:first-child{padding:12px 10px!important;margin-bottom:10px!important}.ks-ui.ks-live-results > .ks-panel:first-child .ks-eyebrow{margin-bottom:5px!important}}

/* 1.5.759: usuniecie pustej przestrzeni NAD ramka naglowka Wynikow online. */
.ks-ui.ks-live-results{margin-top:5px!important;}
@media(max-width:600px){.ks-ui.ks-live-results{margin-top:5px!important;}}

/* 1.5.762: DOUBLE TRAP – dublet w kolumnie: pierwszy rzutek nad drugim. */
.ks-live-results .ks-online-double-trap-dots{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px;max-width:none}
.ks-live-results .ks-online-double-trap-dots .ks-double-trap-pair{display:inline-flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px}
.ks-live-results .ks-online-double-trap-dots .ks-double-trap-pair .ks-trap-shot-dot{display:block}

/* 1.5.864: kompaktowa tabela IPSC, bez zmian sposobu naliczania */
.ks-ipsc-form .ks-ipsc-table-scroll{width:100%;overflow-x:auto;margin:12px 0;-webkit-overflow-scrolling:touch}
.ks-ipsc-form .ks-ipsc-target-table{width:100%;border-collapse:separate;border-spacing:3px;table-layout:fixed;min-width:530px}
.ks-ipsc-form .ks-ipsc-target-table th,.ks-ipsc-form .ks-ipsc-target-table td{padding:3px;text-align:center;vertical-align:middle;border:0;background:transparent}
.ks-ipsc-form .ks-ipsc-target-table thead th{font-size:13px;font-weight:800;color:#334155}
.ks-ipsc-form .ks-ipsc-target-table .ks-ipsc-row-name{width:80px;text-align:left;font-size:13px;white-space:nowrap;color:#0f172a}
.ks-ipsc-form .ks-ipsc-cell-controls{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}
.ks-ipsc-form .ks-ipsc-cell-add{min-height:38px;min-width:37px;flex:1;padding:5px 2px;border:1px solid #94a3b8;border-radius:6px;background:#f8fafc;color:#1e293b;font-size:13px;font-weight:750;cursor:pointer}
.ks-ipsc-form .ks-ipsc-cell-add:active{background:#dbeafe}
.ks-ipsc-form .ks-ipsc-cell-count{font-weight:800;font-size:13px;min-width:12px}
.ks-ipsc-form .ks-ipsc-cell-minus{min-height:28px;min-width:22px;padding:0;border:1px solid #cbd5e1;border-radius:5px;background:white;color:#334155;cursor:pointer}
.ks-ipsc-form .ks-ipsc-cell-minus:disabled{opacity:.25;cursor:default}
.ks-ipsc-form .ks-ipsc-table-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}
.ks-ipsc-form .ks-ipsc-table-actions button{min-height:40px;padding:8px 12px}

/* 1.5.866: tabela celow IPSC zawsze widoczna, bez nawigacji i dodawania celow */
.ks-ipsc-form [data-ipsc-editor] .ks-ipsc-target-table{display:table!important;width:100%!important}
.ks-ipsc-form [data-ipsc-editor] .ks-ipsc-table-scroll{display:block!important}
.ks-ipsc-form [data-ipsc-editor] .ks-ipsc-table-actions,.ks-ipsc-form [data-ipsc-editor] .ks-ipsc-nav{display:none!important}

/* 1.5.867: każdy cel IPSC jako oddzielny kompaktowy blok */
.ks-ipsc-form .ks-ipsc-target-list{display:flex;flex-direction:column;gap:12px;margin:12px 0}
.ks-ipsc-form .ks-ipsc-target-card{border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#f8fafc;min-width:0}
.ks-ipsc-form .ks-ipsc-target-title{font-size:14px;font-weight:700;margin:0 0 6px;color:#0f172a}
.ks-ipsc-form .ks-ipsc-target-card .ks-ipsc-table-scroll{margin:0}
.ks-ipsc-form .ks-ipsc-target-card .ks-ipsc-target-table{min-width:480px;border-spacing:2px}
.ks-ipsc-form .ks-ipsc-target-card .ks-ipsc-target-table th{font-size:12px}
@media(max-width:600px){.ks-ipsc-form .ks-ipsc-target-card{padding:8px}}

/* 1.5.869: jeden naglowek dla wszystkich celow IPSC */
.ks-ipsc-form .ks-ipsc-shared-header{margin:0 12px -4px}
.ks-ipsc-form .ks-ipsc-shared-header .ks-ipsc-target-table{margin:0}
.ks-ipsc-form .ks-ipsc-target-card .ks-ipsc-target-table{margin:0}
.ks-ipsc-form .ks-ipsc-target-card .ks-ipsc-target-table td{width:16.6667%}
@media(max-width:600px){.ks-ipsc-form .ks-ipsc-shared-header{margin-left:8px;margin-right:8px}}

/* 1.5.870 — zwarta tabela IPSC: C1/C2 po lewej, bez ramek i kresek */
.ks-ipsc-form .ks-ipsc-flat-wrap{width:100%;overflow-x:auto;margin:8px 0}
.ks-ipsc-form .ks-ipsc-flat-table{width:100%;min-width:620px;border-collapse:separate!important;border-spacing:0 4px!important;border:0!important;background:transparent!important}
.ks-ipsc-form .ks-ipsc-flat-table thead,.ks-ipsc-form .ks-ipsc-flat-table tbody,.ks-ipsc-form .ks-ipsc-flat-table tr,.ks-ipsc-form .ks-ipsc-flat-table th,.ks-ipsc-form .ks-ipsc-flat-table td{background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important}
.ks-ipsc-form .ks-ipsc-flat-table thead th{font-size:12px;text-align:center;padding:3px 2px 6px!important}
.ks-ipsc-form .ks-ipsc-flat-table thead th:first-child{width:42px;text-align:left}
.ks-ipsc-form .ks-ipsc-flat-table tbody th.ks-ipsc-flat-label{width:42px;white-space:nowrap;text-align:left;font-size:13px;font-weight:700;padding:4px 5px 4px 0!important}
.ks-ipsc-form .ks-ipsc-flat-table td{padding:3px 2px!important;vertical-align:middle}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-controls{display:flex;align-items:center;justify-content:center;gap:3px}

/* 1.5.872 — korekta per cel zamiast przycisków minus przy ocenach */
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-correction-cell{width:52px;min-width:44px;text-align:center;padding:3px 4px!important}
.ks-ipsc-form .ks-ipsc-correction-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;min-height:36px;border:1px solid #94a3b8;border-radius:6px;background:#f1f5f9;color:#0f172a;font-size:20px;font-weight:800;cursor:pointer}
.ks-ipsc-form .ks-ipsc-correction-toggle.is-active{background:#b91c1c;color:#fff;border-color:#991b1b}
.ks-ipsc-form .ks-ipsc-flat-table{min-width:690px}

/* 1.5.873: zielony przycisk oceny, gdy cel ma dokładnie dwa ocenione strzały. */
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-add.is-complete-hit{background:#dcfce7!important;border-color:#16a34a!important;color:#14532d!important;box-shadow:inset 0 0 0 1px #22c55e!important}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-add.is-complete-hit:active{background:#bbf7d0!important}

/* 1.5.875: mocne, widoczne zielone oznaczenie przy dokładnie 2 ocenach w celu */
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-complete-hit,
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add[data-complete-hit="1"]{
 background-color:#bbf7d0!important;border:2px solid #16a34a!important;
 color:#14532d!important;box-shadow:inset 0 0 0 2px #16a34a!important;
}

/* 1.5.876 — delikatne oznaczenie 2 ocen (zielony) lub >2 (czerwony). */
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-complete-hit,
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add[data-complete-hit="1"]{
 background:#e8f7ed!important;color:#166534!important;border:1px solid #a7d9b5!important;box-shadow:none!important;
}
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-over-limit{
 background:#fdecec!important;color:#991b1b!important;border:1px solid #efb0b0!important;box-shadow:none!important;
}

/* 1.5.878: tabela IPSC miesci sie w ekranie telefonu bez przewijania w poziomie. */
@media (max-width: 650px) {
 .ks-ipsc-form [data-ipsc-editor],
 .ks-ipsc-form .ks-ipsc-flat-wrap {width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:visible!important;}
 .ks-ipsc-form .ks-ipsc-flat-table,
 .ks-ipsc-form [data-ipsc-editor] .ks-ipsc-target-table {width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-spacing:0 3px!important;}
 .ks-ipsc-form .ks-ipsc-flat-table th,
 .ks-ipsc-form .ks-ipsc-flat-table td {padding:2px 1px!important;min-width:0!important;box-sizing:border-box!important;}
 .ks-ipsc-form .ks-ipsc-flat-table thead th:first-child,
 .ks-ipsc-form .ks-ipsc-flat-table tbody th.ks-ipsc-flat-label {width:27px!important;min-width:0!important;font-size:10px!important;padding:2px 1px!important;}
 .ks-ipsc-form .ks-ipsc-flat-table thead th:last-child,
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-correction-cell {width:31px!important;min-width:0!important;padding:2px 0!important;}
 .ks-ipsc-form .ks-ipsc-flat-table thead th {font-size:10px!important;padding:2px 0 4px!important;}
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-controls {width:100%!important;min-width:0!important;gap:0!important;}
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add {width:100%!important;min-width:0!important;min-height:36px!important;padding:4px 0!important;font-size:10px!important;font-weight:700!important;border-radius:4px!important;white-space:nowrap!important;letter-spacing:-.3px!important;box-shadow:none!important;}
 .ks-ipsc-form .ks-ipsc-correction-toggle {width:28px!important;min-width:0!important;min-height:36px!important;padding:0!important;font-size:17px!important;border-radius:4px!important;}
}
@media (max-width: 380px) {
 .ks-ipsc-form .ks-ipsc-flat-table thead th:first-child,
 .ks-ipsc-form .ks-ipsc-flat-table tbody th.ks-ipsc-flat-label {width:23px!important;font-size:9px!important;}
 .ks-ipsc-form .ks-ipsc-flat-table thead th:last-child,
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-correction-cell {width:27px!important;}
 .ks-ipsc-form .ks-ipsc-correction-toggle {width:25px!important;}
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add {font-size:9px!important;}
}

/* 1.5.879 — czytelniejsze oceny IPSC, bez mocnych ramek. */
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-complete-hit,
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add[data-complete-hit="1"] {
 background:#b8edc8!important;color:#075b2c!important;border:1px solid #88cda0!important;box-shadow:none!important;font-size:15px!important;font-weight:800!important;
}
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-over-limit {
 background:#f9bcbc!important;color:#8d1010!important;border:1px solid #e9a0a0!important;box-shadow:none!important;font-size:15px!important;font-weight:800!important;
}
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add {font-size:15px!important;font-weight:750!important;}
@media(max-width:650px){
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add,
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-complete-hit,
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-over-limit {font-size:12px!important;letter-spacing:-.25px!important;}
 .ks-ipsc-form .ks-ipsc-flat-table thead th {font-size:11px!important;}
 .ks-ipsc-form .ks-ipsc-flat-table tbody th.ks-ipsc-flat-label {font-size:11px!important;}
}
@media(max-width:380px){
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add,
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-complete-hit,
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-over-limit {font-size:11px!important;letter-spacing:-.35px!important;}
}

/* 1.5.880: numer celu jest na przycisku korekty; usunięta lewa kolumna. */
.ks-ipsc-form .ks-ipsc-flat-table thead th:first-child{width:auto!important;text-align:center!important}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-correction-cell{width:44px!important}
.ks-ipsc-form .ks-ipsc-correction-toggle{font-size:15px!important;font-weight:800!important}
@media(max-width:650px){
 .ks-ipsc-form .ks-ipsc-flat-table thead th:first-child{width:auto!important;text-align:center!important}
 .ks-ipsc-form .ks-ipsc-flat-table thead th:last-child,
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-correction-cell{width:30px!important}
 .ks-ipsc-form .ks-ipsc-correction-toggle{font-size:14px!important}
}
@media(max-width:380px){
 .ks-ipsc-form .ks-ipsc-flat-table thead th:last-child,
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-correction-cell{width:26px!important}
}

/* 1.5.883: duże jasnoszare symbole i mały licznik wewnątrz przycisku. */
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add,
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-complete-hit,
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-over-limit{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:3px!important;white-space:nowrap!important;min-width:0!important;
 padding:3px 2px!important;line-height:1!important;
}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-score-letter{
 font-size:clamp(17px,2.5vw,25px)!important;font-weight:800!important;
 color:#a1a1aa!important;line-height:1!important;letter-spacing:-.6px!important;
}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-score-number{
 font-size:clamp(11px,1.4vw,15px)!important;font-weight:800!important;
 color:#334155!important;line-height:1!important;
}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-add.is-complete-hit .ks-ipsc-score-letter{color:#15803d!important}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-add.is-over-limit .ks-ipsc-score-letter{color:#b91c1c!important}
@media(max-width:600px){
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-score-letter{font-size:clamp(14px,4.1vw,19px)!important;letter-spacing:-.5px!important}
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-score-number{font-size:clamp(10px,2.9vw,13px)!important}
 .ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add{gap:1px!important;padding:2px 0!important}
}

/* 1.5.883: licznik ocen ma identyczny krój, rozmiar i kolor jak symbol. */
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-score-number{
 font-size:clamp(17px,2.5vw,25px)!important;
 font-weight:800!important;
 color:#a1a1aa!important;
 line-height:1!important;
 letter-spacing:-.6px!important;
}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-add.is-complete-hit .ks-ipsc-score-number{color:#15803d!important}
.ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-cell-add.is-over-limit .ks-ipsc-score-number{color:#b91c1c!important}
@media(max-width:600px){
 .ks-ipsc-form .ks-ipsc-flat-table .ks-ipsc-score-number{font-size:clamp(14px,4.1vw,19px)!important;letter-spacing:-.5px!important}
}

/* 1.5.885 — przewijana lista maksymalnie czterech rzędów ocen IPSC. */
.ks-ipsc-form .ks-ipsc-flat-wrap{scrollbar-width:thin;-webkit-overflow-scrolling:touch}


/* 1.5.886 — przyciski ocen IPSC o 5 px wyższe, bez zmiany szerokości. */
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add{min-height:41px!important;}
@media(min-width:651px){.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add{min-height:45px!important;}}

/* 1.5.887: czas toru i status zawodnika obok siebie, niezależne formularze. */
.ks-ipsc-time-status-row{display:grid;grid-template-columns:minmax(125px,1fr) minmax(210px,1.6fr);align-items:end;gap:10px;margin:10px 0 14px}
.ks-ipsc-time-status-row .ks-ipsc-time-field{min-width:0;margin:0}
.ks-ipsc-time-status-row .ks-ipsc-time-field input{width:100%;box-sizing:border-box}
.ks-ipsc-time-status-row .ks-judge-status{min-width:0;margin:0;display:flex;align-items:end;gap:6px;flex-wrap:nowrap}
.ks-ipsc-time-status-row .ks-judge-status label{min-width:0;flex:1;margin:0}
.ks-ipsc-time-status-row .ks-judge-status select{width:100%;min-width:0}
.ks-ipsc-time-status-row .ks-judge-status button{flex:0 0 auto;white-space:nowrap}
@media(max-width:480px){.ks-ipsc-time-status-row{grid-template-columns:minmax(95px,1fr) minmax(0,1.7fr);gap:6px}.ks-ipsc-time-status-row .ks-judge-status{gap:4px}.ks-ipsc-time-status-row .ks-judge-status button{font-size:12px;padding:8px 6px}.ks-ipsc-time-status-row .ks-judge-status select{font-size:13px}}

/* KS KROKUS 1.5.890 — licznik strzałów jako przycisk zatwierdzający wynik. */
.ks-ipsc-form button[data-ipsc-shot-check]{
 display:block!important;width:100%!important;box-sizing:border-box!important;
 text-align:center!important;cursor:pointer;font-family:inherit;
 min-height:48px;transition:background-color .15s,border-color .15s;
}
.ks-ipsc-form button[data-ipsc-shot-check]:disabled{
 cursor:not-allowed;opacity:1!important;
}
.ks-ipsc-form button[data-ipsc-shot-check].is-unset{
 background:#f1f5f9!important;color:#475569!important;border:2px solid #cbd5e1!important;
}
.ks-ipsc-form button[data-ipsc-shot-check].is-correct{
 background:#dcfce7!important;color:#166534!important;border:2px solid #16a34a!important;
 cursor:pointer;
}
.ks-ipsc-form button[data-ipsc-shot-check].is-incorrect{
 background:#fee2e2!important;color:#991b1b!important;border:2px solid #dc2626!important;
}
.ks-ipsc-form button[data-ipsc-shot-check]:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

/* 1.5.891 — pole czasu IPSC bez widocznej etykiety, z szarym placeholderem. */
.ks-ipsc-time-status-row .ks-ipsc-time-field input[name="run_time"]::placeholder{
 color:#94a3b8!important;opacity:1!important;font-weight:700;
}

/* 1.5.892 — bez widocznego przycisku zapisu statusu IPSC. */
.ks-judge-status .ks-ipsc-status-submit{display:none!important}

/* 1.5.893: CZAS, Status i Klasa sprzętowa w jednym rzędzie. */
.ks-ipsc-time-status-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;align-items:end;gap:8px!important}
.ks-ipsc-time-status-row>.ks-ipsc-equipment-field{min-width:0;margin:0!important}
.ks-ipsc-time-status-row>.ks-ipsc-equipment-field select{width:100%;min-width:0;box-sizing:border-box}
.ks-ipsc-time-status-row>.ks-judge-status{padding:5px!important;min-width:0}
.ks-ipsc-time-status-row>.ks-judge-status label{font-size:12px}
@media(max-width:480px){.ks-ipsc-time-status-row{gap:5px!important}.ks-ipsc-time-status-row>.ks-ipsc-equipment-field,.ks-ipsc-time-status-row>.ks-judge-status label{font-size:11px}.ks-ipsc-time-status-row select{font-size:12px!important;padding-left:5px!important;padding-right:4px!important}}

/* 1.5.895: bez tła sekcji Status; puste pole czasu bez napisu CZAS. */
.ks-ipsc-time-status-row > .ks-judge-status {
 background:transparent!important; background-color:transparent!important;
 border:0!important;box-shadow:none!important;padding:0!important;
}

/* 1.5.897: szara podpowiedź wewnątrz pola czasu */
.ks-ipsc-time-field input[name="run_time"]::placeholder{color:#94a3b8!important;opacity:1!important;}

/* 1.5.898: jednakowe, większe, niepogrubione podpisy Status i Klasa. */
.ks-ipsc-time-status-row > .ks-judge-status label,
.ks-ipsc-time-status-row > .ks-ipsc-equipment-field {
 font-size:16px!important;
 font-weight:400!important;
}
@media(max-width:480px){
 .ks-ipsc-time-status-row > .ks-judge-status label,
 .ks-ipsc-time-status-row > .ks-ipsc-equipment-field {
  font-size:16px!important;
  font-weight:400!important;
 }
}

/* 1.5.899: kolejność pól: Czas (s) | Klasa | Status. */
.ks-ipsc-time-status-row > .ks-ipsc-time-field{order:1!important}
.ks-ipsc-time-status-row > .ks-ipsc-equipment-field{order:2!important}
.ks-ipsc-time-status-row > .ks-judge-status{order:3!important}

/* 1.5.900 — większe cyfry czasu w panelu sędziego IPSC. */
.ks-ipsc-time-status-row .ks-ipsc-time-field input[name="run_time"]{
 font-size:22px!important;font-weight:700!important;
}
.ks-ipsc-time-status-row .ks-ipsc-time-field input[name="run_time"]::placeholder{
 font-size:16px!important;font-weight:400!important;
}

/* 1.5.901: pomarańczowy wybrany przycisk; zielony i czerwony mają pierwszeństwo. */
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-selected-hit:not(.is-complete-hit):not(.is-over-limit){
 background:#ffb44d!important;border:1px solid #ea8500!important;color:#78350f!important;box-shadow:none!important;
}
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-selected-hit:not(.is-complete-hit):not(.is-over-limit) .ks-ipsc-score-letter,
.ks-ipsc-form .ks-ipsc-flat-table button.ks-ipsc-cell-add.is-selected-hit:not(.is-complete-hit):not(.is-over-limit) .ks-ipsc-score-number{color:#78350f!important;}

/* 1.5.907 — zwijany tylko górny panel sędziego, bez panelu oceniania. */
.ks-judge-top-details{display:block}
.ks-judge-top-details>.ks-judge-top-summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.ks-judge-top-details>.ks-judge-top-summary::-webkit-details-marker{display:none}
.ks-judge-top-details>.ks-judge-top-summary:after{content:'⌄';font-size:24px;line-height:1;flex-shrink:0;transform:rotate(180deg)}
.ks-judge-top-details:not([open])>.ks-judge-top-summary:after{transform:none}
.ks-judge-top-details>.ks-judge-top-summary .ks-judge-identity{margin:0}
.ks-judge-top-details>.ks-judge-top-content{padding-top:10px}

/* 1.5.908 — niski nagłówek zwiniętej sekcji sędziego. */
.ks-ui.ks-judge details.ks-judge-top-details:not([open]){
 padding:5px 14px!important;
 margin-bottom:12px!important;
 min-height:0!important;
}
.ks-ui.ks-judge details.ks-judge-top-details:not([open])>summary.ks-judge-top-summary{
 min-height:30px!important;
 padding:0!important;
 margin:0!important;
 line-height:1.3!important;
}
.ks-ui.ks-judge details.ks-judge-top-details:not([open])>summary.ks-judge-top-summary:after{
 font-size:19px!important;
}

/* 1.5.909 — strzałka zawsze wyśrodkowana w pionie nagłówka sędziego. */
.ks-ui.ks-judge details.ks-judge-top-details>summary.ks-judge-top-summary{
 position:relative!important; padding-right:30px!important;
}
.ks-ui.ks-judge details.ks-judge-top-details>summary.ks-judge-top-summary::after{
 position:absolute!important;right:2px!important;top:50%!important;
 display:block!important;line-height:1!important;margin:0!important;
 transform:translateY(-50%) rotate(180deg)!important;
 transform-origin:center center!important;
}
.ks-ui.ks-judge details.ks-judge-top-details:not([open])>summary.ks-judge-top-summary::after{
 transform:translateY(-50%)!important;
}

/* 1.5.910 — kompaktowy nagłówek sędziego w obu stanach. */
.ks-ui.ks-judge details.ks-judge-top-details,
.ks-ui.ks-judge details.ks-judge-top-details[open],
.ks-ui.ks-judge details.ks-judge-top-details:not([open]){
 padding:8px 14px!important;
 min-height:0!important;
}
.ks-ui.ks-judge details.ks-judge-top-details>summary.ks-judge-top-summary{
 min-height:24px!important;
 padding:0 30px 0 0!important;
 margin:0!important;
 line-height:1.25!important;
 align-items:center!important;
}
.ks-ui.ks-judge details.ks-judge-top-details>.ks-judge-top-content{
 padding-top:6px!important;
}

/* 1.5.911 — identyczna geometria nagłówka w obu stanach. */
.ks-ui.ks-judge details.ks-judge-top-details:is([open],:not([open])){
 padding:8px 14px!important;min-height:0!important;
}
.ks-ui.ks-judge details.ks-judge-top-details:is([open],:not([open]))>summary.ks-judge-top-summary{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 box-sizing:border-box!important;height:32px!important;min-height:32px!important;max-height:32px!important;
 margin:0!important;padding:0 30px 0 0!important;line-height:20px!important;position:relative!important;
}
.ks-ui.ks-judge details.ks-judge-top-details>summary.ks-judge-top-summary>.ks-judge-identity{
 display:block!important;margin:0!important;padding:0!important;line-height:20px!important;
 font-size:inherit!important;align-self:center!important;
}
.ks-ui.ks-judge details.ks-judge-top-details>summary.ks-judge-top-summary::after{
 content:'⌄'!important;position:absolute!important;right:2px!important;top:50%!important;
 margin:0!important;padding:0!important;width:20px!important;height:20px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 font-size:19px!important;line-height:20px!important;transform:translateY(-50%) rotate(180deg)!important;
}
.ks-ui.ks-judge details.ks-judge-top-details:not([open])>summary.ks-judge-top-summary::after{
 transform:translateY(-50%)!important;
}

/* 1.5.914 — jeden przycisk serii i zapisu. */
.ks-hit-form .ks-static-unified-action:disabled{opacity:.55;cursor:not-allowed}

/* 1.5.915 — mniej pustego miejsca nad nazwiskiem w panelu oceniania punktowego. */
.ks-ui.ks-judge #ks-static-hit-form > .ks-static-shooter-heading{
 margin-top:-10px!important;
 margin-bottom:12px!important;
}
@media(max-width:600px){
 .ks-ui.ks-judge #ks-static-hit-form > .ks-static-shooter-heading{margin-top:-10px!important}
}

/* 1.5.919: czerwone nadmiarowe trafienia, możliwe do usunięcia. */
.ks-hit-form .ks-shot-remove.ks-shot-excess{background:#fee2e2!important;color:#b91c1c!important;border:2px solid #dc2626!important;font-weight:700!important;}
.ks-hit-form .ks-shot-remove.ks-shot-excess:hover{background:#fecaca!important;}
.ks-hit-form .ks-static-unified-action:disabled{opacity:.55;cursor:not-allowed;}

/* 1.5.920 — klasa i status u góry panelu punktowego, tak jak IPSC. */
.ks-ui.ks-judge .ks-static-top-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:end;max-width:100%;margin:8px 0 14px}
.ks-ui.ks-judge .ks-static-top-fields .ks-static-equipment-top,
.ks-ui.ks-judge .ks-static-top-fields .ks-static-top-status label{display:flex;flex-direction:column;gap:5px;margin:0!important;font-size:16px!important;font-weight:400!important;min-width:0}
.ks-ui.ks-judge .ks-static-top-fields select{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;height:48px!important;min-height:48px!important;font-size:16px!important;font-weight:400!important;background:#fff!important}
.ks-ui.ks-judge .ks-static-top-fields .ks-static-top-status,
.ks-ui.ks-judge .ks-static-top-fields .ks-judge-status{width:100%;max-width:none;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;display:block!important}
.ks-ui.ks-judge .ks-static-top-fields .ks-judge-status button{display:none!important}
.ks-ui.ks-judge .ks-static-shooter-heading{margin:0 0 8px!important}
@media(max-width:480px){.ks-ui.ks-judge .ks-static-top-fields{gap:6px}.ks-ui.ks-judge .ks-static-top-fields select{font-size:14px!important;padding-left:7px!important;padding-right:4px!important}}

/* KS KROKUS 1.5.921 — kompaktowa lista trafień, rowne wyrownanie u gory. */
.ks-ui.ks-judge .ks-hit-form .ks-series{margin:4px auto 6px!important;gap:5px!important;align-content:start!important;}
.ks-ui.ks-judge .ks-hit-form .ks-series-row{padding:5px 8px!important;min-height:0!important;box-sizing:border-box!important;}
.ks-ui.ks-judge .ks-hit-form .ks-shot-list{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;align-content:flex-start!important;justify-content:flex-start!important;gap:7px!important;margin:0!important;padding:0!important;min-height:0!important;}
.ks-ui.ks-judge .ks-hit-form .ks-shot-remove{margin:0!important;align-self:flex-start!important;}

/* 1.5.922 — bez pustego paska trafień. */
.ks-ui.ks-judge .ks-hit-form .ks-series[hidden]{display:none!important;margin:0!important;padding:0!important;border:0!important;}

/* 1.5.923 — Wyczyść listę po prawej stronie grupy zawodników. */
.ks-static-station-queue .ks-station-buttons [data-station-clear]{margin-left:auto!important;}

/* 1.5.927: podsumowanie punktowe w białej ramce, bez przyklejenia do dołu ekranu. */
body:has(.ks-static-steel-theme .ks-static-fixed-score){padding-bottom:0!important}
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-score-display.ks-static-fixed-score{
 position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 margin:12px 0 0!important;padding:16px 12px!important;
 box-sizing:border-box!important;border-radius:14px!important;
 background:#0f172a!important;color:#fff!important;z-index:auto!important;
 box-shadow:0 3px 12px rgba(15,23,42,.13)!important;
}
@media(max-width:480px){.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-score-display.ks-static-fixed-score{width:100%!important;left:auto!important;right:auto!important;bottom:auto!important;padding:14px 8px!important}}

/* 1.5.928: usunięcie pozostałego odstępu po dawnym przyklejonym pasku. */
body:has(.ks-ui.ks-judge .ks-static-steel-theme .ks-static-fixed-score){padding-bottom:0!important;}
.ks-ui.ks-judge .ks-score-card:has(.ks-static-steel-theme .ks-static-fixed-score){padding-bottom:12px!important;margin-bottom:0!important;min-height:0!important;}
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme:has(.ks-static-fixed-score){padding-bottom:0!important;margin-bottom:0!important;min-height:0!important;}
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-static-fixed-score{margin-bottom:0!important;}

/* 1.5.929 — kompaktowy dolny odstęp białej ramki IPSC. */
.ks-ui.ks-judge section.ks-score-card:has(.ks-ipsc-form .ks-ipsc-metrics){
 padding-bottom:8px!important; margin-bottom:0!important; min-height:0!important;
}
.ks-ui.ks-judge section.ks-score-card .ks-ipsc-form .ks-ipsc-metrics{
 margin-bottom:0!important;
}
.ks-ui.ks-judge section.ks-score-card .ks-ipsc-form>button[type=submit]{
 margin-bottom:0!important;
}

/* 1.5.931 — pasek punktowy wewnątrz białej ramki, jak w IPSC.
   Sticky jest ograniczone do panelu oceniania, bez pozycjonowania względem okna. */
body:has(.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-static-fixed-score){padding-bottom:0!important;}
.ks-ui.ks-judge section.ks-score-card:has(.ks-hit-form.ks-static-steel-theme .ks-static-fixed-score){
 padding-bottom:8px!important;margin-bottom:0!important;min-height:0!important;
}
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-score-display.ks-static-fixed-score{
 position:sticky!important;top:auto!important;bottom:8px!important;
 left:auto!important;right:auto!important;inset-inline:auto!important;
 transform:none!important;z-index:5!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:10px 0 0!important;padding:12px 10px!important;
 box-sizing:border-box!important;border-radius:14px!important;
 box-shadow:0 3px 12px rgba(15,23,42,.13)!important;
}
@media(max-width:480px){
 .ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-score-display.ks-static-fixed-score{
  width:100%!important;left:auto!important;right:auto!important;bottom:8px!important;
  padding:12px 8px!important;
 }
}

/* 1.5.932 — bez rezerwowania miejsca po dawnym pasku przyklejonym do ekranu. */
body.ks-judge-standalone:has(.ks-hit-form.ks-static-steel-theme .ks-static-fixed-score),
body:has(.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-static-fixed-score){
 padding-bottom:0!important;
}
.ks-ui.ks-judge section.ks-score-card:has(.ks-hit-form.ks-static-steel-theme .ks-static-fixed-score){
 padding-bottom:8px!important;margin-bottom:0!important;min-height:0!important;height:auto!important;
}
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme:has(.ks-static-fixed-score){
 padding-bottom:0!important;margin-bottom:0!important;min-height:0!important;height:auto!important;
}
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-score-display.ks-static-fixed-score{
 margin-bottom:0!important;
}
.ks-ui.ks-judge:has(.ks-hit-form.ks-static-steel-theme .ks-static-fixed-score){
 padding-bottom:0!important;margin-bottom:0!important;min-height:0!important;
}

/* 1.5.933: no reserved space for former fixed bar. */
.ks-static-score-bottom-spacer{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;}

/* 1.5.934 — równe odstępy nad nazwiskiem i pod podsumowaniem. */
.ks-ui.ks-judge section.ks-score-card:has(.ks-hit-form.ks-static-steel-theme .ks-static-fixed-score){
 padding-top:8px!important;
 padding-bottom:12px!important;
}
.ks-ui.ks-judge section.ks-score-card:has(.ks-hit-form.ks-static-steel-theme .ks-static-fixed-score) > .ks-static-shooter-heading{
 margin-top:0!important;
 margin-bottom:8px!important;
}
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-score-display.ks-static-fixed-score{
 bottom:12px!important;
}

/* 1.5.935 — IPSC: mniej miejsca nad nazwiskiem, więcej pod paskiem. */
.ks-ui.ks-judge section.ks-score-card:has(.ks-ipsc-form .ks-ipsc-metrics){
 padding-top:8px!important; padding-bottom:12px!important;
}
.ks-ui.ks-judge section.ks-score-card:has(.ks-ipsc-form .ks-ipsc-metrics)>h2{
 margin-top:0!important; margin-bottom:8px!important;
}
.ks-ui.ks-judge section.ks-score-card .ks-ipsc-form .ks-score-display.ks-ipsc-metrics{
 margin-bottom:0!important;
}

/* 1.5.939 — ukończone wyniki na zielono w zapisanej grupie zawodników. */
.ks-station-nav-button.ks-station-nav-complete{background:#dcfce7!important;border-color:#86d7a5!important;color:#14532d!important}
.ks-station-nav-button.ks-station-nav-complete .ks-station-nav-number{background:#15803d!important;color:#fff!important}
.ks-station-nav-button.ks-station-nav-complete .ks-station-nav-competition{color:#166534!important}
.ks-station-nav-button.ks-station-nav-complete:hover{background:#bbf7d0!important}

/* 1.5.940: kompaktowy przycisk PWA o wysokości 30 px. */
#ks-pwa-install[hidden]{display:none!important}
#ks-pwa-install:hover:not(:disabled){background:#1d4ed8!important}
#ks-pwa-install:focus-visible{outline:2px solid #1d4ed8;outline-offset:3px}
#ks-pwa-install .ks-pwa-install-icon{font-size:16px;line-height:1}

/* 1.5.941: przycisk Panel PWA po prawej stronie górnego paska. */
.ks-judge-standalone .ks-pwa-install-row{display:flex;justify-content:flex-end;align-items:center;width:100%;box-sizing:border-box;}
.ks-judge-standalone .ks-pwa-install-row #ks-pwa-install{flex:0 0 auto;}

/* 1.5.942 — Online i Panel PWA w jednym, zwartym wierszu. */
.ks-judge-standalone .ks-pwa-status-top-row{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;min-height:30px;margin:4px 0 6px;}
.ks-judge-standalone .ks-pwa-status-top-row .ks-network-state{flex:0 0 auto;margin:0!important;}
.ks-judge-standalone .ks-pwa-status-top-row .ks-pwa-install-row{flex:1 1 auto;min-width:0;display:flex;justify-content:flex-end;align-items:center;width:auto!important;margin:0!important;}
.ks-judge-standalone .ks-pwa-status-top-row #ks-pwa-install{margin:0!important;height:24px!important;min-height:24px!important;}

/* 1.5.945 — panele sedziowskie: bez sztucznego przewijania pustego dolu.
   Dotyczy IPSC, STEEL i punktowych; TRAP zachowuje osobny uklad przewijania. */
html:has(body.ks-judge-standalone){min-height:0!important;height:auto!important;}
body.ks-judge-standalone:not(.ks-trap-mode):not(:has(.ks-trap-panel)){
 height:auto!important;
 min-height:100dvh!important;
 padding-bottom:0!important;
 margin-bottom:0!important;
 overflow-x:hidden;
}
body.ks-judge-standalone:not(.ks-trap-mode):not(:has(.ks-trap-panel)) #ks-judge-main{
 height:auto!important;
 min-height:0!important;
 max-height:none!important;
 padding-bottom:0!important;
 margin-bottom:0!important;
}
body.ks-judge-standalone:not(.ks-trap-mode):not(:has(.ks-trap-panel)) #ks-judge-main > .ks-ui.ks-judge{
 height:auto!important;
 min-height:0!important;
 padding-bottom:0!important;
 margin-bottom:0!important;
}
body.ks-judge-standalone:not(.ks-trap-mode):not(:has(.ks-trap-panel)) .ks-static-score-bottom-spacer{
 display:none!important;height:0!important;margin:0!important;padding:0!important;
}

/* KS KROKUS 1.5.946 — czerwony przycisk „Wyczyść listę” we wszystkich grupach sędziowskich. */
.ks-static-station-queue .ks-station-buttons button[data-station-clear]{
 background:#dc2626!important;border-color:#dc2626!important;color:#fff!important;
}
.ks-static-station-queue .ks-station-buttons button[data-station-clear]:hover{
 background:#b91c1c!important;border-color:#b91c1c!important;color:#fff!important;
}
.ks-static-station-queue .ks-station-buttons button[data-station-clear]:focus-visible{
 outline:3px solid #fca5a5!important;outline-offset:2px;
}

/* 1.5.947: nizsze klawisze trafien tylko w panelu punktowym. */
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-hit-grid button,
.ks-ui.ks-judge .ks-hit-form.ks-static-steel-theme .ks-hit-grid button.ks-inner-ten{
  height:48px!important;min-height:48px!important;max-height:48px!important;
  padding-top:0!important;padding-bottom:0!important;
  margin-top:0!important;line-height:1.1!important;
}

/* 1.5.948 — jednakowa, kompaktowa wysokość przycisku serii i licznika IPSC. */
.ks-ui.ks-judge .ks-hit-form .ks-static-save-inline > button.ks-static-unified-action{
 height:40px!important;min-height:40px!important;max-height:40px!important;
 padding:0 12px!important;line-height:20px!important;box-sizing:border-box!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
.ks-ui.ks-judge .ks-ipsc-form button[data-ipsc-shot-check]{
 height:40px!important;min-height:40px!important;max-height:40px!important;
 padding:0 12px!important;line-height:20px!important;box-sizing:border-box!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}

/* 1.5.949 — przycisk zapisu punktowego: identyczna paleta statusu jak w IPSC. */
.ks-ui.ks-judge .ks-hit-form .ks-static-save-inline > button.ks-static-unified-action.is-unset{
 background:#f1f5f9!important;color:#475569!important;border:1px solid #cbd5e1!important;
}
.ks-ui.ks-judge .ks-hit-form .ks-static-save-inline > button.ks-static-unified-action.is-correct{
 background:#dcfce7!important;color:#166534!important;border:2px solid #16a34a!important;
}
.ks-ui.ks-judge .ks-hit-form .ks-static-save-inline > button.ks-static-unified-action.is-incorrect{
 background:#fee2e2!important;color:#991b1b!important;border:2px solid #dc2626!important;
}
.ks-ui.ks-judge .ks-hit-form .ks-static-save-inline > button.ks-static-unified-action:disabled{
 opacity:1!important;cursor:not-allowed;
}

/* 1.5.952 — trzy przyciski grupy zawodników w jednym wierszu na każdym ekranie. */
.ks-static-station-queue .ks-station-buttons{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center!important;gap:8px!important;width:100%;min-width:0;
 box-sizing:border-box;
}
.ks-static-station-queue .ks-station-buttons > .ks-station-btn{
 flex:0 1 auto;min-width:0!important;white-space:nowrap!important;
}
.ks-static-station-queue .ks-station-buttons > [data-station-clear]{
 margin-left:auto!important;flex-shrink:0;
}
@media(max-width:520px){
 .ks-static-station-queue .ks-station-buttons{gap:5px!important;}
 .ks-static-station-queue .ks-station-buttons > .ks-station-btn{
  font-size:clamp(10px,2.8vw,13px)!important;padding:0 7px!important;
  height:36px!important;min-height:36px!important;letter-spacing:-.15px;
 }
}
@media(max-width:360px){
 .ks-static-station-queue .ks-station-buttons{gap:4px!important;}
 .ks-static-station-queue .ks-station-buttons > .ks-station-btn{
  font-size:10px!important;padding:0 5px!important;
 }
}

/* 1.5.953: wyraźny nagłówek każdego stanowiska we wszystkich grupach sędziowskich. */
.ks-static-station-queue .ks-station-card{padding:0!important;gap:0!important;overflow:hidden;border:1px solid #b7c7db!important;border-radius:12px!important;background:#f3f6fa!important;margin-bottom:12px!important;box-shadow:0 2px 5px rgba(18,37,65,.08)}
.ks-static-station-queue .ks-station-card-head{background:#17263e!important;color:#fff!important;min-height:52px;padding:7px 12px!important;gap:10px!important}
.ks-static-station-queue .ks-station-card-title{display:inline-flex;align-items:center;gap:10px;min-width:0;color:#fff!important;font-size:15px;font-weight:700}
.ks-static-station-queue .ks-station-card-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:6px;background:#fff;color:#17263e;font-size:17px;font-weight:800}
.ks-static-station-queue .ks-station-card-head .ks-station-btn{background:#fff!important;color:#b91c1c!important;border-color:#e2e8f0!important;min-height:34px;height:34px}
.ks-static-station-queue .ks-station-card-head .ks-station-btn:hover{background:#fee2e2!important;border-color:#fca5a5!important}
.ks-static-station-queue .ks-station-card .ks-station-fields{padding:12px!important}
@media(max-width:620px){.ks-static-station-queue .ks-station-card-head{padding:7px 10px!important}.ks-static-station-queue .ks-station-card .ks-station-fields{padding:10px!important}}

/* 1.5.954: czytelne przyciski grupy na telefonach, w jednym wierszu. */
@media (max-width:620px){
 .ks-static-station-queue .ks-station-buttons{gap:6px!important;}
 .ks-static-station-queue .ks-station-buttons > .ks-station-btn{
  font-size:16px!important;font-weight:700!important;letter-spacing:0!important;
  padding:0 8px!important;min-width:0!important;white-space:nowrap!important;
  height:36px!important;min-height:36px!important;
 }
}
@media (max-width:360px){
 .ks-static-station-queue .ks-station-buttons{gap:4px!important;}
 .ks-static-station-queue .ks-station-buttons > .ks-station-btn{padding:0 5px!important;}
}

/* 1.5.957: nizszy przycisk Panel PWA — 24 px, bez zmiany szerokosci. */
.ks-judge-standalone .ks-pwa-status-top-row #ks-pwa-install{height:24px!important;min-height:24px!important;max-height:24px!important;padding-top:0!important;padding-bottom:0!important;}

/* 1.5.959 — zwarty pasek Online / Dane / Panel PWA bez pustego miejsca nad nim. */
body.ks-judge-standalone #ks-judge-main > .ks-pwa-status-top-row{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;gap:7px!important;
 height:30px!important;min-height:30px!important;max-height:30px!important;
 padding:0!important;margin:0 0 4px!important;
 box-sizing:border-box!important;overflow:visible!important;
}
body.ks-judge-standalone .ks-pwa-status-top-row .ks-network-state,
body.ks-judge-standalone .ks-pwa-status-top-row .ks-pwa-short-status,
body.ks-judge-standalone .ks-pwa-status-top-row .ks-pwa-queue-count{
 flex:0 0 auto!important;align-self:center!important;
 margin-top:0!important;margin-bottom:0!important;
}
body.ks-judge-standalone .ks-pwa-status-top-row .ks-pwa-install-row{
 flex:1 1 auto!important;align-self:center!important;
 height:30px!important;min-height:0!important;max-height:30px!important;
 padding:0!important;margin:0!important;
}
body.ks-judge-standalone .ks-pwa-status-top-row #ks-pwa-install{
 height:24px!important;min-height:24px!important;max-height:24px!important;
 margin:0!important;vertical-align:middle!important;
}

/* 1.5.960 — pasek statusu: 2 px nad i pod, PWA 18 px. */
body.ks-judge-standalone #ks-judge-main > .ks-pwa-status-top-row{
 height:22px!important;min-height:22px!important;max-height:22px!important;
 padding:2px 0!important;margin:0!important;gap:7px!important;
 align-items:center!important;box-sizing:border-box!important;
}
body.ks-judge-standalone .ks-pwa-status-top-row .ks-pwa-install-row{
 height:18px!important;min-height:18px!important;max-height:18px!important;
 align-items:center!important;
}
body.ks-judge-standalone .ks-pwa-status-top-row #ks-pwa-install{
 height:18px!important;min-height:18px!important;max-height:18px!important;
 padding:0 10px!important;line-height:18px!important;box-sizing:border-box!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
}
body.ks-judge-standalone .ks-pwa-status-top-row #ks-pwa-install .ks-pwa-install-icon{
 line-height:1!important;font-size:12px!important;
}

/* 1.5.973: Podgląd zapisanego wyniku dokładnego w stylu Steel Challenge. */
.ks-ui.ks-judge .ks-score-card .ks-precision-saved-score{margin-top:16px;margin-bottom:6px;min-height:88px}
.ks-ui.ks-judge .ks-score-card .ks-precision-saved-hits-count{font-size:13px;color:#64748b;text-align:right;margin:0 0 14px}
