/* DistribusiGIS V2 — responsive, map-first operations workspace.
   No dependency on external CSS/fonts. */
:root{--navy:#10283b;--navy2:#17394b;--brand:#087e79;--brand-strong:#056962;--brand-light:#e7f5f1;--bg:#f5f8fa;--surface:#fff;--text:#22394a;--secondary:#65798a;--stroke:#e1e8ed;--shadow:0 10px 30px rgba(27,57,76,.11);--radius:14px;--danger:#c44852;--good:#1b8c6b;--amber:#bd7d28}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background-color .14s,border-color .14s,box-shadow .14s}button:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{background:white;color:var(--text);border:1px solid #d3e0e7;border-radius:10px;width:100%;min-width:0;padding:11px 12px;outline:0;min-height:42px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #48b3a9;outline-offset:1px}textarea{resize:vertical;min-height:68px}input[type=checkbox],input[type=radio]{width:17px;height:17px;min-height:0;accent-color:var(--brand)}input[type=file]{font-size:12px}h1,h2,h3,h4,p{overflow-wrap:anywhere}h1,h2,h3,h4{line-height:1.25}label{display:block;font-size:12px;color:#4d6475;font-weight:670;margin:13px 0 5px}label>input,label>select,label>textarea{margin-top:7px;font-size:13px}small{line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
[hidden]{display:none!important}
#app:not([hidden]){display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;min-height:420px}
/* Top navigation + metrics */
.topbar{height:70px;flex:0 0 70px;padding:0 clamp(14px,2.1vw,30px);background:#102b3e;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #355064;z-index:55;position:relative}.header-left{display:flex;align-items:center;gap:18px;min-width:210px}.brand{display:flex;gap:11px;align-items:center;flex-shrink:0}.brand-icon,.logo-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#0d8e7e;color:#fff;font-size:25px;font-weight:500;box-shadow:inset 0 0 0 1px #ffffff27}.brand b{font-size:21px;font-weight:790;letter-spacing:-.9px}.brand b span,.login-card h1 span{color:#64dfc3}.brand small{display:block;font-size:9px;font-weight:660;letter-spacing:1.12px;color:#a7bfcd;margin-top:4px}.topnav{height:100%;display:flex;align-items:center;justify-content:center;gap:5px;overflow:hidden}.navtab{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:10px;padding:13px 16px;background:transparent;color:#b9cfdb;font-size:12px;font-weight:700;white-space:nowrap}.navtab:hover{background:#ffffff0b;color:#fff}.navtab.active{background:#214759;color:#fff;box-shadow:inset 0 0 0 1px #4e79874d}.nav-symbol{font-size:20px;line-height:1}.user-area{display:flex;align-items:center;gap:12px;min-width:0;font-size:12px;font-weight:600;color:#c8d9e1}.live-dot,.status-bullet{width:8px;height:8px;background:#55d7af;border-radius:50%;display:block;flex:none}.user-area button{padding:9px 12px;background:#ffffff12;border:1px solid #ffffff30;border-radius:9px;color:#fff;font-size:11px;font-weight:700}.user-area button:hover{background:#ffffff26}
.dashboard-strip{height:64px;flex:0 0 64px;background:var(--surface);border-bottom:1px solid var(--stroke);padding:9px clamp(14px,2vw,30px);display:flex;gap:0;align-items:center;box-shadow:0 2px 5px #172c3a05;z-index:15}.metric{min-width:136px;display:flex;align-items:center;flex-direction:row;justify-content:flex-start;gap:10px;border-right:1px solid var(--stroke);padding:3px 16px;margin-right:16px;min-height:40px}.metric:first-child{padding-left:0}.metric small{color:#7b8f9a;font-size:10px;letter-spacing:.12px;line-height:1.15;font-weight:680;max-width:90px}.metric strong{order:-1;font-size:23px;letter-spacing:-1px;font-weight:800;color:#19394b;font-variant-numeric:tabular-nums}.metric-info{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-end;margin-left:auto;margin-right:0;border:0;padding-right:0;min-width:200px}.metric-info b{font-size:11px;color:#167a70;display:block}.metric-info small{font-size:10px;display:block;font-weight:500;max-width:none;margin-top:1px}
/* Central map fills the viewport; left/right panes are short-lived panels. */
.workspace{position:relative;flex:1;min-height:0;background:#e8f0ee;overflow:hidden;isolation:isolate}.map-panel{position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;background:#e7eeec;transition:left .19s ease,right .19s ease}.workspace.has-left .map-panel{left:334px}.workspace.has-detail .map-panel{right:414px}.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;height:63px;flex:0 0 63px;background:white;padding:9px 18px;border-bottom:1px solid var(--stroke)}.map-status{min-width:125px}.map-status b{display:block;font-size:14px;line-height:1.2;letter-spacing:-.18px}.map-status span{font-size:10px;color:var(--secondary);margin-top:5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}.toolbar-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:nowrap}.toolbar-actions button{border:1px solid var(--stroke);background:#f6f9fa;padding:9px 11px;font-size:11px;white-space:nowrap;font-weight:740;border-radius:9px;color:#385568;min-height:35px}.toolbar-actions button:hover{background:#e9f3f1;border-color:#afd8d1}.toolbar-actions .toolbar-feature{background:#eef8f5;color:#126f68;border-color:#cde9e1}.map-holder{position:relative;flex:1;min-height:0;overflow:hidden;background:#e5eeea}.map-holder canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}.map-holder canvas.drawing{cursor:crosshair}.map-hint{position:absolute;top:13px;left:13px;background:#ffffffec;color:#577082;padding:10px 12px;max-width:min(73%,390px);line-height:1.5;border:1px solid #e8eff1;border-radius:9px;box-shadow:0 2px 8px #00000008;font-size:11px;pointer-events:none}.map-loading{position:absolute;top:68px;right:15px;border-radius:9px;padding:9px 11px;background:#173e4de8;color:#fff;font-size:11px;pointer-events:none;z-index:3}.map-bottom{height:37px;flex:0 0 37px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:white;padding:7px 16px;border-top:1px solid var(--stroke);color:#798e9c;font-size:10px}.zoom-controls{position:absolute;right:15px;top:66px;display:flex;flex-direction:column;gap:5px}.zoom-controls button{height:38px;width:38px;border:1px solid #dbe7e8;background:#fff;border-radius:10px;color:#285269;box-shadow:0 4px 12px #102d4217;font-size:21px;line-height:1}.map-legend{position:absolute;left:14px;bottom:15px;min-width:185px;background:#fff;border:1px solid #e6edef;border-radius:12px;padding:0 12px;box-shadow:0 5px 24px #12354821;color:#556a77;font-size:11px;line-height:20px}.map-legend summary{cursor:pointer;list-style:none;padding:10px 0;font-weight:770;color:#325363}.map-legend summary::-webkit-details-marker{display:none}.map-legend summary:after{content:'⌄';float:right;color:#879eaa}.map-legend[open]{padding-bottom:11px}.map-legend[open] summary{border-bottom:1px solid #e7edf0;margin-bottom:7px}.map-legend .swatch{display:inline-block;width:18px;height:4px;vertical-align:middle;margin-right:7px;border-radius:3px}.swatch.existing{background:#2474cb}.swatch.ded{background:#9856d6}.swatch.canceled{background:#e55f5f}.swatch.proposed{background:#ed872d}.swatch.home{background:#ce3b40}.map-coords{position:absolute;right:12px;bottom:13px;background:#ffffffcc;border:1px solid #fff;border-radius:6px;padding:6px 9px;font-size:10px;pointer-events:none}.mode-banner{position:absolute;left:50%;top:13px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:13px;justify-content:space-between;width:min(94%,500px);padding:8px 10px 8px 15px;border-radius:12px;background:#15394deb;color:white;font-size:12px;font-weight:700;box-shadow:0 6px 25px #0003}.mode-banner button{border:0;background:#fff;color:#176c61;font-size:11px;font-weight:780;border-radius:8px;padding:9px 14px;flex:none}
/* Panel behavior — never stack two full-height sidebars */
.panel{background:white}.sidepane,.detailpane{position:absolute;top:0;bottom:0;z-index:20;display:flex;flex-direction:column;overflow:hidden;visibility:hidden;transition:transform .19s ease,visibility .19s;box-shadow:0 4px 16px #13374c13}.sidepane{width:334px;max-width:100%;left:0;border-right:1px solid var(--stroke);transform:translateX(-102%)}.detailpane{width:414px;max-width:100%;right:0;border-left:1px solid var(--stroke);transform:translateX(102%)}.sidepane.open,.detailpane.open{transform:none;visibility:visible}.pane-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 20px 13px;flex:none}.eyebrow{display:block;color:#087f77;font-size:10px;letter-spacing:1.3px;font-weight:840}.pane-head h2{margin:4px 0 0;font-size:22px;letter-spacing:-.7px}.icon-btn{border:1px solid #e2ebee;background:#f6f9fa;color:#6b8596;border-radius:9px;width:34px;height:34px;font-size:16px}.icon-btn:hover{background:#e5efef}.mobile-close{display:block}.filter-area{padding:0 19px 10px;flex:none}.searchbar{position:relative}.searchbar span{position:absolute;left:11px;top:6px;font-size:25px;color:#91a8b5;pointer-events:none}.searchbar input{padding-left:35px}.filter-area>.secondary{margin-top:10px}.advanced-filters{margin-top:9px;border:1px solid #e6ecf0;background:#f8fafb;border-radius:10px;padding:0 11px}.advanced-filters summary{padding:10px 2px;cursor:pointer;color:#537082;font-size:11px;font-weight:740;list-style:none}.advanced-filters summary:after{content:'⌄';float:right}.advanced-filters[open] summary{border-bottom:1px solid var(--stroke);margin-bottom:10px}.advanced-filters .filter-row{display:flex;gap:7px;margin:0 0 9px}.advanced-filters .filter-row select{flex:1;width:50%;font-size:11px;padding:7px;min-height:38px}.advanced-filters>select{margin-bottom:10px;font-size:11px;min-height:38px}.result-top{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:11px 20px;background:#f9fbfc;border-top:1px solid var(--stroke);border-bottom:1px solid var(--stroke);font-size:11px;font-weight:760}.pill{font-size:9px;border-radius:100px;padding:4px 7px;background:#e8f5f0;color:#22826e}.fa-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.fa-item{background:white;border:0;border-bottom:1px solid #edf1f4;display:block;width:100%;text-align:left;padding:15px 20px;color:var(--text)}.fa-item:hover{background:#f4faf8}.fa-item.active{border-left:4px solid var(--brand);padding-left:16px;background:#ebf7f4}.fa-item-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.fa-item-head b{font-size:13px}.mini-status{max-width:139px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff3df;color:#a6762b;font-size:9px;border-radius:6px;padding:5px 7px;font-weight:700}.mini-status.cancel{background:#fff0f0;color:#bb4f58}.mini-status.verified{background:#e3f5ea;color:#197753}.fa-item p{font-size:11px;line-height:1.5;margin:8px 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.fa-item small{font-size:10px;color:#7e90a0}.pager{height:51px;flex:0 0 51px;display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-top:1px solid var(--stroke)}.textbtn{border:0;background:none;color:#097d75;font-size:11px;font-weight:720}.textbtn:hover{text-decoration:underline}
.detail-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 17px 28px}.empty-state{margin:28px 10px;padding:35px 18px;border:1px dashed #cbdbdf;border-radius:13px;text-align:center;background:#f8fbfb}.empty-icon{font-size:36px;color:#92b8b4}.empty-state h3{font-size:15px;margin:8px 0}.empty-state p{font-size:12px;color:#728996;line-height:1.6}.detail-top{padding:4px 2px 12px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px}.detail-top .eyebrow{width:100%;color:#8795a5}.detail-top h3{font-size:25px;letter-spacing:-.7px;margin:0;font-variant-numeric:tabular-nums}.status-tag{background:#fff4e4;color:#9c7128;border-radius:7px;padding:6px 8px;font-size:10px;font-weight:740;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-group{border:1px solid #e3eaee;border-radius:12px;padding:11px 13px;background:#f9fbfc;display:grid;grid-template-columns:1fr;gap:1px;margin-bottom:13px}.field-group small{font-size:9px;color:#7d93a0;font-weight:770;letter-spacing:.5px;margin-top:4px}.field-group p{font-size:11px;font-weight:600;margin:4px 0 6px;line-height:1.45}.workflow-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:#edf3f3;border-radius:11px;margin-top:2px;position:sticky;top:0;z-index:4}.workflow-tab{border:0;background:none;padding:8px 4px;color:#5c7787;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:770;border-radius:8px}.workflow-tab:hover{background:#ffffff9b}.workflow-tab.active{background:white;color:#0c756e;box-shadow:0 2px 6px #24575f1e}.workflow-index{font-size:10px;letter-spacing:.3px;opacity:.72}.workflow-note{font-size:10px;line-height:1.55;color:#6c8291;margin:11px 3px}.step-card{border:1px solid #dde8e9;border-radius:13px;background:#fff;padding:15px;margin-bottom:10px}.step-head{display:flex;align-items:center;gap:9px}.step-head b{font-size:14px}.step-num{display:grid;place-items:center;min-width:27px;height:27px;border-radius:8px;background:#e5f5ef;color:#087e70;font-size:11px;font-weight:840}.step-card p{font-size:12px;color:#748592;line-height:1.55;margin:9px 0 12px}.step-card .muted{font-size:10px;color:#788e99;display:block;margin-top:11px;line-height:1.5}.info-label,.pipe-result,.pin-preview,.route-info{border:1px solid #e1e9ed;background:#f4f8f9;border-radius:10px;padding:12px;font-size:12px;line-height:1.55;margin:10px 0;color:#456474}.pipe-result b{font-size:21px;color:#0b7c75}.route-info{color:#098778;font-weight:790}.check-label{display:flex;align-items:flex-start;gap:4px;font-weight:590;font-size:12px;line-height:1.5}.button-pair{display:flex;gap:8px;margin:10px 0}.button-pair button{flex:1;min-width:0;font-size:11px;padding:10px 5px}.candidate-list{margin-top:10px}.candidate{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:11px 2px;border-bottom:1px solid #edf1f2}.candidate b{font-size:11px;display:block}.candidate small{font-size:10px;color:#78909e;display:block;line-height:1.45;margin-top:4px}.candidate button{background:#e6f4f0;color:#087b70;border:1px solid #c6e8e1;padding:8px 9px;white-space:nowrap;border-radius:8px;font-size:10px;font-weight:750}
/* Buttons */
.primary,.secondary,.ghost{font-weight:770;font-size:12px;padding:11px 14px;border-radius:10px;min-height:40px}.primary{border:1px solid #047972;background:var(--brand);color:white}.primary:hover{background:var(--brand-strong)}.secondary{border:1px solid #dae8e9;background:#edf5f5;color:#146c6b}.secondary:hover{background:#dff0ed}.ghost{border:1px solid transparent;background:#f6f8f9;color:#5e7787}.ghost:hover{background:#e5eeef}.wide{width:100%}
/* Plans/admin pages */
.page-view{flex:1;min-height:0;overflow-y:auto;width:100%;padding:30px clamp(18px,4vw,55px) 45px;background:#f5f8fa}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1510px;margin:0 auto 21px}.page-header h2{font-size:29px;letter-spacing:-.7px;margin:5px 0 5px}.page-header p{font-size:13px;color:#718694;max-width:690px;line-height:1.5;margin:4px 0}.table-scroll{overflow-x:auto;background:white;border:1px solid var(--stroke);border-radius:14px;box-shadow:0 4px 15px #1d384909;max-width:1510px;margin:auto}table{width:100%;border-collapse:collapse;font-size:12px}td,th{padding:15px 15px;text-align:left;border-bottom:1px solid #edf1f4;white-space:nowrap}thead th{background:#f6fafb;color:#708392;font-size:10px;text-transform:uppercase;letter-spacing:.5px}tbody tr:hover{background:#f8fbfa}td button{border:1px solid #c9e6e0;border-radius:8px;padding:8px 11px;font-size:11px;background:#edf9f5;color:#0b796a;font-weight:740}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:18px;max-width:1510px;margin:auto}.admin-card{border:1px solid var(--stroke);background:white;border-radius:14px;padding:22px;min-width:0;box-shadow:0 4px 14px #1b344608}.admin-card h3{margin:0;font-size:18px;letter-spacing:-.35px}.admin-card h4{font-size:13px;margin:24px 0 8px}.admin-card p{font-size:12px;color:#728999;line-height:1.6}.admin-card hr{border:0;border-top:1px solid var(--stroke);margin-top:24px}.terminal{background:#173245;color:#d6ede9;padding:14px;border-radius:10px;white-space:pre-wrap;overflow:auto;font-size:11px;max-height:230px;line-height:1.6}.layer-list,.history{max-height:390px;overflow-y:auto;margin-top:13px}.layer-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid #e9eef2;padding:11px 0}.layer-row .layer-description{flex:1;min-width:0}.layer-row b{display:block;font-size:12px;word-break:break-word}.layer-row small{display:block;font-size:10px;color:#7990a0;margin-top:5px}.history p{padding:8px 0;border-bottom:1px solid var(--stroke);margin:0}.error{color:#c44852;font-size:12px}.toast{position:fixed;z-index:120;bottom:20px;right:20px;background:#163d50;color:white;padding:13px 17px;border-radius:10px;box-shadow:0 14px 35px #12314540;font-size:12px;max-width:410px;line-height:1.5;display:none}.toast.show{display:block}
/* login */
.login-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(circle at 20% 0%,#267975 0%,transparent 33%),linear-gradient(135deg,#0c283c 0%,#143a4c 58%,#116e6d 100%)}.login-card{background:white;border-radius:20px;padding:clamp(24px,4vw,40px);width:min(440px,100%);box-shadow:0 25px 100px #0005}.login-card .logo-mark{width:49px;height:49px;border-radius:14px;margin-bottom:16px;font-size:31px}.login-card h1{font-size:33px;margin:0;color:#1b3346;letter-spacing:-1px}.login-card h1 span{color:#138b7e}.login-card p{color:#6c8290;font-size:13px;line-height:1.65;margin:12px 0 22px}.login-card small{font-size:10px;line-height:1.55;color:#8899a5;display:block;margin-top:18px}.login-card code{word-break:break-all}
.pane-backdrop,.mobile-nav{display:none}
/* Laptop compact layout */
@media(max-width:1300px){.workspace.has-left .map-panel{left:310px}.workspace.has-detail .map-panel{right:380px}.sidepane{width:310px}.detailpane{width:380px}.toolbar-actions{gap:5px}.toolbar-actions button{font-size:10px;padding:8px}.metric{min-width:120px;margin-right:10px;padding-right:10px}.map-status span{max-width:250px}.topnav .navtab{padding:12px 11px}}
@media(max-width:1100px){.brand small{display:none}.metric{min-width:110px}.metric-info{display:none}.header-left{min-width:auto}.user-area #userBadge{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbar-actions .toolbar-feature{font-size:0}.toolbar-actions .toolbar-feature:first-letter{font-size:15px}.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mobile/tablet: map full viewport, panels become bottom sheets, all critical screens accessible in bottom nav. */
@media(max-width:920px){
 #app:not([hidden]){padding-bottom:66px;min-height:360px}
 .topbar{height:59px;flex-basis:59px;padding:0 13px;gap:10px}.brand-icon{width:33px;height:33px;border-radius:9px;font-size:23px}.brand b{font-size:18px}.topnav{display:none}.user-area{margin-left:auto;gap:6px}.user-area #userBadge{font-size:10px;max-width:142px}.user-area button{font-size:10px;padding:8px 9px}.live-dot{display:none}
 .dashboard-strip{height:61px;flex-basis:61px;gap:0;padding:7px 7px;justify-content:space-around}.metric{flex:1;min-width:0;margin:0;padding:1px 5px;display:flex;flex-direction:column-reverse;justify-content:center;align-items:center;gap:3px;min-height:42px;text-align:center;border-right:1px solid var(--stroke)}.metric:nth-child(4){border:0}.metric strong{font-size:18px;order:0;line-height:1}.metric small{font-size:9px;max-width:none;letter-spacing:0}.metric-info{display:none}
 .workspace{flex:1;min-height:0}.map-panel,.workspace.has-left .map-panel,.workspace.has-detail .map-panel{inset:0;left:0;right:0;width:100%;transition:none}.map-toolbar{height:57px;flex-basis:57px;padding:7px 11px}.map-status b{font-size:12px}.map-status span{font-size:10px;max-width:230px}.toolbar-actions button{min-height:35px;padding:7px 9px}.toolbar-actions .toolbar-feature{display:none}.toolbar-actions #toggleOSM{font-size:10px}.map-hint{top:11px;left:10px;font-size:10px;max-width:65%;padding:8px 10px}.zoom-controls{right:11px;top:58px}.zoom-controls button{width:38px;height:38px}.map-legend{left:10px;bottom:13px;min-width:130px;max-width:205px}.map-coords{font-size:9px;right:8px;bottom:10px}.map-bottom{height:31px;flex-basis:31px;padding:5px 10px;font-size:9px}.map-bottom #mapSummary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mode-banner{top:55px;transform:translateX(-50%);font-size:10px}
 .pane-backdrop:not([hidden]){display:block;position:absolute;inset:0;z-index:22;border:0;padding:0;background:#0b26335c;cursor:pointer}
 .sidepane,.detailpane{position:absolute;left:0;right:0;top:auto;bottom:0;z-index:24;width:100%;max-width:100%;height:min(78%,720px);border-radius:20px 20px 0 0;border:1px solid #dbe6e7;box-shadow:0 -12px 42px #082c3b35;transform:translateY(104%);visibility:hidden;transition:transform .24s ease,visibility .24s;overscroll-behavior:contain}.detailpane{height:min(86%,780px)}.sidepane.open,.detailpane.open{transform:translateY(0);visibility:visible}.sidepane:before,.detailpane:before{content:'';width:37px;height:4px;background:#b9cdd2;border-radius:5px;position:absolute;left:50%;top:9px;transform:translateX(-50%);pointer-events:none}
 .pane-head{padding:24px 18px 11px}.pane-head h2{font-size:20px}.filter-area{padding:0 15px 10px}.advanced-filters{margin-top:7px}.result-top{padding:9px 16px}.fa-item{padding:13px 18px}.detail-scroll{padding:0 14px 24px}.field-group{padding:9px 11px}.workflow-tabs{top:0}.step-card{padding:12px}.page-view{padding:20px 14px 28px}.page-header{gap:9px;margin-bottom:15px}.page-header h2{font-size:24px}.page-header p{font-size:12px}.admin-grid{grid-template-columns:1fr;gap:13px}.admin-card{padding:17px}.toast{bottom:77px;left:12px;right:12px;max-width:none;font-size:12px}
 .mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;padding:5px 3px max(5px,env(safe-area-inset-bottom));height:66px;background:#fff;border-top:1px solid #dde9e8;z-index:80;box-shadow:0 -3px 16px #183c4c12}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-width:0;gap:3px;background:transparent;border:0;border-radius:9px;color:#708796;padding:3px 2px}.mobile-nav button.active{color:#087e76;background:#eaf7f2}.mobile-nav-icon{font-size:22px;line-height:1}.mobile-nav-label{font-size:10px;font-weight:750;white-space:nowrap}.mobile-nav button[hidden]{display:none!important}
}
@media(max-width:430px){.brand b{font-size:17px}.user-area #userBadge{max-width:77px;font-size:9px}.metric small{font-size:8px}.metric strong{font-size:17px}.map-status span{max-width:170px}.toolbar-actions #toggleOSM{max-width:95px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zoom-controls{top:58px}.mobile-nav-label{font-size:9px}}
@media(max-width:350px){.brand b{font-size:15px}.metric strong{font-size:15px}.metric small{font-size:7.5px}.map-status span{display:none}.toolbar-actions #toggleOSM{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:0s!important;scroll-behavior:auto!important}}

/* Compact disclosure keeps field actions visible on small phones. */
.fa-address-info{margin:0 0 12px}.fa-address-info>summary{display:none;list-style:none;cursor:pointer}.fa-address-info .field-group{margin-bottom:0}
@media(max-width:920px){.fa-address-info{border:1px solid #e1e9ed;border-radius:11px;background:#f8fafb;overflow:hidden}.fa-address-info>summary{display:flex;flex-direction:column;gap:3px;padding:10px 12px;font-size:11px}.fa-address-info>summary b{color:#335467}.fa-address-info>summary span{color:#6d8795;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:10px}.fa-address-info[open]>summary{border-bottom:1px solid #e6ebee}.fa-address-info .field-group{border:0;border-radius:0;background:transparent;padding:11px 12px}.detail-scroll .workflow-note{margin:8px 3px}.detail-scroll .detail-top{padding-bottom:9px}.step-card{margin-bottom:14px}}

.map-holder.mode-active .map-hint{display:none}

/* Mobile landscape: preserve room for the actual map. */
@media(max-width:920px) and (max-height:520px){.topbar{height:50px;flex-basis:50px}.dashboard-strip{display:none}.map-toolbar{height:48px;flex-basis:48px}.sidepane,.detailpane{height:95%}.map-hint{display:none}.map-legend{bottom:8px}.map-bottom{height:28px;flex-basis:28px}}

/* V2.2: lightweight, map-first feature inspection. Selection stays on the map,
   detached from the FA survey workflow. No extra permanent sidebar. */
.pipe-info-panel{position:absolute;z-index:9;right:18px;bottom:54px;width:min(360px,calc(100% - 32px));max-height:min(440px,75%);overflow:auto;background:#fff;border:1px solid #dbe6e9;border-radius:17px;box-shadow:0 17px 45px #1538493c;color:#253f50;font-size:12px}
.pipe-info-panel[hidden]{display:none!important}
.pipe-info-head{position:sticky;top:0;z-index:1;background:white;border-bottom:1px solid #edf1f3;padding:13px 13px 12px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.pipe-info-headline{display:flex;align-items:center;gap:10px;min-width:0}.pipe-info-headline strong{font-size:13px;color:#183947;display:block;line-height:1.4}.pipe-info-headline small{font-size:10px;color:#7a909d;display:block;margin-top:2px}
.pipe-info-icon{display:flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:10px;background:#eaf4f9;color:#217bc3;font-size:24px;font-weight:800;flex:none;transform:rotate(13deg)}
.pipe-info-close{width:31px;height:31px;flex:none;border:0;border-radius:8px;background:#f1f5f6;color:#667d8a;font-size:23px;cursor:pointer;line-height:1}
.pipe-info-close:hover{background:#e1eaed;color:#1d3b4f}
.pipe-info-body{padding:12px 14px}.pipe-info-loading{display:block;padding:16px 2px;color:#6f8793}
.pipe-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pipe-info-field{min-width:0;padding:10px;background:#f6f9fa;border:1px solid #eaf0f2;border-radius:9px;overflow-wrap:anywhere}
.pipe-info-primary,.pipe-info-wide{grid-column:1/-1}.pipe-info-field small{display:block;font-size:10px;color:#688392;line-height:1.5;margin-bottom:5px;font-weight:650}.pipe-info-field small span{font-size:9px;color:#9aaab3;font-weight:400}.pipe-info-field strong{font-size:12px;color:#173a4b;line-height:1.5;font-weight:770;display:block}.pipe-info-field em{font-weight:500;font-size:10px;font-style:normal;color:#7793a0}
.pipe-info-unknown{font-style:italic;font-weight:500;color:#8d9ea9}.pipe-info-note{margin-top:11px;font-size:10px;color:#668291;line-height:1.5;padding:10px;border-radius:8px;background:#f2f8f8}
.pipe-info-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf2f3;padding:10px 14px}.pipe-info-foot span{font-size:9px;color:#879aa5;line-height:1.4}.pipe-info-foot button{white-space:nowrap;border:1px solid #c6e4df;background:#edf9f6;color:#157a70;padding:7px 9px;border-radius:8px;font-size:10px;font-weight:750;cursor:pointer}.pipe-info-foot button[hidden]{display:none!important}
@media(max-width:920px){.pipe-info-panel{left:10px;right:10px;bottom:12px;width:auto;max-height:min(47%,355px);border-radius:17px}.pipe-info-head{padding:10px 13px}.pipe-info-body{padding:9px 11px}.pipe-info-grid{gap:7px}.pipe-info-field{padding:8px 10px}.pipe-info-note{margin-top:8px;padding:8px}.pipe-info-foot{padding:8px 11px}.map-holder:has(.pipe-info-panel:not([hidden])) .map-legend{display:none}.map-holder:has(.pipe-info-panel:not([hidden])) .map-coords{display:none}}
@media(max-width:430px){.pipe-info-panel{max-height:min(50%,350px)}.pipe-info-headline strong{font-size:12px}.pipe-info-headline small{font-size:9px}}

/* V2.3 — user GPS overlay, distinct from verified FA and trase data. */
.zoom-controls{z-index:6}
.zoom-controls .locate-me{display:grid;place-items:center;margin-top:7px;background:#fff;color:#225b82;border-color:#d9e6ef;min-height:42px;min-width:42px}
.zoom-controls .locate-me:hover{background:#eef6ff;border-color:#93bfea}
.zoom-controls .locate-me.active{background:#e9f1ff;color:#1b5dc4;border:1px solid #76aaeb;box-shadow:0 0 0 3px #2563eb24}
.zoom-controls .locate-me.is-pending{opacity:.65}
.zoom-controls .locate-me svg{width:20px;height:20px;display:block}
.my-location-status{position:absolute;z-index:7;right:69px;top:150px;display:flex;align-items:center;gap:9px;max-width:min(320px,calc(100% - 95px));background:#fff;border:1px solid #dbe6ed;border-radius:12px;padding:8px 9px 8px 12px;box-shadow:0 5px 20px #15384922;color:#385670;font-size:11px;font-weight:670;line-height:1.45}
.my-location-status[hidden]{display:none!important}
.my-location-status span{min-width:0;overflow-wrap:anywhere}
.my-location-status button{border:1px solid #dfebf5;background:#f0f6ff;color:#1955a4;border-radius:8px;padding:6px 8px;font-size:10px;font-weight:750;flex:none}
.my-location-status button:hover{background:#dceaff}
@media(max-width:920px){.zoom-controls .locate-me{width:42px;height:42px}.my-location-status{right:61px;top:146px;max-width:calc(100% - 78px);padding:8px 9px;font-size:10px}}
@media(max-width:430px){.my-location-status{top:149px}.my-location-status button{font-size:10px;padding:6px 7px}}
@media(max-width:920px) and (max-height:520px){.my-location-status{top:125px;max-width:60%}}

/* V2.4 daily FA dashboard monitoring */
.monitoring-card{border:1px solid #d7e4e7;border-radius:12px;background:#f8fafb;padding:12px;margin:8px 0 12px;display:grid;gap:8px}
.monitoring-card[hidden],.import-preview[hidden]{display:none!important}
.monitoring-title{font-size:13px;font-weight:800;color:#11374a;display:flex;align-items:center;justify-content:space-between;gap:7px}
.monitoring-title small{font-size:10px;font-weight:600;color:#5d7585}
.monitoring-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;border-bottom:1px dashed #dce6e8;padding:5px 0;font-size:12px}
.monitoring-row span{color:#5c7180;min-width:90px}.monitoring-row b{text-align:right;overflow-wrap:anywhere;min-width:0}
.monitoring-warning{border-radius:8px;padding:9px;background:#fff1d9;color:#8b4d0e;font-size:12px;font-weight:600}
.import-preview{margin:12px 0;padding:10px;border:1px solid #cde1dd;border-radius:10px;background:#f5faf8}
.import-preview .terminal{max-height:220px;white-space:pre-wrap;overflow:auto}
@media(max-width:640px){.monitoring-card{padding:10px}.monitoring-row{font-size:11px}}

/* V2.4.2: Batalkan verifikasi, preserve audit and keep field operations mobile-friendly */
.revoke-section{margin-top:12px;padding-top:12px;border-top:1px solid #eadbda}
.revoke-toggle,.revoke-danger{min-height:41px;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:750}
.revoke-toggle{background:#fff8f7;border:1px solid #edcdcb;color:#a34845}
.revoke-toggle:hover{background:#fcebe8}
.revoke-form{margin-top:10px;border:1px solid #f1dbd7;border-radius:10px;background:#fffafa;padding:11px}
.revoke-form .revoke-warning{color:#8c4947;margin:0 0 10px;font-size:11px;line-height:1.6}
.revoke-form .button-pair{align-items:stretch}
.revoke-danger{background:#b94147;color:white;border:1px solid #b94147;flex:2!important}
.revoke-danger:hover{background:#a32f35}
.revoke-form .secondary{flex:1!important}
@media(max-width:430px){.revoke-form .button-pair{flex-direction:column}.revoke-form .button-pair button{min-height:43px;width:100%}}
