:root{font-family:Arial,sans-serif;color:#fff;background:#1a1a1a}*{box-sizing:border-box;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}[hidden]{display:none!important}input,textarea,[contenteditable=true]{-webkit-user-select:text!important;user-select:text!important}.textInput{width:100%;min-height:48px;padding:0 12px;border:1px solid #666;border-radius:4px;background:#181818;color:#fff;font:inherit}body{margin:0;min-height:100vh;background:#1a1a1a;overflow-x:hidden}.header{display:flex;justify-content:flex-end;align-items:center;min-height:22px;padding:2px 8px;background:#262626;border-bottom:2px solid #ccff33}.headerLeft{display:flex;align-items:center;gap:14px;min-width:0}.brand{color:#ccff33;font-size:1.65rem;font-weight:900}.version{color:#aaa;font-size:.8rem;white-space:nowrap}.headerActions{display:flex;align-items:center;gap:7px;min-width:0}.status{color:#bbb;font-size:.72rem}.iconButton{width:42px;min-height:42px;border:1px solid #555;border-radius:6px;background:#333;font-size:1.25rem}.wakeLockButton{display:flex;align-items:center;gap:5px;width:auto;min-height:42px;padding:3px 2px;border:0!important;border-radius:0;background:transparent!important;color:#777;font-size:.72rem;box-shadow:none!important}.wakeLockButton .wakeBulb{font-size:1.45rem;filter:grayscale(1);opacity:.55;transition:filter .2s,opacity .2s,text-shadow .2s}.wakeLockButton.wakeActive{color:#ffd900}.wakeLockButton.wakeActive .wakeBulb{filter:none;opacity:1;text-shadow:0 0 7px #ffd900,0 0 14px #ffd900}.container{width:min(980px,calc(100% - 20px));margin:16px auto 100px;max-width:100%}.panel{padding:20px 16px;background:#2b2b2b;border:1px solid #444;border-radius:8px;max-width:100%;overflow-x:hidden}h1,h2,p{margin:0}h1{margin-bottom:20px;color:#ccff33;font-size:1.3rem;text-align:center;text-transform:uppercase}h2{color:#ccff33;text-align:center}label{display:block;margin:15px 0 7px;color:#ddd;font-weight:700}select,button{width:100%;min-height:48px;border-radius:4px;font:inherit}select{padding:0 12px;border:1px solid #666;background:#181818;color:#fff}button{border:0;cursor:pointer;font-weight:900}.primary{margin-top:18px;background:#ccff33;color:#000}.secondary{width:auto;min-height:38px;padding:0 12px;background:#666;color:#fff}.danger{background:#7d2b2b;color:#fff}.message,.tableHint{margin-top:12px;color:#bbb;font-size:.85rem;line-height:1.4}.notice{margin-bottom:14px;padding:12px}.viewHeading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.viewHeading h1{flex:1;margin:0}.scheduleHeading{position:sticky;top:0;z-index:20;margin:-20px -16px 16px;padding:12px 16px;background:#2b2b2b;border-bottom:1px solid #555;box-shadow:0 5px 10px #0006}.scheduleTitleBlock{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}.scheduleTitleBlock h1{flex:0 1 auto}.scheduleControls{display:flex;align-items:center;gap:10px;width:100%}.scheduleTimeSelect{width:auto;min-width:92px;min-height:38px;padding:0 30px 0 10px;border:0;border-bottom:1px solid #ccff33;border-radius:0;background-color:transparent;color:#ccff33;font-size:1.12rem;font-weight:900}.scheduleClock{white-space:nowrap;color:#fff;font-size:1.05rem;font-weight:900;font-variant-numeric:tabular-nums}.tableWrap,.routeTableWrap{overflow:auto;-webkit-overflow-scrolling:touch;max-width:100%}table{width:100%;max-width:100%;border-collapse:separate;border-spacing:0 4px;background:#222;table-layout:fixed}th,td{padding:10px 8px;border-bottom:1px solid #444;text-align:left;overflow-wrap:anywhere}th{color:#ccff33;font-size:.75rem}#scheduleView th:nth-child(1),#scheduleView td:nth-child(1){width:46%}#scheduleView th:nth-child(2),#scheduleView td:nth-child(2){width:25%}#scheduleView th:nth-child(3),#scheduleView td:nth-child(3){width:29%}#scheduleBody tr{position:relative;transition:transform .16s ease,opacity .16s ease,box-shadow .16s ease,background .16s ease}#scheduleBody tr:not(.isActiveStop){transform:scale(.97);opacity:.78;transform-origin:center}#scheduleBody tr td:first-child,#scheduleBody tr td:first-child *:not(.etaPunctuality):not(.stopGuardNotice){color:#fff!important}#scheduleBody tr.isActiveStop{z-index:3;transform:none;opacity:1;background:#303030!important;box-shadow:0 5px 14px #0009,0 0 0 2px var(--gps-status-color,#fff)!important}#scheduleBody tr.isActiveStop td{padding-top:13px;padding-bottom:13px;border-bottom-color:transparent;font-weight:800}#scheduleBody tr.isActiveStop td:first-child{position:relative;font-size:1.06rem;color:#fff!important;padding-left:14px!important}#scheduleBody tr.isActiveStop td:first-child::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:5px;border-radius:4px;background:var(--gps-status-color,#fff)}#scheduleBody .etaPunctuality{font-size:1rem!important;line-height:1.25!important;font-weight:1000!important;margin-top:7px!important;letter-spacing:.01em}#scheduleBody .etaPunctuality.onTime{color:#34c759!important}#scheduleBody .etaPunctuality.early{color:#ffd60a!important}#scheduleBody .etaPunctuality.late{color:#ff3b30!important}#scheduleBody .etaPunctuality.neutral{color:#fff!important}#scheduleBody .etaPunctuality.returnStartHold{color:#ffd60a!important}#scheduleBody .etaPunctuality.returnStartReady{color:#34c759!important}#scheduleBody .etaPunctuality.arrived{color:#fff!important}#scheduleBody .stopGuardNotice{font-size:.95rem!important;line-height:1.2!important;padding:7px 9px!important}.adminList{display:grid;gap:10px}.adminCard{padding:13px;background:#222;border:1px solid #444;border-radius:6px}.adminCardTitle{font-weight:900;margin-bottom:10px}.cardActions,.routeEditActions,.routeBottomActions,.formActions{display:flex;gap:10px}.cardActions button,.compact{min-height:40px;margin:0}.editButton{background:#ccff33;color:#000}.loginLinks{display:flex;align-items:center;margin-top:34px}.loginLinks button{margin:0;width:auto}.changePasswordRight{margin-left:auto!important}.routeEditActions{margin-bottom:16px}.routeEditActions button{margin:0}.routeEditTable{min-width:680px;table-layout:auto}.routeEditTable th{position:sticky;top:0;z-index:2;background:#222;text-align:center;white-space:nowrap}.routeEditTable th:first-child,.routeEditTable td:first-child{position:sticky;left:0;z-index:1;background:#222;min-width:165px}.routeEditTable th:first-child{z-index:3}.routeEditTable td{padding:6px}.routeEditTable .stopNameButton,.routeEditTable .locationButton{min-height:42px;padding:6px 8px;background:#333;color:#fff;border:1px solid #555;text-align:left}.routeEditTable .locationButton{width:52px;text-align:center}.timeWheelButton{width:92px;min-height:42px;padding:0 8px;border:1px solid #666;background:#181818;color:#fff;font-size:1rem;font-weight:900}.routeBottomActions{margin-top:14px}.routeBottomActions button{margin:0}.fieldButton{display:flex;flex-direction:column;align-items:flex-start;padding:10px 12px;border:1px solid #666;background:#181818;color:#fff}.fieldButton small{color:#ccff33}.timeEditList{display:grid;gap:8px;margin-top:18px}.timeEditRow{display:grid;grid-template-columns:1fr 130px;align-items:center;gap:10px}.timeEditRow label{margin:0}.formActions{margin-top:20px}.formActions button{margin:0}.mapPicker{position:relative;height:430px;overflow:hidden;border:1px solid #555}.mapPicker iframe{width:100%;height:100%;border:0}.mapPin{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);font-size:2.3rem;pointer-events:none}.mapCoords{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mapCoords label{grid-row:1}.mapCoords input{grid-row:2}#useDeviceLocation{margin-top:14px;width:100%}.wheelModal{position:fixed;z-index:20000;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:12px;background:rgba(0,0,0,.72)}.wheelDialog{width:min(430px,100%);padding:18px 16px 16px;border:1px solid #555;border-radius:14px 14px 8px 8px;background:#292929;box-shadow:0 -8px 30px #000}.wheelPicker{position:relative;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;height:250px;margin-top:12px;overflow:hidden}.wheelColumn{height:250px;overflow:hidden}.wheelList{height:250px;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;padding:100px 0}.wheelList::-webkit-scrollbar{display:none}.wheelItem{height:50px;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;color:#888;font-size:1.35rem;font-weight:700}.wheelColon{z-index:2;text-align:center;font-size:2rem;font-weight:900}.wheelHighlight{position:absolute;z-index:1;left:0;right:0;top:100px;height:50px;border-top:1px solid #ccff33;border-bottom:1px solid #ccff33;background:rgba(204,255,51,.06);pointer-events:none}.wheelLabels{display:grid;grid-template-columns:1fr 1fr;text-align:center;color:#aaa;font-size:.72rem;font-weight:900}.wheelActions{display:flex;gap:12px;margin-top:18px}.wheelActions button{margin:0}.wheelActions .secondary{width:100%}.installBanner{position:fixed;right:0;bottom:0;left:0;padding:15px;background:#333;border-top:2px solid #ccff33;text-align:center}.installActions{display:flex;justify-content:center;gap:10px}.installActions button{width:auto}#scheduleView:not([hidden]){display:flex;flex-direction:column;height:calc(100dvh - 60px);max-height:calc(100dvh - 60px);overflow:hidden}#scheduleView .scheduleHeading{position:relative;top:auto;flex:0 0 auto;margin:-20px -16px 8px;z-index:30}#scheduleView .tableWrap{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}#scheduleView .tableWrap thead th{position:sticky;top:0;z-index:12;background:#222}@media(max-width:520px){.container{width:calc(100% - 10px);margin-top:6px}.panel{padding:13px 8px}.header{padding:9px}.headerLeft{gap:7px}.brand{font-size:1.35rem}.version{font-size:.68rem}.wakeLockButton{font-size:.65rem;flex:0 0 auto}.status{display:none}.viewHeading{align-items:flex-start;flex-direction:column}.viewHeading .secondary{width:100%}.scheduleHeading{position:sticky;top:0;z-index:20;margin:-13px -8px 12px;padding:9px 8px;background:#2b2b2b;align-items:stretch}.scheduleTitleBlock{width:100%;flex-direction:column;gap:7px}.scheduleControls{justify-content:flex-start;max-width:100%;width:100%}.scheduleTimeSelect{font-size:1.05rem;min-width:82px}.scheduleClock{font-size:1rem}.cardActions{flex-direction:column}.loginLinks{margin-top:38px}.loginLinks button{max-width:48%;font-size:.7rem;padding:0 7px}.routeEditTable{min-width:640px}.routeEditTable th:first-child,.routeEditTable td:first-child{min-width:145px}.routeBottomActions{flex-direction:column}.mapPicker{height:55vh}.formActions{flex-direction:column}.formActions .secondary{width:100%}.wheelModal{padding:0}.wheelDialog{border-radius:16px 16px 0 0}#scheduleBody tr:not(.isActiveStop){transform:scale(.955);opacity:.74}#scheduleBody .etaPunctuality{font-size:1.05rem!important}#scheduleBody .stopGuardNotice{font-size:1rem!important}#scheduleView:not([hidden]){height:calc(100dvh - 48px);max-height:calc(100dvh - 48px)}#scheduleView .scheduleHeading{margin:-13px -8px 6px}}

/* Docelowy układ harmonogramu — przeniesiony z dawnych modułów fix/lock. */
#scheduleView .scheduleHeading{display:grid!important;grid-template-columns:42px minmax(88px,1fr) minmax(0,auto) minmax(118px,auto)!important;grid-template-rows:auto auto auto!important;align-items:center!important;gap:3px 10px!important}
#scheduleView .scheduleBackStack{grid-column:1!important;grid-row:1 / 4!important;align-self:start!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:7px!important}
#scheduleView .scheduleBackStack #wakeLockButton.wakeLockButton{width:38px!important;min-width:38px!important;min-height:62px!important}
#scheduleView .scheduleBackStack #wakeLockButton .wakeTopRow{flex-direction:column!important;gap:0!important}
#scheduleView .scheduleBackStack #wakeLockButton .wakeBulb{font-size:1.45rem!important}
#scheduleView .scheduleBackStack #wakeLockLabel{min-width:0!important;font-size:.68rem!important;text-align:center!important}
#scheduleView .scheduleBackStack #wakeLockButton .wakeScreenLabel{margin-top:1px!important;font-size:.5rem!important}
#scheduleView .scheduleTitleBlock,#scheduleView .scheduleControls{display:contents!important}
#scheduleView #scheduleRouteName{grid-column:2 / 4!important;grid-row:1!important;justify-self:start!important;min-width:0!important;margin:0!important;text-align:left!important;line-height:1.12!important}
#scheduleView .scheduleTimeSelect:not([hidden]),#scheduleView #returnStartLabel:not([hidden]){grid-column:2!important;grid-row:2!important;justify-self:start!important;min-width:0!important;margin:0!important}
#scheduleView .scheduleClock{grid-column:2!important;grid-row:3!important;justify-self:start!important;min-width:0!important;margin:0!important;color:#63d7ff!important}
#scheduleView #scheduleSpeedBox{grid-column:4!important;grid-row:1!important;align-self:center!important;justify-self:end!important;margin:0!important}
#scheduleView .routeModeSwitches{grid-column:4!important;grid-row:2!important;align-self:center!important;justify-self:end!important;margin:0!important;padding:2px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#scheduleView #scheduleVehicle{grid-column:4!important;grid-row:3!important;align-self:end!important;justify-self:end!important;min-width:0!important;margin:0!important}
#scheduleView #scheduleVehicleButton{width:auto!important;max-width:min(42vw,240px)!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:2px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:right!important;line-height:1.15!important}
#scheduleView #returnStartLabel{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#scheduleBody[data-direction="return"] tr:not(.gpsNextStop){transform:scale(.955)!important;opacity:.74!important;background:transparent!important;box-shadow:none!important}
#scheduleBody[data-direction="return"] tr:not(.gpsNextStop) td{padding-top:10px!important;padding-bottom:10px!important;font-weight:400!important}
#scheduleBody[data-direction="return"] tr:not(.gpsNextStop) td:first-child{color:inherit!important;font-size:inherit!important;padding-left:8px!important}
#scheduleBody[data-direction="return"] tr:not(.gpsNextStop) td:first-child::before{display:none!important}
#scheduleBody[data-direction="return"] tr.gpsNextStop{position:relative;z-index:3;transform:none!important;opacity:1!important;background:#303030!important;box-shadow:0 5px 14px #0009!important}
#scheduleBody[data-direction="return"] tr.gpsNextStop td{padding-top:13px!important;padding-bottom:13px!important;border-bottom-color:transparent!important;font-weight:800!important}
#scheduleBody[data-direction="return"] tr.gpsNextStop td:first-child{position:relative;color:#fff!important;font-size:1.06rem!important;padding-left:14px!important}
#scheduleBody[data-direction="return"] tr.gpsNextStop td:first-child::before{content:"";position:absolute;display:block!important;left:0;top:5px;bottom:5px;width:5px;border-radius:4px;background:var(--gps-status-color,#fff)}
@media(max-width:520px){#scheduleView .scheduleHeading{grid-template-columns:42px minmax(62px,1fr) minmax(0,auto) minmax(108px,auto)!important;gap:2px 7px!important}#scheduleView #scheduleRouteName{font-size:1.12rem!important}#scheduleView .scheduleTimeSelect:not([hidden]),#scheduleView #returnStartLabel:not([hidden]){width:100%!important;max-width:100%!important}#scheduleView .routeModeSwitches{gap:8px!important}#scheduleView #scheduleVehicleButton{max-width:38vw!important;font-size:.7rem!important}#scheduleView .scheduleClock{font-size:.94rem!important}}
