@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";width:24px;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107);margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:"";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}:root,[data-theme=light]{--bg:#f3f5f9;--surface:#fff;--surface-2:#f8fafc;--text:#0f172a;--text-secondary:#475569;--text-muted:#64748b;--border:#e2e8f0;--primary:#e85d04;--primary-soft:#fff4eb;--primary-hover:#c2410c;--success:#16a34a;--success-soft:#ecfdf3;--danger:#dc2626;--danger-soft:#fef2f2;--warning:#d97706;--warning-soft:#fffbeb;--shadow:0 4px 24px #0f172a14;--radius:14px;--header-h:48px;--nav-h:60px;--history-dock-h:72px;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);--bottom-chrome-h:calc(var(--nav-h) + var(--safe-bottom));--history-chrome-h:calc(var(--history-dock-h) + var(--bottom-chrome-h));--z-bottom-nav:560;--z-map-controls:525;--z-map-dock:540;--z-float-panel:600;--z-overlay-backdrop:700;--z-overlay:710;--z-modal-backdrop:800;--z-modal:810}[data-theme=dark]{--bg:#0f172a;--surface:#1e293b;--surface-2:#273449;--text:#f8fafc;--text-secondary:#cbd5e1;--text-muted:#94a3b8;--border:#334155;--primary-soft:#e85d0426;--success-soft:#16a34a26;--danger-soft:#dc26261f;--warning-soft:#d977061f;--shadow:0 8px 32px #00000059}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Plus Jakarta Sans,system-ui,sans-serif;line-height:1.5}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none}a{color:inherit;text-decoration:none}.app-shell{grid-template-columns:1fr;grid-template-rows:var(--header-h) 1fr var(--nav-h);background:var(--bg);height:100dvh;display:grid}.app-shell.map-mode{grid-template-rows:1fr;grid-template-columns:1fr}.app-shell.map-mode .app-header{z-index:500;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);background:#fffffff5;position:fixed;top:0;left:0;right:0;box-shadow:0 1px 8px #0f172a0f}.app-shell.map-mode .app-main{grid-area:1/1;height:100dvh;min-height:100vh;position:relative;overflow:hidden}.app-shell.map-mode .bottom-nav{z-index:var(--z-bottom-nav);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffffffa;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -1px 8px #0f172a0f}.app-main{background:var(--bg);grid-column:1;min-height:0;overflow:hidden}.app-header{padding:0 .75rem;padding-top:var(--safe-top);height:calc(var(--header-h) + var(--safe-top));background:var(--surface);border-bottom:1px solid var(--border);z-index:300;grid-template-columns:auto 1fr auto;align-items:center;display:grid}.header-left{align-items:center;gap:.35rem;display:flex}.header-center{text-align:center;flex-direction:column;align-items:center;gap:.1rem;display:flex}.header-center strong{font-size:.92rem;font-weight:700}.live-badge{color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-size:.65rem;font-weight:700}.live-badge.on{color:var(--success)}.live-badge.sync{color:var(--primary);animation:2s ease-in-out infinite live-sync-pulse}@keyframes live-sync-pulse{0%,to{opacity:1}50%{opacity:.55}}.header-right{flex-direction:row;flex-shrink:0;justify-content:flex-end;align-items:center;gap:.35rem;display:flex;position:relative}.header-last-update-block{flex-direction:column;flex-shrink:1;align-items:flex-end;gap:.04rem;min-width:0;max-width:7.2rem;line-height:1.1;display:flex}.header-last-update-label{color:var(--text-muted);white-space:nowrap;font-size:.48rem;font-weight:700}.header-last-update-value{color:var(--text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.58rem;font-weight:600}.icon-btn{background:var(--surface-2);border:1px solid var(--border);-webkit-user-select:none;user-select:none;caret-color:#0000;border-radius:10px;place-items:center;width:36px;height:36px;display:grid}.icon-btn:focus{outline-offset:2px;outline:2px solid #e85d0473}.icon-btn:focus:not(:focus-visible){outline:none}.menu-btn .hamburger,.menu-btn .hamburger:before,.menu-btn .hamburger:after{background:var(--text);border-radius:2px;width:18px;height:2px;display:block;position:relative}.menu-btn .hamburger:before,.menu-btn .hamburger:after{content:"";position:absolute;left:0}.menu-btn .hamburger:before{top:-6px}.menu-btn .hamburger:after{top:6px}.avatar-btn{background:var(--primary-soft);width:34px;height:34px;color:var(--primary);border:1px solid #e85d0440;border-radius:10px;font-weight:700}.overlay-backdrop,.account-overlay-backdrop{z-index:var(--z-modal-backdrop);background:#0f172a59;position:fixed;inset:0}.account-overlay-backdrop{background:#0f172a40}.account-menu{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:220px;box-shadow:var(--shadow);padding:.85rem}.account-menu-portal{top:calc(var(--header-h) + var(--safe-top) + 6px);z-index:var(--z-modal);position:fixed;right:.75rem}.account-menu-admin{min-width:min(92vw,360px);max-width:min(92vw,360px);max-height:min(82dvh,680px);padding-bottom:.65rem;overflow-y:auto}.account-menu-head{margin-bottom:.35rem}.account-badge{text-transform:uppercase;letter-spacing:.04em;background:var(--warning-soft);color:var(--warning);border-radius:999px;margin-top:.35rem;padding:.18rem .45rem;font-size:.62rem;font-weight:700;display:inline-block}.account-menu-msg{background:var(--primary-soft);color:var(--primary-hover);border-radius:10px;margin:.35rem 0;padding:.45rem .55rem;font-size:.78rem}.account-return-admin{background:var(--surface-2);border:1px solid var(--border);justify-content:center;width:100%;margin-bottom:.5rem;font-weight:700}.account-admin-sections{flex-direction:column;gap:.75rem;margin-bottom:.65rem;display:flex}.account-admin-block h3{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin:0 0 .45rem;font-size:.78rem;font-weight:700}.account-quick-form{flex-direction:column;gap:.4rem;display:flex}.account-quick-form input,.account-quick-form select,.account-admin-block select,.account-filter{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;width:100%;padding:.55rem .65rem;font-size:.82rem}.account-quick-form .primary{background:var(--primary);color:#fff;border-radius:10px;margin-top:.15rem;padding:.55rem .75rem;font-weight:700}.account-user-list,.account-device-link-list{flex-direction:column;gap:.35rem;max-height:160px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.account-user-list li,.account-device-link-list li{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;justify-content:space-between;align-items:center;gap:.5rem;padding:.45rem .5rem;display:flex}.account-user-list li strong,.account-device-link-list li strong{font-size:.82rem;display:block}.account-user-list li span,.account-device-link-list li code{color:var(--text-muted);font-size:.72rem;display:block}.account-user-list .ghost,.account-device-link-list .ghost,.account-device-link-list .primary{border-radius:999px;flex-shrink:0;padding:.35rem .55rem;font-size:.72rem;font-weight:700}.account-device-link-list .primary{background:var(--primary);color:#fff}.account-device-link-list .ghost.linked{color:var(--success);background:var(--success-soft);border:1px solid #16a34a59}.account-menu-hint{padding:.35rem 0;font-size:.78rem}.admin-link-bar{margin-bottom:.75rem}.admin-link-bar label{flex-direction:column;gap:.35rem;font-size:.82rem;font-weight:600;display:flex}.admin-link-bar select{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;max-width:320px;padding:.55rem .65rem}.admin-device-owners{color:var(--text-muted);margin-top:.15rem;font-size:.72rem;display:block}.admin-device-actions .ghost.linked,.admin-device-actions .primary{border-radius:999px;padding:.4rem .65rem;font-size:.78rem}.admin-device-actions .ghost.linked{color:var(--success);background:var(--success-soft);border:1px solid #16a34a59}.account-name{margin:0;font-weight:700}.account-email{color:var(--text-muted);margin:.15rem 0 .75rem;font-size:.85rem}.menu-item{border-radius:10px;align-items:center;gap:.5rem;width:100%;padding:.65rem;display:flex}.menu-item.danger{color:var(--danger);background:var(--danger-soft)}.drawer-backdrop{z-index:var(--z-overlay-backdrop);background:#0f172a59;position:fixed;inset:0}.device-drawer{width:min(360px,92vw);z-index:var(--z-overlay);background:var(--surface);border-right:1px solid var(--border);box-shadow:var(--shadow);flex-direction:column;animation:.22s slideIn;display:flex;position:fixed;top:0;bottom:0;left:0}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}.drawer-header{padding:1rem 1rem .75rem;padding-top:calc(1rem + var(--safe-top));border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;display:flex}.drawer-header h2{margin:0;font-size:1.15rem}.drawer-close{background:var(--surface-2);border:1px solid var(--border);width:36px;height:36px;color:var(--text-secondary);border-radius:10px;font-size:1rem}.drawer-search{background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);border-radius:12px;align-items:center;gap:.5rem;margin:.75rem 1rem;padding:.65rem .85rem;display:flex}.drawer-search input{background:0 0;border:none;outline:none;flex:1}.drawer-list{flex-direction:column;flex:1;gap:.65rem;min-height:0;padding:0 1rem .75rem;display:flex;overflow-y:auto}.drawer-footer{padding:.65rem 1rem calc(.65rem + var(--safe-bottom));border-top:1px solid var(--border);background:var(--surface);flex-shrink:0}.drawer-settings-btn{text-align:center;background:var(--primary-soft);width:100%;color:var(--primary-hover);border-radius:12px;padding:.65rem .85rem;font-size:.82rem;font-weight:700;display:block}.bottom-nav{scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x;background:var(--surface);border-top:1px solid var(--border);padding-bottom:var(--safe-bottom);min-height:calc(var(--nav-h) + var(--safe-bottom));height:auto;z-index:var(--z-bottom-nav);width:100%;display:block;overflow:auto hidden}.bottom-nav::-webkit-scrollbar{display:none}.bottom-nav-track{flex-wrap:nowrap;align-items:stretch;width:100%;min-width:100%;margin:0 auto;display:flex}.bottom-nav-item{min-width:0;min-height:var(--nav-h);color:var(--text-muted);text-align:center;flex-direction:column;flex:1 1 0;justify-content:center;align-items:center;gap:.18rem;padding:.28rem .4rem;font-size:.62rem;font-weight:600;line-height:1.05;display:flex}.bottom-nav-item svg{flex-shrink:0;width:1.5rem;height:1.5rem}.bottom-nav-item span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.bottom-nav-item.active{color:var(--primary)}.map-screen{width:100%;height:100%;min-height:100%;position:absolute;inset:0}.map-screen--layout{height:100%;min-height:0;padding-top:calc(var(--header-h) + var(--safe-top));--map-top-stack:0px;flex-direction:column;padding-bottom:0;display:flex}.map-top-chrome{z-index:340;flex-direction:column;flex-shrink:0;align-items:center;gap:.4rem;padding:.35rem .65rem .45rem;display:flex}.map-viewport{flex:auto;min-height:0;position:relative}.map-screen--layout .map-root,.map-screen--layout .leaflet-container{top:0;left:0;right:0;bottom:var(--bottom-chrome-h);position:absolute;width:100%!important;height:auto!important}.map-legend-inline{background:#fffffff0;border:1px solid #0f172a14;border-radius:999px;justify-content:center;width:100%;max-width:420px;padding:.28rem .55rem;display:flex;box-shadow:0 2px 8px #0f172a14}.map-root,.leaflet-container{z-index:1;-webkit-user-select:none;user-select:none;caret-color:#0000;background:#e8edf3;outline:none;transform:translateZ(0);width:100%!important}.leaflet-tile{backface-visibility:hidden;outline:1px solid #0000}.leaflet-pane,.leaflet-layer{transform:translateZ(0)}.map-screen .map-root,.map-screen .leaflet-container,.device-map-wrap .map-root,.device-map-wrap .leaflet-container{height:100%!important}.history-map-wrap{flex-direction:column;gap:.65rem;margin-bottom:.5rem;display:flex}.history-screen{z-index:1;width:100%;height:100%;padding-top:calc(var(--header-h) + var(--safe-top));padding-bottom:var(--history-chrome-h);box-sizing:border-box;background:#e8edf3;flex-direction:column;display:flex;position:absolute;inset:0;overflow:hidden}.history-map-stage{min-height:0;padding-bottom:var(--history-dock-h);flex-direction:column;flex:auto;display:flex;position:relative}.history-map-layer,.history-empty-map{z-index:1;width:100%;position:absolute;inset:0}.history-empty-map{color:var(--text-secondary);text-align:center;place-items:center;padding:2rem 1rem;font-size:.88rem;display:grid}.history-map-layer .map-root,.history-map-layer .leaflet-container{width:100%!important;height:100%!important}.history-filter{z-index:510;border-bottom:1px solid var(--border);background:#fffffffa;flex-shrink:0;padding:.35rem .65rem .4rem;position:relative;box-shadow:0 1px 6px #0f172a0f}.history-filter-card{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;border:1px solid #0f172a14;border-radius:14px;padding:.4rem .55rem .45rem;box-shadow:0 2px 10px #0f172a14}.history-filter-card--compact{padding:.35rem .5rem .4rem}.history-filter-toolbar{align-items:center;gap:.45rem;min-width:0;display:flex}.history-filter-summary{text-align:left;background:0 0;border:none;flex:0 auto;align-items:center;gap:.25rem;min-width:0;max-width:38%;padding:0;display:flex}.history-filter-summary-text{flex-direction:row;align-items:baseline;gap:.3rem;min-width:0;display:flex}.history-filter-summary-text strong{white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;overflow:hidden}.history-filter-summary-text .history-filter-period{flex-shrink:0;font-size:.66rem}.history-filter-toolbar .trail-preset-inline{flex:auto;min-width:0}.history-filter-toolbar .trail-preset-inline .trail-preset-chips{scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.history-filter-toolbar .trail-preset-inline .trail-preset-chips::-webkit-scrollbar{display:none}.history-filter-device{text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;gap:.45rem;width:100%;margin-bottom:.35rem;padding:0;display:flex}.history-filter-device-text{flex-direction:column;gap:.05rem;min-width:0;display:flex}.history-filter-device-text strong{white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;overflow:hidden}.history-filter-device-text span,.history-filter-period{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:.66rem;overflow:hidden}.history-filter-status{color:var(--text-muted);margin:.28rem 0 0;padding:0;font-size:.62rem;font-weight:600;line-height:1.3}.history-filter-status:empty{display:none}.trail-preset-inline .trail-preset-chips{gap:.28rem}.trail-preset-inline .trail-preset-chip{border-radius:999px;min-height:30px;padding:.28rem .55rem;font-size:.68rem}.trail-preset-inline-hint{color:var(--text-muted);margin:.28rem 0 0;font-size:.62rem;font-weight:600}.history-filter-label{color:var(--text-secondary);flex-direction:column;gap:.2rem;font-size:.72rem;font-weight:600;display:flex}.history-filter-bar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);text-align:left;background:#fffffff0;border:1px solid #0f172a14;border-radius:999px;justify-content:space-between;align-items:center;gap:.5rem;width:100%;padding:.45rem .65rem;display:flex;box-shadow:0 2px 12px #0f172a1a}.history-filter-main{flex-direction:column;gap:.05rem;min-width:0;display:flex}.history-filter-main strong{white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;overflow:hidden}.history-filter-main span{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:.68rem;overflow:hidden}.history-filter-chevron{color:var(--text-muted);flex-shrink:0;font-size:.65rem}.history-filter-body{border:1px solid var(--border);background:#fffffffa;border-radius:12px;flex-direction:column;gap:.4rem;margin-top:.35rem;padding:.55rem;display:flex;box-shadow:0 4px 16px #0f172a1a}.history-input{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;width:100%;padding:.45rem .6rem;font-size:.78rem}.history-preset-row,.history-date-row{flex-wrap:wrap;gap:.35rem;display:flex}.history-date-row{grid-template-columns:1fr 1fr;display:grid}.trail-preset-chips{scrollbar-width:none;gap:.35rem;display:flex;overflow-x:auto}.trail-preset-chips::-webkit-scrollbar{display:none}.trail-preset-chip{color:var(--text-secondary);white-space:nowrap;background:#0f172a0f;border:none;border-radius:12px;flex-shrink:0;min-height:36px;padding:.45rem .72rem;font-size:.74rem;font-weight:700}.trail-preset-chip.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px #e85d0447}.map-trail-bar{-webkit-backdrop-filter:blur(14px);background:#ffffffeb;border:1px solid #ffffffa6;border-radius:18px;flex-direction:column;gap:.35rem;padding:.55rem .65rem;display:flex;box-shadow:0 4px 24px #0f172a1f}.map-trail-bar-hint{color:var(--text-muted);text-align:center;margin:0;font-size:.72rem;font-weight:600;line-height:1.3}.map-trail-bar{width:100%;max-width:420px}.history-filter-presets{margin-top:.35rem}.map-bottom-row{left:.65rem;right:.65rem;bottom:calc(var(--bottom-chrome-h) + .45rem);z-index:var(--z-map-controls);pointer-events:none;justify-content:space-between;align-items:flex-end;gap:.65rem;display:flex;position:absolute}.map-screen--layout .map-bottom-row{bottom:calc(var(--bottom-chrome-h) + .45rem)}.map-bottom-row>*{pointer-events:auto}.map-bottom-row--end{justify-content:flex-end}.map-top-controls{z-index:var(--z-map-controls);pointer-events:auto;position:absolute;top:.45rem;right:.65rem}.map-control-dock{-webkit-backdrop-filter:blur(14px);background:#ffffffe6;border:1px solid #ffffffa6;border-radius:18px;flex-direction:column;gap:.35rem;padding:.35rem;display:flex;box-shadow:0 4px 24px #0f172a24}.history-mini-chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);border-radius:999px;padding:.28rem .55rem;font-size:.68rem;font-weight:600}.history-mini-chip.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-hover)}.history-apply-btn{background:var(--primary);color:#fff;border:none;border-radius:999px;align-self:flex-start;padding:.35rem .75rem;font-size:.72rem;font-weight:700}.history-map-fabs{display:none}.history-map-controls{z-index:var(--z-map-controls);pointer-events:none;flex-direction:column;gap:.35rem;display:flex;position:absolute}.history-map-controls .map-fab-icon,.history-map-controls .map-zoom-stack{pointer-events:auto}.history-map-controls--top{top:.45rem;right:.65rem}.history-map-controls--bottom{right:.65rem;bottom:calc(.45rem + var(--history-dock-h));top:auto}.history-map-controls--left,.history-map-controls--right{display:none}.history-snap-debug{left:.55rem;bottom:calc(.5rem + var(--history-dock-h));z-index:380;color:#f8fafc;pointer-events:auto;background:#0f172ae0;border-radius:12px;flex-direction:column;gap:.35rem;width:min(18.5rem,100% - 4.5rem);max-height:min(52vh,22rem);padding:.55rem .65rem;font-size:.68rem;line-height:1.35;display:flex;position:absolute;overflow:hidden;box-shadow:0 8px 24px #0f172a47}.history-snap-debug--collapsed{width:auto;min-width:10rem;max-height:none}.history-snap-debug-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.history-snap-debug-head strong{font-size:.72rem;font-weight:700}.history-snap-debug-toggle{color:inherit;cursor:pointer;background:#ffffff1f;border:none;border-radius:999px;padding:.15rem .45rem;font-size:.62rem}.history-snap-debug-phase{color:#cbd5e1}.history-snap-debug-bar{background:#ffffff26;border-radius:999px;height:4px;overflow:hidden}.history-snap-debug-bar span{background:linear-gradient(90deg,#22c55e,#16a34a);height:100%;transition:width .25s;display:block}.history-snap-debug-stats,.history-snap-debug-counts,.history-snap-debug-legend{flex-wrap:wrap;gap:.35rem .55rem;display:flex}.history-snap-debug-counts span,.history-snap-debug-legend span{font-weight:600}.snap-debug-outcome--ok{color:#4ade80}.snap-debug-outcome--corridor{color:#fb923c}.snap-debug-outcome--fail{color:#f87171}.snap-debug-outcome--skip{color:#94a3b8}.snap-debug-outcome--budget{color:#c084fc}.snap-debug-swatch{vertical-align:middle;border-radius:999px;width:.65rem;height:.2rem;margin-right:.2rem;display:inline-block}.snap-debug-swatch--ok{background:#16a34a}.snap-debug-swatch--corridor{background:#ea580c}.snap-debug-swatch--fail{background:#dc2626}.snap-debug-swatch--skip{background:#94a3b8}.history-snap-debug-log{border-top:1px solid #ffffff1f;max-height:9.5rem;margin:0;padding:.35rem 0 0;list-style:none;overflow-y:auto}.history-snap-debug-log li{grid-template-columns:auto auto 1fr;gap:.25rem .35rem;padding:.12rem 0;display:grid}.history-snap-debug-log-idx{opacity:.65;font-variant-numeric:tabular-nums}.history-snap-debug-log-outcome{font-weight:700}.history-snap-debug-log-meta{opacity:.85;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.history-snap-debug-log-empty{opacity:.7;font-style:italic;display:block}.map-fab-pill.compact{min-width:2rem;padding:.32rem .45rem;font-size:.68rem;font-weight:700;line-height:1}.history-legend-float,.map-direction-legend{display:none}.history-toast{z-index:370;border:1px solid var(--border);pointer-events:none;text-align:center;background:#fffffff2;border-radius:999px;max-width:calc(100% - 2rem);padding:.35rem .7rem;font-size:.72rem;font-weight:600;position:absolute;top:.45rem;left:50%;transform:translate(-50%);box-shadow:0 2px 10px #0f172a1a}.history-toast.error{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.history-snap-toast{z-index:530;pointer-events:none;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.history-snap-toast-card{color:#f8fafc;text-align:center;background:#0f172ae6;border-radius:16px;flex-direction:column;align-items:center;gap:.45rem;min-width:min(16rem,100% - 2rem);max-width:20rem;padding:1rem 1.25rem;animation:.22s ease-out map-toast-in;display:flex;box-shadow:0 16px 48px #0f172a61}.history-snap-toast-card strong{font-size:.92rem;font-weight:700}.history-snap-toast-card span{color:#cbd5e1;font-size:.76rem;font-weight:500}.history-snap-toast-spinner{border:2.5px solid #ffffff38;border-top-color:#fff;border-radius:50%;width:24px;height:24px;animation:.75s linear infinite history-snap-spin}@keyframes history-snap-spin{to{transform:rotate(360deg)}}.history-dock{left:0;right:0;bottom:var(--bottom-chrome-h);z-index:calc(var(--z-bottom-nav) + 10);padding:.35rem .65rem calc(.35rem + var(--safe-bottom));border-top:1px solid var(--border);pointer-events:none;min-height:var(--history-dock-h);box-sizing:border-box;background:#fffffffa;flex-shrink:0;position:fixed;box-shadow:0 -2px 12px #0f172a14}.history-playback--compact{border-radius:12px;margin-bottom:0;padding:.35rem .45rem .4rem}.history-playback--compact .history-playback-row{margin-bottom:.2rem}.history-list-btn{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);white-space:nowrap;border-radius:999px;flex-shrink:0;padding:.22rem .45rem;font-size:.58rem;font-weight:700}.history-dock>*{pointer-events:auto}.history-tabs{scrollbar-width:none;gap:.25rem;display:flex;overflow-x:auto}.history-tabs::-webkit-scrollbar{display:none}.history-tabs button,.history-sheet-tabs button{color:var(--text-secondary);background:#ffffffeb;border:1px solid #0f172a1a;border-radius:999px;flex-shrink:0;padding:.28rem .55rem;font-size:.68rem;font-weight:700}.history-tabs button.active,.history-sheet-tabs button.active{background:var(--primary);border-color:var(--primary);color:#fff}.history-playback{background:#fffffff5;border:1px solid #0f172a14;border-radius:14px;margin-bottom:.35rem;padding:.45rem .55rem .5rem;box-shadow:0 2px 12px #0f172a14}.history-playback-head{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.35rem;display:flex}.history-playback-head strong{color:var(--text);font-size:.72rem}.history-playback-hint{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:.62rem;overflow:hidden}.history-details-btn{width:100%;color:var(--text-secondary);background:#ffffffeb;border:1px solid #0f172a1a;border-radius:999px;justify-content:center;align-items:center;gap:.4rem;padding:.38rem .65rem;font-size:.68rem;font-weight:700;display:flex}.history-details-badge{color:var(--text-secondary);background:#1e293b14;border-radius:999px;padding:.08rem .35rem;font-size:.6rem;font-weight:800}.history-playback-row{align-items:center;gap:.28rem;margin-bottom:.22rem;display:flex}.history-icon-btn{border:1px solid var(--border);background:var(--surface-2);width:28px;height:28px;color:var(--text-secondary);border-radius:999px;flex-shrink:0;place-items:center;font-size:.65rem;display:grid}.history-icon-btn.play{background:var(--primary);border-color:var(--primary);color:#fff;font-size:.65rem}.history-icon-btn.play:disabled{opacity:.45;cursor:not-allowed}.history-playback-meta{flex-direction:column;flex:1;gap:.05rem;min-width:0;display:flex}.history-playback-time{white-space:nowrap;text-overflow:ellipsis;font-size:.72rem;font-weight:700;overflow:hidden}.history-playback-sub{color:var(--text-secondary);font-size:.68rem}.history-speed-btn{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);border-radius:999px;flex-shrink:0;padding:.22rem .45rem;font-size:.65rem;font-weight:800}.history-playback-slider{width:100%;height:4px;accent-color:var(--primary)}.history-sheet{z-index:var(--z-float-panel);padding-bottom:calc(var(--nav-h) + var(--safe-bottom));background:#fffffffa;border-radius:16px 16px 0 0;flex-direction:column;display:flex;position:fixed;inset:42% 0 0;overflow:hidden;box-shadow:0 -8px 32px #0f172a24}.history-sheet-head{justify-content:space-between;align-items:center;gap:.5rem;padding:.55rem .65rem .25rem;display:flex}.history-sheet-head strong{font-size:.82rem}.history-sheet-tabs{-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-shrink:0;gap:.25rem;padding:0 .65rem .45rem;display:flex;overflow:auto hidden}.history-sheet-tabs::-webkit-scrollbar{display:none}.history-sheet-close{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);border-radius:999px;margin:0;padding:.22rem .55rem;font-size:.68rem;font-weight:700}.history-sheet-scroll{flex:1;padding:.45rem .65rem .75rem;overflow-y:auto}.direction-legend.compact{gap:.5rem;width:auto;font-size:.62rem}.history-map-card{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);height:360px;min-height:360px;position:relative;overflow:hidden}.history-map-card .map-root,.history-map-card .leaflet-container{min-height:360px;height:100%!important}.history-map{height:100%;min-height:360px}.leaflet-control-attribution{border-radius:6px 0 0;font-size:10px;background:#ffffffd9!important}.map-pin{background:0 0!important;border:none!important}.parking-pin.leaflet-div-icon{width:30px!important;height:36px!important}.parking-bubble{pointer-events:none;filter:drop-shadow(0 2px 6px #0f172a3d);width:30px;height:36px;line-height:0;position:relative}.parking-bubble svg{width:30px;height:36px;display:block;overflow:visible}.pin-wrap{will-change:transform;transform-origin:50%;place-items:center;width:36px;height:36px;display:grid;position:relative}.pin-direction-icon{filter:drop-shadow(0 0 2px #fff)drop-shadow(0 2px 4px #0f172a47);font-size:1.45rem;line-height:1;transform:rotate(-45deg)}.map-pin--stopped .pin-direction-icon{filter:drop-shadow(0 0 3px #fff)drop-shadow(0 0 8px #ef4444a6)drop-shadow(0 2px 4px #0f172a4d)}.leaflet-tooltip.device-map-label{color:#0f172a;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;background:#fffffff5;border:1px solid #0f172a1f;border-radius:8px;max-width:10rem;margin:0;padding:.22rem .55rem;font-size:.72rem;font-weight:700;line-height:1.2;overflow:hidden;box-shadow:0 2px 8px #0f172a24}.leaflet-tooltip.device-map-label:before{display:none}.leaflet-tooltip.device-map-label.selected{background:var(--primary-soft);color:var(--primary-hover);border-color:#e85d0473}.live-comet-canvas{z-index:450;pointer-events:none;position:absolute;top:0;left:0}.pin-body{border:3px solid #fff;border-radius:50%;width:14px;height:14px;box-shadow:0 2px 8px #00000040}.data-card-btn{text-align:left;cursor:pointer;align-items:flex-start;gap:.55rem;width:100%;display:flex}.data-card-btn.active{border-color:var(--primary);background:#fff7ed}.stop-card-icon{color:#fff;background:#1e293b;border-radius:8px;flex-shrink:0;place-items:center;width:28px;height:28px;font-size:.82rem;font-weight:900;display:grid}.stop-card-body{flex:1;min-width:0}.stop-card-body h3{margin:0 0 .25rem}.external-map-links{flex-wrap:wrap;gap:.35rem;margin-top:.45rem;display:flex}.external-map-links.compact{margin-top:.35rem}.external-map-link{color:#0f172a;background:#f8fafc;border:1px solid #0f172a1f;border-radius:999px;align-items:center;padding:.28rem .5rem;font-size:.62rem;font-weight:700;text-decoration:none;display:inline-flex}.external-map-link.street-view{color:#c2410c;background:#fff7ed;border-color:#fdba74}.stop-popup{min-width:180px}.stop-popup p{color:var(--text-secondary);margin:.15rem 0;font-size:.72rem}.stop-popup strong{font-size:.78rem}.stop-card-actions{margin-top:.35rem}.preset-row{flex-wrap:wrap;gap:.45rem;margin-bottom:.75rem;display:flex}.preset-chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);border-radius:999px;padding:.4rem .85rem;font-size:.8rem;font-weight:600}.preset-chip.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-hover)}.device-chip{top:calc(var(--header-h) + var(--safe-top) + .5rem);z-index:350;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff0;border:1px solid #fff9;border-radius:18px;flex-direction:column;align-items:center;gap:.1rem;max-width:calc(100% - 6.5rem);padding:.55rem 1rem;display:flex;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0f172a1a}.device-chip--inline{width:100%;max-width:420px;position:static;transform:none}.device-chip--static{cursor:default;pointer-events:none}.device-sheet-backdrop{z-index:calc(var(--z-float-panel) - 1);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a59;border:none;transition:opacity .2s;position:fixed;inset:0}.device-sheet{z-index:var(--z-float-panel);border-top:1px solid var(--border);pointer-events:auto;will-change:transform;background:#fffffffa;border-radius:16px 16px 0 0;flex-direction:column;transition:transform .28s cubic-bezier(.32,.72,0,1);display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 20px #0f172a1f}.device-sheet.dragging{transition:none}.device-sheet-handle{text-align:left;touch-action:none;cursor:grab;background:0 0;border:none;flex-shrink:0;align-items:center;width:100%;min-height:40px;padding:.45rem .75rem .32rem;display:flex;position:relative}.device-sheet.dragging .device-sheet-handle{cursor:grabbing}.device-sheet-grab{background:#0f172a2e;border-radius:999px;width:32px;height:4px;position:absolute;top:.28rem;left:50%;transform:translate(-50%)}.device-sheet-peek-main{flex-direction:column;flex:1;gap:.05rem;min-width:0;padding-top:.28rem;display:flex}.device-sheet-peek-main strong{font-size:.84rem;font-weight:700}.device-sheet-peek-main span{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:.72rem;overflow:hidden}.device-sheet-body{flex-shrink:0;padding:0 .65rem .45rem;overflow:visible}.device-sheet-meta-row{flex-wrap:wrap;align-items:center;gap:.35rem .5rem;margin-bottom:.35rem;display:flex}.device-sheet-body .status-badge{padding:.14rem .4rem;font-size:.64rem}.device-sheet-updated{min-width:0;color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;text-align:right;flex:1;font-size:.68rem;font-weight:600;overflow:hidden}.device-id--inline{width:100%;margin-top:-.15rem;font-size:.62rem}.device-sheet-stats{grid-template-columns:repeat(3,1fr);gap:.3rem;margin-bottom:.35rem;display:grid}.device-sheet-stat{background:var(--surface-2);border:1px solid var(--border);border-radius:9px;flex-direction:column;gap:.02rem;min-width:0;padding:.32rem .35rem;display:flex}.device-sheet-stat span{letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);font-size:.56rem;font-weight:700}.device-sheet-stat strong{font-size:.74rem;line-height:1.15}.device-sheet-stat small{color:var(--text-secondary);font-size:.58rem;font-weight:600;line-height:1.1}.device-sheet-stat--highlight{background:var(--primary-soft);border-color:#e85d0440}.device-sheet-location{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:.2rem .35rem;margin-bottom:.35rem;padding:.32rem 0;font-size:.72rem;line-height:1.25;display:flex}.device-sheet-address{white-space:nowrap;text-overflow:ellipsis;flex:8rem;min-width:0;font-weight:600;overflow:hidden}.device-sheet-sep{color:var(--text-muted);flex-shrink:0}.device-sheet-coords{color:var(--text-muted);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:.64rem}.device-sheet-location .external-map-links.compact{flex-wrap:nowrap;gap:.25rem;margin:0 0 0 auto;display:inline-flex}.device-sheet-actions{grid-template-columns:1fr 1fr;gap:.35rem;display:grid}.btn-compact{text-align:center;border-radius:10px;margin-top:0;padding:.48rem .45rem;font-size:.74rem;font-weight:700}.map-screen--layout:has(.device-sheet) .map-bottom-row{bottom:calc(.65rem + env(safe-area-inset-bottom,0px))}:is(.map-screen--layout:has(.device-sheet.expanded) .map-bottom-row,.map-screen--layout:has(.device-sheet.dragging) .map-bottom-row){opacity:.2;pointer-events:none}.metric-card--highlight{background:var(--primary-soft);border-color:#e85d0440}.metric-sub{color:var(--text-secondary);margin-top:.15rem;font-size:.72rem;font-weight:600;display:block}.info-row--address{align-items:flex-start}.info-row-stack{text-align:right;flex-direction:column;align-items:flex-end;gap:.25rem;max-width:62%;display:flex}.info-row-stack .muted{font-size:.74rem}.device-screen.map-screen{height:100%;position:absolute;inset:0}.device-screen.map-screen .device-map-wrap{inset:0;top:calc(var(--header-h) + var(--safe-top));bottom:var(--bottom-chrome-h);position:absolute}.chip-name{font-size:.9rem;font-weight:700}.chip-meta{color:var(--text-secondary);font-size:.78rem}.header-battery{color:var(--text-secondary);box-shadow:none;white-space:nowrap;background:0 0;border:none;flex-shrink:0;align-items:center;gap:.15rem;margin:0;padding:.12rem .2rem;font-size:.68rem;font-weight:700;line-height:1;display:inline-flex}.header-battery-pct{font-variant-numeric:tabular-nums;min-width:1.65rem}.header-battery--ok{color:#15803d}.header-battery--warn{color:#b45309}.header-battery--low{color:#b91c1c}.header-battery--unknown{color:var(--text-muted)}.header-battery.charging .header-battery-pct:after{content:" ⚡";font-size:.6rem}.header-battery-charge{color:var(--success);text-transform:uppercase;letter-spacing:.02em;font-size:.58rem;font-weight:700}.fab-locate{background:var(--surface);border:1px solid var(--border);width:48px;height:48px;box-shadow:var(--shadow);color:var(--primary);border-radius:14px;place-items:center;display:grid}.map-fabs-left,.map-fabs-right,.map-tools-left{bottom:calc(var(--nav-h) + var(--safe-bottom) + .45rem);z-index:var(--z-map-controls);flex-direction:column;gap:.35rem;display:flex;position:absolute}.map-tools-left,.map-fabs-left{left:.65rem}.map-fabs-right{right:.65rem}.device-map-fabs{z-index:400;flex-direction:column;gap:.35rem;display:flex;position:absolute;top:.75rem;right:.75rem}.map-fab-icon{width:36px;height:36px;color:var(--text-secondary);-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:#fffffffa;border:none;border-radius:10px;place-items:center;padding:0;font-size:1rem;display:grid;box-shadow:0 1px 4px #0f172a14}.map-fab-icon.on{background:var(--primary);color:#fff;box-shadow:0 4px 14px #e85d0459}.map-fab-icon.primary{color:var(--primary);background:#fff}.map-fab-icon:disabled{opacity:.5}.map-legend-top,.history-legend-top{top:calc(var(--header-h) + var(--safe-top) + 4.25rem);z-index:340;pointer-events:none;background:#fffffff0;border:1px solid #0f172a14;border-radius:999px;padding:.22rem .5rem;position:absolute;left:.65rem;box-shadow:0 2px 8px #0f172a14}.history-legend-top{display:none}.map-zoom-stack{flex-direction:column;gap:.35rem;display:flex}.map-zoom-btn{font-size:1.05rem;font-weight:800;line-height:1}.leaflet-control-zoom{display:none!important}.map-fab-pill{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);color:var(--text-secondary);white-space:nowrap;border-radius:14px;padding:.5rem .75rem;font-size:.75rem;font-weight:700}.map-fab-pill.on{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-hover)}.map-fab-pill:disabled{opacity:.55}.map-phone-fab{letter-spacing:.03em;font-size:.48rem;font-weight:800;line-height:1}.map-phone-fab.on{background:var(--success-soft);color:#15803d}.map-phone-fab.off{color:var(--text-muted)}.map-follow-switch{background:#fffffffa;border:1px solid #0f172a14;border-radius:12px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 1px 4px #0f172a14}.map-follow-mode{width:36px;height:36px;color:var(--text-secondary);background:0 0;border:none;place-items:center;padding:0;font-size:.72rem;font-weight:800;display:grid}.map-follow-mode+.map-follow-mode{border-top:1px solid #0f172a14}.map-follow-mode.active{background:var(--primary-soft);color:var(--primary-hover)}.map-follow-mode.map-follow-you.active{color:#1d4ed8;background:#2563eb1f}.map-follow-mode.map-follow-both{letter-spacing:-.02em;padding:0 .15rem;font-size:.48rem;font-weight:800;line-height:1.05}.map-follow-mode.map-follow-both.active{color:var(--primary-hover);background:linear-gradient(#e85d0424,#e85d0414)}.map-toast-confirm{background:#0f172ae0;padding:.62rem 1rem;font-size:.82rem;font-weight:600;animation:.2s ease-out map-toast-in}.map-toast-error{background:#b91c1ceb;top:3.45rem}@keyframes map-toast-in{0%{opacity:0;transform:translate(-50%)translateY(-6px)}to{opacity:1;transform:translate(-50%)translateY(0)}}.map-toast{top:calc(var(--header-h) + var(--safe-top) + 3.5rem);z-index:360;color:#fff;text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:none;background:#0f172ad1;border-radius:14px;max-width:calc(100% - 2rem);padding:.55rem .85rem;font-size:.78rem;position:absolute;left:50%;transform:translate(-50%)}.map-toast-float{z-index:360;top:.65rem;left:50%;transform:translate(-50%)}.fab-you{color:#2563eb;font-size:.72rem;font-weight:800}.you-marker{color:#fff;letter-spacing:.03em;background:#3b82f6;border:3px solid #fff;border-radius:50%;place-items:center;width:36px;height:36px;font-size:.72rem;font-weight:800;display:grid;box-shadow:0 2px 10px #2563eb73}.you-pin{background:0 0;border:none}.device-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);transition:border-color .15s;display:flex;overflow:hidden}.device-card.active{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}.device-card-main{flex:1;min-width:0;padding:.85rem}.device-card-top{align-items:center;gap:.65rem;display:flex}.device-avatar{background:var(--primary-soft);width:40px;height:40px;color:var(--primary);border-radius:12px;flex-shrink:0;place-items:center;font-weight:800;display:grid}.device-card-info{flex:1;min-width:0}.device-card-info h3{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.95rem;overflow:hidden}.device-id{color:var(--text-muted);margin:.1rem 0 0;font-size:.75rem}.status-badge{white-space:nowrap;border-radius:999px;align-items:center;gap:.3rem;padding:.28rem .55rem;font-size:.68rem;font-weight:700;display:inline-flex}.status-badge.online{color:var(--success);background:var(--success-soft)}.status-badge.offline{color:var(--danger);background:var(--danger-soft)}.status-badge.unknown{color:var(--warning);background:var(--warning-soft)}.status-dot{background:currentColor;border-radius:50%;width:6px;height:6px}.device-card-stats{color:var(--text-secondary);flex-wrap:wrap;gap:.4rem .75rem;margin-top:.5rem;font-size:.78rem;display:flex}.stat-chip{align-items:center;gap:.2rem;display:inline-flex}.stale-badge{color:var(--warning);font-weight:600}.device-card-action{border-left:1px solid var(--border);width:44px;color:var(--text-muted);place-items:center;display:grid}.page-scroll{height:100%;padding:1rem;padding-bottom:calc(1rem + var(--safe-bottom));overflow-y:auto}.page-head h1{margin:0;font-size:1.25rem}.page-head p{color:var(--text-secondary);margin:.25rem 0 1rem;font-size:.9rem}.filter-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem;padding:1rem}.filter-row{grid-template-columns:1fr 1fr;gap:.65rem;display:grid}.field{flex-direction:column;gap:.35rem;margin-bottom:.75rem;display:flex}.field span{color:var(--text-secondary);font-size:.78rem;font-weight:600}.field-hint{color:var(--text-muted);font-size:.72rem;line-height:1.35}.field input,.field select{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;outline:none;padding:.7rem .85rem}.field input:focus,.field select:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.tab-bar{gap:.4rem;margin-bottom:1rem;display:flex;overflow-x:auto}.tab-bar button{border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);border-radius:999px;flex-shrink:0;padding:.5rem .9rem;font-size:.82rem;font-weight:600}.tab-bar button.active{background:var(--primary);border-color:var(--primary);color:#fff}.history-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.65rem;margin-bottom:.85rem;display:flex}.direction-legend{width:100%;color:var(--text-secondary);flex-wrap:wrap;align-items:center;gap:.75rem;font-size:.76rem;font-weight:600;display:flex}.legend-item{align-items:center;gap:.35rem;display:inline-flex}.legend-swatch{border-radius:999px;width:1.35rem;height:.28rem;display:inline-block}.legend-swatch.outbound{background:#2563eb}.legend-swatch.return{background:repeating-linear-gradient(90deg,#dc2626 0 6px,#0000 6px 10px)}.route-dir-arrow{background:0 0;border:none}.route-dir-arrow-inner{filter:drop-shadow(0 0 2px #fff)drop-shadow(0 0 4px #fff);opacity:.95;place-items:center;width:14px;height:14px;line-height:1;display:grid}.route-dir-arrow-icon{font-size:.62rem}.history-stat{color:var(--text-secondary);font-size:.88rem;font-weight:600}.history-toggles{flex-wrap:wrap;gap:.4rem;display:flex}.toggle-chip{border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);border-radius:999px;align-items:center;gap:.35rem;padding:.38rem .75rem;font-size:.78rem;font-weight:600;display:inline-flex}.toggle-chip.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-hover)}.toggle-chip input{accent-color:var(--primary)}.toggle-chip.icon-chip,.map-fab-pill.icon-fab{justify-content:center;min-width:2.5rem;padding-inline:.65rem}.map-toast-bottom{top:auto;bottom:6.5rem}.point-list{flex-direction:column;gap:.45rem;max-height:420px;margin-top:.85rem;display:flex;overflow-y:auto}.point-row{text-align:left;border:1px solid var(--border);background:var(--surface);border-radius:12px;align-items:center;gap:.75rem;width:100%;padding:.75rem .85rem;display:flex}.point-row.active{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}.point-num{background:var(--surface-2);width:28px;height:28px;color:var(--text-secondary);border-radius:8px;flex-shrink:0;place-items:center;font-size:.78rem;font-weight:700;display:grid}.point-row.active .point-num{background:var(--primary);color:#fff}.point-body{flex-direction:column;gap:.1rem;min-width:0;display:flex}.point-body strong{font-size:.88rem}.point-body span{color:var(--text-secondary);font-size:.78rem}.playback-bar{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);margin-top:.65rem;padding:.85rem 1rem}.playback-top{flex-wrap:wrap;align-items:center;gap:.65rem;margin-bottom:.65rem;display:flex}.playback-actions{gap:.4rem;display:flex}.playback-btn{border:1px solid var(--border);background:var(--surface-2);width:40px;height:40px;color:var(--text-secondary);border-radius:12px;font-size:.95rem}.playback-btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;width:auto;min-width:108px;padding:0 .85rem;font-size:.82rem;font-weight:700}.playback-meta{flex-direction:column;flex:1;gap:.1rem;min-width:140px;display:flex}.playback-meta strong{font-size:.85rem}.playback-meta span{color:var(--text-secondary);font-size:.75rem}.playback-speeds{flex-wrap:wrap;gap:.35rem;display:flex}.speed-chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);border-radius:999px;padding:.28rem .55rem;font-size:.72rem;font-weight:700}.speed-chip.active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-hover)}.playback-slider{width:100%;accent-color:var(--primary)}.playback-hint{color:var(--text-muted);text-align:center;margin:.45rem 0 0;font-size:.72rem}.data-cards{flex-direction:column;gap:.65rem;display:flex}.data-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem 1rem}.data-card h3{margin:0 0 .4rem;font-size:.92rem}.data-card-stats{color:var(--text-secondary);flex-wrap:wrap;gap:.5rem 1rem;font-size:.82rem;display:flex}.device-screen{flex-direction:column;height:100%;display:flex;overflow:hidden}.device-map-wrap{flex:1;min-height:40%;position:relative}.back-fab{z-index:400;background:var(--surface);border:1px solid var(--border);width:40px;height:40px;box-shadow:var(--shadow);border-radius:12px;position:absolute;top:.75rem;left:.75rem}.detail-sheet{background:var(--surface);border-top:1px solid var(--border);border-radius:18px 18px 0 0;max-height:52%;padding:1rem;overflow-y:auto}.detail-header h1{margin:.5rem 0 .15rem;font-size:1.25rem}.metric-grid{grid-template-columns:repeat(2,1fr);gap:.65rem;margin:1rem 0;display:grid}.metric-card{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:.85rem}.metric-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.2rem;font-size:.72rem;display:block}.metric-card strong{font-size:1rem}.info-list{margin-bottom:1rem}.info-row{border-bottom:1px solid var(--border);justify-content:space-between;gap:1rem;padding:.65rem 0;font-size:.88rem;display:flex}.info-row span{color:var(--text-secondary)}.info-row strong{text-align:right;max-width:55%}.admin-page h1{margin:0 0 1rem;font-size:1.25rem}.admin-page h2{margin:0 0 .75rem;font-size:1rem}.admin-page section{margin-bottom:1.25rem}.admin-form{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin-top:1rem;padding:1rem}.admin-device-list{flex-direction:column;gap:.65rem;display:flex}.admin-device-card{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:.75rem;padding:.9rem 1rem;display:flex}@media (width>=540px){.admin-device-card{flex-direction:row;justify-content:space-between;align-items:center}}.admin-device-main{flex-direction:column;gap:.25rem;min-width:0;display:flex}.admin-device-main strong{font-size:.95rem}.admin-device-status{text-transform:uppercase;color:var(--text-muted);font-size:.72rem;font-weight:700}.admin-device-status.online{color:var(--success)}.admin-device-id{color:var(--text-muted);word-break:break-all;font-size:.72rem}.admin-device-actions{flex-wrap:wrap;flex-shrink:0;gap:.5rem;display:flex}.admin-device-actions .ghost{text-align:center;min-width:7.5rem}.table-wrap{border:1px solid var(--border);background:var(--surface);border-radius:12px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.85rem}th,td{border-bottom:1px solid var(--border);text-align:left;padding:.7rem}th{background:var(--surface-2);color:var(--text-secondary);text-transform:uppercase;font-size:.72rem}.inline-form{flex-direction:column;gap:.5rem;display:flex}.ghost{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;padding:.55rem .85rem}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:min(400px,100% - 2rem);height:fit-content;box-shadow:var(--shadow);z-index:var(--z-modal);margin:auto;padding:1rem;position:fixed;inset:0}.row-actions{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.primary,.btn-primary{background:var(--primary);color:#fff;border:none;border-radius:12px;padding:.85rem 1rem;font-weight:700}.primary:disabled,.btn-primary:disabled{opacity:.55;cursor:not-allowed}.btn-full{text-align:center;width:100%;margin-top:.5rem;display:block}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:.85rem 1rem;font-weight:700;display:block}.text-btn{color:var(--primary);white-space:nowrap;font-weight:600}.login-screen{background:linear-gradient(160deg,#fff7ed 0%,#f3f5f9 45%,#fff 100%);place-items:center;min-height:100dvh;padding:1.25rem;display:grid}.login-content{width:min(400px,100%)}.login-hero{text-align:center;margin-bottom:1.5rem}.login-logo{background:var(--primary);color:#fff;border-radius:16px;place-items:center;width:60px;height:60px;margin:0 auto 1rem;font-size:1.6rem;font-weight:800;display:grid;box-shadow:0 8px 24px #e85d044d}.login-hero h1{margin:0;font-size:1.5rem}.login-hero p{color:var(--text-secondary);margin:.35rem 0 0}.login-form{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:18px;padding:1.25rem}.field-row{gap:.5rem;display:flex}.field-row input{flex:1}.login-footer{text-align:center;color:var(--text-secondary);margin-top:1rem;font-size:.85rem}.login-footer a{color:var(--primary);font-weight:600}.alert{border-radius:12px;margin-bottom:.85rem;padding:.75rem;font-size:.88rem}.alert.error{background:var(--danger-soft);color:var(--danger)}.alert.info{background:var(--primary-soft);color:var(--primary-hover)}.empty-state{text-align:center;color:var(--text-muted);padding:2rem 1rem}.skeleton{background:linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2));border-radius:var(--radius);background-size:200% 100%;min-height:88px;animation:1.2s ease-in-out infinite pulse}.page-loading,.splash{place-items:center;gap:1rem;height:100%;min-height:100vh;display:grid}.app-error{text-align:center;background:var(--bg);min-height:100dvh;color:var(--text);place-content:center;gap:.75rem;padding:2rem;display:grid}.app-error h1{margin:0;font-size:1.25rem}.app-error p{color:var(--text-secondary);margin:0}.splash-logo{color:var(--primary);font-size:1.4rem;font-weight:800}.splash-spinner{border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{0%,to{opacity:.6}50%{opacity:1}}.map-screen--live{padding-top:calc(var(--header-h) + var(--safe-top))}.map-screen--live .map-viewport{flex:auto;min-height:0;position:relative}@media (width>=900px){:root{--history-dock-h:72px;--nav-h:64px}.history-filter{padding:.5rem 1rem .55rem}.history-filter-device-text strong{font-size:1rem}.history-filter-device-text span{font-size:.85rem}.trail-preset-inline .trail-preset-chip{min-height:36px;padding:.35rem .7rem;font-size:.82rem}.history-dock{padding:.5rem 1rem .55rem}.history-playback--compact{padding:.5rem .65rem .55rem}.history-playback-time{font-size:.95rem}.history-playback-sub{font-size:.85rem}.history-icon-btn{width:38px;height:38px;font-size:.85rem}.history-speed-btn,.history-list-btn{padding:.35rem .7rem;font-size:.82rem}.history-playback-slider{height:7px}.header-last-update-label{font-size:.55rem}.header-last-update-value{font-size:.72rem}.header-battery{font-size:.78rem}.app-shell.map-mode .bottom-nav{border-radius:0;max-width:none;margin:0}.app-shell{grid-template-columns:1fr;grid-template-rows:var(--header-h) 1fr}.app-shell:not(.map-mode){grid-template-rows:var(--header-h) 1fr var(--nav-h)}.app-header{grid-column:1}.bottom-nav{z-index:var(--z-bottom-nav);border-radius:0;max-width:none;margin:0;display:block;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -2px 16px #0f172a14}.bottom-nav-track{width:100%;max-width:none;margin:0 auto}.bottom-nav-item svg{width:1.65rem;height:1.65rem}.bottom-nav-item{gap:.22rem;padding:.32rem .5rem;font-size:.68rem}.app-main{grid-column:1;width:100%}.app-shell.map-mode .app-header{left:0;right:0}.page-scroll,.admin-page{width:100%;max-width:960px;margin:0 auto}.device-drawer{padding-top:var(--safe-top);box-shadow:var(--shadow);top:0}}@media (width<=480px){.filter-row{grid-template-columns:1fr}}.q8-config-page{padding-bottom:2rem}.q8-page-head{flex-direction:column;gap:.35rem;margin-bottom:1rem;display:flex}.q8-page-head h1{margin:0;font-size:1.25rem}.q8-back{align-self:flex-start;font-size:.875rem}.q8-admin-link{margin-left:.5rem;text-decoration:none}.q8-config .q8-status{border-radius:var(--radius);align-items:center;gap:.5rem;margin-bottom:1rem;padding:.65rem .85rem;font-size:.875rem;display:flex}.q8-status.online{background:color-mix(in srgb, #16a34a 12%, var(--surface));color:var(--text)}.q8-status.offline{background:color-mix(in srgb, #dc2626 10%, var(--surface));color:var(--text)}.q8-status-dot{background:currentColor;border-radius:50%;width:8px;height:8px}.q8-status.online .q8-status-dot{background:#16a34a}.q8-status.offline .q8-status-dot{background:#dc2626}.q8-section{margin-bottom:1.25rem}.q8-section h2{margin:0 0 .5rem;font-size:1rem}.q8-hint{margin:0 0 .75rem;font-size:.8125rem}.q8-explainer{background:var(--primary-soft);border-radius:var(--radius);border:1px solid #e85d042e;padding:.85rem 1rem}.q8-explainer-text{color:var(--text-secondary);margin:0;font-size:.84rem;line-height:1.55}.q8-preset-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.75rem;display:grid}.q8-preset-card{text-align:left;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;flex-direction:column;align-items:flex-start;gap:.35rem;padding:.9rem 1rem;transition:border-color .15s,box-shadow .15s;display:flex}.q8-preset-card:hover:not(:disabled){border-color:var(--primary);box-shadow:var(--shadow)}.q8-preset-head{flex-wrap:wrap;align-items:baseline;gap:.45rem;width:100%;display:flex}.q8-preset-card strong{font-size:.9375rem}.q8-preset-tag{text-transform:uppercase;letter-spacing:.04em;color:var(--primary);background:var(--primary-soft);border-radius:999px;padding:.12rem .45rem;font-size:.68rem;font-weight:700}.q8-preset-desc{color:var(--text-secondary);margin:0;font-size:.82rem;line-height:1.45}.q8-preset-bullets{color:var(--text-muted);margin:0;padding-left:1.1rem;font-size:.78rem;line-height:1.45}.q8-preset-bullets li+li{margin-top:.2rem}.q8-inline-row,.q8-network-grid{flex-wrap:wrap;align-items:flex-end;gap:.65rem;display:flex}.q8-network-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));display:grid}.q8-inline-row label,.q8-network-grid label{flex-direction:column;flex:1;gap:.25rem;min-width:120px;font-size:.8125rem;display:flex}.q8-inline-row input,.q8-network-grid input{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);padding:.5rem .65rem}.q8-btn-row{flex-wrap:wrap;gap:.5rem;margin-top:.65rem;display:flex}.q8-tabs{flex-wrap:wrap;gap:.35rem;margin-bottom:.75rem;display:flex}.q8-tabs button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;padding:.4rem .75rem;font-size:.8125rem}.q8-tabs button.active{background:var(--accent);border-color:var(--accent);color:#fff}.q8-cmd-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.q8-cmd-item{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.75rem;display:flex}.q8-cmd-item code{word-break:break-all;font-size:.8125rem}.q8-cmd-item p{margin:.25rem 0 0;font-size:.8125rem}.q8-cmd-item button.danger{color:#dc2626;border-color:color-mix(in srgb, #dc2626 35%, var(--border))}.q8-log{flex-direction:column;gap:.55rem;margin:0;padding:0;font-size:.8125rem;list-style:none;display:flex}.q8-log-item{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;padding:.65rem .75rem}.q8-log-head{flex-wrap:wrap;align-items:center;gap:.35rem .55rem;display:flex}.q8-log-time{color:var(--text-muted);font-weight:600}.q8-log-status{color:var(--text-secondary);margin-left:auto;font-size:.72rem}.q8-log-response{border-top:1px dashed var(--border);margin-top:.55rem;padding-top:.55rem}.q8-log-response strong{color:var(--success);margin-bottom:.25rem;font-size:.72rem;display:block}.q8-log-response p{margin:0;font-size:.82rem;line-height:1.45}.q8-log-raw{color:var(--text-muted);word-break:break-all;margin-top:.35rem;font-size:.68rem;display:block}.q8-log-item.q8-log-ok{border-color:#16a34a40}.q8-log-item.q8-log-err{background:var(--danger-soft);border-color:#dc262640}.q8-log-item.q8-log-pending,.q8-log-item.q8-log-sent{border-color:#e85d0433}.q8-log-item.q8-log-timeout{border-color:#64748b40}.q8-modal-sl{word-break:break-all;margin:.75rem 0;display:block}.q8-modal-backdrop{z-index:var(--z-modal-backdrop);background:#0f172a66;position:fixed;inset:0}.q8-modal{max-width:420px;max-height:90vh;z-index:var(--z-modal);align-self:center;margin:auto;position:fixed;inset:0;overflow:auto}.device-settings-page{padding-bottom:calc(1.5rem + var(--safe-bottom))}.device-settings-head{flex-direction:column;gap:.35rem;display:flex}.settings-back{align-self:flex-start;margin-bottom:.25rem}.device-settings-status{border-radius:12px;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.65rem .85rem;font-size:.85rem;font-weight:600;display:flex}.device-settings-status.online{background:var(--success-soft);color:#15803d}.device-settings-status.offline{background:var(--danger-soft);color:#b91c1c}.device-settings-dot{background:currentColor;border-radius:50%;width:8px;height:8px}.device-settings-section{margin-bottom:1.5rem}.device-settings-section h2{margin:0 0 .45rem;font-size:1.05rem}.device-settings-intro,.device-settings-hint{color:var(--text-secondary);font-size:.84rem;line-height:1.5}.device-settings-intro{margin:0 0 .85rem}.tracking-profile-grid{gap:.65rem;display:grid}.tracking-profile-card{text-align:left;border:2px solid var(--border);background:var(--surface);z-index:0;border-radius:14px;transition:border-color .15s,box-shadow .15s;position:relative;overflow:visible}.tracking-profile-card:has(.help-tip-btn.open){z-index:2}.tracking-profile-card.selected{border-color:var(--primary);box-shadow:0 4px 16px #e85d041f}.tracking-profile-card.active{background:var(--success-soft);border-color:#16a34a}.tracking-profile-card.active.selected{border-color:var(--primary);background:linear-gradient(180deg, var(--success-soft) 0%, var(--surface) 100%)}.tracking-profile-select{text-align:left;cursor:pointer;min-width:0;font:inherit;color:inherit;background:0 0;border:none;flex:1;padding:1rem;display:block}.tracking-profile-header{align-items:flex-start;gap:.15rem;display:flex}.tracking-profile-header .help-tip{flex-shrink:0;margin:.85rem .65rem 0 0}.tracking-profile-select:hover{background:#e85d040a}.tracking-profile-head{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.35rem;display:flex}.tracking-profile-head .help-tip{margin-left:auto}.help-tip{display:inline-flex;position:relative}.help-tip-btn{width:1.65rem;height:1.65rem;color:var(--text-muted);cursor:help;background:0 0;border:none;border-radius:999px;place-items:center;padding:0;font-size:.82rem;display:grid}.help-tip-btn.open,.help-tip-btn:hover,.help-tip-btn:focus-visible{color:var(--primary-hover);background:#e85d0414}.help-tip-popup{z-index:var(--z-float-panel);color:#fff;pointer-events:none;background:#0f172af0;border-radius:10px;width:min(280px,78vw);padding:.65rem .75rem;font-size:.78rem;font-weight:500;line-height:1.45;position:absolute;bottom:calc(100% + 8px);right:0;box-shadow:0 8px 24px #0f172a38}.tracking-profile-badge{text-transform:uppercase;letter-spacing:.04em;color:var(--primary);background:#fffc;border-radius:999px;padding:.15rem .45rem;font-size:.65rem;font-weight:800}.tracking-profile-active-pill{text-transform:uppercase;letter-spacing:.03em;color:#fff;background:#16a34a;border-radius:999px;padding:.15rem .45rem;font-size:.62rem;font-weight:800}.tracking-profile-editing-pill{text-transform:uppercase;letter-spacing:.03em;color:var(--primary-hover);background:var(--primary-soft);border:1px solid #e85d0440;border-radius:999px;padding:.15rem .45rem;font-size:.62rem;font-weight:800}.tracking-profile-card p{color:var(--text-secondary);margin:0 0 .55rem;font-size:.84rem;line-height:1.45}.tracking-profile-active-tag{color:var(--primary);margin-top:.25rem;font-size:.72rem;font-weight:700;display:inline-block}.tracking-profile-config{border-top:1px solid var(--border);background:var(--surface-2);padding:0 1rem 1rem}.tracking-profile-detail{color:var(--text-secondary);margin:.75rem 0;font-size:.82rem;line-height:1.5}.tracking-profile-detail p{margin:0 0 .35rem}.tracking-upload-field{flex-direction:column;gap:.35rem;margin-bottom:.75rem;font-size:.82rem;display:flex}.tracking-upload-row{align-items:center;gap:.45rem;display:flex}.tracking-upload-row input{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:5rem;padding:.55rem .65rem;font-size:1rem}.tracking-upload-unit{color:var(--text-secondary);font-weight:600}.tracking-upload-hint{color:var(--text-secondary);font-size:.76rem;line-height:1.4}.tracking-apply-btn{width:100%}.tracking-how-list{flex-direction:column;gap:.85rem;margin:0;padding:0;list-style:none;display:flex}.tracking-how-list li{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:.75rem .85rem}.tracking-how-list strong{margin-bottom:.25rem;font-size:.88rem;display:block}.tracking-how-list p{color:var(--text-secondary);margin:0;font-size:.82rem;line-height:1.5}.device-settings-explainer h2{margin-bottom:.65rem}.phone-save-field{flex-direction:column;gap:.25rem;margin-bottom:.65rem;font-size:.82rem;display:flex}.phone-save-btn{margin-top:.35rem}.phone-confirm-modal h3{margin:0 0 .65rem;font-size:1.05rem}.phone-confirm-modal p{margin:0 0 .55rem;font-size:.88rem;line-height:1.45}.phone-save-field input{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;width:100%;padding:.65rem .75rem;font-size:1rem}.q8-section-advanced details{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;padding:.65rem .85rem}.q8-section-advanced summary{cursor:pointer;font-size:.88rem;font-weight:700}
