:root { --bg:#0f1216; --panel:#171c22; --line:#262d36; --text:#e6e9ee; --muted:#8a94a3;
        --accent:#4aa8ff; --ok:#3ccf8e; --warn:#f2b84b; --bad:#ff6b6b; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--text); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.site-head { display:flex; align-items:center; gap:10px 22px; padding:10px 20px; min-height:56px; border-bottom:1px solid var(--line); background:var(--panel); position:relative; z-index:50; }
/* The logo's wordmark font (Outfit, SIL Open Font License: static/fonts/Outfit-OFL.txt), served from here */
@font-face { font-family:"Outfit"; src:url("fonts/outfit-latin.fdf9c509a809.woff2") format("woff2"); font-weight:100 900; font-display:swap; }
.site-head .brand { display:inline-flex; align-items:center; gap:9px; font-family:"Outfit", system-ui, sans-serif;
                font-weight:700; font-size:21px; letter-spacing:-0.01em; color:var(--text); flex:none; }
.site-head .brand img { display:block; }
.site-head .brand .brand-view { color:var(--accent); }
.site-head form { margin:0; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-size: 24px; margin: 0 0 16px; } h2 { font-size: 18px; margin: 28px 0 12px; color: var(--muted); }
.card { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:20px; }
.narrow { max-width: 420px; margin: 40px auto; }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap:14px; }
.cam { display:block; color:var(--text); } .cam:hover { border-color: var(--accent); text-decoration:none; }
.cam .sub, .muted { color: var(--muted); font-size: 14px; }
.badge { display:inline-block; font-size:12px; padding:2px 8px; border-radius:999px; border:1px solid var(--line); color:var(--muted); margin-right:4px; }
.badge.ok { color:var(--ok); border-color:var(--ok); } .badge.warn { color:var(--warn); border-color:var(--warn); } .badge.bad { color:var(--bad); border-color:var(--bad); }
.player { width:100%; aspect-ratio:16/9; border:0; background:#000; border-radius:8px; }
.btn, button { display:inline-block; background:var(--accent); color:#04121f; border:0; border-radius:8px; padding:9px 16px; font-weight:600; cursor:pointer; font-size:14px; }
.btn.secondary, button.secondary { background:transparent; color:var(--text); border:1px solid var(--line); }
[hidden] { display:none !important; }          /* "hidden" always wins over a display set elsewhere (buttons, labels) */
.linkbtn { background:none; border:0; color:var(--accent); padding:0; font-weight:400; }
form p { margin: 0 0 14px; } label { display:block; font-size:14px; margin-bottom:4px; color: var(--muted); }
input[type=text], input[type=search], input:not([type]), input[type=email], input[type=password], input[type=number], input[type=url], select {
  width:100%; padding:9px 10px; border-radius:8px; border:1px solid var(--line); background:#0c0f13; color:var(--text); font-size:14px; }
input[type=checkbox] { transform: scale(1.15); margin-right: 6px; }
.helptext { display:block; font-size:12px; color:var(--muted); margin-top:4px; }
.errorlist { color: var(--bad); font-size: 13px; padding-left: 18px; margin: 4px 0; }
.messages { list-style:none; padding:0; margin:0 0 16px; } .messages li { padding:10px 14px; border-radius:8px; background:#12301f; border:1px solid var(--ok); }
.tabs a { margin-right: 14px; }
.cols { display:grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } @media (max-width: 700px) { .cols { grid-template-columns: 1fr; } }

/* ---- camera page ---- */
.cam-head { display:flex; align-items:center; gap:12px; } .cam-head h1 { margin:0; }
.cam-layout { display:grid; grid-template-columns: minmax(0, 1fr); gap:16px; margin-top:12px; }
/* Camera page: title left, credits right; the panel (tools, camera controls) below the video, or beside it
   on wide screens when chosen (campanel.js) */
.cam-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px 24px; flex-wrap:wrap; }
.cam-title { min-width:0; }
.cam-place-line { margin:4px 0 0; }
.cam-credits { display:flex; flex-direction:column; align-items:flex-end; gap:4px; margin:0; text-align:right; }
@media (max-width: 700px) { .cam-credits { align-items:flex-start; text-align:left; } }
.cam-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; font-size:13px; }
@media (min-width: 1200px) {
  .cam-layout.side { grid-template-columns: minmax(0, 1fr) 12px min(var(--panelw, clamp(380px, 24vw, 560px)), 45%); column-gap:2px;
    align-items:start; }
  .cam-layout.side .cam-divider { display:block; align-self:stretch; min-height:120px; cursor:col-resize; touch-action:none;
    border-radius:6px; position:relative; }
  .cam-layout.side .cam-divider::before { content:""; position:absolute; left:5px; top:50%; height:44px; margin-top:-22px;
    width:2px; border-radius:2px; background:var(--line); }
  .cam-layout.side .cam-divider:hover, .cam-layout.side .cam-divider:focus-visible, main.resizing .cam-divider { background:rgba(74,168,255,.12); }
  .cam-layout.side .cam-divider:hover::before, main.resizing .cam-divider::before { background:var(--accent); }
  .cam-layout.side .cam-panel { max-height: calc(100vh - 32px); overflow:auto; position:sticky; top:16px; }
}
.cam-divider { display:none; }
main.resizing { user-select:none; cursor:col-resize; }
.cam-panel-body { container-type:inline-size; }
.cam-tabs-gap { width:1px; align-self:stretch; margin:4px 4px; background:var(--line); }
/* Timelapses, Location and Health shown as tabs: the tab names them, so their own headings go */
.cam-pane { margin-top:4px; }
.cam-pane > h2, .cam-where .where-side > h2, .cam-pane .wx-head h2 { display:none; }
.cam-panel-body .cam-where, .cam-panel-body .wx { margin-top:4px; }
@container (max-width: 640px) { .cam-panel-body .cam-where { grid-template-columns:1fr; } .cam-panel-body .where-map { height:260px; } }
.cam-panel { padding:10px 12px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.cam-panel-bar { display:flex; align-items:flex-start; gap:8px; }
.cam-manage { position:relative; }
.cam-manage > summary { list-style:none; cursor:pointer; }
.cam-manage > summary::-webkit-details-marker { display:none; }
.cam-manage > summary::after { content:" \25BE"; font-size:11px; }
.cam-manage > summary.on { background:var(--accent); color:#0b1622; border-color:var(--accent); }
.cam-manage-pop { position:absolute; z-index:20; top:calc(100% + 4px); left:0; display:flex; flex-direction:column; gap:4px;
  padding:6px; min-width:140px; background:var(--panel, #171c22); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 8px 24px #0009; }
.cam-manage-pop .pill { text-align:left; }
.cam-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.cam-place { display:inline-flex; gap:0; flex:none; }
.cam-place .pill { border-radius:0; }
.cam-place .pill:first-child { border-radius:999px 0 0 999px; }
.cam-place .pill:last-child { border-radius:0 999px 999px 0; border-left:0; }
@media (max-width: 1199px) { .cam-place { display:none; } }        /* narrow screens: always below */
.cam-panel-body { min-width:0; }
.cam-panel-body .ptz-panel { padding:4px 2px; max-width:440px; }
.cam-panel-body .ptz-title strong { display:none; }   /* the tab already says Camera controls */
.cam-tool { min-width:0; }
.cam-tool h1 { display:none; }                      /* the tab already names it */
.cam-tool .back-link { display:none; }              /* and the camera is right there */
.cam-tool .card { background:transparent; padding:12px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; }
/* Settings in the panel: one section at a time, picked from chips (or a menu where the panel is narrow) */
.cam-tool { container-type:inline-size; }
.set-nav { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.set-nav .set-chips { display:flex; flex-wrap:wrap; gap:6px; }
.set-nav .set-pick { display:none; margin:0; }
@container (max-width: 460px) {
  .set-nav .set-chips { display:none; }
  .set-nav .set-pick { display:flex; align-items:center; gap:8px; }
}
.set-one .cols { grid-template-columns:1fr; }
.set-one .set-section h2 { font-size:16px; }
.set-one .set-page { margin-top:14px; }
.set-one .set-page > .card { border-top:0; padding-top:0; }
.set-one .set-form:not([hidden]) + .set-page:not([hidden]) { border-top:1px solid var(--line); padding-top:12px; }
button.pill, summary.pill { background:transparent; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:7px 14px;
  font-weight:500; font-size:14px; }
button.pill:hover { color:var(--text); border-color:#3a4450; }
button.pill.on { background:var(--accent); border-color:var(--accent); color:#04121f; font-weight:600; }
button.pill.small { padding:4px 10px; font-size:12px; }
/* Clock and weather over the player (overlay.js): a corner box, never part of the video itself */
.cam-overlay { position:absolute; z-index:2; max-width:min(300px, 46%); background:rgba(10,13,17,.8); color:var(--text);
  border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:8px 10px; display:flex; flex-direction:column; gap:4px;
  font-size:13px; line-height:1.35; }
.cam-overlay.pos-tl { top:12px; left:12px; } .cam-overlay.pos-tr { top:12px; right:12px; }
.use-label { position:absolute; z-index:2; left:12px; bottom:56px; pointer-events:none; user-select:none;
  font-size:12px; font-weight:600; letter-spacing:.02em; color:rgba(255,255,255,.75); background:rgba(10,13,17,.45);
  padding:3px 8px; border-radius:6px; }
.cam-overlay.pos-bl { bottom:56px; left:12px; } .cam-overlay.pos-br { bottom:56px; right:12px; }   /* above the controls */
.cam-overlay.dragging { opacity:.85; cursor:grabbing; }
.ovl-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ovl-clock { font-size:20px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ovl-zone { font-size:12px; font-weight:500; color:var(--muted); }
.ovl-tools { display:inline-flex; gap:2px; margin-left:auto; }
.ovl-btn { background:transparent; border:0; color:var(--muted); width:28px; height:28px; padding:0; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center; font-weight:400; }
.ovl-btn:hover { color:var(--text); background:rgba(255,255,255,.08); }
.ovl-move { cursor:grab; touch-action:none; }
.ovl-alert { display:flex; align-items:center; gap:6px; font-weight:600; color:var(--text); background:rgba(0,0,0,.35);
  border-radius:999px; padding:3px 10px 3px 6px; align-self:flex-start; }
.ovl-swatch { width:10px; height:10px; border-radius:999px; background:var(--alert, var(--warn)); flex:none; }
/* full screen: the player with its overlay */
.video-wrap:fullscreen { background:#000; display:flex; align-items:center; justify-content:center; }
.video-wrap:fullscreen video { width:100%; height:100%; max-height:none; object-fit:contain; }
/* phones: a strip above the video, not over it */
@media (max-width: 700px) {
  .video-wrap { display:flex; flex-direction:column; }
  .video-wrap .cam-overlay { position:static; order:-1; max-width:none; flex-direction:row; flex-wrap:wrap; align-items:center;
    gap:4px 12px; margin-bottom:8px; background:var(--panel); border-color:var(--line); }
  .video-wrap .cam-overlay .ovl-head { gap:6px; }
  .video-wrap .cam-overlay .ovl-clock { font-size:16px; }
  .video-wrap .cam-overlay .ovl-move { display:none; }
}
.mode-switch { display:inline-flex; background:var(--panel); border:1px solid var(--line); border-radius:999px; padding:2px; }
.mode-switch .mode-btn { background:transparent; color:var(--muted); border:0; border-radius:999px; padding:4px 12px;
  font-size:13px; font-weight:500; }
.mode-switch .mode-btn.on { background:var(--accent); color:#04121f; font-weight:600; }
.ptz-panel { padding:16px; align-self:start; }
.ptz-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.ptz-sticks { display:flex; gap:14px; justify-content:center; align-items:stretch; }
.ptz-sticks[hidden] { display:none; }
.ptz-zoomstick { position:relative; width:44px; border-radius:22px; margin-top:4px; background:#141a22; border:1px solid var(--line);
  display:flex; flex-direction:column; justify-content:space-between; align-items:center; padding:6px 0;
  touch-action:none; user-select:none; -webkit-user-select:none; cursor:ns-resize; }
.ptz-zoomstick .zl { color:var(--muted); font-weight:700; pointer-events:none; }
.ptz-zoomstick.on { border-color:var(--accent); }
.ptz-zoomstick:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ptz-zknob { position:absolute; left:50%; top:50%; width:32px; height:32px; margin:-16px 0 0 -16px; border-radius:50%;
  background:#2c3a4b; border:2px solid #6c7d92; pointer-events:none; transition:transform .12s; }
.ptz-zoomstick.on .ptz-zknob { transition:none; background:#33506e; border-color:var(--accent); }
.ptz-panel.stick-style .ptz-zoom [data-v] { display:none; }
.ptz-panel.stick-style .ptz-zoom { grid-template-columns:1fr; }
.ptz-stick { position:relative; width:min(100%, 200px); aspect-ratio:1; margin:4px 0 0; border-radius:50%;
  background:radial-gradient(circle, #1b232e 0 55%, #141a22 56%); border:1px solid var(--line);
  touch-action:none; user-select:none; -webkit-user-select:none; cursor:grab; }
.ptz-stick:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ptz-stick.on { cursor:grabbing; border-color:var(--accent); }
.ptz-stick-ring { position:absolute; inset:30%; border-radius:50%; border:1px dashed #33404f; pointer-events:none; }
.ptz-knob { position:absolute; left:50%; top:50%; width:34%; height:34%; margin:-17% 0 0 -17%; border-radius:50%;
  background:#2c3a4b; border:2px solid #6c7d92; box-shadow:0 2px 8px #0008; pointer-events:none; transition:transform .12s; }
.ptz-stick.on .ptz-knob { transition:none; background:#33506e; border-color:var(--accent); }
.ptz-style { display:flex; gap:4px; justify-content:center; margin:0 0 8px; }
.ptz-style [aria-pressed="true"] { border-color:var(--accent); color:var(--accent); }
.ptz-pad { display:grid; grid-template-columns: repeat(3, 1fr); gap:6px; }
.ptz-pad[hidden], .ptz-stick[hidden] { display:none; }
.ptz-pad button { padding:14px 0; font-size:18px; touch-action:none; user-select:none; -webkit-user-select:none; }
.ptz-pad button:active { filter: brightness(1.25); }
.ptz-zoom button { padding:14px 0; font-size:18px; touch-action:none; user-select:none; -webkit-user-select:none; }
.ptz-zoom button:active { filter: brightness(1.25); }
.ptz-zoom { display:grid; grid-template-columns: 1fr auto 1fr; gap:6px; margin:10px 0 14px; }
.ptz-zoom #ptz-stop { padding:14px 12px; font-size:14px; }
.ptz-zoom button { font-size:15px; }
.ptz-panel input[type=range] { width:100%; }
.ptz-presets { display:flex; flex-wrap:wrap; gap:6px; font-size:14px; }
.ptz-presets button { padding:6px 10px; font-size:13px; }
.ptz-hint { font-size:12px; margin:14px 0 0; }
.ptz-msg { color: var(--warn); font-size:13px; min-height:1em; margin:6px 0 0; }
#ptz-toggle.active { background: var(--accent); color:#04121f; border-color: var(--accent); }
.tabs { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
.tabs a { margin-right:0; }
.ptz-presets-box { margin-top:14px; border-top:1px solid var(--line); padding-top:10px; }
.ptz-presets-box summary { cursor:pointer; font-weight:600; }
.ptz-preset-row { display:grid; grid-template-columns: minmax(0, 1fr) auto; gap:6px; margin-top:10px; }
.ptz-preset-tools { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.ptz-preset-tools button { padding:6px 10px; font-size:13px; }
button.danger { color: var(--bad); border-color: var(--bad); }
.player.yv-starting { opacity: 0; }
.player { transition: opacity .25s ease; }
.codec-note { color: var(--warn); font-size: 14px; border: 1px solid var(--warn); border-radius: 8px; padding: 8px 12px; margin: 6px 0 0; }
.table { width:100%; border-collapse:collapse; font-size:14px; }
.table th, .table td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
.table th { color: var(--muted); font-weight:600; }
form.inline { display:inline-flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0; }
form.inline select { width:auto; }
label.check { display:inline-flex; align-items:center; gap:4px; margin:0; color:var(--text); }
.mono { font-family: ui-monospace, Consolas, monospace; }
textarea.mono { width:100%; background:#0c0f13; color:var(--text); border:1px solid var(--line); border-radius:8px; padding:10px; font-size:13px; }
.count { display:inline-block; min-width:18px; padding:0 6px; border-radius:999px; background:var(--accent); color:#04121f; font-size:12px; font-weight:700; text-align:center; }
.report-btn { position:fixed; right:16px; bottom:16px; background:var(--panel); border:1px solid var(--line); color:var(--muted); padding:8px 12px; border-radius:999px; font-size:13px; }
.report-btn:hover { color:var(--text); border-color:var(--accent); text-decoration:none; }
textarea { width:100%; padding:9px 10px; border-radius:8px; border:1px solid var(--line); background:#0c0f13; color:var(--text); font-size:14px; font-family:inherit; }
.thread { display:flex; flex-direction:column; gap:12px; }
.msg { border:1px solid var(--line); border-radius:10px; padding:12px 14px; background:var(--panel); }
.msg.staff { border-color:#2b4a6b; } .msg.internal { border-style:dashed; border-color:var(--warn); }
.msg .meta { font-size:12px; color:var(--muted); margin-bottom:6px; } .msg .body { white-space:pre-wrap; overflow-wrap:anywhere; }
.msg img { max-width:100%; max-height:420px; border-radius:6px; margin-top:8px; border:1px solid var(--line); }
.filters a { margin-right:12px; } .filters a.on { color:var(--text); font-weight:600; }
.side-cols { display:grid; grid-template-columns: minmax(0,1fr) 300px; gap:16px; align-items:start; }
@media (max-width: 860px) { .side-cols { grid-template-columns: minmax(0,1fr); } }
dl.facts { display:grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap:4px 12px; margin:0; font-size:14px; } dl.facts dt { color:var(--muted); } dl.facts dd { margin:0; overflow-wrap:anywhere; }
.thumb { position:relative; aspect-ratio:16/9; margin:-20px -20px 12px; border-radius:10px 10px 0 0; overflow:hidden; background:#0c0f13; }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; transition: filter .3s; }
.thumb.offline img { filter: grayscale(1) brightness(.55); }
.thumb .state { position:absolute; left:8px; bottom:8px; }
.thumb .state .badge { background:rgba(12,15,19,.85); margin:0; }
.badge.live::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--ok); margin-right:5px; vertical-align:1px; }
.offline-tag { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:rgba(15,18,22,.9); color:var(--text); font-weight:700; letter-spacing:.04em; padding:6px 16px; border-radius:8px; font-size:18px; pointer-events:none; }
.offline-tag.big { font-size:28px; padding:10px 24px; }
.offline-tag[hidden] { display:none; }
.video-wrap { position:relative; }
.player-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:6px; flex-wrap:wrap; }
.player-bar .quality { display:flex; align-items:center; gap:8px; margin:0; font-size:13px; }
.player-bar .quality select { width:auto; padding:5px 8px; font-size:13px; }
.notice { border:1px solid var(--line); border-left:4px solid var(--warn); background:var(--panel); border-radius:8px; padding:12px 14px; margin:10px 0; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.notice.bad { border-left-color:var(--bad); }
.notice form { margin:0 0 0 auto; }
.health { margin-top:16px; } .health h2 { margin:0 0 10px; font-size:16px; }
.health-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px,1fr)); gap:10px; margin-bottom:8px; }
.health-tiles div { border:1px solid var(--line); border-radius:8px; padding:8px 10px; }
.health-tiles .k { display:block; font-size:12px; color:var(--muted); } .health-tiles .v { display:block; font-size:18px; font-weight:700; }
.chart svg { width:100%; display:block; } .chart .axis { stroke:var(--line); } .chart text { fill:var(--muted); font-size:11px; }
.legend { display:flex; gap:14px; font-size:12px; color:var(--muted); margin-top:4px; }
.legend i { display:inline-block; width:10px; height:3px; margin-right:5px; vertical-align:middle; }
.health-tiles .s { display:block; font-size:11px; color:var(--muted); margin-top:2px; }
.health-tiles .v.low { color:var(--warn); }
.player-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
button.small { padding:5px 10px; font-size:13px; }
.yv-stats { position:absolute; top:10px; left:10px; background:rgba(12,15,19,.88); border:1px solid var(--line);
  border-radius:8px; padding:8px 12px; font:12px/1.5 ui-monospace, Consolas, monospace; color:var(--text); min-width:220px; z-index:3; }
.yv-stats div { display:flex; justify-content:space-between; gap:16px; } .yv-stats span { color:var(--muted); }
.yv-stats[hidden] { display:none; }
.host-logo { height:40px; max-width:260px; object-fit:contain; vertical-align:middle; background:rgba(255,255,255,.06); border-radius:4px; padding:2px 4px; }
.logo-preview { height:60px; max-width:240px; object-fit:contain; background:#fff; border-radius:6px; padding:6px; }
.logo-status { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.host-banner { display:block; width:auto; height:auto; max-width:100%; max-height:140px; margin:12px auto 4px; border-radius:6px; }   /* keeps its shape; never enlarged past its real size */
.host-banner-link { display:block; }
.logo-preview { max-width:480px; }
.credit-row { margin:4px 0 6px; }
.credit { display:inline-flex; align-items:center; gap:10px; font-size:1.05rem; }
.credit a { font-weight:600; }
.avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; background:#1c2430; border:1px solid var(--line); }
.avatar.big { width:72px; height:72px; }
.avatar.initials { display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; color:var(--text); }
.avatar.initials.big { font-size:24px; }
.avatar-row { display:flex; gap:14px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.sponsors { display:flex; align-items:center; gap:14px; margin:12px 0 4px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); min-height:64px; }
.sponsors-label { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); flex:none; }
.sponsors-track { position:relative; flex:1; min-height:44px; }
.sponsor { position:absolute; inset:0; display:flex; align-items:center; opacity:0; transition:opacity .6s; pointer-events:none; }
.sponsor.on { opacity:1; pointer-events:auto; }
.sponsor a { display:inline-flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; }
.sponsor a:hover .sponsor-name { text-decoration:underline; }
.sponsor-name { font-weight:600; }
.sponsor-logo { height:40px; width:auto; max-width:200px; object-fit:contain; }
.sponsors:not([data-rotate="1"]) .sponsor { position:static; opacity:1; pointer-events:auto; }
@media (prefers-reduced-motion: reduce) {
  .sponsors-track { display:flex; flex-wrap:wrap; gap:18px; }
  .sponsor { position:static; opacity:1; pointer-events:auto; transition:none; }
}
.sp-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.sp-row form { margin:0; }
.mode-tab { padding:4px 10px; border:1px solid var(--line); border-radius:999px; }
.mode-tab.on { border-color:var(--accent); color:var(--text); font-weight:600; }
.agree-item { display:flex; gap:10px; align-items:flex-start; margin:8px 0; line-height:1.45; }
.agree-item input { margin-top:3px; flex:none; }
.req-photos { display:flex; gap:12px; flex-wrap:wrap; }
.req-photos a { display:block; flex:1 1 140px; max-width:100%; }
.req-photos img { display:block; width:100%; max-height:260px; object-fit:cover; border-radius:6px; border:1px solid var(--line); margin-top:4px; }
/* camera request pages grow with the window (1.125.2): wider page, and the details column with it */
main.req-page { max-width:min(1600px, 100%); }
main.req-page .side-cols { grid-template-columns: minmax(0,1fr) clamp(300px, 32%, 480px); }
@media (max-width: 860px) { main.req-page .side-cols { grid-template-columns: minmax(0,1fr); } }
.staff-switch { display:flex; gap:8px; align-items:center; margin:6px 0; flex-wrap:wrap; }
.staff-switch input { width:260px; }
.credits-list { list-style:none; margin:6px 0 0 50px; padding:0; display:flex; flex-wrap:wrap; gap:6px 16px; font-size:14px; color:var(--muted); }
.credits-list li { display:inline-flex; align-items:center; gap:6px; }
.credits-list a { display:inline-flex; align-items:center; gap:6px; color:var(--text); }
.credits-list .avatar { width:22px; height:22px; font-size:10px; }
.credits-list .name { color:var(--text); font-weight:600; }
.credit-logo { height:22px; width:auto; max-width:120px; object-fit:contain; }
main.wide { max-width:none; }
/* Camera page: the whole column (title, credits, panel, cards) is as wide as the video, which grows with the
   screen but stays within the window's height (16:9) so the tabs below it stay in view; beside-the-video
   layouts add the panel's width. main has 20 px side padding. */
main.cam-wide { --vidw: calc((100vh - 280px) * 16 / 9); --panelw: clamp(380px, 24vw, 560px);
  max-width: min(94vw, 2400px, calc(var(--vidw) + 40px)); }
@media (min-width: 1200px) {
  main.cam-wide:has(.cam-layout.side) { max-width: min(94vw, 2400px, calc(var(--vidw) + 16px + var(--panelw) + 40px)); }
}
/* Theatre: the video as big as the window allows (the panel goes below it, except in Control) */
main.cam-wide.theatre { --vidw: calc((100vh - 150px) * 16 / 9); max-width: min(99vw, calc(var(--vidw) + 40px)); }
@media (min-width: 1200px) {
  main.cam-wide.theatre:has(.cam-layout.side) { max-width: min(99vw, calc(var(--vidw) + 16px + var(--panelw) + 40px)); }
}
@media (max-width: 900px) { #yv-theatre { display:none; } }   /* phones: the video already fills the width */
#yv-theatre[aria-pressed="true"] { background:var(--accent); border-color:var(--accent); color:#04121f; }
/* Archive tab: a timeline of what's recorded, then the player */
.ar-head { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.ar-head strong { font-variant-numeric:tabular-nums; }
.ar-zoom { display:flex; align-items:center; gap:10px; font-size:13px; }
.ar-zoom label { display:flex; align-items:center; gap:6px; margin:0; color:var(--muted); } .ar-zoom select { width:auto; }
.ar-line { position:relative; height:28px; background:#12171d; border:1px solid var(--line); border-radius:6px; cursor:pointer; overflow:hidden; }
.ar-line:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ar-spans span { position:absolute; top:4px; bottom:4px; background:rgba(74,168,255,.55); border-radius:3px; min-width:2px; }
.ar-head-mark { position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:#fff; box-shadow:0 0 0 1px rgba(0,0,0,.4); }
.ar-ticks { position:relative; height:18px; font-size:11px; color:var(--muted); margin-bottom:10px; }
.ar-ticks span { position:absolute; transform:translateX(-50%); white-space:nowrap; }
.ar-video { width:100%; aspect-ratio:16/9; background:#000; display:block; }
.ar-video[hidden] { display:none; }
/* archive mode: the main window plays the recording; live's own pieces step aside */
.video-wrap.ar-on #yv-player, .video-wrap.ar-on .yv-bar, .video-wrap.ar-on .cam-overlay, .video-wrap.ar-on .use-label,
.video-wrap.ar-on #cam-offline, .cam-video.ar-on .player-bar, .cam-video.ar-on .yv-limit { display:none !important; }
.ar-badge { position:absolute; z-index:3; left:12px; top:12px; display:flex; align-items:center; gap:8px; padding:5px 10px;
  border-radius:8px; background:rgba(0,0,0,.72); font-weight:700; font-variant-numeric:tabular-nums; }
.ar-badge[hidden] { display:none; }
.ar-badge-tag { background:#b07cff; color:#111; border-radius:5px; padding:1px 7px; font-size:12px; letter-spacing:.05em; text-transform:uppercase; }
.ar-main { margin-top:8px; }
.ar-main[hidden] { display:none; }
.ar-pane-note { margin-top:0; }
.ar-tools { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-top:8px; }
.ar-tools label { display:flex; align-items:center; gap:6px; margin:0; font-size:13px; color:var(--muted); }
.ar-tools select { width:auto; }
.ar-clip { display:flex; align-items:center; gap:6px; margin-left:auto; }
.ar-msg { min-height:1.2em; margin:6px 0 0; font-size:13px; }
#ar-download[aria-disabled] { opacity:.5; pointer-events:none; }
.ar-size { font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
/* camera page: round (pill) buttons */
main.cam-wide button:not(.ovl-btn):not(.ptz-pad button):not(.ptz-zoom button), main.cam-wide .btn { border-radius:999px; }
.map-bar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:12px; }
.map-bar select { width:auto; }
.map-legend { margin-left:auto; display:flex; align-items:center; gap:6px; font-size:13px; }
.map-legend .lg { display:inline-block; width:10px; height:10px; border-radius:50%; margin-left:8px; }
.lg.live { background:#3ccf8e; } .lg.recent { background:#f2b84b; } .lg.down { background:#ff6b6b; } .lg.off { background:#6b7686; } .lg.ptz { background:#3a4350; border:2px solid #e6e9ee; }
.badge.st-recent { border-color:#f2b84b; color:#f2b84b; } .badge.st-down { border-color:#ff6b6b; color:#ff6b6b; } .badge.declined { border-color:#b07cff; color:#b07cff; }
.cam-map { height:calc(100vh - 170px); min-height:420px; border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.yv-popup .maplibregl-popup-content { background:var(--panel); color:var(--text); padding:0; border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.yv-popup .maplibregl-popup-tip { display:none; }
.yv-popup .maplibregl-popup-close-button { color:var(--text); font-size:18px; }
.map-card img { display:block; width:260px; aspect-ratio:16/9; object-fit:cover; background:#0c0f13; }
.map-card .mc-body { padding:8px 10px 10px; font-size:13px; } .map-card .mc-body .btn { margin-top:8px; }
.map-picker { margin:8px 0 14px; } .mp-map { height:320px; border-radius:8px; overflow:hidden; border:1px solid var(--line); }
.mp-hint { font-size:12px; margin:4px 0 0; }
.mp-compass { display:flex; flex-wrap:wrap; gap:4px; margin:4px 0 12px; }
.maplibregl-ctrl-attrib { background:rgba(15,18,22,.7) !important; } .maplibregl-ctrl-attrib a { color:var(--muted) !important; }
.map-group { width:310px; max-height:360px; overflow-y:auto; }
.mg-head { padding:8px 10px; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); border-bottom:1px solid var(--line); }
.mg-row { display:flex; gap:10px; align-items:center; padding:8px 10px; color:var(--text); text-decoration:none; border-bottom:1px solid var(--line); font-size:13px; }
.mg-row:hover { background:rgba(255,255,255,.04); text-decoration:none; }
.mg-row img { width:96px; aspect-ratio:16/9; object-fit:cover; border-radius:4px; background:#0c0f13; flex:none; }
.yv-popup.pinned .maplibregl-popup-content { border-color:#3b4758; }
.map-card a img { cursor:pointer; }
.mg-row .mg-text { flex:1; min-width:0; }
.mg-row .mg-pic { flex:none; display:block; }
.mg-row .btn { flex:none; padding:4px 10px; font-size:12px; }
.cam-where { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:16px; margin-top:16px; }
.cam-where h2 { margin:0 0 4px; } .cam-where h3 { margin:12px 0 6px; font-size:15px; }
.where-map { height:340px; border-radius:8px; overflow:hidden; border:1px solid var(--line); }
.nearby { list-style:none; margin:0; padding:0; max-height:260px; overflow-y:auto; }
.nearby a { display:flex; gap:10px; align-items:center; padding:6px 0; color:var(--text); text-decoration:none; border-bottom:1px solid var(--line); font-size:13px; }
.nearby a:hover strong { text-decoration:underline; }
.nearby img { width:84px; aspect-ratio:16/9; object-fit:cover; border-radius:4px; background:#0c0f13; flex:none; }
.nearby .badge { margin-left:4px; }
@media (max-width: 780px) { .cam-where { grid-template-columns:1fr; } .where-map { height:260px; } }
.ptz-dir-compass { display:flex; flex-wrap:wrap; gap:4px; margin:6px 0; }
.ptz-dir-compass .small { padding:3px 8px; font-size:12px; }
.mg-sub { display:block; color:var(--muted); font-size:12px; margin:1px 0 3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ptz-dir-now { font-size:13px; margin:6px 0; }
.wx { margin-top:16px; }
.wx-head { display:flex; justify-content:space-between; align-items:baseline; }
.wx-head h2 { margin:0 0 10px; }
.wx-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:10px; }
.wx-tile { background:#12171d; border:1px solid var(--line); border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
.wx-label { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.wx-value { font-size:20px; font-weight:650; }
.wx-sub { font-size:12px; color:var(--muted); }
.wx-arrow { display:inline-block; color:var(--accent); }
.wx-foot { font-size:12px; margin:8px 0 0; }
.wx-st { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:8px 0; border-bottom:1px solid var(--line); }
.mg-text strong { display:block; margin-bottom:3px; }
.badge.ptz-tag { border-color:#e6e9ee; color:#e6e9ee; }
.wx-foot { white-space:pre-line; }
.ptz-extra { border-top:1px solid var(--line); margin-top:12px; padding-top:10px; display:flex; flex-direction:column; gap:8px; }
.ptz-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.ptz-k { font-size:12px; color:var(--muted); width:54px; flex:none; }
.ptz-aux .btn, .ptz-aux button { white-space:nowrap; }
.ptz-keep { font-size:12px; }
.cam-alerts { display:flex; flex-direction:column; gap:6px; margin:0 0 12px; }
.cam-alerts:empty { display:none; }
.nws-alert { border:1px solid var(--alert); border-left:6px solid var(--alert); border-radius:8px; background:color-mix(in srgb, var(--alert) 10%, var(--panel)); }
.nws-alert.warning { background:color-mix(in srgb, var(--alert) 18%, var(--panel)); }
.nws-alert summary { display:flex; align-items:center; gap:10px; padding:8px 12px; cursor:pointer; list-style:none; }
.nws-alert summary::-webkit-details-marker { display:none; }
.nws-swatch { width:12px; height:12px; border-radius:3px; background:var(--alert); flex:none; }
.nws-until { color:var(--text); opacity:.85; }
.nws-more { margin-left:auto; font-size:12px; color:var(--muted); }
.nws-more .nws-hide, .nws-alert[open] .nws-more .nws-show { display:none; }
.nws-alert[open] .nws-more .nws-hide { display:inline; }
.nws-close { margin-top:2px; }
.nws-body { padding:0 14px 12px 34px; font-size:14px; }
.nws-text { white-space:pre-line; margin:4px 0 10px; color:#c3cad5; }
.nws-headline { font-weight:600; }
.nws-src { font-size:12px; }
.badge.nws { border-color:var(--alert); color:var(--text); background:color-mix(in srgb, var(--alert) 25%, transparent); }
.mf-sep { width:1px; height:18px; background:var(--line); }
.yv-popup .mg-head, .yv-popup .alert-head { padding-right:30px; }        /* room for the popup's close button */
.alert-head { display:flex; flex-direction:column; gap:2px; padding:9px 10px; border-bottom:1px solid var(--line);
  border-left:4px solid var(--alert); }
.alert-head strong { color:var(--alert); font-size:14px; text-transform:none; }
.alert-head span { font-size:12px; color:var(--muted); }
.alert-head.big strong { font-size:18px; } .alert-head.big { border-bottom:0; margin-bottom:8px; }
.alert-pop-body { padding:8px 10px; font-size:13px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.alert-read { font-size:13px; }
.alert-dialog { max-width:640px; width:calc(100% - 32px); max-height:80vh; background:var(--panel); color:var(--text);
  border:1px solid var(--line); border-radius:10px; padding:18px 20px; }
.alert-dialog::backdrop { background:rgba(0,0,0,.55); }
.alert-dialog-close { position:absolute; top:8px; right:10px; background:none; border:0; color:var(--muted); font-size:22px; cursor:pointer; }
.cam-map { position:relative; }
.radar-player { position:absolute; left:50%; transform:translateX(-50%); bottom:24px; z-index:5; display:flex; gap:6px;
  align-items:center; background:rgba(15,18,22,.88); border:1px solid var(--line); border-radius:8px; padding:6px 8px; }
.rp-time { min-width:64px; text-align:center; font-variant-numeric:tabular-nums; font-size:13px; }
.radar-player select { padding:4px 6px; font-size:13px; height:30px; width:auto; }
.radar-player { flex-wrap:wrap; max-width:calc(100% - 24px); justify-content:center; }
.mf-more { position:relative; }
.mf-more summary { cursor:pointer; color:var(--muted); font-size:14px; list-style:none; padding:4px 8px; border:1px solid var(--line); border-radius:6px; }
.mf-more summary::-webkit-details-marker { display:none; }
.mf-more summary::after { content:" \25BE"; }
.mf-more[open] summary { color:var(--text); }
.mf-menu { position:absolute; top:calc(100% + 6px); left:0; z-index:20; background:var(--panel); border:1px solid var(--line);
  border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:8px; min-width:190px; box-shadow:0 8px 24px rgba(0,0,0,.4); }
.map-legend { display:flex; flex-wrap:wrap; gap:4px; margin-left:auto; }
.lg-chip { background:none; border:1px solid transparent; border-radius:999px; color:var(--muted); font-size:13px;
  padding:3px 9px; cursor:pointer; display:inline-flex; align-items:center; gap:5px; }
.lg-chip:hover { border-color:var(--line); color:var(--text); }
.lg-chip[aria-pressed="true"] { border-color:#3b4758; background:rgba(255,255,255,.06); color:var(--text); }
.lg-chip.dim { opacity:.45; }
.lg-chip .lg { margin:0; }
.lg-chip.static { cursor:default; } .lg-chip.static:hover { border-color:transparent; color:var(--muted); }
.rp-legend { position:absolute; bottom:calc(100% + 8px); right:0; background:rgba(15,18,22,.94); border:1px solid var(--line);
  border-radius:8px; padding:8px 10px; max-height:60vh; overflow:auto; }
.rp-legend img { display:block; max-width:none; }
.rp-legend { min-width:230px; font-size:12px; }
.lgd-title { font-weight:600; margin-bottom:6px; }
.lgd-row { display:flex; align-items:center; gap:8px; margin:4px 0; }
.lgd-name { width:150px; flex:none; color:var(--muted); }
.lgd-bar { flex:1; height:10px; border-radius:3px; min-width:110px; }
.lgd-swatch { width:14px; height:10px; border-radius:2px; flex:none; }
.lgd-scale { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; margin-top:2px; }
.timelapses video { width:100%; max-height:480px; background:#000; border-radius:8px; display:block; }
.tl-meta { margin:8px 0 10px; font-size:13px; }
.tl-list { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.tl-chip { background:var(--panel); border:1px solid var(--line); color:var(--text); border-radius:999px; padding:4px 11px;
  font-size:13px; cursor:pointer; }
.tl-chip:hover { border-color:#3b4758; }
.tl-chip.on { background:#1d2836; border-color:#4aa8ff; }
.tl-chip.storm { border-color:#5a2a2a; }
.tl-chip.storm.on { border-color:#ff6b6b; }
.timelapses h3 { font-size:14px; margin:12px 0 6px; color:var(--muted); }
.tl-chip.custom { border-color:#2d4a33; }
.tl-chip.custom.on { border-color:#4caf6a; }
.tl-make { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
.tl-make summary { cursor:pointer; font-weight:600; }
.tl-form { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; margin-top:10px; font-size:14px; }
.tl-form select, .tl-form input[type=datetime-local] { width:auto; }
.tl-form input.tl-num { width:4.5em; }
.tl-status { margin:8px 0 0; font-size:13px; }
.tl-form input, .tl-form select { color-scheme: dark; }
.rp-auto { font-size:13px; white-space:nowrap; }

/* Player: plan limit note (phase C) */
.yv-limit { margin:8px 0; padding:12px 14px; border:1px solid #3a4658; border-radius:8px; background:#161b21; }
.yv-limit p { margin:0 0 8px; }
.yv-limit p:last-child { margin:0; }

/* Organization page: choosing a plan (billing) */
.org-buy { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; border-top:1px solid var(--line); padding-top:12px; margin-top:12px; }
.org-buy h3, .org-buy p { flex-basis:100%; margin:0; }

/* ---- Tables on phones (u053): wrap wide tables in .table-wrap (scrolls inside its own box); tables with
   class "table stack" turn each row into a small card below 600 px, each cell labeled from its data-label ---- */
.table-wrap { overflow-x:auto; max-width:100%; }
@media (max-width: 600px) {
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display:block; width:100%; }
  .table.stack thead, .table.stack th { display:none; }
  .table.stack tr { border-bottom:1px solid var(--line); padding:8px 0; }
  .table.stack tr:first-child:not(:has(td)) { display:none; padding:0; border:0; }
  .table.stack td { border:0; padding:3px 0; }
  .table.stack td[data-label]::before { content:attr(data-label); display:block; font-size:12px; color:var(--muted); }
  .table.stack td:empty { display:none; }
  .table.stack form.inline { width:100%; }
  .table.stack form.inline select { flex:1 1 160px; }
}

/* ---- header, menus and account area ---- */
.skip-link { position:absolute; left:-9999px; top:0; z-index:100; background:var(--accent); color:#04121f; padding:8px 12px; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }
a:focus-visible, summary:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.head-nav, .head-right { display:flex; align-items:center; gap:4px 18px; min-width:0; }
.head-right { margin-left:auto; }
.site-head a, .site-head summary { white-space:nowrap; color:var(--text); font-size:15px; }
.site-head .head-nav > a, .site-head .head-nav > details > summary, .site-head .head-right > a:not(.btn),
.site-head .head-right > details > summary { color:#c3cad5; padding:6px 2px; border-bottom:2px solid transparent; }
.site-head .head-nav > a:hover, .site-head summary:hover { color:var(--text); text-decoration:none; }
.site-head [aria-current="page"] { color:var(--text) !important; border-bottom-color:var(--accent) !important; }
.site-head .btn.small { padding:7px 14px; }
.menu { position:relative; }
.menu > summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; user-select:none; }
.menu > summary::-webkit-details-marker { display:none; }
.menu:not(.phone-menu):not(.acct-menu) > summary::after, .acct-menu > summary::after { content:""; width:6px; height:6px; margin-left:2px;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); opacity:.7; }
.menu[open] > summary { color:var(--text); }
.menu-pop { position:absolute; top:calc(100% + 8px); left:-10px; z-index:60; min-width:220px; background:var(--panel);
  border:1px solid #2f3843; border-radius:10px; padding:6px; box-shadow:0 12px 32px rgba(0,0,0,.45);
  display:flex; flex-direction:column; }
.menu-pop.right { left:auto; right:0; }
.menu-pop a, .menu-btn { display:flex; align-items:center; gap:8px; justify-content:space-between; padding:8px 10px;
  border-radius:6px; color:var(--text) !important; font-size:14px; font-weight:400; text-align:left; }
.menu-pop form { margin:0; }
.menu-btn { width:100%; background:none; border:0; cursor:pointer; font-family:inherit; }
.menu-pop a:hover, .menu-btn:hover, .menu-pop a:focus-visible, .menu-btn:focus-visible { background:#202832; text-decoration:none; }
.menu-sep { height:1px; background:var(--line); margin:6px 4px; }
.menu-head { margin:6px 10px 4px; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted);
  display:flex; align-items:center; gap:8px; }
.menu-head .avatar { width:22px; height:22px; font-size:10px; }
.edit-item { display:none !important; }
body:has(#yv-editable) .edit-item { display:flex !important; }
.acct-menu > summary .avatar { width:28px; height:28px; font-size:12px; }
.acct-name { max-width:16ch; overflow:hidden; text-overflow:ellipsis; }
.count { line-height:18px; }
.phone-only { display:none !important; }
.burger, .burger::before, .burger::after { display:block; width:20px; height:2px; background:currentColor; border-radius:2px; position:relative; }
.burger::before, .burger::after { content:""; position:absolute; left:0; }
.burger::before { top:-6px; } .burger::after { top:6px; }
.phone-menu > summary { padding:10px 8px !important; border:1px solid var(--line) !important; border-radius:8px; position:relative; }
.phone-menu[open] > summary { background:#202832; }
.phone-menu .dot { position:absolute; top:4px; right:4px; width:8px; height:8px; border-radius:50%; background:var(--accent); }
.menu-pop.sheet { position:fixed; left:0; right:0; top:56px; max-height:calc(100vh - 56px); overflow-y:auto; border-radius:0 0 12px 12px;
  border-left:0; border-right:0; padding:8px 12px 16px; }
.menu-pop.sheet a, .menu-pop.sheet .menu-btn { padding:11px 10px; font-size:16px; }
@media (max-width: 760px) {
  .wide-only { display:none !important; }
  .phone-only { display:block !important; }
  .site-head { gap:6px 16px; padding:8px 14px; }
  .site-head .brand { font-size:19px; gap:7px; }
  .site-head .brand img { width:26px; height:26px; }
  .head-nav { gap:14px; }
}
@media (max-width: 430px) { .site-head .beta-pill { display:none; } .head-nav { gap:10px; } }   /* phones: room for Map + Cameras beside the menu button */
@media (max-width: 360px) { .site-head .brand > span { display:none; } }
/* Footer, on every page but the map and the camera page */
.site-foot { border-top:1px solid var(--line); padding:28px 0 60px; color:var(--muted); font-size:14px; }
.site-foot .wrap { max-width:1100px; margin:0 auto; padding:0 24px; display:flex; gap:12px 20px; flex-wrap:wrap; }
.site-foot .foot-name { color:var(--text); font-weight:650; margin-right:auto; }
.site-foot .foot-slogan { color:var(--muted); font-weight:400; }
.report-btn { z-index:40; }
@media (max-width: 760px) { .report-btn { display:none; } }   /* phones: in the menu and the footer instead */
/* Account area: a side menu (tabs along the top on phones) and one page at a time */
.acct-layout { display:grid; grid-template-columns:210px minmax(0, 1fr); gap:24px; align-items:start; }
.acct-nav { display:flex; flex-direction:column; gap:2px; position:sticky; top:16px; }
.acct-nav a { padding:8px 12px; border-radius:8px; color:#c3cad5; font-size:14px; display:flex; justify-content:space-between; gap:8px; }
.acct-nav a:hover { background:var(--panel); color:var(--text); text-decoration:none; }
.acct-nav a[aria-current="page"] { background:var(--panel); color:var(--text); box-shadow:inset 3px 0 0 var(--accent); }
.acct-main { min-width:0; max-width:680px; }
.acct-main > h1 { margin-top:4px; }
.acct-main .card + .card { margin-top:16px; }
.link-list { list-style:none; margin:0; padding:0; }
.link-list li { padding:12px 0; border-bottom:1px solid var(--line); }
.link-list li:last-child { border-bottom:0; }
.link-list a { font-weight:600; }
.link-list .muted { display:block; margin-top:2px; }
.copy-row { display:flex; gap:8px; }
.copy-row input { flex:1; min-width:0; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.acct-main .plan-features { margin:6px 0 12px; padding-left:20px; color:#c3cad5; font-size:14px; }
.acct-main .plan-features li { margin:3px 0; }
.perks { margin:8px 0 12px; padding-left:20px; color:#c3cad5; font-size:14px; }
.perks li { margin:3px 0; }
@media (max-width: 760px) {
  .acct-layout { grid-template-columns:minmax(0, 1fr); gap:12px; }
  .acct-nav { flex-direction:row; flex-wrap:wrap; position:static; padding-bottom:6px; border-bottom:1px solid var(--line); }
  .acct-nav a { white-space:nowrap; padding:7px 10px; }
  .acct-nav a[aria-current="page"] { box-shadow:inset 0 -2px 0 var(--accent); }
}
/* Tabs on a page (the organization page): links to its sections; nav.js shows one at a time */
.page-tabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--line); margin:0 0 16px; }
.page-tabs a { padding:9px 14px; color:#c3cad5; white-space:nowrap; border-bottom:2px solid transparent; margin-bottom:-1px; }
.page-tabs a:hover { color:var(--text); text-decoration:none; }
.page-tabs a[aria-current="true"] { color:var(--text); border-bottom-color:var(--accent); }
.tab-panel { scroll-margin-top:16px; }
.tab-panel + .tab-panel { margin-top:16px; }
.invite-form { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; }
.invite-form label { margin:0; }
.invite-form input[type=email] { min-width:240px; }
.leave-org { margin:20px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.linkbtn.danger-link { color:var(--bad); font-size:13px; }
.tabs-on .tab-panel:not(.on) { display:none; }
.tabs-on .tab-panel + .tab-panel { margin-top:0; }

/* ---- host pages (camera manage pages, requests) ---- */
/* the shared sub-header on a camera's host pages (u031); the camera page's panel has its own tabs */
.manage-nav { margin:0 0 14px; }
.manage-back { display:inline-block; font-size:14px; margin-bottom:8px; }
.manage-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.manage-tabs a { color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:6px 13px; font-size:14px;
  text-decoration:none; }
.manage-sub { display:flex; flex-wrap:wrap; gap:14px; margin:8px 0 0 4px; font-size:13px; }
.manage-sub a { color:var(--muted); padding:2px 0; }
.manage-sub a:hover { color:var(--text); }
.manage-sub a[aria-current="page"] { color:var(--text); font-weight:600; text-decoration:underline; text-underline-offset:4px; }
.manage-tabs a:hover { color:var(--text); border-color:#3a4450; }
.manage-tabs a[aria-current="page"] { background:var(--accent); border-color:var(--accent); color:#04121f; font-weight:600; }
.cam-tool .manage-nav { display:none; }
/* Connection page: the easy path first, the by-hand settings under it (u032) */
.conn-easy { margin:0 0 16px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.conn-easy p { margin:0 0 10px; }
.conn-easy p:last-child { margin:0; }
/* request progress: Request sent, Reviewed, Approved, Connected (u033) */
.req-steps { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; padding:0; counter-reset:step; }
.req-steps li { flex:1 1 150px; border:1px solid var(--line); border-radius:8px; padding:8px 10px; font-size:14px;
  color:var(--muted); counter-increment:step; }
.req-steps li::before { content:counter(step); display:inline-block; width:22px; height:22px; line-height:22px;
  text-align:center; border-radius:50%; border:1px solid var(--line); margin-right:6px; font-size:12px; }
.req-steps li.done { color:var(--text); border-color:var(--ok); }
.req-steps li.done::before { content:"\2713"; color:var(--ok); border-color:var(--ok); }
.req-steps li.now { color:var(--text); border-color:var(--accent); font-weight:600; }
.req-steps li.now::before { border-color:var(--accent); color:var(--accent); }
.req-next ol { margin:6px 0 0; padding-left:20px; }
.req-next li { margin:0 0 6px; }
/* host agreement in headed groups (u036) */
.agreement h3 { font-size:15px; margin:18px 0 8px; }
.agreement .agree-item { margin:0 0 12px; line-height:1.45; }
/* stacked person rows on phones: role and links side by side, Save and Remove in reach (u039) */
.manage-rows select { width:auto; }
.manage-rows td form.inline { display:inline-flex; }
@media (max-width: 600px) {
  .table.stack.manage-rows td form.inline { width:auto; }
  .table.stack.manage-rows td { white-space:normal !important; }
  .table.stack.manage-rows input:not([type=checkbox]):not([type=file]), .table.stack.manage-rows select { width:100% !important; max-width:none !important; }
}

/* ---- sign-in and account pages (allauth) ---- */
.auth-form { margin:0; }
.auth-field { margin:0 0 14px; }
.auth-field input[type=text], .auth-field input[type=email], .auth-field input[type=password], .auth-field input[type=tel] { width:100%; }
.auth-field label.check { gap:8px; font-size:14px; line-height:1.4; }
.auth-field .helptext ul { margin:4px 0 0; padding-left:18px; }
.auth-field .helptext li { font-size:12px; color:var(--muted); }
.auth-field label.check input { margin:0; flex:none; }
.auth-errors .errorlist { padding-left:0; list-style:none; }
.auth-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:4px; }
.auth-actions.vertical { flex-direction:column; align-items:stretch; }
.auth-actions.vertical > .btn, .auth-actions.vertical > button { text-align:center; }
.auth-actions .danger { color:var(--bad); border-color:var(--bad); }
.auth-actions .small, td .btn.small, td button.small { padding:5px 10px; font-size:13px; }
.auth-or { display:flex; align-items:center; gap:10px; margin:18px 0; color:var(--muted); font-size:13px; }
.auth-or::before, .auth-or::after { content:""; flex:1; height:1px; background:var(--line); }
.auth-foot { margin:20px 0 0; padding-top:14px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.auth-panel { padding:14px 0 16px; border-top:1px solid var(--line); }
.auth-panel h2 { margin:0 0 6px; font-size:16px; color:var(--text); }
.auth-panel p { margin:0 0 10px; color:var(--muted); font-size:14px; }
.auth-table { overflow-x:auto; }
.auth-alert { color:var(--warn); }
.auth-qr { display:block; max-width:220px; width:100%; margin:0 auto 14px; background:#fff; border-radius:8px; padding:8px; }
/* Cameras page */
.dash-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dash-actions { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; }
.dash-filter { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin:16px 0 0; }
.dash-filter input[type=search] { flex:1 1 220px; width:auto; padding:9px 10px; border-radius:8px; border:1px solid var(--line);
  background:#0c0f13; color:var(--text); font-size:14px; }
.dash-filter select { width:auto; }
.cam-slot { display:flex; flex-direction:column; gap:6px; }
.cam-slot > .cam { flex:1; }
.connect-link { font-size:13px; padding:0 4px; }
.grid.compact { grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:10px; }
.grid.compact .card { padding:12px; } .grid.compact .thumb { margin:-12px -12px 8px; }
.host-nudge { margin-top:24px; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; }
/* Operations on phones: Camera, Status, In and Viewers, unless "More columns" */
.ops-cams-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
@media (max-width: 600px) {
  #ops-cams:not(.all) th:nth-child(n+4):not(:nth-child(6)), #ops-cams:not(.all) td:nth-child(n+4):not(:nth-child(6)) { display:none; }
}
/* The map on phones: the map gets the screen; layers and the key open from "Layers" */
.map-layers { display:contents; }
@media (max-width: 760px) {
  main.wide:has(.cam-map) { padding:10px 10px 0; }
  .map-bar { gap:8px 10px; margin-bottom:8px; }
  .map-bar .map-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .map-bar:not(.layers-open) .map-layers, .map-bar:not(.layers-open) .map-legend, .map-bar:not(.layers-open) .mf-sep { display:none; }
  .map-bar.layers-open .map-layers { display:flex; flex-wrap:wrap; gap:6px 14px; flex-basis:100%; }
  .map-bar.layers-open .map-legend { flex-basis:100%; margin-left:0; }
  .map-bar .mf-sep { display:none; }
  .cam-map { height:calc(100vh - 140px); height:calc(100dvh - 130px); min-height:320px; }
}

/* "Beta" label next to the logo (Site settings: show the Beta label) */
.beta-pill { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:2px 7px; border-radius:999px;
  border:1px solid var(--accent); color:var(--accent); text-decoration:none; margin-left:-4px; align-self:center; white-space:nowrap; }
.beta-pill:hover { background:var(--accent); color:var(--bg); }

/* ---------- Multi-view ---------- */
.mv-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.mv-page .mv-scenes { max-width:1100px; margin-left:auto; margin-right:auto; }
.mv-head h1 { margin:0; }
.mv-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.mv-tools .active { background:var(--warn); color:#111; border-color:var(--warn); }
.mv-tools label { display:flex; align-items:center; gap:6px; margin:0; color:var(--muted); }
.mv-tools select { width:auto; margin:0; }
.mv-note { margin:8px 0 12px; font-size:14px; }
/* The grid fills the window: as wide as the space allows, but never taller than the screen (16:9 tiles). */
main.mv-page { padding:14px 20px 40px; }
.mv-grid { --cols:2; --rows:2; --gap:8px; --h:calc(100vh - 205px);
  display:grid; gap:var(--gap); grid-template-columns:repeat(var(--cols), minmax(0, 1fr));
  width:100%; margin:0 auto; align-self:start;
  max-width:calc((var(--h) - (var(--rows) - 1) * var(--gap)) / var(--rows) * 16 / 9 * var(--cols) + (var(--cols) - 1) * var(--gap)); }
.mv-grid[data-grid="6"] { --cols:3; --rows:2; }
.mv-grid[data-grid="9"] { --cols:3; --rows:3; }
.mv-grid[data-grid="16"] { --cols:4; --rows:4; }
.mv-grid.mv-focused { --cols:1; --rows:1; }
.mv-tile { position:relative; background:#05070a; border:1px solid var(--line); border-radius:8px; overflow:hidden;
  aspect-ratio:16/9; display:flex; flex-direction:column; }
.mv-tile video { width:100%; height:100%; object-fit:contain; background:#000; }
.mv-tile-head { position:absolute; inset:0 0 auto 0; z-index:2; display:flex; align-items:center; justify-content:space-between;
  gap:6px; padding:4px 6px; background:linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0)); font-size:13px; }
.mv-tile-head:empty { display:none; }
.mv-name { flex:1 1 auto; min-width:0; background:none; border:0; color:var(--text); font-weight:700; padding:2px;
  cursor:pointer; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mv-alert { position:absolute; z-index:2; left:6px; bottom:6px; max-width:calc(100% - 12px); background:rgba(0,0,0,.65);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.mv-tile-tools { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.mv-sound { display:inline-flex; align-items:center; padding:2px 5px !important; }
.mv-sound.on { background:var(--accent, #4aa8ff) !important; color:#000 !important; }
.mv-tile-tools button, .mv-link { background:rgba(0,0,0,.4); border:0; color:var(--text); border-radius:6px; padding:2px 7px;
  font-size:12px; cursor:pointer; text-decoration:none; }
.mv-msg { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; padding:12px; text-align:center; color:var(--muted); font-size:14px; }
.mv-msg[hidden] { display:none; }
.mv-msg { pointer-events:none; } .mv-msg button { pointer-events:auto; }
.mv-add { background:transparent; border:1px dashed var(--line); color:var(--text); border-radius:8px; padding:10px 16px; cursor:pointer; }
.mv-grid.mv-focused .mv-tile:not(.mv-big) { display:none; }
.mv-pick { width:min(560px, 94vw); max-height:80vh; padding:0; border:1px solid var(--line); border-radius:10px;
  background:var(--panel); color:var(--text); }
.mv-pick-head { display:flex; gap:8px; padding:10px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--panel); }
.mv-pick-head input { flex:1; }
.mv-list { padding:6px 10px 12px; overflow:auto; max-height:calc(80vh - 60px); }
.mv-list h3 { font-size:13px; color:var(--muted); margin:10px 0 4px; }
.mv-item { display:block; width:100%; text-align:left; background:none; border:0; border-radius:6px; color:var(--text);
  padding:8px; cursor:pointer; }
.mv-item:hover, .mv-item:focus { background:rgba(255,255,255,.06); }
.mv-in-use { opacity:.55; }
@media (max-width: 700px) {
  main.mv-page { padding:12px 12px 40px; }
  .mv-grid, .mv-grid[data-grid="6"], .mv-grid[data-grid="9"], .mv-grid[data-grid="16"] { --cols:2; max-width:none; }
  .mv-tile-tools .mv-link { display:none; }
}
.mv-wrap { display:flex; justify-content:center; }
.mv-wrap.with-map { display:grid; grid-template-columns:minmax(0, 1fr) clamp(320px, 24vw, 480px); gap:12px; align-items:start; }
.mv-side { position:sticky; top:10px; display:flex; flex-direction:column; gap:8px; }
.mv-side[hidden] { display:none; }
.mv-near { display:flex; gap:6px; }
.mv-near input { flex:1; min-width:0; }
.mv-map { height:calc(100vh - 290px); min-height:280px; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.mv-map-help { font-size:13px; margin:0; }
.mv-tile.mv-selected { outline:2px solid var(--accent); outline-offset:-2px; }
.mv-scenes { margin-top:16px; }
.mv-scene { border-top:1px solid var(--line); padding:8px 0; }
.mv-scene p { margin:4px 0; }
.mv-scene-opts { font-size:14px; }
.mv-scene-new { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.mv-scene-new input[type=text], .mv-scene-new #mv-scene-name { flex:1; min-width:200px; }
.mv-scene-links { border:1px solid var(--warn); border-radius:8px; padding:10px; margin-top:10px; }
.mv-link-row { display:grid; grid-template-columns:90px minmax(0, 1fr) auto; gap:6px; align-items:center; margin:4px 0; }
.mv-link-row input { font-family:monospace; font-size:12px; }
@media (max-width: 900px) {
  .mv-wrap.with-map { grid-template-columns:1fr; }
  .mv-wrap.with-map .mv-side { order:-1; position:static; }
  .mv-map { height:300px; }
}
.mv-back { position:absolute; z-index:3; left:10px; top:40px; display:flex; gap:8px; align-items:center; }
.mv-quality { width:auto; }
.mv-big .mv-alert { bottom:auto; top:84px; }
.mv-wrap.mv-wrap-focused { display:flex; }
.mv-wrap.mv-wrap-focused .mv-side { display:none; }
.mv-tile:fullscreen { border:0; border-radius:0; }
.mv-tile:fullscreen video { object-fit:contain; }
.mv-devices { font-size:14px; }
.mv-device { margin:4px 0; }
.mv-device.waiting { color:var(--warn); }
.mv-ips { min-width:260px; font-size:13px; }

/* ---------- The YonderView player's control bar (yvplayer.js) ---------- */
.yv-bar { position:absolute; z-index:4; left:0; right:0; bottom:0; display:flex; align-items:center; gap:6px;
  padding:22px 10px 8px; background:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.75)); opacity:0;
  transition:opacity .2s; pointer-events:none; }
.yv-bar.show, .yv-bar:focus-within { opacity:1; pointer-events:auto; }
.yv-bar-btn { width:34px; height:34px; padding:6px; border:0; border-radius:8px; background:transparent; color:#fff; cursor:pointer; }
.yv-bar-btn:hover, .yv-bar-btn:focus-visible { background:rgba(255,255,255,.14); }
.yv-bar-btn svg { width:22px; height:22px; display:block; }
.yv-vol { width:90px; accent-color:#4aa8ff; }
.yv-live { border:0; border-radius:6px; padding:3px 8px; font-size:12px; font-weight:700; letter-spacing:.04em;
  background:#c0392b; color:#fff; cursor:default; }
.yv-live.late { background:rgba(255,255,255,.18); cursor:pointer; }
.yv-bar-space { flex:1; }
.yv-bar .yv-quality { margin:0; color:#fff; font-size:13px; }
.yv-bar .yv-quality select { width:auto; margin:0; padding:4px 6px; background:rgba(0,0,0,.55); color:#fff;
  border:1px solid rgba(255,255,255,.25); border-radius:6px; }
.yv-bar .yv-quality[hidden] { display:none; }
@media (max-width: 600px) { .yv-vol { display:none; } }
@media (hover: none) { .yv-bar { opacity:1; pointer-events:auto; } }

/* ---------- Streaming (scenes) ---------- */
main.st-page { padding:14px 20px 40px; }
.st-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.st-head h1 { margin:0; }
.st-scope { display:flex; align-items:center; gap:6px; }
.st-intro { margin:8px 0 14px; font-size:14px; max-width:1100px; }
.st-wrap { display:grid; grid-template-columns:minmax(200px, 260px) minmax(0, 1fr) minmax(320px, 1fr); gap:14px; align-items:start; }
.st-mapcard { position:sticky; top:10px; display:flex; flex-direction:column; gap:8px; }
.st-map { height:calc(100vh - 260px); min-height:320px; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.st-slot { cursor:pointer; }
.st-slot.chosen { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent) inset; }
.st-tip .maplibregl-popup-content { padding:6px; }
.st-tip-box { width:220px; font-size:13px; } .st-tip-box img { display:block; width:100%; border-radius:4px; margin-bottom:4px; }
@media (max-width: 1300px) { .st-wrap { grid-template-columns:minmax(200px, 260px) minmax(0, 1fr); }
  .st-mapcard { grid-column:1 / -1; position:static; } .st-map { height:380px; } }
.st-list { display:flex; flex-direction:column; gap:6px; }
.st-item { display:flex; flex-wrap:wrap; gap:6px; align-items:center; text-align:left; background:transparent; border:1px solid var(--line);
  border-radius:8px; padding:8px 10px; color:var(--text); cursor:pointer; }
.st-item.on { border-color:var(--accent); background:rgba(74,168,255,.08); }
.st-new { display:flex; gap:6px; margin-top:6px; }
.st-new input { flex:1; min-width:0; }
.st-flash { margin:0 0 8px; color:var(--ok); } .st-flash.bad { color:var(--bad); }
.st-title { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; }
.st-title .st-name { flex:1; min-width:200px; font-size:18px; font-weight:700; }
.st-title select { width:auto; }
.st-slots { --cols:2; display:grid; gap:8px; grid-template-columns:repeat(var(--cols), minmax(0, 1fr)); max-width:1000px; }
.st-slots[data-grid="6"], .st-slots[data-grid="9"] { --cols:3; }
.st-slots[data-grid="16"] { --cols:4; }
.st-slot { position:relative; aspect-ratio:16/9; background:#05070a; border:1px solid var(--line); border-radius:8px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; }
.st-snap { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.85; }
.st-num { position:absolute; z-index:2; left:6px; top:6px; background:rgba(0,0,0,.7); border-radius:6px; padding:1px 7px; font-weight:700; }
.st-slot-name { position:absolute; z-index:2; left:6px; bottom:6px; right:6px; background:rgba(0,0,0,.65); border-radius:6px; padding:3px 7px;
  font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.st-slot-acts { position:absolute; z-index:2; right:6px; top:6px; display:flex; gap:4px; }
.st-look { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; font-size:14px; }
.st-look select { width:auto; }
.st-ips { display:block; font-size:14px; margin-top:8px; }
.st-delete { margin-top:16px; }
@media (max-width: 900px) { .st-wrap { grid-template-columns:minmax(0,1fr); } .st-slots[data-grid] { --cols:2; } }

/* dragging a camera from a map onto a slot or tile (mapdrag.js) */
.yv-drag-ghost { position:fixed; left:0; top:0; z-index:1000; pointer-events:none; width:180px; background:var(--panel);
  border:1px solid var(--accent); border-radius:8px; padding:4px; font-size:13px; box-shadow:0 6px 20px rgba(0,0,0,.5); }
.yv-drag-ghost img { display:block; width:100%; border-radius:4px; margin-bottom:3px; }
body.yv-dragging, body.yv-dragging * { cursor:grabbing !important; user-select:none; }
.yv-drop-over { outline:3px solid var(--accent); outline-offset:-3px; }

/* The CamAgent page (/link/): linking and the download side by side, computers below */
.agent-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px; align-items:start; }
.agent-pick { border:1px solid var(--line); border-radius:8px; padding:8px 12px 10px; margin:0 0 12px; display:flex; flex-direction:column; gap:4px; }
.agent-pick legend { font-weight:600; padding:0 4px; }

/* Ad breaks (static/ads.js): the ad covers the video area, labeled; the live video plays on underneath */
.ad-break { position:absolute; inset:0; z-index:6; background:#000; display:flex; flex-direction:column; }
.ad-video { flex:1; width:100%; min-height:0; object-fit:contain; background:#000; }
.ad-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:6px 10px; background:rgba(15,18,22,.92); color:#e6e9ee; font-size:13px; }
.ad-tag { background:#ffcf4a; color:#111; font-weight:700; border-radius:3px; padding:1px 6px; }
.ad-left { color:#aab2bf; }
.ad-bar a { color:#4aa8ff; }
.ad-bar .ad-free { margin-left:auto; font-weight:600; }
.ad-sponsor a { color:inherit; text-decoration:underline; }
.ad-sponsor-banner { display:flex; align-items:center; gap:8px; margin:4px 0 0; font-size:12px; }
.ad-sponsor-banner img { max-height:40px; max-width:min(300px, 60vw); display:block; }

/* Multi-view's stream sidebar (static/streamroom.js) */
.mv-wrap:has(> .mv-stream:not([hidden])) { display:grid; grid-template-columns:minmax(0, 1fr) clamp(250px, 19vw, 330px); gap:12px; align-items:start; }
.mv-wrap.with-map:has(> .mv-stream:not([hidden])) { grid-template-columns:minmax(0, 1fr) clamp(300px, 22vw, 420px) clamp(250px, 18vw, 320px); }
@media (max-width: 900px) { .mv-wrap:has(> .mv-stream:not([hidden])), .mv-wrap.with-map:has(> .mv-stream:not([hidden])) { grid-template-columns:1fr; } }
.mv-stream { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:10px 12px; gap:6px; font-size:14px; }
.mv-stream h3 { margin:6px 0 0; font-size:14px; }
.sr-pick select { width:100%; margin-top:4px; }
.mv-stream { min-width:0; overflow:hidden; }
.sr-slots { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(var(--cols, 2), minmax(0, 1fr)); gap:6px; }
.sr-slot { position:relative; aspect-ratio:16 / 9; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:#000; min-width:0; }
.sr-slot img, .sr-slot video, .sr-slot .sr-empty { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sr-slot .sr-empty { background:repeating-linear-gradient(45deg, #11161c, #11161c 6px, #151b22 6px, #151b22 12px); }
.sr-slot b { position:absolute; left:4px; top:3px; font-size:11px; background:rgba(0,0,0,.65); color:#fff; border-radius:3px; padding:0 4px; }
.sr-slot .sr-name { position:absolute; left:0; right:0; bottom:0; padding:2px 5px; font-size:11px; background:linear-gradient(transparent, rgba(0,0,0,.8));
  color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sr-slot.free .sr-name { color:#9aa4b1; }
.sr-slot .sr-off { position:absolute; right:3px; top:3px; border:0; background:rgba(0,0,0,.65); color:#fff; border-radius:3px; padding:0 6px; line-height:1.4; cursor:pointer; }
.sr-direct .sr-slot { cursor:pointer; }
.sr-slot.on { outline:2px solid var(--accent); outline-offset:-2px; }
.sr-slot.yv-drop-over, .sr-drop.yv-drop-over { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent) inset; }
.sr-drop { border:1px dashed var(--line); border-radius:6px; padding:8px; text-align:center; color:var(--muted); font-size:13px; }
.sr-queue { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.sr-q { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; }
.sr-q-cam { font-weight:600; } .sr-q-by { font-size:12px; flex-basis:100%; }
.sr-q-tools { display:flex; gap:6px; align-items:center; }
.sr-help { font-size:12px; margin:2px 0; }
.sr-msg { margin:0; font-size:13px; min-height:1.2em; } .sr-msg.bad { color:var(--bad, #ff6b6b); }
.mv-grip { cursor:grab; opacity:.7; margin-right:6px; user-select:none; }
.mv-tile[draggable="true"] .mv-tile-head { cursor:grab; }
.mv-tile.mv-dragging { opacity:.5; }
.sr-q { min-width:0; display:grid; grid-template-columns:64px minmax(0, 1fr); column-gap:8px; }
.sr-q > *:not(.sr-q-pic) { grid-column:2; }
.sr-q-pic { grid-row:1 / span 3; width:64px; aspect-ratio:16 / 9; object-fit:cover; border-radius:4px; background:#000; }
.sr-q-pic.sr-empty { display:block; background:repeating-linear-gradient(45deg, #11161c, #11161c 6px, #151b22 6px, #151b22 12px); }
.sr-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; }
.sr-head h3 { margin:0; } .sr-live-label { font-size:12px; margin:0; } .sr-q-cam { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.st-upnext { margin-top:14px; border-top:1px solid var(--line); padding-top:10px; background:none; border-left:0; border-right:0; border-bottom:0; border-radius:0; padding-left:0; padding-right:0; }
.cam-slot { position:relative; }
.card-settings { position:absolute; top:8px; right:8px; z-index:2; font-size:12px; padding:2px 8px; border-radius:6px;
  background:rgba(15,18,22,.85); border:1px solid var(--line); color:var(--text, #e6e9ee); text-decoration:none; }
.card-settings:hover { border-color:var(--accent); }
.dash-tabs .page-tabs { margin:6px 0 10px; }
.dash-sub { margin:16px 0 8px; font-size:1.1rem; }
.dash-county { margin:10px 0 6px; font-size:.95rem; font-weight:600; }

/* Archive timeline: the time under the pointer, and the playhead's time (static/archive.js) */
.ar-hover { position:absolute; top:2px; transform:translateX(6px); font-size:11px; white-space:nowrap; pointer-events:none;
  background:rgba(15,18,22,.92); color:#e6e9ee; border:1px solid var(--line); border-radius:4px; padding:1px 5px; z-index:3; }
.ar-hover.left { transform:translateX(calc(-100% - 6px)); }
.ar-head-mark::after { content:attr(data-t); position:absolute; top:5px; left:5px; font-size:11px; white-space:nowrap;
  color:#fff; background:rgba(15,18,22,.8); border-radius:3px; padding:0 4px; pointer-events:none; }
.ar-head-mark.left::after { left:auto; right:5px; }
.pd-wiz { border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin:8px 0; }
.pd-step { font-weight:600; margin:0 0 4px; }
.pd-text { font-size:13px; margin:0 0 6px; }
.pd-live { font-size:13px; margin:4px 0 8px; min-height:1.2em; }
.pd-live .ok { color:var(--ok, #4caf50); }
.pd-live .wait { color:var(--warn); }
.where-aim { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 8px; }
.where-aim #where-aim-btn[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); }
.where-pick { font-size:13px; margin:0 0 8px; }
.where-map.aiming canvas { cursor:crosshair !important; }
.ptz-clickaim { display:block; font-size:13px; margin:0 0 10px; }
.video-wrap.clickaim video { cursor:crosshair; }
.aim-ring { position:absolute; width:34px; height:34px; margin:-17px 0 0 -17px; border:2px solid var(--accent);
  border-radius:50%; pointer-events:none; animation:aim-ring .9s ease-out forwards; z-index:5; }
@keyframes aim-ring { from { transform:scale(.4); opacity:1; } to { transform:scale(1.4); opacity:0; } }
.mv-aim { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.mv-aim #mv-aim-btn[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); }
.mv-aim-out { list-style:none; margin:4px 0 0; padding:0; width:100%; font-size:13px; }
.mv-aim-out li { padding:2px 0; }
.mv-aim-out .ok { color:var(--ok); }
.mv-map.aiming canvas { cursor:crosshair !important; }
.yv-sat-ctrl button.yv-sat-btn { width:auto; padding:0 8px; font-size:12px; font-weight:600; color:#1b232e; }
.yv-sat-ctrl button.yv-sat-btn[aria-pressed="true"] { background:#e8f2ff; }
.where-aim-hint { font-size:13px; margin:0 0 8px; }
.ptz-panel:not(.stick-style) .ptz-wheel-label { display:none; }
/* Camera controls: title row, tabs, panes (1.115) */
.ptz-title { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.ptz-title .ptz-style { margin:0; }
.ptz-msg-top:empty { display:none; }
.ptz-msg-top { margin:0 0 8px; }
.ptz-tabs { display:flex; gap:4px; margin:8px 0 10px; }
.ptz-tabs [aria-selected="true"] { border-color:var(--accent); color:var(--accent); }
.ptz-pane[hidden] { display:none; }
.ptz-quick { margin-top:10px; }
.ptz-point { margin-top:8px; flex-wrap:wrap; }
.ptz-options { margin-top:10px; font-size:13px; }
.ptz-options summary { cursor:pointer; color:var(--muted); }
.ptz-note { font-size:13px; }
.ptz-sub { margin:16px 0 4px; font-size:14px; }
.pd-check { list-style:none; margin:6px 0 8px; padding:0; }
.pd-check li { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; padding:6px 0; border-bottom:1px solid var(--line); font-size:14px; }
.pd-check li[hidden] { display:none; }
.pd-check .pd-dot { width:10px; height:10px; border-radius:50%; border:2px solid var(--muted); flex:none; align-self:center; }
.pd-check li.done .pd-dot { background:var(--ok); border-color:var(--ok); }
.pd-check li.next .pd-dot { border-color:var(--accent); box-shadow:0 0 0 3px #4aa8ff33; }
.pd-check li.next b { color:var(--accent); }
.pd-check .pd-s { color:var(--muted); font-size:13px; }
.pd-check .pd-acts { margin-left:auto; display:flex; gap:10px; }
.pd-progress { font-size:12px; color:var(--muted); margin:0 0 2px; text-transform:uppercase; letter-spacing:.04em; }
.pd-progress:empty { display:none; }
.pd-details { display:flex; flex-direction:column; gap:6px; margin:6px 0; font-size:13px; }
.pd-details[hidden] { display:none; }
.pd-details label[hidden] { display:none; }
.pd-details input { width:6em; }
.ptz-pane .ptz-style { display:flex; gap:4px; justify-content:center; margin:0 0 8px; }
.ptz-presets { margin-top:10px; }
.ptz-manage { margin-top:6px; font-size:13px; }
.ptz-manage summary { cursor:pointer; color:var(--muted); }
.ptz-manage .ptz-preset-tools { margin-top:6px; }
.ptz-presets { display:block; }
.ptz-presets .ptz-manage { display:block; }
summary.pill { display:inline-block; }
summary.pill:hover { color:var(--text); border-color:#3a4450; }
/* Below the video there's room: steering on the left, presets and options beside it */
@media (min-width: 900px) {
  .cam-layout:not(.side) .ptz-pane[data-ppane="move"]:not([hidden]) { display:grid; grid-template-columns:minmax(260px, 420px) minmax(220px, 360px); gap:24px; align-items:start; }
  .cam-layout:not(.side) .ptz-move-side .ptz-presets { margin-top:0; }
}
.ptz-panel.stick-style .ptz-speed-box, .ptz-panel:not(.stick-style) .ptz-sens-box { display:none; }
.tool-out { max-height:420px; overflow:auto; background:#0c0f13; border:1px solid var(--line); border-radius:8px; padding:10px; font-size:12px; white-space:pre-wrap; word-break:break-word; margin-top:8px; }
/* Staff > Wording */
.wording { max-width:820px; }
.wording-group { margin-top:12px; }
.wording-group > summary { cursor:pointer; }
.wording-list { list-style:none; margin:10px 0 0; padding:0; }
.wording-list li { padding:10px 0; border-top:1px solid var(--line); }
.wording-meta { font-size:12px; color:var(--muted); margin-bottom:4px; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.wording-text { white-space:normal; line-height:1.5; }
.wording-panel { margin-top:24px; font-size:14px; }
.wording-panel ul { margin:8px 0 0; padding-left:18px; } .wording-panel li { margin:6px 0; }
/* Website setup (CamAgent): a readable column, numbered steps, clear status lines, choices as blocks */
.setup-flow { max-width:760px; }
.setup-flow .card.step { margin-top:16px; }
.setup-flow p, .setup-flow li { line-height:1.55; }
.step-head { color:var(--text); margin:0 0 12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:19px; }
.step-num { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--accent);
  color:#04121f; font-size:15px; font-weight:700; flex:none; }
.setup-flow h3 { font-size:16px; margin:20px 0 8px; color:var(--text); }
.step-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:14px 0 0; }
.status { margin:10px 0 0; font-size:15px; line-height:1.5; color:var(--text); }
.status:empty { display:none; }
.status[data-state="working"] { color:var(--accent); }
.status[data-state="working"]::before { content:""; display:inline-block; width:12px; height:12px; margin-right:8px; vertical-align:-1px;
  border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:yv-spin .8s linear infinite; }
.status[data-state="ok"] { color:var(--ok); } .status[data-state="ok"]::before { content:"\2713  "; font-weight:700; }
.status[data-state="bad"] { color:#ff9b9b; } .status[data-state="bad"]::before { content:"\26A0  "; }
.status[data-state="info"] { color:#c3cad5; }
@keyframes yv-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status[data-state="working"]::before { animation:none; } }
.choices { display:flex; flex-direction:column; gap:8px; margin:14px 0 0; }
.choice { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  cursor:pointer; color:var(--text); font-size:15px; margin:0; }
.choice:has(input:checked) { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 8%, transparent); }
.choice:has(input:disabled) { opacity:.55; cursor:not-allowed; }
.choice input { margin-top:4px; flex:none; }
.choice > span { display:block; line-height:1.45; } .choice > span > strong { font-weight:650; }
.choice-note { display:block; margin-top:3px; color:#c3cad5; font-size:14px; line-height:1.5; }
.setup-flow [data-ptz] { margin-top:16px; }
.choice > span > .muted { font-size:14px; }
.choice-body { margin:2px 0 6px 14px; padding:4px 0 4px 16px; border-left:2px solid var(--line); }
.choice-body label { display:block; margin:8px 0; }
.made-login { display:grid; gap:8px; margin:10px 0 14px; padding:12px 14px; background:var(--bg); border:1px solid var(--line); border-radius:8px; }
.made-login > div { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.made-label { min-width:84px; color:var(--muted); font-size:14px; }
.made-login code { font-size:16px; letter-spacing:.02em; }
.brand-help { font-size:14px; color:#c3cad5; } .brand-help ul { padding-left:20px; margin:6px 0 0; } .brand-help li { margin:3px 0; }
.found-model { font-size:17px; font-weight:650; margin:0; }
.setup-preview { display:block; max-width:100%; border-radius:8px; border:1px solid var(--line); margin:12px 0 0; }
.setup-flow .field { display:block; margin:16px 0 0; font-size:15px; color:var(--text); }
.setup-flow .field select, .setup-flow [data-target] { width:100%; margin-top:6px; }
.setup-flow .small-print { font-size:14px; margin-top:16px; }
.setup-flow .found-cams { list-style:none; padding:0; margin:12px 0 0; display:flex; flex-direction:column; gap:8px; }
.setup-flow .found-cams li { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:10px 14px; border:1px solid var(--line); border-radius:10px; }
.setup-flow .computer-state { margin:12px 0 0; }
.conn-more > summary { cursor:pointer; font-size:16px; }
.conn-more[open] > summary { margin-bottom:10px; }
.faq-contact { margin-top:24px; }
/* == camera manage layout (panel + manage pages) == */
.manage-readout { margin-bottom:16px; }            /* Health on its own page: the readout, then Offline notices */
/* == end camera manage layout == */
/* == My cameras (dashboard) == */
.dash-warn { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:12px 0 0; padding:8px 12px; border-radius:10px;
  border:1px solid var(--bad); background:color-mix(in srgb, var(--bad) 10%, var(--panel)); color:var(--text); font-size:14px; }
.dash-warn:hover { text-decoration:none; border-color:var(--text); }
.dash-warn-events { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.dash-warn-events .badge { margin:0; }
.dash-warn-go { margin-left:auto; color:var(--accent); white-space:nowrap; }
.dash-warnings { margin-bottom:8px; }
.dash-warnings .dash-sub { color:var(--text); }
.dash-warnings .grid.compact { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); }
.dash-tabs:not(:has(.page-tabs)) .dash-warnings .dash-sub { margin-top:4px; }
.mine-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:4px 0 6px; }
.host-cam { gap:0; }
.host-cam > .cam { border-bottom-left-radius:0; border-bottom-right-radius:0; }
.host-bar { display:flex; flex-direction:column; gap:6px; padding:10px 14px; font-size:14px; background:var(--panel);
  border:1px solid var(--line); border-top:0; border-radius:0 0 10px 10px; }
.host-state .dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--muted); margin-right:6px; vertical-align:1px; }
.host-state .dot.live { background:var(--ok); }
.host-state .connect-link { padding:0; font-size:14px; }
.host-links { display:flex; flex-wrap:wrap; gap:4px 12px; }
.host-links a { padding:2px 0; }
.req-cards { display:flex; flex-direction:column; gap:12px; }
.req-card { padding:14px 16px; }
.req-card-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin-bottom:10px; }
.req-card-head .sub { color:var(--muted); font-size:14px; }
.req-card .req-steps { margin:0 0 12px; }
.req-card .req-steps li { flex-basis:130px; padding:6px 8px; font-size:13px; }
.req-card-next { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.req-card-more { margin-left:auto; font-size:14px; }
/* == end My cameras == */
/* == organization page == */
.org-page .inline-form { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; }
.org-page .inline-form label:not(.check) { margin:0; }
.org-page .inline-form select { width:auto; }
.org-page .invite-form label { display:flex; flex-direction:column; gap:4px; }
.org-invite-row .badge { white-space:nowrap; margin-top:4px; }
.org-plan-line { margin:0; }
.org-members select { width:auto; min-width:8.5em; padding-right:28px; }
.org-members td { vertical-align:top; }
.org-row-actions { white-space:nowrap; text-align:right; }
.org-row-actions form.inline { justify-content:flex-end; flex-wrap:nowrap; gap:10px; }
.org-invite-row td { color:var(--muted); }
.org-invite-row td:first-child { color:var(--text); }
.org-fold { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.org-fold > summary { cursor:pointer; font-weight:600; color:var(--text); }
.org-fold[open] > summary { margin-bottom:10px; }
.org-add-block + .org-add-block { margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.org-add-block h3 { margin-top:0; }
.org-add-block .copy-row { margin:0 0 10px; }
.org-page .org-host-link-form { align-items:center; }
.org-host-link-form label:not(.check) { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px 6px; }
.org-host-link-form input[type=text] { display:inline-block; padding:6px 8px; }
.org-cam-links { font-size:13px; }
#links tr:target, #links li:target { background:color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 600px) {
  .org-row-actions { text-align:left; white-space:normal; }
  .org-row-actions form.inline { justify-content:flex-start; }
  .org-members select { width:100%; }
}
/* == end organization page == */
/* == staff tabs == */
.staff-tabs { margin-top:-4px; }
.staff-tabs a { display:inline-flex; align-items:center; gap:6px; }
.menu-head.staff-group { margin-top:8px; font-size:11px; }
.ops-errors-card { margin-bottom:14px; }
.ops-errors-card #ops-errors { max-height:420px; overflow-y:auto; }
.review-decide { display:flex; gap:8px; align-items:flex-start; margin:0; }
.review-decline { display:flex; flex-direction:column; align-items:flex-start; gap:6px; flex:0 1 220px; min-width:140px; }
.review-decline input { width:100%; }
@media (max-width: 700px) {
  .staff-tabs a { padding:8px 10px; }
}
/* == end staff tabs == */
/* == camera page view menu == */
/* Under the video: Live / Control, then one "View" menu (Theater, Panel below / Beside, Clock & weather, Stats) */
.view-menu { position:relative; flex:none; }
.view-menu > summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:4px; user-select:none;
  padding:5px 12px; font-size:13px; }
.view-menu > summary::-webkit-details-marker { display:none; }
.view-menu > summary::after { content:"\25BE"; font-size:11px; }
.view-menu[open] > summary { border-color:var(--accent); }
.view-menu-pop { position:absolute; z-index:25; top:calc(100% + 6px); right:0; display:flex; flex-direction:column; gap:2px;
  padding:6px; min-width:200px; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px #0009; }
#yv-view .view-menu-pop button.view-item { display:flex; align-items:center; gap:8px; width:100%; text-align:left; background:transparent;
  color:var(--text); border:0; border-radius:6px; padding:9px 10px; font-size:14px; font-weight:500; }
#yv-view .view-menu-pop button.view-item:hover { background:var(--line); }
/* a check mark shows what's on */
#yv-view .view-item::before { content:""; width:14px; flex:none; text-align:center; color:var(--accent); font-weight:700; }
#yv-view .view-item[aria-pressed="true"]::before, #yv-view .view-item[aria-expanded="true"]::before { content:"\2713"; }
#yv-view #yv-theatre[aria-pressed="true"] { background:transparent; color:var(--text); }
.view-menu-pop .cam-place { padding:6px 10px 6px 32px; }
.view-menu-pop .cam-place .pill { padding:5px 10px; font-size:13px; white-space:nowrap; }
@media (max-width: 900px) { #yv-view #yv-theatre { display:none; } }   /* phones: the video already fills the width */
/* phones: Live / Control, View and the plan note stay on one line */
@media (max-width: 700px) {
  .player-bar .player-tools { flex-wrap:nowrap; width:100%; min-width:0; gap:8px; }
  .player-tools .guest-quality { min-width:0; flex:1 1 auto; flex-wrap:wrap; gap:0 4px; line-height:1.3; }
  .player-tools .view-menu { order:1; margin-left:auto; }
}
/* the Location tab's setup hint: its button opens Controls > Set up */
.where-aim-hint .where-setup { display:block; margin-top:6px; }
/* the Archive tab: the note stays; its button shows only if the archive was closed some other way */
.archive .ar-pane-note { margin-bottom:0; }
/* == end camera page view menu == */
/* == map search and request form == */
/* The Map's bar: [Town, ST or ZIP] [Filters] [Layers] [n cameras] [key]. The page title is for screen readers only. */
.map-bar .map-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.map-bar .mv-near { flex:0 1 260px; min-width:0; }
.map-bar .mv-near input { padding:4px 8px; height:30px; font-size:14px; }
.map-bar .mf-more summary { white-space:nowrap; }
.map-bar #mf-count { white-space:nowrap; font-size:14px; }
#map-layers > label { white-space:nowrap; }
#map-layers .map-legend { display:flex; flex-direction:column; align-items:flex-start; margin:2px 0 0; padding-top:8px;
  border-top:1px solid var(--line); }
#map-layers .map-legend .lg { margin-left:0; }
@media (max-width: 760px) {
  .map-bar { flex-wrap:nowrap; gap:6px; }
  .map-bar .mv-near { flex:1 1 110px; }
  .map-bar .mv-near button { display:none; }          /* the keyboard's Go/Search key sends it */
  .map-bar .mf-more summary { padding:4px 7px; font-size:13px; }
  .map-bar #mf-count { font-size:13px; }
  .map-bar { position:relative; }                       /* the menus open under the bar's left edge, always on screen */
  .map-bar .mf-more { position:static; }
  .map-bar .mf-menu { left:0; right:auto; top:calc(100% + 4px); max-width:calc(100vw - 24px); }
  .map-bar #map-layers > label { white-space:nowrap; }
#map-layers .map-legend { display:flex; }   /* (the old phone rule hid the key outside "Layers") */
}
/* The camera request form: numbered steps, each a card with its heading, and a list of them at the top */
.req-jump { display:flex; flex-wrap:wrap; gap:6px; max-width:760px; margin:0 0 4px; counter-reset:reqjump; }
.req-jump a { font-size:13px; padding:4px 10px; border:1px solid var(--line); border-radius:999px; color:var(--muted);
  text-decoration:none; counter-increment:reqjump; }
.req-jump a::before { content:counter(reqjump) ". "; }
.req-jump a:hover { color:var(--text); border-color:#3a4450; }
.req-errors { max-width:760px; margin-top:12px; }
.req-steps { counter-reset:reqstep; }
.req-steps .req-step { display:block; width:100%; max-width:760px; box-sizing:border-box; margin-top:16px; scroll-margin-top:16px; }
.req-steps .req-step > h2 { margin:0 0 12px; font-size:18px; color:var(--text); counter-increment:reqstep; }
.req-steps .req-step > h2::before { content:counter(reqstep); display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; margin-right:8px; border-radius:50%; background:rgba(255,255,255,.08); color:var(--muted);
  font-size:13px; vertical-align:2px; }
.req-steps .req-agree-title { font-size:16px; margin:14px 0 6px; }
@media (max-width: 700px) {
  .req-jump { display:none; }
}
/* == end map search and request form == */
/* == notices == */
.notices-head { display:inline-flex; align-items:center; gap:6px; color:var(--text); font-size:14px; }
.notices-head:hover { color:var(--accent); text-decoration:none; }
.nt-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.nt-head h1 { margin:0; }
.nt-list { margin-top:16px; padding:0; overflow:hidden; }
.nt-row { display:flex; justify-content:space-between; align-items:baseline; gap:4px 16px; flex-wrap:wrap;
          padding:12px 16px; border-top:1px solid var(--line); color:var(--text); }
.nt-row:first-child { border-top:0; }
.nt-row:hover { background:#1c2229; text-decoration:none; }
.nt-row.unread .nt-subject { font-weight:700; }
.nt-subject { min-width:0; overflow-wrap:anywhere; }
.nt-meta { font-size:13px; }
.nt-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--accent); margin-right:8px; vertical-align:1px; }
.nt-empty { padding:16px; }
.nt-pages { display:flex; gap:14px; align-items:center; margin:12px 0 0; }
.nt-prefs { margin-top:16px; max-width:520px; }
.nt-note { margin:6px 0 10px; }
.nt-back { margin:0 0 8px; font-size:14px; }
.nt-thread { margin-top:8px; }
.nt-body { white-space:pre-line; line-height:1.5; overflow-wrap:anywhere; }
.nt-update { border-top:1px solid var(--line); margin-top:14px; padding-top:12px; }
.nt-when { font-size:13px; margin-bottom:4px; }
.nt-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
/* == end notices == */
/* == tickets == */
/* the queue: one list, a grid row on desktop and a card on phones (subject; person · camera · age; badges) */
.tk-search { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:0 0 12px; }
.tk-search input[type=search] { flex:1 1 260px; width:auto; }
.tk-chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.tk-chips a { font-size:13px; padding:3px 10px; border:1px solid var(--line); border-radius:999px; color:var(--muted); }
.tk-chips a.on { color:var(--text); border-color:var(--accent); }
.tk-chips a:hover { text-decoration:none; color:var(--text); }
.tk-list { padding:6px 16px; }
.tk-row { display:grid; grid-template-columns:minmax(0,1fr) 190px 170px 150px; grid-template-areas:"main who cam age" "badges who cam age";
          gap:2px 14px; padding:10px 0; border-top:1px solid var(--line); font-size:14px; align-items:start; }
.tk-row:first-child, .tk-head + .tk-row { border-top:0; }
.tk-head { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; padding:6px 0; border-bottom:1px solid var(--line); }
.tk-main { grid-area:main; min-width:0; } .tk-who { grid-area:who; overflow-wrap:anywhere; } .tk-cam { grid-area:cam; overflow-wrap:anywhere; }
.tk-age { grid-area:age; color:var(--muted); } .tk-age.late { color:var(--warn); }
.tk-badges { grid-area:badges; display:flex; flex-wrap:wrap; gap:4px; } .tk-badges .badge { margin:0; }
.tk-head .tk-badges { display:none; }
.tk-subj { font-weight:600; overflow-wrap:anywhere; }
.tk-preview { color:var(--muted); font-size:13px; margin-top:2px; overflow-wrap:anywhere; }
.tk-row.high { box-shadow:inset 3px 0 0 var(--bad); padding-left:10px; }
.badge.tk-host { color:var(--accent); border-color:var(--accent); }
.tk-pages { display:flex; gap:16px; align-items:center; justify-content:center; margin-top:14px; }
@media (max-width: 760px) {
  .tk-row.tk-head { display:none; }
  .tk-row { display:flex; flex-wrap:wrap; gap:4px 0; padding:12px 0; }
  .tk-main, .tk-badges { flex:0 0 100%; }
  .tk-who, .tk-cam, .tk-age { font-size:13px; color:var(--muted); }
  .tk-cam::before, .tk-age::before { content:"·"; margin:0 6px; color:var(--muted); }
  .tk-badges { margin-top:4px; }
}
/* a ticket's page */
.tk-event { font-size:12px; color:var(--muted); text-align:center; padding:2px 8px; }
.tk-event.internal { font-style:italic; }
.tk-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.tk-note-btn { border-style:dashed !important; border-color:var(--warn) !important; }
.tk-hint { font-size:12px; margin:8px 0 0; }
.tk-manage { margin-top:12px; } .tk-manage p { margin:0 0 10px; } .tk-manage p:last-of-type { margin-bottom:0; }
.tk-saved { display:block; font-size:12px; margin-top:6px; } .tk-saved:empty { display:none; }
.tk-side { display:flex; flex-direction:column; gap:12px; min-width:0; }
.tk-card h2 { margin:0 0 10px; font-size:16px; }
.tk-sub { font-size:13px; color:var(--muted); margin:12px 0 4px; }
.tk-others { margin:0; padding-left:18px; font-size:13px; } .tk-others li { margin:2px 0; overflow-wrap:anywhere; }
.tk-links { display:flex; gap:14px; margin:10px 0 0; font-size:14px; }
.tk-error { font-size:13px; margin-bottom:4px; }
.tk-title { overflow-wrap:anywhere; }
/* Your support tickets */
.tk-mine { display:flex; flex-direction:column; gap:8px; }
.tk-mine-row { display:flex; flex-direction:column; gap:3px; padding:12px 16px; color:var(--text); }
.tk-mine-row:hover { text-decoration:none; border-color:var(--accent); }
.tk-mine-row.replied { border-color:color-mix(in srgb, var(--ok) 55%, var(--line)); }
.tk-mine-subj { font-weight:600; overflow-wrap:anywhere; }
.tk-mine-meta { font-size:13px; }
.tk-closed { margin-top:8px; } .tk-closed summary { cursor:pointer; color:var(--muted); padding:6px 0; }
.tk-closed .tk-mine-row { margin-top:8px; opacity:.85; }
/* == end tickets == */
