:root {
  --bg: #060a0b; --panel: #0c1214; --panel-2: #111a1c; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --text: #e9f0ec; --dim: #8b9a97; --faint: #56635f; --lime: #c6f24e; --lime-ink: #10160a; --amber: #ffb454; --red: #ff6b5e;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace; --sans: 'Space Grotesk', system-ui, 'Segoe UI', sans-serif;
  --r: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--lime); color: var(--lime-ink); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #1f2a2c; border-radius: 8px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .22em; font-size: 13px; white-space: nowrap; }
.brand b { color: var(--lime); font-weight: 700; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--lime); position: relative; flex: none;
  -webkit-mask: none; clip-path: none; }
.brand .mark::after { content: ''; position: absolute; inset: 0; background: var(--bg); clip-path: polygon(0 100%, 0 78%, 34% 34%, 54% 58%, 68% 42%, 100% 80%, 100% 100%); border-radius: 0 0 8px 8px; }
.brand.big { font-size: 15px; } .brand.big .mark { width: 34px; height: 34px; border-radius: 10px; }

.btn { height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line-2); background: var(--panel-2); transition: .15s; white-space: nowrap; }
.btn:hover { border-color: rgba(255,255,255,.3); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 0 0 4px rgba(198,242,78,.14); }
.btn.ghost { background: rgba(6,10,11,.6); backdrop-filter: blur(10px); }
.btn.tiny { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.wide { width: 100%; height: 44px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--dim); border: 1px solid transparent; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.pill { font: 500 12px var(--mono); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--lime); }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; overflow: hidden;
  background: radial-gradient(900px 600px at 78% 8%, rgba(198,242,78,.10), transparent 60%), radial-gradient(700px 520px at 8% 92%, rgba(255,180,84,.08), transparent 60%), var(--bg); }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.contours path { fill: none; stroke: rgba(198,242,78,.2); stroke-width: 1; }
.contours path:nth-child(5n) { stroke: rgba(198,242,78,.42); stroke-width: 1.4; }
.contours g { animation: drift 40s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes drift { to { transform: scale(1.12) rotate(2deg); } }
.gate-card { position: relative; width: min(520px, 100%); padding: 36px; border-radius: 22px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(14,21,23,.92), rgba(8,12,13,.94)); backdrop-filter: blur(18px); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.gate-card h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.02em; margin: 26px 0 12px; }
.lede { color: var(--dim); font-size: 15px; margin: 0 0 26px; }
.gate label { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #070b0c; font-family: var(--mono); outline: 0; }
.field-row input:focus { border-color: var(--lime); }
.field-row .btn { height: 46px; padding: 0 22px; }
.hint { color: var(--faint); font-size: 12.5px; margin: 10px 0 0; }
.error { color: var(--red); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.signin { display: grid; place-items: center; text-decoration: none; height: 50px; font-size: 15.5px; }
.alt { margin-top: 14px; } .alt summary { cursor: pointer; color: var(--dim); font-size: 12.5px; list-style: none; } .alt summary:hover { color: var(--text); } .alt form { margin-top: 12px; }
.gate-stats { display: flex; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; flex-wrap: wrap; }
.gate-stats b { color: var(--lime); font-family: var(--mono); margin-right: 4px; }

/* ---------- shell ---------- */
.app { height: 100%; display: grid; grid-template-rows: 56px 1fr; }
.top { display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #070b0c; color: var(--dim); }
.search:focus-within { border-color: var(--lime); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); min-width: 0; }
.results { position: absolute; top: 42px; left: 0; right: 0; z-index: 40; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.results button { display: block; width: 100%; text-align: left; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line); font-size: 13px; }
.results button:hover { background: rgba(198,242,78,.08); } .results small { display: block; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.views { display: flex; padding: 3px; border-radius: 10px; background: #070b0c; border: 1px solid var(--line); }
.views button { padding: 6px 16px; border-radius: 7px; color: var(--dim); font-weight: 600; font-size: 13px; }
.views button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.account { height: 34px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.account i { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font: 700 11px var(--sans); font-style: normal; }
.account:hover { color: var(--text); border-color: var(--line-2); }

.scout { display: grid; grid-template-columns: 232px minmax(0,1fr) var(--side, 392px); min-height: 0; }
.rail { border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.place-list { overflow: auto; padding: 0 8px 12px; display: grid; gap: 4px; align-content: start; }
.place { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 7px; border-radius: 10px; text-align: left; border: 1px solid transparent; }
.place:hover { background: rgba(255,255,255,.04); } .place.on { background: rgba(198,242,78,.08); border-color: rgba(198,242,78,.35); }
.place .thumb { width: 44px; height: 44px; border-radius: 8px; background: #152022 center/cover; display: grid; place-items: center; color: var(--faint); }
.place b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place small { color: var(--faint); font: 11px var(--mono); }
.empty { color: var(--faint); font-size: 13px; padding: 18px 12px; text-align: center; line-height: 1.5; }

/* ---------- stage ---------- */
.stage { position: relative; min-width: 0; background: #000; overflow: hidden; }
.map { position: absolute; inset: 0; }
.cesium-viewer-bottom { opacity: .55; font-size: 10px; } .cesium-widget-credits { font-size: 10px !important; }
.frame { position: absolute; pointer-events: none; box-shadow: 0 0 0 4000px rgba(3,6,7,.52); border: 1px solid rgba(255,255,255,.5); border-radius: 2px; transition: all .25s ease; }
.frame i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--lime); }
.frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; } .frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; } .frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.frame span { position: absolute; left: 8px; top: 8px; font: 500 10px var(--mono); letter-spacing: .14em; color: var(--lime); text-shadow: 0 1px 3px #000; }
.frame.flash { animation: flash .35s ease; } @keyframes flash { 0% { background: rgba(255,255,255,.75); } 100% { background: transparent; } }
.hud { position: absolute; left: 14px; top: 62px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; backdrop-filter: blur(10px); }
.hud div { display: flex; justify-content: space-between; gap: 18px; padding: 6px 10px; background: rgba(6,10,11,.72); min-width: 190px; }
.hud label { font: 500 10px var(--mono); letter-spacing: .12em; color: var(--faint); align-self: center; }
.hud b { font: 500 12px var(--mono); color: var(--text); } .hud div:nth-child(3) b, .hud div:nth-child(4) b { color: var(--amber); }
.stage-top { position: absolute; z-index: 10; left: 14px; right: 14px; top: 12px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.seg { pointer-events: auto; display: flex; padding: 3px; border-radius: 10px; background: rgba(6,10,11,.72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.seg button { padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--dim); }
.seg button.on { background: var(--lime); color: var(--lime-ink); }
#aspectSeg { margin-left: auto; }
.rig { position: absolute; z-index: 10; left: 14px; right: 14px; bottom: 26px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(6,10,11,.76); border: 1px solid var(--line-2); backdrop-filter: blur(14px); }
.presets { display: grid; grid-template-columns: repeat(4, auto); gap: 5px; }
.presets button { padding: 5px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--dim); border: 1px solid var(--line); white-space: nowrap; }
.presets button:hover { color: var(--lime); border-color: rgba(198,242,78,.5); }
.sliders { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 16px; }
.sliders label { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: grid; grid-template-columns: 1fr auto; }
.sliders output { color: var(--text); white-space: nowrap; } .sliders input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: none; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); margin-top: -5.5px; box-shadow: 0 0 0 4px rgba(198,242,78,.16); }
.shutter { display: grid; grid-template-columns: auto auto; gap: 4px 12px; align-items: center; justify-items: center; }
.shutter p { grid-column: 1 / -1; margin: 0; font-size: 10.5px; color: var(--faint); }
.capture { width: 58px; height: 58px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; transition: .15s; }
.capture span { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); transition: .15s; }
.capture:hover span { transform: scale(.9); } .capture:active span { transform: scale(.74); }
.capture.busy span { animation: pulse 1s infinite; } @keyframes pulse { 50% { opacity: .35; } }
.street-empty { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(600px 400px at 50% 40%, #142022, #060a0b); padding: 24px; z-index: 5; }
.card { width: min(460px, 100%); padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); }
.card h3 { margin: 0 0 8px; font-size: 18px; } .card p { color: var(--dim); margin: 0 0 14px; font-size: 13.5px; }
.card ol { color: var(--dim); font-size: 13px; padding-left: 18px; margin: 0 0 14px; } .card code { font-family: var(--mono); color: var(--lime); font-size: 12px; }

/* ---------- studio ---------- */
.studio { position: relative; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 16px 8px; }
.place-name { width: 100%; background: none; border: 0; outline: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; padding: 0; }
.place-name:focus { color: var(--lime); } .place-name:disabled { color: var(--faint); }
.meta { margin: 2px 0 0; font: 11px var(--mono); color: var(--faint); }
.tabs { display: flex; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 10px; font-weight: 600; font-size: 13px; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-color: var(--lime); }
.panel { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 14px; align-content: start; }
.panel h4 { margin: 0; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; align-items: center; }
.panel h4 em { font-style: normal; color: var(--lime); }
.f { display: grid; gap: 6px; } .f > span { font-size: 12px; color: var(--dim); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
select, textarea, .in { width: 100%; background: #070b0c; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 10px; outline: 0; }
select { height: 38px; padding: 0 8px; } select option, select optgroup { background: #0c1214; }
textarea { resize: vertical; min-height: 84px; line-height: 1.45; font-size: 13px; }
select:focus, textarea:focus, .in:focus { border-color: var(--lime); }
.brief { font: 11.5px/1.55 var(--mono); color: #b8c7a4; background: rgba(198,242,78,.05); border: 1px dashed rgba(198,242,78,.3); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; }
.check { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--dim); } .check input { accent-color: var(--lime); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tile { position: relative; border-radius: 10px; overflow: hidden; background: #111a1c; aspect-ratio: 16/10; border: 2px solid transparent; cursor: pointer; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.sel { border-color: var(--lime); } .tile.sel::after { content: '✓'; position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font: 10px var(--mono); color: #dfe8e2; background: linear-gradient(transparent, rgba(0,0,0,.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .x { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; display: none; place-items: center; }
.tile:hover .x { display: grid; }
.tile.wait { display: grid; place-items: center; cursor: default; background: repeating-linear-gradient(120deg, #101819 0 12px, #0c1314 12px 24px); background-size: 200% 100%; animation: slide 2.4s linear infinite; }
@keyframes slide { to { background-position: -48px 0; } }
.tile.wait span { font: 11px var(--mono); color: var(--lime); text-align: center; padding: 6px; } .tile.bad span { color: var(--red); } .tile.bad { animation: none; }
.audio { grid-column: 1 / -1; display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: #111a1c; font-size: 12px; color: var(--dim); }
.audio audio { width: 100%; height: 32px; }
.cast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 78px; gap: 6px; max-height: 250px; overflow-y: auto; padding-right: 2px; }
.cast button { position: relative; height: 78px; border-radius: 10px; background: #111a1c; border: 2px solid transparent; overflow: hidden; padding: 0; }
.cast button img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.cast button:hover { border-color: rgba(198,242,78,.5); } .cast button.sel { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(198,242,78,.25); }
.cast button span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; padding: 10px 3px 2px; background: linear-gradient(transparent, rgba(0,0,0,.88)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { display: grid; gap: 6px; } .step { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--dim); }
.step i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; display: grid; place-items: center; font: 700 10px var(--mono); font-style: normal; }
.step.done i { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); } .step.run i { border-color: var(--lime); animation: pulse 1s infinite; } .step.done, .step.run { color: var(--text); }

/* ---------- library ---------- */
.library { overflow: auto; padding: 28px 32px 48px; }
.library-head h2 { font-size: 30px; letter-spacing: -.02em; margin: 0; } .library-head p { color: var(--dim); margin: 4px 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.folder { text-align: left; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: .18s; }
.folder:hover { transform: translateY(-3px); border-color: rgba(198,242,78,.45); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.folder .cover { aspect-ratio: 16/9; background: #121c1e center/cover; position: relative; }
.folder .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(8,12,13,.9)); }
.folder .body { padding: 12px 14px 14px; } .folder b { font-size: 16px; display: block; }
.folder small { font: 11px var(--mono); color: var(--faint); } .folder .counts { display: flex; gap: 12px; margin-top: 10px; font: 11px var(--mono); color: var(--dim); } .folder .counts b { display: inline; font-size: 11px; color: var(--lime); }

.modal { position: fixed; inset: 0; z-index: 80; background: rgba(3,6,7,.9); display: grid; place-items: center; padding: 24px; }
.modal .view { max-width: min(1100px, 94vw); max-height: 88vh; } .modal .view img, .modal .view video { max-width: 100%; max-height: 80vh; border-radius: 12px; display: block; }
.modal .bar { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--dim); font-size: 12.5px; }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; }
.toast { padding: 10px 16px; border-radius: 10px; background: #172124; border: 1px solid var(--line-2); font-size: 13px; box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: rise .2s ease; }
.toast.bad { border-color: rgba(255,107,94,.6); color: #ffd6d2; } @keyframes rise { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1180px) { .scout { grid-template-columns: 0 minmax(0,1fr) var(--side, 360px); } .rail { display: none; } .presets { grid-template-columns: repeat(4, auto); } }
@media (max-width: 860px) { body { overflow: auto; } .scout { grid-template-columns: 1fr; grid-template-rows: 62vh auto; } .studio { border-left: 0; border-top: 1px solid var(--line); } .rig { grid-template-columns: 1fr; } .hud { display: none; } .search { display: none; } }

.street-mode .rig { left: 50%; right: auto; transform: translateX(-50%); grid-template-columns: auto; padding: 10px 14px; }
.street-mode .presets, .street-mode .sliders, .street-mode #autoBtn, .street-mode .shutter p { display: none; }
.street-mode .shutter { grid-template-columns: auto; }

.tile.comp { aspect-ratio: auto; border-color: var(--lime); cursor: default; }
.tile.comp img { height: auto; aspect-ratio: 16/9; }
.tile .star { position: absolute; left: 6px; right: 6px; top: 6px; padding: 5px 4px; border-radius: 7px; background: var(--lime); color: var(--lime-ink); font-size: 10.5px; font-weight: 700; display: none; }
.tile:hover .star { display: block; }
.prompt { border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #0a1011; }
.prompt summary { cursor: pointer; padding: 10px 0; font-size: 12.5px; color: var(--dim); } .prompt summary:hover { color: var(--text); }
.prompt[open] { padding-bottom: 12px; } .prompt textarea { font: 11.5px/1.55 var(--mono); margin-bottom: 8px; }
.panel { grid-auto-rows: max-content; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--dim); border: 1px solid var(--line-2); }
.chips button:hover { color: var(--text); border-color: rgba(198,242,78,.5); }
.chips button.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

.cost { margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,180,84,.35); background: rgba(255,180,84,.07); font-size: 12.5px; color: var(--text); }
.cost b { color: var(--amber); font-family: var(--mono); } .cost span { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.cost.unknown { border-color: var(--line-2); background: none; color: var(--dim); }

.beats { display: grid; gap: 6px; }
.beat { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px; border-radius: 10px; background: #111a1c; border: 1px solid var(--line); }
.beat img { width: 74px; height: 46px; object-fit: cover; border-radius: 6px; }
.beat b { font: 700 12px var(--mono); color: var(--lime); margin-right: 8px; } .beat small { font: 10.5px var(--mono); color: var(--faint); }
.beat .in { margin-top: 5px; padding: 6px 8px; font-size: 12.5px; }
.beat span { display: grid; gap: 3px; } .beat span button { width: 24px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); font-size: 12px; } .beat span button:hover { color: var(--lime); border-color: var(--lime); }
.card.editor { width: min(760px, 100%); max-height: 92vh; overflow: auto; display: grid; gap: 12px; }
.card.editor canvas { width: 100%; height: auto; border-radius: 10px; background: #000; display: block; }
.card.editor textarea { min-height: 62px; }

.zoom { display: inline-block; line-height: 0; overflow: hidden; border-radius: 12px; touch-action: none; cursor: zoom-in; max-width: 100%; }
.zoom.zoomed { cursor: grab; } .zoom.zoomed:active { cursor: grabbing; }
.zoom img { transform-origin: 0 0; border-radius: 0 !important; user-select: none; -webkit-user-drag: none; will-change: transform; }

.tile .go { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,0,0,.65); color: var(--lime); font-size: 13px; line-height: 1; display: none; place-items: center; }
.tile:hover .go { display: grid; } .tile.sel .go { right: 32px; } .tile .go:hover { background: var(--lime); color: var(--lime-ink); }
.beat .in.title { border-style: dashed; color: var(--amber); } .beat .in.title::placeholder { color: var(--faint); }

.tbox { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.tbox small { font-size: 11px; color: var(--faint); } .tbox small.run { color: var(--lime); animation: pulse 1.2s infinite; } .tbox small.bad { color: var(--red); } .tbox small.ok { color: var(--lime); font-weight: 600; }
.tbox.done { align-items: flex-start; } .tbox.done img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; cursor: zoom-in; border: 1px solid var(--line-2); }
.tbox.done > div { display: flex; gap: 6px; align-items: center; width: 100%; }
.cost.unknown b { color: var(--text); font-family: inherit; }

.beat video { width: 74px; height: 46px; object-fit: cover; border-radius: 6px; background: #000; }
.beat select { height: 30px; font-size: 12px; }

.tile .num { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--lime); color: var(--lime-ink); font: 700 11px var(--mono); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tile .num.main { background: var(--amber); }
.f em.over { color: #ff7a6b; font-style: normal; }
.hint.warn { color: var(--amber); }

/* image picker: large tiles that grow with the panel */
.tiles.pick { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.tiles.pick .tile { aspect-ratio: 16/10; }
.tiles.pick .cap { font-size: 11px; }
.tile .mk { position: absolute; right: 6px; top: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.72); color: var(--lime); border: 1px solid rgba(214,255,90,.45); font-size: 11px; font-weight: 700; }
.tile .mk:hover { background: var(--lime); color: var(--lime-ink); }
.tile.sel .mk { right: 32px; }
/* drag handle between the map and the panel */
.divider { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 20; }
.divider::after { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.divider:hover::after, .resizing .divider::after { background: var(--lime); }
.resizing, .resizing * { cursor: col-resize !important; user-select: none; }
.resizing .stage { pointer-events: none; }
@media (max-width: 860px) { .divider { display: none; } }
/* larger route thumbnails */
.beats .beat { grid-template-columns: 128px minmax(0, 1fr) auto; }
.beats .beat img { width: 128px; height: 80px; }

/* thumbnail size slider */
#panel .tiles, #panel .tiles.three, #panel .tiles.pick { grid-template-columns: repeat(auto-fill, minmax(min(var(--tile, 165px), 100%), 1fr)); }
.sizer { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; text-transform: none; letter-spacing: 0; }
.sizer input { width: 110px; accent-color: var(--lime); cursor: pointer; }
h4 .sizer { float: right; }
.f > .head { display: flex; align-items: center; gap: 8px; }

/* ---------- tablet and phone ---------- */
.compact-only, .phone-only { display: none !important; }
@media (max-width: 1180px) { .compact-only { display: flex !important; } }
@media (max-width: 860px) {
  .phone-only { display: inline-block !important; }
  html, body { height: auto; }
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; grid-template-rows: auto auto; }
  .top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .top .brand { font-size: 15px; }
  .views button { padding: 6px 12px; }
  .search { display: flex; order: 5; flex: 1 1 100%; max-width: none; height: 40px; }
  .results { max-height: 55vh; overflow: auto; }
  .scout { grid-template-columns: 1fr; grid-template-rows: 58vh auto; }
  .stage { min-height: 360px; }
  .stage-top { left: 8px; right: 8px; top: 8px; gap: 6px; }
  .seg button { padding: 6px 8px; font-size: 11.5px; }
  #aspectSeg { margin-left: 0; }
  .rig { left: 8px; right: 8px; bottom: 8px; padding: 10px; gap: 10px; grid-template-columns: 1fr; border-radius: 14px; }
  .rig .presets, .rig .sliders { display: none; }
  .stage.rig-open .rig .presets, .stage.rig-open .rig .sliders { display: grid; }
  .presets { grid-template-columns: repeat(4, 1fr); }
  .presets button { padding: 8px 4px; font-size: 12px; }
  .sliders input[type=range] { height: 26px; }
  input[type=range]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8.5px; }
  .shutter { grid-template-columns: 1fr auto; justify-items: start; }
  .shutter p { display: none; }
  .studio { border-left: 0; border-top: 1px solid var(--line); min-height: 70vh; }
  .studio-head { padding: 12px 12px 6px; }
  .tabs { position: sticky; top: 0; z-index: 30; background: var(--panel); overflow-x: auto; padding: 0 4px; }
  .tabs button { flex: 1; padding: 12px 6px; font-size: 13.5px; }
  .panel { overflow: visible; padding: 14px 12px 80px; }
  select, textarea, .in, .search input, .place-name { font-size: 16px; }
  select { height: 42px; }
  .check { font-size: 13.5px; } .check input { width: 18px; height: 18px; }
  .btn.primary.wide { min-height: 46px; }
  .chips button { padding: 8px 11px; }
  .cast { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .beats .beat { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .beats .beat img { width: 84px; height: 54px; }
  .sizer input { width: 90px; }
  .library { padding: 16px 12px 40px; }
  .library-head h2 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal .view { max-width: 100%; }
  .modal .bar { flex-wrap: wrap; }
  .toasts { left: 12px; right: 12px; transform: none; bottom: 14px; }
}
/* touch screens have no hover: show the tile buttons all the time */
@media (hover: none) {
  .tile .x, .tile .go { display: grid; }
  .tile .star { display: block; top: auto; bottom: 26px; }
  .tile.sel .go { right: 32px; }
}
@media (max-width: 860px) {
  .top .brand span:not(.mark) { display: none; }
  .account { font-size: 0; padding: 0 5px; gap: 0; } .account i { font-size: 11px; }
  .stage-top { flex-wrap: nowrap; overflow-x: auto; pointer-events: auto; scrollbar-width: none; padding-bottom: 2px; }
  .stage-top::-webkit-scrollbar { display: none; }
  .stage-top .seg { flex: none; }
}

#promptBox .pmeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); }
#promptBox .pmeta em { font-style: normal; margin-left: 6px; color: var(--faint); } #promptBox .pmeta em.over { color: #ff7a6b; }
.f > .head .btn.tiny { margin-left: 4px; }

/* parcel tools on the right of the map */
.parcel-dock { position: absolute; z-index: 10; right: 14px; top: 58px; }
.parcel-dock .seg { flex-direction: column; align-items: stretch; gap: 2px; }
.parcel-dock .seg button { text-align: left; }
.parcel-dock .seg[hidden] { display: none; }
/* recording */
.shutter { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.shutter p { flex-basis: 100%; text-align: center; }
.recs { display: flex; gap: 6px; } .recs[hidden] { display: none; }
.recs .btn { padding: 6px 10px; font-size: 12px; }
.recs .btn.recording { color: #ff6b5e; border-color: #ff6b5e; animation: pulse 1s infinite; }
/* places search */
.place-filter { margin: 0 8px 8px; width: calc(100% - 16px); padding: 7px 10px; font-size: 13px; }
.library-head .place-filter { margin: 0 0 18px; width: min(420px, 100%); }
.place small.co { font-size: 10.5px; color: var(--dim); }
@media (max-width: 860px) { .parcel-dock { right: 8px; top: 54px; } .shutter { justify-content: space-between; } }

#orbitSpeed { height: 30px; width: auto; padding: 0 6px; font-size: 12px; border-radius: 8px; }
@media (max-width: 860px) { #orbitSpeed { height: 36px; font-size: 14px; } }
.place small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#recMove { height: 30px; width: auto; max-width: 190px; padding: 0 6px; font-size: 12px; border-radius: 8px; }
.recs { flex-wrap: wrap; justify-content: center; }
.pick-card .pick-actions { display: grid; gap: 8px; margin: 6px 0 10px; }
.pick-card p { font-family: var(--mono); }
.pick-card .hint { font-family: inherit; }
@media (max-width: 860px) { #recMove { height: 36px; font-size: 14px; max-width: none; flex: 1; } }
/* camera-move row under the camera controls */
.rig { grid-template-columns: auto minmax(240px, 1fr) auto; }
.rig > .recs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.rig > .recs[hidden] { display: none; }
.recs-label { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.recs select, .recs .btn { height: 30px; }
@media (max-width: 860px) { .rig { grid-template-columns: 1fr; } .recs-label { display: none; } .recs select, .recs .btn { height: 36px; } }
/* the camera bar wraps instead of overflowing on narrower maps */
.rig { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.rig > .presets { flex: 0 0 auto; }
.rig > .sliders { flex: 1 1 240px; min-width: 220px; }
.rig > .shutter { flex: 0 0 auto; margin-left: auto; }
.rig > .recs { flex: 1 1 100%; }
.recs #recMove { flex: 1 1 160px; max-width: 220px; }
@media (max-width: 860px) { .rig > .presets, .rig > .sliders { flex-basis: 100%; } .rig > .shutter { margin-left: 0; flex: 1 1 100%; } }

#setViewBtn.on { color: var(--lime); border-color: rgba(198,242,78,.6); }
#clearViewBtn { padding: 0 9px; }
#clearViewBtn[hidden] { display: none; }
/* messages sit in the top-right corner, clear of the map controls */
.toasts { left: auto; right: 16px; top: 66px; bottom: auto; transform: none; justify-items: end; max-width: min(420px, calc(100vw - 32px)); }
@media (max-width: 860px) { .toasts { left: 12px; right: 12px; top: 12px; justify-items: stretch; max-width: none; } }

/* Street View: only free recording */
.street-mode #recMove, .street-mode #orbitSpeed, .street-mode #setViewBtn, .street-mode #clearViewBtn, .street-mode #previewBtn { display: none; }
.street-mode .recs-label::after { content: ' · walk and look around, then stop'; text-transform: none; letter-spacing: 0; }
/* while recording Street View, the framing marks and messages stay out of the picture */
.rec-clean #frame { box-shadow: none; border-color: transparent; } .rec-clean #frame i, .rec-clean #frame span { display: none; }
.rec-clean .toasts { display: none; }

/* clean Street View recording: nothing of ours over the picture */
.rec-clean .rig, .rec-clean .stage-top, .rec-clean .parcel-dock, .rec-clean .hud { display: none !important; }
.rec-stop { position: fixed; z-index: 95; top: 10px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; background: #ff5b4c; color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: pulse 1.4s infinite; }
.rec-stop[hidden] { display: none; }

/* video presets */
.preset-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: #0e1517; border: 1px solid var(--line); }
.pb-label { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.preset { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.preset button { padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.preset button:hover { background: rgba(198,242,78,.1); }
.preset .del { padding: 6px 8px; color: var(--faint); border-left: 1px solid var(--line); font-size: 11px; }
.preset .del:hover { color: #ff7a6b; }
.preset.on { border-color: var(--lime); } .preset.on button:first-child { color: var(--lime); }
.preset-bar .btn.tiny { margin-left: auto; }

.recs .btn.ab { min-width: 52px; }
.recs .btn.ab.on { color: var(--lime); border-color: rgba(198,242,78,.6); }
.street-mode #pointABtn, .street-mode #pointBBtn { display: none; }

/* phones: camera controls below the map instead of over it */
.rig.docked { position: static; transform: none; left: auto; right: auto; bottom: auto; margin: 0; border-radius: 0; border-left: 0; border-right: 0; background: var(--panel); backdrop-filter: none; }
.rig.docked .presets, .rig.docked .sliders { display: grid !important; }
@media (max-width: 860px) { .scout { grid-template-rows: 60vh auto auto; } #rigToggle { display: none !important; } .street-mode .rig.docked { left: auto; transform: none; } }
.street-mode .rig.docked .presets, .street-mode .rig.docked .sliders { display: none !important; }
@media (max-width: 860px) { .recs #recMove { flex: 1 1 100%; max-width: none; } .recs .btn, .recs #orbitSpeed { flex: 1 1 auto; } }

/* places list: folders, archive, row menus */
.place-tools { display: flex; gap: 6px; margin: 0 8px 8px; } .place-tools .place-filter { margin: 0; flex: 1; width: auto; }
.place-row { position: relative; }
.place-row .place { width: 100%; padding-right: 28px; }
.place-more { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 6px; color: var(--dim); font-size: 15px; line-height: 1; opacity: 0; }
.place-row:hover .place-more, .folder-head:hover .place-more, .place-more:focus { opacity: 1; }
.place-more:hover { background: rgba(255,255,255,.08); color: var(--text); }
@media (hover: none) { .place-more { opacity: 1; } }
.folder-group { margin-top: 4px; }
.folder-head { position: relative; display: flex; align-items: center; gap: 6px; padding: 7px 30px 7px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.folder-head:hover { background: rgba(255,255,255,.04); color: var(--text); }
.folder-head em { font: 11px var(--mono); font-style: normal; color: var(--faint); }
.fh-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-body { display: grid; gap: 4px; padding-left: 8px; border-left: 1px solid var(--line); margin-left: 12px; }
.folder-group.shut .folder-body { display: none; }
.empty.small { padding: 6px 4px; font-size: 11.5px; text-align: left; }
.pop-menu { position: fixed; z-index: 120; min-width: 200px; max-width: 280px; padding: 6px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.6); display: grid; gap: 2px; }
.pop-menu button { text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-menu button:hover { background: rgba(198,242,78,.1); } .pop-menu button.on { color: var(--lime); } .pop-menu button.danger { color: #ff8a7d; }
.pm-title { padding: 6px 10px 4px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-label { padding: 6px 10px 2px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pop-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* places panel: wider by default, resizable, buttons always visible */
.scout { grid-template-columns: var(--rail, 290px) minmax(0,1fr) var(--side, 392px); }
@media (max-width: 1180px) { .scout { grid-template-columns: 0 minmax(0,1fr) var(--side, 360px); } }
@media (max-width: 860px) { .scout { grid-template-columns: 1fr; } }
.rail { position: relative; min-width: 0; overflow: hidden; }
.place-list { overflow-x: hidden; overflow-y: auto; min-height: 0; flex: 1; }
.rail-head { gap: 8px; } .rail-head .btn { white-space: nowrap; }
.rail-divider { left: auto; right: -5px; }
.place-more { opacity: .6; } .place-more:hover { opacity: 1; }
.place-row:hover .place-more { opacity: 1; }
#newFolderBtn { flex: none; white-space: nowrap; }

/* drag and drop places onto folders */
.place-row[draggable="true"] { cursor: grab; } .place-row.dragging { opacity: .4; }
.drag-on .folder-group { border-radius: 10px; outline: 1px dashed transparent; }
.drag-on .folder-group .folder-head { outline: 1px dashed rgba(198,242,78,.35); outline-offset: -1px; }
.folder-group.drop-over { background: rgba(198,242,78,.08); outline: 1px solid var(--lime); }
.drag-on .folder-group.shut .folder-body { display: none; }

/* library folders */
#libraryGrid { display: block; }
.lib-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; } .lib-tools .place-filter { margin: 0; }
.lib-section { margin-bottom: 22px; border-radius: 14px; padding: 4px; }
.lib-head { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 6px 36px 10px 6px; cursor: pointer; }
.lib-head h3 { margin: 0; font-size: 17px; } .lib-head em { font: 11px var(--mono); font-style: normal; color: var(--faint); }
.lib-head .place-more { top: 18px; opacity: .7; }
.lib-section.shut .grid { display: none; }
.lib-card { position: relative; } .lib-card .folder { width: 100%; }
.card-more { top: 22px; right: 10px; background: rgba(0,0,0,.6); color: #fff; opacity: .85; z-index: 2; }
.lib-card[draggable="true"] { cursor: grab; } .lib-card.dragging { opacity: .4; }
.lib-section.drop-over { background: rgba(198,242,78,.07); outline: 1px solid var(--lime); }

/* group by place */
.rail > .group-by { margin: 0 8px 8px; width: calc(100% - 16px); height: 34px; font-size: 12.5px; }
.lib-tools .group-by { width: auto; height: 38px; }
.folder-group.geo .folder-head { color: var(--text); }

/* library map view */
.lib-views { margin-left: auto; }
.lib-map { position: relative; height: calc(100vh - 230px); min-height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.lib-map[hidden] { display: none; }
#libMapCanvas { min-height: 0; background: #0b1214; }
.lib-legend { background: var(--panel); border-left: 1px solid var(--line); overflow: auto; padding: 10px; display: grid; gap: 4px; align-content: start; }
.lg-title { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 4px 6px 8px; }
.lib-legend button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px; border-radius: 8px; font-size: 13px; color: var(--text); }
.lib-legend button:hover { background: rgba(198,242,78,.08); }
.lib-legend i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.lib-legend span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-legend em { font: 11px var(--mono); font-style: normal; color: var(--faint); }
.lib-legend .lg-all { justify-content: center; margin-top: 6px; border: 1px solid var(--line-2); color: var(--dim); }
.lib-pin { background: none; border: 0; }
.pin-dot { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--c); background: #0b1214; overflow: hidden; display: grid; place-items: center; color: var(--c); box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.pin-dot img { width: 100%; height: 100%; object-fit: cover; }
.pin-name { position: absolute; left: 50%; top: 48px; transform: translateX(-50%); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; padding: 2px 7px; border-radius: 6px; background: rgba(6,10,11,.82); color: #fff; font: 600 11px var(--sans); }
.pin-pop { display: grid; gap: 4px; width: 210px; font-family: var(--sans); }
.pin-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.pin-pop b { font-size: 14px; color: #111; } .pin-pop small { color: #555; font-size: 11.5px; }
.pin-pop .btn { margin-top: 4px; }
.marker-cluster div { background: rgba(198,242,78,.92) !important; color: #0b1214; font-weight: 700; }
.marker-cluster { background: rgba(198,242,78,.35) !important; }
@media (max-width: 860px) { .lib-map { grid-template-columns: 1fr; grid-template-rows: 60vh auto; height: auto; } .lib-legend { border-left: 0; border-top: 1px solid var(--line); } .lib-views { margin-left: 0; } .lib-tools { flex-wrap: wrap; } }

/* rectangle photo pins */
.pin-card { position: relative; border: 3px solid var(--c); border-radius: 9px; overflow: hidden; background: #0b1214; box-shadow: 0 6px 18px rgba(0,0,0,.55); transition: transform .15s; }
.pin-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-empty { display: grid; place-items: center; height: 100%; color: var(--c); font-size: 20px; }
.pin-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 3px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font: 600 11px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-stem { position: absolute; left: 50%; bottom: 0; width: 3px; height: 10px; margin-left: -1.5px; background: var(--c); }
.pin-stem::after { content: ''; position: absolute; left: -3px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); border: 2px solid #0b1214; }
.lib-pin:hover { z-index: 1000 !important; } .lib-pin:hover .pin-card { transform: scale(1.06); }

/* video thumbnails */
.folder .cover video, .pin-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.folder .cover::after { z-index: 1; }
.pin-card video { position: static; display: block; }
.vid-badge { position: absolute; z-index: 2; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; pointer-events: none; transition: opacity .2s; }
.pin-card .vid-badge { top: 4px; left: 4px; width: 18px; height: 18px; font-size: 8px; }
.playing .vid-badge { opacity: 0; }
.pin-pop video { width: 100%; height: 118px; object-fit: cover; border-radius: 8px; background: #000; }

/* film: crop window on the thumbnails */
.film-rows .beat { grid-template-columns: 120px minmax(0, 1fr) auto; align-items: start; }
.film-frame { position: relative; width: 120px; border-radius: 6px; overflow: hidden; background: #000; align-self: center; }
.film-frame img, .film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.crop-win { position: absolute; border: 2px solid var(--lime); box-shadow: 0 0 0 999px rgba(0,0,0,.6); border-radius: 2px; pointer-events: none; }
.crop-pos { display: grid; gap: 2px; margin-top: 6px; font: 500 10px var(--mono); letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }

#clayBtn.on { color: var(--lime); border-color: rgba(198,242,78,.6); }
.street-mode #clayBtn { display: none; }

.update-bar { position: fixed; z-index: 130; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--lime); box-shadow: 0 14px 40px rgba(0,0,0,.55); font-size: 13.5px; }

.guide-cover { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(6,10,11,.94); }
.guide-cover div { display: grid; gap: 6px; text-align: center; max-width: 340px; padding: 20px; }
.guide-cover b { color: var(--lime); font-size: 15px; } .guide-cover span { color: var(--dim); font-size: 13px; }

.recs .btn.go-pt { min-width: 0; padding: 0 9px; color: var(--lime); } .recs .btn.go-pt[hidden] { display: none; }
.street-mode .go-pt { display: none; }

#credits { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(198,242,78,.45); color: var(--lime); font: 600 12.5px var(--mono); background: rgba(198,242,78,.06); white-space: nowrap; }
#credits[hidden] { display: none; }
#credits i { font-style: normal; font-size: 10px; }
@media (max-width: 860px) { #credits { height: 30px; padding: 0 9px; font-size: 11.5px; } }

/* ---- land value ---- */
.sort-by { margin-top: -2px !important; }
.vpill { font: 700 10.5px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 999px; margin-left: auto; align-self: center; flex: none; background: rgba(255,255,255,.06); color: var(--faint); }
.vpill.hi { color: #070b0c; background: var(--lime); } .vpill.mid { color: #070b0c; background: #f2c94e; } .vpill.lo { color: #fff; background: #c8553d; }
.vpill.stale { opacity: .55; }
.place { display: flex; align-items: center; } .place > span:nth-child(2) { min-width: 0; flex: 1; }
.lib-card .body .vpill { float: right; margin-top: -18px; }
.value-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 5px 8px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: rgba(255,255,255,.04); color: var(--faint); cursor: pointer; line-height: 1.1; }
.value-badge span { font: 700 17px var(--mono); } .value-badge small { font: 9.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.value-badge.hi { border-color: var(--lime); color: var(--lime); } .value-badge.mid { border-color: #f2c94e; color: #f2c94e; } .value-badge.lo { border-color: #e2705a; color: #e2705a; }
.vscore { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); margin: 6px 0 10px; }
.vscore .vnum { font: 700 34px var(--mono); } .vscore b { display: block; font-size: 14px; } .vscore small { color: var(--faint); font: 11px var(--mono); }
.vscore.hi { border-color: var(--lime); } .vscore.hi .vnum { color: var(--lime); } .vscore.mid { border-color: #f2c94e; } .vscore.mid .vnum { color: #f2c94e; } .vscore.lo { border-color: #e2705a; } .vscore.lo .vnum { color: #e2705a; }
.vc { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); } .vc.na { opacity: .55; }
.vc-head { display: flex; gap: 8px; align-items: baseline; } .vc-head b { flex: 1; font-size: 13px; }
.vc-w { font: 10.5px var(--mono); color: var(--faint); } .vc-s { font: 700 13px var(--mono); min-width: 28px; text-align: right; }
.vc-s.hi { color: var(--lime); } .vc-s.mid { color: #f2c94e; } .vc-s.lo { color: #e2705a; }
.vbar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin: 6px 0; overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--faint); } .vbar i.hi { background: var(--lime); } .vbar i.mid { background: #f2c94e; } .vbar i.lo { background: #e2705a; }
.vc-val { font: 600 11.5px var(--mono); color: #b8c7a4; }
.vc ul { margin: 4px 0 0; padding-left: 16px; font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.vweights { margin: 12px 0; } .vweights summary { cursor: pointer; font-size: 12.5px; color: var(--faint); }
.vw { display: grid; grid-template-columns: 1fr 110px 26px; gap: 8px; align-items: center; font-size: 12px; margin: 6px 0; } .vw output { font: 11px var(--mono); text-align: right; }
.hint.warn { color: #f2c94e; }
.vnote { border: 1px dashed rgba(242,201,78,.45); background: rgba(242,201,78,.06); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 12.5px; }
.vnote p { margin: 0 0 8px; line-height: 1.45; } .vnote.ok { border-color: rgba(198,242,78,.4); background: rgba(198,242,78,.05); } .vnote.ok p { margin: 0; }
/* live evaluation log */
.evlog { margin: 10px 0; border: 1px solid rgba(198,242,78,.25); border-radius: 10px; background: #060a0b; overflow: hidden; }
.evlog .ev-head { display: flex; gap: 8px; align-items: center; padding: 8px 10px; font: 600 11.5px var(--mono); color: var(--lime); border-bottom: 1px solid rgba(198,242,78,.15); }
.evlog.done .ev-head { color: var(--faint); }
.ev-lines { max-height: 300px; overflow-y: auto; padding: 6px 0; font: 11px/1.45 var(--mono); }
.ev-line { display: grid; grid-template-columns: 38px 16px 1fr auto auto; gap: 6px; align-items: center; padding: 2px 10px; color: #b8c7a4; }
.ev-t { color: #4d5a50; text-align: right; } .ev-i { text-align: center; }
.ev-k-ok .ev-i, .ev-k-done .ev-i { color: var(--lime); } .ev-k-warn { color: #f2c94e; } .ev-k-error { color: #e2705a; } .ev-k-info { color: var(--faint); } .ev-k-done { color: var(--lime); font-weight: 700; }
.ev-k-run .ev-x { color: #e6f0d8; }
.ev-k-score .ev-x { color: #e6f0d8; }
.ev-score { font-weight: 700; min-width: 24px; text-align: right; } .ev-score.hi { color: var(--lime); } .ev-score.mid { color: #f2c94e; } .ev-score.lo { color: #e2705a; }
.ev-bar { width: 54px; height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; } .ev-bar i { display: block; height: 100%; } .ev-bar i.hi { background: var(--lime); } .ev-bar i.mid { background: #f2c94e; } .ev-bar i.lo { background: #e2705a; }
.ev-new { animation: evIn .35s ease both; } .ev-new .ev-bar i { animation: evGrow .8s ease both; animation-delay: inherit; }
@keyframes evIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes evGrow { from { width: 0; } }
.ev-spin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(198,242,78,.25); border-top-color: var(--lime); animation: evSpin .8s linear infinite; vertical-align: middle; }
@keyframes evSpin { to { transform: rotate(360deg); } }
.ev-past { margin: 8px 0; } .ev-past summary { cursor: pointer; font-size: 12px; color: var(--faint); }
.vnote .evlog { margin-top: 10px; }
.set-weights { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.set-weights h4 { margin: 0 0 4px; font-size: 13px; }
.set-weights .vw { grid-template-columns: 1fr 140px 40px; }
/* value report: light text on the dark panel, easy to read */
.vc-head b { color: #fff; font-size: 13.5px; }
.vc-val { color: #f2f7ea; font-size: 12px; }
.vc ul { color: #d9e2d3; font-size: 12.5px; line-height: 1.55; }
.vc-w { color: #b7c2b3; }
.vc.na { opacity: .8; }
.vscore small { color: #d9e2d3; }
#panel .vnote p, #panel .vscore b { color: #f2f7ea; }
.set-weights .vw span, .set-weights .hint { color: #e3eadf; }
.ev-lines { font-size: 11.5px; } .ev-line { color: #e3eadf; } .ev-t { color: #9aa79a; } .ev-k-info { color: #c7d1c3; } .evlog.done .ev-head { color: #c7d1c3; }
.ev-past summary { color: #d9e2d3; }
.all-head { padding: 6px 12px 4px; font: 11px var(--mono); color: #c7d1c3; text-transform: uppercase; letter-spacing: .06em; }
/* languages: Hebrew reads right to left in the panels; the map and its controls keep their layout */
.set-lang { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); } .set-lang h4 { margin: 0 0 6px; font-size: 13px; } .set-lang select { width: 100%; }
html.rtl .panel, html.rtl .rail, html.rtl .card, html.rtl .pop-menu, html.rtl .toasts, html.rtl .library-head, html.rtl .lib-section, html.rtl .studio-head, html.rtl .tabs, html.rtl .gate-card, html.rtl .rig .presets, html.rtl .recs { direction: rtl; }
html.rtl .meta, html.rtl .co, html.rtl input[type=range] { direction: ltr; }
html.rtl .vc ul { padding-left: 0; padding-right: 16px; }
html.rtl .vpill { margin-left: 0; margin-right: auto; }
/* area line on every card: town, county, state, country */
.folder small.area, .place small.area { display: block; margin-top: 3px; color: #c7d1c3; font: 11px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place small.area { font-size: 10.5px; margin-top: 1px; }

/* narrator voice */
.voice-pick { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.voice-pick .seg { display: inline-flex; } .voice-pick .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice-pick .hint b { color: #f2f7ea; }
