/* Neighborhood: the look it shares with Splat Studio (css/splat.css tokens) over an aerial map, then over the 3D street.
   The one loud thing is the area box: pale blue corner marks that lock on, and a laser line that sweeps it
   while the scan comes down. Everything else stays quiet glass. */

body.nb-mapmode { background: #07080b; }

/* ---------------------------------------------------------------- the map */

.nb-map { position: fixed; inset: 0; overflow: hidden; background: #0a0b0f; touch-action: none; cursor: grab; outline: none; transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); }
.nb-map.grab { cursor: grabbing; }
.mp-pane, .mp-sharp { position: absolute; left: 0; top: 0; }
.mp-tile, .mp-sharp { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none;
  opacity: 0; transition: opacity .35s linear; image-rendering: auto; }
.mp-tile.in, .mp-sharp.in { opacity: 1; }
.mp-sharp { z-index: 40; transition: opacity .5s linear; }
.nb-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgb(3 3 6 / .45) 100%); z-index: 50; }
body.nb-viewmode .nb-map { opacity: 0; pointer-events: none; }

.nb-gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; background: #000; opacity: 0; transition: opacity 1.1s var(--ease); }
.nb-gl.in { opacity: 1; }
body.walking .nb-gl { cursor: crosshair; }

/* ---------------------------------------------------------------- the area box */

.nb-frame { position: fixed; inset: 0; pointer-events: none; z-index: 3; transition: opacity .6s var(--ease); }
body.nb-viewmode .nb-frame { opacity: 0; }
.nb-box { position: absolute; left: 50%; top: 50%; width: var(--bw, 300px); height: var(--bh, 300px); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 200vmax rgb(3 3 6 / .5), inset 0 0 0 1px rgb(190 210 255 / .32);
  transition: width .5s var(--ease), height .5s var(--ease), box-shadow .6s var(--ease), opacity .4s var(--ease); }
.nb-frame.tiny .nb-box { opacity: 0; }
.nb-frame.tiny .nb-veil { opacity: 0; }
.nb-box i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--act); filter: drop-shadow(0 0 6px rgb(150 180 255 / .7)); transition: width .7s var(--ease), height .7s var(--ease), inset .7s var(--ease); }
.nb-box .tl { left: -2px; top: -2px; border-left-width: 2px; border-top-width: 2px; }
.nb-box .tr { right: -2px; top: -2px; border-right-width: 2px; border-top-width: 2px; }
.nb-box .bl { left: -2px; bottom: -2px; border-left-width: 2px; border-bottom-width: 2px; }
.nb-box .br { right: -2px; bottom: -2px; border-right-width: 2px; border-bottom-width: 2px; }
/* locked on: the marks close in a little and hold */
.nb-frame.lock .nb-box { box-shadow: 0 0 0 200vmax rgb(3 3 6 / .66), inset 0 0 0 1px rgb(190 210 255 / .55); }
.nb-frame.lock .nb-box i { width: 16px; height: 16px; }
.nb-frame.lock .nb-box .tl { left: 6px; top: 6px; } .nb-frame.lock .nb-box .tr { right: 6px; top: 6px; }
.nb-frame.lock .nb-box .bl { left: 6px; bottom: 6px; } .nb-frame.lock .nb-box .br { right: 6px; bottom: 6px; }
/* the laser line: sweeps the box while the scan downloads */
.nb-box::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36%; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgb(150 180 255 / .08) 70%, rgb(205 222 255 / .55) 99%, rgb(255 255 255 / .9) 100%);
  border-bottom: 1px solid rgb(225 235 255 / .9); box-shadow: 0 8px 18px -6px rgb(150 180 255 / .6); }
.nb-frame.scan .nb-box::after { animation: nb-sweep 2.6s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes nb-sweep { 0% { transform: translateY(-100%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(178%); opacity: 0; } }
.nb-dim { position: absolute; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--act-ink); white-space: nowrap; text-shadow: 0 0 6px rgb(0 0 0 / .95), 0 0 2px #000; font-variant-numeric: tabular-nums; }
.nb-dimx { left: 50%; top: -24px; transform: translateX(-50%); }
.nb-dimz { right: -12px; top: 50%; transform: translate(100%, -50%); }
.nb-north { position: absolute; left: 50%; bottom: calc(100% + 40px); transform: translateX(-50%); font: 400 10px/1 var(--display); letter-spacing: .1em; color: var(--ink-2); text-shadow: 0 0 6px #000; }
.nb-north::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); width: 0; height: 0; margin-left: -4px; border: 4px solid transparent; border-bottom: 6px solid var(--ink-2); border-top: 0; }
.nb-zoomhint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: 400 12px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 14px rgb(0 0 0 / .9), 0 0 3px #000; opacity: 0; transition: opacity .5s var(--ease); text-align: center; }
.nb-frame.tiny .nb-zoomhint { opacity: 1; }
/* a region: the box's tiles, built one after another */
.nb-tiles { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background-image: linear-gradient(to right, rgb(190 210 255 / .42) 1px, transparent 1px), linear-gradient(to bottom, rgb(190 210 255 / .42) 1px, transparent 1px);
  background-size: calc(100% / var(--n, 1)) calc(100% / var(--n, 1)); background-position: -1px -1px; }
.nb-box.tiled .nb-tiles { opacity: 1; }
/* an outline drawn on the map: the area that's built in full */
.nb-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nb-outline polygon { fill: rgb(150 180 255 / .1); stroke: var(--act); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgb(150 180 255 / .6)); }
.nb-outline polyline { fill: none; stroke: var(--act); stroke-width: 2; stroke-dasharray: 6 5; }
.nb-outline circle { fill: #fff; stroke: var(--act); stroke-width: 2; }
.nb-outline circle.first { r: 7px; }
body.nb-viewmode .nb-outline { display: none; }
.nb-outlinehint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgb(8 10 14 / .78);
  font: 400 11px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.nb-row #size button { padding: 0 8px 0 calc(8px + .12em); }

/* ---------------------------------------------------------------- choose the area */

.nb-head { z-index: 8; }
.nb-pick { position: fixed; z-index: 10; left: calc(var(--m) + env(safe-area-inset-left)); bottom: calc(var(--m) * .8 + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - var(--m) * 2));
  max-height: calc(100svh - 150px); overflow: auto; padding: 16px 18px 16px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgb(0 0 0 / .45); }
.nb-search { position: relative; display: flex; }
.nb-search input { flex: 1; min-width: 0; min-height: 42px; padding: 0 48px 0 14px; font: 400 13px var(--mono); color: var(--ink); background: rgb(238 236 230 / .05); border: 1px solid var(--line-2); border-radius: var(--r); outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); -webkit-appearance: none; appearance: none; }
.nb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nb-search input::placeholder { color: var(--ink-3); }
.nb-search input:focus { border-color: var(--act-line); box-shadow: 0 0 0 3px rgb(150 180 255 / .12); }
.nb-loc { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 3px; color: var(--ink-2); transition: color .3s var(--ease), background .3s var(--ease); }
.nb-loc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nb-loc:hover { color: #fff; background: var(--fill-2); }
.nb-loc.busy svg { animation: nb-spin 1.2s linear infinite; }
@keyframes nb-spin { to { transform: rotate(360deg); } }
.nb-results { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); max-height: 220px; overflow: auto; }
.nb-results li button { display: grid; width: 100%; gap: 1px; padding: 9px 8px 8px; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .25s var(--ease); }
.nb-results li button:hover, .nb-results li button:focus-visible { background: var(--fill-2); outline: none; }
.nb-results b { font-weight: 400; font-size: 13px; color: var(--ink); }
.nb-results small { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-results .none { padding: 10px 8px; font-size: 12px; color: var(--ink-3); }
.nb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.nb-lbl { font-size: 12.5px; color: var(--ink-2); }
.nb-row .ss-seg button { padding: 0 10px 0 calc(10px + .12em); letter-spacing: .12em; }
.nb-src { margin: 14px 0 0; border-top: 1px solid var(--line); }
.nb-src > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0 7px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.nb-src dt { display: flex; align-items: center; gap: 10px; color: var(--ink-2); white-space: nowrap; }
.nb-src dt::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-3); transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.nb-src dd { margin: 0; min-width: 0; text-align: right; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-src .ok dt::before { background: var(--act); border-color: var(--act); box-shadow: 0 0 8px var(--act-glow); }
.nb-src .ok dd { color: var(--ink); }
.nb-src .no dt::before { border-color: var(--hot-line); }
.nb-src .no dd { color: rgb(255 190 165); }
.nb-more { margin-top: 10px; }
.nb-more summary { font-size: 12.5px; }
.nb-more .ss-meta { margin: 4px 0 10px; }
.nb-files { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nb-build { width: 100%; margin-top: 16px; }
.nb-fine { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.nb-prog .ss-h { margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-prog .ss-rows > div.warn dd { color: rgb(255 190 165); }

/* ---------------------------------------------------------------- the 3D view */

#soundBtn[aria-pressed="false"] { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-3); }

.nb-bar .nb-sky button { display: inline-flex; align-items: center; gap: 9px; }
.nb-sun { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun, #ffe7b0); box-shadow: 0 0 8px var(--sun, #ffe7b0); transition: background .6s var(--ease), box-shadow .6s var(--ease); }
.nb-sun.moon { background: transparent; box-shadow: inset 3px -2px 0 0 #d9e2ff; }
#timeTxt { font-variant-numeric: tabular-nums; min-width: 5.4em; text-align: left; }
.nb-panel { left: 50%; right: auto; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); }
.nb-panel h3 { margin-bottom: 14px; }
.nb-dayrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nb-date { width: auto; min-height: 34px; color-scheme: dark; }
.nb-clock { font: 400 15px/1 var(--display); letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.nb-day { position: relative; height: 30px; }
.nb-day canvas { position: absolute; left: 7px; right: 7px; top: 7px; height: 16px; width: calc(100% - 14px); border-radius: 3px; opacity: .95; }
.nb-day input[type="range"] { position: relative; height: 30px; }
.nb-day input[type="range"]::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.nb-day input[type="range"]::-moz-range-track { height: 30px; background: transparent; }
.nb-day input[type="range"]::-webkit-slider-thumb { width: 4px; height: 26px; margin-top: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 0 10px rgb(255 255 255 / .6); }
.nb-day input[type="range"]::-moz-range-thumb { width: 4px; height: 26px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 0 10px rgb(255 255 255 / .6); }
.nb-ticks { display: flex; justify-content: space-between; margin: 3px 4px 0; font-size: 10.5px; color: var(--ink-3); }
.nb-runrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.nb-runrow .ss-seg button { min-height: 28px; padding: 0 9px 0 calc(9px + .1em); font-size: 10px; letter-spacing: .1em; }
.nb-tz { margin: 12px 0 0 !important; font-size: 11.5px !important; color: var(--ink-3) !important; }
.nb-panel .ss-items { max-height: 330px; }
.ss-items button small { font-size: 11.5px; color: var(--ink-3); }

.nb-walkhint { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 11; margin: 0; padding: 9px 16px 8px; border-radius: 999px;
  background: rgb(6 6 11 / .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap;
  pointer-events: none; transition: opacity .6s var(--ease); }
.nb-walkhint kbd { margin-bottom: 0; font-size: 10px; min-width: 20px; padding: 1px 5px 0; }
.nb-walkhint.fade { opacity: 0; }
.nb-crosshair { position: fixed; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgb(255 255 255 / .7); box-shadow: 0 0 0 1px rgb(0 0 0 / .4); z-index: 6; pointer-events: none; }
.nb-stick { position: fixed; z-index: 11; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1px solid rgb(238 236 230 / .28); background: rgb(6 6 11 / .25); pointer-events: none; }
.nb-stick::after { content: ''; position: absolute; inset: -32px; border-radius: 50%; border: 1px dashed rgb(238 236 230 / .14); }
.nb-stick.run::after { border-color: var(--act-line); }
.nb-stick.run i { background: rgb(205 222 255 / .5); box-shadow: 0 0 22px var(--act-glow); }
.nb-stick i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgb(205 222 255 / .28); border: 1px solid var(--act-line); box-shadow: 0 0 14px var(--act-glow); }

.nb-vids { list-style: none; margin: 4px 0 0; padding: 0; }
.nb-vids:empty { display: none; }
.nb-vids li { position: relative; display: grid; gap: 2px; padding: 9px 0 8px; border-top: 1px solid var(--line); }
.nb-vids li:last-child { border-bottom: 1px solid var(--line); }
.nb-vids b { font-weight: 400; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-vids small { font-size: 11.5px; color: var(--ink-3); }
.nb-vids li.ok small { color: var(--act-ink); }
.nb-vids li.bad small { color: rgb(255 190 165); }
.nb-vids i { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--act); box-shadow: 0 0 8px var(--act-glow); transition: width .3s linear; }
.nb-vids li.ok i, .nb-vids li.bad i { opacity: 0; }
/* the minimap: under the corner menu (its top set from the menu's height, app.js placeMini) */
.nb-mini { position: fixed; z-index: 8; right: calc(var(--m) + env(safe-area-inset-right)); top: calc(var(--m) + 34px + env(safe-area-inset-top)); width: 168px; height: 168px; border-radius: 50%; cursor: pointer;
  box-shadow: 0 6px 26px rgb(0 0 0 / .45); opacity: 0; transition: opacity .6s var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.nb-mini.in { opacity: 1; }
.nb-mini:focus-visible { outline: 2px solid var(--act-line); outline-offset: 3px; }
body.nb-placing .nb-mini { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 700px) { .nb-mini { width: 112px; height: 112px; right: calc(12px + env(safe-area-inset-right)); } }

/* placing a video by hand: the page's own menus go away, the map is the screen; one panel at the foot, which can be
   folded down to a small bar */
body.nb-placing .nb-head, body.nb-placing .ss-corner, body.nb-placing #bar, body.nb-placing .nb-walkhint, body.nb-placing .nb-stick,
body.nb-placing .ss-panel:not(.nb-placebar), body.nb-placing .ss-menu { opacity: 0 !important; pointer-events: none !important; transition: opacity .35s var(--ease); }
.nb-placebar { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(640px, calc(100vw - 24px)); max-height: calc(100svh - 40px); padding: 12px 16px 14px; }
.nb-placebar .pl-top { display: flex; gap: 14px; align-items: flex-start; }
.nb-placebar .pl-text { flex: 1; min-width: 0; }
.nb-placebar .pl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.nb-placebar .pl-head b { flex: 1; min-width: 0; font: 400 11px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-placebar .pl-head button, .nb-placebar .pl-mini button:not(.go) { min-height: 26px; padding: 0 10px 0 calc(10px + .12em); font-size: 10px; letter-spacing: .12em; }
.nb-placebar .pl-frame { flex: none; margin: 0; width: calc(72px * min(var(--ar), 1.78)); }
.nb-placebar .pl-frame img { display: block; width: 100%; aspect-ratio: var(--ar); max-height: 128px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: #000; }
.nb-placebar .pl-frame figcaption { margin-top: 4px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-placebar .pl-note { margin: 0; font-size: 12px; line-height: 1.5; }
.nb-placebar .pl-time { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 10px; }
.nb-placebar .pl-play { width: 32px; min-height: 32px; padding: 0; font-size: 11px; letter-spacing: 0; }
.nb-placebar .pl-time output { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
/* the timeline wears the same colours as the walk and the dots: start cool, end warm */
.nb-placebar #plScrub { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--time); outline-offset: 6px; }
.nb-placebar #plScrub::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: transparent; }
.nb-placebar #plScrub::-moz-range-track { height: 6px; border-radius: 3px; background: var(--time); }
.nb-placebar #plScrub::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5px; background: #fff; border: 2px solid rgb(6 6 11); box-shadow: 0 0 10px rgb(255 255 255 / .5); }
.nb-placebar #plScrub::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 2px solid rgb(6 6 11); }
.nb-placebar .pl-keys { margin: 10px 0 0; font-size: 11px; color: var(--ink-3); }
.nb-placebar .btns { margin-top: 12px; }
.nb-placebar .btns .pl-help { width: 32px; padding: 0; letter-spacing: 0; }
.nb-placebar .btns { align-items: center; }
.nb-placebar .pl-gap { flex: 1; }
.nb-placebar .pl-mini { display: none; align-items: center; gap: 8px; }
.nb-placebar .pl-mini span { flex: 1; min-width: 0; font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-placebar .pl-mini button.go { min-height: 30px; padding: 0 12px 0 calc(12px + .12em); font-size: 10.5px; letter-spacing: .12em; color: #fff; border-color: var(--act-line); background: var(--act-fill); }
.nb-placebar.min { width: min(420px, calc(100vw - 24px)); padding: 8px 10px 8px 16px; }
.nb-placebar.min > :not(.pl-mini) { display: none; }
.nb-placebar.min .pl-mini { display: flex; }
.nb-vids li button { justify-self: start; margin-top: 6px; min-height: 28px; padding: 0 10px 0 calc(10px + .12em); border: 1px solid var(--act-line); border-radius: var(--r); background: var(--act-fill); color: #fff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nb-vids li button:hover { border-color: var(--act); }
.nb-h2 { margin: 22px 0 8px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.nb-mly { display: flex; gap: 8px; }
.nb-mly .ss-input { flex: 1; min-width: 0; width: auto; min-height: 32px; font-size: 12px; }
.nb-credh { margin-top: 26px; }
.nb-credits { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.nb-credits li { padding: 7px 0 6px; border-top: 1px solid var(--line); }
.nb-credits li:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 700px) {
  .nb-head .ss-title { font-size: 14px; letter-spacing: .12em; max-width: 46vw; }
  body.nb-mapmode .nb-head .ss-sub { display: none; }
  .nb-head .ss-sub { font-size: 11px; max-width: 62vw; }
  .nb-panel p { font-size: 12px; }
  .nb-pick { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 12px 14px 12px; max-height: 58svh; }
  .nb-row .ss-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nb-row .ss-seg button { padding: 0 4px; letter-spacing: .08em; }
  .nb-fine { display: none; }
  .nb-dimz { display: none; }
  .nb-panel { left: 10px; right: 10px; transform: none; width: auto; }
  .nb-bar .nb-file { order: -2; }
  .nb-runrow { flex-direction: column; align-items: stretch; }
  .nb-walkhint { bottom: calc(118px + env(safe-area-inset-bottom)); white-space: normal; text-align: center; width: max-content; max-width: calc(100vw - 30px); }
}
@media (prefers-reduced-motion: reduce) {
  .nb-frame.scan .nb-box::after { animation-duration: 6s; }
  .nb-loc.busy svg { animation: none; }
}

/* notes sit below the title and its date / weather line (taller here than on Splat Studio's screens) */
#toast { top: calc(var(--m) * .8 + env(safe-area-inset-top) + 96px); width: max-content; }
/* phones: the corner links (five of them in the 3D view) take a row of their own across the top, and the title and
   its date / weather line sit below them at full width */
@media (max-width: 700px) {
  .ss-corner { left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); top: calc(6px + env(safe-area-inset-top)); justify-content: flex-end; flex-wrap: wrap; gap: 4px 14px; }
  .ss-corner > * { letter-spacing: .12em; }
  .nb-head { left: calc(14px + env(safe-area-inset-left)); top: calc(46px + env(safe-area-inset-top)); max-width: calc(100vw - 28px); }
  .nb-head .ss-title { max-width: none; }
  .nb-head .ss-sub { max-width: none; margin-top: 6px; }
  #toast { top: calc(env(safe-area-inset-top) + 104px); }
}
@media (max-width: 370px) { .ss-corner { gap: 4px 10px; } .ss-corner > * { letter-spacing: .08em; } }
/* a note with a button (arriving at night: See it by day) */
.ss-toast.act { pointer-events: auto; display: flex; align-items: center; gap: 12px; text-align: left; }
.ss-toast.act .ss-btn { flex: none; border-color: var(--act-line); color: var(--act-ink); }
@media (max-width: 600px) {
  .nb-placebar { padding: 10px 12px 12px; }
  .nb-placebar .pl-frame { width: calc(56px * min(var(--ar), 1.78)); }
  .nb-placebar .pl-into { display: none; }
  .nb-placebar .pl-note { font-size: 11px; line-height: 1.45; }
  .nb-placebar .pl-gap { display: none; }
  .nb-placebar .btns { gap: 6px; }
  .nb-placebar .btns button { padding: 0 9px 0 calc(9px + .1em); letter-spacing: .1em; }
}

/* ---------------------------------------------------------------- downtowns, several at once, public videos */

.nb-towns { margin-top: 14px; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nb-chips button { min-height: 30px; padding: 0 11px 0 calc(11px + .1em); border: 1px solid var(--line-2); border-radius: 999px; background: var(--fill); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.nb-chips button:hover { border-color: var(--line-3); background: var(--fill-2); color: var(--ink); }
.nb-chips button[aria-pressed="true"] { border-color: var(--act-line); background: var(--act-fill); color: var(--act-ink); }
.nb-more { display: block; margin: 10px auto 0; padding: 4px 6px; font-size: 11.5px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.nb-more:hover { color: var(--ink); }
.nb-queue { width: min(520px, calc(100vw - 24px)); }
.nb-qintro { margin: -10px 0 16px; }
.nb-qlist { list-style: none; margin: 0; padding: 0; }
.nb-qlist:empty::before { content: "Nothing yet: add the box on the map, or the downtowns."; display: block; padding: 12px 0; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nb-qlist li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 0 8px; border-top: 1px solid var(--line); }
.nb-qlist li:last-child { border-bottom: 1px solid var(--line); }
.nb-qlist b { font-weight: 400; font-size: 12.5px; color: var(--ink); }
.nb-qlist small { display: block; font-size: 11.5px; color: var(--ink-3); }
.nb-qlist li.ok small { color: var(--act-ink); }
.nb-qlist li.bad small { color: rgb(255 190 165); }
.nb-qlist li.on b { color: var(--act-ink); }
.nb-qlist button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nb-qlist button:hover { color: var(--hot); border-color: var(--hot-line); }
.nb-qadd { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.nb-qopts { display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.nb-qopts label { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.nb-qopts input[type="checkbox"] { margin-top: 2px; accent-color: rgb(170 195 255); }
.nb-qopts select { background: var(--fill); color: var(--ink); border: 1px solid var(--line-2); border-radius: 4px; font: inherit; }
.nb-qstatus { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px);
  padding: 7px 8px 7px 16px; border-radius: 999px; background: rgb(6 6 11 / .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--act-line); font-size: 12px; color: var(--ink-2); }
.nb-qstatus span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.nb-viewmode .nb-qstatus { bottom: calc(76px + env(safe-area-inset-bottom)); }
.nb-pub li { grid-template-columns: 22px 64px 1fr; align-items: center; column-gap: 10px; }
.nb-pub li input { margin: 0; accent-color: rgb(170 195 255); }
.nb-pub li img, .nb-pub li .ph { width: 64px; height: 36px; object-fit: cover; border-radius: 3px; background: var(--fill-2); }
.nb-pub li div { min-width: 0; display: grid; gap: 2px; }
.nb-pub li a { color: inherit; }
@media (max-width: 700px) {
  /* (the downtown picks in one row that scrolls sideways: the map keeps its room) */
  .nb-towns { display: flex; align-items: center; gap: 10px; }
  .nb-towns .nb-lbl { flex: none; }
  .nb-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 2px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nb-chips::-webkit-scrollbar { display: none; }
  .nb-chips button { flex: none; }
  .nb-more { margin-top: 6px; }
}

/* Home Scan (js/hood/ui/homescan.js): a rectangle round a house and its yard, for a Bug Mode map */
body.nb-scanning #bar, body.nb-scanning #mini, body.nb-scanning .nb-panel, body.nb-scanning .nb-walkhint, body.nb-scanning .ss-corner { display: none !important; }
.nb-scanbtn { color: #0c1606 !important; background: linear-gradient(135deg, #9be15d, #f2b630) !important; border-color: #9be15d !important; font-weight: 600; }
.hs { position: fixed; inset: 0; z-index: 70; pointer-events: none; font: 400 12.5px "Geist Mono", monospace; color: #f4f0dc; }
.hs canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; cursor: crosshair; }
.hs-panel { position: absolute; left: 50%; bottom: 1.4em; transform: translateX(-50%); width: min(40em, calc(100vw - 2em)); padding: 1em 1.2em; border-radius: 12px; background: rgb(7 11 5 / .9); box-shadow: 0 1em 3em rgb(0 0 0 / .5), inset 0 0 0 1px rgb(155 225 93 / .35); pointer-events: auto; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hs-panel h3 { margin: 0 0 .4em; font: 400 14px "Krona One", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9be15d; }
.hs-panel p { margin: .3em 0 .7em; line-height: 1.5; color: rgb(244 240 220 / .8); }
.hs-row { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.hs-row input[type="text"] { flex: 1; min-width: 10em; padding: .5em .7em; border-radius: 7px; border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .06); color: #f4f0dc; font: inherit; }
.hs-row button { padding: .55em 1em; border: 0; border-radius: 7px; background: rgb(255 255 255 / .1); color: #f4f0dc; font: inherit; cursor: pointer; }
.hs-row button.go { background: #9be15d; color: #0c1606; }
.hs-row button:disabled { opacity: .4; cursor: default; }
.hs-size { margin-left: auto; color: #f2b630; }

/* a stitched area (several tiles as one map): footage and street photos paint a single tile's houses, not these */
/* the export menu says what a stitched map's export is (parts), and offers the lighter kit only there */
#exportMenu .whole { display: none; }
.nb-stitched #exportMenu button.whole { display: flex; }
.nb-stitched #exportMenu span.whole { display: inline; }
.nb-stitched #exportMenu span.one { display: none; }
.nb-stitched #photoPanel > * { display: none; }
.nb-stitched #photoPanel::before { content: 'Footage and street photos paint the houses of one tile. This is several tiles stitched into one map: paint on the tiles themselves (they are still in Saved).'; display: block; font-size: 12px; line-height: 1.5; color: var(--ink-2, #c9c6bd); }
/* Saved: a big area's row (its tiles as a little grid), to stitch into one map */
.ss-entry.nb-area { border-top-color: var(--line-3, rgb(238 236 230 / .3)); }
.ss-entry .nb-area-ph { display: grid; gap: 2px; padding: 8px; box-sizing: border-box; }
.ss-entry .nb-area-ph i { display: block; min-height: 4px; border-radius: 1px; background: currentColor; opacity: .5; }
.ss-entry.nb-area .act button { white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }

/* a big area's card: tiles built without their streets, photo or scan (region.js tileHealth) */
.ss-entry .nb-area-ph i.weak { background: #ff8a5c; opacity: 1; }
.ss-entry .nb-weak-note { display: block; margin-top: 4px; color: #ffb193; white-space: normal; line-height: 1.35; }
.ss-entry.nb-weak .act { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ss-entry.nb-weak .act button { max-width: none; white-space: normal; text-align: right; }
