:root{--teal:#225D6D;--teal-d:#0A516B;--coral:#F15A41;--coral-l:#F15A41;--grey:#A5ADAD;--bg:#111;--panel:#173f4b;--line:#2f6475;--text:#e9efef;--muted:#9fb0b3}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);font:15px/1.4 'Red Hat Display',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
h1,h2,h3,.tool,.tabs button,.bname,.logo{font-family:'Red Hat Display',system-ui,sans-serif}
.logo{display:block;flex:none;max-width:none;height:46px;width:auto;background:#fff;border-radius:8px;padding:2px 5px}
body{display:block;height:100dvh;overflow:hidden}
.top{position:fixed;left:10px;top:10px;z-index:40;display:flex;align-items:center;gap:8px;padding:4px 10px 4px 5px;background:rgba(15,27,31,.35);border-radius:999px;pointer-events:none;max-width:60vw}
.brand{display:flex;align-items:center;gap:8px;font-weight:700}
.mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:6px;background:var(--coral);color:#fff;font-size:13px}
.proj{flex:1;min-width:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tools{display:flex;gap:8px}
.tool{background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:6px;padding:5px 10px;font:inherit;font-size:13px}
.tool em{font-style:normal;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--coral);margin-left:4px}
.tool:disabled{opacity:.75;cursor:not-allowed}
.app{position:fixed;inset:0;display:block}
.stage{position:absolute;inset:0;background:#000}
#viewer{position:absolute;inset:0}
.msg{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);background:rgba(15,27,31,.92);border:1px solid var(--line);padding:8px 14px;border-radius:8px;z-index:20;max-width:90%}
.side{position:absolute;right:12px;bottom:12px;z-index:30;width:min(300px,46vw);height:min(260px,40dvh);display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 6px 24px rgba(0,0,0,.45);transition:width .2s,height .2s}
.side.big{width:min(760px,92%);height:min(620px,82%)}
.tabs{align-items:center}
.tabs .grow{flex:1}
.expand{flex:0 0 auto;width:34px;height:34px;border-radius:8px;border:1px solid var(--line);background:var(--teal-d);color:#fff;font-size:16px;cursor:pointer}
.side:not(.big) .tab{padding:3px 9px;font-size:12px;min-height:26px}
.side:not(.big) .zoom{display:none}
.tabs{display:flex;gap:6px;padding:8px;overflow-x:auto;border-bottom:1px solid var(--line)}
.tab{flex:0 0 auto;background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font:inherit;font-size:14px;cursor:pointer;min-height:36px}
.tab[aria-selected=true]{background:var(--coral);border-color:var(--coral);color:#fff;font-weight:600}
.planwrap{position:relative;flex:1;min-height:0;background:#e9ecec;touch-action:none}
#plan{width:100%;height:100%;display:block;cursor:grab}
#plan.drag{cursor:grabbing}
.zoom{position:absolute;right:10px;bottom:10px;display:flex;flex-direction:column;gap:6px}
.zoom button{width:38px;height:38px;border-radius:8px;border:1px solid var(--line);background:var(--teal-d);color:#fff;font:inherit;font-size:16px;cursor:pointer}
.strip{display:none;gap:8px;padding:8px;overflow-x:auto;border-top:1px solid var(--line);min-height:92px}
.thumb{flex:0 0 auto;width:112px;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#000;cursor:pointer;padding:0}
.thumb img{display:block;width:100%;height:56px;object-fit:cover}
.thumb span{display:block;font-size:11px;padding:3px 5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;background:var(--teal-d)}
.thumb[aria-current=true]{border-color:var(--coral)}
.foot{position:fixed;left:10px;bottom:10px;z-index:40;padding:3px 9px;font-size:12px;color:rgba(255,255,255,.85);background:rgba(15,27,31,.3);border-radius:999px;pointer-events:none;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.tools{display:none}
.mark{width:22px;height:22px;font-size:11px}
.proj{font-size:12px;color:rgba(255,255,255,.85)}
.bname{font-size:12px}
.psv-container{--psv-navbar-background:rgba(15,27,31,.25);--psv-caption-background:transparent}
.pin-have{cursor:pointer}
.pin-have:hover circle.dot{stroke:#fff}
@media (max-width:820px){
  .brand .bname{display:none}
  .tools{display:none}
  .tool em{display:none}
  .side{width:min(210px,52vw);height:min(190px,30dvh)}
}

.expand{position:absolute;right:6px;top:6px;z-index:5;width:32px;height:32px;background:rgba(15,27,31,.7)}
.tabs{padding-right:44px}
.foot{left:10px;top:48px;bottom:auto}
.fsbtn{position:fixed;right:12px;top:10px;z-index:40;width:34px;height:34px;border-radius:50%;border:0;background:rgba(15,27,31,.35);color:#fff;font-size:16px;cursor:pointer}
.psv-marker{pointer-events:none!important}
.nav-ring{width:100%;height:100%;border-radius:50%;box-sizing:border-box;transform:scaleY(.42)}
.nav-ring.faint{border:3px solid rgba(255,255,255,.85);background:radial-gradient(ellipse at center,rgba(255,255,255,.5) 0,rgba(255,255,255,.22) 55%,rgba(255,255,255,.08) 100%);box-shadow:0 0 10px rgba(0,0,0,.5);transition:transform .15s}
.nav-ring.hot{border:4px solid #fff;background:rgba(209,96,75,.5);box-shadow:0 0 16px rgba(255,255,255,.85)}
.foot{left:50%;top:10px;transform:translateX(-50%);bottom:auto;white-space:nowrap}

.calib{position:fixed;left:10px;bottom:10px;z-index:40;background:rgba(15,27,31,.35);color:rgba(255,255,255,.85);font-size:11px;padding:4px 10px;border-radius:999px;display:flex;gap:8px;align-items:center}
.calib input{width:110px;accent-color:#D1604B}

.nav-ring.door{border:3px dashed rgba(255,214,120,.95);background:rgba(255,214,120,.18);box-shadow:0 0 8px rgba(0,0,0,.45)}
.allbtn{position:fixed;right:12px;top:52px;z-index:40;border:0;border-radius:999px;padding:6px 12px;background:rgba(15,27,31,.35);color:#fff;font:inherit;font-size:12px;cursor:pointer}
.allbtn.on{background:rgba(209,96,75,.8)}

.peek{position:fixed;z-index:60;width:560px;max-width:70vw;padding:6px;background:rgba(15,27,31,.95);border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.45);pointer-events:none}
.peek img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:4px;background:#000}
.peek span{display:block;margin-top:4px;font-size:12px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expand.hidemap{right:6px;top:6px;width:30px;height:30px}
.mapshow{position:fixed;right:12px;bottom:12px;z-index:30;padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:rgba(15,27,31,.75);color:#fff;font:inherit;font-size:14px;cursor:pointer}
.mapshow[hidden],.peek[hidden]{display:none}
.peekbox{position:relative}
.peekdate{position:absolute;left:10px;top:10px;padding:5px 10px;border-radius:8px;background:rgba(15,27,31,.78);color:#fff;font-size:14px;font-weight:600}
.peekdate[hidden]{display:none}
.allbtn{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 10px}
.loopico{display:inline-block;width:22px;height:22px;border:3px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(255,255,255,.22);box-sizing:border-box;transform:scaleY(.55);box-shadow:0 0 6px rgba(0,0,0,.4)}
.allbtn.on .loopico{background:rgba(255,255,255,.6);box-shadow:0 0 10px rgba(255,255,255,.8)}
.tabs{padding-right:8px!important}
.plctl{position:absolute;top:8px;right:8px;z-index:6;display:flex;gap:6px;padding:4px;background:rgba(15,27,31,.55);border-radius:10px}
.plctl button{position:static!important;width:30px;height:30px;min-width:30px;padding:0;border-radius:7px;border:1px solid var(--line);background:var(--teal-d);color:#fff;font:inherit;font-size:15px;line-height:1;cursor:pointer}
.plctl #zfit{width:auto;padding:0 9px;font-size:12px}
.side:not(.big) .zoom{display:block}
.psv-loader-container,.psv-loader{display:none!important}

/* controls sit in the header row (never over the plan); enlarged plan can be dragged */
.tabs{padding-right:8px!important;align-items:center}
.tabs .plctl{position:sticky;right:0;top:auto;margin-left:auto;flex:0 0 auto;display:flex;gap:4px;padding:0 0 0 6px;background:var(--panel);border-radius:0;z-index:2}
.tabs .plctl button{width:26px;height:26px;min-width:26px;font-size:14px}
.tabs .plctl #zfit{width:auto;padding:0 8px;font-size:12px}
.side.big .tabs .plctl button{width:32px;height:32px;min-width:32px;font-size:16px}
.side.big .tabs .plctl #zfit{width:auto}
.grip{display:none;flex:0 0 auto;padding:0 6px;color:var(--muted);font-size:16px;letter-spacing:-3px;cursor:move;user-select:none;touch-action:none}
.side.big .grip{display:block}
.side.big .tabs{cursor:move;touch-action:none}
.side.big .tabs .tab{cursor:pointer}
.side:not(.big) .zoom{display:none}

.peek{width:440px}
.peek img{aspect-ratio:4/3;object-position:50% 50%}

/* measure tool */
.measurebtn{top:92px}
.mpanel{position:fixed;left:12px;top:56px;z-index:45;width:min(330px,92vw);max-height:calc(100dvh - 150px);overflow:auto;padding:14px;background:rgba(14,24,28,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12);border-radius:16px;color:var(--text);box-shadow:0 12px 36px rgba(0,0,0,.5)}
.mpanel[hidden]{display:none}
.mpanel button{font:inherit;cursor:pointer}
.mhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.mtitle{font-size:16px;font-weight:700;letter-spacing:.01em}
.mx{width:28px;height:28px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;font-size:18px;line-height:1}
.mx:hover{background:rgba(255,255,255,.16)}
.mx.sm{width:24px;height:24px;font-size:15px;flex:0 0 auto}
.mlabel{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.mseg{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:3px;background:rgba(255,255,255,.06);border-radius:10px}
.mseg button{padding:6px 0;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px}
.mseg button.on{background:#fff;color:#0f1b1f;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.mhint{margin:10px 0;font-size:13px;line-height:1.35;color:var(--muted);min-height:36px}
.mout{padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.06);margin-bottom:10px}
.mbig{font-size:30px;font-weight:700;letter-spacing:-.01em;line-height:1.1}
.msub{font-size:13px;color:var(--muted);min-height:18px;margin-top:2px}
.mrows{margin-top:6px}
.mrow{display:flex;justify-content:space-between;font-size:13px;padding:3px 0;border-top:1px solid rgba(255,255,255,.07);color:var(--muted)}
.mrow b{color:var(--text);font-weight:600}
.mname,.mset input{width:100%;padding:9px 11px;border-radius:9px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.25);color:#fff;font:inherit;font-size:13px}
.mname{margin-bottom:8px}
.mname::placeholder,.mset input::placeholder{color:rgba(255,255,255,.35)}
.mact{display:grid;grid-template-columns:1fr auto auto;gap:6px}
.mact button,.mcalrow button{padding:8px 12px;border-radius:9px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:#fff;font-size:13px}
.mact button:hover,.mcalrow button:hover{background:rgba(255,255,255,.14)}
.mact button.pri{background:var(--coral);border-color:var(--coral);font-weight:600}
.mact button.on{background:#7fd1c4;border-color:#7fd1c4;color:#0f1b1f;font-weight:600}
.mwalls{display:flex;gap:10px;align-items:center;margin-top:8px;font-size:12px;color:var(--muted)}
.link{border:0;background:transparent;color:#7fd1c4;padding:2px 4px;font-size:12px}
.link:hover{text-decoration:underline}
.mset{margin-top:12px;border-top:1px solid rgba(255,255,255,.08);padding-top:10px;font-size:13px}
.mset summary{cursor:pointer;color:var(--muted);margin-bottom:8px}
.mfld{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.mfld input{width:100px;text-align:right}
.mnote{font-size:11.5px;color:var(--muted);line-height:1.35;margin:6px 0}
.mcalrow{display:flex;gap:6px}
.msavedhead{display:flex;justify-content:space-between;align-items:center;margin:14px 0 6px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.mlist{display:flex;flex-direction:column;gap:6px;max-height:190px;overflow:auto}
.mempty{font-size:13px;color:var(--muted)}
.mitem{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.06)}
.mitext{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px}
.mitext b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mitext span{color:var(--muted);font-size:12px}
.mpt{width:16px;height:16px;border-radius:50%;background:var(--coral);border:2px solid #fff;box-shadow:0 0 0 3px rgba(0,0,0,.25),0 2px 8px rgba(0,0,0,.6)}
.mpt.saved{background:#7fd1c4}
.mpt.wall{background:#7fd1c4;border-radius:3px}
.mlbl{display:inline-block;padding:4px 11px;border-radius:999px;background:rgba(14,24,28,.92);border:1px solid rgba(255,255,255,.7);color:#fff;font-size:14px;font-weight:700;white-space:nowrap;box-shadow:0 2px 10px rgba(0,0,0,.5)}
.mlbl.saved{border-color:#7fd1c4;pointer-events:none}
.npin{position:relative;z-index:3}
@media (max-width:820px){.mpanel{top:auto;bottom:12px;left:50%;transform:translateX(-50%);max-height:55dvh}}

/* notes */
.notebtn{top:132px}
.mcap{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.ncomp{margin-bottom:6px}
.ntext{width:100%;resize:vertical;min-height:76px;padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.25);color:#fff;font:inherit;font-size:14px;margin-bottom:8px}
.nmic{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.nrec{padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:#fff;font-size:13px}
.nrec.on{background:#d13b3b;border-color:#d13b3b;animation:npulse 1.2s infinite}
@keyframes npulse{50%{box-shadow:0 0 0 6px rgba(209,59,59,.25)}}
.ntime{font-variant-numeric:tabular-nums;font-size:13px;color:var(--muted);min-width:34px}
.nlang{margin-left:auto;padding:6px 8px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.3);color:#fff;font:inherit;font-size:12px}
.nstt{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin:4px 0 6px}
.nprev,.nitem audio{width:100%;height:34px;margin:4px 0}
.nacts{grid-template-columns:1fr auto;margin-top:8px}
.nlist{max-height:260px}
.nitem{flex-direction:column;align-items:stretch;gap:4px}
.nitem.flash{outline:2px solid #7fd1c4}
.nitop{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.nitop b{color:var(--text)}
.nitxt{font-size:14px;line-height:1.35;white-space:pre-wrap;word-break:break-word}
.nirow{display:flex;gap:10px}
.npin{width:28px;height:28px;border-radius:50%;background:#7fd1c4;color:#0f1b1f;display:grid;place-items:center;font-weight:700;font-size:13px;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.6)}
.npin>*,.npin{line-height:1}
.npin.voice{background:#f2b84b}
.npin.pending{background:var(--coral);color:#fff;animation:npulse 1.2s infinite}

/* sharp, thin measuring points: a fine crosshair, so you can see exactly which edge you picked */
.mpt{position:relative;width:25px;height:25px;border:0;border-radius:0;background:transparent;box-shadow:none}
.mpt::before,.mpt::after{content:"";position:absolute;background:#fff;box-shadow:0 0 0 .75px rgba(0,0,0,.7)}
.mpt::before{left:50%;top:0;width:1px;height:100%;margin-left:-.5px}
.mpt::after{top:50%;left:0;height:1px;width:100%;margin-top:-.5px}
.mpt.saved::before,.mpt.saved::after,.mpt.wall::before,.mpt.wall::after{background:#7fd1c4}
.mpt.saved,.mpt.wall{background:transparent}
.mpt i{position:absolute;left:50%;top:50%;width:3px;height:3px;margin:-1.5px 0 0 -1.5px;border-radius:50%;background:var(--coral);z-index:1}

/* small note box */
.ncard{position:fixed;z-index:50;width:272px;padding:8px;background:rgba(14,24,28,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.14);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.ncard[hidden]{display:none}
.ncard .ntext{display:block;width:100%;margin:0 0 6px;min-height:0;resize:none;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:#fff;font:inherit;font-size:14px;line-height:1.35}
.ncard .ntext:focus{outline:none;background:rgba(255,255,255,.06)}
.ncbar{display:flex;align-items:center;gap:4px}
.ncbar .nmsg{flex:1;min-width:0;font-size:11.5px;color:#f2b84b;line-height:1.2}
.ncbar .ntime{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.nib{width:32px;height:32px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
.nib:hover{background:rgba(255,255,255,.18)}
.nib.pri{background:var(--coral)}
.nib.danger{color:#ff8f86}
.nib.mic.on{background:#d13b3b;animation:npulse 1.2s infinite}
.nib[hidden]{display:none}
.nbar-spacer{flex:1}
.npin.sel{outline:2px solid #fff;outline-offset:2px}
.npin{width:24px;height:24px;font-size:12px}
.notebtn{top:132px}

.mseg.two{grid-template-columns:repeat(2,1fr)}
.mlbl.live{border-color:#fff;background:rgba(14,24,28,.82)}
.exportbtn{top:172px}
.expmenu{position:fixed;right:12px;top:208px;z-index:60;width:260px;background:#fff;color:#1d2a2e;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.28);padding:6px}
.expitem{display:block;width:100%;text-align:left;border:0;background:none;font:inherit;font-size:14px;padding:11px 12px;border-radius:8px;cursor:pointer;color:inherit}
.expitem:hover{background:#eef2f2}.expitem:disabled{opacity:.5;cursor:default}
.expstat{font-size:12px;color:#5b6c70;padding:4px 12px 8px;min-height:0}.expstat:empty{display:none}
.exphint{font-size:11.5px;color:#5b6c70;padding:6px 12px 2px;border-top:1px solid #e3e8e8;margin-top:4px}

.datechips{position:fixed;left:50%;top:46px;transform:translateX(-50%);z-index:41;display:flex;gap:6px;max-width:92vw;overflow-x:auto}
.datechips button{flex:none;border:0;border-radius:999px;padding:5px 12px;background:rgba(15,27,31,.55);color:#fff;font:inherit;font-size:12px;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.datechips button[aria-current=true]{background:rgba(209,96,75,.9)}

/* measure tool, simpler and cleaner */
.mpanel{width:min(300px,92vw);padding:16px;border-radius:20px;background:rgba(16,26,30,.78);border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 50px rgba(0,0,0,.45)}
.mtitle{font-size:15px;font-weight:600;letter-spacing:.02em}
.mhint{margin:2px 0 12px;font-size:12.5px;min-height:0;color:rgba(255,255,255,.6)}
.mout{padding:14px 16px;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08)}
.mbig{font-size:34px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.msub{display:none}
.mrows{margin-top:8px}
.mrow{border-top:1px solid rgba(255,255,255,.08);padding:5px 0 0;margin-top:5px;font-size:12.5px}
.mname{border-radius:12px;padding:10px 12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
.mact{grid-template-columns:1fr auto}
.mact button{border-radius:12px;padding:10px 14px}
.mact button.pri{background:var(--coral);border-color:transparent}
.msavedhead{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.msavedhead .link{font-size:12px;letter-spacing:0;text-transform:none}
.mlist{max-height:200px;gap:4px}
.mitem{padding:9px 6px 9px 12px;border-radius:12px;background:transparent;border-bottom:1px solid rgba(255,255,255,.07);border-radius:0}
.mitem:hover{background:rgba(255,255,255,.04)}
.mlen{font-weight:600;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:4px}
.mitem .link{color:#7fd1c4;background:none;border:0;font-size:12.5px;padding:2px 6px}
.mset{margin-top:12px}
.mlbl{padding:3px 10px;font-size:13px;font-weight:600;letter-spacing:.01em;background:rgba(16,26,30,.78);border:1px solid rgba(255,255,255,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 2px 8px rgba(0,0,0,.4)}
.mlbl.saved{border-color:rgba(127,209,196,.7)}

/* bigger, less zoomed-in map */
.side{width:min(430px,52vw);height:min(340px,48dvh)}
@media (max-width:820px){.side{width:min(280px,62vw);height:min(230px,36dvh)}}
.clu text{pointer-events:none;user-select:none}
.clu circle{filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}

/* top-left badge and the centre date: same size and height */
.top,.foot{box-sizing:border-box;height:30px;display:flex;align-items:center;font-size:13px;line-height:1}
.top{padding:0 14px 0 4px;gap:8px;top:10px}
.foot{padding:0 14px;top:10px}
.mark{width:22px;height:22px;font-size:11px}
.bname,.proj{font-size:13px;line-height:1}
.datechips{top:48px}

/* one Tools button instead of four */
.toolsbtn{position:fixed;right:12px;top:52px;z-index:40;display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 14px 0 10px;border:0;border-radius:999px;background:rgba(15,27,31,.35);color:#fff;font:inherit;font-size:13px;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.toolsbtn.open,.toolsbtn.on{background:rgba(209,96,75,.85)}
.toolmenu{position:fixed;right:12px;top:90px;z-index:55;width:216px;padding:6px;display:flex;flex-direction:column;gap:2px;background:rgba(16,26,30,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.45)}
.toolmenu[hidden]{display:none}
.toolmenu .toolitem{position:static;display:flex;align-items:center;gap:10px;width:100%;height:40px;padding:0 12px;border:0;border-radius:11px;background:transparent;color:#fff;font:inherit;font-size:14px;text-align:left;cursor:pointer;-webkit-backdrop-filter:none;backdrop-filter:none}
.toolmenu .toolitem:hover{background:rgba(255,255,255,.08)}
.toolmenu .toolitem.on{background:rgba(209,96,75,.85)}
.toolmenu .loopico{flex:0 0 auto}
.expmenu{top:90px;right:240px}
@media (max-width:820px){.expmenu{right:12px;top:auto;bottom:12px;left:12px;width:auto}}

/* round, smaller and thinner */
.top,.foot{height:24px;font-size:12px}
.top{padding:0 11px 0 3px;gap:7px}
.foot{padding:0 12px}
.mark{width:18px;height:18px;font-size:9px}
.bname,.proj{font-size:12px}
.datechips{top:42px}
.fsbtn{width:30px;height:30px;top:7px;font-size:14px}
.toolsbtn{width:30px;height:30px;padding:0;gap:0;justify-content:center;top:44px;right:12px}
.toolsbtn span{display:none}
.toolmenu{top:80px;width:164px;padding:4px;border-radius:12px;gap:1px}
.toolmenu .toolitem{height:32px;padding:0 10px;font-size:13px;border-radius:8px;gap:8px}
.toolmenu .loopico{width:16px;height:16px;border-width:2px}
.expmenu{top:80px;right:184px;width:290px;border-radius:12px;padding:4px}.expmenu hr{border:0;border-top:1px solid #e3e8e8;margin:4px 8px}
.expitem{font-size:13px;padding:9px 11px}
@media (max-width:820px){.expmenu{right:12px;top:auto;bottom:12px;left:12px;width:auto}}

/* zoom + and - sit in the bottom right corner of the plan, one above the other */
.zoomcol{position:absolute;right:8px;bottom:8px;z-index:3;display:flex;flex-direction:column;gap:5px}
.zoomcol button{width:28px;height:28px;border:0;border-radius:8px;background:rgba(15,27,31,.8);color:#fff;font:inherit;font-size:16px;line-height:1;cursor:pointer;display:grid;place-items:center;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.zoomcol button:hover{background:rgba(209,96,75,.9)}
.side.big .zoomcol button{width:34px;height:34px;font-size:18px}

/* notes: tap a pin to open it; send row */
.psv-marker .npin{pointer-events:auto;cursor:pointer}
.nsend{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.nsend[hidden]{display:none}
.nsb{border:0;border-radius:999px;padding:6px 12px;background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:12.5px;cursor:pointer}
.nsb:hover{background:rgba(255,255,255,.2)}
.nsb[hidden]{display:none}
.nsendhint{flex-basis:100%;font-size:11px;line-height:1.35;color:rgba(255,255,255,.55)}

/* note box: roomy enough for all the buttons, messages on their own line */
.ncard{width:min(340px,calc(100vw - 16px))}
.ncbar{flex-wrap:wrap;row-gap:6px}
.ncbar .nmsg{order:9;flex:1 1 100%}
.ncbar .ntime{margin:0 2px}
.nib{width:30px;height:30px}
.nib.playb{display:none!important}
.ncard .nplayer{display:block;width:100%;height:34px;margin-top:6px}
.ncard .nplayer[hidden],.ncard .nheard[hidden]{display:none}
.ncard .nheard{margin-top:4px;font-size:11.5px;color:#9fd8c8}

/* ---- field notes: yellow note symbol on the photo, white card at the side ---- */
.npin.note{width:30px;height:30px;border-radius:9px;background:#f2b84b;color:#3a2a00;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.55);font-size:0}
.npin.note.done{background:#9bd3b5}
.npin.note.pending{background:#ffd37a;animation:npulse 1.2s infinite}
.npin.note.sel{outline:2px solid #fff;outline-offset:2px}
body.noting .psv-container,body.noting .psv-container *{cursor:crosshair!important}
.ncard.fcard{left:12px;top:84px;right:auto;width:min(340px,calc(100vw - 24px));max-height:calc(100vh - 110px);overflow:auto;padding:14px 14px 10px;background:#fff;color:#1d2a2e;border:0;border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.45);-webkit-backdrop-filter:none;backdrop-filter:none}
.fcard .fhead{display:flex;align-items:center;gap:2px}
.fcard .ftitle{flex:1;font-size:19px;font-weight:600}
.fcard .nib{background:transparent;color:#1d2a2e}
.fcard .nib:hover{background:#eef2f2}
.fcard .fby{margin:2px 0 10px;font-size:13px;color:#6b7a7e}
.fcard .frow{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px solid #e6ecec}
.fcard .frow[hidden],.fcard .fcomh[hidden],.fcard .fclist[hidden]{display:none}
.fcard .flabel{font-size:14px}
.fcard .fsel{border:0;background:transparent;font:inherit;font-size:14px;color:#1d2a2e;cursor:pointer}
.fcard .fcomh{display:flex;align-items:center;gap:8px;padding:10px 0 6px;border-top:1px solid #e6ecec;font-size:12px;letter-spacing:.05em;color:#6b7a7e}
.fcard .fcount{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:6px;background:#eef2f2;color:#1d2a2e;font-size:11px}
.fcard .fclist{max-height:34vh;overflow:auto}
.fcard .fc{display:flex;gap:10px;padding:6px 0}
.fcard .fav{flex:0 0 auto;width:32px;height:32px;border-radius:50%;background:#d7ecea;color:#2c6b64;display:grid;place-items:center;font-size:11px;font-weight:700}
.fcard .fcb{min-width:0;flex:1}
.fcard .fcn{font-weight:600;font-size:14px}
.fcard .fct{font-size:14px;line-height:1.35;white-space:pre-wrap;word-break:break-word}
.fcard .fct.dim{color:#8a979b;font-size:12.5px}
.fcard .fcd{font-size:12px;color:#8a979b;margin-top:2px}
.fcard .fplay{display:block;width:100%;height:32px;margin-top:4px}
.fcard .fin{display:block;width:100%;box-sizing:border-box;margin:8px 0 6px;min-height:44px;resize:none;padding:9px 11px;border:1px solid #d5dede;border-radius:10px;background:#fff;color:#1d2a2e;font:inherit;font-size:14px}
.fcard .fin:focus{outline:none;border-color:#33525c}
.fcard .fbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.fcard .fbar .nmsg{flex:1 1 100%;order:9;min-width:0;font-size:11.5px;color:#b26a00;line-height:1.2}
.fcard .fbar .ntime{flex:1;font-size:12px;color:#6b7a7e}
.fcard .nib.pri{background:#33525c;color:#fff}
.fcard .nib.mic{background:#eef2f2}
.fcard .nib.mic.on{background:#d13b3b;color:#fff}
.fcard .nheard{font-size:11.5px;color:#2c6b64;margin-bottom:4px}
.fcard .nplayer{display:block;width:100%;height:34px}
.fcard .nsend{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.fcard .nsb{border:0;border-radius:8px;padding:6px 10px;background:#eef2f2;color:#1d2a2e;font:inherit;font-size:13px;cursor:pointer}
.fcard .nsendhint{flex-basis:100%;font-size:11px;color:#8a979b}
.fcard .fmenu{position:absolute;right:12px;top:48px;z-index:2;min-width:150px;padding:6px;background:#fff;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.28)}
.fcard .fmenu[hidden]{display:none}
.fcard .fmi{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 10px;border-radius:8px;font:inherit;font-size:14px;color:#1d2a2e;cursor:pointer}
.fcard .fmi:hover{background:#eef2f2}
.fcard .fmi.danger{color:#c0392b}
@media (max-width:640px){.ncard.fcard{left:8px;right:8px;top:auto;bottom:8px;width:auto;max-height:62vh}}
.peeknote{position:absolute;left:10px;bottom:10px;width:30px;height:30px;border-radius:50%;background:#f2b84b;color:#3a2a00;display:grid;place-items:center}
.peeknote[hidden]{display:none}
.fcard .nsend[hidden]{display:none}
/* smaller, round note symbol: yellow = open, green with a check = done */
.npin.note{width:24px;height:24px;border-radius:50%;border-width:2px}
.npin.note.done{background:#5cc28a;color:#fff}
.fcard .nib[hidden]{display:none}
/* simple note dots: yellow = open, green = done */
.npin.note{width:16px;height:16px;border-width:2px}
.sharebtn{position:fixed;right:50px;top:52px;z-index:40;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:rgba(15,27,31,.35);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sharebox{position:fixed;right:12px;top:90px;z-index:56;width:300px;max-width:calc(100vw - 24px);padding:16px;background:#fff;color:#1d2b30;border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.4);font-size:14px}
.sharebox[hidden]{display:none}
.sharehead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:16px}
.sharex{border:0;background:none;font-size:22px;line-height:1;cursor:pointer;color:#5a6a70}
.sharecopy{display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 12px;border:1px solid #cfd8db;border-radius:10px;background:#fff;color:#1d2b30;font:inherit;cursor:pointer}
.sharewho{margin:14px 0 8px}
.sharelabel{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6b7b81;margin-bottom:6px}
.shareopt{display:flex;gap:10px;align-items:flex-start;padding:7px 0;cursor:pointer}
.shareopt small{display:block;color:#6b7b81;font-size:12px;margin-top:1px}
.sharerow{display:block;width:100%;height:38px;margin-top:6px;padding:0 12px;text-align:left;border:0;border-radius:10px;background:#eef3f4;color:#1d2b30;font:inherit;cursor:pointer}
.sharerow:disabled{opacity:.5}
.sharemsg{min-height:16px;margin-top:8px;font-size:12px;color:#6b7b81}
@media (max-width:640px){.sharebtn{top:44px;right:48px}.sharebox{top:80px}}
.sharerow[hidden]{display:none}
.sharebox .sharerow.stop{background:#fde8e4;color:#a23b2a;margin-top:8px}
/* layout: plan map on the left; Share sits under Tools, same style; notes card on the right */
.side{right:auto;left:12px;bottom:44px}
.mapshow{right:auto;left:12px;bottom:44px}
.ncard.fcard{left:auto;right:12px}
@media (max-width:820px){.side{bottom:44px}}
.sharebtn{width:30px;height:30px;padding:0;gap:0;justify-content:center;right:12px;top:80px}
.sharebtn span{display:none}
.sharebox{top:118px}
@media (max-width:640px){.ncard.fcard{left:8px;right:8px}}
/* right-hand column of small round symbols: fullscreen, measure, notes, tools, share */
.allbtn.iconbtn{position:fixed;right:12px;left:auto;bottom:auto;z-index:40;width:30px;height:30px;min-width:0;padding:0;margin:0;border:0;border-radius:50%;font-size:0;line-height:0;color:transparent;background-color:rgba(15,27,31,.35);background-repeat:no-repeat;background-position:center;background-size:16px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:pointer}
.allbtn.iconbtn.on{background-color:rgba(209,96,75,.85)}
.allbtn.measurebtn.iconbtn{top:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17L17 3l4 4L7 21z'/%3E%3Cpath d='M7 13l2 2M10 10l2 2M13 7l2 2'/%3E%3C/svg%3E")}
.allbtn.notebtn.iconbtn{top:80px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11l3 3v13H5z'/%3E%3Cpath d='M8 11h8M8 15h5'/%3E%3C/svg%3E")}
.allbtn.iconbtn[data-n]::after{content:attr(data-n);position:absolute;top:-3px;right:-3px;min-width:14px;height:14px;padding:0 3px;box-sizing:border-box;border-radius:7px;background:#F08C2E;color:#fff;font-size:9px;line-height:14px;font-weight:700;text-align:center}
.toolsbtn:not(.sharebtn){top:116px}
.sharebtn{top:152px}
.toolmenu{top:154px}
.sharebox{top:190px}
.ncard.fcard{right:54px}
@media (max-width:640px){.ncard.fcard{right:8px}}
/* measuring: a hair-thin crosshair with a tiny open centre, so the exact spot stays visible */
body.measuring .psv-container,body.measuring .psv-container *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31' height='31' viewBox='0 0 31 31'%3E%3Cg stroke='black' stroke-opacity='.75' stroke-width='3'%3E%3Cpath d='M15.5 1v11M15.5 19v11M1 15.5h11M19 15.5h11'/%3E%3C/g%3E%3Cg stroke='white' stroke-width='1'%3E%3Cpath d='M15.5 1v11M15.5 19v11M1 15.5h11M19 15.5h11'/%3E%3C/g%3E%3C/svg%3E") 15 15,crosshair!important}
/* see-through note card: frosted glass, so the photo stays visible while you read */
.ncard.fcard{background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);color:#0f181b;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.fcard .fby,.fcard .fcomh,.fcard .fcd,.fcard .fbar .ntime{color:#3c4a4e}
.fcard .fct.dim,.fcard .nsendhint{color:#4a585c}
.fcard .frow,.fcard .fcomh{border-top-color:rgba(0,0,0,.14)}
.fcard .fin{background:rgba(255,255,255,.5);border-color:rgba(0,0,0,.2)}
.fcard .nib:hover,.fcard .nib.mic,.fcard .nsb,.fcard .fcount,.fcard .fmi:hover{background:rgba(255,255,255,.55)}
.fcard .fmenu{background:rgba(255,255,255,.9)}
/* smaller note card */
.ncard.fcard{width:min(270px,calc(100vw - 24px));padding:10px 11px 8px;border-radius:13px;max-height:calc(100vh - 100px)}
.fcard .ftitle{font-size:15px}
.fcard .fby{margin:0 0 6px;font-size:11.5px}
.fcard .frow{padding:5px 0}
.fcard .flabel,.fcard .fsel{font-size:12.5px}
.fcard .fcomh{padding:6px 0 3px;font-size:10.5px}
.fcard .fcount{min-width:17px;height:17px;font-size:10px}
.fcard .fclist{max-height:22vh}
.fcard .fc{gap:8px;padding:4px 0}
.fcard .fav{width:24px;height:24px;font-size:9px}
.fcard .fcn,.fcard .fct{font-size:12.5px}
.fcard .fcd{font-size:10.5px}
.fcard .fin{min-height:34px;margin:6px 0 4px;padding:6px 9px;font-size:12.5px;border-radius:8px}
.fcard .nsb{padding:4px 8px;font-size:12px}
.fcard .nsendhint{font-size:10px}
.fcard .nib{width:28px;height:28px}
/* slim voice player + a still smaller note card */
.fcard audio,.fcard .nplayer,.fcard .fplay{display:none}
.mp{display:flex;align-items:center;gap:5px;height:22px;margin:3px 0 2px;padding:0 7px;border-radius:11px;background:rgba(255,255,255,.5);color:#0f181b}
.mp[hidden]{display:none}
.mp button,.mp a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:16px;height:18px;padding:0;border:0;background:transparent;color:#0f181b;font:inherit;font-size:10px;font-weight:600;cursor:pointer;text-decoration:none}
.mp .mpr{flex:1;min-width:0;height:3px;margin:0;accent-color:#33525c;cursor:pointer}
.mp .mpt2{flex:0 0 auto;min-width:24px;text-align:right;font-size:10px;color:#3c4a4e}
.ncard.fcard{width:min(236px,calc(100vw - 24px));padding:8px 9px 6px;border-radius:12px}
.fcard .ftitle{font-size:14px}
.fcard .fby{font-size:10.5px;margin-bottom:4px}
.fcard .frow{padding:3px 0}
.fcard .flabel,.fcard .fsel{font-size:12px}
.fcard .fclist{max-height:18vh}
.fcard .fcn,.fcard .fct{font-size:12px}
.fcard .fav{width:22px;height:22px}
.fcard .fin{min-height:30px;padding:5px 8px;font-size:12px}
.fcard .nib{width:26px;height:26px}
.fcard .nib svg{width:15px;height:15px}
.fcard .nsb{padding:3px 7px;font-size:11.5px}
.mp .mpr{-webkit-appearance:none;appearance:none;background:rgba(0,0,0,.22);border-radius:2px}
.mp .mpr::-webkit-slider-thumb{-webkit-appearance:none;width:9px;height:9px;border-radius:50%;background:#33525c;border:0}
.mp .mpr::-moz-range-thumb{width:9px;height:9px;border-radius:50%;background:#33525c;border:0}
/* bell: new notes from teammates */
.allbtn.bellbtn.iconbtn{top:188px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E")}
.allbtn.bellbtn[hidden]{display:none!important}
.bellbox{position:fixed;right:54px;top:188px;z-index:56;width:250px;max-height:50vh;overflow:auto;padding:8px;border-radius:12px;background:rgba(255,255,255,.92);color:#0f181b;box-shadow:0 10px 30px rgba(0,0,0,.35);font-size:12.5px}
.bellbox[hidden]{display:none}
.bellhead{font-weight:700;font-size:13px;padding:2px 4px 6px}
.bellempty{padding:6px 4px;color:#4a585c}
.bellitem{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:7px 6px;font:inherit;color:inherit;cursor:pointer}
.bellitem:hover{background:rgba(0,0,0,.06)}
.bellitem b{display:block;font-size:12.5px}
.bellitem span{display:block;font-size:11px;color:#4a585c}
.bellitem i{display:block;font-size:11.5px;font-style:normal;color:#1d2a2e;margin-top:1px}
.bellall{display:block;width:100%;margin-top:4px;border:0;border-radius:8px;padding:6px;background:rgba(0,0,0,.07);font:inherit;font-size:12px;cursor:pointer}
.fcard .fprivate{margin:2px 0 4px;padding:3px 8px;border-radius:8px;background:rgba(240,140,46,.2);font-size:11px;color:#6b3a00}
.fcard .fprivate[hidden]{display:none}
/* measurement readings: see-through, so the picture shows behind the numbers */
.mlbl,.mlbl.live{background:rgba(16,26,30,.34);border:1px solid rgba(255,255,255,.3);-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);box-shadow:none;text-shadow:0 1px 3px rgba(0,0,0,.85),0 0 2px rgba(0,0,0,.7);padding:2px 9px;font-size:12.5px}
.mlbl.saved{border-color:rgba(127,209,196,.55)}

/* AI search */
.allbtn.searchbtn.iconbtn{top:224px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")}
.allbtn.searchbtn[hidden]{display:none!important}
.aisearch{position:fixed;right:52px;top:44px;z-index:45;width:min(330px,calc(100vw - 70px));max-height:calc(100vh - 140px);display:flex;flex-direction:column;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.25);padding:10px;font:13px/1.35 system-ui,sans-serif;color:#13232a}
.aisearch[hidden]{display:none}
.aihead{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.aix{border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:#456}
.aiq{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #c5d0d4;border-radius:8px;font-size:14px}
.ainote{font-size:11px;color:#56707a;margin:6px 0 2px}
.aiout{overflow:auto;display:flex;flex-direction:column;gap:6px}
.aifloors,.aimiss{font-size:11.5px;background:#eef4f6;border-radius:8px;padding:6px 8px}
.aimiss{background:#fdeee9;color:#8a2f1d}
.airow{display:flex;gap:8px;align-items:center;text-align:left;border:0;background:#fff;border-radius:8px;padding:5px;cursor:pointer}
.airow:hover{background:#eef6f2}
.airow img{width:64px;height:44px;object-fit:cover;border-radius:6px;flex:none;background:#dde}
.aitx{display:flex;flex-direction:column;min-width:0}
.aitx b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aitx i{font-style:normal;font-size:11px;color:#56707a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aimore{font-size:11px;color:#56707a;text-align:center;padding:4px}

.herering{animation:herepulse 1.6s ease-in-out infinite}
@keyframes herepulse{0%,100%{opacity:.95}50%{opacity:.35}}
.noterect{position:fixed;z-index:60;border:2.5px solid #F08C2E;background:rgba(240,140,46,.10);pointer-events:none;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.nbox{position:absolute;box-sizing:border-box;border:2.5px solid #F08C2E;background:rgba(240,140,46,.10);box-shadow:0 0 0 1px rgba(0,0,0,.35);border-radius:2px;cursor:pointer;z-index:6;display:none}
.nbox.done{border-color:#46AA6E;background:rgba(70,170,110,.10)}
.nbox.sel{background:rgba(240,140,46,.22)}
.nbox.pending{border-style:dashed;pointer-events:none}
body.noting .nbox{pointer-events:none}
.nib.pri.lbl{width:auto;min-width:0;padding:0 14px;gap:6px;display:inline-flex;align-items:center;font-weight:600;font-size:13px}
.fcard .nib.pri.lbl{width:auto;height:30px;border-radius:15px;padding:0 14px;gap:6px;display:inline-flex;align-items:center;font-weight:600;font-size:13px}
.nbox .nnum{position:absolute;left:-2px;top:-2px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;background:#F08C2E;color:#fff;font:700 11px/18px system-ui,sans-serif;text-align:center;border-radius:0 0 6px 0}
.nbox.done .nnum{background:#46AA6E}
.fcard .nib.flat.shl{width:auto;padding:0 8px;gap:4px;display:inline-flex;align-items:center;font-size:12px;font-weight:600}

.door-pin{position:relative;width:100%;height:100%}
.door-pin .nav-ring.door{border:4px solid #ffb02e;background:radial-gradient(ellipse at center,rgba(255,176,46,.85) 0,rgba(255,176,46,.5) 60%,rgba(255,176,46,.25) 100%);box-shadow:0 0 14px rgba(255,176,46,.9),0 0 4px rgba(0,0,0,.6);position:absolute;inset:0;margin:auto;height:100%}
.door-pin span{position:absolute;left:50%;top:-6px;transform:translate(-50%,-100%);white-space:nowrap;background:#ffb02e;color:#222;font:700 12px/1 system-ui,sans-serif;padding:4px 8px;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.5)}

.back{pointer-events:auto;flex:none;color:#fff;text-decoration:none;font-weight:700;font-size:12px;letter-spacing:1px;text-transform:uppercase;background:var(--teal);padding:8px 12px;margin-left:2px;white-space:nowrap;border-radius:0}
.back:hover{background:var(--coral)}
.back[hidden]{display:none!important}   /* '.top .back' sets display:flex later on, which used to show "‹ Projects" to share-link visitors too */
@media (max-width:640px){.back{padding:8px 9px;font-size:11px;letter-spacing:.5px}}

/* neat header corner: one square bar -> [back | logo | project name] */
.top{left:10px;top:10px;height:44px;padding:0;gap:0;border-radius:0;background:rgba(17,17,17,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);overflow:hidden;max-width:calc(100vw - 20px)}
.top .back{align-self:stretch;display:flex;align-items:center;margin:0;padding:0 14px;font-size:12px}
.top .brand{align-self:stretch;display:flex;align-items:center}
.top .logo{height:44px;width:auto;border-radius:0;padding:0 8px;background:#fff}
.top .proj{padding:0 16px;font-size:14px;font-weight:700;color:#fff;line-height:44px}
@media (max-width:640px){.top{height:38px}.top .logo{height:38px;padding:0 6px}.top .proj{font-size:12px;padding:0 10px;line-height:38px}.top .back{padding:0 10px;font-size:11px}}

.rangechips{position:relative;flex:0 0 auto}
.rangechips .rhead{border:1px solid #cfd8dc;border-radius:999px;padding:4px 12px;background:#fff;color:#0f1b1f;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:26px;white-space:nowrap}
.tabs.dd .tab{display:none}
.rmenu{position:fixed;z-index:200;min-width:190px;background:#fff;border:1px solid #cfd8dc;border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.18);padding:4px;display:flex;flex-direction:column}
.rmenu[hidden]{display:none}
.rmenu button{text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:7px;font:inherit;font-size:13px;color:#0f1b1f;cursor:pointer;white-space:nowrap}
.rmenu button[aria-pressed=true]{background:#0f1b1f;color:#fff}

/* compact header: one small rounded bar */
.top{height:34px;border-radius:10px;background:rgba(17,17,17,.62);box-shadow:0 2px 10px rgba(0,0,0,.25);max-width:min(70vw,460px)}
.top .back{font-size:11px;letter-spacing:.6px;padding:0 10px;background:var(--coral)}
.top .logo{height:34px;padding:0 6px}
.top .proj{font-size:13px;font-weight:600;padding:0 12px;line-height:34px}
@media (max-width:640px){.top{height:30px;max-width:calc(100vw - 20px)}.top .logo{height:30px;padding:0 5px}.top .proj{font-size:12px;padding:0 8px;line-height:30px}.top .back{padding:0 8px;font-size:10px}}
.top .proj{display:none}

.m3dbtn{top:188px!important}
.m3dbtn[hidden]{display:none!important}
/* measure magnifier: a sharp 4x close-up under the pointer with a fine crosshair */
.mlens{position:fixed;z-index:60;width:176px;height:176px;border-radius:50%;overflow:hidden;pointer-events:none;background:#111;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.55),0 6px 20px rgba(0,0,0,.45)}
.mlens[hidden]{display:none}
.mlens canvas{position:absolute;inset:0;width:100%;height:100%}
.mlens b{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:2;font:700 12px/1 system-ui,sans-serif;color:#fff;background:rgba(0,0,0,.62);padding:4px 7px;border-radius:6px;white-space:nowrap}
.mlens b[hidden]{display:none}

/* measure: how the length is worked out and how exact it is */
.macc{font-size:11.5px;line-height:1.35;color:var(--muted);margin:6px 0 2px}
.macc b{color:#9ff0b0}
.maccn{font-size:11.5px;line-height:1.4;background:rgba(255,196,77,.12);border:1px solid rgba(255,196,77,.35);border-radius:8px;padding:7px 9px;margin:8px 0 2px;color:#f3e6c4}
.maccn b{color:#ffd58a}
.maccn button{display:block;margin-top:6px;border:1px solid rgba(255,196,77,.5);background:transparent;color:#ffd58a;border-radius:6px;font-size:11px;font-weight:700;padding:3px 10px;cursor:pointer}
/* the notifications bell sat on top of the 3D button: it goes one place lower */
.allbtn.bellbtn.iconbtn{top:224px}
/* phones: the floor and date label under the Projects button (they overlapped), and a shorter measure panel so the photo stays usable */
@media (max-width:640px){.foot{top:48px}}
@media (max-width:820px){.mpanel{max-height:42dvh}}
.fsbtn[hidden]{display:none!important}
/* touch screens (phones, tablets): buttons big enough for a finger, in the same order; typing boxes at 16px so iPhones do not zoom in when you tap them */
@media (pointer:coarse){
 .fsbtn,.allbtn.iconbtn,.toolsbtn{width:38px!important;height:38px!important;right:10px!important}
 .allbtn.iconbtn{background-size:18px auto}
 .toolsbtn svg{width:18px;height:18px}
 .fsbtn{top:8px!important;font-size:17px!important;padding:0}
 #btnMeasure{top:52px!important}#btnNote{top:96px!important}
 .toolsbtn:not(.sharebtn):not(.m3dbtn){top:140px!important}.sharebtn{top:184px!important}.m3dbtn{top:228px!important}.allbtn.bellbtn.iconbtn{top:272px!important}
 .toolmenu{top:184px!important}.sharebox{top:228px!important}
 .side .expand{width:34px!important;height:34px!important}
 input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important}
}
@media (max-width:640px){.top .back{font-size:11px}}

/* v198: export menu sharp-photos switch; plan header never shows a scrollbar on small phones; finger-size plan buttons on touch screens */
.expsharp{display:flex;gap:8px;align-items:flex-start;padding:6px 12px 8px;font-size:12px;color:#5b6c70;cursor:pointer}
.expsharp input{margin:1px 0 0;flex:none;width:16px;height:16px;accent-color:#225D6D}
.tabs{scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}
@media (pointer:coarse){
 .tabs .plctl button{width:34px!important;height:34px!important;min-width:34px!important;font-size:16px!important}
 .tabs .plctl #zfit{padding:0 10px!important}
 #zin,#zout{width:36px!important;height:36px!important;font-size:18px!important}
}
/* a project or floor link opens on the whole floor plan (like a drawing set); picking a pin steps into that photo */
.side.big.cover{position:fixed;left:0!important;top:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;max-width:none;max-height:none;border-radius:0;border:0;z-index:45;padding:0;background:#fff;box-shadow:none}
.side.cover .planwrap{background:#fff}
.side.cover .zoomcol{right:18px;bottom:18px;gap:6px}
.side.cover .zoomcol button{width:36px;height:36px;border-radius:9px;background:#fff;color:#1d2a2e;font-size:18px;border:1px solid #e3e8e9;box-shadow:0 2px 8px rgba(16,40,48,.10)}
.side.cover .zoomcol button:hover{background:#f3f6f7}
.planhint{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:46;background:rgba(29,42,46,.78);color:#fff;font-size:12px;font-weight:600;line-height:1;padding:7px 12px;border-radius:999px;pointer-events:none;white-space:nowrap}
/* one slim white bar top left: back, logo, project name, floor */
body.plancover .top{z-index:60;top:14px;left:14px;height:40px;padding:0;gap:0;border-radius:12px;background:#fff;border:1px solid #e3e8e9;box-shadow:0 4px 18px rgba(16,40,48,.10);-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:auto;overflow:visible;max-width:calc(100vw - 28px)}
body.plancover .top .back{background:none;color:#33525C;padding:0 12px;font-size:11px;letter-spacing:.6px;border-right:1px solid #e3e8e9;border-radius:12px 0 0 12px}
body.plancover .top .back:hover{background:#f3f6f7}
body.plancover .top .brand{padding-left:8px}
body.plancover .top .logo{height:30px;width:auto;padding:0;background:none;border-radius:0}
body.plancover .top .proj{display:block!important;color:#1d2a2e;font-size:14px;font-weight:700;line-height:40px;padding:0 12px 0 8px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.plancover .top .tools{display:none}
body.plancover .top .tabs{position:static;display:flex;align-items:center;gap:4px;height:100%;padding:0 6px 0 8px;border:0;border-left:1px solid #e3e8e9;background:none;overflow:visible;cursor:default}
body.plancover .top .tabs .grip,body.plancover .top .tabs .plctl{display:none!important}
body.plancover .top .tabs>button,body.plancover .top .tabs .rhead{height:28px;border-radius:8px;border:0;background:#f2f5f6;color:#1d2a2e;font:inherit;font-size:13px;font-weight:600;padding:0 10px;cursor:pointer;box-shadow:none}
body.plancover .top .tabs>button:hover,body.plancover .top .tabs .rhead:hover{background:#e7edef}
body.plancover .allbtn,body.plancover .iconbtn,body.plancover .fsbtn,body.plancover .expmenu,body.plancover .foot,body.plancover .mapshow,body.plancover .datechips,body.plancover .toolsbtn:not(.sharebtn):not(.m3dbtn){display:none!important}   /* photo tools come back with the photo */
@media (max-width:640px){body.plancover .top{top:10px;left:10px;height:36px}body.plancover .top .proj{display:none!important}body.plancover .top .logo{height:26px}.planhint{bottom:12px;font-size:11px}}
/* while a project link loads: a white page with a quiet note, not the black photo stage */
html.plstart body::before{content:'';position:fixed;inset:0;background:#fff;z-index:200}
html.plstart body::after{content:'Loading the floor plan\2026';position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:201;color:#6b7b80;font:600 13px 'Red Hat Display',system-ui,sans-serif}
/* on the opening plan: Share (and 3D model, when there is one) as white buttons top right */
body.plancover .sharebtn,body.plancover .m3dbtn{position:fixed;top:14px!important;width:auto!important;height:40px!important;padding:0 14px!important;gap:8px;border-radius:12px;background:#fff;color:#1d2a2e;border:1px solid #e3e8e9;box-shadow:0 4px 18px rgba(16,40,48,.10);-webkit-backdrop-filter:none;backdrop-filter:none;font:inherit;font-size:13px;font-weight:700}
body.plancover .sharebtn{right:14px!important}
body.plancover .sharebtn span{display:inline!important}
body.plancover .m3dbtn{right:112px!important}
body.plancover .m3dbtn::after{content:'3D model'}
body.plancover .sharebtn:hover,body.plancover .m3dbtn:hover{background:#f3f6f7}
body.plancover .sharebox{top:62px!important;right:14px}
@media (max-width:640px){body.plancover .sharebtn,body.plancover .m3dbtn{top:10px!important;width:36px!important;height:36px!important;padding:0!important;justify-content:center}body.plancover .sharebtn span{display:none!important}body.plancover .m3dbtn::after{content:none}body.plancover .sharebtn{right:10px!important}body.plancover .m3dbtn{right:52px!important}body.plancover .top{max-width:calc(100vw - 108px)}body.plancover .top .back{padding:0 8px;font-size:10px}}

/* ---- fresh look for the photo view: slim white top bar, glass buttons, white plan card ---- */
.top{top:14px;left:14px;height:40px;padding:0;gap:0;border-radius:12px;background:#fff;border:1px solid #e3e8e9;box-shadow:0 4px 18px rgba(0,0,0,.18);-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:auto;overflow:hidden;max-width:calc(100vw - 80px)}
.top .back{background:none;color:#33525C;padding:0 12px;font-size:11px;letter-spacing:.6px;border-right:1px solid #e3e8e9}
.top .back:hover{background:#f3f6f7}
.top .brand{padding:0 10px 0 8px}
.top .logo{height:30px;width:auto;padding:0;background:none;border-radius:0}
.fsbtn,.toolsbtn,.allbtn.iconbtn{background-color:rgba(18,28,31,.55);border:1px solid rgba(255,255,255,.18);box-shadow:0 2px 10px rgba(0,0,0,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.fsbtn:hover,.toolsbtn:hover,.allbtn.iconbtn:hover{background-color:rgba(18,28,31,.78)}
.toolsbtn.open,.toolsbtn.on,.allbtn.iconbtn.on{background-color:rgba(209,96,75,.9)}
.side{--panel:#fff;--line:#e3e8e9;--text:#1d2a2e;--muted:#6b7b80;background:#fff;border:1px solid #e3e8e9;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.28);color:#1d2a2e}
.side .tabs{background:#fff;border-bottom:1px solid #edf1f2}
.side .tabs>button,.side .tabs .rhead{height:28px;border-radius:8px;border:0;background:#f2f5f6;color:#1d2a2e;font-weight:600;font-size:13px;padding:0 10px}
.side .tabs>button[aria-selected=true]{background:#225D6D;color:#fff}
.side .planwrap{background:#fff}
.side .tabs .plctl{background:#fff}
.side .tabs .plctl button{background:#fff;color:#1d2a2e;border:1px solid #e3e8e9;border-radius:8px}
.side .tabs .plctl button:hover{background:#f3f6f7}
.zoomcol button{background:#fff;color:#1d2a2e;border:1px solid #e3e8e9;box-shadow:0 2px 8px rgba(16,40,48,.12)}
.zoomcol button:hover{background:#f3f6f7}
.mapshow{background:#fff;color:#1d2a2e;border:1px solid #e3e8e9;box-shadow:0 4px 18px rgba(0,0,0,.2);font-weight:700}
/* download menu: compact rows with an icon, a title and one grey line */
.expmenu{width:300px;padding:6px;border-radius:14px;box-shadow:0 12px 32px rgba(10,30,36,.22),0 0 0 1px rgba(10,30,36,.06)}
.exphead{font-size:13px;font-weight:600;padding:6px 10px 2px;color:#1d2a2e}
.expsec{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#7b8b8f;padding:10px 10px 4px}
.expmenu .expitem{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:10px}
.expico{flex:none;width:32px;height:32px;border-radius:9px;background:#e9f1f2;color:#225D6D;display:grid;place-items:center}
.expico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.exptxt{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.exptxt b{font-size:13.5px;font-weight:600;color:#1d2a2e}
.exptxt small{font-size:11.5px;color:#6b7b7f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expmenu .expsharp{position:relative;display:flex;align-items:center;gap:11px;margin:2px 0 0;padding:8px 10px 8px 53px;cursor:pointer;border-radius:10px}
.expmenu .expsharp:hover{background:#f3f7f7}
.expswin{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.expsw{flex:none;width:34px;height:20px;border-radius:10px;background:#c9d3d5;position:relative;transition:background .15s}
.expsw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
.expswin:checked+.expsw{background:#225D6D}.expswin:checked+.expsw::after{transform:translateX(14px)}
.expswin:focus-visible+.expsw{outline:2px solid #225D6D;outline-offset:2px}
.expmenu .expstat{padding:6px 10px 4px}
@media (max-width:820px){.expmenu{width:auto}}
