:root{--navy:#152f4b;--navy2:#0f2742;--cyan:#0891b2;--green:#47c27a;--line:#dbe4ec;--bg:#f5f8fb;--text:#24374b;--muted:#6b7c8d;--orange:#f59e0b}*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}body{overflow:hidden}.topbar{height:68px;display:flex;align-items:center;gap:12px;padding:9px 16px;background:var(--navy);color:#fff;box-shadow:0 2px 12px #0002;position:relative;z-index:1000}.topbar img{width:92px;height:auto;object-fit:contain}.back{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#ffffff14;color:#fff;text-decoration:none;font-size:25px}.headcopy{display:flex;flex-direction:column;line-height:1.15}.headcopy strong{font-size:16px}.headcopy span{font-size:11px;opacity:.75;margin-top:3px}.tier{margin-left:auto;font-size:10px;font-weight:900;padding:5px 8px;border-radius:999px;background:#fff2;color:#fff}.tier.premium{background:#f6c453;color:#352500}main{height:calc(100% - 96px);position:relative}#map{position:absolute;inset:0;background:#e9eef3}.leaflet-control-attribution{font-size:9px}.maptools{position:absolute;right:16px;top:16px;z-index:800;display:flex;flex-direction:column;gap:7px}.maptools button{width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 16px #0f27421f;font-size:21px;color:var(--navy);cursor:pointer}.layercard{position:absolute;left:16px;top:16px;z-index:800;width:255px;background:#fffc;border:1px solid var(--line);border-radius:15px;box-shadow:0 12px 32px #0f27421c;padding:12px;backdrop-filter:blur(8px)}.cardtitle{font-weight:900;color:var(--navy);margin-bottom:7px}.layercard details{border-top:1px solid #edf1f5;padding:7px 0}.layercard summary{font-size:12px;font-weight:800;cursor:pointer}.layercard label{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:6px 2px}.layercard input[type=checkbox]{width:18px;height:18px;accent-color:var(--navy)}.workspace{position:absolute;right:16px;top:16px;bottom:16px;z-index:850;width:min(470px,calc(100vw - 310px));background:#fffffff2;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 42px #0f274228;overflow:hidden;display:flex;flex-direction:column;backdrop-filter:blur(10px)}.workspace.collapsed{height:58px;bottom:auto;overflow:hidden}.workspace.collapsed .tabs,.workspace.collapsed .tab,.workspace.collapsed .grab{display:none!important}.workspace.collapsed .workspace-head{padding:10px 14px;height:58px}
.grab{display:none}.workspace-head{display:flex;justify-content:space-between;align-items:center;padding:15px 16px 10px}.workspace-head>div{display:flex;flex-direction:column}.workspace-head strong{font-size:15px;color:var(--navy)}.workspace-head span{font-size:11px;color:var(--muted);margin-top:2px}.ghost{border:0;background:#eef3f7;color:var(--navy);border-radius:8px;padding:7px 10px;font-weight:800}.tabs{display:flex;gap:5px;padding:0 12px 10px}.tabs button{flex:1;border:0;border-radius:9px;padding:9px;background:#eef3f7;color:#607286;font-weight:800}.tabs button.active{background:var(--navy);color:#fff}.tab{display:none;overflow:auto;padding:0 14px 16px}.tab.active{display:block}.addrow,.two,.three{display:grid;gap:8px}.addrow{grid-template-columns:1fr auto}.two{grid-template-columns:1fr 1fr}.three{grid-template-columns:1fr 1fr 1fr}.addrow input,input,select{width:100%;border:1px solid #cfd9e3;border-radius:9px;padding:9px 10px;background:#fff;color:var(--text);font:inherit}.primary{background:var(--navy)!important;color:#fff!important;border-color:var(--navy)!important}.hint{font-size:11px;line-height:1.45;color:var(--muted);background:#f4f8fb;border-radius:10px;padding:9px 10px}.polybar,.exportbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0}.polybar button,.exportbar button,.triggrid button,.navpanel button,.modal button{border:1px solid #d4dee7;background:#fff;color:var(--navy);border-radius:9px;padding:8px 10px;font-weight:800;cursor:pointer}.colorpick{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800}.colorpick input{width:32px;height:30px;padding:2px}.danger{color:#b42318!important;border-color:#fecaca!important;background:#fff7f7!important}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.metrics div{padding:10px 12px;border:1px solid #e0e7ee;background:#fff;border-radius:11px;display:flex;flex-direction:column}.metrics b{font-size:10px;text-transform:uppercase;color:var(--muted)}.metrics span{font-weight:900;color:var(--navy);margin-top:2px}.pointlist{border:1px solid #e0e7ee;border-radius:11px;overflow:auto;max-height:275px;background:#fff}.pointlist table{width:100%;border-collapse:collapse;font-size:10px}.pointlist th,.pointlist td{padding:7px 6px;border-bottom:1px solid #eef2f5;text-align:left;white-space:nowrap}.pointlist th{position:sticky;top:0;background:#f7fafc;z-index:1}.pointlist button{border:0;background:#eef3f7;color:var(--navy);border-radius:6px;padding:5px 7px;font-weight:800}.triggrid{display:grid;grid-template-columns:1fr;gap:10px}.triggrid article{border:1px solid #dfe7ee;background:#fff;border-radius:12px;padding:12px}.triggrid h3{font-size:13px;color:var(--navy);margin:0 0 10px}.triggrid label{display:block;font-size:10px;font-weight:800;color:var(--muted);margin-bottom:7px}.triggrid small{display:block;color:var(--muted);font-size:9px;margin:5px 0}.result{font-size:11px;line-height:1.45;margin-top:9px;background:#f4f8fb;border-radius:8px;padding:8px;min-height:34px}.stake-icon{background:transparent!important;border:0!important}.stake-marker{position:relative;width:36px;height:44px;filter:drop-shadow(0 2px 3px #0005)}.stake-marker .pole{position:absolute;left:9px;top:4px;width:3px;height:35px;background:#34465a;border-radius:2px}.stake-marker .flag{position:absolute;left:11px;top:5px;width:22px;height:15px;clip-path:polygon(0 0,100% 18%,82% 100%,0 82%);background:var(--stake-color,#f59e0b)}.stake-marker .id{position:absolute;left:0;bottom:0;min-width:22px;height:22px;border-radius:12px;padding:2px 4px;background:var(--navy);border:2px solid #fff;color:#fff;font:900 9px/14px system-ui;text-align:center}.popupactions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.popupactions button{border:1px solid #d7e0e8;background:#fff;border-radius:7px;padding:7px;font-size:11px;font-weight:900;color:var(--navy)}.popupactions button.main{background:var(--navy);color:#fff}.popupactions button.ar{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.modal{position:fixed;inset:0;background:#0f274280;z-index:5000;display:grid;place-items:center;padding:18px}.modal.hidden{display:none}.modalcard{width:min(430px,100%);background:#fff;border-radius:20px;padding:24px;box-shadow:0 24px 70px #0005;text-align:center}.modalcard.small{text-align:left;width:min(390px,100%)}.modalcard h2{color:var(--navy);margin:5px 0 12px}.modalcard p{font-size:13px;line-height:1.5;color:#5f7183}.introfocus{background:#eff8f4;padding:10px;border-radius:10px;color:#285947!important}.introicon{width:78px;height:78px;margin:auto;color:var(--navy)}.big{width:100%;padding:12px!important;font-size:14px}.modalcard label{display:block;font-size:11px;font-weight:800;color:var(--muted);margin:9px 0}.modalactions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}.navpanel{position:fixed;left:50%;bottom:42px;transform:translate(-50%,150%);z-index:3000;width:min(620px,calc(100vw - 30px));background:#fffffff7;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 55px #0f274242;padding:10px;display:grid;grid-template-columns:60px 1fr auto auto;gap:10px;align-items:center;transition:.25s}.navpanel.show{transform:translate(-50%,0)}.compass{width:54px;height:54px;border:2px solid #cad6e1;border-radius:50%;position:relative;background:#f8fafc}.compass:before{content:'N';position:absolute;top:2px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:900;color:#d13d32}.compass #navArrow{position:absolute;left:50%;top:50%;transform-origin:50% 85%;transform:translate(-50%,-85%) rotate(0deg);font-size:37px;color:var(--navy)}.navinfo{display:flex;flex-direction:column}.navinfo b{font-size:11px;color:var(--muted)}.navinfo strong{font-size:22px;color:var(--navy)}.navinfo span{font-size:10px;color:var(--muted)}.aroverlay{display:none;position:fixed;inset:0;z-index:6000;background:#000}.aroverlay.show{display:block}.aroverlay video{width:100%;height:100%;object-fit:cover}.arshade{position:absolute;inset:0;background:linear-gradient(#0007,transparent 25%,transparent 65%,#000b)}.arhead{position:absolute;top:0;left:0;right:0;padding:calc(env(safe-area-inset-top) + 16px) 16px 12px;display:flex;justify-content:space-between;color:#fff}.arhead button{width:42px;height:42px;border:0;border-radius:50%;background:#0008;color:#fff;font-size:25px}.arflag{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);font-size:60px;text-align:center;transition:.2s}.arflag span{display:block;font-size:12px;background:#0f2742dd;color:#fff;border-radius:999px;padding:5px 9px}.arhud{position:absolute;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 24px);color:#fff;text-align:center;display:flex;flex-direction:column;gap:5px}.arhud strong{font-size:40px}.arhud span{font-weight:800}.arhud small{opacity:.75}footer{height:28px;background:var(--navy);color:#b9c8d5;text-align:center;font-size:9px;line-height:28px}
@media(max-width:1440px){.topbar{height:60px;padding:7px 10px}.topbar img{width:76px}.headcopy strong{font-size:13px}.headcopy span{display:none}.tier{font-size:9px}main{height:calc(100% - 86px)}.layercard{left:10px;top:10px;width:205px;padding:9px;border-radius:12px}.layercard details:not([open]){padding-bottom:0}.maptools{right:10px;top:10px}.workspace{left:7px;right:7px;top:auto;bottom:7px;width:auto;height:min(57vh,540px);border-radius:20px;transition:.25s}.workspace.collapsed{height:98px}.workspace.collapsed .tabs,.workspace.collapsed .tab{display:none}.grab{display:block;width:42px;height:4px;border-radius:4px;background:#cbd5e1;margin:7px auto 0}.workspace-head{padding:8px 13px 8px}.tabs{padding-bottom:7px}.tab{padding:0 10px 12px}.pointlist{max-height:185px}.hint{font-size:10px}.polybar{gap:5px}.polybar button{font-size:10px;padding:7px}.metrics div{padding:7px 9px}.modalcard{padding:20px}.navpanel{bottom:14px;grid-template-columns:52px 1fr auto;padding:8px}.navpanel #navCenter{display:none}.navpanel button{padding:8px}.navinfo strong{font-size:18px}}
@media(max-width:520px){.layercard{width:184px}.layercard label{font-size:10px;padding:4px 2px}.cardtitle{font-size:12px}.workspace{height:min(61vh,560px)}.two,.three{grid-template-columns:1fr}.pointlist th:nth-child(2),.pointlist td:nth-child(2){max-width:105px;overflow:hidden;text-overflow:ellipsis}.pointlist th:nth-child(4),.pointlist td:nth-child(4){display:none}.topbar .tier{max-width:75px;overflow:hidden;text-overflow:ellipsis}.navpanel{grid-template-columns:48px 1fr auto}.compass{width:46px;height:46px}.navpanel #navCenter{display:none}}

.closemap{margin-left:8px;text-decoration:none;color:#fff;background:#ffffff14;border:1px solid #ffffff2e;border-radius:10px;padding:9px 12px;font-size:11px;font-weight:900;white-space:nowrap}.closemap:hover{background:#ffffff24}
.locatebox{border:1px solid #dfe7ee;background:#fff;border-radius:12px;padding:10px;margin-bottom:10px}.locatebox .cardtitle{font-size:12px;margin-bottom:8px}.locateactions{display:flex;gap:7px;margin-top:7px}.locateactions button{border:1px solid #d4dee7;background:#fff;color:var(--navy);border-radius:9px;padding:8px 10px;font-weight:800;cursor:pointer}.searchresults{display:none;margin-top:6px;border:1px solid #dfe7ee;border-radius:9px;overflow:hidden;background:#fff}.searchresults.show{display:block}.searchresults button{display:block;width:100%;border:0;border-bottom:1px solid #edf2f6;background:#fff;text-align:left;padding:8px 9px;color:var(--text);cursor:pointer}.searchresults button:last-child{border-bottom:0}.searchresults button:hover{background:#f5f8fb}.searchresults b{display:block;font-size:11px;color:var(--navy)}.searchresults span{display:block;font-size:9px;color:var(--muted);margin-top:2px;white-space:normal}.parcelbox{margin:9px 0;border:1px solid #d9e5ed;border-radius:11px;background:#f8fbfd;padding:9px 10px;display:flex;flex-direction:column;gap:3px}.parcelbox b{font-size:10px;color:var(--navy);text-transform:uppercase;letter-spacing:.03em}.parcelbox span{font-size:11px;color:#53687b;line-height:1.4}.parcelbox.found{background:#eff8f4;border-color:#cfe7d8}.parcelbox.warn{background:#fff8e8;border-color:#f4dfad}.profilearticle{grid-column:1/-1}.premiumtag{font-size:9px;color:#8a6400;background:#fff2bd;border-radius:999px;padding:3px 6px;vertical-align:middle}.profileactions{display:flex;gap:7px;flex-wrap:wrap}.profilemetrics{grid-template-columns:repeat(2,1fr)}.profilechart{display:none;border:1px solid #dfe7ee;border-radius:10px;background:#fff;padding:7px;margin-top:8px}.profilechart.show{display:block}.profilechart canvas{display:block;width:100%;height:190px}.profilelocked{opacity:.62}.profilelocked button{cursor:not-allowed}
@media(max-width:1440px){.closemap{padding:8px 9px;font-size:9px}.headcopy{min-width:0}.profilechart canvas{height:150px}.locateactions button{min-height:42px}.searchresults button{padding:10px}}
@media(max-width:560px){.topbar .back{display:none}.topbar img{width:65px}.closemap{margin-left:auto;max-width:112px;white-space:normal;text-align:center;line-height:1.1}.tier{display:none}.profilemetrics{grid-template-columns:1fr 1fr}}

:root{
  --navy:#173553;--navy2:#102942;--cyan:#0b8daa;--green:#3fb878;
  --line:#dce5ec;--bg:#f3f7fa;--text:#263b4f;--muted:#708294;--orange:#f3a11a;
  --surface:#ffffff;--soft:#f6f9fb;--shadow:0 14px 38px rgba(16,41,66,.14);
  --radius:14px;--control-h:42px;
}
button,input,select,a{transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .08s ease}
button:active,.closemap:active,.back:active{transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid rgba(8,145,178,.2);outline-offset:2px}
.topbar{height:72px;padding:10px 18px;gap:13px;background:linear-gradient(115deg,var(--navy2),var(--navy));box-shadow:0 4px 20px rgba(16,41,66,.22)}
.topbar img{width:96px}.back{width:40px;height:40px;border-radius:12px;font-size:22px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12)}
.back:hover,.closemap:hover{background:rgba(255,255,255,.18)}
.headcopy strong{font-size:17px;letter-spacing:-.01em}.headcopy span{font-size:11.5px;opacity:.72;margin-top:4px}
.tier{padding:6px 9px;font-size:9px;letter-spacing:.04em}.closemap{height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;border-radius:12px;font-size:10px;letter-spacing:.01em}
main{height:calc(100% - 100px)}
.layercard,.workspace{border-color:rgba(210,221,230,.95);box-shadow:var(--shadow);backdrop-filter:blur(14px)}
.layercard{width:265px;padding:14px;border-radius:18px;background:rgba(255,255,255,.94)}
.cardtitle{font-size:13px;letter-spacing:-.01em;margin-bottom:9px}.layercard details{padding:9px 0}.layercard summary{font-size:11.5px}.layercard label{font-size:11.5px;padding:7px 2px;color:#43586c}.layercard input[type=checkbox]{width:19px;height:19px}
.maptools{gap:8px}.maptools button{width:44px;height:44px;border-radius:14px;font-size:20px;background:rgba(255,255,255,.97);box-shadow:0 7px 20px rgba(16,41,66,.14)}.maptools button:hover{background:#fff;box-shadow:0 9px 24px rgba(16,41,66,.2)}
.workspace{width:min(490px,calc(100vw - 325px));border-radius:22px;background:rgba(255,255,255,.96)}
.workspace-head{padding:17px 18px 12px}.workspace-head strong{font-size:16px}.workspace-head span{font-size:11px;margin-top:4px}.ghost{min-height:36px;padding:0 12px;border-radius:10px;font-size:11px}
.tabs{gap:7px;padding:0 14px 12px}.tabs button{min-height:40px;border-radius:11px;font-size:11.5px;background:#eef3f7}.tabs button:hover{background:#e5edf3}.tabs button.active{box-shadow:0 5px 13px rgba(23,53,83,.16)}
.tab{padding:0 16px 18px}.addrow,.two,.three{gap:10px}
.addrow input,input,select{min-height:var(--control-h);border-color:#d3dde6;border-radius:11px;padding:9px 11px;font-size:12px}.addrow input:hover,input:hover,select:hover{border-color:#bfcbd6}.addrow input:focus,input:focus,select:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(8,145,178,.09)}
.addrow button,.locateactions button,.polybar button,.exportbar button,.triggrid button,.navpanel button,.modal button{min-height:var(--control-h);border-radius:11px;padding:0 13px;font-size:11px;font-weight:750}
.primary{box-shadow:0 5px 13px rgba(23,53,83,.16)}.primary:hover{background:#204565!important}.danger:hover{background:#fff0f0!important}.hint{font-size:11px;line-height:1.55;border:1px solid #e7edf2;background:#f7fafc;border-radius:12px;padding:11px 12px}
.locatebox{padding:12px;border-radius:14px;margin-bottom:12px;background:#fbfdfe}.locatebox .cardtitle{font-size:12px;margin-bottom:9px}.locateactions{margin-top:8px}.locateactions button{background:#f8fafc}.locateactions button:hover{background:#edf3f7}
.searchresults{border-radius:11px;margin-top:7px;box-shadow:0 8px 20px rgba(16,41,66,.08)}.searchresults button{padding:10px 11px}.searchresults b{font-size:11.5px}.searchresults span{font-size:9.5px;margin-top:3px}
.parcelbox{margin:10px 0 12px;border-radius:13px;padding:11px 12px}.parcelbox b{font-size:9.5px;letter-spacing:.055em}.parcelbox span{font-size:11.5px;line-height:1.5}
.polybar,.exportbar{gap:8px;margin:12px 0}.polybar button,.exportbar button{background:#fff}.polybar button:hover,.exportbar button:hover{background:#f3f7fa}.colorpick{height:var(--control-h);padding:0 10px;border:1px solid #d4dee7;background:#fff;border-radius:11px;font-size:10.5px}.colorpick input{width:30px;height:28px;border:0;padding:0;background:transparent}
.metrics{gap:10px;margin:10px 0}.metrics div{padding:12px 13px;border-radius:13px;background:linear-gradient(180deg,#fff,#fbfdfe)}.metrics b{font-size:9px;letter-spacing:.055em}.metrics span{font-size:14px;margin-top:4px}
.pointlist{border-radius:13px;max-height:290px}.pointlist table{font-size:10.5px}.pointlist th,.pointlist td{padding:9px 7px}.pointlist th{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#6b7f91}.pointlist button{min-height:30px;border-radius:8px;padding:0 8px}.pointlist tr:hover td{background:#fbfdfe}
.triggrid{gap:12px}.triggrid article{border-radius:15px;padding:14px;background:linear-gradient(180deg,#fff,#fcfdfe);box-shadow:0 3px 12px rgba(16,41,66,.035)}.triggrid h3{font-size:13px;margin:0 0 12px}.triggrid label{font-size:10px;margin-bottom:8px}.triggrid small{font-size:9.5px;margin:6px 0}.triggrid button{margin-top:2px}.result{font-size:11.5px;line-height:1.5;margin-top:10px;border:1px solid #e7edf2;border-radius:10px;padding:10px;min-height:40px;background:#f7fafc}
.premiumtag{font-size:8.5px;padding:4px 7px;font-weight:900}.profileactions{gap:8px}.profilechart{border-radius:12px;padding:9px;margin-top:10px}
.stake-marker{filter:drop-shadow(0 3px 4px rgba(0,0,0,.32))}.stake-marker .id{box-shadow:0 2px 5px rgba(16,41,66,.22)}
.leaflet-popup-content-wrapper{border-radius:15px;box-shadow:0 12px 34px rgba(16,41,66,.19)}.leaflet-popup-content{margin:13px 14px}.popupactions{gap:7px;margin-top:10px}.popupactions button{min-height:38px;border-radius:10px;font-size:10.5px}.popupactions button:hover{background:#f3f7fa}.popupactions button.main:hover{background:#204565}.popupactions button.ar:hover{background:#e5f0ff}
.modal{background:rgba(15,39,66,.58);backdrop-filter:blur(5px)}.modalcard{border-radius:24px;padding:27px;box-shadow:0 28px 80px rgba(0,0,0,.3)}.modalcard h2{font-size:20px;letter-spacing:-.015em}.modalcard p{font-size:12.5px}.introicon{width:70px;height:70px}.introfocus{padding:12px;border-radius:12px}.big{min-height:46px!important;font-size:12.5px!important}.modalcard label{font-size:10.5px;margin:10px 0}.modalactions{gap:8px;margin-top:14px}
.navpanel{border-radius:22px;padding:12px;gap:12px;box-shadow:0 22px 60px rgba(16,41,66,.28)}.navinfo b{font-size:10px}.navinfo strong{font-size:23px}.navinfo span{font-size:10px}.compass{border-color:#d4dfe8;background:#fbfdfe}
footer{height:28px;line-height:28px;font-size:8.5px;letter-spacing:.02em}
@media(max-width:1440px){
  .topbar{height:62px;padding:8px 10px;gap:9px}.topbar img{width:78px}.headcopy strong{font-size:13.5px}.closemap{height:38px;padding:0 10px;font-size:9px}.tier{font-size:8px}
  main{height:calc(100% - 90px)}.layercard{left:10px;top:10px;width:210px;padding:10px;border-radius:15px}.maptools button{width:43px;height:43px}
  .workspace{left:8px;right:8px;bottom:8px;height:min(60vh,570px);border-radius:22px}.workspace.collapsed{height:100px}.grab{margin-top:8px}.workspace-head{padding:9px 14px}.workspace-head strong{font-size:14px}.tabs{padding:0 10px 8px}.tabs button{min-height:39px}.tab{padding:0 11px 14px}
  .addrow button,.locateactions button,.polybar button,.exportbar button,.triggrid button,.navpanel button,.modal button{min-height:44px}.pointlist{max-height:190px}.polybar{gap:6px}.metrics div{padding:9px 10px}.navpanel{bottom:14px;padding:9px}
}
@media(max-width:560px){
  .topbar img{width:66px}.headcopy strong{font-size:12.5px}.closemap{max-width:118px;padding:0 8px;font-size:8.5px}.layercard{width:190px}.layercard label{font-size:10.5px}
  .workspace{height:min(63vh,590px)}.workspace-head span{font-size:10px}.tabs button{font-size:10.5px}.hint{font-size:10.5px;padding:10px}.locatebox{padding:10px}.addrow{grid-template-columns:1fr auto}.addrow button{padding:0 11px}
  .polybar button,.exportbar button{font-size:10px}.colorpick{font-size:9.5px}.pointlist th,.pointlist td{padding:8px 6px}.triggrid article{padding:12px}.triggrid h3{font-size:12.5px}.modalcard{padding:22px}.modalcard h2{font-size:18px}
}

.located-tooltip{background:#1687e8!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:5px 9px!important;font-size:10px!important;font-weight:800!important;box-shadow:0 5px 14px rgba(22,135,232,.25)!important}
.located-tooltip:before{border-top-color:#1687e8!important}
.mobile-dock{display:none}

@media (min-width:1441px){
  #intro{display:grid!important}
  #intro.hidden{display:none!important}
  .modalcard{max-height:calc(100vh - 48px);overflow:auto}
}

@media (max-width:900px){
  :root{--staking-dock-h:66px;--staking-head-h:58px;--staking-footer-h:22px}
  body{overflow:hidden}
  .topbar{height:var(--staking-head-h)!important;min-height:var(--staking-head-h);padding:7px 10px!important}
  .topbar .back{display:none!important}.topbar img{width:68px!important}.headcopy strong{font-size:13px!important}.headcopy span,.tier{display:none!important}
  .closemap{margin-left:auto!important;height:36px!important;max-width:none!important;white-space:nowrap!important;padding:0 10px!important;font-size:9px!important;border-radius:10px!important}
  main{height:calc(100dvh - var(--staking-head-h) - var(--staking-dock-h) - var(--staking-footer-h))!important}
  #map{inset:0!important}
  .maptools{right:8px!important;top:8px!important;gap:6px!important}.maptools button{width:42px!important;height:42px!important;border-radius:12px!important}
  .layercard,.workspace{display:none!important;position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(var(--staking-dock-h) + var(--staking-footer-h) + env(safe-area-inset-bottom,0px) + 6px)!important;width:auto!important;z-index:4100!important;background:#fff!important;backdrop-filter:none!important;border-radius:18px 18px 14px 14px!important;box-shadow:0 18px 55px rgba(15,39,66,.28)!important}
  .layercard.mobile-open{display:block!important;max-height:58dvh!important;overflow:auto!important;padding:14px!important}
  .workspace.mobile-open{display:flex!important;height:min(66dvh,620px)!important;max-height:calc(100dvh - var(--staking-head-h) - var(--staking-dock-h) - var(--staking-footer-h) - 18px)!important}
  .workspace.collapsed{height:auto!important}
  .grab{display:block!important;width:44px!important;height:4px!important;margin:8px auto 2px!important;background:#cbd5e1!important;border-radius:999px!important}
  .workspace-head{padding:8px 14px 9px!important}.workspace-head strong{font-size:14px!important}.workspace-head span{font-size:10px!important}
  .tabs{padding:0 10px 8px!important;gap:6px!important}.tabs button{min-height:40px!important}
  .tab{padding:0 11px 14px!important}.pointlist{max-height:185px!important}
  .mobile-dock{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:calc(var(--staking-footer-h) + env(safe-area-inset-bottom,0px));height:var(--staking-dock-h);z-index:4500;background:#fff;border-top:1px solid #dce5ec;box-shadow:0 -8px 24px rgba(15,39,66,.09);padding:5px 5px 6px}
  .mobile-dock button{border:0;background:transparent;color:#6a7d8f;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9.5px;font-weight:800;min-width:0}
  .mobile-dock button.active{background:#edf4f8;color:var(--navy)}
  .mobile-dock .dockicon{font-size:20px;line-height:22px;font-weight:600}
  footer{position:fixed;left:0;right:0;bottom:0;height:calc(var(--staking-footer-h) + env(safe-area-inset-bottom,0px))!important;line-height:var(--staking-footer-h)!important;padding-bottom:env(safe-area-inset-bottom,0px);z-index:4490;font-size:8px!important}
  .modal{z-index:9000!important;padding:14px!important;align-items:center!important;overflow:auto!important}.modalcard{width:min(430px,100%)!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important;padding:20px!important}
  .navpanel{bottom:calc(var(--staking-dock-h) + var(--staking-footer-h) + 10px)!important;z-index:4700!important}
  .leaflet-control-attribution{margin-bottom:2px!important;max-width:70vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

@media (max-width:560px){
  .headcopy{min-width:0;overflow:hidden}.headcopy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44vw}
  .closemap{font-size:8.5px!important;padding:0 8px!important}
  .workspace.mobile-open{height:min(70dvh,640px)!important}
  .layercard.mobile-open{max-height:62dvh!important}
  .two,.three{grid-template-columns:1fr!important}
  .polybar,.exportbar{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:stretch!important}.colorpick{justify-content:space-between!important}
  .metrics{grid-template-columns:1fr 1fr!important}
  .pointlist th:nth-child(4),.pointlist td:nth-child(4){display:none!important}
  .mobile-dock button{font-size:9px!important}.mobile-dock .dockicon{font-size:19px!important}
}

.navpanel{visibility:hidden;pointer-events:none}.navpanel.show{visibility:visible;pointer-events:auto}
.exporttools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.exporttools button{white-space:nowrap}
@media(max-width:900px){
  .navpanel{left:8px!important;right:8px!important;width:auto!important;bottom:calc(var(--staking-dock-h) + var(--staking-footer-h) + 10px)!important;transform:translateY(180%)!important;grid-template-columns:1fr auto!important;border-radius:16px!important;padding:10px 11px!important}
  .navpanel.show{transform:translateY(0)!important}
  .navpanel .compass{display:none!important}.navpanel #navCenter{display:none!important}.navinfo{min-width:0}.navinfo strong{font-size:19px!important}.navinfo span{white-space:normal!important;line-height:1.25}
  .exporttools{grid-template-columns:1fr 1fr!important}.exporttools button{min-height:44px!important}
}

.mobile-quick-hint{display:none}
@media(max-width:900px){
  :root{--staking-head-h:50px;--staking-dock-h:60px;--staking-footer-h:20px}
  .topbar{height:var(--staking-head-h)!important;min-height:var(--staking-head-h)!important;padding:5px 8px!important;gap:7px!important}
  .topbar img{width:56px!important}.headcopy strong{font-size:12px!important;max-width:38vw!important}.closemap{height:32px!important;font-size:8px!important;padding:0 8px!important;border-radius:9px!important}
  .maptools{top:7px!important;right:7px!important}.maptools button{width:38px!important;height:38px!important}
  .workspace.mobile-open{height:auto!important;max-height:34dvh!important;min-height:0!important;overflow:hidden!important;border-radius:18px!important}
  .workspace.mobile-open.mobile-expanded{height:min(67dvh,610px)!important;max-height:calc(100dvh - var(--staking-head-h) - var(--staking-dock-h) - var(--staking-footer-h) - 14px)!important}
  .workspace-head{padding:6px 12px 7px!important}.workspace-head strong{font-size:13px!important}.workspace-head span{font-size:9px!important}.workspace-head .ghost{min-height:34px!important;height:34px!important;padding:0 12px!important;font-size:9px!important}
  .tabs{padding:0 9px 6px!important}.tabs button{min-height:34px!important;font-size:9.5px!important}
  .tab{padding:0 9px 9px!important;overflow:auto!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .parcelbox,
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .hint,
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .polybar,
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .metrics,
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .pointlist,
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .exporttools{display:none!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .locatebox{padding:8px!important;margin-bottom:7px!important;border-radius:12px!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .locatebox .cardtitle{font-size:10.5px!important;margin-bottom:6px!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .addrow{gap:6px!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points input{min-height:38px!important;height:38px!important;padding:0 10px!important;font-size:11px!important;border-radius:10px!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points button{min-height:38px!important;height:38px!important;font-size:9.5px!important;padding:0 10px!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .locateactions{margin-top:6px!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .locateactions button{width:100%!important}
  .workspace.mobile-open:not(.mobile-expanded) #tab-points .mobile-quick-hint{display:block;margin:6px 2px 0;padding:0;color:#718396;font-size:9px;line-height:1.3}
  .workspace.mobile-open.mobile-expanded #tab-points .mobile-quick-hint{display:none!important}
  .mobile-dock{height:var(--staking-dock-h)!important;padding:3px 4px 4px!important}.mobile-dock .dockicon{font-size:18px!important;line-height:19px!important}.mobile-dock button{font-size:8.5px!important;gap:1px!important}
  footer{font-size:7.5px!important}
}
@media(max-width:560px){
  .workspace.mobile-open{max-height:31dvh!important}
  .workspace.mobile-open.mobile-expanded{height:min(66dvh,600px)!important;max-height:calc(100dvh - var(--staking-head-h) - var(--staking-dock-h) - var(--staking-footer-h) - 12px)!important}
  .headcopy strong{max-width:34vw!important}
}
@media(max-width:560px){
  .closemap{width:48px!important;min-width:48px!important;font-size:0!important;padding:0!important;text-align:center!important}
  .closemap::after{content:'Esci';font-size:9px;font-weight:800}
  .headcopy strong{max-width:48vw!important}
}

.basemap-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 14px;padding:4px;background:#edf3f8;border-radius:12px}
.basemap-switch button{min-height:38px;border:0;background:transparent;color:#62758a;font-weight:800;border-radius:9px}
.basemap-switch button.active{background:#173b5d;color:#fff;box-shadow:0 2px 8px rgba(21,47,75,.14)}
.cadastral-title{margin-top:2px}
@media(max-width:900px){.basemap-switch{margin:4px 0 10px}.basemap-switch button{min-height:42px}}

.gnssprecision{margin-top:6px;padding:7px 9px;border:1px solid #dbe6ef;border-radius:10px;background:#f7fafc;display:flex;flex-direction:column;gap:2px;min-width:0}
.gnssprecision span{font-size:10px!important;line-height:1.25!important;color:#29445d!important;font-weight:800!important;white-space:normal!important}
.gnssprecision small{font-size:8.5px!important;line-height:1.25!important;color:#718496!important;font-weight:600!important}
.gnssprecision .precision-good{color:#18794e!important}.gnssprecision .precision-medium{color:#9a6700!important}.gnssprecision .precision-low{color:#b42318!important}
.gnssprecision-ar{background:rgba(10,28,46,.72);border-color:rgba(255,255,255,.18);backdrop-filter:blur(5px)}
.gnssprecision-ar span,.gnssprecision-ar small{color:#fff!important;text-shadow:0 1px 2px #0008}
@media(max-width:900px){.gnssprecision{padding:5px 7px;margin-top:4px}.gnssprecision span{font-size:9px!important}.gnssprecision small{font-size:7.5px!important}.navpanel{align-items:center!important}.navinfo{display:flex;flex-direction:column;gap:1px}}

.precision-entry{border-color:#b9d9ea!important;background:#f2f9fc!important;color:#0b6784!important}
.precisionlead{margin-top:0}
.precisionchoice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 4px}
.precisionrun.hidden,.precisionchoice.hidden{display:none!important}
.precisionstatus{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 7px;color:var(--navy)}
.precisionstatus strong{font-size:13px}.precisionstatus span{font-size:10px;color:var(--muted);font-weight:800}
.precisionbar{height:7px;border-radius:999px;background:#e8eef3;overflow:hidden;margin-bottom:10px}.precisionbar i{display:block;width:0;height:100%;background:var(--cyan);border-radius:inherit;transition:width .2s ease}
.precisionmetrics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px 0}.precisionmetrics div{border:1px solid #dfe7ee;background:#f8fbfd;border-radius:10px;padding:8px 9px;display:flex;flex-direction:column;gap:2px}.precisionmetrics b{font-size:8.5px;text-transform:uppercase;color:var(--muted);letter-spacing:.03em}.precisionmetrics span{font-size:12px;font-weight:900;color:var(--navy)}
.precisioncard .hint{margin:9px 0}.precisioncard #precisionUse{margin-top:8px}
@media(max-width:900px){.precisioncard{padding:18px!important}.precisionchoice{grid-template-columns:1fr}.precisionmetrics{gap:6px}.precisionmetrics div{padding:7px 8px}.precisioncard .modalactions{margin-top:8px}.precision-entry{width:100%}}

.admin-hidden{display:none!important}

@media(max-width:900px){
  .workspace.mobile-open:not(.mobile-expanded){
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    overflow:hidden!important;
    border-radius:18px!important;
  }
  .workspace.mobile-open:not(.mobile-expanded) .grab,
  .workspace.mobile-open:not(.mobile-expanded) .tabs,
  .workspace.mobile-open:not(.mobile-expanded) .tab{display:none!important}
  .workspace.mobile-open:not(.mobile-expanded) .workspace-head{
    height:58px!important;
    min-height:58px!important;
    padding:9px 12px!important;
    align-items:center!important;
  }
  .workspace.mobile-open:not(.mobile-expanded) .workspace-head>div:first-child{
    min-width:0!important;
  }
  .workspace.mobile-open:not(.mobile-expanded) .workspace-head strong{font-size:12px!important}
  .workspace.mobile-open:not(.mobile-expanded) .workspace-head span{font-size:8.5px!important;margin-top:1px!important}
  .workspace.mobile-open .workspace-head-actions{margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important}
  .workspace.mobile-open .workspace-head-actions .window-min-btn{
    width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important;
    border-radius:50%!important;padding:0!important;line-height:18px!important;
  }
  .workspace.mobile-open:not(.mobile-expanded) .window-min-btn{
    background:#47c27a!important;border-color:#2faa63!important;color:#fff!important;font-size:10px!important;padding:0!important;
  }
  .workspace.mobile-open.mobile-expanded .window-min-btn{
    background:#facc15!important;border-color:#eab308!important;color:#5b4300!important;font-size:12px!important;padding-bottom:2px!important;
  }
}

@media(max-width:900px){
  .mobile-dock button{transition:background .16s ease,color .16s ease,transform .12s ease!important;opacity:.72!important}
  .mobile-dock button.active{background:#e7f0f6!important;color:var(--navy)!important;opacity:1!important;box-shadow:inset 0 0 0 1px rgba(21,47,75,.07)!important}
  .mobile-dock button.active .dockicon{font-weight:900!important}
  .mobile-dock button:active{transform:scale(.96)}
}

.maptools .atlas-map-action-btn{
  min-height:38px!important;
  padding:0 11px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid #cbd5e1!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#173653!important;
  box-shadow:0 3px 12px rgba(15,39,66,.18)!important;
  font-size:11px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.maptools .atlas-tool-glyph{display:inline-flex!important;width:20px!important;height:20px!important;align-items:center!important;justify-content:center!important}
.maptools .atlas-tool-glyph svg{display:block!important;width:20px!important;height:20px!important}
.maptools .atlas-map-action-label{display:none!important}
@media(max-width:900px){
  .maptools #atlasLocateBtn{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    border-radius:11px!important;
    font-size:16px!important;
  }
  .maptools #atlasLocateBtn .atlas-tool-glyph,
  .maptools #atlasLocateBtn .atlas-tool-glyph svg{width:22px!important;height:22px!important}
  .maptools #atlasLocateBtn .atlas-map-action-label{display:none!important}
}

.livecard{border:1px solid #dfe7ee;background:#fff;border-radius:12px;padding:10px;margin-bottom:10px}
.livecard .cardtitle{font-size:12px;margin-bottom:8px}
.livetoggle{width:100%;border:1px solid var(--navy);background:var(--navy);color:#fff;border-radius:9px;padding:10px;font-weight:800;cursor:pointer}
.livetoggle.active{background:#fff;color:var(--navy)}
.livelist{margin-top:9px;display:flex;flex-direction:column;gap:6px}
.livehint{font-size:11px;line-height:1.45;color:var(--muted);background:#f4f8fb;border-radius:9px;padding:9px 10px;margin:9px 0 0}
.liverow{display:grid;grid-template-columns:34px 1fr 46px auto;align-items:center;gap:8px;border:1px solid #e0e7ee;background:#f8fbfd;border-radius:9px;padding:7px 9px}
.liverow-id{font-weight:900;color:var(--navy);font-size:11px}
.liverow-dist{font-weight:900;color:var(--navy);font-size:13px}
.liverow-az{font-size:10px;color:var(--muted)}
.liverow-go{border:0;background:var(--navy);color:#fff;border-radius:7px;padding:6px 10px;font-size:11px;font-weight:800;cursor:pointer}
.liverow-actions{display:flex;gap:5px}
.liverow-ar{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:7px;padding:6px 8px;font-size:11px;font-weight:900;cursor:pointer}
.pointlist td.rowactions{display:flex;gap:5px}
.pointlist td.rowactions button.navbtn{color:#0b8daa}
.pointlist td.rowactions button.arbtn{color:#1d4ed8;border-color:#bfdbfe;background:#eff6ff;font-size:9px;font-weight:900}
@media(max-width:900px){.liverow{grid-template-columns:30px 1fr 40px auto;padding:6px 8px}.liverow-dist{font-size:12px}.liverow-go{padding:6px 8px;font-size:10px}.liverow-ar{padding:6px 7px;font-size:10px}}

.workspace-head,.layercard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.workspace-head-actions,.layercard-head-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin-left:auto!important;flex:0 0 auto!important}
.mac-window-dot{display:inline-block!important;visibility:visible!important;opacity:1!important;position:static!important;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;max-width:14px!important;max-height:14px!important;padding:0!important;margin:0!important;border-radius:50%!important;border:1px solid rgba(0,0,0,.14)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)!important;font-size:0!important;line-height:0!important;cursor:pointer!important;appearance:none!important}
.mac-window-dot--green{background:#57c76b!important}.mac-window-dot--yellow{background:#f5c451!important}.mac-window-dot--red{background:#ef6461!important}.mac-window-dot:hover{filter:brightness(.96);transform:scale(1.06)}
#workspaceTitle{display:block;font-weight:900;color:var(--navy);font-size:13px;line-height:1.15;margin-bottom:2px}#pointCount{display:block;font-size:10px;line-height:1.2}
.workspace.is-fullscreen,.layercard.is-fullscreen{position:fixed!important;inset:8px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;z-index:5000!important;overflow:auto!important;border-radius:18px!important;display:block!important}
.workspace.is-hidden,.layercard.is-hidden{display:none!important}
.open-workspace-btn,.open-layers-btn{position:absolute;top:16px;z-index:860;display:none;align-items:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);box-shadow:0 8px 24px #0f274226;padding:9px 12px;font-weight:900;cursor:pointer}
.open-workspace-btn{right:16px}.open-layers-btn{left:16px}.open-workspace-btn.show,.open-layers-btn.show{display:inline-flex!important}
.layercard-head{margin-bottom:8px}.layercard-head .cardtitle{margin:0!important}

.maptools #atlasLocateBtn{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;background:#47C27A!important;background-image:none!important;border:0!important;color:#fff!important;box-shadow:0 5px 16px rgba(25,120,73,.28)!important;display:flex!important;align-items:center!important;justify-content:center!important}
.maptools #atlasLocateBtn:hover,.maptools #atlasLocateBtn:active{background:#3DB66F!important;color:#fff!important}.maptools #atlasLocateBtn .atlas-tool-glyph,.maptools #atlasLocateBtn .atlas-tool-glyph svg{width:23px!important;height:23px!important;color:#fff!important}.maptools #atlasLocateBtn .atlas-map-action-label{display:none!important}

.staking-notification-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto}.staking-notification-bell{position:relative;width:36px;height:36px;min-width:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer}.staking-notification-bell:hover,.staking-notification-bell[aria-expanded="true"]{background:rgba(255,255,255,.16)}.staking-notification-bell svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.staking-notification-badge{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;border:2px solid #152f4b;border-radius:999px;background:#ef4444;color:#fff;font:800 9px/13px Montserrat,sans-serif;text-align:center;box-sizing:border-box}.staking-notification-panel{position:absolute;z-index:30000;top:44px;right:0;width:min(330px,calc(100vw - 24px));overflow:hidden;background:#fff;border:1px solid #d7e0e8;border-radius:14px;box-shadow:0 18px 46px rgba(15,39,66,.26);color:#25364b;text-align:left}.staking-notification-head{height:42px;padding:0 13px 0 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7edf3;background:#f8fafc}.staking-notification-head strong{font-size:12px;font-weight:800;color:#223a5e}.staking-notification-message{padding:14px 15px;font-size:12px;font-weight:700;line-height:1.45;color:#334155}
@media(max-width:900px){.workspace.is-fullscreen,.layercard.is-fullscreen{inset:6px 6px calc(var(--staking-dock-h,54px) + var(--staking-footer-h,26px) + 6px)!important}.open-workspace-btn{top:10px;right:10px}.open-layers-btn{left:10px;top:10px}}
@media(max-width:720px){.staking-notification-bell{width:34px;height:34px;min-width:34px}.staking-notification-panel{position:fixed;top:58px;right:8px;width:calc(100vw - 16px)}}

.workspace-head>.workspace-head-actions,.layercard-head>.layercard-head-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;white-space:nowrap!important}

@media (min-width:901px) and (max-width:1440px){
  :root{--staking-footer-h:var(--atlas-shell-footer-h,43px)!important}
  main{height:calc(100dvh - var(--atlas-shell-header-h,105px) - var(--staking-dock-h,66px) - var(--atlas-shell-footer-h,43px))!important}
  .mobile-dock{bottom:var(--atlas-shell-footer-h,43px)!important}
  .layercard,.workspace{bottom:calc(var(--staking-dock-h,66px) + var(--atlas-shell-footer-h,43px) + 6px)!important}
  .navpanel{bottom:calc(var(--staking-dock-h,66px) + var(--atlas-shell-footer-h,43px) + 10px)!important}
  footer.atlas-shared-footer{height:var(--atlas-shell-footer-h,43px)!important;min-height:var(--atlas-shell-footer-h,43px)!important;line-height:normal!important;padding-bottom:0!important}
}
@media (max-width:900px){
  :root{--staking-footer-h:var(--atlas-shell-footer-h,20px)!important}
  .mobile-dock{bottom:calc(var(--atlas-shell-footer-h,20px) + env(safe-area-inset-bottom,0px))!important}
}

.locateactions-single{display:block!important}
.locateactions-single #stakeFromDeviceBtn{width:100%!important;min-height:46px!important}

@media(max-width:900px){
  
  .workspace .tabs{display:none!important}
  .workspace-head-actions,.layercard-head-actions{display:none!important}

  .workspace .mac-window-dot,.layercard .mac-window-dot{display:none!important}

  body.atlas-shell-staking .atlas-shared-footer{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    z-index:4480!important;margin:0!important;
  }
  body.atlas-shell-staking .mobile-dock{
    bottom:calc(var(--atlas-shell-footer-h,20px) + env(safe-area-inset-bottom,0px))!important;
    z-index:4500!important;
  }

  #tab-points .polybar{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;
    padding:10px!important;margin:12px 0!important;border:1px solid #e0e7ee!important;
    border-radius:14px!important;background:#f8fbfd!important;
  }
  #tab-points .polybar button,#tab-points .polybar .colorpick{
    width:100%!important;min-height:44px!important;margin:0!important;border-radius:11px!important;
  }
  #tab-points .polybar #togglePolygon{background:var(--navy)!important;color:#fff!important;border-color:var(--navy)!important}
  #tab-points .polybar .colorpick{padding:0 12px!important;background:#fff!important;justify-content:space-between!important}
  #tab-points .polybar #undoBtn{background:#fff!important}
  #tab-points .polybar #clearBtn{background:#fff7f7!important}

  #tab-points .exporttools{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;
    padding:10px!important;margin:12px 0 4px!important;border:1px solid #e0e7ee!important;
    border-radius:14px!important;background:#f8fbfd!important;
  }
  #tab-points .exporttools::before{
    content:'Esporta';grid-column:1/-1;color:var(--muted);font-size:10px;font-weight:900;
    text-transform:uppercase;letter-spacing:.08em;padding:0 2px 2px;
  }
  #tab-points .exporttools button{width:100%!important;min-height:42px!important;margin:0!important;background:#fff!important}

  .locateactions-single{display:block!important;margin-top:8px!important}
  .locateactions-single #stakeFromDeviceBtn{width:100%!important;min-height:46px!important}
}

@media(max-width:900px){
  
  body.atlas-shell-staking .atlas-shared-footer{
    height:var(--atlas-shell-footer-h,20px)!important;min-height:var(--atlas-shell-footer-h,20px)!important;
    bottom:0!important;padding-bottom:0!important;
  }
  body.atlas-shell-staking .mobile-dock{
    bottom:calc(var(--atlas-shell-footer-h,20px) + env(safe-area-inset-bottom,0px))!important;
  }
}

body.ar-active .atlas-shared-footer,body.ar-active .mobile-dock{display:none!important}
body.ar-active .aroverlay{z-index:30000!important}
body.ar-active .arhud{bottom:calc(env(safe-area-inset-bottom) + 30px)!important;gap:10px!important;padding:0 8px!important}
body.ar-active .arhud>strong{font-size:52px!important;line-height:1!important;text-shadow:0 2px 10px #0008!important}
body.ar-active .arhud>span{font-size:19px!important;line-height:1.25!important;font-weight:900!important;text-shadow:0 2px 8px #000!important}
body.ar-active .gnssprecision-ar{
  margin:4px auto 0!important;padding:10px 14px!important;width:min(620px,100%)!important;
  border-radius:14px!important;background:rgba(15,39,66,.88)!important;border:1px solid rgba(255,255,255,.25)!important;
}
body.ar-active .gnssprecision-ar span{font-size:17px!important;font-weight:900!important;line-height:1.25!important}
body.ar-active .gnssprecision-ar small{font-size:13px!important;line-height:1.3!important;opacity:1!important}
body.ar-active .arhud>small{font-size:15px!important;line-height:1.3!important;font-weight:750!important;opacity:.95!important;text-shadow:0 2px 8px #000!important}

.atlas-mobile-map-zoom{display:flex!important;flex-direction:column!important;gap:0!important;order:1!important;}
.maptools{top:auto!important;right:16px!important;bottom:16px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;z-index:900!important;}
.atlas-mobile-map-zoom button{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:12px!important;color:#fff!important;box-shadow:0 5px 16px rgba(15,39,66,.22)!important;font-size:22px!important;font-weight:900!important;line-height:44px!important;cursor:pointer!important;}
#stakingZoomIn{background:#223A5E!important;border-radius:12px 12px 4px 4px!important;}
#stakingZoomOut{background:#0891B2!important;border-radius:4px 4px 12px 12px!important;}
.maptools #atlasLocateBtn{order:2!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;border-radius:12px!important;background:#47C27A!important;color:#fff!important;}
@media(max-width:900px){
  .maptools{position:fixed!important;right:10px!important;top:auto!important;bottom:calc(var(--staking-dock-h,54px) + var(--staking-footer-h,26px) + env(safe-area-inset-bottom,0px) + 24px)!important;display:flex!important;visibility:visible!important;opacity:1!important;z-index:4200!important;pointer-events:auto!important;}
  .atlas-mobile-map-zoom{display:flex!important;visibility:visible!important;opacity:1!important;}
  .maptools #atlasLocateBtn{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
  #stakingZoomIn,#stakingZoomOut{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
  .leaflet-control-zoom{display:none!important;}
}
body.ar-active .maptools{display:none!important;}

.trace-entry,#traceCard{display:none}
@media(max-width:900px){
  
  .field-actions-card{margin:2px 0 10px;padding:10px;border:1px solid #dfe7ee;border-radius:14px;background:#f8fbfd}
  .field-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .field-actions button{display:flex!important;align-items:center!important;gap:9px!important;min-height:58px!important;padding:9px 10px!important;border-radius:12px!important;text-align:left!important}
  .field-actions button span:last-child{display:flex;min-width:0;flex-direction:column;gap:2px}
  .field-actions button b{font-size:11px;line-height:1.15}.field-actions button small{font-size:8.5px;line-height:1.2;opacity:.82}
  .field-action-icon{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:rgba(255,255,255,.16);font-size:16px}
  .field-actions .trace-entry{display:flex!important;background:#223A5E!important;color:#fff!important;border-color:#223A5E!important}
  .field-actions #stakeFromDeviceBtn{background:#47C27A!important;color:#fff!important;border-color:#38ad68!important}
  #tab-points>.addrow{margin:0 0 10px!important}.mobile-quick-hint{margin:0 0 10px!important}
  #tab-points>.hint{font-size:9px!important;line-height:1.35!important;margin:8px 2px!important}
  #tab-points .livecard{margin-top:10px!important}
  .trace-card{display:block;margin:0 0 12px;padding:11px;border:1px solid #cbd9e5;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(15,39,66,.10)}
  .trace-card[hidden]{display:none!important}.trace-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.trace-head>div{display:flex;flex-direction:column;gap:2px}.trace-head strong{color:#223A5E;font-size:13px}.trace-head span{font-size:9px;color:#64748b;font-weight:800}.trace-head button{width:30px;height:30px;padding:0;border-radius:9px;background:#f1f5f9;font-size:18px}
  .trace-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.trace-controls button{min-height:48px;border-radius:12px;font-weight:900;letter-spacing:.04em}.trace-rec{background:#47C27A!important;color:#fff!important;border-color:#38ad68!important}.trace-stop{background:#dc3545!important;color:#fff!important;border-color:#c72e3d!important}.trace-controls button:disabled{opacity:.38!important}.rec-dot{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:50%;background:#fff;vertical-align:-1px}
  .trace-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:9px 0}.trace-metrics div{display:flex;flex-direction:column;gap:2px;padding:7px 8px;border-radius:10px;background:#f5f8fb}.trace-metrics b{font-size:8px;text-transform:uppercase;color:#64748b}.trace-metrics span{font-size:12px;font-weight:900;color:#223A5E}
  .trace-message{padding:8px 9px;border-radius:10px;background:#eef8f2;color:#245c3c;font-size:9px;font-weight:750;line-height:1.35}.trace-list-wrap{margin-top:10px}.trace-list{max-height:150px;overflow:auto;border-top:1px solid #e5ebf0}.trace-list>div{display:grid;grid-template-columns:34px 1fr auto;gap:6px;align-items:center;padding:7px 2px;border-bottom:1px solid #eef2f5;font-size:9px}.trace-list b{color:#0891B2}.trace-list small{color:#64748b}.trace-list>span{display:block;padding:8px 2px;color:#64748b;font-size:9px}
  .trace-marker{display:grid;place-items:center;width:28px;height:28px;border:2px solid #fff;border-radius:50%;background:#0891B2;color:#fff;box-shadow:0 2px 8px rgba(15,39,66,.35);font:900 9px/1 Montserrat,sans-serif}
  
  #tab-points .polybar::before{content:'Gestione picchetti';grid-column:1/-1;color:#64748b;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
  #tab-points .metrics{gap:8px!important}#tab-points .metrics>div{border-radius:12px!important;background:#f5f8fb!important}
}

@media(max-width:900px){
  .trace-toast{position:fixed;z-index:29000;left:50%;top:calc(env(safe-area-inset-top,0px) + 78px);width:min(340px,calc(100vw - 28px));transform:translate(-50%,-12px);padding:12px 14px;border-radius:14px;background:rgba(21,47,75,.96);color:#fff;box-shadow:0 14px 34px rgba(15,39,66,.28);opacity:0;pointer-events:none;transition:.2s ease}
  .trace-toast.show{opacity:1;transform:translate(-50%,0)}.trace-toast b,.trace-toast span{display:block}.trace-toast b{font-size:12px;margin-bottom:3px}.trace-toast span{font-size:9px;line-height:1.35;opacity:.92}
}

@media(min-width:901px){
  .maptools{position:absolute!important;top:auto!important;right:16px!important;bottom:16px!important;display:flex!important;visibility:visible!important;opacity:1!important;z-index:900!important;pointer-events:auto!important;}
  .maptools #atlasLocateBtn{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
  .atlas-mobile-map-zoom{display:flex!important;}
}

@media (min-width:901px){
  body.atlas-shell-staking .maptools{
    position:fixed!important;
    top:auto!important;
    right:18px!important;
    bottom:calc(var(--atlas-shell-footer-h,43px) + 18px)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:4600!important;
    pointer-events:auto!important;
  }
  body.atlas-shell-staking .maptools #atlasLocateBtn,
  body.atlas-shell-staking .maptools #stakingZoomIn,
  body.atlas-shell-staking .maptools #stakingZoomOut{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}

@media (max-width:900px){
  body.trace-mode #workspace,
  body.trace-mode #layercard{
    display:none!important;
  }

  body.trace-mode #traceCard{
    display:block!important;
    position:fixed!important;
    left:10px!important;
    right:74px!important;
    bottom:calc(var(--staking-dock-h,54px) + var(--atlas-shell-footer-h,20px) + env(safe-area-inset-bottom,0px) + 12px)!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:10px!important;
    z-index:4550!important;
    border-radius:15px!important;
    box-shadow:0 12px 34px rgba(15,39,66,.24)!important;
  }

  body.trace-mode #traceCard .trace-list-wrap{
    display:none!important;
  }

  body.trace-mode #traceCard .trace-head{
    margin-bottom:7px!important;
  }

  body.trace-mode #traceCard .trace-controls{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  body.trace-mode #traceCard .trace-controls button{
    min-height:46px!important;
  }

  body.trace-mode #traceCard .trace-metrics{
    margin:7px 0!important;
  }

  body.trace-mode #traceCard .trace-message{
    margin:0!important;
  }

  body.trace-mode .maptools{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:4700!important;
  }
}

/* Precision method cards — AtlasMap 6.1 */
.precisionchoice{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:14px 0 10px!important}
.precisionchoice button{width:100%!important;min-height:82px!important;padding:12px 14px!important;border-radius:12px!important;text-align:left!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:4px!important;white-space:normal!important;line-height:1.25!important}
.precisionchoice button b{display:block!important;font-size:13px!important;line-height:1.25!important;font-weight:800!important}
.precisionchoice button small{display:block!important;font-size:10.5px!important;line-height:1.35!important;font-weight:600!important;opacity:.86!important}
.precisionchoice button span{display:block!important;font-size:9px!important;line-height:1.3!important;font-weight:800!important;opacity:.72!important;margin-top:2px!important}
.precision-note{margin:12px 0 4px!important;line-height:1.4!important}
.precisionlead{margin:5px 0 0!important}
