*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1d2b36;background:#f4f7fa}
a{color:#0b6aa2}.top{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 18px;background:#0b3d5c;color:#fff}
.brand{color:#fff;font-weight:800;font-size:1.3em;text-decoration:none}.tag{font-style:italic;opacity:.85;flex:1}
nav a{color:#fff;margin-left:14px;text-decoration:none}.btn,button{display:inline-block;background:#f5a623;color:#1d2b36!important;border:0;padding:8px 14px;border-radius:6px;font-weight:700;cursor:pointer;text-decoration:none;font-size:1em}
button.danger{background:#d9534f;color:#fff!important}button.ghost{background:#dde6ee}
#map{height:calc(100vh - 100px);width:100%}#map.small{height:320px;border-radius:8px}
main{max-width:1100px;margin:20px auto;padding:0 16px}footer{text-align:center;padding:14px;color:#678;font-size:.9em}
.card{background:#fff;border-radius:10px;padding:18px;box-shadow:0 1px 4px rgba(0,0,0,.08);margin-bottom:18px}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.facts div{background:#eef4f9;padding:10px;border-radius:8px}
.facts b{display:block;font-size:.8em;color:#567;text-transform:uppercase}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.gallery figure{margin:0;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.gallery img{width:100%;height:180px;object-fit:cover;display:block}.gallery figcaption{padding:8px;font-size:.9em}
.hero{width:100%;max-height:440px;object-fit:cover;border-radius:10px}
.sample{display:inline-block;background:#ffe08a;color:#6b4e00;padding:2px 8px;border-radius:4px;font-size:.8em;font-weight:700}
label{display:block;margin:10px 0 4px;font-weight:600}input[type=text],input[type=email],input[type=password],input[type=number],textarea,select{width:100%;padding:8px;border:1px solid #bcc9d4;border-radius:6px;font:inherit}
textarea{min-height:90px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.msg{padding:10px 14px;border-radius:6px;margin-bottom:14px}
.ok{background:#dff3e3}.err{background:#fbe1e1}.photo-marker img{width:56px;height:56px;border-radius:8px;border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.4);object-fit:cover}
.queue{display:grid;grid-template-columns:420px 1fr;gap:16px;border-top:1px solid #e2e8ee;padding:14px 0}.queue img{width:100%;max-height:360px;object-fit:contain;background:#1d2b36;border-radius:6px}@media(max-width:800px){.queue{grid-template-columns:1fr}}
table{width:100%;border-collapse:collapse}td,th{padding:6px;border-bottom:1px solid #e2e8ee;text-align:left}
.hint{color:#678;font-size:.9em}.popup img{width:180px;height:120px;object-fit:cover;border-radius:6px}
.drop{border:3px dashed #9fb6c8;border-radius:12px;padding:30px;text-align:center;background:#f8fbfd;margin-top:12px}.drop.over{background:#e3f1fb;border-color:#0b6aa2}
.bgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px;margin-bottom:90px}
.bcard{background:#fff;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.1);overflow:hidden;border-top:5px solid #ccc;font-size:.88em}
.bcard.nogps{border-top-color:#d9534f;background:#fff6f6}.bcard img.th{width:100%;height:300px;object-fit:contain;background:#1d2b36;display:block;cursor:zoom-in}
.bcard .mm{height:110px}.bcard .body{padding:8px}.bcard input{padding:4px;font-size:.95em}.bcard select{padding:4px;font-size:.95em}
.gtag{display:inline-block;color:#fff;border-radius:4px;padding:1px 7px;font-weight:700}.flag{color:#b52b27;font-weight:700}
.st{font-weight:700}.st.ok{color:#1d7a35}.st.skip{color:#5b6b78;font-weight:600}.msg.dupnote{background:#eef4f9;color:#33475b}.st.fail{color:#b52b27}.st.up{color:#0b6aa2}
.progress{height:16px;background:#e2e8ee;border-radius:8px;overflow:hidden;margin-bottom:6px}#pbar{height:100%;width:0;background:#2a9d4b;transition:width .2s}
.sticky{position:sticky;bottom:0;z-index:1000;margin:0}.gcard{display:grid;grid-template-columns:auto 1fr 1fr 1fr;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid #e2e8ee}

.gphotos{grid-column:1/-1;display:flex;gap:10px;overflow-x:auto;padding:4px 0 8px}.gphotos img{height:220px;max-width:340px;object-fit:contain;background:#1d2b36;border-radius:6px;cursor:zoom-in;flex:0 0 auto}
.lb{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:5000;display:flex;align-items:center;justify-content:center}.lb img{max-width:92vw;max-height:86vh;object-fit:contain}
.lb button{position:absolute;background:rgba(255,255,255,.15);color:#fff!important;font-size:2em;padding:6px 16px}.lb .lp{left:16px;top:50%}.lb .ln{right:16px;top:50%}.lb .lx{top:12px;right:16px}
.lb .lc{position:absolute;bottom:12px;left:0;right:0;text-align:center;color:#fff}
@media(max-width:420px){.bgrid{grid-template-columns:1fr}}
/* bigger photos in admin bulk import */
.bgrid.big{grid-template-columns:repeat(auto-fill,minmax(520px,1fr))}.bgrid.big img.th{height:460px}
@media(max-width:600px){.bgrid.big{grid-template-columns:1fr}.bgrid.big img.th{height:300px}}
.bcard .tools{display:flex;gap:6px;margin:4px 0}.bcard .tools button{padding:4px 8px;font-size:.9em}
/* pinpoint modal */
.pp{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:4000;display:flex;align-items:center;justify-content:center}
.pp-box{background:#fff;width:96vw;height:92vh;border-radius:10px;display:flex;flex-direction:column;overflow:hidden}
.pp-head,.pp-foot{padding:8px 12px;display:flex;gap:12px;align-items:center}.pp-head .hint{flex:1}.pp-foot{justify-content:flex-end;border-top:1px solid #e2e8ee}
.pp-body{flex:1;display:flex;min-height:0}.pp-map{flex:1}.pp-photo{width:26%;object-fit:contain;background:#1d2b36}
.pp-side{width:300px;padding:10px;overflow:auto;border-left:1px solid #e2e8ee}.pp-list{padding-left:20px}.pp-list li{cursor:pointer;padding:6px;border-radius:6px;margin-bottom:4px}
.pp-list li:hover,.pp-list li.sel{background:#e3f1fb}.pp-cand{border-radius:50%;color:#fff;font-weight:800;text-align:center;line-height:24px;border:2px solid #fff;box-shadow:0 1px 4px #000}
.pp-cand.osm{background:#2a9d4b}.pp-cand.image{background:#d9822b}
@media(max-width:800px){.pp-body{flex-direction:column}.pp-photo{width:100%;height:25%}.pp-side{width:100%;height:30%}}

/* tower page: whole photos, larger */
.hero{max-height:640px;height:auto;object-fit:contain;background:#1d2b36;cursor:zoom-in;display:block}
.tgallery{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}.tgallery img{height:300px;object-fit:contain;background:#1d2b36;cursor:zoom-in}
.diff td{vertical-align:top}.diff .chg{background:#fff7d6}.diff .old{color:#8a2b2b;white-space:pre-wrap}.diff textarea{min-height:60px}
.hp{position:absolute;left:-5000px}
.pp-cand.site{background:#0b6aa2}
#smap,#emap{height:340px;border-radius:8px}

/* update3: list thumbnails, geocoding / snapping notes */
.tlist td{vertical-align:middle}.tthumb{width:76px}.tthumb img{width:64px;height:64px;object-fit:cover;border-radius:8px;display:block;background:#e3ebf2}
.place{font-size:1.05em;color:#345}
.geonote{margin:6px 0;font-size:.92em}.snapnote{display:inline-block;background:#e6f5ea;border:1px solid #9fd3ad;border-radius:6px;padding:4px 8px}
button.sm{padding:2px 8px;font-size:.85em;margin-left:4px}input.autofilled{background:#f3fbf5}
.osm-wt{font-size:18px;line-height:24px;text-align:center;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.gplace{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}@media(max-width:700px){.gplace{grid-template-columns:1fr 1fr}}
/* update4: grouped approval queue */
.qgroup h3{margin-top:0}.qgroup .match{color:#1d7a35}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cmp.single{grid-template-columns:1fr}@media(max-width:900px){.cmp{grid-template-columns:1fr}}
.cmp-side{background:#f6f9fb;border-radius:8px;padding:10px}.cmp-title{margin-bottom:6px}
.cmp-img{display:block;width:100%;max-height:520px;object-fit:contain;background:#1d2b36;border-radius:6px;margin-bottom:6px}
.qphoto{border-bottom:1px solid #e2e8ee;padding-bottom:8px;margin-bottom:8px}.splitf{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:4px}.splitf select{width:auto;max-width:100%;flex:1}
.confirmf{margin:12px 0}button.big{font-size:1.15em;padding:12px 20px;background:#2a9d4b;color:#fff!important}
details.diff-tower{border:1px solid #dde6ee;border-radius:8px;padding:8px 12px;margin:8px 0}details.diff-tower summary{cursor:pointer;font-weight:700}
.qmap{height:340px;border-radius:8px}.tsel{height:auto}
.bcmp{grid-column:1/-1;display:flex;gap:10px;align-items:flex-start;background:#eaf6ee;border-radius:8px;padding:8px}.bcmp img{height:220px;max-width:340px;object-fit:contain;background:#1d2b36;border-radius:6px}
.gphoto{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}.gphoto select{font-size:.85em;padding:3px;max-width:340px}
.gconfirmed{color:#1d7a35;font-weight:700}
.cmp{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cmp.single{grid-template-columns:minmax(0,1fr)}
.cmp.single .cmp-side{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}.cmp.single .cmp-title{grid-column:1/-1}
@media(max-width:900px){.cmp{grid-template-columns:minmax(0,1fr)}}
main.wide{max-width:1400px}

/* update5: photo clusters */
.photo-marker.small img{width:40px;height:40px;border-width:2px}
.photo-cluster{position:relative}.photo-cluster img{width:100%;height:100%;object-fit:cover;border-radius:8px;border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.45);display:block}
.photo-cluster .pc-n{position:absolute;top:-8px;right:-8px;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:#0b6aa2;color:#fff;font:700 12px/22px system-ui,sans-serif;text-align:center;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.photo-cluster.nophoto{background:#0b6aa2;border-radius:50%;border:3px solid #fff}.photo-cluster.nophoto .pc-n{position:static;display:block;background:none;border:0;box-shadow:none;line-height:34px}

/* update6: photo credit */
fieldset.credit{border:1px solid #cfdbe5;border-radius:8px;padding:6px 14px 10px;margin:10px 0;background:#f8fbfd}fieldset.credit legend{font-weight:700;padding:0 4px}
label.chk{display:flex;gap:8px;align-items:center;font-weight:600}label.chk input{width:auto}fieldset.credit input:disabled{background:#eceff2;color:#99a}
.creditf{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0}.creditf label{margin:0;width:100%}.creditf input{flex:1}
/* update8: logo */
.brand{display:flex;align-items:center}.brand img.logo{height:40px;width:auto;display:block}
@media(max-width:600px){.top{gap:8px 12px;padding:8px 12px}.brand img.logo{height:34px}.tag{flex-basis:100%;order:3;font-size:.85em}nav{margin-left:auto}nav a{margin-left:10px}}

/* update12: thank-you page */
.done-card{max-width:760px;margin:30px auto}.msg.thanks{padding:18px 20px}.msg.thanks h1{margin:0 0 6px;font-size:1.8em}

/* update19: admin photo primary/delete */
.adm-photos figure.is-primary{outline:3px solid #f5a623}
.primary-badge{display:inline-block;background:#f5a623;color:#0b3d5c;font-weight:700;font-size:.8em;padding:2px 8px;border-radius:999px}
.adm-photos .ph-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.adm-photos .ph-acts button{padding:4px 10px;font-size:.85em;margin:0}

/* update21 */
.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}@media(max-width:640px){.row3{grid-template-columns:1fr}}
.dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;box-sizing:border-box;min-height:170px;margin:6px 0 10px;padding:22px 16px;border:3px dashed #f5a623;border-radius:14px;background:#fff8ec;color:#0b3d5c;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
.dropzone:hover,.dropzone.over,.dropzone:focus-within{background:#ffefd2;border-color:#e08e00}.dropzone.has{border-style:solid;min-height:120px}
.dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.dz-icon{font-size:48px;line-height:1}.dz-main{font-size:1.45em;font-weight:800}.dz-sub{font-size:.95em;color:#5a6b78}
.dzfiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-bottom:8px}.dzfiles:empty{display:none}
.dzfiles figure{margin:0;background:#1d2b36;border-radius:8px;overflow:hidden}.dzfiles img{width:100%;height:110px;object-fit:contain;display:block}.dzfiles figcaption{font-size:.8em;color:#fff;padding:3px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* update22: photo editor */
body.pe-open{overflow:hidden}
.pe-ov{position:fixed;inset:0;z-index:5000;background:rgba(10,20,30,.82);display:flex;align-items:center;justify-content:center;padding:12px}
.pe-box{background:#fff;border-radius:12px;width:min(1100px,100%);height:min(860px,100%);display:flex;flex-direction:column;overflow:hidden}
.pe-head{padding:10px 14px;border-bottom:1px solid #e3e9ee}
.pe-stage{flex:1;min-height:200px;background:#111;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.pe-cv{display:block;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.pe-stage{touch-action:none}.pe-msg{position:absolute;color:#fff}
.pe-tools,.pe-foot{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;padding:8px 14px;border-top:1px solid #e3e9ee}
.pe-grp{display:inline-flex;gap:4px;align-items:center}.pe-asp.on{background:#f5a623;color:#0b3d5c;font-weight:700}
.pe-light{flex-wrap:wrap;gap:4px 12px}.pe-light label{display:inline-flex;gap:6px;align-items:center;white-space:nowrap}.pe-light input[type=range]{width:130px}.pe-auto.on{background:#f5a623;color:#0b3d5c;font-weight:700}
.pe-str input[type=range]{width:220px}.pe-str input[type=number]{width:70px;padding:3px 6px}
.pe-btns{display:inline-flex;gap:4px;flex-wrap:wrap;margin:4px 0}
.pe-btns [hidden],.tools [hidden]{display:none!important}
/* update23: tower editor photo uploader */
.tphotos{border:1px solid #dde6ee;border-radius:10px;padding:10px 14px;margin:14px 0}
.tp-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px;margin:8px 0}
.tp-item{display:flex;gap:10px;background:#f8fbfd;border:1px solid #e3e9ee;border-radius:8px;padding:8px}.tp-item.failed{border-color:#d9534f}.tp-item.done{opacity:.75}
.tp-item img{width:120px;height:120px;object-fit:contain;background:#1d2b36;border-radius:6px;flex:none}
.tp-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.tp-name{font-size:.9em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-acts{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.tp-prim{display:inline-flex;gap:4px;align-items:center;font-size:.9em;margin-right:6px}
/* update24: admin towers list + merge */
.tfilter{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 10px}.tfilter input{width:auto;flex:1 1 160px;margin:0}
.tl-thumb{width:48px;height:48px;object-fit:cover;border-radius:6px;display:block}.tlist td{vertical-align:middle}
.dupbox{background:#fff6e5;border:1px solid #f5c26b}.dupbox ul{margin:4px 0 0 18px;padding:0}.dupflag{color:#b35c00;font-size:.85em;font-weight:700}
.mgrid{display:grid;gap:12px;margin:10px 0}.mcol{border:2px solid #e3e9ee;border-radius:10px;padding:10px;background:#f8fbfd}.mcol.kept{border-color:#f5a623;background:#fffaf0}
.mphoto{width:100%;height:240px;object-fit:contain;background:#1d2b36;border-radius:8px;display:block}.mnone{display:flex;align-items:center;justify-content:center;color:#aab}
.mmap{height:150px;border-radius:8px;margin:6px 0}.mkeep{display:flex;gap:6px;align-items:center;margin-bottom:6px}
.mfields{width:100%}.mfields td{vertical-align:top}.mopt{display:flex;gap:6px;align-items:flex-start;font-weight:400}
.mcovers{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}.mcov{display:flex;flex-direction:column;align-items:center;gap:2px}.mcov img{width:90px;height:90px;object-fit:cover;border-radius:6px}

/* update26: public pre-submit photo editing */
.dzfiles figure{position:relative}.dzfiles figure.edited{outline:2px solid #f5a623}.dzbtns{display:flex;gap:4px;flex-wrap:wrap;padding:0 6px 6px}.dzbtns button{flex:1;min-height:34px}
.bcard .tools .pe1,.bcard .tools .pe1r{min-height:34px}
@media(max-width:600px){.pe-ov{padding:0}.pe-box{border-radius:0;height:100%}.pe-str input[type=range]{width:140px}.pe-light input[type=range]{width:96px}.pe-tools,.pe-foot{gap:8px;padding:6px 8px}.pe-foot .pe-save,.pe-foot .pe-cancel{min-height:40px}}
@media(max-width:600px){.gcard{grid-template-columns:auto minmax(0,1fr)}.gphotos{max-width:100%}.gcard>span{overflow-wrap:anywhere}.gcard>*{min-width:0}.bcmp{flex-wrap:wrap}.bcmp img{max-width:100%;height:auto;max-height:220px}.bcmp>div{min-width:0}.gcard select,.gcard input{max-width:100%}}
.pe-ov{width:100%;max-width:100vw}
/* update27: keep editor footer one stable line so the canvas never jumps while dragging */
.pe-foot{flex-wrap:nowrap}.pe-foot .pe-info{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:600px){.pe-foot .pe-info{font-size:.78em}}

/* update28: admin library import (iPad-friendly large uploads) */
.lib-drop{border:3px dashed #f5a623;border-radius:14px;padding:28px 16px;text-align:center;background:#fff8ec;margin-top:12px;cursor:pointer}
.lib-drop.over{background:#ffefd2;border-color:#e08e00}
.lib-tip{background:#eef4f9;border-left:4px solid #0b6aa2;padding:10px 14px;border-radius:6px;margin:10px 0}
.lib-tip.warn{background:#fff6e5;border-left-color:#f5a623}
.lib-tip.bad{background:#fbe1e1;border-left-color:#d9534f}
.lib-stats{display:flex;flex-wrap:wrap;gap:10px 18px;margin:8px 0;font-size:.95em}
.lib-stats b{font-variant-numeric:tabular-nums}
.lib-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.lib-bar .progress{flex:1;min-width:160px;margin:0}
.lib-list{max-height:50vh;overflow:auto;border:1px solid #e2e8ee;border-radius:8px;margin-top:10px}
.lib-row{display:grid;grid-template-columns:56px 1fr auto;gap:8px;align-items:center;padding:6px 8px;border-bottom:1px solid #eef2f5;font-size:.88em}
.lib-row img{width:56px;height:56px;object-fit:cover;border-radius:6px;background:#1d2b36}
.lib-row.nogps{background:#fff6f6}.lib-row.done{opacity:.7}.lib-row.skip{opacity:.55}.lib-row.fail{background:#fbe1e1}
.lib-meta{min-width:0}.lib-meta .fn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.lib-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:10px}
.lib-g{background:#f6f9fb;border-radius:8px;padding:10px;border:1px solid #e3e9ee}
.lib-g.noloc{background:#fff6f6;border-color:#f0c0c0}
@media(max-width:600px){.lib-row{grid-template-columns:48px 1fr}.lib-row .lib-st{grid-column:2}.lib-bar button{min-height:44px;flex:1 1 40%}}
.lib-ph{display:block;width:56px;height:56px;border-radius:6px;background:#1d2b36}
/* update34: primary-photo picker in the approval queue */
.primpick{display:inline-flex;align-items:center;gap:5px;margin:2px 8px 4px 0;font-size:.92em;cursor:pointer;padding:3px 9px;border:1px solid #cfdbe5;border-radius:999px;background:#f6f9fb;font-weight:600}
.primpick input{width:auto;margin:0}.primpick .star{color:#b8c4ce}.primpick:has(input:checked){background:#fff4d6;border-color:#e0a800}.primpick:has(input:checked) .star{color:#e0a800}
.primbar{margin:0 0 8px}
/* update34: home-map tower count badge */
.wt-count{background:#0b3d5c;border:2px solid #f5a623;border-radius:999px;padding:6px 14px 6px 10px;box-shadow:0 1px 6px rgba(0,0,0,.35);font-weight:700;color:#fff;font-size:15px;line-height:1.2;display:flex;align-items:center;gap:7px;pointer-events:none;white-space:nowrap}
.wt-count .n{color:#f5a623;font-size:18px}.wt-count img{width:20px;height:20px}
.wt-count[hidden]{display:none}
.cmp.single .primbar{grid-column:1/-1}

/* update36: queue "attach to another existing tower" verification preview */
.tprev{border:1px solid #cdd8e3;border-radius:8px;padding:8px;margin:8px 0;background:#f6f9fc}.tprev.loading{opacity:.6}
.tprev-head{margin-bottom:6px}.tprev-body{display:flex;gap:8px;flex-wrap:wrap}
.tprev-photos{flex:1 1 260px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;align-content:start}
.tprev-photos a{position:relative;display:block}.tprev-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px;display:block}
.tprev-photos .tp-main{grid-column:span 4}.tprev-photos .tp-main img{aspect-ratio:4/3}
.tp-star{position:absolute;left:4px;top:4px;background:rgba(0,0,0,.6);color:#ffd54a;font-size:.8em;padding:1px 6px;border-radius:4px}
.tp-more{position:absolute;inset:0;background:rgba(0,0,0,.55);color:#fff;font-size:1.3em;font-weight:700;display:flex;align-items:center;justify-content:center;border-radius:4px}
.tprev-map{flex:1 1 260px;min-height:240px;border-radius:6px}
.tp-mk span,.tp-key{display:inline-flex;width:22px;height:22px;border-radius:50%;align-items:center;justify-content:center;font:700 12px sans-serif;color:#fff;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.6)}
.tp-mk.tw span,.tp-key.tw{background:#1f6fd1}.tp-mk.sub span,.tp-key.sub{background:#e0452b}.tp-key{width:18px;height:18px;font-size:10px;vertical-align:middle}
.tprev-dist{margin-top:6px}
/* update38: queue "Reset to photo GPS" */
.qreset-wrap{display:inline-block;margin-left:6px}.qreset:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
.resetnote{display:inline-block;background:#eef4f9;border:1px solid #b7cde0;border-radius:6px;padding:4px 8px;color:#234}
/* update41: photo view direction (camera marker, cone, line of sight) */
.wt-cam{position:relative;pointer-events:auto}.wt-cam-rot{position:absolute;inset:0;transform-origin:50% 50%;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.wt-cam-dot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:12px;line-height:1;background:#fff;border:2px solid #e8590c;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center}
.qview{margin:6px 0;padding:5px 8px;background:#fff4e6;border:1px solid #ffc078;border-radius:6px}.qview button{margin:2px 0}
.qview-key{color:#7a5a2a}.farnote{display:inline-block;margin-top:3px;background:#fff4e6;border:1px solid #ffc078;border-radius:6px;padding:3px 7px}
.osm-wt.incone{filter:drop-shadow(0 0 3px #ff8c1a) drop-shadow(0 0 2px #ff8c1a)}
.pp-cand.incone{box-shadow:0 0 0 3px #ff8c1a,0 1px 4px #000}.pp-incone{color:#c25400;font-weight:600}.pp-view{background:#fff4e6;border:1px solid #ffc078;border-radius:6px;padding:4px 6px;margin-bottom:6px}

/* update42: home-screen app (PWA): notch / home-bar safe areas, standalone tweaks, locate control, camera buttons, install hint */
.top{padding-top:calc(10px + env(safe-area-inset-top));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
@media(max-width:600px){.top{padding-top:calc(8px + env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}
#map:not(.small){height:calc(100vh - var(--hdr,100px));height:calc(100dvh - var(--hdr,100px))}
.leaflet-bottom{margin-bottom:env(safe-area-inset-bottom)}.leaflet-left{margin-left:env(safe-area-inset-left)}.leaflet-right{margin-right:env(safe-area-inset-right)}
main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
footer{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
@media (display-mode: standalone){.admin-link{display:none}}
html.standalone .admin-link{display:none}
html.standalone body{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
.app-back{color:#fff;text-decoration:none;font-size:2em;line-height:1;font-weight:300;padding:0 6px 4px 0;margin-right:-6px}
/* show my location */
.wt-loc a.wt-loc-btn{display:flex;align-items:center;justify-content:center;color:#444;cursor:pointer}
.wt-loc a.wt-loc-btn.on{color:#1a73e8}.wt-loc a.wt-loc-btn.follow{background:#1a73e8;color:#fff}.wt-loc a.wt-loc-btn.wait svg{animation:wtpulse 1s ease-in-out infinite}
@keyframes wtpulse{50%{opacity:.35}}
.wt-me{position:relative}.wt-me-dot{position:absolute;inset:2px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25),0 1px 5px rgba(0,0,0,.4)}
.wt-me-head{position:absolute;left:-9px;top:-9px;width:40px;height:40px;transform-origin:50% 50%;pointer-events:none}
.wt-me-head::before{content:"";position:absolute;left:8px;top:-6px;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:26px solid rgba(26,115,232,.45);border-radius:50% 50% 0 0}
.wt-me-head[hidden]{display:none}
.wt-loc-msg{position:absolute;z-index:1000;left:50%;top:10px;transform:translateX(-50%);max-width:min(92%,420px);background:#0b3d5c;color:#fff;border:2px solid #f5a623;border-radius:10px;padding:8px 12px;font-size:14px;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.wt-loc-msg[hidden]{display:none}
.wt-me-pop button{margin-top:6px}
/* Add Tower: camera + library buttons */
.capbtns{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0}.capbtn{flex:1 1 180px;text-align:center;padding:14px 12px;font-size:1.05em;margin:0}
.capbtn.ghost{background:#dde6ee}.caphint{margin:2px 0 8px}
/* install hint (iPhone Safari only) */
.install-hint{position:fixed;z-index:3000;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));width:min(94vw,420px);display:flex;gap:10px;align-items:center;background:#fff;color:#1d2b36;border-radius:14px;padding:10px 38px 10px 10px;box-shadow:0 4px 18px rgba(0,0,0,.28);font-size:14px;line-height:1.35;border:1px solid #d5dee6}
.install-hint img{border-radius:9px;flex:none}.install-hint .ih-share{color:#0b6aa2;display:inline-flex;vertical-align:-3px}
.install-hint .ih-x{position:absolute;right:6px;top:6px;background:transparent;color:#678!important;padding:4px 8px;font-size:15px}
@media (pointer:coarse){.dropzone:not(.has){display:none}} /* update43: on phones #photos is only filled by the 📷/🖼 buttons (never tapped while hidden) */
/* update43: photo buttons = <label> with a real, transparent, full-size file input on top (the tap lands on the input itself) */
.capbtn,.capwrap{position:relative;overflow:hidden}.capinput{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;font-size:16px;cursor:pointer;z-index:1}
.capinput::-webkit-file-upload-button{cursor:pointer}.capmore{margin:2px 0 6px}.linkbtn{background:none;border:0;padding:0;margin:0 8px 0 0;color:#0b6aa2;text-decoration:underline;font:inherit;cursor:pointer}
.plainpick{margin:4px 0 10px;padding:8px;border:1px dashed #9fb6c8;border-radius:8px;background:#f8fbfd}.plainpick input{font-size:16px;max-width:100%}
.capbtn:focus-within,.capwrap:focus-within{outline:3px solid #f5a623;outline-offset:2px}
.linkbtn[hidden],.plainpick[hidden],#plainlink[hidden],#bplainlink[hidden]{display:none!important}
/* update44: remove a selected photo (big ✕, ≥44px touch target) + "Photo removed · Undo" toast + photo count */
.dzrm,.bxrm{position:absolute;top:6px;right:6px;z-index:2;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:2px solid #fff;border-radius:50%;background:rgba(20,30,40,.78);color:#fff!important;font-size:22px;font-weight:700;line-height:40px;text-align:center;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.4);-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.dzrm:hover,.bxrm:hover,.dzrm:focus-visible,.bxrm:focus-visible{background:#c0392b;outline:3px solid #f5a623;outline-offset:1px}
.bxrm[hidden]{display:none!important}.bcard{position:relative}
.dzcam{position:absolute;top:8px;left:8px;z-index:2;background:rgba(20,30,40,.7);border-radius:12px;padding:2px 6px;font-size:14px}
.dzfiles img{height:130px}
.dzcount{font-weight:700;color:#0b3d5c;margin:2px 0 6px}.dzcount:empty{display:none}
.wt-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:3000;display:flex;align-items:center;gap:14px;width:max-content;max-width:calc(100vw - 24px);box-sizing:border-box;padding:8px 8px 8px 16px;border-radius:12px;background:#1d2b36;color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.35);font-size:15px}
.wt-toast .wt-undo{min-height:44px;min-width:72px;margin:0;padding:0 14px;border:0;border-radius:8px;background:#f5a623;color:#1d2b36;font-weight:700;font-size:15px;cursor:pointer}
.wt-toast-msg{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (pointer:coarse){.dropzone.has{display:none}} /* update44: on phones the count + thumbnail grid follow the 📷/🖼 buttons (which add more) */
@media(max-width:600px){.gcard .gsel,.gcard .gname{grid-column:1/-1;width:100%;max-width:100%;box-sizing:border-box}} /* update44: on phones the long tower <select> no longer squeezes the group info column to 0 px */
/* update45: ⚡ Quick shoot button + full-screen burst camera */
.quickbtn{background:#f5a623!important;color:#1d2b36!important;font-weight:700;border:0;cursor:pointer;touch-action:manipulation}
.capbtn.quickbtn{flex:1 1 100%;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:1.12em;padding:14px 12px}
.quickbtn .qsub{font-weight:400;font-size:.78em;opacity:.85}
#drop .quickbtn{display:inline-block;margin:0;vertical-align:middle;min-height:44px;padding:0 16px;font-size:1.02em}
.dzcount.over{color:#b03a2e}
html.qs-open,html.qs-open body{overflow:hidden;overscroll-behavior:none}
.qs-ov{position:fixed;inset:0;z-index:5000;background:#000;color:#fff;display:block;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.qs-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.qs-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}.qs-flash.go{animation:qsflash .18s ease-out}
@keyframes qsflash{0%{opacity:.75}100%{opacity:0}}
.qs-top{position:absolute;left:0;right:0;top:0;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 8px;display:flex;align-items:flex-start;justify-content:space-between;background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,0))}
.qs-x,.qs-snd{width:48px;height:48px;min-width:48px;margin:0;padding:0;border:2px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(0,0,0,.45);color:#fff!important;font-size:22px;line-height:44px;cursor:pointer;touch-action:manipulation}
.qs-count{text-align:center;line-height:1;text-shadow:0 1px 3px #000}.qs-count b{display:block;font-size:44px;font-weight:800;font-variant-numeric:tabular-nums}.qs-count span{font-size:14px;opacity:.9}
.qs-info{position:absolute;left:0;right:0;top:calc(84px + env(safe-area-inset-top,0px));text-align:center;font-size:13px;text-shadow:0 1px 3px #000;pointer-events:none}.qs-info span{margin:0 4px}.qs-res{opacity:.7}
.qs-compass{position:absolute;left:50%;transform:translateX(-50%);top:calc(110px + env(safe-area-inset-top,0px));margin:0;min-height:44px;padding:0 16px;border:0;border-radius:22px;background:rgba(245,166,35,.95);color:#1d2b36!important;font-weight:700;font-size:15px}
.qs-compass[hidden],.qs-note[hidden],.qs-msg[hidden],.qs-confirm[hidden]{display:none!important}
.qs-note{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(150px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);padding:10px 14px;border-radius:12px;background:rgba(0,0,0,.72);font-size:15px;text-align:center}
.qs-note .qs-resume{margin:0;min-height:48px;padding:0 18px;border:0;border-radius:24px;background:#f5a623;color:#1d2b36!important;font-weight:700;font-size:16px}
.qs-bottom{position:absolute;left:0;right:0;bottom:0;height:calc(128px + env(safe-area-inset-bottom,0px));padding:0 14px env(safe-area-inset-bottom,0px);box-sizing:border-box;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.6))}
.qs-shutter{width:88px;height:88px;margin:0;padding:0;border:5px solid #fff;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.qs-shutter span{display:block;width:70px;height:70px;border-radius:50%;background:#fff;transition:transform .06s}.qs-shutter:active span{transform:scale(.86);background:#f5a623}
.qs-shutter:disabled{opacity:.4}
.qs-done{justify-self:end;margin:0;min-width:96px;min-height:52px;padding:0 16px;border:0;border-radius:26px;background:#f5a623;color:#1d2b36!important;font-weight:800;font-size:17px;cursor:pointer;touch-action:manipulation}
.qs-done:disabled{background:rgba(255,255,255,.25);color:rgba(255,255,255,.7)!important}
.qs-strip{justify-self:start;display:flex;align-items:center;min-height:56px}
.qs-th{width:44px;height:56px;object-fit:cover;border:2px solid #fff;border-radius:6px;margin-left:-22px;box-shadow:0 1px 4px rgba(0,0,0,.6);background:#333}.qs-th:first-child{margin-left:0}.qs-th:last-child{animation:qspop .2s ease-out}
@keyframes qspop{0%{transform:scale(1.4)}100%{transform:scale(1)}}
.qs-msg,.qs-confirm{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.78)}
.qs-mbox,.qs-cbox{max-width:360px;width:100%;background:#fff;color:#1d2b36;border-radius:14px;padding:18px;text-align:center;font-size:16px;line-height:1.4}
.qs-mbox p,.qs-cbox p{margin:0 0 14px}
.qs-mbox .btn,.qs-mbox button,.qs-cbox button{display:block;width:100%;box-sizing:border-box;margin:8px 0 0;min-height:48px;font-size:16px;text-align:center}
.qs-mbox .qs-fb{line-height:48px;padding:0}
.qs-cbox .qs-discard{background:#c0392b;color:#fff!important}.qs-cbox .qs-keep{background:#0b6aa2;color:#fff!important}
.qs-failed .qs-shutter,.qs-failed .qs-info{visibility:hidden}
@media (orientation:landscape) and (max-height:500px){.qs-bottom{top:0;bottom:0;left:auto;right:0;width:calc(128px + env(safe-area-inset-right,0px));height:auto;padding:12px env(safe-area-inset-right,0px) 12px 0;grid-template-columns:1fr;grid-template-rows:1fr auto 1fr;justify-items:center;background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.6))}.qs-done{justify-self:center;align-self:end}.qs-strip{justify-self:center;align-self:start}}
/* update46: Submit for review: message next to the button + upload progress (home-screen apps have no loading bar) */
#formwarn[hidden],#upprog[hidden],.upprog[hidden]{display:none!important}#formwarn{margin:12px 0 8px;scroll-margin:80px}.upprog{margin-left:10px;font-variant-numeric:tabular-nums}
#submitbtn:disabled{opacity:.75;cursor:progress}.u46msg{margin:8px 0}
/* update46: the "Photo removed · Undo" toast sits at the TOP of the screen and only its Undo button takes taps, so it can never
   cover "Submit for review" / "Upload all" at the bottom of the page (it did for 6 s after a ✕) */
.wt-toast{top:calc(12px + env(safe-area-inset-top,0px));bottom:auto;pointer-events:none}.wt-toast .wt-undo{pointer-events:auto}
html.standalone .wt-toast{top:calc(var(--hdr,56px) + 8px)}

/* update47: 📷 / 🖼 buttons: the real file input fills the WHOLE button (however many lines the text wraps to) and sits above the text;
   text never takes the tap. opacity .01 (not 0) and a big font so iOS treats it as a visible, tappable control. */
.capbtn{position:relative;overflow:hidden;isolation:isolate}.capbtn .captxt{position:relative;z-index:0;pointer-events:none}
.capinput{position:absolute!important;inset:0;left:0;top:0;width:100%!important;height:100%!important;margin:0;padding:0;border:0;opacity:.01;font-size:100px;line-height:1;z-index:5;display:block;cursor:pointer;background:transparent;color:transparent;pointer-events:auto;-webkit-appearance:none;appearance:none}
/* the input's own "Choose File" text must not show through, even faintly */
.capinput::-webkit-file-upload-button{opacity:0;visibility:hidden}.capinput::file-selector-button{opacity:0;visibility:hidden}
.libstatus{margin:6px 0 8px;padding:9px 12px;border-radius:8px;font-size:15px;line-height:1.4;background:#eef4f9;color:#0b3d5c}
.libstatus[hidden]{display:none!important}.libstatus.ok{background:#e8f6ec;color:#1d5e2e}.libstatus.err{background:#fdecea;color:#8a1f11;border:1px solid #f0b4ab}.libstatus.warn{background:#fff6e0;color:#6b4a00;border:1px solid #f1d38a}
.libstatus .linkbtn{margin-left:6px}.libstatus .spin{display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:-2px;border:2px solid #9fb6c8;border-top-color:#0b6aa2;border-radius:50%;animation:wtspin .8s linear infinite}
@keyframes wtspin{to{transform:rotate(360deg)}}
.plainpick{display:block}.plainpick .plainlbl{display:block;margin:0 0 6px;font-size:14px;font-weight:600;color:#355}.plainpick input[type=file]{display:block;font-size:16px;max-width:100%;opacity:1;position:static}

/* update49: find nearby (not-yet-on-site) water towers */
.wt-find a.wt-find-btn{display:flex;align-items:center;justify-content:center;color:#444;cursor:pointer}
.wt-find a.wt-find-btn.on{color:#0b6aa2}.wt-find a.wt-find-btn.wait svg{animation:wtpulse 1s ease-in-out infinite}
.wt-find-panel{position:absolute;z-index:1100;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));max-height:min(48vh,420px);display:flex;flex-direction:column;background:#fff;border:2px solid #0b3d5c;border-radius:14px;box-shadow:0 4px 18px rgba(0,0,0,.28);overflow:hidden;font-size:14px}
.wt-find-panel[hidden]{display:none!important}
.wt-find-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#0b3d5c;color:#fff}
.wt-find-head b{font-size:15px}.wt-find-x{margin:0;padding:4px 10px;min-height:36px;background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.4);border-radius:8px;cursor:pointer}
.wt-find-status{padding:8px 12px;border-bottom:1px solid #e4ecf2;color:#355;background:#f7fafc}
.wt-find-list{list-style:none;margin:0;padding:0;overflow:auto;-webkit-overflow-scrolling:touch;flex:1}
.wt-find-list li{padding:10px 12px;border-bottom:1px solid #eef2f5;cursor:pointer}
.wt-find-list li:hover,.wt-find-list li.sel{background:#eef6fb}
.wt-find-list li.sel{outline:2px solid #f5a623;outline-offset:-2px}
.wt-disc-row{display:flex;gap:10px;align-items:flex-start}
.wt-disc-badge{flex:none;font-size:11px;font-weight:800;letter-spacing:.02em;padding:3px 7px;border-radius:999px;color:#fff;white-space:nowrap}
.wt-disc-badge.osm{background:#2a9d4b}.wt-disc-badge.site{background:#7b2cbf}
.wt-disc-body{flex:1;min-width:0}.wt-disc-body b{font-size:14px;color:#0b3d5c}
.wt-disc-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:center}
.wt-disc-acts .btn,.wt-disc-acts .ghost,.wt-disc-acts a.btn,.wt-disc-acts a.ghost{margin:0;padding:6px 10px;min-height:36px;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;border-radius:8px}
.wt-disc-acts a.ghost,.wt-disc-acts button.ghost{background:#e8eef3;color:#0b3d5c;border:0;cursor:pointer}
.wt-find-foot{padding:6px 12px 10px;color:#678;font-size:12px;border-top:1px solid #e4ecf2;background:#fafcfd}
.wt-disc{border-radius:50%;border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;line-height:1;color:#fff}
.wt-disc span{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.wt-disc.osm{background:#2a9d4b}.wt-disc.site{background:#7b2cbf;border-style:dashed}
@media(max-width:600px){.wt-find-panel{max-height:min(52vh,460px)}}
