:root{color-scheme:dark;--bg:#071126;--bg2:#0a1934;--surface:#0e2142;--surface2:#142a4e;--line:#2b4676;--text:#f0f5ff;--muted:#aebfdb;--accent:#88adff;--mint:#72dbc2;--red:#ffa1ad;--gold:#ffcf87;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 50% 35% at 87% 2%,#24417b55,transparent),radial-gradient(ellipse 48% 40% at 3% 45%,#3b245655,transparent),linear-gradient(180deg,#071126,#09172f);color:var(--text);font-size:15px;line-height:1.55}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:#b2c9ff;text-underline-offset:3px}a:hover{color:#fff}h1,h2,h3,p{margin-top:0}h1{line-height:1.07;font-size:clamp(36px,5.8vw,68px);letter-spacing:-.04em}h2{font-size:clamp(22px,2.2vw,30px);line-height:1.2;letter-spacing:-.025em}h3{font-size:17px;line-height:1.3}.site-shell{max-width:1320px;margin:auto;padding:0 30px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #27426a;padding:20px 0}.brand{display:flex;align-items:center;gap:14px;font-weight:720;letter-spacing:.01em}.brand-mark{display:grid;place-items:center;border:1px solid #7796d6;width:45px;height:45px;border-radius:12px;color:#d6e6ff;font-size:15px;letter-spacing:1px;background:#1b3565}.top-link{text-decoration:none;font-size:13px;font-weight:700;border:1px solid #466197;padding:10px 13px;border-radius:9px}.hero{padding:83px 0 50px;max-width:1100px}.eyebrow,.section-label{color:#a6c1ff;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.hero h1{margin:12px 0 20px}.lead{color:#cedcf3;font-size:clamp(17px,1.8vw,21px);max-width:860px;line-height:1.6}.hero-stats{display:flex;flex-wrap:wrap;gap:12px;margin-top:31px}.hero-stats>div{background:rgba(20,43,82,.75);border:1px solid #35528b;border-radius:12px;padding:15px 20px;display:flex;flex-direction:column;min-width:185px}.hero-stats strong{color:white;font-size:16px}.hero-stats span{color:#a9c1e2;font-size:12px;margin-top:4px}.content-split{display:grid;grid-template-columns:.86fr 1.14fr;align-items:start;gap:24px;padding-bottom:70px}.surface{background:linear-gradient(160deg,rgba(20,42,80,.96),rgba(11,28,58,.98));border:1px solid #344e80;border-radius:20px;padding:32px;box-shadow:0 16px 56px #040a1b55}.surface h2{margin-top:8px}.surface p{color:#c3d2e8}.intro p strong{color:#e8eeff}.timeline{list-style:none;counter-reset:steps;margin:20px 0;padding:0;display:grid;gap:18px}.timeline li{position:relative;padding-left:52px;color:#c5d2e8;counter-increment:steps}.timeline li::before{content:counter(steps);position:absolute;left:0;top:0;width:34px;height:34px;display:grid;place-items:center;background:#2c4a86;border:1px solid #6584c1;border-radius:50%;color:#fff;font-weight:800}.timeline strong{color:#fff}.hint{padding:14px 17px;border-left:3px solid #83abff;background:#183361;border-radius:6px;color:#d7e5ff;font-size:13px}.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 0 16px}.calendar-header h3{margin:0;text-align:center;text-transform:capitalize}.nav-button,.secondary-button,.approve-button,.reject-button{color:#e5efff;border:1px solid #526d9c;border-radius:9px;padding:10px 13px;background:#183662;font-size:13px;font-weight:700}.nav-button:hover,.secondary-button:hover{background:#29497d}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;font-size:12px;font-weight:800;color:#acc1e4;padding-bottom:8px}.calendar-empty{min-height:67px}.calendar-day{border-radius:11px;border:1px solid #2f446b;background:#10213e;color:#9aaeca;min-height:72px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:10px;font-size:15px;font-weight:800}.calendar-day small{font-size:9px;font-weight:650;line-height:1.15;text-align:left}.calendar-day.day-free{background:#0c413e;border-color:#367e73;color:#d6fff3}.calendar-day.day-free:hover{background:#165a53;border-color:#89cdbb}.calendar-day.day-off{background:#14223e;color:#8195b7}.calendar-day.day-selected{outline:2px solid #c9d8ff;outline-offset:1px}.legend{display:flex;gap:13px;align-items:center;flex-wrap:wrap;margin:14px 0 4px;color:#aebfdb;font-size:11px}.indicator{display:inline-block;vertical-align:middle;width:9px;height:9px;border-radius:50%;margin-right:3px}.indicator.available{background:#53cba8}.indicator.unavailable{background:#879cb9}.field-help{font-size:13px;color:#b4c9e9!important}.soft-separator{border:0;border-top:1px solid #35517d;margin:26px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.form-grid label,.stacked label,.reject-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:#dce9fd}.form-grid label.full{grid-column:1/-1}.form-grid input,.form-grid textarea,.stacked input,.stacked select,.reject-form input{background:#07182f;border:1px solid #5973a5;border-radius:8px;color:white;padding:11px 12px;width:100%;min-width:0;outline-offset:2px;resize:vertical}.form-grid input:focus,.stacked input:focus,.stacked select:focus,.reject-form input:focus{outline:2px solid #9dbbff}.required{color:#ffb4bf}.legal{font-size:12px;margin:19px 0}.primary-button{width:100%;border:0;border-radius:10px;background:#8db5ff;color:#081c3d;font-weight:900;padding:14px 18px}.primary-button:not(:disabled):hover{background:#b1cdff}.alert{border-radius:10px;padding:14px 17px;margin:15px 0;background:#26446a;color:#fff;font-size:14px}.alert.warning{background:#57401f;border:1px solid #b89555}.alert.error{background:#512a40;border:1px solid #b8667a}.alert.success{background:#15463f;border:1px solid #368f83}.footer{padding:25px 0 35px;text-align:center;border-top:1px solid #213a65;color:#90a8cf;font-size:12px}.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px}.login-panel{max-width:470px;width:100%}.login-panel h1{font-size:35px;margin:15px 0}.stacked{display:grid;gap:18px;margin-top:20px}.return-link{display:inline-block;margin-top:25px}.admin-shell .dashboard-title{padding:58px 0 28px}.dashboard-title h1{font-size:42px;margin:10px 0}.dashboard-title p{color:#b8c9e4}.top-actions{display:flex;gap:12px;align-items:center}.top-actions form{margin:0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.stat{background:linear-gradient(120deg,#203b6b,#122850);border:1px solid #375791;border-radius:15px;padding:22px;display:flex;flex-direction:column;gap:8px}.stat span{color:#baccef;font-size:13px}.stat strong{font-size:36px;line-height:1}.admin-columns{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;align-items:start}.admin-columns .surface{padding:25px}.booking-card{border:1px solid #3d5b92;border-radius:13px;background:#10254a;margin-top:15px;padding:18px}.booking-card p{font-size:13px;margin:7px 0}.booking-card h3{margin:0}.booking-card-head{display:flex;align-items:start;gap:12px;justify-content:space-between}.booking-date{color:#9fbdf0!important;font-weight:750}.decision-row{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:16px}.decision-row>form{margin:0}.reject-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;flex:1}.reject-form label{flex:1;min-width:160px}.approve-button{background:#146050;border-color:#45a18b}.approve-button:hover{background:#1b7762}.reject-button{background:#713642;border-color:#af6477}.reject-button:hover{background:#8f4554}.status-chip{border-radius:99px;padding:4px 11px;font-size:11px;font-weight:800;white-space:nowrap;background:#4c5571;color:white}.status-chip.pending,.status-chip.waiting{background:#785b24;color:#fff1c5}.status-chip.confirmed{background:#165d4d;color:#d7ffeb}.status-chip.rejected{background:#713b4d;color:#ffe1e8}.subheading{margin-top:26px}.block-item{padding:11px 0;border-bottom:1px solid #33517f;display:flex;align-items:center;justify-content:space-between;gap:10px}.block-item small{display:block;color:#b5c7e3}.spaced{margin-top:20px}.history{margin:22px 0 40px}.table-wrap{overflow-x:auto}.history table{border-collapse:collapse;width:100%;min-width:730px;font-size:13px}.history th{text-align:left;color:#acc1e4;border-bottom:1px solid #5771a3;padding:12px 11px;white-space:nowrap}.history td{padding:13px 11px;border-bottom:1px solid #29436d;vertical-align:top}.history td small{display:block;color:#a9bcda;font-size:11px;margin-top:5px}.empty-state{border:1px dashed #425a82;border-radius:10px;padding:20px;margin-top:15px}.admin-shell .footer{margin-top:30px}@media(max-width:1060px){.content-split,.admin-columns{grid-template-columns:1fr}.intro{order:1}.reservation{order:2}}@media(max-width:650px){.site-shell{padding:0 14px}.topbar{padding:15px 0;flex-wrap:wrap}.brand{font-size:13px}.hero{padding:48px 0 30px}.hero-stats{display:grid;grid-template-columns:1fr 1fr}.hero-stats>div{min-width:0}.surface{padding:20px;border-radius:14px}.form-grid{grid-template-columns:1fr}.calendar-day{min-height:57px;padding:6px 3px;font-size:12px}.calendar-day small{font-size:8px}.calendar-header h3{font-size:14px}.calendar-header .nav-button{padding:8px}.admin-shell .dashboard-title{padding-top:33px}.stats-grid{grid-template-columns:1fr}.top-actions{width:100%;justify-content:space-between}.admin-columns .surface{padding:18px}.hero-stats strong{font-size:14px}}

.history-controls{display:flex;gap:20px;align-items:end;justify-content:space-between;flex-wrap:wrap;margin:15px 0 20px}.search-row{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.search-row label{display:grid;gap:6px;font-size:12px;font-weight:750}.search-row input{width:min(100%,340px);min-width:260px;background:#07182f;border:1px solid #5973a5;border-radius:8px;color:white;padding:10px}.search-row .nav-button{text-decoration:none;display:inline-block}.history-controls .top-link{display:inline-block}

/* Nowe elementy wersji 0.3 */
.slot-choices{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.slot-choice.selected-slot{background:#2747ac;color:white;border-color:#2747ac}
.spam-trap{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;left:-10000px!important}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px}
.check-days{display:flex;gap:14px;flex-wrap:wrap;margin:8px 0}
.check-days label{display:flex;align-items:center;gap:6px}
.check-days input{width:auto}
.settings-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:10px 0;border-top:1px solid #37517a;padding-top:14px}
.settings-row label{min-width:130px;flex:1}
.settings-row input{width:100%}
.settings-row button{flex:none}
.settings-table{width:100%;border-collapse:collapse;margin:12px 0}
.settings-table td,.settings-table th{padding:10px;border-bottom:1px solid #37517a;text-align:left}
.settings-table form{display:inline-block}
.settings-note{font-size:0.87rem;line-height:1.5;color:#b4c8e8}
.settings-navigation{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
.settings-navigation a{border:1px solid #5673a6;border-radius:12px;padding:10px 16px;text-decoration:none;color:#d4e2ff}

.settings-row input,.settings-grid input,.stacked textarea {background:#07182f;border:1px solid #5973a5;border-radius:8px;color:white;padding:11px 12px;min-width:0;max-width:100%}
.settings-row input:focus,.settings-grid input:focus,.stacked textarea:focus {outline:2px solid #9dbbff;outline-offset:2px}
.settings-table th {color:#acc1e4}

/* v0.3.4 — opis nad modułem rezerwacji; kalendarz po lewej, formularz po prawej. */
.game-intro{margin-bottom:22px}
.game-intro .intro-wide{padding:26px 32px}
.game-intro .intro-wide h2{margin-bottom:12px}
.game-intro .intro-wide h3{margin-top:20px}
.game-intro .timeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.game-intro .timeline li{padding-left:43px;font-size:13px}
.game-intro .timeline li::before{width:30px;height:30px}
.game-intro .hint{margin-top:20px}
.booking-layout{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:22px}
.booking-layout .calendar-panel,.booking-layout .form-panel{min-width:0}
.booking-layout .calendar-panel{order:1}
.booking-layout .form-panel{order:2}
.booking-layout .calendar-header{margin-top:22px}
.booking-layout .form-panel .field-help{margin-top:14px}
.booking-layout .calendar-day{min-height:65px;padding:8px}
.booking-layout .calendar-day small{font-size:9px}
.slot-delete-form{margin:0}
.slot-delete-button{background:transparent;border:1px solid #b26c81;color:#ffc7d1;border-radius:9px;padding:7px 12px;font-size:12px;font-weight:750}
.slot-delete-button:hover:not(:disabled){background:#643249}
.slot-delete-button:disabled{border-color:#526783;color:#a9b5cf;opacity:.7}
.slot-state-note{display:block;color:#a9bcda;font-size:11px;margin-top:3px}
@media(max-width:1060px){
 .booking-layout{grid-template-columns:1fr}
 .booking-layout .calendar-panel{order:1}
 .booking-layout .form-panel{order:2}
}
@media(max-width:760px){
 .game-intro .timeline{grid-template-columns:1fr}
 .game-intro .intro-wide{padding:20px}
}
@media(max-width:650px){
 .booking-layout .calendar-day{min-height:57px;padding:6px 3px}
}

/* v0.3.6 — niezależny układ przełącznika: opis na górze, checkbox poniżej po lewej. */
.settings-bookings-toggle{display:block;border:1px solid #456394;padding:17px 18px;border-radius:11px;background:#122b50}
.settings-bookings-toggle>strong{display:block;color:#f0f5ff;font-size:15px;line-height:1.45}
.settings-bookings-toggle .settings-bookings-note{font-size:12px;line-height:1.5;color:#b6cae7;margin:5px 0 13px}
.stacked .settings-bookings-toggle label.settings-bookings-control{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:auto;max-width:100%;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer}
.stacked .settings-bookings-toggle .settings-bookings-control input[type="checkbox"]{display:block;width:20px;height:20px;min-width:20px;max-width:20px;min-height:20px;padding:0;margin:0;flex:0 0 20px;accent-color:#88adff;cursor:pointer}
.stacked .settings-bookings-toggle .settings-bookings-control span{display:inline;white-space:normal}
.history td .history-reason{white-space:normal;max-width:290px;overflow-wrap:anywhere}
.status-chip.cancelled{background:#455779;color:#e7eeff}
/* Przycisk w tabeli: bez formularza w wąskiej kolumnie. */
.cancel-open-button{display:inline-block;white-space:nowrap;color:#ffd1d9;border:1px solid #a96576;border-radius:8px;padding:9px 12px;cursor:pointer;font-weight:750;font-size:12px;background:#462636}
.cancel-open-button:hover{background:#713646;color:#fff}
.cancel-open-button:focus-visible,.cancel-dialog button:focus-visible,.cancel-dialog textarea:focus-visible{outline:3px solid #9ebcff;outline-offset:3px}
/* Natywne okno dialogowe na wierzchu, niezależne od tabeli i jej przewijania. */
.cancel-dialog{color:var(--text);background:linear-gradient(155deg,#152b51,#0b1c39);border:1px solid #6c86b7;border-radius:18px;padding:0;width:min(94vw,570px);max-height:min(88vh,820px);overflow-y:auto;box-shadow:0 25px 90px #030711d9}
.cancel-dialog::backdrop{background:rgba(2,8,25,.79);backdrop-filter:blur(4px)}
.cancel-dialog-content{padding:26px}
.cancel-dialog-heading{display:flex;justify-content:space-between;gap:14px;align-items:start}
.cancel-dialog-heading h3{font-size:25px;letter-spacing:-.02em;margin:8px 0 14px}
.cancel-dialog-close{background:transparent;border:1px solid #667da3;border-radius:9px;color:#dce9ff;padding:8px 11px;font-size:12px;font-weight:700}
.cancel-dialog-warning{margin:0 0 16px;color:#c7d7f0;line-height:1.5;font-size:13px}
.cancel-dialog-booking{padding:13px 15px;border:1px solid #456391;background:#102346;border-radius:10px;margin-bottom:20px;color:#dce8fa;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}
.cancel-booking-form{display:grid;gap:14px}
.cancel-booking-form label:not(.checkbox-line){display:grid;gap:7px;font-size:13px;font-weight:750}
.cancel-booking-form textarea{width:100%;background:#07182f;border:1px solid #6b86b7;border-radius:9px;color:white;padding:12px;font:inherit;resize:vertical;min-height:95px}
.cancel-booking-form label.checkbox-line{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;cursor:pointer;font-size:13px;font-weight:700}
.cancel-booking-form label.checkbox-line input[type="checkbox"]{width:19px;height:19px;min-width:19px;margin:0;accent-color:#88adff}
.cancel-mail-note{color:#b4c8e8;margin:0;font-size:12px}
.cancel-dialog-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;flex-wrap:wrap;margin-top:3px}
.cancel-dialog-actions button{white-space:normal;text-align:center;min-height:43px}
@media(max-width:600px){.cancel-dialog-content{padding:20px}.cancel-dialog-heading h3{font-size:21px}.cancel-dialog-actions{flex-direction:column-reverse;align-items:stretch}.cancel-dialog-actions button{width:100%}}

/* v0.3.7 — aktywne i archiwalne tury godzinowe */
.slot-section-title{display:flex;align-items:center;gap:11px;margin:28px 0 10px;color:#eef4ff}
.slot-count{display:inline-flex;align-items:center;justify-content:center;border:1px solid #5d7daf;border-radius:99px;background:#1c3b69;color:#dce9ff;padding:2px 9px;min-width:30px;font-size:13px;line-height:1.3;font-weight:750}
.slot-management-table td{vertical-align:middle}
.slot-management-table td:last-child{min-width:215px}
.slot-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.slot-action-button{white-space:nowrap}
.slot-action-button:disabled{opacity:.62;cursor:not-allowed}
.slot-hidden-form{display:none}
.slot-management .empty-state{margin:10px 0 22px}
.slot-management .slot-state-note{display:block;max-width:320px;line-height:1.4;margin-top:6px}
@media(max-width:650px){.slot-management .table-wrap{margin:0 -7px}.slot-management-table td:last-child{min-width:180px}.slot-action-button{white-space:normal}}

.slot-bulk-change{border:1px solid #375785;background:#10274b;border-radius:11px;padding:15px 17px;margin:25px 0 10px}
.slot-bulk-change summary{font-size:14px;font-weight:800;color:#dce9ff;cursor:pointer}
.slot-bulk-change[open] summary{margin-bottom:13px}
.slot-bulk-form{display:grid;justify-items:start;gap:14px}
.slot-bulk-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;width:100%}
.slot-bulk-options label{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:13px}
.slot-bulk-options input{width:18px;height:18px;min-width:18px;accent-color:#8db5ff}
.slot-bulk-options small{color:#a9bcda}

/* v0.3.9: limit grup */
.settings-grid select{display:block;width:100%;background:#07182f;border:1px solid #5973a5;border-radius:8px;color:white;padding:11px 12px;min-width:0;max-width:100%;margin-top:6px}
.settings-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:#dce9fd}
.settings-grid label small{font-size:12px;font-weight:400;line-height:1.45}

/* v0.3.10 — dwie niezależne karty harmonogramu */
.slot-management .slot-card-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0 14px}
.slot-management .slot-card-heading .slot-count{font-size:13px;letter-spacing:0;vertical-align:middle}
.slot-management .slot-bulk-change{margin-top:24px;margin-bottom:0}
.slot-management .subheading{margin-top:26px}

/* v0.3.11 — czytelna lista checkboxów, archiwum do rozwinięcia */
.slot-checklist-form{display:grid;gap:14px;justify-items:start}
.slot-checklist{display:grid;width:100%;gap:10px}
.slot-check-row{display:flex;align-items:center;gap:14px;padding:13px 16px;border:1px solid #375785;border-radius:11px;background:#11284a;cursor:pointer;flex-wrap:wrap}
.slot-check-row:hover{border-color:#8db5ff;background:#17345c}
.slot-check-row input[type=checkbox]{appearance:auto;display:block;width:20px;min-width:20px;height:20px;margin:0;accent-color:#8db5ff;cursor:pointer;flex:none}
.slot-check-label{display:flex;flex-direction:column;gap:3px;min-width:145px}
.slot-check-label strong{font-size:15px;color:#f0f6ff}
.slot-check-label small,.slot-check-note{font-size:12px;line-height:1.45;color:#afc4e3}
.slot-check-note{margin-left:auto}
.slot-check-submit{margin-top:1px}
.slot-archive-more{margin:14px 0 6px;border:1px solid #375785;border-radius:11px;background:#10274b;padding:14px 16px}
.slot-archive-more summary{cursor:pointer;font-weight:800;color:#dce9ff;font-size:14px}
.slot-archive-more[open] summary{margin-bottom:12px}
@media(max-width:600px){.slot-check-note{margin-left:34px}.slot-check-row{padding:12px}}

/* v0.3.12: wyjątki dla konkretnych dat */
.exceptions-nav{margin:18px 0 0;display:flex;justify-content:flex-end}
.exceptions-nav a{display:inline-block;text-decoration:none}
.exception-date-row{display:flex;align-items:end;gap:13px;flex-wrap:wrap}
.exception-date-row label,.exception-limit-label{display:grid;gap:7px;font-weight:750;font-size:13px;color:#e8f1ff}
.exception-date-row input,.exception-limit-label select,.exception-extra input{width:100%;min-width:0;color:#fff;background:#07182f;border:1px solid #5973a5;border-radius:9px;padding:11px 12px;font:inherit;color-scheme:dark}
.exception-date-row label{max-width:310px;flex:1 1 240px}
.exception-date-row button{min-height:45px}
.exception-form{display:grid;gap:20px;max-width:850px}
.exception-limit-label{max-width:310px}
.exception-mode{border:1px solid #3d5b89;border-radius:11px;margin:0;padding:17px;display:grid;gap:12px;min-width:0}
.exception-mode legend{font-weight:800;color:#eaf2ff;padding:0 8px}
.exception-mode-option{display:flex;flex-direction:row;align-items:start;gap:13px;font-size:14px;font-weight:600;cursor:pointer}
.exception-mode-option input{appearance:auto;width:19px;height:19px;flex:0 0 19px;accent-color:#8db5ff;margin:2px 0 0}
.exception-mode-option span{display:grid;gap:4px}
.exception-mode-option small{font-size:12px;line-height:1.5;color:#aec3e3;font-weight:400}
.exception-custom-slots{display:grid;gap:17px;padding:18px;background:#10264a;border:1px solid #35598b;border-radius:12px}
.exception-custom-slots[hidden]{display:none}
.exception-custom-slots h3{font-size:16px;margin:0}
.exception-slot-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:9px}
.exception-slot-options .slot-check-row{min-width:0}
.exception-extra{border-top:1px solid #3c5c89;padding-top:18px;display:grid;gap:10px}
.exception-extra .settings-row{display:flex;flex-wrap:wrap;gap:16px}
.exception-extra .settings-row label{min-width:160px;max-width:210px;flex:1 1 160px;display:grid;gap:6px;font-size:13px;font-weight:700}
.exception-delete-form{margin-top:22px;padding-top:20px;border-top:1px solid #385786}
.exception-delete-form button{max-width:100%}
.exception-edit-link{display:inline-block;text-decoration:none;font-size:13px;padding:8px 12px}
@media(max-width:650px){.exception-date-row{align-items:stretch;flex-direction:column}.exception-date-row label{width:100%;max-width:none;flex:auto}.exception-slot-options{grid-template-columns:1fr}.exceptions-nav{justify-content:stretch}.exceptions-nav a{width:100%;text-align:center}}

/* v0.3.13 — numerowane aktywne tury, checkbox i osobny przycisk archiwizacji */
.slot-active-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 16px;border:1px solid #375785;border-radius:11px;background:#11284a}
.slot-active-row:hover{border-color:#6888ba;background:#17345c}
.slot-active-row .slot-active-choice{display:flex;flex-direction:row;align-items:center;gap:14px;flex:1 1 280px;min-width:0;cursor:pointer}
.slot-active-row .slot-active-choice input[type="checkbox"]{appearance:auto;display:block;width:20px;height:20px;min-width:20px;max-width:20px;padding:0;margin:0;flex:0 0 20px;accent-color:#8db5ff;cursor:pointer}
.slot-active-row .slot-check-label{min-width:0}
.slot-active-row .slot-check-note{margin-left:0;font-size:12px;max-width:200px}
.slot-active-row .slot-archive-button{margin-left:auto;white-space:nowrap}
.slot-active-row .slot-archive-button:disabled{opacity:.52;cursor:not-allowed}
.slot-add-active{border-top:1px solid #375785;margin-top:25px;padding-top:22px}
.slot-add-active h3{margin:0 0 8px;font-size:18px}
.slot-add-active .settings-note{margin:0 0 16px}
.slot-add-active .slot-add-form{margin:12px 0 12px}
.slot-add-active .slot-add-form label{min-width:140px;flex:1 1 170px}
.slot-add-active .slot-add-form button{align-self:flex-end}
@media(max-width:660px){.slot-active-row{align-items:stretch;gap:12px}.slot-active-row .slot-active-choice{flex-basis:100%}.slot-active-row .slot-archive-button{margin-left:0;width:100%}.slot-active-row .slot-check-note{max-width:none}.slot-add-active .slot-add-form button{width:100%}}

/* v0.3.14 — układ pól limitów w jednym poziomie i jednolite wysokości */
.settings-grid{align-items:start}
.settings-grid > label{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;min-width:0}
.settings-grid > label > .settings-field-title{display:block;min-height:32px;line-height:16px}
.settings-grid > label > input,
.settings-grid > label > select{display:block;width:100%;height:46px;min-height:46px;box-sizing:border-box;margin:0;flex:0 0 46px}
.settings-grid > label > .field-help{margin:2px 0 0;line-height:1.45}
@media(max-width:650px){.settings-grid > label > .settings-field-title{min-height:0}}

/* v0.3.15 — jedna lista godzin, checkbox = dostępność; usunięcie z historią = ukrycie rekordu. */
.slot-inactive-row{background:#0d1e39;border-color:#2f4567}
.slot-inactive-row .slot-check-label strong{color:#c9d7ed}
.slot-inactive-row .slot-check-label small{color:#8fa3c2}
.slot-remove-action{margin-left:auto;min-width:83px;white-space:nowrap;padding:9px 14px;background:#402138;border:1px solid #94526c;color:#ffe0e8;border-radius:9px;font-weight:750}
.slot-remove-action:hover:not(:disabled){background:#603049;border-color:#c77791}
.slot-remove-action:disabled{opacity:.5}
.slot-active-row .slot-check-note{max-width:310px;color:#b9c9e4}
@media(max-width:660px){.slot-remove-action{width:100%;margin-left:0}}

/* v0.3.20 — zwarta historia administracyjna */
.history-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:normal}
.history-bottom{display:flex;justify-content:flex-end;margin-top:16px}
.history-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 22px}
.history-tabs a{display:inline-flex;align-items:center;gap:7px;border:1px solid #4e6791;border-radius:10px;padding:10px 14px;background:#122a50;color:#d5e3fc;font-size:13px;font-weight:750;text-decoration:none}
.history-tabs a:hover{background:#214071}
.history-tabs a[aria-current="page"]{background:#345b99;border-color:#9bb7ed;color:#fff}
.history-subtabs{margin:0 0 22px}
.history-count{display:inline-flex;align-items:center;justify-content:center;background:#725323;color:#fff0d5;border-radius:99px;padding:2px 7px;font-size:11px;min-width:23px}
.history-filter-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:15px 0 20px}
.history-filter-form label{display:flex;flex-direction:column;gap:6px;color:#dce6fb;font-size:12px;font-weight:750}
.history-filter-form label:has(input){flex:1;min-width:195px}
.history-filter-form select,.history-filter-form input{background:#07182f;border:1px solid #5973a5;border-radius:8px;color:#fff;padding:10px 11px;min-height:43px;max-width:100%}
.history-filter-form select:disabled{opacity:.5}
.history-filter-form input{width:100%}
.history-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 20px;color:#c6d7f1;font-size:13px}
.history-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin:24px 0 0;font-size:13px;color:#b6c8e8}
.history-archive-explanation{border:1px solid #a78348;background:#3f3428;border-radius:12px;padding:17px 19px;margin:0 0 16px}
.history-archive-explanation strong{color:#ffdfa2}
.history-archive-explanation p{margin:6px 0 0;font-size:13px;color:#e4ceb0}
.history-archived-row{background:rgba(193,128,40,.09)}
.history-archived-row:hover{background:rgba(193,128,40,.15)}
.history-select-col{min-width:70px}
.archive-item-check,.history-select-all input{width:18px;height:18px;accent-color:#a9c6ff;cursor:pointer}
.history-bulk-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 15px;border:1px solid #516b98;border-radius:10px;background:#182f53;margin:10px 0 17px}
.history-select-all{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer}
#archive-selected-count{font-size:13px;color:#cbd9f3}
.history-bulk-actions{display:flex;flex-wrap:wrap;gap:12px;margin:17px 0 5px}
.history-delete-note{margin:12px 0 0!important}
@media(max-width:650px){.history-filter-form{align-items:stretch}.history-filter-form label{flex:1;min-width:calc(50% - 12px)}.history-filter-form button,.history-filter-form .history-link{flex:1}.history-tabs a{flex:1;justify-content:center;text-align:center}.history-pagination a{flex:1}.history-bulk-actions button{flex:1}}

/* v0.3.22: czytelne potwierdzenie uprawnień przy usuwaniu archiwum. */
.stacked label.retention-confirm-label{display:flex;flex-direction:row;align-items:flex-start;gap:12px;font-size:13px;font-weight:600;line-height:1.55}
.stacked input.retention-confirm-checkbox[type=checkbox]{width:18px;min-width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;padding:0;accent-color:#88adff}

/* v0.3.23: miesięczne porządkowanie oddzielone wizualnie od 5-letniego przeglądu. */
.history-subtabs .history-tab-five-years{border-color:#917043}
.history-subtabs .history-tab-five-years[aria-current="page"]{background:#70502b;border-color:#e0b678}
.history-count-month{background:#294f76;color:#d9ecff}
.history-archive-explanation.history-archive-month{border-color:#537da7;background:#193551}
.history-archive-explanation.history-archive-month strong{color:#d3e9ff}
.history-archive-explanation.history-archive-month p{color:#c9dff8}

.history-archived-row.history-month-row{background:rgba(55,130,207,.06)}
.history-archived-row.history-month-row:hover{background:rgba(55,130,207,.13)}

/* v0.3.24 — Moment zmiany bieżącego statusu zgłoszenia. */
.history td .history-status-time{display:block;margin-top:7px;color:#c2d2eb;font-size:11px;line-height:1.35;white-space:normal;min-width:118px;overflow-wrap:normal}
.booking-card-status{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:190px;text-align:right;flex-shrink:0}
.booking-card-status .history-status-time{display:block;color:#c2d2eb;font-size:11px;line-height:1.35;white-space:normal}
@media(max-width:480px){.booking-card-head{flex-wrap:wrap}.booking-card-status{align-items:flex-start;text-align:left}}

/* v0.3.26 — walidacja publicznego formularza */
.booking-layout .form-grid label.booking-field-invalid input,
.booking-layout .form-grid label.booking-field-invalid textarea{
  border:2px solid #ff9ba9;
  background:#311c32;
  box-shadow:0 0 0 2px rgba(255,132,150,.13);
}
.booking-layout .form-grid label.booking-field-invalid input:focus,
.booking-layout .form-grid label.booking-field-invalid textarea:focus{outline:2px solid #ffc1ca;outline-offset:2px}
.booking-layout .booking-field-error{display:block;color:#ffd0d7;font-size:12px;font-weight:650;line-height:1.4}
.booking-layout #selected-label.booking-selection-error{border:1px solid #ff9ba9;border-radius:9px;background:#502637;padding:10px 12px;color:#fff!important;font-weight:700}
.booking-layout .cf-turnstile.booking-challenge-error{outline:2px solid #ff9ba9;outline-offset:5px;border-radius:7px}

/* v0.3.27 — widoczne oznaczenie niepoprawnych pól niezależnie od układu strony. */
#booking-form .form-grid input[aria-invalid="true"],
#booking-form .form-grid textarea[aria-invalid="true"]{
  border:2px solid #ff889d!important;
  background:#391f35!important;
  box-shadow:0 0 0 3px rgba(255,136,157,.18)!important;
}
#booking-form .form-grid input[aria-invalid="true"]:focus,
#booking-form .form-grid textarea[aria-invalid="true"]:focus{
  outline:2px solid #ffbac7;
  outline-offset:2px;
}
#booking-form .booking-field-error{display:block;color:#ffd0d7;font-size:12px;font-weight:700;line-height:1.45}

/* v0.3.28 — neutralny licznik wszystkich zgłoszeń */
.history-count-all{background:#435873;color:#f6f8ff}

/* v0.3.31.0: administracja CMS i publiczne bloki dodatkowe */
.cms-admin-section{max-width:980px;margin-left:auto;margin-right:auto}
.cms-admin-section .stacked>label{display:grid;gap:8px;font-weight:700;font-size:14px}
.cms-admin-section .stacked textarea,.cms-admin-section .stacked input[type="text"],.cms-admin-section .stacked input[type="number"],.cms-admin-section .stacked input[type="file"]{width:100%;background:#07182f;border:1px solid #5973a5;color:#fff;border-radius:8px;padding:11px 12px}
.cms-switches{display:grid;gap:12px;border:1px solid #375791;border-radius:12px;padding:16px}
.cms-switches label,.cms-checkbox{display:flex!important;flex-direction:row!important;align-items:center;gap:12px;font-weight:600;cursor:pointer}
.cms-switches input[type="checkbox"],.cms-checkbox input[type="checkbox"]{width:20px!important;height:20px;min-width:20px;flex:0 0 20px;accent-color:#88adff}
.cms-item{border-top:1px solid #365583;margin-top:24px;padding-top:20px}
.cms-item .nav-button{justify-self:start}
.cms-public-block,.cms-public-documents{margin:24px 0}
.cms-public-block p{white-space:normal}
.cms-document-list{display:grid;gap:11px;margin:0;padding-left:22px}
.cms-document-list small{color:var(--muted);margin-left:8px}
@media(max-width:650px){.cms-public-block,.cms-public-documents{margin:16px 0}.cms-document-list small{display:block;margin-left:0}}
