/* ---------- VISUAL BIBLE (owner, 21 Oct) — design/visual-bible-20261021/ ----------
   The language, applied to what already exists (nothing new is added): cream paper and ink, the gothic pixel city with
   moons and orange star glints (art from tools/art/extract-bible.mjs), the ink WATCHER with its red eye on a cream band
   above a dark nav rail, orange active tabs (cyan for Lurklist/Crates), square bordered chips, framed panels with a small
   orange crosshair, page banners with one big title, a YEARS rail on the left, and the skyline ridge above the player.
   Big banner titles are the only pixel type; every other word stays in the readable UI font. Loaded last. */
:root {
  --vb-paper: #f6eedb; --vb-paper-2: #efe4cb; --vb-ink: #0e0e0c; --vb-red: #ff2d1f; --vb-orange: #ff5b1c; --vb-cyan: #3fe0f5;
  --band: 92px; --rail: 56px;
  --vb-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff5b1c' d='M6 0h1v4H6zM6 9h1v4H6zM0 6h4v1H0zM9 6h4v1H9z'/%3E%3Cpath fill='%23ff5b1c' d='M5 5h3v3H5z'/%3E%3C/svg%3E");
}
body { background: var(--vb-paper) !important; }

/* ---------- header (owner, 21 Oct: "way too big"): ONE compact dark bar, as on the sheet's navigation states —
   cream double rule with bracket corners, the cream WATCHER (red eye) on the left, a dashed orange divider, plain nav
   words with a solid orange active block (cyan for Lurklist and Crates), an outlined search box, a framed avatar. ---------- */
:root { --bar: 52px; --hdr: 52px; --vb-bar: #151513; --vb-rule: #c9bfa3; }
body .hdr { position: sticky !important; top: 0 !important; z-index: 60 !important; display: flex !important; align-items: center !important; gap: 0 !important;
  height: var(--bar) !important; min-height: 0 !important; padding: 0 10px 0 14px !important; margin: 0 !important; border: 0 !important; color: #efe6cf;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cg transform='rotate(0 5 5)'%3E%3Cpath fill='%23c9bfa3' d='M0 0h6v1H1v5H0zM2 2h2v1H3v1H2z'/%3E%3C/g%3E%3C/svg%3E") left 3px top 3px / 10px 10px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cg transform='rotate(90 5 5)'%3E%3Cpath fill='%23c9bfa3' d='M0 0h6v1H1v5H0zM2 2h2v1H3v1H2z'/%3E%3C/g%3E%3C/svg%3E") right 3px top 3px / 10px 10px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cg transform='rotate(270 5 5)'%3E%3Cpath fill='%23c9bfa3' d='M0 0h6v1H1v5H0zM2 2h2v1H3v1H2z'/%3E%3C/g%3E%3C/svg%3E") left 3px bottom 3px / 10px 10px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cg transform='rotate(180 5 5)'%3E%3Cpath fill='%23c9bfa3' d='M0 0h6v1H1v5H0zM2 2h2v1H3v1H2z'/%3E%3C/g%3E%3C/svg%3E") right 3px bottom 3px / 10px 10px no-repeat,
    var(--vb-bar) !important;
  box-shadow: inset 0 0 0 2px #0e0e0c, inset 0 0 0 4px var(--vb-bar), inset 0 0 0 5px #6e6a5c, 0 2px 0 #0e0e0c, 0 6px 14px #0003 !important; }
body .hdr > .tagline, body .hdr > .hdr-noise, body .hdr::before, body .hdr::after, .hdr-crest { display: none !important; }
/* the old header's circuit sparks drew stray orange traces across the compact bar; the player keeps its own */
body .hdr > .live-sparks { display: none !important; }
body .hdr .logo { flex: none; display: flex !important; align-items: center; gap: 10px; position: relative !important; width: auto !important; height: 100% !important;
  margin: 0 12px 0 4px !important; padding: 0 16px 0 6px !important; background: none !important; border: 0 !important; box-shadow: none !important; color: #f3ead2; text-decoration: none; }
body .hdr .logo::before { content: none !important; display: none !important; }
body .hdr .logo::after { content: "" !important; display: block !important; position: absolute !important; right: 0; top: 10px; bottom: 10px; left: auto !important; width: 0 !important; height: auto !important;
  border: 0 !important; border-left: 2px dashed #ff6a26 !important; background: none !important; border-radius: 0 !important; opacity: .9; animation: none !important; }
/* the icon (the watcher's lit head) stays beside the wordmark, as in the old top-left lockup */
body .hdr .logo .logo-mark { order: 0; display: block !important; position: static !important; width: 32px !important; height: 32px !important; margin: 0 !important; transform: none !important; image-rendering: pixelated; flex: none; }
body .hdr .logo { min-width: max-content !important; max-width: none !important; overflow: visible !important; }
body .hdr .logo .wm { order: 1; position: static !important; transform: none !important; height: 22px !important; width: auto !important; max-width: none !important; display: block; color: #f3ead2; overflow: visible; filter: none !important; margin: 0 !important; }
body .hdr .logo #demo-badge { order: 2; }
body .hdr #demo-badge { position: static !important; transform: none !important; margin: 0 !important; padding: 3px 6px !important; background: transparent !important; color: #ff6a4a !important;
  border: 1.5px solid #ff3a24 !important; border-radius: 0 !important; box-shadow: none !important; font: 700 10px/1 var(--ui) !important; letter-spacing: .1em !important; }
body .hdr #demo-badge:hover { background: #ff3a24 !important; color: #fff !important; }
/* nav: every old border, bracket and pseudo-line is wiped (they caused the stray orange line and the low Lurklist rule) */
@media (min-width: 761px) {
  body .hdr .logo { order: 1 !important; }
  body .hdr .nav { order: 2 !important; flex: 0 1 auto; display: flex !important; align-items: center !important; gap: 2px !important; height: 100%; margin: 0 !important; padding: 0 !important;
    background: none !important; border: 0 !important; box-shadow: none !important; min-width: 0; }
  body .hdr .nav > *, body .hdr .nav .nav-drop > button { margin: 0 !important; }
  body #nav > button[data-nav], body #nav .nav-drop > button { display: inline-flex !important; align-items: center !important; gap: 7px !important; height: 34px !important; padding: 0 14px !important;
    background: transparent !important; background-image: none !important; color: #efe6cf !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; box-shadow: none !important;
    clip-path: none !important; transform: none !important; text-shadow: none !important; font: 700 12px/1 var(--ui) !important; letter-spacing: .12em !important; white-space: nowrap; position: relative; }
  body #nav > button[data-nav]::before, body #nav > button[data-nav]::after, body #nav .nav-drop > button::before, body #nav .nav-drop > button::after { content: none !important; display: none !important; }
  body #nav > button[data-nav] .ic, body #nav .nav-drop > button .ic { display: none !important; width: 16px; height: 16px; color: currentColor !important; }
  body #nav > button[data-nav] > span { display: inline !important; }
  body #nav > button[data-nav]:not(.on):hover, body #nav .nav-drop > button:hover { background: #ffffff12 !important; color: #fff !important; }
  body #nav > button[data-nav].on { background: #ff5b1c !important; color: #131313 !important; }
  body #nav > button[data-nav].on .ic { opacity: 1; }
  body #nav > button[data-nav="watcher"].on, body #nav .nav-drop > button.on { background: #8ff0ff !important; color: #0a2a30 !important; }
  body #nav > button .scope-label { font: 700 8px/1 var(--ui) !important; letter-spacing: .06em; padding: 2px 3px; border: 1px solid currentColor; opacity: .7; margin-left: 2px; }
  body #nav .nav-badge { position: absolute; top: 2px; right: 2px; }
  body .hdr .nav-drop { display: flex; align-items: center; height: 100%; }
}
/* search: outlined box on the right, like the sheet */
body .hdr .search { order: 5 !important; flex: 0 1 280px !important; min-width: 150px !important; max-width: 300px !important; height: 34px !important; margin: 0 8px 0 auto !important; padding: 0 10px !important;
  background: #0b0d0b !important; border: 1.5px solid var(--vb-rule) !important; border-radius: 0 !important; box-shadow: none !important; clip-path: none !important; display: flex !important; align-items: center; gap: 8px; }
body .hdr .search:focus-within { border-color: #ff6a26 !important; }
body .hdr .search > .ic { color: #efe6cf !important; width: 15px !important; height: 15px !important; }
body .hdr .search input { color: #efe6cf !important; font: 500 12.5px var(--ui) !important; background: transparent !important; }
body .hdr .search input::placeholder { color: #8f8a78 !important; }
body .hdr > #sc-login { order: 6 !important; position: static !important; transform: none !important; margin: 0 8px 0 0 !important; height: 34px !important; flex: none; }
body .hdr > .notif-btn { order: 7 !important; margin: 0 8px 0 0; width: 34px; height: 34px; }
/* avatar: framed square, an orange bracket before it */
body .hdr > .me { order: 8 !important; position: relative !important; width: 38px !important; height: 38px !important; margin: 0 0 0 10px !important; padding: 2px !important; border: 1.5px solid var(--vb-rule) !important;
  border-radius: 0 !important; background: #0b0d0b !important; box-shadow: none !important; flex: none; }
body .hdr > .me img { border-radius: 0 !important; }
body .hdr > .me::before { content: ""; position: absolute; left: -10px; top: 4px; bottom: 4px; width: 4px; border: 2px solid #ff6a26; border-right: 0; }
@media (max-width: 1320px) and (min-width: 761px) { body #nav > button .scope-label { display: none; }
  body .hdr #demo-badge { font-size: 0 !important; } body .hdr #demo-badge::before { content: "DEMO"; font: 700 10px/1 var(--ui); letter-spacing: .1em; } }
@media (max-width: 1180px) and (min-width: 761px) {
  body #nav > button[data-nav], body #nav .nav-drop > button { padding: 0 9px !important; letter-spacing: .06em !important; }
  body #nav > button .scope-label { display: none; }
  body .hdr .search { flex-basis: 180px !important; min-width: 120px !important; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  body #nav > button[data-nav]:not(.on) .ic, body #nav .nav-drop > button:not(.on) .ic { display: block !important; }
  body #nav > button[data-nav]:not(.on), body #nav .nav-drop > button:not(.on) { font-size: 0 !important; gap: 0 !important; padding: 0 10px !important; }
  body #nav > button[data-nav] .ic, body #nav .nav-drop > button .ic { width: 16px; height: 16px; }
  body #nav .nav-drop > button .chev { display: none; }
}
/* phone: the same bar, shorter; navigation stays in the bottom tabs */
@media (max-width: 760px) {
  :root { --bar: 50px; --hdr: 50px; }
  body .hdr { display: flex !important; padding: 0 8px 0 10px !important; gap: 6px !important; }
  body .hdr .logo { margin: 0 auto 0 0 !important; padding: 0 !important; gap: 6px; }
  body .hdr .logo::after { display: none !important; }
  body .hdr .logo .wm { height: 16px !important; }
  body .hdr .logo .logo-mark { width: 26px !important; height: 26px !important; }
  body .hdr #demo-badge { font-size: 0 !important; padding: 2px 4px !important; }
  body .hdr #demo-badge::before { content: "DEMO"; font: 700 8px/1 var(--ui); letter-spacing: .08em; }
  body .hdr .search { display: none !important; }
  body .hdr.search-open { flex-wrap: wrap; height: auto !important; padding-bottom: 8px !important; }
  body .hdr.search-open .search { display: flex !important; order: 20; flex: 1 1 100% !important; max-width: none !important; margin: 0 !important; }
  body .hdr > #mobile-search-toggle { display: grid !important; place-items: center; width: 32px; height: 32px; padding: 6px; background: #0b0d0b !important; color: #efe6cf !important; border: 1.5px solid var(--vb-rule) !important; order: 5; }
  body .hdr > #sc-login { height: 30px !important; margin: 0 !important; }
  body .hdr > .notif-btn { width: 32px; height: 32px; margin: 0; }
  body .hdr > .me { width: 32px !important; height: 32px !important; margin: 0 0 0 4px !important; }
  body .hdr > .me::before { display: none; }
  /* bottom tabs: a solid bar (content was showing through), five equal tiles; Crates gets its own tile like the rest */
  body .hdr .nav { background: #0d0f0b !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; border-top: 2px solid #0e0e0c !important; box-shadow: 0 -2px 0 #c9bfa3, 0 -8px 20px #0006 !important; }
  body .hdr .nav > .nav-drop > button { background: linear-gradient(135deg, #3a3426, #211e17) !important; color: #e8dcc0 !important; }
  body .hdr .nav > .nav-drop > button.on { color: #fff8ea !important; }
}
/* the logo's eye: a blink and a pointer-following iris (logo.js); calm mode keeps it still */
.wm .wm-iris { transition: transform .18s ease-out; }
.wm .wm-blink { transform-box: fill-box; transform-origin: center; transform: scaleY(0); }
.wm.blink .wm-blink { animation: wm-blink .2s steps(3, end) 1; }
@keyframes wm-blink { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
body.motion-quiet .wm .wm-iris, body.motion-quiet .wm .wm-blink { animation: none !important; transition: none !important; transform: none !important; }
body.motion-quiet .wm .wm-blink { transform: scaleY(0) !important; }

/* ---------- page banners: one big title, the line under it, the seated Watcher's city on the right ---------- */
.scene--strip.vb-banner { position: relative; display: grid !important; grid-template-columns: auto minmax(0, 1fr) !important; align-items: center !important; column-gap: 28px !important;
  min-height: 118px !important; padding: 16px 24px !important; margin: 0 0 14px !important; overflow: hidden;
  background: linear-gradient(90deg, var(--vb-paper) 0 50%, #f6eedb00 74%), url("/web/art/vb-banner.webp") right bottom / auto 100% no-repeat, var(--vb-paper) !important;
  color: var(--vb-ink) !important; border: 1.5px solid var(--vb-ink) !important; outline: 0 !important; box-shadow: none !important; }
.vb-banner .vb-title { margin: 0; font: 700 46px/1 "Silkscreen", var(--ui) !important; letter-spacing: .01em; color: var(--vb-ink); white-space: nowrap; text-shadow: 3px 3px 0 #0e0e0c1f; }
.vb-banner .scene-face, .vb-banner .dlg-caret, .vb-banner .dlg-name { display: none !important; }
.vb-banner .dlg-body { max-width: 46ch; padding: 0 !important; display: grid; gap: 4px; }
.scene--strip.vb-banner .dlg-line, .dlg.scene--strip.vb-banner .dlg-line { color: var(--vb-ink) !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; font: 700 13px/1.4 var(--ui) !important; letter-spacing: .04em; text-transform: uppercase; }
.scene--strip.vb-banner .scene-strip-sub, .dlg.scene--strip.vb-banner .scene-strip-sub { color: #3e3d36 !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; font: 600 12px/1.4 var(--ui) !important; text-transform: none; letter-spacing: .02em; }
.vb-banner .dlg-line b, .vb-banner .dlg-line strong { color: var(--vb-orange) !important; }
.vb-banner .dlg-min { top: 8px !important; right: 8px !important; background: var(--vb-paper) !important; color: var(--vb-ink) !important; border: 1.5px solid var(--vb-ink) !important; }
@media (max-width: 760px) {
  .scene--strip.vb-banner { grid-template-columns: 1fr !important; row-gap: 6px; min-height: 92px !important; padding: 12px 14px !important;
    background: linear-gradient(90deg, var(--vb-paper) 0 52%, #f6eedb00 85%), url("/web/art/vb-banner.webp") right bottom / auto 100% no-repeat, var(--vb-paper) !important; }
  .vb-banner .vb-title { font-size: 30px !important; }
  .vb-banner .dlg-body { max-width: 62%; }
}

/* ---------- framed panels: paper, ink frame, an orange crosshair at the corner ---------- */
.index2, .listpanel, .side > .panel, .wside > .panel, .wtop, .feedpanel, #view-explore .panel, .disc-hub > .panel, .blend-genres-panel {
  background: var(--vb-star) right 8px top 8px / 11px 11px no-repeat, var(--vb-paper) !important;
  border: 1.5px solid var(--vb-ink) !important; border-radius: 0 !important; box-shadow: none !important; }

/* ---------- genre chips: square, ink-framed, the genre's colour as a stripe; the chosen one solid orange ---------- */
.index2 .gchip { border-radius: 0 !important; border: 1.5px solid var(--vb-ink) !important; background: var(--vb-paper) !important; color: var(--vb-ink) !important;
  box-shadow: inset 4px 0 0 var(--gc, transparent) !important; padding: 6px 10px 6px 12px !important; font: 700 11px/1 var(--ui) !important; letter-spacing: .07em !important; text-transform: uppercase !important; clip-path: none !important; }
.index2 .gchip span { color: #5d5c52 !important; font-weight: 600 !important; }
.index2 .gchip:hover { background: #fff !important; }
.index2 .gchip.on { background: var(--vb-orange) !important; color: #131313 !important; box-shadow: none !important; }
.index2 .gchip.on span { color: #131313 !important; }

/* ---------- YEARS rail: ALL, then newest → oldest, the chosen year marked with an orange ▶ ---------- */
@media (min-width: 761px) {
  .has-year-rail:not(.hidden) { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .has-year-rail > .view-main { min-width: 0; }
  .has-year-rail .index2 > .mobile-filterbar > label:has(select[data-el="mobileyear"]) { display: none !important; }
  .year-rail { position: sticky; top: calc(var(--rail) + 12px); max-height: calc(100vh - var(--rail) - var(--ftr, 54px) - 30px); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px 8px 10px 0; border-right: 1.5px dashed #0e0e0c55; scrollbar-width: thin; }
  .year-rail-h { display: block; margin: 0 0 8px 18px; font: 700 10px/1.3 var(--ui); letter-spacing: .14em; color: #0f8ea0; text-transform: uppercase; }
  .year-rail .erabar { display: flex !important; flex-direction: column !important; gap: 1px !important; overflow: visible !important; padding: 0 !important; border: 0 !important; background: none !important; }
  .year-rail .erabar button { position: relative; display: flex !important; align-items: baseline; justify-content: space-between; gap: 6px; width: 100%; min-width: 0 !important; height: auto !important;
    padding: 6px 2px 6px 18px !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; clip-path: none !important;
    color: var(--vb-ink) !important; cursor: pointer; transform: none !important; }
  .year-rail .erabar button b { font: 700 15px/1 var(--ui) !important; letter-spacing: .04em; color: inherit !important; }
  .year-rail .erabar button span { font: 600 9.5px/1 var(--ui) !important; color: #6a6a5e !important; }
  .year-rail .erabar button:hover b { color: var(--vb-orange) !important; }
  .year-rail .erabar button.on { color: var(--vb-orange) !important; background: #ff5b1c14 !important; }
  .year-rail .erabar button.on::before { content: "▶"; position: absolute; left: 3px; top: 50%; translate: 0 -50%; font-size: 10px; color: var(--vb-orange); }
  .year-rail .erabar button.zero { opacity: .35; }
}
@media (max-width: 760px) { .year-rail { display: none !important; } }

/* ---------- track rows: the bible's black square play key with a crisp white triangle ---------- */
.r-play { border-radius: 2px !important; background: var(--vb-ink) !important; border: 0 !important; box-shadow: 2px 2px 0 #0e0e0c33 !important; color: #fff !important; }
.r-play:hover, .row.current .r-play { background: var(--vb-orange) !important; color: #131313 !important; }
.rows:not(.grid) .row:not(.compact) > .r-play { width: 38px !important; height: 38px !important; }

/* ---------- the city ridge that closes the page, just above the player ---------- */
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: calc(var(--ftr, 54px) - 2px); height: 24px; z-index: 48; pointer-events: none;
  background: url("/web/art/vb-ridge.webp") left bottom / auto 100% repeat-x; }
@media (max-width: 760px) { body::after { display: none; } }
.scene--strip.vb-banner .dlg-body { position: static !important; }
.scene--strip.vb-banner .dlg-min { position: absolute !important; top: 8px !important; right: 8px !important; left: auto !important; z-index: 2; }

/* Lurklist: the same YEARS rail on the left of the feed (desktop); the YEAR dropdown stays on phones */
@media (min-width: 1101px) {
  #view-watcher:not(.lurklist-is-empty) .wbody { grid-template-columns: 96px minmax(0, 1fr) var(--side, 300px) !important; }
  #view-watcher .wtop > .w-years { display: none !important; }
}
@media (max-width: 1100px) { .w-year-rail { display: none !important; } }
.lurklist-is-empty .w-year-rail { display: none !important; }

/* ---------- WHO'S LURKING YOU (notifications.js): a bell on the rail, a framed panel under it ---------- */
.notif-btn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: #0b0f0d; color: #efe6cf; border: 1.5px solid #4c5547; border-radius: 2px; cursor: pointer; }
.notif-btn .ic { width: 18px; height: 18px; }
.notif-btn:hover, .notif-btn[aria-expanded="true"] { border-color: var(--vb-orange); color: var(--vb-orange); }
.notif-dot { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: var(--vb-red); color: #fff;
  border: 2px solid #131313; border-radius: 9px; font: 700 10px/1 var(--ui); }
.notif-panel { position: fixed; z-index: 560; width: min(420px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--vb-star) right 10px top 10px / 11px 11px no-repeat, var(--vb-paper); border: 2px solid var(--vb-ink); box-shadow: 6px 6px 0 #0e0e0c40; }
.notif-panel.hidden { display: none; }
.notif-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 10px; border-bottom: 1.5px solid var(--vb-ink); }
.notif-head b { font: 700 13px var(--ui); letter-spacing: .12em; }
.notif-head small { font: 600 11px var(--ui); color: #5d5c52; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px dashed #0e0e0c33; }
.notif-row.is-new { background: #ff5b1c12; box-shadow: inset 3px 0 0 var(--vb-orange); }
.notif-who { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: var(--vb-ink); cursor: pointer; font: 500 12.5px/1.35 var(--ui); }
.notif-who img, .notif-eye { width: 38px; height: 38px; flex: none; object-fit: cover; border: 1.5px solid var(--vb-ink); background: #222; }
.notif-eye { display: grid; place-items: center; background: var(--vb-ink); color: var(--vb-cyan); }
.notif-who b { font-weight: 700; }
.notif-who small { display: block; color: #5d5c52; font: 600 11px var(--ui); margin-top: 2px; }
.notif-acts { display: flex; gap: 6px; align-items: center; }
.notif-anon .notif-who { cursor: default; }
.notif-empty { margin: 0; padding: 18px 14px; font: 500 13px/1.5 var(--ui); color: #3e3d36; }
.notif-dot { top: -3px !important; right: -5px !important; }
.scene--strip.vb-banner .dlg-line *, .scene--strip.vb-banner .scene-strip-sub * { text-shadow: none !important; -webkit-text-stroke: 0 !important; -webkit-text-fill-color: currentColor !important; }
@media (max-width: 920px) and (min-width: 761px) {
  body .hdr .logo .wm { height: 17px !important; }
  body .hdr .logo { margin-right: 6px !important; padding-right: 10px !important; }
  body .hdr .search { flex-basis: 120px !important; min-width: 90px !important; }
  body #nav > button[data-nav]:not(.on), body #nav .nav-drop > button:not(.on) { padding: 0 7px !important; }
}

/* ---------- welcome screen (owner, 21 Oct): the traced wordmark on the plate; one iPhone screen, no scrolling as the line types ---------- */
body #landing .ld-title .ld-mark .wm { display: block; width: min(520px, 62vw); height: auto; color: #f3ead2; overflow: visible; animation: ld-type 700ms steps(7, end) 300ms both; }
@media (prefers-reduced-motion: reduce) { body #landing .ld-title .ld-mark .wm { animation: none; } }
@media (max-width: 760px) {
  body #landing { overflow: hidden !important; }
  body #landing .ld-card { height: 100dvh !important; min-height: 0 !important; max-height: 100dvh; overflow: hidden !important; display: flex !important; flex-direction: column; justify-content: space-between; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)) !important; box-sizing: border-box; }
  body #landing .ld-title { margin-top: 4px !important; gap: 8px !important; }
  body #landing .ld-title .ld-mark { padding: 9px 14px 9px 54px !important; }
  body #landing .ld-title .ld-mark::before { width: 34px !important; left: 10px !important; }
  body #landing .ld-title .ld-mark .wm { width: min(62vw, 300px); }
  body #landing .ld-desc { font-size: 12px !important; padding: 5px 10px !important; }
  body #landing .ld-login { min-height: 0 !important; padding-top: 8px !important; padding-bottom: 8px !important; }
  body #landing .ld-tip { font-size: 12px !important; padding: 5px 10px 5px 6px !important; }
  body #landing .ld-stage { align-self: stretch; width: 100% !important; margin-top: auto; }
  body #landing .ld-dlg { padding: 10px 12px 12px !important; }
  body #landing .ld-port canvas { width: 40px !important; height: 40px !important; }
  body #landing .ld-line { font-size: 15px !important; line-height: 1.4 !important; min-height: 4.2em; margin: 6px 0 8px !important; }
  body #landing .ld-opt { padding: 8px 10px !important; }
  body #landing .ld-opt b { font-size: 15px !important; }
  body #landing .ld-opt span { font-size: 11.5px !important; line-height: 1.35 !important; }
}
/* short phones (iPhone SE/mini): drop the tip and the description so everything still fits */
@media (max-width: 760px) and (max-height: 740px) {
  body #landing .ld-tip, body #landing .ld-desc { display: none !important; }
  body #landing .ld-opt span { display: none !important; }
}

/* ---------- real estate (owner, 21 Oct: "elements are still really losing real estate") — less chrome above the music ---------- */
#shell .scene--strip.vb-banner { min-height: 96px !important; padding-top: 12px !important; padding-bottom: 12px !important; margin-bottom: 10px !important; }
#shell .vb-banner .vb-title { font-size: 42px !important; }
#shell #archive-tools { margin-bottom: 8px !important; }
#shell #view-library .tabsbar, #shell .view-main .tabsbar { padding-bottom: 8px !important; }
/* Following rows: the counts were running under the LURKLIST button */
#shell .fol-row > :nth-child(2) { min-width: 0; }
#shell .fol-row .st { gap: 10px !important; flex-wrap: wrap; min-width: 0; }
#shell .fol-row .fol-acts { width: 112px !important; }
@media (max-width: 760px) {
  #shell .scene--strip.vb-banner { min-height: 0 !important; padding: 10px 12px !important; margin-bottom: 8px !important; row-gap: 2px !important; }
  #shell .vb-banner .vb-title { font-size: 24px !important; }
  #shell .vb-banner .dlg-body { max-width: 66% !important; }
  #shell .vb-banner .scene-strip-sub { display: none !important; }
  #shell .vb-banner .dlg-line { font-size: 11.5px !important; }
  #shell #archive-tools { padding: 0 2px 6px !important; margin: 0 !important; gap: 6px !important; }
  #shell #archive-tools > .btn { min-height: 30px !important; height: 30px !important; padding: 0 10px !important; }
  /* filters: two compact rows of controls instead of four tall ones */
  #shell .mobile-filterbar { gap: 8px !important; padding-top: 8px !important; padding-bottom: 8px !important; }
  #shell .mobile-filterbar > label { gap: 3px !important; font-size: 10px !important; letter-spacing: .1em; }
  #shell .mobile-filterbar > label select { height: 36px !important; min-height: 0 !important; font-size: 13px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  #shell .mobile-filterbar .sortwrap { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px !important; align-items: stretch; }
  #shell .mobile-filterbar .sortwrap > * { margin: 0 !important; min-width: 0; }
  #shell .mobile-filterbar .sortwrap .pick-control { grid-column: 1; grid-row: 1; }
  #shell .mobile-filterbar .sortwrap .pick-control small { display: none !important; }
  #shell .mobile-filterbar .sortwrap .surprise-button { width: 100% !important; height: 36px !important; min-height: 0 !important; }
  #shell .mobile-filterbar .sortwrap .filter-dice { grid-column: 2; grid-row: 1; height: 36px !important; min-height: 0 !important; width: 100% !important; }
  #shell .mobile-filterbar .sortwrap .shufbtn { grid-column: 3; grid-row: 1; width: 36px !important; height: 36px !important; }
  #shell .mobile-filterbar .sortwrap .sortbtn { grid-column: 1 / 3; grid-row: 2; height: 34px !important; min-height: 0 !important; width: 100% !important; }
  #shell .mobile-filterbar .sortwrap .update-check { grid-column: 1 / -1; grid-row: 3; height: 30px !important; min-height: 0 !important; width: 100% !important; justify-content: center; }
  /* list tools: one row that scrolls sideways if it must */
  #shell .view-main .tabsbar { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px !important; padding: 6px 8px !important; overflow-x: auto; scrollbar-width: none; }
  #shell .view-main .tabsbar > * { flex: none !important; margin: 0 !important; }
  #shell .view-main .tabsbar .music-view-mode { width: 84px !important; height: 32px !important; }
  #shell .view-main .tabsbar .tabs { display: flex !important; width: auto !important; gap: 2px !important; }
  #shell .view-main .tabsbar .tabs > button { height: 32px !important; padding: 0 6px !important; }
  #shell .view-main .tabsbar [data-el=reset] { width: auto !important; height: 30px !important; padding: 0 10px !important; }
}
/* track titles: genre + date sit to the right of the title while there is room, and drop under it when there isn't (no cut-off titles) */
#shell .row .r-titleline { flex-wrap: wrap !important; row-gap: 3px !important; }
#shell .row .r-titleline > .r-title { max-width: 100%; }

/* ---------- city strip (owner's call, 21 Oct): the skyline returns above the compact bar on Likes and Lurklist only; it scrolls
   away and the 52 px bar stays sticky. Desktop and tablet; phones keep the space for music. ---------- */
.city-strip { display: none; }
@media (min-width: 761px) {
  body:is([data-nav="stream"], [data-nav="dls"], [data-nav="mixes"], [data-nav="watcher"]) .city-strip { display: block; position: relative; height: 46px; overflow: hidden;
    background: linear-gradient(180deg, #0e0e0c00 55%, #151513 100%), url("/web/art/vb-skyline.webp") left 72% / auto 230% repeat-x, var(--vb-paper);
    image-rendering: pixelated; border-bottom: 2px solid #0e0e0c; }
  body:is([data-nav="stream"], [data-nav="dls"], [data-nav="mixes"], [data-nav="watcher"]) .city-strip::after { content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 140px, #ff5b1c22 140px 141px), linear-gradient(90deg, var(--vb-paper) 0, #f6eedb00 18%, #f6eedb00 82%, var(--vb-paper) 100%); pointer-events: none; }
}
