:root{--bg:#eef2f6;--card:#fff;--text:#101828;--muted:#667085;--line:#d9dee8;--brand:#b42318;--brand2:#7a1010;--ok:#079455;--info:#1570ef;--warn:#dc6803;--danger:#d92d20;--active:#6938ef;--gray:#667085;--shadow:0 10px 24px rgba(16,24,40,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}p,small{color:var(--muted);line-height:1.35}.muted{color:var(--muted)}hr{border:0;border-top:1px solid var(--line);margin:18px 0}.topbar{position:sticky;top:0;z-index:20;min-height:58px;background:#101828;color:#fff;display:flex;align-items:center;gap:18px;padding:0 18px;box-shadow:0 4px 14px rgba(0,0,0,.18)}.brand{font-weight:900;font-size:18px;display:flex;align-items:center;gap:8px}.brand-mark{background:var(--brand);border-radius:10px;padding:4px}.topnav{display:flex;gap:6px;flex:1}.topnav a{padding:9px 12px;border-radius:10px;color:#d0d5dd;font-weight:700}.topnav a:hover{background:#1d2939;color:#fff}.userbox{display:flex;align-items:center;gap:12px;color:#d0d5dd}.userbox a{color:#fff;font-weight:800}.page{max-width:1920px;margin:0 auto;padding:18px}.flash{padding:12px 14px;border-radius:12px;margin:0 0 14px;border:1px solid var(--line);background:#fff}.flash.ok{border-color:#a6f4c5;background:#ecfdf3}.flash.error{border-color:#fecdca;background:#fef3f2}.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}.panel.compact{padding:13px}.panel.compact h2{font-size:17px}.login-card{max-width:430px;margin:7vh auto;background:#fff;padding:28px;border-radius:22px;box-shadow:var(--shadow);border:1px solid var(--line)}.stack{display:grid;gap:13px}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.span2{grid-column:span 2}label{display:grid;gap:6px;font-weight:800;color:#344054}input,select,textarea{width:100%;border:1px solid #cfd6e4;border-radius:11px;padding:10px 11px;font:inherit;background:#fff;color:var(--text)}textarea{resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:8px}.btn{border:1px solid #cfd6e4;background:#fff;color:#1d2939;border-radius:11px;padding:10px 13px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:hover{box-shadow:0 6px 16px rgba(16,24,40,.1)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.full{width:100%}.btn.small{padding:7px 10px;font-size:13px}.icon-btn{border:0;background:#eef2f7;border-radius:10px;min-width:34px;height:34px;padding:0 8px;cursor:pointer;font-weight:900}.icon-btn:hover{background:#dce3ee}.table{width:100%;border-collapse:collapse}.table th,.table td{border-bottom:1px solid var(--line);text-align:left;padding:10px;vertical-align:top}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:#f8fafc}.split{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:18px}.narrow{max-width:460px}.incident-head{background:linear-gradient(135deg,#101828,#7a1010);color:#fff;border-radius:22px;padding:18px 20px;display:flex;justify-content:space-between;gap:20px;box-shadow:var(--shadow);margin-bottom:14px}.incident-head p{color:#eaecf0}.head-metrics{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.head-metrics div{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.22);border-radius:16px;padding:11px 14px;min-width:110px;text-align:center}.head-metrics strong{display:block;font-size:20px}.head-metrics span{font-size:12px;color:#eaecf0}.quick-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.priority-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 0 14px}.priority-pill{min-width:240px;background:#fff;border-left:6px solid var(--info);border-radius:14px;padding:10px 12px;box-shadow:var(--shadow);border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.priority-pill strong{display:block}.priority-pill.krytyczny{border-left-color:var(--danger)}.priority-pill.wysoki{border-left-color:var(--warn)}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:900;white-space:nowrap;background:#eef2f7;color:#344054}.badge.ok{background:#dcfae6;color:#067647}.badge.info{background:#d1e9ff;color:#175cd3}.badge.warn{background:#fef0c7;color:#b54708}.badge.danger{background:#fee4e2;color:#b42318}.badge.active{background:#ebe9fe;color:#5925dc}.badge.muted{background:#f2f4f7;color:#667085}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title h2,.section-title h1{font-size:20px}.command-layout{display:grid;grid-template-columns:320px minmax(0,1fr) 420px;gap:14px;align-items:start}.transit-panel,.right-staff{position:sticky;top:76px}.operations-panel{display:grid;gap:14px}.tactical-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:var(--shadow)}.tactical-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.tactical-grid div{background:#f8fafc;border:1px solid #edf0f5;border-radius:14px;padding:10px}.tactical-grid small{display:block;text-transform:uppercase;letter-spacing:.04em;font-size:11px}.tactical-grid strong{display:block;margin-top:3px}.ob-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.column{background:#fff;border:1px solid var(--line);border-radius:18px;min-height:200px;overflow:hidden;box-shadow:var(--shadow)}.column-head{padding:13px;border-bottom:1px solid var(--line);background:#f8fafc;display:flex;justify-content:space-between;gap:8px}.column-head h2{font-size:17px}.column-head p{font-size:13px}.col-actions{display:flex;gap:5px;align-items:start}.column.kind-odcinek .column-head{background:#fff7ed}.column.kind-logistyka .column-head{background:#eff8ff}.column.kind-w_drodze .column-head{background:#eff8ff}.column.kind-wycofane .column-head{background:#f2f4f7}.column.status-pilne,.column.status-problem{border-color:#fedf89}.column.status-pilne .column-head,.column.status-problem .column-head{background:#fffaeb}.ob-meta{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:9px 12px;border-bottom:1px solid #edf0f5;background:#fbfcfe;font-size:12px;color:#475467}.vehicle-list{padding:10px;display:grid;gap:10px}.empty{border:1px dashed #cfd6e4;border-radius:12px;text-align:center;color:var(--muted);padding:18px 8px;background:#fbfcfe}.vehicle-card{border:1px solid #d9dee8;border-radius:15px;padding:10px;background:#fff;cursor:pointer;transition:.12s}.vehicle-card:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(16,24,40,.1)}.vehicle-card.status-problem{border-color:#fecdca;background:#fffbfa}.vehicle-card.status-w_drodze{border-left:5px solid var(--info)}.vehicle-card.status-w_dzialaniach{border-left:5px solid var(--active)}.vehicle-card.status-odwod,.vehicle-card.status-na_miejscu{border-left:5px solid var(--ok)}.vehicle-card.status-wycofany,.vehicle-card.status-powrot{opacity:.75;border-left:5px solid var(--gray)}.vehicle-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.vehicle-top strong{font-size:17px}.vehicle-icon{font-size:18px}.vehicle-unit{font-weight:800;margin-top:5px}.vehicle-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.vehicle-meta span{background:#eef2f7;border-radius:999px;padding:3px 7px;font-size:12px;color:#475467}.vehicle-note{font-size:13px;margin-top:6px;color:#344054}.vehicle-task{font-size:13px;margin-top:7px;border-top:1px solid #eef2f7;padding-top:7px;color:#344054}.right-staff{display:grid;gap:12px}.staff-structure{display:grid;gap:9px}.team-mini{border:1px solid #edf0f5;border-radius:14px;padding:10px;background:#fff}.team-title{display:flex;justify-content:space-between;gap:8px;align-items:center}.team-mini p{font-size:13px}.team-mini ul{margin:8px 0 0;padding-left:18px;color:#475467;font-size:13px}.mini-list{display:grid;gap:9px}.mini-item{border:1px solid #edf0f5;border-radius:13px;padding:10px;background:#fff}.mini-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.mini-item p{font-size:13px;color:#344054;margin-top:3px}.staff-toolbar{margin:4px 0 14px}.staff-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:14px}.staff-team-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:15px;box-shadow:var(--shadow)}.team-card-head{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:12px}.team-actions{display:flex;gap:6px}.members-row{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0}.member-chip{background:#eef2f7;border-radius:999px;padding:5px 9px;font-size:13px;font-weight:700;color:#344054}.task-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.task-columns h3{font-size:15px;margin-bottom:8px}.task-card{display:grid;gap:5px;border:1px solid #edf0f5;border-radius:14px;padding:10px;margin-bottom:8px;background:#fbfcfe;cursor:pointer}.task-card:hover{box-shadow:0 6px 14px rgba(16,24,40,.08)}.task-card.done{opacity:.8;background:#f6fef9}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}.map-panel{min-height:680px}.fire-map{position:relative;height:620px;border-radius:18px;border:1px solid #cfd6e4;overflow:hidden;background:linear-gradient(90deg,rgba(16,24,40,.04) 1px,transparent 1px),linear-gradient(rgba(16,24,40,.04) 1px,transparent 1px),#f8fafc;background-size:40px 40px}.zone{position:absolute;border-radius:50%;transform:translate(-0,-0);pointer-events:none}.zone-now{background:rgba(217,45,32,.22);border:2px solid rgba(217,45,32,.85)}.zone-15{background:rgba(220,104,3,.14);border:2px dashed rgba(220,104,3,.75)}.zone-30{background:rgba(250,204,21,.12);border:2px dashed rgba(180,83,9,.55)}.fire-label{position:absolute;transform:translate(-50%,-50%);background:#101828;color:#fff;border-radius:999px;padding:7px 10px;font-weight:900;box-shadow:var(--shadow);white-space:nowrap}.ob-marker{position:absolute;transform:translate(-50%,-50%);min-width:92px;background:#fff;border:2px solid var(--info);border-radius:12px;padding:7px;text-align:center;box-shadow:var(--shadow)}.ob-marker.kind-odcinek{border-color:var(--brand)}.ob-marker.kind-logistyka{border-color:var(--info)}.ob-marker strong{display:block}.ob-marker small{display:block;font-size:11px}.map-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px}.map-legend span{display:flex;align-items:center;gap:6px;font-weight:800;color:#475467}.map-legend i{display:inline-block;width:16px;height:16px;border-radius:50%}.legend-now{background:rgba(217,45,32,.35);border:2px solid var(--danger)}.legend-15{background:rgba(220,104,3,.25);border:2px dashed var(--warn)}.legend-30{background:rgba(250,204,21,.25);border:2px dashed #b45309}.legend-ob{background:#fff;border:2px solid var(--brand)}.modal{position:fixed;inset:0;background:rgba(15,23,42,.58);display:none;align-items:flex-start;justify-content:center;z-index:100000;overflow:auto;padding:32px 14px}.modal.open{display:flex}.modal-card{background:#fff;border-radius:20px;box-shadow:0 25px 70px rgba(0,0,0,.24);padding:20px;position:relative;z-index:100001;width:min(620px,100%);max-height:calc(100vh - 64px);overflow:auto}.modal-card.wide{width:min(900px,100%)}.modal-close{position:absolute;right:14px;top:10px;border:0;background:#f2f4f7;border-radius:10px;width:34px;height:34px;font-size:24px;cursor:pointer}
.google-map-card{border:1px solid var(--line);border-radius:18px;background:#fff;margin-bottom:16px;overflow:hidden}.google-map-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:14px;border-bottom:1px solid var(--line);background:#fbfcfe}.map-buttons,.map-side-actions{display:flex;gap:8px;flex-wrap:wrap}.google-preview{display:block;width:100%;height:360px;border:0;background:#f2f4f7}.empty-preview{display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-weight:800;padding:24px}.map-section-title{margin-top:8px}.map-side-actions{display:grid}.map-side-actions .btn{width:100%}@media (max-width:760px){.google-map-head{flex-direction:column}.google-preview{height:300px}.map-buttons .btn{flex:1 1 150px}}
@media (max-width:1350px){.command-layout{grid-template-columns:1fr}.transit-panel,.right-staff{position:static}.right-staff{grid-template-columns:repeat(2,minmax(0,1fr))}.tactical-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-layout{grid-template-columns:1fr}.split{grid-template-columns:1fr}.narrow{max-width:none}.topbar{height:auto;flex-wrap:wrap;padding:10px 14px}.topnav{order:3;width:100%;overflow:auto}.incident-head{flex-direction:column}.grid-form{grid-template-columns:1fr}.span2{grid-column:span 1}}
@media (max-width:760px){.page{padding:10px}.right-staff{grid-template-columns:1fr}.ob-board{grid-template-columns:1fr}.task-columns{grid-template-columns:1fr}.staff-board{grid-template-columns:1fr}.quick-actions .btn{flex:1 1 140px}.head-metrics div{min-width:0;flex:1}.topbar{position:static}.fire-map{height:460px}.ob-meta{grid-template-columns:1fr}.tactical-grid{grid-template-columns:1fr}}
/* v2.5 — lewy panel Reduty */
.left-operational{display:grid;gap:14px;align-content:start}
.left-panel-title{background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px 14px;box-shadow:var(--shadow)}
.left-panel-title h2{font-size:20px}
.left-panel-title p{font-size:13px;margin-top:3px}
.reduta-column .column-head{background:#ecfdf3!important}
.left-operational .column{min-height:180px}
.left-operational .column + .column{margin-top:0}
@media (min-width:1351px){.command-layout{grid-template-columns:360px minmax(0,1fr) 420px}.left-operational{max-height:calc(100vh - 95px);overflow:auto;padding-right:2px}}
/* v2.5 — szybkie akcje, podsumowania, KDR info */
.btn.soft{background:#fff4ed;border-color:#fed7aa;color:#9a3412}.column-summary{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.column-summary span{background:rgba(255,255,255,.75);border:1px solid #edf0f5;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:900;color:#344054}.mini-item.editable,.priority-pill.editable{cursor:pointer}.mini-item.editable:hover,.priority-pill.editable:hover{box-shadow:0 9px 20px rgba(16,24,40,.12);transform:translateY(-1px)}.kdr-info-box{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.kdr-info-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}.kdr-info-head h3{font-size:16px}.kdr-info-actions{display:flex;gap:6px}.kdr-info-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kdr-info-columns h4,.kdr-modal-list h3{font-size:14px;margin:8px 0;color:#344054}.kdr-info-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:start;border:1px solid #edf0f5;border-radius:12px;padding:8px;background:#fbfcfe;margin-bottom:7px}.kdr-info-item span{font-size:12px;font-weight:900;color:#667085}.kdr-info-item p{color:#101828;font-size:13px}.kdr-info-item.done{opacity:.8;background:#f6fef9}.kdr-info-item.done{grid-template-columns:48px minmax(0,1fr)}.kdr-info-item form{margin:0}.icon-btn.ok{background:#dcfae6;color:#067647}.icon-btn.ok:hover{background:#abefc6}.task-card.overdue{border-color:#fecdca;background:#fffbfa}.task-card.overdue strong{color:#b42318}.kdr-modal-list{display:grid;gap:4px}.modal-card .muted.span2{margin-top:-6px}.col-actions .icon-btn{font-size:12px}
@media (max-width:760px){.kdr-info-columns{grid-template-columns:1fr}.kdr-info-item{grid-template-columns:42px minmax(0,1fr) auto}}
/* v2.6 — informacje odcinków, przydział SiS, szybkie KRG */
.compact-info{padding-top:8px;margin-top:9px}.compact-info .kdr-info-head{align-items:center;margin-bottom:6px}.compact-info .kdr-info-head h3{font-size:15px}.kdr-info-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:7px}.location-info-box{border-bottom:1px solid #edf0f5;background:#fffdf8;padding:8px 10px}.location-info-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}.location-info-head h3{font-size:14px}.location-info-head>div{display:flex;gap:5px}.location-info-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:7px;align-items:start;border:1px solid #f2e4ce;border-radius:11px;padding:7px;background:#fff;margin-bottom:6px}.location-info-item span{font-size:12px;font-weight:900;color:#667085}.location-info-item p{font-size:13px;color:#101828}.small-muted{font-size:12px}.assign-list{display:grid;gap:8px;max-height:460px;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:10px;background:#fbfcfe}.assign-row{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;border:1px solid #edf0f5;border-radius:12px;padding:9px;background:#fff;cursor:pointer}.assign-row:hover{box-shadow:0 6px 14px rgba(16,24,40,.08)}.assign-row input{width:auto}.krg-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.krg-buttons button{border:1px solid #d0d5dd;background:#f8fafc;border-radius:999px;padding:4px 7px;font-size:11px;font-weight:900;cursor:pointer}.krg-buttons button:hover{background:#eef2f7}.col-actions .icon-btn[title*="SiS"]{min-width:56px;background:#fff4ed;color:#9a3412;border:1px solid #fed7aa}
@media (min-width:1351px){.tactical-card{padding:12px}.kdr-info-item{padding:6px}.kdr-info-item p{font-size:12px}.location-info-item p{font-size:12px}}
/* v2.7 — kolejność sztabu, widok kompaktowy, zadania w strukturze sztabu */
.inline-form{display:inline;margin:0}.team-mini-actions,.team-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.team-order-form .icon-btn{width:28px;height:28px;font-size:12px}.tiny-count{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;margin-left:3px;padding:0 4px;border-radius:999px;background:#d92d20;color:#fff;font-size:10px;font-weight:900}.vehicle-card-compact{padding:8px 9px}.vehicle-card-compact .vehicle-compact-line{display:grid;grid-template-columns:22px auto minmax(0,1fr) auto;gap:7px;align-items:center;font-size:13px}.vehicle-card-compact strong{font-size:14px}.vehicle-card-compact span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vehicle-card-compact b{font-size:12px;color:#344054;background:#eef2f7;border-radius:999px;padding:3px 7px}.quick-task-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.55fr) 90px 115px auto;gap:8px;align-items:center;background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px;margin:10px 0 14px}.quick-task-form input,.quick-task-form select{height:38px;border:1px solid #d0d5dd;border-radius:10px;padding:0 10px;background:#fff}.modal-task-columns{margin-top:6px}.team-mini .team-title{align-items:flex-start}.team-mini .team-title strong{padding-top:5px}.right-staff .panel.compact .section-title p{display:none}@media (max-width:760px){.quick-task-form{grid-template-columns:1fr}.vehicle-card-compact .vehicle-compact-line{grid-template-columns:22px auto 1fr}.vehicle-card-compact b{grid-column:2/4;width:max-content}}
/* v2.9 — mapa satelitarna i poglądowa symulacja elipsy pożaru */
.satellite-layout{grid-template-columns:minmax(0,1fr) 390px}.satellite-panel{min-height:760px}.satellite-map-wrap{position:relative;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#101828}.satellite-fire-map{height:720px;width:100%;background:#101828}.map-click-hint{position:absolute;left:14px;top:14px;z-index:500;background:rgba(16,24,40,.88);color:#fff;border-radius:14px;padding:9px 12px;max-width:620px;font-size:13px;box-shadow:var(--shadow)}.map-click-hint b{color:#fbbf24}.satellite-side{position:sticky;top:78px}.selected-point-box{margin-top:12px;border:1px solid var(--line);border-radius:14px;padding:10px;background:#f8fafc}.selected-point-box small{display:block;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.selected-point-box strong{display:block;margin-top:4px;font-size:14px}.compact-form{gap:9px}.compact-form label{font-size:13px}.compact-form input,.compact-form select{height:38px}.fire-sim-item p{margin-top:4px}.legend-front{background:#dc2626;border:2px solid #fff;box-shadow:0 0 0 2px #dc2626}.fire-time-label{background:#101828!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:4px 8px!important;font-weight:900!important;box-shadow:var(--shadow)!important}.fire-time-label:before{display:none}.leaflet-ob-wrap{background:transparent;border:0}.leaflet-ob-marker{background:#fff;border:2px solid var(--brand);border-radius:12px;box-shadow:var(--shadow);padding:6px 8px;text-align:center;line-height:1.1}.leaflet-ob-marker strong{display:block;color:#101828;font-size:13px}.leaflet-ob-marker span{display:block;color:#475467;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.direction-buttons button{font-size:10px;padding:4px 6px}.satellite-legend{margin-bottom:2px}.leaflet-control-attribution{font-size:10px!important}@media (max-width:1350px){.satellite-layout{grid-template-columns:1fr}.satellite-side{position:static}.satellite-fire-map{height:620px}}@media (max-width:760px){.satellite-fire-map{height:480px}.map-click-hint{position:static;border-radius:0;max-width:none}.satellite-map-wrap{display:flex;flex-direction:column-reverse}.map-buttons{width:100%}.map-buttons .btn{flex:1 1 140px}.satellite-panel{min-height:0}}

/* v2.9 — piktogramy operacyjne na mapie */
.legend-picto{background:#fff;border:2px solid #1570ef;border-radius:4px}.side-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.marker-list-item .mini-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}.leaflet-map-marker-wrap{background:transparent;border:0}.map-picto-marker{min-width:74px;max-width:130px;display:grid;gap:2px;justify-items:center;text-align:center;background:#fff;border:2px solid #1570ef;border-radius:14px;padding:6px 8px;box-shadow:0 8px 20px rgba(16,24,40,.22);line-height:1.05}.map-picto-marker span{font-size:21px;line-height:1}.map-picto-marker strong{font-size:11px;color:#101828;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-rect-marker{min-width:96px;min-height:36px;display:flex;align-items:center;justify-content:center;text-align:center;background:#fff;border:3px solid #b42318;border-radius:6px;padding:5px 8px;box-shadow:0 8px 20px rgba(16,24,40,.22)}.map-rect-marker strong{font-size:13px;color:#101828;line-height:1.05}.map-marker-red{border-color:#d92d20;background:#fff1f3}.map-marker-orange{border-color:#f97316;background:#fff7ed}.map-marker-green{border-color:#079455;background:#ecfdf3}.map-marker-black{border-color:#101828;background:#f8fafc}.map-marker-white{border-color:#fff;background:#fff;box-shadow:0 0 0 2px rgba(16,24,40,.45),0 8px 20px rgba(16,24,40,.22)}.map-marker-blue{border-color:#1570ef;background:#eff8ff}

/* v2.9.2 — poprawka modali nad Leaflet oraz przełącznik nazw i dróg */
.leaflet-container{z-index:1}.satellite-fire-map .leaflet-pane{z-index:1}.satellite-fire-map .leaflet-tile-pane{z-index:1}.satellite-fire-map .leaflet-overlay-pane{z-index:4}.satellite-fire-map .leaflet-marker-pane{z-index:6}.satellite-fire-map .leaflet-tooltip-pane{z-index:7}.satellite-fire-map .leaflet-control-container{position:relative;z-index:800}.map-layer-note{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#667085}.map-layer-note b{color:#101828}.leaflet-control-layers{border:0!important;border-radius:14px!important;box-shadow:var(--shadow)!important;overflow:hidden}.leaflet-control-layers-expanded{padding:9px 10px!important;background:rgba(255,255,255,.96)!important}.leaflet-control-layers label{display:flex!important;grid-template-columns:none!important;gap:6px!important;align-items:center!important;font-size:12px!important;font-weight:900!important;color:#101828!important;margin:2px 0!important}.leaflet-control-layers input{width:auto!important}.leaflet-control-layers-separator{margin:6px -10px!important}.modal.open{isolation:isolate}@media (max-width:760px){.modal{padding:12px 8px}.modal-card{max-height:calc(100vh - 24px)}}


/* v2.10 — linie / pomiary na mapie */
.hidden{display:none!important}
.legend-line{background:#fff;border:3px solid #f97316;border-radius:4px;width:22px!important;height:5px!important}
.line-draw-status{margin-top:6px;color:#b42318;font-weight:900;text-transform:none!important;letter-spacing:0!important}
.line-label{background:#101828!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:5px 8px!important;font-weight:900!important;box-shadow:var(--shadow)!important;text-align:center!important;line-height:1.15!important}
.line-label:before{display:none}
.map-buttons .hidden{display:none!important}


/* v2.10.1 — mniejsze piktogramy przy oddaleniu mapy i ręczny tryb kompaktowy */
.leaflet-map-marker-wrap,.leaflet-ob-wrap{background:transparent!important;border:0!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:visible!important}
.map-picto-marker,.map-rect-marker,.leaflet-ob-marker{transition:transform .12s ease, min-width .12s ease, width .12s ease, height .12s ease, padding .12s ease, border-radius .12s ease;transform-origin:center bottom}
.line-label{background:#101828!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:4px 7px!important;font-weight:900!important;box-shadow:0 6px 16px rgba(16,24,40,.22)!important;text-align:center!important;line-height:1.1!important}.line-label:before{display:none!important}
.compact-markers-control a{font-weight:900;text-align:center;line-height:30px!important;font-size:17px;color:#101828!important;background:#fff!important}.compact-markers-control a.active{background:#b42318!important;color:#fff!important}
.satellite-fire-map.map-zoom-mid .map-picto-marker{transform:scale(.82)}
.satellite-fire-map.map-zoom-mid .map-rect-marker,.satellite-fire-map.map-zoom-mid .leaflet-ob-marker{transform:scale(.86)}
.satellite-fire-map.map-zoom-mid .line-label,.satellite-fire-map.map-zoom-mid .fire-time-label{font-size:11px!important;padding:3px 6px!important}
.satellite-fire-map.map-zoom-far .map-picto-marker,.satellite-fire-map.map-compact-forced .map-picto-marker{min-width:34px;width:34px;max-width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;padding:2px;gap:0;box-shadow:0 4px 12px rgba(16,24,40,.22);transform:scale(.95)}
.satellite-fire-map.map-zoom-far .map-picto-marker span,.satellite-fire-map.map-compact-forced .map-picto-marker span{font-size:18px;line-height:1}
.satellite-fire-map.map-zoom-far .map-picto-marker strong,.satellite-fire-map.map-compact-forced .map-picto-marker strong{display:none}
.satellite-fire-map.map-zoom-far .map-rect-marker,.satellite-fire-map.map-compact-forced .map-rect-marker{min-width:54px;min-height:24px;padding:2px 5px;border-width:2px;border-radius:5px;box-shadow:0 4px 12px rgba(16,24,40,.22)}
.satellite-fire-map.map-zoom-far .map-rect-marker strong,.satellite-fire-map.map-compact-forced .map-rect-marker strong{font-size:10px;max-width:54px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.satellite-fire-map.map-zoom-far .leaflet-ob-marker,.satellite-fire-map.map-compact-forced .leaflet-ob-marker{padding:3px 5px;border-radius:7px;box-shadow:0 4px 12px rgba(16,24,40,.22)}
.satellite-fire-map.map-zoom-far .leaflet-ob-marker strong,.satellite-fire-map.map-compact-forced .leaflet-ob-marker strong{font-size:10px}.satellite-fire-map.map-zoom-far .leaflet-ob-marker span,.satellite-fire-map.map-compact-forced .leaflet-ob-marker span{display:none}
.satellite-fire-map.map-zoom-far .line-label,.satellite-fire-map.map-compact-forced .line-label,.satellite-fire-map.map-zoom-far .fire-time-label,.satellite-fire-map.map-compact-forced .fire-time-label{font-size:10px!important;padding:2px 5px!important;line-height:1!important}
.satellite-fire-map.map-zoom-very-far .map-picto-marker{min-width:26px;width:26px;max-width:26px;height:26px;border-width:2px;border-radius:50%;padding:1px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(16,24,40,.2)}
.satellite-fire-map.map-zoom-very-far .map-picto-marker span{font-size:14px}.satellite-fire-map.map-zoom-very-far .map-picto-marker strong{display:none}
.satellite-fire-map.map-zoom-very-far .map-rect-marker{min-width:42px;min-height:20px;padding:1px 4px;border-width:2px;border-radius:4px}.satellite-fire-map.map-zoom-very-far .map-rect-marker strong{font-size:9px;max-width:42px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.satellite-fire-map.map-zoom-very-far .leaflet-ob-marker{padding:2px 4px;border-radius:6px}.satellite-fire-map.map-zoom-very-far .leaflet-ob-marker strong{font-size:9px}.satellite-fire-map.map-zoom-very-far .leaflet-ob-marker span{display:none}
.satellite-fire-map.map-zoom-very-far .line-label,.satellite-fire-map.map-zoom-very-far .fire-time-label{display:none!important}


/* v2.11 — modal kolejności i katalog zadań zespołów sztabu */
.section-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.icon-btn.help{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.icon-btn.help:hover{background:#ffedd5}.team-order-modal-form{display:grid;gap:10px;margin-top:12px}.team-order-row{display:grid;grid-template-columns:minmax(0,1fr) 80px;align-items:center;gap:10px;background:#f8fafc;border:1px solid #edf0f5;border-radius:12px;padding:9px 10px}.team-order-row span{font-weight:800}.team-order-row input{text-align:center;font-weight:900}.catalog-options{margin:12px 0}.template-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;max-height:62vh;overflow:auto;padding-right:4px}.template-group{border:1px solid #edf0f5;border-radius:14px;background:#fbfcfe;padding:12px}.template-group h3{font-size:15px;margin-bottom:9px}.template-task{display:flex;grid-template-columns:none;align-items:flex-start;gap:8px;border-bottom:1px solid #eef2f7;padding:8px 0;font-weight:700;color:#344054}.template-task:last-child{border-bottom:0}.template-task input{width:auto;margin-top:3px;flex:0 0 auto}.template-task span{line-height:1.25}.team-mini-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.modal-task-columns{max-height:58vh;overflow:auto}.quick-task-form.catalog-options{grid-template-columns:1.2fr 100px 120px auto}
@media (max-width:900px){.quick-task-form.catalog-options{grid-template-columns:1fr}.template-groups{grid-template-columns:1fr}.team-order-row{grid-template-columns:1fr 80px}}

/* v2.12 — usuwanie zespołów, ukrywanie znaczników i bezpieczne auto-odświeżanie */
.icon-btn.danger-icon{background:#fee4e2;color:#b42318;border:1px solid #fecdca}.icon-btn.danger-icon:hover{background:#fecdca}.btn.active{background:#101828!important;color:#fff!important;border-color:#101828!important}.auto-refresh-note{position:fixed;right:18px;bottom:18px;z-index:5000;display:flex;align-items:center;gap:10px;background:#101828;color:#fff;border-radius:16px;padding:12px 13px;box-shadow:0 16px 36px rgba(16,24,40,.28);border:1px solid rgba(255,255,255,.18)}.auto-refresh-note strong{font-size:14px}.auto-refresh-note button{border:0;border-radius:10px;background:#b42318;color:#fff;font-weight:900;padding:8px 10px;cursor:pointer}.map-markers-hidden:after{content:'Znaczniki ukryte';position:absolute;left:52px;top:10px;z-index:900;background:#101828;color:#fff;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px;box-shadow:var(--shadow)}.satellite-fire-map.map-zoom-mid .line-label-permanent,.satellite-fire-map.map-zoom-far .line-label-permanent,.satellite-fire-map.map-zoom-very-far .line-label-permanent,.satellite-fire-map.map-compact-forced .line-label-permanent{display:none!important}
@media (max-width:760px){.auto-refresh-note{left:10px;right:10px;bottom:10px;justify-content:space-between}}

/* v2.13 — mapa: pełny ekran, edycja, warstwy i dodatkowe kolory */
.map-fullscreen-active .topbar,
.map-fullscreen-active .incident-head,
.map-fullscreen-active .page > .flash { display:none !important; }
.map-fullscreen-active .page { padding:0 !important; margin:0 !important; max-width:none !important; }
.map-fullscreen-active .map-layout { position:fixed; inset:0; z-index:4000; display:grid; grid-template-columns:1fr 340px; gap:0; background:#0f172a; }
.map-fullscreen-active .satellite-panel { border-radius:0 !important; border:0 !important; }
.map-fullscreen-active .satellite-side { border-radius:0 !important; overflow:auto; max-height:100vh; }
.map-fullscreen-active .satellite-map-wrap { height:calc(100vh - 112px) !important; }
.map-fullscreen-active .satellite-fire-map { height:100% !important; min-height:640px; }
.map-buttons .btn.active,
.map-side-actions .btn.active { background:#7f1d1d; color:#fff; border-color:#991b1b; }
.map-edit-mode { outline:3px solid rgba(249,115,22,.6); outline-offset:-3px; }
.map-edit-mode::after { content:'TRYB EDYCJI — przeciągaj piktogramy, OB i punkty linii'; position:absolute; left:14px; bottom:14px; z-index:900; background:#7f1d1d; color:#fff; padding:8px 12px; border-radius:12px; font-weight:800; box-shadow:0 10px 24px rgba(0,0,0,.25); }
.line-vertex-wrap { display:none; }
.map-edit-mode .line-vertex-wrap { display:block; }
.line-vertex-wrap span { display:block; width:16px; height:16px; border-radius:999px; background:#fff; border:3px solid #f97316; box-shadow:0 2px 8px rgba(0,0,0,.35); }
.map-zoom-very-far .line-label,
.map-zoom-far .line-label,
.map-zoom-mid .line-label { display:none !important; }
.map-marker-yellow { background:#fef08a !important; border-color:#ca8a04 !important; color:#1f2937 !important; }
.map-marker-purple { background:#ede9fe !important; border-color:#7c3aed !important; color:#2e1065 !important; }
.map-marker-pink { background:#fce7f3 !important; border-color:#db2777 !important; color:#831843 !important; }
.map-marker-cyan { background:#cffafe !important; border-color:#0891b2 !important; color:#164e63 !important; }
.map-marker-brown { background:#f5e6d3 !important; border-color:#854d0e !important; color:#431407 !important; }
.map-marker-gray { background:#f2f4f7 !important; border-color:#667085 !important; color:#344054 !important; }
.legend-bdl { background:#22c55e; border:2px dashed #14532d; }
.leaflet-control-layers-expanded { max-height:45vh; overflow:auto; font-size:12px; line-height:1.25; }
.fire-time-label { font-size:11px; font-weight:800; color:#fff; text-shadow:0 1px 3px #000; background:rgba(127,29,29,.82); border:0; border-radius:8px; padding:3px 7px; }

/* v2.14 — mapy: widoczność symulacji, edycja linii, warstwy czasu; widok sztabu: kolumny */
.staff-board{grid-template-columns:repeat(var(--staff-cols,2),minmax(0,1fr));}
.staff-cols-form label{display:flex;align-items:center;gap:7px;font-size:13px;color:#344054}.staff-cols-form select{height:38px;min-width:72px;padding:0 8px}.muted-item{opacity:.58;background:#f8fafc!important}.mini-check{display:flex;grid-template-columns:none;align-items:center;gap:5px;font-size:12px;font-weight:900;color:#344054}.mini-check input,.checkline input{width:auto}.danger-btn{background:#fee4e2!important;border-color:#fecdca!important;color:#b42318!important}.delete-zone-form{margin-top:10px;border-top:1px solid var(--line);padding-top:10px;text-align:right}.map-layer-box{margin:10px 0 12px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;padding:10px}.layer-row{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e5e7eb;padding:6px 0}.layer-row:last-of-type{border-bottom:0}.layer-row strong{font-size:13px}.layer-row small{text-align:right;font-size:11px}.checkline{display:flex;grid-template-columns:none;gap:8px;align-items:center;font-weight:800;color:#344054}.map-zoom-very-far .line-label,.map-zoom-far .line-label,.map-zoom-mid .line-label{display:none!important}.map-fullscreen-active .map-layer-box{font-size:12px}@media (max-width:1500px){.staff-board{grid-template-columns:repeat(min(var(--staff-cols,2),2),minmax(0,1fr));}}@media (max-width:980px){.staff-board{grid-template-columns:1fr!important}.staff-cols-form{display:none}}

/* v2.15 użytkownicy */
.users-page .hint-box{margin-top:14px;padding:12px;border:1px solid rgba(148,163,184,.35);border-radius:14px;background:rgba(248,250,252,.75);font-size:13px;line-height:1.45;color:#334155}
.inline-form{display:inline}
.btn.danger,.danger{background:#fee2e2!important;color:#991b1b!important;border-color:#fecaca!important}
.btn.danger:hover{background:#fecaca!important}

/* v2.16 — mapa: warstwy pod przyciskiem, elementy pod mapą, wiele warstw dla obiektu */
.compact-map-side .map-layer-note,.compact-map-side .map-layer-box{display:none}.map-layer-popup{position:absolute;right:12px;top:12px;z-index:1200;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 42px rgba(16,24,40,.24);padding:12px;min-width:280px;max-width:360px;max-height:72%;overflow:auto}.map-layer-popup.hidden{display:none}.map-layer-popup-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.map-layer-popup .checkline{padding:5px 0;font-size:13px}.map-layer-popup hr{margin:8px 0}.map-objects-panel{margin-top:14px}.map-layer-filter,.map-object-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.map-layer-filter button,.map-object-tabs button{border:1px solid #cfd6e4;background:#fff;border-radius:999px;padding:7px 11px;font-weight:900;cursor:pointer;color:#344054}.map-layer-filter button.active,.map-object-tabs button.active{background:#101828;color:#fff;border-color:#101828}.map-object-tab-content{display:none}.map-object-tab-content.active{display:block}.map-object-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}.hidden-by-layer{display:none!important}.layer-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;border:1px solid #edf0f5;background:#f8fafc;border-radius:12px;padding:9px}.layer-picker-field>label{margin-bottom:6px}.leaflet-control-layers{display:none}.location-info-item{position:relative}.location-info-item>button[data-location-info-edit]{align-self:start}.location-info-item form{align-self:start}.location-info-item .icon-btn{margin-left:4px}@media (max-width:1100px){.map-layout{grid-template-columns:1fr}.satellite-side{position:static}.map-object-grid{grid-template-columns:1fr}.map-layer-popup{left:12px;right:12px;max-width:none}}

/* v2.17 — tryb ćwiczeń, szablony, SITREP i Widok TV */
.mode-badge{display:inline-flex;align-items:center;gap:.3rem;border-radius:999px;padding:.18rem .55rem;font-size:.72rem;font-weight:800;letter-spacing:.03em;vertical-align:middle;margin-left:.35rem;text-transform:uppercase}
.mode-badge.info{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}
.mode-badge.danger{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}
.sitrep-list{display:grid;gap:1rem}.sitrep-card{border:1px solid var(--border,#dbe1ea);border-radius:16px;background:#fff;padding:1rem}.sitrep-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem}.sitrep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.sitrep-grid>div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:.75rem}.sitrep-grid h3{font-size:.85rem;margin:0 0 .35rem;color:#334155}.sitrep-grid p{margin:0;white-space:normal}.tv-view{padding:.5rem 0 2rem}.tv-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#0f172a;color:#fff;border-radius:18px;padding:1rem 1.25rem;margin-bottom:1rem}.tv-top h1{margin:0;font-size:1.6rem}.tv-top p{margin:.25rem 0 0;color:#cbd5e1}.tv-clock{font-size:2.4rem;font-weight:900;letter-spacing:.05em}.tv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.tv-card{background:#fff;border:1px solid #dbe1ea;border-radius:16px;padding:.85rem;min-height:120px;box-shadow:0 10px 25px rgba(15,23,42,.06)}.tv-card h2{font-size:1rem;margin:0 0 .5rem;display:flex;justify-content:space-between;gap:.5rem}.tv-card h2 span{font-size:.82rem;background:#e0f2fe;color:#075985;border-radius:999px;padding:.1rem .45rem}.tv-card p{margin:.25rem 0}.tv-ob{border-left:5px solid #f97316}.tv-bottom{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.75rem;margin-top:.75rem}.tv-bottom article{background:#fff;border:1px solid #dbe1ea;border-radius:16px;padding:.85rem}.tv-bottom h2{font-size:1rem;margin:0 0 .5rem}.tv-bottom p{margin:.3rem 0}@media(max-width:1000px){.sitrep-grid,.tv-grid,.tv-bottom{grid-template-columns:1fr}.tv-top{flex-direction:column;align-items:flex-start}.tv-clock{font-size:1.8rem}}


/* v2.18.1 — poprawki czytelności raportu i notatek OB */
.report-modal-card label{font-size:14px;font-weight:800;gap:5px}
.report-modal-card input,.report-modal-card select,.report-modal-card textarea{font-size:14px;font-weight:500;line-height:1.35;padding:9px 10px}
.report-modal-card textarea{min-height:auto;color:#101828}
.report-modal-card textarea::placeholder{font-weight:500;color:#667085}
.location-info-item{grid-template-columns:42px minmax(0,1fr) 34px 34px;align-items:start;gap:6px;padding:7px}
.location-info-item span{line-height:32px}
.location-info-item p{line-height:1.25;margin-top:6px}
.location-info-item form{margin:0;padding:0;display:block;align-self:start}
.location-info-item .icon-btn{min-width:32px;width:32px;height:32px;margin-left:0;padding:0;border-radius:10px}
.location-info-item .icon-btn.ok{background:#dcfae6;color:#067647}
@media(max-width:720px){.location-info-item{grid-template-columns:40px minmax(0,1fr) 32px 32px}.report-modal-card input,.report-modal-card select,.report-modal-card textarea{font-size:13px}}
