/* JBW palette (JBW_Swatch_Core): Green #034f46, Light Green #a7cf95, Pale Green #e5efde,
   Apricot #ed976e, Light Apricot #f4bfa5, Pale Apricot #fceddd, Off White #fff7ef.
   Type: Neue Haas Unica Pro (Thin 100, Light 300, Regular 400, Medium 500).
   Site boundaries on the map keep the planning red line; ratings keep red/amber/green because they carry meaning. */
@font-face{font-family:'Neue Haas Unica Pro';font-weight:100;font-display:swap;src:local('Neue Haas Unica Pro Thin'),local('NeueHaasUnicaPro-Thin'),url(../fonts/NeueHaasUnicaPro-Thin.woff2) format('woff2')}
@font-face{font-family:'Neue Haas Unica Pro';font-weight:300;font-display:swap;src:local('Neue Haas Unica Pro Light'),local('NeueHaasUnicaPro-Light'),url(../fonts/NeueHaasUnicaPro-Light.woff2) format('woff2')}
@font-face{font-family:'Neue Haas Unica Pro';font-weight:400;font-display:swap;src:local('Neue Haas Unica Pro'),local('NeueHaasUnicaPro-Regular'),url(../fonts/NeueHaasUnicaPro-Regular.woff2) format('woff2')}
@font-face{font-family:'Neue Haas Unica Pro';font-weight:500 900;font-display:swap;src:local('Neue Haas Unica Pro Medium'),local('NeueHaasUnicaPro-Medium'),url(../fonts/NeueHaasUnicaPro-Medium.woff2) format('woff2')}
:root{color-scheme:light;--bg:#fff7ef;--card:#fffdfa;--ink:#0d2f2a;--mut:#56685f;--line:#eadfd2;--soft:#e5efde;--red:#034f46;--onred:#fff7ef;--acc:#ed976e;--redt:#fceddd;--danger:#c0392b}
*{box-sizing:border-box;min-width:0}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 'Neue Haas Unica Pro','Helvetica Neue',Arial,system-ui,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--red);outline-offset:2px}
h1{font-size:20px;line-height:1.1;margin:0;font-weight:500;letter-spacing:-.01em}
h2{font-size:17px;margin:0 0 10px;font-weight:500}
h3{font-size:15px;margin:0 0 6px;font-weight:500}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.sp{flex:1}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.note{font-size:13.5px;color:var(--mut);margin:4px 0 8px}
.btn{height:40px;padding:0 14px;border-radius:9px;border:1px solid var(--line);background:var(--bg);font-weight:500;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.btn.pri{background:var(--red);border-color:var(--red);color:var(--onred)}
.btn.sm{height:34px;padding:0 11px;font-size:14px}
.btn.ghost{border-color:transparent;background:transparent}
.btn.danger{color:var(--danger);border-color:var(--danger)}
.btn:disabled{opacity:.45;cursor:default}
.inp{height:38px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:var(--bg);font-size:15px;width:100%}
.signin{min-height:100%;display:grid;place-items:center;padding:20px;background:var(--soft)}
.sicard{background:var(--bg);border-radius:16px;padding:32px;width:min(420px,100%);display:grid;gap:12px;box-shadow:0 10px 40px rgba(0,0,0,.08);border-top:4px solid var(--acc)}
.sicard input{height:46px;border:1px solid var(--line);border-radius:10px;padding:0 14px;font-size:16px;background:var(--bg)}
.sicard p{margin:0;color:var(--mut)}
#app{display:flex;flex-direction:column;height:100%}
.top{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:10px max(1.5vw,12px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}
.brand svg{flex:none}
.brand small{display:block;color:var(--mut);font-size:12.5px;font-weight:500}
.search{flex:1 1 260px;height:40px;border:1px solid var(--line);border-radius:9px;padding:0 12px;background:var(--soft);font-size:15px}
.who{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--mut)}
.banner{padding:7px max(1.5vw,12px);background:var(--redt);font-size:13.5px}
.tabs{display:flex;gap:2px;padding:0 max(1.5vw,12px);border-bottom:1px solid var(--line);overflow-x:auto}
.tabs a{flex:none;padding:10px 12px;color:var(--mut);text-decoration:none;font-weight:500;border-bottom:3px solid transparent}
.tabs a[aria-current=page]{color:var(--ink);border-bottom-color:var(--acc)}
.tabs{align-items:center}
.tabs .count{margin-inline-start:auto;align-self:center;color:var(--mut);font-size:13.5px;padding-inline-start:12px;white-space:nowrap}
.filters{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;padding:8px max(1.5vw,12px);border-bottom:1px solid var(--line);background:var(--soft)}
.grp{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-inline-end:8px}
.lab{font-size:12.5px;color:var(--mut);font-weight:500;margin-inline-end:2px}
.chip{height:30px;padding:0 10px;border-radius:15px;border:1px solid var(--line);background:var(--bg);font-size:13.5px;font-weight:500;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.chip i{width:9px;height:9px;border-radius:50%;flex:none}
.chip[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.more{display:none;width:100%;gap:10px 18px;flex-wrap:wrap;padding-top:6px}
.more.on{display:flex}
.ff{display:flex;flex-direction:column;gap:3px;font-size:12.5px;font-weight:500;color:var(--mut)}
.ff .rng{display:flex;gap:4px}
.ff input,.ff select{height:32px;width:96px;border:1px solid var(--line);border-radius:7px;padding:0 7px;background:var(--bg);font-size:14px;color:var(--ink);font-weight:500}
.ff select{width:200px}
main{flex:1;min-height:0;display:flex;flex-direction:column}
.view{display:none;flex:1;min-height:0;overflow:auto}
.view.on{display:block}
#v-map.on{display:grid;grid-template-columns:minmax(0,1fr) 420px;overflow:hidden}
.mapwrap{position:relative;min-height:0}
#map{position:absolute;inset:0}
.mapbar{position:absolute;top:10px;left:56px;right:10px;z-index:1000;background:var(--ink);color:var(--bg);border-radius:10px;padding:8px 12px;display:flex;gap:8px;align-items:center;font-weight:500;font-size:14px;max-width:640px}
.mapbar .btn.inv{color:var(--bg)}
.mapbar{max-width:880px;flex-wrap:wrap}.mbfit{display:flex;gap:4px;align-items:center}.mapbar .mbfit .btn[aria-pressed=true]{background:var(--bg);color:var(--ink)}.mbarea{font-size:12px;opacity:.8;margin-left:4px}
.side{border-inline-start:1px solid var(--line);overflow-y:auto;min-height:0}
.side .hd{display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:2;font-size:13.5px;color:var(--mut)}
.side .hd label{display:flex;align-items:center;gap:6px;margin-inline-start:auto;font-weight:500}
.card{padding:10px 14px;border:0;border-bottom:1px solid var(--line);cursor:pointer;display:block;width:100%;text-align:start;background:none}
.card:hover{background:var(--soft)}
.card .t1{display:flex;gap:8px;justify-content:space-between;align-items:start}
.card b{font-size:15px}
.card .ad{color:var(--mut);font-size:13px}
.kv{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:13px;margin-top:4px}
.kv span{white-space:nowrap}.kv em{font-style:normal;color:var(--mut)}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:500;padding:2px 8px;border-radius:12px;background:var(--soft);white-space:nowrap;margin:4px 6px 4px 0}
.pill i{width:8px;height:8px;border-radius:50%}
.tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.tag{font-size:11.5px;font-weight:500;padding:1px 7px;border-radius:4px;color:var(--onrule);white-space:nowrap}
.warn{font-size:12.5px;color:#a15c00;font-weight:500}
.empty{padding:40px 20px;text-align:center;color:var(--mut)}
.empty b{display:block;color:var(--ink);font-size:17px;margin-bottom:6px}
/* detail */
.dt{padding:12px 16px 30px}
.dt .back{margin:-4px 0 6px -8px}
.dt h2{font-size:20px;margin:0}
.dt .meta{color:var(--mut);font-size:13px;margin:2px 0 10px}
.dt .acts{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.dt details{border-top:1px solid var(--line);padding:6px 0}
.dt summary{font-weight:500;cursor:pointer;padding:6px 0;list-style-position:outside}
.dl{display:grid;grid-template-columns:minmax(0,11em) minmax(0,1fr);gap:4px 12px;font-size:14px;margin:4px 0 6px}
.dl dt{color:var(--mut);font-weight:500}
.dl dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.box{background:var(--soft);border-radius:10px;padding:10px 12px;font-size:13.5px;margin:8px 0}
.form{display:grid;gap:10px}
.fld{display:flex;flex-direction:column;gap:3px;font-size:13px;font-weight:500}
.fld input,.fld select,.fld textarea{border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:var(--bg);font-size:15px;font-weight:500;min-height:38px;width:100%}
.fld textarea{min-height:70px;resize:vertical}
.fld .r{display:flex;gap:6px}.fld .r input{flex:1}.fld .r .btn{flex:none}
.fld .hint{font-weight:500;color:var(--mut);font-size:12.5px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.formbar{position:sticky;bottom:0;background:var(--bg);display:flex;gap:8px;padding:10px 0;border-top:1px solid var(--line);margin-top:6px}
.hist{font-size:13px;border-top:1px solid var(--line);padding:6px 0}
.hist b{font-weight:500}
.hist ul{margin:2px 0 0;padding-inline-start:18px;color:var(--mut)}
/* table */
.wrap{padding:16px max(1.5vw,12px)}
.bar2{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.bar2 h2{margin:0}
.colpick{position:relative}
.colpick summary{list-style:none}
.colpick summary::-webkit-details-marker{display:none}
.colpick #colList{position:absolute;right:0;top:40px;z-index:20;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px;width:300px;max-height:60vh;overflow:auto;box-shadow:0 10px 30px rgba(0,0,0,.15);font-size:14px}
.colpick label{display:flex;gap:8px;padding:3px 0}
.colpick .g{font-weight:500;margin-top:6px}
.scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:13.5px}
th,td{padding:7px 9px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
th{font-size:12.5px;color:var(--mut);white-space:nowrap;position:sticky;top:0;background:var(--bg);z-index:1}
th button{border:0;background:none;font-weight:500;color:inherit;padding:0}
td{max-width:340px}
td.n,th.n{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
td.clip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
tbody tr{cursor:pointer}tbody tr:hover{background:var(--soft)}
/* analysis */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:18px}
.kpi{border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.kpi.hi{background:var(--redt);border-color:transparent}
.kpi em{display:block;font-style:normal;color:var(--mut);font-size:12.5px;font-weight:500}
.kpi b{display:block;font-size:clamp(24px,2.8vw,32px);font-weight:300;letter-spacing:-.01em;line-height:1.15;white-space:nowrap}
.kpi small{color:var(--mut);font-size:12.5px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:16px}
.panel{border:1px solid var(--line);border-radius:12px;padding:16px}
.panel.wide{grid-column:1/-1}
.ctl{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;align-items:center;font-size:14px}
.ctl select{height:34px;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:var(--bg);font-size:14px;max-width:260px}
.hb{display:grid;grid-template-columns:minmax(0,12em) minmax(0,1fr) auto;gap:10px;align-items:center;font-size:13.5px;padding:3px 0}
.hb .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb .tr{height:15px;background:var(--soft);border-radius:4px;overflow:hidden;display:flex}
.hb .tr i{display:block;height:100%}
.hb .v{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:end;min-width:4em}
.mx td,.mx th{text-align:end}.mx td:first-child,.mx th:first-child{text-align:start}
.mx .dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-inline-end:5px}
.fig{position:relative;height:360px}.fig>svg{position:absolute;inset:0;width:100%;height:100%}
.fig text{font:11.5px Manrope,sans-serif;fill:var(--mut)}
/* setup */
.setup{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr));align-items:start}
.frow{display:grid;grid-template-columns:28px minmax(0,1.5fr) 120px 140px minmax(0,1.3fr) auto;gap:6px;align-items:center;padding:5px 0;border-bottom:1px solid var(--line)}
.frow input,.frow select{height:36px;border:1px solid var(--line);border-radius:7px;padding:0 8px;background:var(--bg);font-size:14px;width:100%}
.trow{display:flex;gap:8px;align-items:center;padding:5px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.icon{width:32px;height:32px;border:0;background:none;border-radius:7px;color:var(--mut);font-size:15px;flex:none}
.icon:hover{background:var(--soft);color:var(--ink)}
.sw{display:flex;gap:3px}
.sw button{width:20px;height:20px;border-radius:50%;border:2px solid transparent;padding:0}
.sw button[aria-pressed=true]{border-color:var(--ink)}
.prev{font-size:14px;margin-top:10px}
.prev table{font-size:13px}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:10px;display:none;gap:12px;align-items:center;z-index:3000;font-size:14.5px;max-width:calc(100vw - 24px)}
.toast.on{display:flex}
.toast button{background:none;border:0;color:var(--bg);font-weight:500;text-decoration:underline}
.leaflet-container{font-family:Manrope,sans-serif}
.picking .leaflet-container{cursor:crosshair}
.legend{background:var(--bg);color:var(--ink);padding:7px 10px;border-radius:8px;font-size:12px;line-height:1.6;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-inline-end:6px}
.goto{display:flex;background:var(--bg);border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.goto input{height:34px;border:0;border-radius:8px;padding:0 10px;width:220px;background:transparent;font-size:14px}
.sitelbl{background:transparent;border:0;box-shadow:none;font-weight:500;font-size:12px;color:var(--ink);text-shadow:0 0 3px #fff7ef,0 0 3px #fff7ef,0 0 3px #fff7ef}
.sitelbl::before{display:none}
@media(max-width:1000px){#v-map.on{grid-template-columns:1fr;grid-template-rows:55vh auto;overflow:auto}.side{border:0;overflow:visible}.frow{grid-template-columns:28px 1fr 1fr}.frow>:nth-child(4){grid-column:2}}
@media(max-width:600px){.two{grid-template-columns:1fr}.who span{display:none}.brand small{display:none}.dl{grid-template-columns:1fr}.goto input{width:150px}}
td:first-child{white-space:nowrap}
.dt .pill,.card .pill{flex:none}

.drag{width:28px;height:36px;border:0;background:none;color:var(--mut);font-size:18px;cursor:grab;touch-action:none;border-radius:6px;padding:0}
.drag:hover{background:var(--soft);color:var(--ink)}
.frow.dragging{background:var(--redt);box-shadow:0 4px 14px rgba(0,0,0,.15);border-radius:8px;position:relative;z-index:2}
.frow.dragging .drag{cursor:grabbing}

.legend{max-height:46vh;overflow:auto;min-width:170px;max-width:260px}
.legend .cb{display:flex;flex-direction:column;gap:3px;font-weight:500;font-size:12px;color:var(--mut);margin-bottom:6px}
.legend select{height:30px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);font-size:13px;padding:0 4px;max-width:240px}
.legend .lc{color:var(--mut)}

/* edit in table */
table.editing tbody tr{cursor:default}
table.editing tbody tr:hover{background:none}
td.ed{padding:3px 4px;min-width:130px}
td.ed input,td.ed select{width:100%;height:32px;border:1px solid transparent;border-radius:6px;padding:0 6px;background:transparent;font:inherit;font-size:13.5px;color:inherit}
td.ed input:hover,td.ed select:hover{border-color:var(--line)}
td.ed input:focus,td.ed select:focus{border-color:#2f6fdf;background:var(--bg);outline:2px solid rgba(47,111,223,.25)}
td.ed.saving input,td.ed.saving select{background:rgba(224,138,0,.12)}
td.ed.ok input,td.ed.ok select{background:rgba(31,157,85,.15);transition:background .6s}
td.ed.bad input,td.ed.bad select,td.ed .bad{border-color:var(--danger);background:rgba(215,38,46,.1)}
/* boundary matrix */
.mxctl label{display:flex;gap:6px;align-items:center}
.mxctl .cb{font-size:14px}
.mxlegend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;margin:2px 0 6px}
.mxlegend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-inline-end:5px;vertical-align:-1px}
.sbar{display:inline-block;height:6px;border:1.5px solid currentColor;border-top:0;vertical-align:middle;margin:0 2px}
.mxgrid{display:grid;gap:0;min-width:min-content;padding:4px 0 8px}
.mxgrid>.empty{grid-column:1/-1}
.ax{font-size:12.5px;display:flex;align-items:center;gap:5px}
.ytitle{justify-content:center;font-weight:500}
.ytitle span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
.ylab{justify-content:flex-end;text-align:end;padding:0 10px;font-weight:500;border-right:2px solid var(--ink);max-width:220px}
.xlab{justify-content:center;text-align:center;padding:8px 4px 2px;font-weight:500;border-top:2px solid var(--ink);align-items:flex-start;gap:4px}
.xtitle{justify-content:center;font-weight:500;padding:6px 0}
.blk{border:1.5px solid var(--mut);pointer-events:none;z-index:1}
.mx0,.mt{border:1px solid var(--line);margin:0 -1px -1px 0}
.mx0{background:repeating-linear-gradient(45deg,transparent 0 6px,rgba(0,0,0,.025) 6px 12px)}
.mt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);padding:2px;border-radius:0;cursor:pointer;font:inherit;overflow:hidden;min-width:0}
.mt:hover,.mt:focus-visible{background:var(--soft)}
.mt span{position:relative;background:var(--bg);padding:0 3px;border-radius:3px;font-size:11px;color:var(--mut);max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
td.nw{white-space:nowrap}
table.editing td{vertical-align:middle}
td.ed.num{min-width:84px}
/* header: Green bar with white text */
.top{background:var(--rule);color:var(--onrule);border-bottom:0}
.top .brand small,.top .who{color:var(--onrule)}
.top .brand svg rect{fill:#fff7ef}
.top .search{background:rgba(255,255,255,.9);border-color:transparent;color:var(--ink)}
.top .search::placeholder{color:var(--mut)}
.top .btn.ghost{color:var(--onrule)}
.top .btn.pri{background:#ed976e;border-color:#ed976e;color:var(--rule)}
.top :focus-visible{outline-color:var(--paper)}
/* datasheet */
.dsbar{position:sticky;top:0;z-index:5;background:var(--bg);padding:6px 0}
.dspick{height:34px;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:var(--bg);font-size:14px;width:min(420px,60vw)}
.dshint{margin-top:-4px}
.ds{max-width:1100px;margin:6px auto 0;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:26px 30px}
.dshd{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:3px solid var(--red);padding-bottom:14px;margin-bottom:16px}
.dshd h2{font-size:clamp(24px,3vw,32px);font-weight:300;letter-spacing:-.01em;margin:2px 0 4px}
.dsref{font-size:13px;color:var(--mut);font-weight:500;letter-spacing:.02em}
.dsrate{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.dsrate small{color:var(--mut);font-size:12px}
.dsrate .pill{font-size:15px;padding:4px 12px}
.dsfig{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:16px}
.dsfig .kpi b{font-size:24px}
.dsviz{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:14px;margin-bottom:10px}
.dsviz figure{margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg)}
.dsmap{height:320px;background:var(--soft)}
.dssvg{display:block;width:100%;height:320px}
.ds3d{height:320px;background:var(--t2,#e5efde);position:relative}
.ds3d .maplibregl-map{position:absolute;inset:0}
.dssvg .na circle,.dssvg .na path{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round}.dssvg text{font-size:11px;fill:var(--ink)}
.dssvg .sb path{fill:none;stroke:var(--ink);stroke-width:1.5}
.dsviz figcaption{font-size:12.5px;color:var(--mut);padding:6px 10px;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;min-height:38px}
.dsbase{margin-inline-start:auto;display:flex;gap:2px}
.dsbase .btn{height:26px;font-size:12.5px;padding:0 8px}
.dsbase .btn[aria-pressed=true]{background:var(--soft)}
.dsnone{height:320px;display:grid;place-items:center;color:var(--mut);font-size:14px}
.dsg{margin-top:18px}
.dsg h3{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--red);border-bottom:1px solid var(--line);padding-bottom:5px;margin-bottom:8px}
.dsg dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px 22px;margin:0}
.dsf{break-inside:avoid}.dsf.wide{grid-column:1/-1}
.dsf dt{font-size:12px;color:var(--mut)}
.dsf dd{margin:1px 0 0;font-size:14.5px;white-space:pre-wrap}
.dsnotes{white-space:pre-wrap;margin:0}
@media print{
  @page{size:A4;margin:12mm}
  body{background:var(--paper)}
  #app>header,.tabs,#filters,#banner,.dsbar,.dshint,.dsbase,.toast{display:none!important}
  #app{height:auto;display:block}main,.view.on{overflow:visible;display:block}
  .ds{border:0;padding:0;max-width:none;background:var(--paper)}
  .dsviz figure{break-inside:avoid}.dsg{break-inside:auto}
  .dsviz{grid-template-columns:1fr 1fr}.dsmap,.dssvg,.dsnone,.ds3d{height:250px}.dsfig{grid-template-columns:repeat(6,1fr)}.dsfig .kpi b{font-size:18px}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .dsg{margin-top:10px}.dsg dl{grid-template-columns:repeat(3,1fr);gap:6px 16px}.dsf dd{font-size:12px}.dsf dt{font-size:10.5px}.dshd h2{font-size:24px}
}
/* site navigation in the tab bar */
.snav{display:flex;align-items:center;gap:4px;flex:none;padding-inline-start:14px}
.snav select{height:32px;border:1px solid var(--line);border-radius:8px;padding:0 6px;background:var(--bg);font-size:13.5px;width:clamp(160px,22vw,320px)}
.snav .btn{height:32px;width:32px;justify-content:center;padding:0;font-size:16px}
.snav .note{margin:0 0 0 4px;white-space:nowrap}
tbody tr.cur{background:var(--soft);box-shadow:inset 3px 0 0 var(--red)}
.mt.cur{outline:3px solid var(--acc);outline-offset:-3px;z-index:2}
/* empty and editable fields */
.blank{color:var(--mut);opacity:.7}
.ie.editing dd{margin-top:2px}
.ie input,.ie select,.ie textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:5px 8px;background:var(--bg);font:inherit;font-size:14px;color:var(--ink)}
.ie select,.ie input{height:34px}
.ie textarea{min-height:64px;resize:vertical}
.ie input:focus,.ie select:focus,.ie textarea:focus{border-color:var(--red);outline:2px solid rgba(3,79,70,.2)}
.ie .dsf.saving :is(input,select,textarea){background:rgba(237,151,110,.15)}
.ie .dsf.ok :is(input,select,textarea){background:rgba(167,207,149,.35);transition:background .6s}
.ie .dsf.bad :is(input,select,textarea),.ie .bad{border-color:var(--danger);background:rgba(192,57,43,.08)}
.side-fields .dsg dl{grid-template-columns:1fr}
.side-fields .dsg{margin-top:12px}
/* site panel for Table, Matrix and Analysis */
.sitepanel{position:fixed;top:0;right:0;bottom:0;width:min(400px,92vw);z-index:1500;background:var(--bg);border-left:1px solid var(--line);box-shadow:-10px 0 30px rgba(0,0,0,.12);overflow:auto;padding:16px 18px 30px}
.sitepanel .sphd{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.sitepanel h2{font-size:20px;font-weight:400;margin:2px 0 6px}
.spacts{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.spfig{margin:0 0 6px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.spfig .dssvg{height:200px}
.spfig figcaption{font-size:12px;color:var(--mut);padding:5px 9px;border-top:1px solid var(--line)}
.sitepanel .dsg dl{grid-template-columns:1fr}
body.panel-on main .wrap{padding-right:calc(min(400px,92vw) + 12px)}
@media(max-width:900px){body.panel-on main .wrap{padding-right:max(1.5vw,12px)}}
@media print{.snav,.sitepanel{display:none!important}}
/* ===== Modernist theme: green linework on white =====
   Flat white ground, one green for every line, square corners, no shadows.
   Heavy rules divide sections; hairlines divide rows. */
:root{--bg:#fff;--card:#fff;--rule:#034f46;--line:rgba(3,79,70,.3);--soft:#f3f7f1;--redt:#fff;--ink:#0d2f2a;--mut:#4d625a}
.btn,.inp,.search,.chip,.sicard,.sicard input,.ff input,.ff select,.box,.fld input,.fld select,.fld textarea,.colpick #colList,.kpi,.panel,.ctl select,.hb .tr,.frow input,.frow select,.legend,.legend select,.goto,.goto input,td.ed input,td.ed select,.dspick,.ds,.dsviz figure,.snav select,.ie input,.ie select,.ie textarea,.spfig,.toast,.mapbar,.pill,.tag,.mxlegend i,.mt span,.dsbase .btn,.icon{border-radius:0!important}
.sicard,.legend,.goto,.colpick #colList,.sitepanel,.frow.dragging{box-shadow:none!important}
.legend,.goto,.colpick #colList{border:1px solid var(--rule)}
/* buttons: outlined green, solid green for the main action */
.btn{border-color:var(--rule);color:var(--rule)}
.btn.ghost{border-color:transparent}
.btn.pri{background:var(--rule);border-color:var(--rule);color:var(--onrule)}
.chip{border-color:var(--rule);color:var(--rule)}
.chip[aria-pressed=true]{background:var(--rule);border-color:var(--rule);color:var(--onrule)}
.pill{background:var(--paper);border:1px solid var(--line)}
/* structural rules */
.tabs{border-bottom:2px solid var(--rule)}
.tabs a[aria-current=page]{color:var(--rule);border-bottom-color:var(--rule);border-bottom-width:4px}
.filters{background:var(--paper);border-bottom:1px solid var(--rule)}
.banner{background:var(--paper);border-bottom:1px solid var(--line);color:var(--mut)}
.side{border-inline-start:2px solid var(--rule)}
.side .hd{border-bottom:1px solid var(--rule)}
.sitepanel{border-left:2px solid var(--rule)}
.box{background:var(--paper);border:1px solid var(--line);border-left:4px solid var(--rule)}
/* section headings sit under a heavy rule, Swiss style */
.panel{border:0;border-top:4px solid var(--rule);padding:12px 0 0}
.panel h2,.bar2 h2,.dt h2{font-weight:500}
.panel>h2{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--rule);margin-bottom:14px}
.kpis{gap:0 24px}
.kpi{border:0;border-top:4px solid var(--rule);padding:10px 0 4px}
.kpi.hi{background:none}
.kpi em{text-transform:uppercase;letter-spacing:.07em;font-size:11.5px;color:var(--rule)}
.bar2{border-bottom:1px solid var(--rule);padding-bottom:10px;margin-bottom:14px}
.bar2 h2{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--rule)}
/* tables */
th{border-bottom:2px solid var(--rule);color:var(--rule);text-transform:uppercase;letter-spacing:.05em;font-size:11.5px}
th,td{border-bottom-color:var(--line)}
tbody tr:hover{background:var(--soft)}
/* datasheet and field lists */
.ds{border:0;border-top:6px solid var(--rule);padding:22px 0 0;background:var(--paper)}
.dshd{border-bottom:2px solid var(--rule)}
.dsviz figure{border:1px solid var(--rule)}
.dsviz figcaption,.spfig figcaption{border-top:1px solid var(--rule)}
.dsg h3,.side-fields .dsg h3{color:var(--rule);border-bottom:0;border-top:2px solid var(--rule);padding:6px 0 0;margin-bottom:10px}
.dsf{border-top:1px solid var(--line);padding-top:5px}
.dsfig .kpi b{font-size:26px}
.spfig{border:1px solid var(--rule)}
/* matrix */
.ylab{border-right:2px solid var(--rule)}.xlab{border-top:2px solid var(--rule)}
.blk{border:1.5px solid var(--rule)}
.mx0,.mt{border-color:var(--line)}
.mh,.ax{color:var(--rule)}
/* inputs */
.ie input,.ie select,.ie textarea,.fld input,.fld select,.fld textarea,.inp,.ctl select,.snav select{border-color:var(--line)}
.ie input:focus,.ie select:focus,.ie textarea:focus{border-color:var(--rule)}
.sicard{border:1px solid var(--rule);border-top:6px solid var(--rule)}
.signin{background:var(--paper)}
.card:hover{background:var(--soft)}
.card{border-bottom-color:var(--line)}
@media print{.ds{border-top-width:4px}}
/* ===== refinements: round buttons, lighter rules, white header ===== */
.btn,.dsbase .btn{border-radius:999px!important}
.btn.sm{padding:0 13px}
.chip{border-radius:999px!important}
.icon{border-radius:50%!important}
.snav .btn{border-radius:50%!important}
.panel{border-top-width:2px}
.kpi{border-top-width:2px}
.ds{border-top-width:2px}
.dsg h3,.side-fields .dsg h3{border-top-width:1.5px}
.dshd{border-bottom-width:1.5px}
.tabs{border-bottom-width:1px}
.tabs a[aria-current=page]{border-bottom-width:2px}
th{border-bottom-width:1.5px}
.sicard{border-top-width:2px}
.ylab{border-right-width:1.5px}.xlab{border-top-width:1.5px}
/* header: white with a green rule */
.top{background:var(--paper);color:var(--rule);border-bottom:2px solid var(--rule)}
.top .brand small,.top .who{color:var(--mut)}
.top .brand svg rect{fill:#e5efde}
.top .search{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:999px!important;padding:0 16px}
.top .search:focus{border-color:var(--rule);outline:2px solid rgba(3,79,70,.15)}
.top .search::placeholder{color:var(--mut)}
.top .btn.ghost{color:var(--rule)}
.top .btn.pri{background:var(--rule);border-color:var(--rule);color:var(--onrule)}
.top :focus-visible{outline-color:var(--rule)}
@media print{.ds{border-top-width:2px}}
/* ===== green tints: Pale Green and two lighter steps of the brand green ===== */
:root{--t1:#f4f8f2;--t2:#e5efde;--t3:#cfe2c3;--soft:var(--t2)}
.filters{background:var(--t1)}
.banner{background:var(--t2);color:var(--ink)}
.side .hd{background:var(--t1)}
.card:hover,tbody tr:hover{background:var(--t1)}
tbody tr.cur,.card.cur{background:var(--t2)}
th{background:var(--t1)}
.kpi{background:var(--t1);padding:10px 12px 6px}
.kpi.hi{background:var(--t2)}
.box{background:var(--t1)}
.pill{background:var(--t1);border-color:transparent}
.chip{background:var(--paper)}
.hb .tr{background:var(--t2)}
.dsfig .kpi{background:var(--t1)}
.dsviz figcaption,.spfig figcaption{background:var(--t1)}
.dsmap{background:var(--t2)}
.dsg h3{background:linear-gradient(var(--t2),var(--t2)) no-repeat 0 0/100% 100%;padding:6px 8px}
.ylab,.xlab{background:var(--t1)}
.ax.ytitle{background:var(--paper)}
.mt:hover,.mt:focus-visible{background:var(--t2)}
.sitepanel .sphd{background:var(--t2);margin:-16px -18px 0;padding:16px 18px 12px;border-bottom:1px solid var(--rule)}
.dt .acts{background:var(--t1);margin:8px -14px;padding:8px 14px}
.top .brand svg rect{fill:var(--t2)}
.legend{background:var(--paper)}
.snav select,.ctl select{background:var(--paper)}
/* matrix cells: drawing area on top, label in its own strip below, nothing overlaps */
.mt{justify-content:flex-start;padding:4px 2px 2px;gap:2px}
.mt svg{flex:none;display:block}
.mt span{background:none;max-width:104px;line-height:14px}
/* matrix centred on the page with generous space above and below */
#mxGrid{width:max-content;margin:40px auto 48px}
#mxNote,#mxLegend{text-align:center;justify-content:center}
/* subtitles: Medium weight, sentence case (labels are already written in sentence case) */
.panel>h2,.bar2 h2,.kpi em,th,.dsg h3,th button{text-transform:none;letter-spacing:0;font-weight:500}
.panel>h2,.bar2 h2{font-size:15px}
.kpi em{font-size:12.5px}
th{font-size:12.5px}
.dsg h3{font-size:14px}
/* datasheet section headers: no tint */
#dsSheet .dsg h3{background:none;padding:6px 0 0}
/* footer with the JBW logo, on every page */
.foot{flex:none;display:flex;align-items:center;padding:10px max(1.5vw,12px);border-top:1px solid var(--rule);background:var(--paper);color:var(--rule)}
.foot .jbw{height:16px;width:auto;display:block}
@media print{.foot{display:flex!important;border-top:1px solid var(--rule);margin-top:16px;padding:8px 0}.foot .jbw{height:12px}}
/* Site photos on the Datasheet */
.dsph h3{display:flex;align-items:center;gap:8px}.dsph h3 .sp{flex:1}
.dsphadd{text-transform:none;letter-spacing:0;font-size:13.5px;cursor:pointer;height:30px;color:var(--rule,#034f46)}
.dsphgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;min-height:40px}
.dsph.drop .dsphgrid{outline:2px dashed var(--rule,#034f46);outline-offset:4px;background:var(--t1,#f4f8f2)}
.dsphf{margin:0;border:1px solid var(--rule,#034f46);background:var(--bg);display:flex;flex-direction:column}
.dsphb{all:unset;cursor:zoom-in;display:block;aspect-ratio:4/3;overflow:hidden;background:#eee}
.dsphb img{width:100%;height:100%;object-fit:cover;display:block}
.dsphb:focus-visible{outline:2px solid var(--rule,#034f46);outline-offset:2px}
.dsphf figcaption{font-size:12.5px;padding:5px 8px;border-top:1px solid var(--rule,#034f46);background:var(--t1,#f4f8f2);display:flex;flex-direction:column;gap:1px}
.dsphf figcaption small{color:var(--mut);font-size:11px}
.phbox{position:fixed;inset:0;z-index:3000;background:rgba(13,47,42,.82);display:grid;place-items:center;padding:24px}
.phbox[hidden]{display:none}
.phin{background:var(--paper);max-width:min(1400px,96vw);max-height:94vh;display:flex;flex-direction:column}
.phin img{max-width:100%;max-height:calc(94vh - 56px);object-fit:contain;display:block;margin:auto;background:#111}
.phbar{display:flex;align-items:center;gap:6px;padding:8px 10px;font-size:13.5px;border-top:2px solid var(--rule,#034f46)}.phbar .sp{flex:1}
@media print{.dsphadd{display:none!important}.dsphgrid{grid-template-columns:repeat(4,1fr)}.dsphf{break-inside:avoid}.phbox{display:none!important}}
/* Setup: a gear at the top right of the header */
.gear{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;color:inherit;margin-inline-start:4px;text-decoration:none}
.gear:hover{background:rgba(3,79,70,.08)}
.gear[aria-current=page]{background:var(--rule,#034f46);color:var(--onrule)}
.who{margin-inline-start:auto}
.ds3d{background:var(--paper);border:1px solid var(--line,#dfe6e1)}
.dsaxosvg{display:block}
.dsaxobar{position:absolute;top:6px;right:6px;display:flex;gap:4px;align-items:center}
.dsaxon{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid var(--ink);border-radius:50%;font-size:12px;line-height:1;background:var(--paper)}
.dsaxoload{position:absolute;left:8px;bottom:6px;font-size:12px;color:var(--mut,#4d625a)}
@media print{.dsaxobar{display:none}}
/* ===== Light and dark themes =====
   --paper is the ground of buttons, inputs and panels; --onrule is text on a filled green (light) or white (dark) button.
   Dark mode is white on JBW green. Drawings (maps, 3D views, sheet previews) stay as white paper in both. */
:root{--paper:#fff;--onrule:#fff}
:root[data-theme=dark]{color-scheme:dark;--bg:#034f46;--card:#03463e;--paper:#034f46;--ink:#fff;--mut:#cfe0d8;--rule:#fff;--onrule:#034f46;
  --line:rgba(255,255,255,.3);--t1:#0a5a50;--t2:#0f6458;--t3:#187065;--soft:#0f6458;--red:#fff;--onred:#034f46;--redt:#0a5a50;--acc:#ed976e;--danger:#ffb4a8}
:root[data-theme=dark] body{background:var(--bg);color:var(--ink)}
:root[data-theme=dark] .leaflet-container,:root[data-theme=dark] .prview,:root[data-theme=dark] .saprev,:root[data-theme=dark] .pmcmpt,:root[data-theme=dark] .dsmap,:root[data-theme=dark] .satools,:root[data-theme=dark] .spfig,:root[data-theme=dark] #ds3d,:root[data-theme=dark] .dssvg{
  color-scheme:light;--bg:#fff;--card:#fff;--paper:#fff;--ink:#0d2f2a;--mut:#4d625a;--rule:#034f46;--onrule:#fff;--line:rgba(3,79,70,.3);--t1:#f4f8f2;--t2:#e5efde;--t3:#cfe2c3;--soft:#e5efde;--red:#034f46;--onred:#fff;--danger:#c0392b;color:var(--ink)}
:root[data-theme=dark] .warnc,:root[data-theme=dark] .note.warn,:root[data-theme=dark] .sa .warn{color:#ffc9a8!important}
:root[data-theme=dark] .top .brand svg rect{fill:#0a5a50}
:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:rgba(255,255,255,.55)}
:root[data-theme=dark] select option{background:#034f46;color:#fff}
.themebtn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:999px;border:1px solid var(--rule);background:var(--paper);color:var(--rule);cursor:pointer;padding:0}
.themebtn svg{width:18px;height:18px}
.themebtn .sun{display:none}:root[data-theme=dark] .themebtn .sun{display:block}:root[data-theme=dark] .themebtn .moon{display:none}
.themebtn{margin-left:6px;flex:none}
/* Plan view controls (js/plan.js): base map pills on the Map tab, Diagram and Overlay toggles */
.planctl{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:420px}
.planbtn{height:30px;padding:0 11px;border-radius:999px;border:1px solid var(--rule);background:var(--paper);color:var(--rule);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.planbtn[aria-pressed=true]{background:var(--rule);color:var(--onrule)}
.planbtn:disabled{opacity:.45;cursor:default}
.planote{background:rgba(255,255,255,.92);color:#0d2f2a;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:500}
.leaflet-container.plandiagram{background:#fff}
.saplan{display:inline-flex;gap:4px}
.dsbase .btn[aria-pressed=true]{background:var(--rule);color:var(--onrule)}
.planvec{position:absolute;left:0;top:0;pointer-events:none;z-index:1}
.planvec canvas{outline:none}
.planerr{position:absolute;left:50%;top:12px;transform:translateX(-50%);background:#fff;color:#a4262c;border:1px solid #e3b3b5;border-radius:6px;padding:4px 10px;font-size:12px;max-width:80%;text-align:center}
a.gmap{color:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:2px}
a.gmap:hover{text-decoration-color:currentColor}
.coords{font-variant-numeric:tabular-nums;white-space:nowrap}
.dsfig .kpi b{overflow-wrap:anywhere}
.dsfig{grid-auto-flow:row dense}
.dsfig .kpi.wide{grid-column:span 2}
.dsfig .kpi.wide b{white-space:normal;line-height:1.15}
.dsfig .kpi.nov b{color:var(--mut)}
.dsf .why{overflow-wrap:anywhere;max-width:100%;margin:6px 0 0;font-size:13px;line-height:1.45;white-space:pre-wrap;color:var(--ink)}
.whyin{display:block;width:100%;margin-top:6px;min-height:44px;font:inherit;font-size:13px;border:1px solid var(--line);border-radius:8px;padding:6px 8px;background:var(--paper);color:var(--ink);resize:vertical}
.fwhy{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px}
.frow .fwhy input{width:16px;height:16px;flex:none;margin:0}
.haswhy{border-bottom:1px dotted var(--mut);cursor:help}
.frl{grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:2px 0 4px}
.frl .note{font-size:12px;margin:0}
.frlc{display:inline-flex;align-items:center;gap:5px}
.frlc i{width:10px;height:10px;border-radius:50%;flex:none}
.frlc input{width:190px;height:28px;border:1px solid var(--line);border-radius:6px;padding:0 6px;font:inherit;font-size:13px;background:var(--paper);color:var(--ink)}
/* colour coded tiles: the code colour takes the place of the green (top rule, tint and label), nothing added */
.dsfig .kpi.cc{background:color-mix(in srgb,var(--kc) 18%,var(--paper,#fff));border-top-color:var(--kc)}
.dsfig .kpi.cc em{color:color-mix(in srgb,var(--kc) 60%,var(--ink))}
.fgrp{margin-top:10px;border-radius:8px}
.fsec{display:flex;align-items:center;gap:8px;padding:6px 0 4px;border-bottom:2px solid var(--rule)}
.fsec b{font-size:15px;font-weight:500;color:var(--ink)}
.fsec .note{margin:0;font-size:12px}
.fsec .icon{width:28px;height:28px}
.fsec .icon:disabled{opacity:.3}
.sdrag{width:28px;height:30px;border:0;background:none;color:var(--mut);font-size:18px;cursor:grab;touch-action:none;border-radius:6px;padding:0}
.fgrp.dragging{background:var(--t1);box-shadow:0 4px 14px rgba(0,0,0,.15);position:relative;z-index:2}
.fgrp.dragging .sdrag{cursor:grabbing}
#fieldRows.secdrag .frow{display:none}
#fieldRows.secdrag .fgrp{margin-top:4px}
.ffiles{border:1px dashed transparent;border-radius:10px;padding:2px}
.ffiles.over{border-color:var(--rule);background:var(--t1)}
.ffgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin-bottom:6px}
.ffi{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:6px;min-width:0;background:var(--paper)}
.ffthumb,.ffdoc{flex:none;width:56px;height:56px;border-radius:7px;overflow:hidden;display:grid;place-items:center}
.ffthumb img{width:100%;height:100%;object-fit:cover;display:block}
.ffdoc{background:var(--t1);color:var(--rule);font-size:11px;font-weight:600;letter-spacing:.04em;text-decoration:none;border:1px solid var(--line)}
.ffname{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.ffname a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit;font-size:13.5px}
.ffname small{color:var(--mut);font-size:11.5px}
.ffdel{width:28px;height:28px}
.ffadd{margin-top:4px}
@media print{.ffadd,.ffdel{display:none!important}}
.fcc{padding-top:4px}
.fcc .frlc input[type=color]{width:26px;height:26px;padding:0;border:1px solid var(--line);border-radius:6px;background:none;flex:none;cursor:pointer}
.fcc .frlc span{font-size:13px}
.fcc .fband input[type=text]{width:56px}
.fcc .fband small{color:var(--mut);font-size:12px;min-width:84px}
.fcc .fband .icon{width:24px;height:24px;font-size:12px}
/* backup restore options */
.chk{display:flex;align-items:center;gap:8px;margin:6px 0;font-size:14px}
.chk input{width:auto;margin:0}
/* Site fields: Add field and Save fields stay in view at the bottom of the window while scrolling the list */
.setup .fbar{position:sticky;bottom:0;z-index:5;background:var(--paper,#fff);padding:10px 0;margin-bottom:0;border-top:1px solid var(--line);box-shadow:0 -6px 12px -8px rgba(0,0,0,.18)}
/* Settings: a section switched off with "Shown" is dimmed, its fields still editable */
.fgrp.off .frow{opacity:.5}
.fgrp.off .fsec b{color:var(--mut)}
.fsec .fshow{margin-right:6px}
/* Dashboard: Ratings by authority and Breakdown share the full width, with more room for the ratings table */
@media(min-width:1000px){.dashgrid{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}}
@media(max-width:999px){.dashgrid{grid-template-columns:1fr}}
/* Guidance documents (Settings) */
.gdl{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}
.gdrow{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.gdrow .sp{flex:1}
.gded{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.gded .row{flex-wrap:wrap;gap:8px}
.gded .fld{display:flex;flex-direction:column;gap:3px;font-size:12.5px;flex:1 1 200px}
.gdr{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start}
.gdr textarea{resize:vertical;min-height:44px;font:inherit;font-size:13px}
.gdr.gdo{grid-template-columns:auto auto auto 1fr auto;align-items:center}
.gdr input[type=color]{width:36px;height:30px;padding:0;border:1px solid var(--line);border-radius:6px;background:none}
/* Public data overlays on the Map view */
.pdctl{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.pdpanel{background:var(--paper);color:var(--ink);border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.25);padding:8px 10px;width:270px;max-height:min(60vh,520px);overflow:auto;font-size:12.5px}
.pdhd{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.pdhd .sp{flex:1}
.pdgrp{font-weight:500;color:var(--green,#034f46);margin:8px 0 2px}
.pdrow{display:flex;align-items:center;gap:6px;padding:2px 0;cursor:pointer;line-height:1.3}
.pdrow svg{flex:none}
.pdnote:empty{display:none}
.pdnote{color:#8a3a17}
/* Settings locked for anyone who isn't a SharePoint site owner */
#v-setup.locked .setup > :not(#setupLock){display:none!important}
#setupLock:empty{display:none}
/* Council ownership sources (Settings) */
.poltable{overflow-x:auto}
.polrow{display:grid;grid-template-columns:minmax(110px,.9fr) minmax(200px,2.4fr) minmax(150px,1.7fr) minmax(150px,1.7fr) minmax(160px,1.6fr) 32px;gap:6px;align-items:center;margin:4px 0;min-width:760px}
.polhead span{font-size:12px;opacity:.75}
.ownrow{display:grid;grid-template-columns:auto minmax(140px,1fr) minmax(220px,3fr) auto auto;gap:8px;align-items:center;margin:6px 0}
/* Data page button, top right */
.databtn{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--rule,#034f46);color:var(--rule,#034f46);font-size:14px;font-weight:500;text-decoration:none;margin-inline:4px}
.databtn:hover{background:rgba(3,79,70,.08)}
.databtn[aria-current=page]{background:var(--rule,#034f46);color:var(--onrule,#fff)}
/* Site photos field: two to a row */
.phf .dsphgrid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:6px}
.phf{border:1px dashed transparent;border-radius:10px;padding:2px}
.phf.drop{border-color:var(--rule,#034f46);background:var(--t1,#f4f8f2)}
@media print{.phf .dsphgrid{grid-template-columns:repeat(2,1fr)}.phf .ffadd{display:none!important}}
/* Photos and documents side by side on the Datasheet */
#dsSheet .dsg dl.dl2{grid-template-columns:repeat(2,minmax(0,1fr))}
#dsSheet .dsg dl.dl2 .dsf.half{grid-column:auto}
#dsSheet .dsg dl.dl2 .ffgrid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
/* Rearranging Datasheet tiles in Edit in place */
.dsfig .kpi.tmov{position:relative;cursor:grab;outline:1px dashed color-mix(in srgb,var(--rule,#034f46) 45%,transparent);outline-offset:-1px}
.dsfig .kpi.tdragging{opacity:.4}
.dsfig .kpi.tover{box-shadow:inset 4px 0 0 var(--rule,#034f46)}
.dsfig .kpi.tover.tafter{box-shadow:inset -4px 0 0 var(--rule,#034f46)}
.dsfig .tarr{position:absolute;top:4px;right:4px;display:flex;gap:2px}
.dsfig .tarr .icon{width:22px;height:22px;font-size:15px;line-height:1;padding:0}
@media print{.dsfig .tarr{display:none}}
