:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#17243c;background:#f5f7fb;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a7cbff;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-1.1px;line-height:1.14;margin-bottom:6px}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:15px}p{line-height:1.6}.muted{color:#778198}.tiny{font-size:12px}.small{font-size:13px}.semi{font-weight:650}.divider{height:1px;background:#e9eef4;margin:18px 0}.preloader{height:100vh;display:flex;align-items:center;justify-content:center;gap:15px;color:#58647a}.spinner{height:19px;width:19px;border-radius:50%;border:3px solid #d5e2f4;border-top-color:#4671e5;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Authentication */
.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.07fr) minmax(350px,.93fr)}.auth-hero{background:#111e34;position:relative;color:white;display:flex;align-items:center;padding:10% 13%;overflow:hidden}.auth-hero:after{content:"";position:absolute;width:480px;height:480px;border:100px solid rgba(123,200,133,.08);border-radius:50%;right:-150px;bottom:-310px}.auth-hero h1{font-size:clamp(40px,5vw,72px);letter-spacing:-3px;max-width:640px;margin:24px 0 20px;line-height:1.01}.auth-hero h1 span{color:#a9e3b1}.auth-hero p{max-width:500px;color:#b9c5d5;font-size:17px}.auth-panel{display:flex;justify-content:center;align-items:center;padding:42px}.auth-card{width:min(100%,440px)}.auth-card h2{font-size:27px;letter-spacing:-.9px;margin-bottom:9px}.brand{display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:1px;font-size:15px}.brandmark{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#b3e5ad;color:#10241a;font-weight:900;font-size:24px;box-shadow:0 6px 20px #0000001d}.login-panel{background:#fff}
/* Application shell */
.shell{min-height:100vh;display:grid;grid-template-columns:236px minmax(0,1fr)}.side{background:#101c31;color:#ecf3fa;display:flex;flex-direction:column;padding:27px 16px 22px;position:sticky;top:0;height:100vh;min-height:650px}.side .brand{padding:0 11px}.side-tag{border:1px solid #354157;border-radius:8px;color:#8fa3c0;font-size:10px;font-weight:700;letter-spacing:1.5px;padding:5px 9px;width:max-content;margin:28px 11px 15px;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:5px}.nav button{width:100%;display:flex;gap:14px;align-items:center;color:#a8bad1;background:transparent;border:0;border-radius:10px;text-align:left;padding:12px 13px;font-weight:600;letter-spacing:.1px}.nav button .nav-icon{font-size:18px;width:24px;text-align:center;font-family:"Segoe UI Symbol",sans-serif;font-weight:400}.nav button:hover{color:#fff;background:#202f48}.nav button.active{background:#273952;color:white}.nav button.active:before{content:"";width:3px;height:21px;background:#afe2ae;position:absolute;left:16px;border-radius:3px;transform:translateX(-16px)}.side-bottom{margin-top:auto;padding:14px 9px 0;border-top:1px solid #2a3650}.userbox{display:flex;gap:10px;align-items:center}.avatar{width:35px;height:35px;border-radius:50%;background:#dbe9ff;color:#224d96;display:grid;place-items:center;font-weight:800;flex:none}.userbox .who{overflow:hidden}.userbox .who>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:135px}.userbox .who small{color:#97aac1}.side-logout{color:#b7c5d6;margin-top:14px;width:100%;background:transparent;border:1px solid #32425a;padding:9px;border-radius:9px;text-align:center}.side-logout:hover{background:#202f48}.main{min-width:0}.top{display:flex;align-items:center;justify-content:space-between;min-height:68px;background:#fff;border-bottom:1px solid #e8edf4;padding:12px 38px;gap:15px}.top-path{color:#8491a3;font-size:13px}.top-path strong{color:#25344e}.top-right{display:flex;align-items:center;gap:12px}.online-dot{width:8px;height:8px;border-radius:50%;background:#54bd72}.pill{border-radius:100px;padding:7px 11px;font-size:12px;font-weight:600;background:#edf4ff;color:#3460a4}.main-content{padding:35px 38px 70px;max-width:1710px;margin:0 auto}.page-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.page-intro p{color:#78839a;margin-bottom:0}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.card{background:#fff;border:1px solid #e5ebf3;border-radius:17px;box-shadow:0 5px 16px rgba(23,42,74,.025);padding:22px}.card + .card{margin-top:18px}.card h2{margin:0 0 15px}.btn{background:#214ca7;color:#fff;border:1px solid #214ca7;border-radius:10px;padding:10px 16px;font-weight:650;min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;white-space:nowrap}.btn:hover{background:#173d90}.btn-soft{background:#f1f5fb;border-color:#dde6f1;color:#324764}.btn-soft:hover{background:#e6edf8}.btn-white{background:white;border-color:#dce3ed;color:#354863}.btn-white:hover{background:#f7f9fe}.btn-danger{background:#fff0ef;border-color:#f3cfcb;color:#ad3939}.btn-danger:hover{background:#ffe4e2}.btn-success{background:#e9f7ea;border-color:#c7e8cc;color:#277442}.btn-success:hover{background:#dff2e2}.btn-sm{padding:6px 10px;min-height:29px;border-radius:8px;font-size:12px}.btn-link{background:none;border:none;padding:5px;color:#2457af;font-weight:650}.btn-link.danger{color:#b84c52}.input,select,textarea{border:1px solid #dbe3ed;border-radius:10px;background:#fff;padding:10px 11px;min-height:40px;width:100%;color:#27364e;transition:border .15s,box-shadow .15s}textarea{resize:vertical;min-height:70px}.input:focus,select:focus,textarea:focus{border-color:#719ae6;box-shadow:0 0 0 3px #dfeafb;outline:0}label.field{display:flex;flex-direction:column;gap:7px;color:#58677e;font-weight:600;font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid.col3{grid-template-columns:repeat(3,minmax(0,1fr))}.field.span2{grid-column:span 2}.field.span3{grid-column:span 3}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:19px;flex-wrap:wrap}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar select{width:auto;max-width:240px;min-width:160px}.toolbar .input{width:auto}.week-label{font-size:14px;font-weight:750;color:#253754;min-width:205px;text-align:center}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.stat{border:1px solid #e5ecf3;background:#fff;padding:20px;border-radius:15px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#78859a;font-size:12px;font-weight:700}.stat-symbol{width:34px;height:34px;background:#eaf2fe;color:#3156a3;border-radius:10px;display:grid;place-items:center;font-size:18px}.stat-value{font-size:31px;font-weight:780;letter-spacing:-1.6px;margin-top:16px}.stat-hint{font-size:12px;color:#8a96a8;margin-top:3px}.twocol{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.8fr);gap:18px}.list-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #eef1f5}.list-row:last-child{border-bottom:0;padding-bottom:0}.list-row:first-child{padding-top:0}.list-row-title{font-weight:700}.list-row-sub{font-size:12px;color:#7d8ba1;margin-top:4px}.chip{display:inline-flex;align-items:center;gap:5px;background:#eaf4ec;border:1px solid #d5ead9;border-radius:100px;padding:5px 9px;color:#327b49;font-size:11px;font-weight:700;white-space:nowrap}.chip.purple{background:#f2edff;border-color:#e5dbff;color:#7653b5}.chip.amber{background:#fff5df;border-color:#f5e4b7;color:#99751b}.chip.red{background:#fff0ee;border-color:#f5ddd8;color:#ae514e}.chip.gray{background:#f0f2f5;border-color:#e3e7ed;color:#7a8391}
/* Schedule */
.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.day{background:#fff;border:1px solid #e3e9f2;border-radius:14px;min-height:275px;overflow:hidden}.day-head{border-bottom:1px solid #edf0f5;padding:14px 12px 12px;display:flex;align-items:center;gap:7px;justify-content:space-between}.day-name{font-size:12px;color:#7d8aa0;font-weight:750;text-transform:uppercase;letter-spacing:.5px}.day-number{font-size:20px;letter-spacing:-.7px;font-weight:800;margin-top:5px}.day.today{border-color:#8bc99c;box-shadow:0 0 0 1px #8bc99c}.day.today .day-number{color:#23653b}.count{background:#f1f5fa;border-radius:8px;font-size:11px;padding:3px 7px;color:#748296;font-weight:750}.day-body{padding:9px;display:flex;flex-direction:column;gap:8px}.shift{border-radius:10px;border-left:3px solid #4770cc;background:#f1f5ff;padding:10px 9px;min-width:0}.shift.loc2{border-color:#38a589;background:#eff9f5}.shift.loc3{border-color:#ba8a49;background:#fff9ed}.shift.loc4{border-color:#9868d0;background:#f7f1ff}.shift.loc5{border-color:#d9748a;background:#fff2f5}.shift.cancelled{opacity:.55;text-decoration:line-through}.shift-time{font-weight:800;color:#304566;font-size:12px}.shift-person{font-size:12px;font-weight:700;margin-top:6px;overflow-wrap:anywhere}.shift-place{font-size:11px;color:#697a96;margin-top:5px;overflow-wrap:anywhere}.shift-actions{display:flex;flex-wrap:wrap;gap:3px;margin-top:8px}.shift-actions button{font-size:11px}.empty-day{padding:24px 4px;color:#a6b0bf;text-align:center;font-size:12px}.legend{display:flex;gap:17px;flex-wrap:wrap;margin-top:16px;color:#748199;font-size:12px}.legend i{width:9px;height:9px;border-radius:3px;display:inline-block;background:#4d73cc;margin-right:5px}.table-wrap{width:100%;overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:13px}.data-table th{text-align:left;white-space:nowrap;color:#7d899b;font-weight:750;font-size:11px;text-transform:uppercase;letter-spacing:.55px;background:#f8fafc;border-bottom:1px solid #edf0f5;padding:12px 13px}.data-table td{padding:13px;border-bottom:1px solid #edf0f5;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#fbfcfe}.data-table .num{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}.empty{padding:48px 20px;text-align:center;color:#8490a4}.empty strong{display:block;margin-bottom:8px;color:#41516b;font-size:15px}.right{text-align:right!important}.stack{display:flex;flex-direction:column;gap:5px}.flex{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.grow{flex:1}.notice{border-radius:11px;background:#edf5ff;border:1px solid #d8e7fb;color:#4b678e;padding:13px 15px;line-height:1.5;font-size:12px}.notice.warning{background:#fff8e8;border-color:#f6e7c4;color:#86632a}.notice + .card{margin-top:16px}.more-space{margin-top:22px}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.kpi-big{font-weight:800;font-size:19px;letter-spacing:-.3px}.caption{font-size:11px;color:#7c8ba0;margin-top:4px}
/* Modal, toast */
.modal-overlay{position:fixed;inset:0;background:rgba(15,27,46,.58);z-index:15;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fff;border-radius:20px;width:min(100%,580px);max-height:calc(100vh - 40px);overflow:auto;box-shadow:0 20px 90px #0d192b40;padding:26px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.modal-header h2{margin:0;font-size:21px}.modal-close{border:0;background:#f2f5f9;color:#53617a;border-radius:9px;width:32px;height:32px;font-size:19px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}#toast-root{position:fixed;right:22px;bottom:24px;z-index:22}.toast{background:#193655;color:#fff;border-radius:13px;padding:14px 18px;max-width:420px;box-shadow:0 14px 42px #131c3030;font-weight:650}.toast.error{background:#a93642}
@media(max-width:1250px){.week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.main-content{padding:28px}.top{padding:12px 28px}}@media(max-width:940px){.shell{grid-template-columns:78px minmax(0,1fr)}.side{padding:20px 10px;align-items:center}.side .brand .brandname,.side-tag,.nav button .nav-label,.userbox .who,.side-logout span{display:none}.side .brand{padding:0}.nav{width:100%;margin-top:38px}.nav button{justify-content:center;padding:13px 4px}.nav button .nav-icon{font-size:20px}.side-bottom{padding:15px 5px}.twocol{grid-template-columns:1fr}.week-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){h1{font-size:25px}.auth{grid-template-columns:1fr}.auth-hero{display:none}.auth-panel{padding:25px;min-height:100vh}.shell{display:block;padding-bottom:66px}.side{height:60px;min-height:0;width:100%;position:fixed;bottom:0;top:auto;z-index:11;padding:5px;flex-direction:row;justify-content:center;background:#101c31}.side .brand,.side-tag,.side-bottom{display:none}.nav{flex-direction:row;gap:2px;width:100%;margin:0;align-items:center;justify-content:space-around}.nav button{flex-direction:column;gap:2px;font-size:9px;padding:3px 1px;min-width:0;width:auto}.nav button .nav-label{display:block;font-size:9px;white-space:nowrap}.nav button .nav-icon{font-size:18px}.nav button.active:before{display:none}.nav button.active{background:#293d58}.top{min-height:53px;padding:10px 16px}.main-content{padding:22px 14px 55px}.page-intro{display:block}.page-intro .actions{margin-top:14px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:26px}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.day{min-height:220px}.day-head{padding:10px}.day-body{padding:6px}.shift{padding:8px 6px}.card{padding:17px}.toolbar{align-items:flex-start}.toolbar .btn{padding:8px 11px}.toolbar-right{width:100%}.toolbar-right select{min-width:100px;max-width:calc(50% - 5px);flex:1}.week-label{min-width:170px}.form-grid,.form-grid.col3,.filter-grid{grid-template-columns:1fr}.field.span2,.field.span3{grid-column:span 1}.modal{padding:20px}.top-right .pill{display:none}}@media(max-width:370px){.week-grid{grid-template-columns:1fr}.day{min-height:130px}.day-body{min-height:70px}}

/* Gymspace 0.4: trainers, rooms and hourly calendar */
.trainers-list{display:flex;gap:4px;flex-wrap:wrap;margin-top:9px}
.trainer-pill{display:inline-block;border:1px solid #cee1f8;border-radius:7px;padding:3px 6px;margin:2px 3px 2px 0;background:#fff;color:#2d557b;font-size:11px;line-height:1.3;font-weight:700}
.trainer-pick{border:1px solid #d7e1ed;border-radius:9px;max-height:245px;overflow:auto;padding:10px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}
.trainer-pick label{display:flex;gap:7px;align-items:center;font-size:12px}
.hourly-scroll{overflow:auto;border:1px solid #dce6ee;border-radius:13px;background:#fff;max-height:73vh}
.hourly-grid{display:grid;grid-template-columns:70px repeat(7,minmax(145px,1fr));min-width:1135px;align-items:stretch}
.hour-head{position:sticky;top:0;background:#eef4fa;border-bottom:1px solid #d6e1eb;padding:11px 8px;z-index:2;text-align:center;color:#375071;font-weight:800;font-size:12px}
.hour-label{border-right:1px solid #e2e8f0;border-bottom:1px solid #edf0f6;padding:6px 8px;color:#7c8b9d;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}
.hour-cell{min-height:38px;border-bottom:1px solid #edf0f6;border-right:1px solid #edf0f6;padding:3px;display:flex;flex-direction:column;gap:3px}
.hour-event{background:#eef4ff;border-left:3px solid #5f85cb;border-radius:6px;padding:7px 6px;font-size:11px;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.hour-event.work{background:#eff8ef;border-color:#51a06c}
.hour-event strong{color:#1e4575;font-size:11px}
.hour-event small{color:#6c7b8e}
.hour-event .trainer-pill{background:#fff}
@media(max-width:650px){.trainer-pick{grid-template-columns:1fr}.hourly-scroll{max-height:68vh}}

/* Monthly calendar */
.month-scroll{overflow:auto;border:1px solid #e3e9f2;border-radius:13px}
.month-grid{min-width:1040px;display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));background:#e5eaf1;gap:1px}
.month-heading{background:#eef4f9;color:#435c75;text-align:center;padding:11px;font-weight:800}
.month-day{background:#fff;min-height:165px;padding:9px 7px}
.month-day.today{background:#f2fbf3}
.month-blank{background:#f8fafc}
.month-day-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:12px}
.month-day-head .btn-link{font-size:10px}
.month-day-events{display:flex;flex-direction:column;gap:5px;max-height:248px;overflow:auto}
.month-event{background:#f2f6ff;border-left:3px solid #698fcb;padding:6px;font-size:10px;border-radius:5px;line-height:1.3;overflow-wrap:anywhere}
.month-event.work{background:#ecf8ee;border-color:#49a86c}
.month-event small{display:block;color:#687890;font-size:10px;margin-top:3px}
.month-event div{margin-top:4px;font-weight:700;color:#37516f}

/* 0.5: quick manager staffing */
.hour-event[role=button],.month-event[role=button]{cursor:pointer;transition:box-shadow .15s,transform .15s}
.hour-event[role=button]:hover,.month-event[role=button]:hover{box-shadow:0 0 0 2px #5b87cb;transform:translateY(-1px)}
.hour-event[role=button]:focus-visible,.month-event[role=button]:focus-visible{outline:3px solid #548ad5;outline-offset:2px}
.trainer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
#trainer-picker label[hidden]{display:none}
#trainer-picker label{border-radius:6px;padding:5px 4px}
#trainer-picker label:hover{background:#eff4fb}

/* 0.6: wybór godzin i obsady */
.hour-add{opacity:.3;align-self:flex-end;border:1px dashed #9eaec3;border-radius:5px;padding:0 7px;min-height:21px;line-height:19px;background:#f5f9ff;color:#28517a;cursor:pointer;font-weight:700}
.hour-cell:hover .hour-add,.hour-add:focus-visible{opacity:1;background:#e7f1ff;outline-color:#386fb9}
.month-day-head>[data-action="new-course-at"]{font-size:17px;font-weight:800;margin-left:auto;padding:3px 8px}
#course-details-form .trainer-pick{max-height:195px}
@media(max-width:650px){.hour-add{opacity:.85}.trainer-pick{max-height:220px}}

/* 0.7: shared rooms with parallel lessons */
.parallel-indicator{display:block;align-self:flex-start;font-size:10px;line-height:1.25;font-weight:750;color:#695225;border:1px solid #f1d99c;border-radius:6px;background:#fff8e8;padding:3px 5px;white-space:normal}
.hour-cell:has(.parallel-indicator){background:#fffdf8}

/* Reports and management summary */
.report-breakdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.report-breakdown{min-width:0}
.report-quality{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.report-quality span{background:#f7f9fc;border:1px solid #e4eaf2;border-radius:10px;padding:10px 12px;color:#66758b;font-size:12px}
.report-quality strong{color:#273b5c;font-size:16px;margin-right:4px}
.icon-only{width:40px;min-width:40px;padding:7px;font-size:20px;line-height:1}
@media(max-width:940px){.report-breakdowns{grid-template-columns:1fr}}

/* Gymspace 0.9: synchronized timetable and instructor hours */
.filters-unified{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;max-width:100%}
.filter-field{display:flex;flex-direction:column;gap:5px;color:#687995;font-size:11px;font-weight:700;min-width:158px}
.filter-field select{min-width:158px;width:100%;max-width:250px}
.toggle-course-shifts{display:inline-flex;align-items:center;gap:8px;margin:2px 0 16px;color:#586985;font-size:12px;cursor:pointer}
.toggle-course-shifts input{accent-color:#327aaf;width:15px;height:15px}
.segmented-calendar{display:flex;gap:4px;align-items:center}
.instructor-stats .stat-value{font-size:23px;overflow-wrap:anywhere}
.instructor-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:13px}
.instructor-day{padding:16px;min-width:0}
.instructor-day-header{display:flex;justify-content:space-between;gap:8px;align-items:center;padding-bottom:11px;border-bottom:1px solid #e5ecf4;margin-bottom:8px;font-size:12px}
.instructor-day-header strong{text-transform:capitalize}
.instructor-lesson{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:start;padding:12px 4px;border-bottom:1px solid #e8eef5;font-size:12px;cursor:pointer;border-radius:5px}
.instructor-lesson:last-child{border-bottom:0}
.instructor-lesson:hover,.instructor-lesson:focus-visible{background:#f2f7ff;outline:2px solid #e0ebfb}
.instructor-lesson strong{color:#234262}
.lesson-time{font-variant-numeric:tabular-nums;font-weight:800;color:#315e8b;white-space:nowrap}
.lesson-edit{font-size:11px;color:#6682a6;white-space:nowrap}
/* On phones the expanding navigation scrolls rather than shrinking into illegible buttons. */
@media(max-width:940px){.filters-unified{justify-content:flex-start}.filter-field{min-width:145px}.filter-field select{min-width:145px}}
@media(max-width:650px){
 .side .nav{overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scrollbar-width:thin;gap:2px}
 .side .nav button{min-width:86px;flex:0 0 86px}
 .toolbar .filters-unified{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .filter-field{min-width:0}.filter-field select{min-width:0;max-width:none}
 .toolbar .filters-unified .btn{grid-column:1/-1}
 .instructor-days{grid-template-columns:1fr}
}
@media(max-width:650px){.toolbar .filters-unified .filter-field select{min-width:0;width:100%;max-width:100%}}

/* Planning gaps and atomic multi-day course entry. */
.planning-panel{margin:18px 0}.planning-panel h2{margin:0}.planning-panel .caption{margin:7px 0;line-height:1.5}
.issue-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.issue-tile{font:inherit;text-align:left;border:1px solid #dce5ef;background:#f7faff;border-radius:12px;padding:14px;cursor:pointer;color:#294360;min-width:0}
.issue-tile span,.issue-tile strong,.issue-tile small{display:block}.issue-tile strong{font-size:27px;margin:7px 0}.issue-tile small{font-size:11px;color:#637790}
.issue-tile.selected,.issue-tile:hover{border-color:#367e66;background:#eef8f1}.issue-tile:focus-visible{outline:3px solid #3c836c;outline-offset:2px}
.issue-details{max-height:430px;overflow:auto;margin-top:18px}.issue-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-top:1px solid #e2eaf2;font-size:13px}.issue-row>.btn{flex-shrink:0}
.weekday-picker{border:1px solid #dce5ef;border-radius:9px;padding:10px;display:flex;flex-wrap:wrap;gap:10px}.weekday-picker legend{padding:0 5px}.weekday-picker label{display:flex;gap:4px;align-items:center}
.next-course{display:flex;gap:10px;align-items:center;padding:15px 0;font-size:13px}
@media(max-width:900px){.issue-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.issue-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.issue-row{align-items:flex-start;flex-direction:column}.issue-tile{padding:12px}}
.auth-brand{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:30px}
.auth-brand>span{font-size:12px;text-transform:uppercase;letter-spacing:.15em;color:#a7c7bc;font-weight:700}
.auth-logo{display:block;width:260px;max-width:100%;height:auto;object-fit:contain;background:#fff;padding:12px 16px;border-radius:12px;box-sizing:border-box}
.login-logo{margin-bottom:34px}.login-logo .auth-logo{padding:0;border-radius:0;width:235px}

/* One shared scheduling workspace. */
.grafik-workspace{background:#fff;border:1px solid #e0e6ee;border-radius:16px;padding:16px;margin-bottom:22px}.grafik-tabs,.grafik-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.grafik-tools{margin-top:14px;align-items:flex-end}.grafik-tools .field:first-child{flex:1;min-width:220px}.grafik-tools .field{margin:0}.location-assignment{border:1px solid #dce4ed;border-radius:12px;padding:14px}.location-assignment label{display:inline-flex;gap:8px;margin:7px 16px 4px 0}.location-assignment input{width:auto}#team-search{min-width:220px}

.side-tag{white-space:normal;max-width:100%;overflow-wrap:anywhere}.planning-inline{margin:0 0 16px;border:1px solid #dde5f0;border-radius:12px;background:#fff}.planning-inline summary{cursor:pointer;padding:13px 16px;font-size:13px;font-weight:600;color:#354b78}.planning-inline .planning-panel{margin:0;border:0;border-top:1px solid #e5eaf2;border-radius:0 0 12px 12px}.grafik-tabs .btn{white-space:normal}

.mobile-logout{display:none}@media(max-width:650px){.mobile-logout{display:inline-flex}.top-right{gap:8px}.top-right .small.muted{display:none}}

/* Days off remain editable for explicitly scheduled single-day classes. */
.day-off,.hour-cell.day-off,.hour-head.day-off,.month-day.day-off{background:#e5e7eb;color:#374151}
.day-off .day-head{background:#d1d5db}
.holiday-label{display:block;font-size:11px;line-height:1.3;font-weight:500;color:#4b5563;padding:3px 0}

/* Existing Gymspace artwork: white backing preserves the dark lettering. */
.side .brand{justify-content:center;padding:0 10px}
.sidebar-logo{display:block;width:100%;height:auto;object-fit:contain;background:#fff;padding:10px;border-radius:10px;box-sizing:border-box}
.top-path{display:flex;align-items:center;gap:12px;min-width:0}
.mobile-brand-logo{display:none}
@media(min-width:651px) and (max-width:940px){.side .brand{width:58px;padding:0}.sidebar-logo{padding:4px;border-radius:6px}}
@media(max-width:650px){.mobile-brand-logo{display:block;width:88px;height:auto;object-fit:contain;flex:none}.top-path{gap:10px;font-size:12px}.top-path strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

.staffing-day{margin-bottom:16px}.staffing-day h2{margin:0}.staffing-list{display:grid;gap:10px}.staffing-row{display:flex;gap:16px;align-items:center;padding:14px 0;border-top:1px solid #e5e9f0}.staff-check{display:flex;gap:10px;align-items:center;min-width:130px}.staffing-description{flex:1;min-width:150px}.staffing-description small{display:block;color:#65748b;margin:3px 0 6px}.staffing-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.staffing-bulk{position:sticky;top:0;z-index:3;box-shadow:0 4px 16px #18233a12;margin-bottom:20px}.staff-empty-option{display:flex;align-items:center;gap:8px}.planning-preview{max-height:52vh;overflow:auto;margin-top:15px}.preview-row{border-bottom:1px solid #e2e7f0;padding:12px 0}.preview-row small{display:block;color:#526079;margin-top:5px}.preview-conflict{background:#fff1f0;color:#9b2226;padding:12px;border-radius:8px}.reception-table-wrap{overflow:auto;border:1px solid #e0e5ed;border-radius:14px;background:white}.reception-table{border-collapse:collapse;min-width:1150px;width:100%;table-layout:fixed}.reception-table th,.reception-table td{border:1px solid #e5e9f0;vertical-align:top}.reception-table thead th{background:#eff3f9;padding:14px 8px;font-size:12px}.reception-table tbody th{padding:18px 12px;text-align:left;width:145px;background:#f8fafc}.reception-table th small{display:block;color:#68778f;margin-top:8px}.reception-cell{padding:10px;display:flex;flex-direction:column;gap:9px;min-height:145px}.reception-duty{background:#eaf5f1;border-left:3px solid #398371;border-radius:7px;padding:10px;display:flex;flex-direction:column;gap:5px;font-size:12px}.reception-duty small{color:#556e65}.reception-mobile{display:none}.reception-mobile-location{margin-top:18px}.reception-mobile .reception-cell{min-height:0;margin-top:7px;border-radius:8px}.staffing-bulk .flex{flex-wrap:wrap}
@media(max-width:940px){.staffing-row{flex-wrap:wrap}.staffing-actions{width:100%;justify-content:flex-start}.staffing-bulk{position:static}}
@media(max-width:650px){.reception-table-wrap{display:none}.reception-mobile{display:grid;gap:14px}.staffing-day .toolbar{gap:14px}.staffing-day h2{font-size:17px}.staffing-day .toolbar .flex{flex-wrap:wrap}.staff-check{min-width:0}.staffing-description{flex-basis:60%}}

.reception-table{min-width:960px}.reception-table thead th:first-child{width:130px}.reception-duty strong{white-space:nowrap}.job-label{display:block;font-size:11px;font-weight:400;color:#68778f}

.planning-filter-fields{display:flex;flex-wrap:wrap;gap:12px}.planning-filter-fields .field{min-width:0;flex:1 1 180px}.planning-filter-fields select{width:100%;max-width:100%;min-width:0}
@media(max-width:650px){.planning-toolbar,.planning-filter-fields{width:100%;min-width:0}.planning-filter-fields .field{flex-basis:100%}.staffing-bulk .btn{max-width:100%;white-space:normal}}

.staff-availability-filter{display:flex;gap:10px;align-items:flex-start;margin:16px 0;padding:12px;background:#eef4ff;border-radius:9px;font-size:13px}.staff-availability-filter input{margin-top:3px;flex:none}.candidate-status{display:block;font-size:11px;line-height:1.4;margin-top:4px;color:#6b7280}.candidate-available{color:#17674e}.candidate-conflict{color:#a72a32}.trainer-pick label[hidden]{display:none}.trainer-pick label:has(input:disabled){opacity:.65}
@media(max-width:650px){.staffing-day .toolbar .flex{max-width:100%;min-width:0}.staffing-day .toolbar .btn{max-width:100%;white-space:normal}.modal select{max-width:100%;min-width:0}}

.candidate-work{display:block;color:#55647c;font-size:11px;line-height:1.4;margin:4px 0;overflow-wrap:anywhere}.candidate-work-details{font-size:12px;line-height:1.5;color:#55647c;padding:10px 0;overflow-wrap:anywhere}

.page-intro h1{overflow-wrap:anywhere}

.readonly-schedule-notice{margin-top:14px;font-size:13px}.readonly-schedule-card{opacity:.92}.readonly-schedule-card small{display:block;color:#66758b;margin:6px 0}.readonly-schedule-card .chip{margin-top:8px}

.finance-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:20px}.finance-filters .field{min-width:180px;flex:1}.finance-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.finance-summary .card{margin-bottom:0}.finance-amount{font-size:clamp(20px,2vw,30px);overflow-wrap:anywhere}.finance-explanation{margin-top:18px;line-height:1.7}.finance-row-actions{min-width:160px}.finance-row-actions button{margin:3px}.finance-history{padding:14px 0;border-bottom:1px solid #e2e8f0}.finance-archive-toggle{display:flex;align-items:center;gap:8px}#finance-split-options{margin-top:20px;padding:14px;background:#f7f9fc;border-radius:10px}#finance-split-options summary{cursor:pointer;font-weight:600}#finance-split-options .form-grid{margin-top:15px}@media(max-width:1000px){.finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.finance-summary{grid-template-columns:1fr}.finance-filters{display:block}.finance-filters>*{margin-bottom:12px}.finance-amount{font-size:26px}}
.finance-summary > .card{margin-top:0}
.private-panel-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}.activity-notice{margin-bottom:22px;font-size:12px;line-height:1.6}
.activity-table th,.activity-table td{white-space:normal;padding:12px 10px}.activity-table th{font-size:10px;letter-spacing:.25px}.activity-table td:first-child{min-width:135px}.activity-table td{font-size:12px}
