/* WATCHER — the component sheet (design/visual-bible-20261021/06-ui-components.webp), applied piece by piece.
   Owner, 21 Oct: "apply buttons, assets, styles, functions as they were mentioned in that screen". Loaded last.
   Numbers in the headings match the sheet's panels. */
:root { --bc-ink: #0e0e0c; --bc-paper: #f6eedb; --bc-card: #fbf6ea; --bc-o: #ff5b1c; --bc-cyan: #bff6ff; --bc-cyan-on: #3fd0e0; --bc-off: #d9d4c7; --bc-offink: #8a8577; --bc-bar: #151513; }

/* 03 search bar — dark field, orange magnifier; focused gets an orange frame. No "/" badge: the owner asked for it gone (20 Oct); the / shortcut still works */
body .hdr .search { background: #1c1b17 !important; border: 1.5px solid #6e6a5c !important; }
body .hdr .search:focus-within { border: 2px solid var(--bc-o) !important; box-shadow: 0 0 0 2px #ff5b1c33 !important; }
body .hdr .search > .ic { color: var(--bc-o) !important; }
body .hdr .search .search-key { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-left: auto; border: 1.5px solid #6e6a5c; color: #c9bfa3; font: 700 11px/1 var(--ui); background: transparent; box-shadow: none; padding: 0; }
body .hdr .search:focus-within .search-key { display: none; }
body .hdr .search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; cursor: pointer;
  background: linear-gradient(45deg, transparent 43%, #efe6cf 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #efe6cf 43% 57%, transparent 57%); }
@media (max-width: 760px) { body .hdr .search .search-key { display: none; } }

/* 04 buttons — LURK: pale cyan, ink frame, bookmark. Hover lifts, pressed goes deep cyan, disabled greys out */
body .lurk-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 4px 12px !important;
  background: var(--bc-cyan) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important;
  font: 700 11px/1 var(--ui) !important; letter-spacing: .1em !important; text-shadow: none !important; transition: transform .08s, box-shadow .08s; }
body .lurk-btn .ic { width: 13px !important; height: 13px !important; color: var(--bc-ink) !important; }
body .lurk-btn:hover { background: #dffbff !important; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--bc-ink) !important; }
body .lurk-btn:active { background: var(--bc-cyan-on) !important; transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--bc-ink) !important; }
body .lurk-btn:disabled { background: var(--bc-off) !important; color: var(--bc-offink) !important; border-color: var(--bc-offink) !important; box-shadow: none !important; transform: none; }

/* ADD TO LURKLIST — cream, ink frame, a plus; hover fills orange; once added it shows a green check */
body .lurklist-action { background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--bc-ink) !important; font: 700 11px/1 var(--ui) !important; letter-spacing: .08em !important; text-shadow: none !important; }
body .lurklist-action .ic { color: var(--bc-ink) !important; width: 12px !important; height: 12px !important; }
body .lurklist-action:hover:not(:disabled) { background: var(--bc-o) !important; color: #fff !important; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--bc-ink) !important; }
body .lurklist-action:hover:not(:disabled) .ic { color: #fff !important; }
/* owner, 20 Oct: IN LURKLIST and ADD TO LURKLIST must be different colours — added = the sheet's deep cyan "LURKED" fill */
body .lurklist-action.is-saved { background: var(--bc-cyan-on) !important; color: var(--bc-ink) !important; border-color: var(--bc-ink) !important; }
body .lurklist-action.is-saved .ic { color: var(--bc-ink) !important; }
body .lurklist-action:disabled { background: var(--bc-off) !important; color: var(--bc-offink) !important; border-color: var(--bc-offink) !important; box-shadow: none !important; }
/* BLEND — solid orange, ink frame (the profile header's second button) */
body [data-hub-blend] { background: var(--bc-o) !important; color: #fff !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--bc-ink) !important; font: 700 11px/1 var(--ui) !important; letter-spacing: .1em !important; min-height: 28px; padding: 4px 12px !important; text-shadow: none !important; }
body [data-hub-blend]:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--bc-ink) !important; }

/* icon buttons — square keys: outlined by default, black on hover, orange when on */
body .row .r-crate, body .row .r-more { width: 34px !important; height: 34px !important; display: grid !important; place-items: center; padding: 0 !important;
  background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; }
body .row .r-crate:hover, body .row .r-more:hover { background: var(--bc-ink) !important; color: var(--bc-paper) !important; }
body .row .r-crate .ic, body .row .r-more .ic { width: 16px; height: 16px; }
body .row .r-heart { border-radius: 0 !important; border: 2px solid var(--bc-ink) !important; background: var(--bc-card) !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; }
body .r-heart[aria-pressed="true"] { background: var(--bc-o) !important; color: #fff !important; }
body .r-heart[aria-pressed="true"] .ic, body .r-heart[aria-pressed="true"] .n { color: #fff !important; }

/* 05 dropdowns — cream field, ink frame, chevron; menus are cream lists, the hovered row tinted orange */
body .view-main select, body .sortbtn { background-color: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--bc-ink) !important; }
body .menu:not(.search-menu) { background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 3px 3px 0 var(--bc-ink) !important; }
body .menu:not(.search-menu) :is(button, a) { color: var(--bc-ink) !important; background: transparent !important; border-radius: 0 !important; text-shadow: none !important; }
body .menu:not(.search-menu) :is(button, a):hover, body .menu:not(.search-menu) :is(button, a).on { background: #ffd9c4 !important; color: #c83a0a !important; }
body .menu:not(.search-menu) .ic { color: currentColor !important; }
body .hdr .nav-drop { position: relative; }
@media (min-width: 761px) { body .hdr .nav-drop > .menu { position: absolute !important; left: 0 !important; right: auto !important; top: calc(100% + 6px) !important; min-width: 220px; z-index: 80; } }

/* 06 genre chips — square cream chips with an ink frame; ALL and the chosen one fill orange, the chosen one shows ✕ */
body .gchips .gchip.gchip { background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; filter: none !important; border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--bc-ink) !important; font: 700 11px/1 var(--ui) !important; letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px !important; min-height: 30px; }
body .gchips .gchip.gchip span { color: #7a7364 !important; filter: none !important; font-weight: 600; margin-left: 4px; }
body .gchips .gchip.gchip:hover { background: #fff !important; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--bc-ink) !important; }
body .gchips .gchip.gchip.on { background: var(--bc-o) !important; color: #fff !important; }
body .gchips .gchip.gchip.on span { color: #ffe3d4 !important; }
body .gchips .gchip.gchip.on:not(.all)::after { content: "✕" !important; position: static !important; display: inline !important; margin-left: 8px; font-weight: 700; background: none !important; width: auto !important; height: auto !important; }
body .gchips .gchip.gchip::before { content: none !important; }
body .gchips .gchip.gchip.zero { opacity: .5; }
body .gchips .gclear { align-self: center; margin-left: 6px; padding: 4px 2px; background: none; border: 0; color: var(--bc-ink); font: 600 12px var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body .gchips .gclear:hover { color: var(--bc-o); }

/* 07 view toggle — tiles with the icon over the word; the current one fills orange */
body .viewtoggle { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px !important; }
body .viewtoggle > button { display: grid !important; justify-items: center; align-content: center; gap: 6px !important; min-height: 58px !important; padding: 8px 4px !important; margin: 0 !important;
  background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important;
  font: 700 10.5px/1 var(--ui) !important; letter-spacing: .1em; }
body .viewtoggle > button .ic { width: 20px !important; height: 20px !important; color: currentColor !important; }
body .viewtoggle > button::before, body .viewtoggle > button::after { content: none !important; }
body .viewtoggle > button:hover { background: #fff !important; }
body .viewtoggle > button.on { background: var(--bc-o) !important; color: #fff !important; }

/* 08 toast — a dark bar with an orange frame; the watcher's face is the icon square */
body #toast { background: var(--bc-bar) !important; border: 2px solid var(--bc-o) !important; border-radius: 0 !important; box-shadow: 3px 3px 0 var(--bc-ink) !important; color: #efe6cf !important; }
body #toast { --tk: var(--bc-o); grid-template-columns: 34px minmax(0, 1fr) auto 26px !important; border-color: var(--tk) !important; clip-path: none !important; }
body #toast[data-kind="ok"] { --tk: #35c46a; } body #toast[data-kind="like"] { --tk: #ff5b1c; } body #toast[data-kind="info"] { --tk: #3fd0e0; } body #toast[data-kind="err"] { --tk: #ff3b30; }
body #toast .t-face { position: relative; width: 34px !important; height: 34px !important; border: 2px solid var(--tk) !important; border-radius: 0 !important; background: #0b0b0a !important; box-shadow: none !important; }
body #toast .t-badge { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; display: grid; place-items: center; background: var(--tk); color: #0e0e0c; border: 1.5px solid #0e0e0c; }
body #toast .t-badge .ic { width: 10px; height: 10px; }
body #toast .t-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; background: transparent; color: #efe6cf; border: 1.5px solid #4a4840; cursor: pointer; }
body #toast .t-x:hover { border-color: var(--tk); color: var(--tk); }
body #toast .t-x .ic { width: 11px; height: 11px; }

/* 12 person cards (taste twins, genre cards) — framed avatar with orange corner pixels */
body :is(.twin, .bg-card) > img { padding: 3px !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; object-fit: cover; box-sizing: border-box;
  background: linear-gradient(var(--bc-o) 0 0) top left / 5px 5px no-repeat, linear-gradient(var(--bc-o) 0 0) top right / 5px 5px no-repeat,
              linear-gradient(var(--bc-o) 0 0) bottom left / 5px 5px no-repeat, linear-gradient(var(--bc-o) 0 0) bottom right / 5px 5px no-repeat, #0e0e0c !important; }
body .twin { border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 3px 3px 0 var(--bc-ink) !important; background: var(--bc-card) !important; }
body .twin.twin-first { box-shadow: 3px 3px 0 var(--bc-o) !important; }

/* 15 empty states — a title in caps, one line, one orange button */
body .lurklist-empty { background: var(--bc-card) !important; border: 2px dashed #b9b09a !important; border-radius: 0 !important; text-align: center; padding: 26px 18px !important; }
body .lurklist-empty b { display: block; font: 700 15px/1.3 var(--ui) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--bc-ink) !important; }
body .lurklist-empty p { font: 500 13px/1.6 var(--ui) !important; color: #5f594c !important; max-width: 62ch; margin: 8px auto 14px !important; }
body .lurklist-empty .btn { background: var(--bc-o) !important; color: #fff !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; font: 700 11px/1 var(--ui) !important; letter-spacing: .1em; padding: 9px 14px !important; }

/* 11 crate rows — framed rows with the name in caps and the track count */
body .crate-row { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px !important; margin: 0 0 8px !important; cursor: pointer;
  background: var(--bc-card) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; }
body .crate-row .nm { font: 700 12.5px/1.2 var(--ui) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--bc-ink) !important; }
body .crate-row .n { font: 500 12px var(--ui) !important; color: #6c6555 !important; }
body .crate-row:hover { background: #fff !important; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--bc-o) !important; }

/* 03 search suggestions — a cream list under the field; the first row is lit orange, every row says what kind it is */
body .hdr .search-menu { background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 3px 3px 0 var(--bc-ink) !important; padding: 4px !important; }
body .hdr .search-menu .mh { color: #7a7364 !important; font: 700 10px/1 var(--ui) !important; letter-spacing: .12em; padding: 10px 8px 6px !important; background: none !important; border: 0 !important; }
body .hdr .search-menu > button, body .hdr .search-menu .search-person-result > button:first-child { display: flex !important; align-items: center; gap: 10px; width: 100%; padding: 8px !important; text-align: left;
  background: transparent !important; color: var(--bc-ink) !important; border: 0 !important; border-radius: 0 !important; font: 500 13px/1.3 var(--ui) !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; }
body .hdr .search-menu > button .ic { width: 14px; height: 14px; color: var(--bc-o) !important; flex: none; }
body .hdr .search-menu > button:hover, body .hdr .search-menu > button:focus-visible, body .hdr .search-menu .search-person-result > button:first-child:hover { background: #ffe1d1 !important; }
body .hdr .search-menu > button.hot:first-of-type { background: #ffd9c4 !important; }
body .hdr .search-menu .sg-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .hdr .search-menu .sg-t b { color: #c83a0a; font-weight: 700; }
body .hdr .search-menu .sg-k, body .hdr .search-menu .k { flex: none; color: #7a7364 !important; font: 600 11px var(--ui) !important; background: none !important; border: 0 !important; }
body .hdr .search-menu .sub { color: #6c6555 !important; }

/* 13 profile header (someone's page) — art banner, framed avatar sitting on its edge, name + @handle, three stats with
   rules between them, LURKLIST / BLEND / SoundCloud / connections, then tabs for LIKES and BLEND WITH YOU */
#shell #person-head.person-head { position: relative; display: grid !important; grid-template-columns: 120px minmax(0, 1fr) auto !important;
  grid-template-areas: "banner banner banner" "av info stats" "av info acts" "bar bar bar"; gap: 6px 18px !important; align-items: start !important; padding: 0 18px 0 !important; overflow: hidden; }
#shell #person-head .ph-banner { grid-area: banner; height: 112px; margin: 0 -18px; border-bottom: 2px solid var(--bc-ink);
  background: linear-gradient(180deg, #0e0e0c00 40%, #0e0e0c66), url("/web/art/vb-skyline.webp") center 62% / cover no-repeat, #1b1626; image-rendering: pixelated; }
#shell #person-head > .back { position: absolute; top: 10px; left: 12px; z-index: 2; background: var(--bc-card) !important; }
#shell #person-head > .p-avatar { grid-area: av; width: 112px !important; height: 112px !important; margin-top: -58px; position: relative; z-index: 1; padding: 4px; border: 2px solid var(--bc-ink); box-shadow: 3px 3px 0 var(--bc-ink);
  background: linear-gradient(var(--bc-o) 0 0) top left / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) top right / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) bottom left / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) bottom right / 7px 7px no-repeat, #0e0e0c; }
#shell #person-head > .p-avatar::before, #shell #person-head > .p-avatar::after { content: none !important; }
#shell #person-head > .p-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
#shell #person-head .ph-info { grid-area: info; padding-top: 10px; }
#shell #person-head .ph-name { font: 700 22px/1.2 var(--ui) !important; color: var(--bc-ink); }
#shell #person-head .ph-sub { font: 500 13px/1.5 var(--ui) !important; color: #5f594c; margin-top: 2px; }
#shell #person-head .ph-stats { grid-area: stats; display: flex; padding-top: 12px; }
#shell #person-head .ph-stats > span { display: grid; justify-items: center; gap: 2px; padding: 0 18px; border-left: 1.5px solid #c9bfa3; }
#shell #person-head .ph-stats > span:first-child { border-left: 0; }
#shell #person-head .ph-stats b { font: 700 20px/1 var(--ui); color: var(--bc-ink); }
#shell #person-head .ph-stats small { font: 600 10px/1 var(--ui); letter-spacing: .12em; color: #7a7364; }
#shell #person-head .ph-acts { grid-area: acts; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-self: end; }
#shell #person-head .ph-acts .btn:not(.lurklist-action):not(.ph-blend) { background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; font: 700 11px/1 var(--ui) !important; letter-spacing: .08em; min-height: 30px; }
#shell #person-head .ph-blend { background: var(--bc-o) !important; color: #fff !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; font: 700 11px/1 var(--ui) !important; letter-spacing: .1em; min-height: 30px; }
#shell #person-head .ph-blend .ic { color: #fff !important; }
#shell #person-head .sysbar { grid-area: bar; margin: 10px -18px 0 !important; }
#shell #person-head .skeleton { grid-column: 1 / -1; }
#shell .person-modes { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 !important; margin: 10px 0 !important; border: 2px solid var(--bc-ink); background: var(--bc-card); }
#shell .person-modes > button { padding: 11px 8px !important; background: transparent !important; color: var(--bc-ink) !important; border: 0 !important; border-left: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: none !important;
  font: 700 12px/1 var(--ui) !important; letter-spacing: .1em; text-transform: uppercase; }
#shell .person-modes > button:first-child { border-left: 0 !important; }
#shell .person-modes > button.on { color: var(--bc-o) !important; box-shadow: inset 0 0 0 2px var(--bc-o), inset 0 -4px 0 var(--bc-o) !important; background: #fff !important; }
@media (max-width: 760px) {
  #shell #person-head.person-head { grid-template-columns: 84px minmax(0, 1fr) !important; grid-template-areas: "banner banner" "av info" "stats stats" "acts acts" "bar bar"; gap: 8px 12px !important; padding: 0 12px !important; }
  #shell #person-head .ph-banner { height: 84px; margin: 0 -12px; }
  #shell #person-head > .p-avatar { width: 84px !important; height: 84px !important; margin-top: -44px; }
  #shell #person-head .ph-name { font-size: 18px !important; }
  #shell #person-head .ph-stats { padding-top: 0; justify-content: space-between; }
  #shell #person-head .ph-stats > span { flex: 1; padding: 0 6px; }
  #shell #person-head .ph-acts { justify-content: flex-start; }
  #shell #person-head .sysbar { margin: 6px -12px 0 !important; }
}
/* the sidebar profile's LURKING state: deep cyan, not a greyed-out button */
body .lurk-btn.is-on:disabled { background: var(--bc-cyan-on) !important; color: var(--bc-ink) !important; border-color: var(--bc-ink) !important; opacity: 1 !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; }

/* 12 person cards (taste twins) — a framed square picture with orange corner pixels, @handle in orange, shared likes,
   overlap, then LURK full width with BLEND and LURKLIST under it */
#shell :is(#hub-twins, #blend-twins) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important; gap: 14px !important; }
#shell .person-card.twin { display: flex !important; flex-direction: column; gap: 8px; padding: 10px !important; margin: 0 !important; min-height: 0 !important; height: auto !important;
  background: var(--bc-card) !important; border: 2px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 3px 3px 0 var(--bc-ink) !important; cursor: pointer; }
#shell .person-card.twin::before, #shell .person-card.twin::after { content: none !important; }
#shell .person-card.twin.twin-first { box-shadow: 3px 3px 0 var(--bc-o) !important; }
#shell .person-card .pc-art { position: relative; display: block; aspect-ratio: 1; padding: 4px; border: 2px solid var(--bc-ink);
  background: linear-gradient(var(--bc-o) 0 0) top left / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) top right / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) bottom left / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) bottom right / 7px 7px no-repeat, #0e0e0c; }
#shell .person-card .pc-art img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; padding: 0 !important; border: 0 !important; background: none !important; }
#shell .person-card .twin-rank { position: absolute; left: 8px; top: 8px; padding: 2px 5px; background: var(--bc-ink); color: var(--bc-o); font: 700 11px/1 var(--ui); letter-spacing: .06em; }
#shell .person-card .pc-body { display: grid; gap: 2px; min-width: 0; }
#shell .person-card .pc-name { color: var(--bc-o); font: 700 13px/1.25 var(--ui) !important; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#shell .person-card .pc-real { color: #5f594c; font: 500 11.5px/1.3 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#shell .person-card .pc-body small { font: 500 12px/1.35 var(--ui); color: #3e3d36; }
#shell .person-card .pc-body small strong { color: var(--bc-ink); }
#shell .person-card .pc-ov em { font-style: normal; font-weight: 700; color: var(--bc-ink); }
#shell .person-card .twin-acts { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; margin-top: auto; }
#shell .person-card .twin-acts > * { width: 100% !important; margin: 0 !important; min-height: 28px !important; font-size: 10.5px !important; justify-content: center; }
#shell .person-card .twin-acts > .lurk-btn { grid-column: 1 / -1; }
#shell .person-card .twin-acts > .lurklist-action { padding: 4px 6px !important; }
@media (max-width: 760px) { #shell :is(#hub-twins, #blend-twins) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; } }
#shell .person-card.twin, #shell .person-card.twin.twin-first { grid-column: auto !important; grid-row: auto !important; width: auto !important; max-width: none !important; }
#shell .person-card .twin-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } #shell .person-card .twin-acts > * { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden; white-space: nowrap; }
@media (max-width: 760px) { #shell .person-card.twin { padding: 8px !important; } #shell .person-card .twin-acts > * { font-size: 9.5px !important; padding-left: 4px !important; padding-right: 4px !important; letter-spacing: .04em !important; gap: 4px !important; } #shell .person-card .twin-acts .ic { width: 10px !important; height: 10px !important; } }

/* 10 crate cards — a framed mosaic of the crate's own covers with orange corner pixels, the name in caps, the count, a ··· key */
body .crate-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 4px 0 8px; }
body .crate-card { display: grid; gap: 8px; padding: 8px; background: var(--bc-card); border: 2px solid var(--bc-ink); box-shadow: 3px 3px 0 var(--bc-ink); cursor: pointer; color: var(--bc-ink); }
body .crate-card:hover, body .crate-card:focus-visible { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bc-o); outline: 0; }
body .crate-card .cc-art { display: grid; aspect-ratio: 1; padding: 4px; gap: 2px; border: 2px solid var(--bc-ink); overflow: hidden;
  background: linear-gradient(var(--bc-o) 0 0) top left / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) top right / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) bottom left / 7px 7px no-repeat, linear-gradient(var(--bc-o) 0 0) bottom right / 7px 7px no-repeat, #0e0e0c; }
body .crate-card .cc-art.cc-n2, body .crate-card .cc-art.cc-n3, body .crate-card .cc-art.cc-n4 { grid-template-columns: 1fr 1fr; }
body .crate-card .cc-art.cc-n3 img:first-child { grid-row: span 2; }
body .crate-card .cc-art img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
body .crate-card .cc-art.cc-n0 { place-items: center; background-color: #1a1813; }
body .crate-card .cc-art i .ic { width: 42px; height: 42px; color: #ff5b1c; }
body .crate-card .cc-foot { display: flex; align-items: center; gap: 6px; min-width: 0; }
body .crate-card .cc-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
body .crate-card .cc-txt b { font: 700 12.5px/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .crate-card .cc-txt small { font: 500 12px var(--ui); color: #6c6555; }
body .crate-card .cc-more { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; background: var(--bc-card); color: var(--bc-ink); border: 2px solid var(--bc-ink); box-shadow: 2px 2px 0 var(--bc-ink); cursor: pointer; }
body .crate-card .cc-more:hover { background: var(--bc-ink); color: var(--bc-paper); }
body .crate-card .cc-more .ic { width: 14px; height: 14px; }

/* 15 empty states — an icon, a title in caps, one line, one orange button */
body .bc-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: var(--bc-ink); }
body .bc-empty-ic .ic { width: 34px; height: 34px; color: var(--bc-ink); }
body .bc-empty b { font: 700 14px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
body .bc-empty p { margin: 0 0 6px; max-width: 44ch; font: 500 13px/1.5 var(--ui); color: #5f594c; }
body .bc-empty-btn { padding: 9px 14px; background: var(--bc-o); color: #fff; border: 2px solid var(--bc-ink); box-shadow: 2px 2px 0 var(--bc-ink); font: 700 11px/1 var(--ui); letter-spacing: .1em; cursor: pointer; }
body .bc-empty-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--bc-ink); }
body .empty.bc-empty-host { padding: 0 !important; background: none !important; border: 0 !important; font: inherit !important; }
body .empty.bc-empty-host::before, body .empty.bc-empty-host::after { content: none !important; }

/* 14 loading states — a pixel ring for whole panels, a moving waveform for lines that are loading */
@keyframes bc-ring { to { transform: rotate(360deg); } }
@keyframes bc-wave { 0%, 100% { background-size: 4px 30%, 4px 70%, 4px 45%, 4px 90%, 4px 55%, 4px 35%, 4px 75%; } 50% { background-size: 4px 80%, 4px 35%, 4px 95%, 4px 40%, 4px 70%, 4px 85%, 4px 30%; } }
body .skeleton:not(.err)::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff5b1c 0 12.5%, #0e0e0c 0 25%, #0e0e0c88 0 37.5%, #0e0e0c55 0 50%, #0e0e0c33 0 62.5%, #0e0e0c22 0 75%, #0e0e0c18 0 87.5%, #0e0e0c11 0);
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); animation: bc-ring .9s steps(8, end) infinite; }
#shell #person-head .skeleton:not(.err)::before { margin-left: 0; }
body .bc-loading::before { content: ""; display: inline-block; vertical-align: -3px; width: 40px; height: 16px; margin-right: 10px;
  background: linear-gradient(#ff5b1c 0 0) 0 50% no-repeat, linear-gradient(#ff5b1c 0 0) 6px 50% no-repeat, linear-gradient(#ff5b1c 0 0) 12px 50% no-repeat, linear-gradient(#ff5b1c 0 0) 18px 50% no-repeat,
              linear-gradient(#ff5b1c 0 0) 24px 50% no-repeat, linear-gradient(#ff5b1c 0 0) 30px 50% no-repeat, linear-gradient(#ff5b1c 0 0) 36px 50% no-repeat;
  animation: bc-wave 1s steps(4, end) infinite; }
body.motion-quiet .skeleton::before, body.motion-quiet .bc-loading::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) { body .skeleton::before, body .bc-loading::before { animation: none !important; } }

/* 16 compact player (desktop) — one flat dark bar under the city ridge: cream double rule on top, groups split by dashed
   orange rules instead of boxes, flat cream icon keys, waveform orange where played, NEXT UP with its cover on the right */
@media (min-width: 761px) {
  body .player { background: #121210 !important; box-shadow: inset 0 2px 0 #0e0e0c, inset 0 4px 0 #121210, inset 0 5px 0 #6e6a5c !important; border-top: 0 !important; }
  body .player > .p-ctrl, body .player > .p-wave, body .player > .p-vol, body .player > #p-random { position: relative; }
  body .player > .p-ctrl, body .player > .p-now > :not(img):not(a):not(.p-meta) { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  body .player > .p-ctrl::before, body .player > .p-wave::before, body .player > .p-vol::before, body .player > #p-random::before {
    content: ""; position: absolute; left: -6px; top: 8px; bottom: 8px; border-left: 2px dashed #ff6a2680; pointer-events: none; }
  body .player .p-btn { background: transparent !important; color: #e8dfc8 !important; border: 1.5px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; }
  body .player .p-btn:hover:not(:disabled) { color: #ff6a26 !important; border-color: #ff6a2666 !important; }
  body .player .p-btn.on, body .player #p-shuffle.on { color: #ff5b1c !important; }
  body .player .p-btn .ic { color: currentColor !important; }
  body .player .p-heart[aria-pressed="true"] { color: #ff5b1c !important; }
  body .player .p-time { color: #e8dfc8 !important; font: 600 12px var(--ui) !important; }
  body .player .p-nextup { display: flex; align-items: center; gap: 8px; max-width: 210px; min-width: 0; height: 44px; padding: 0 10px; margin-left: 4px; background: transparent; color: #e8dfc8; border: 0; border-left: 2px dashed #ff6a2680; cursor: pointer; text-align: left; }
  body .player .p-nextup[hidden] { display: none; }
  body .player .p-nextup img { width: 34px; height: 34px; object-fit: cover; border: 1.5px solid #6e6a5c; flex: none; }
  body .player .p-nextup span { display: grid; min-width: 0; line-height: 1.25; }
  body .player .p-nextup small { font: 700 9px/1 var(--ui); letter-spacing: .14em; color: #ff6a26; margin-bottom: 2px; }
  body .player .p-nextup b { font: 600 12px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f3ead2; }
  body .player .p-nextup i { font: 500 11px var(--ui); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #a8a18d; }
  body .player .p-nextup:hover b { color: #ff6a26; }
}
@media (max-width: 1280px) { body .player .p-nextup { display: none !important; } }
@media (max-width: 760px) { body .player .p-nextup { display: none !important; } }
@media (min-width: 1281px) { body .player { grid-template-columns: minmax(340px, 1.1fr) auto minmax(110px, 1fr) auto auto auto auto auto auto auto !important; } body .player .p-nextup { max-width: 170px; } }
#shell .person-card .twin-acts > * { padding: 4px 5px !important; font-size: 10px !important; letter-spacing: .05em !important; gap: 4px !important; } #shell .person-card .twin-acts .ic { width: 10px !important; height: 10px !important; } #shell .person-card .twin-acts > [data-hub-blend] { min-width: 0 !important; }
/* cards: LURK and BLEND share the first row, LURKLIST gets the full second row so no label is cut */ #shell .person-card .twin-acts > .lurk-btn { grid-column: auto !important; } #shell .person-card .twin-acts > .lurklist-action { grid-column: 1 / -1 !important; }

/* repost + comment keys under the like count (owner, 20 Oct): small framed keys, the same family as ♥; repost goes orange when done */
body .r-stats .r-repost, body .r-stats .r-comments { display: inline-flex !important; align-items: center; gap: 5px; height: 24px; padding: 0 7px !important; margin: 0;
  background: var(--bc-card) !important; color: var(--bc-ink) !important; border: 1.5px solid var(--bc-ink) !important; border-radius: 0 !important; box-shadow: 1px 1px 0 var(--bc-ink) !important;
  font: 600 11px/1 var(--ui) !important; cursor: pointer; }
body .r-stats .r-repost .ic, body .r-stats .r-comments .ic { width: 12px !important; height: 12px !important; color: currentColor !important; }
body .r-stats .r-repost:hover, body .r-stats .r-comments:hover { background: var(--bc-ink) !important; color: var(--bc-paper) !important; }
body .r-stats .r-repost.on { background: var(--bc-o) !important; color: #fff !important; }
body .r-stats .r-repost.busy { opacity: .6; }

/* readable type (owner, repeatedly): every reading surface — titles, artists, toasts, hints, bios, lists — uses the UI face.
   The typewriter mono stays only where digits must line up: timecodes and key hints. */
:root { --mono: "Chakra Petch", system-ui, sans-serif; --body: "Chakra Petch", system-ui, sans-serif; --code: "JetBrains Mono", ui-monospace, Consolas, monospace; }
body { font-family: var(--ui) !important; }
body :is(.r-title, .r-title a, .r-artist, .artist-name, #toast .t-text, .fol-row .nm, .fol-row .st, .r-date, .p-bio, .hint, .p-loc, .sub, .ti, .p-name, .mh, input, select, textarea, button) { font-family: var(--ui) !important; }
body :is(.r-time, .p-time, kbd, .c-dur, .ld-opt span) { font-family: var(--code) !important; }
body .row .r-title { font-weight: 700 !important; letter-spacing: 0 !important; }
body .row .r-title a { font-size: 15px !important; }
body #toast .t-text { font-size: 13px !important; line-height: 1.4 !important; letter-spacing: .01em !important; }

/* phone genres as buttons (owner, 20 Oct): the same square chips as desktop in one sideways-scrolling row, the year stays a
   dropdown right under it. The long-tail "+ MORE" select and Clear all sit at the end of the row. */
@media (max-width: 760px) {
  #shell .index2 > .genre-row { display: block !important; order: 1; padding: 0 !important; margin: 0 0 2px !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  #shell .index2 > .genre-row > .ph-row { display: flex !important; margin: 0 0 6px !important; }
  #shell .index2 > .genre-row .ph { font: 700 10px/1 var(--ui) !important; letter-spacing: .12em; color: var(--bc-o) !important; margin: 0 !important; }
  #shell .index2 > .genre-row .index-marker, #shell .index2 > .genre-row .npc { display: none !important; }
  #shell .index2 > .genre-row > .gchips { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 4px 6px 0 !important; margin: 0 -4px 0 0; scroll-snap-type: x proximity; }
  #shell .index2 > .genre-row > .gchips::-webkit-scrollbar { display: none; }
  #shell .index2 > .genre-row > .gchips > * { flex: none !important; scroll-snap-align: start; }
  #shell .index2 > .genre-row .gchip.gchip { min-height: 34px !important; padding: 6px 10px !important; }
  #shell .index2 > .genre-row .gmore { min-width: 120px; }
  #shell .index2 > .genre-row .subchips { display: none !important; }
  #shell .index2 > .mobile-filterbar { order: 2; }
  #shell .index2 > .mobile-filterbar > label:first-child { display: none !important; }
  #shell .index2 > .mobile-filterbar > label { flex: 1 1 100% !important; grid-column: 1 / -1; }
}

/* TREE (outside the Lurklist): month cards, newest first; each month's genres hang off a branch, biggest first, with a bar */
body .rows.tree, body .crate-tracks .gtree { display: block; }
body .gtree { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 6px 2px 10px; }
body .gt-month { position: relative; padding: 10px 12px 12px; background: var(--bc-card); border: 2px solid var(--bc-ink); box-shadow: 3px 3px 0 var(--bc-ink); }
body .gt-month::before, body .gt-month::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--bc-o); }
body .gt-month::before { top: -2px; left: -2px; } body .gt-month::after { top: -2px; right: -2px; }
body .gt-month header { display: grid; gap: 2px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1.5px dashed #b9b09a; }
body .gt-month header b { font: 700 15px/1.1 var(--ui); letter-spacing: .1em; color: var(--bc-ink); }
body .gt-month header small { font: 500 11.5px var(--ui); color: #6c6555; }
body .gt-branch { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; }
body .gt-branch::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 14px; border-left: 2px solid var(--bc-ink); }
body .gt-branch > li { position: relative; }
body .gt-branch > li::before { content: ""; position: absolute; left: -10px; top: 50%; width: 9px; border-top: 2px solid var(--bc-ink); }
body .gt-branch > li.gt-extra { display: none; }
body .gt-month.open .gt-branch > li.gt-extra { display: block; }
body .gt-leaf { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name n" "bar bar"; gap: 3px 8px; width: 100%; padding: 5px 6px; margin: 2px 0;
  background: transparent; border: 1.5px solid transparent; color: var(--bc-ink); text-align: left; cursor: pointer; }
body .gt-leaf:hover, body .gt-leaf:focus-visible { background: #ffe1d1; border-color: var(--bc-o); outline: 0; }
body .gt-leaf .gt-name { grid-area: name; font: 700 12px/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .gt-leaf .gt-n { grid-area: n; font: 700 12px/1.2 var(--ui); color: #c83a0a; }
body .gt-leaf .gt-bar { grid-area: bar; display: block; height: 4px; width: var(--w); background: repeating-linear-gradient(90deg, var(--bc-o) 0 6px, #ff5b1c66 6px 8px); }
body .gt-branch > li:first-child .gt-leaf .gt-bar { background: var(--bc-o); }
body .gt-more { margin: 6px 0 0 14px; padding: 4px 8px; background: none; border: 1.5px solid var(--bc-ink); color: var(--bc-ink); font: 700 10.5px/1 var(--ui); letter-spacing: .08em; cursor: pointer; }
body .gt-more:hover { background: var(--bc-ink); color: var(--bc-paper); }
body .gt-show { display: block; margin: 8px auto 14px; }
body .gt-pool { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 4px 0 10px; background: var(--bc-ink); color: var(--bc-paper); border: 2px solid var(--bc-ink); box-shadow: 3px 3px 0 var(--bc-o); }
body .gt-pool .gt-path { font: 500 12.5px var(--ui); letter-spacing: .04em; }
body .gt-pool .gt-path b { color: #ff8a4c; letter-spacing: .08em; }
body .gt-pool .btn { background: var(--bc-paper) !important; color: var(--bc-ink) !important; border: 2px solid var(--bc-paper) !important; border-radius: 0 !important; font: 700 10.5px/1 var(--ui) !important; letter-spacing: .08em; }
@media (max-width: 760px) { body .gtree { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- identity, deeper (owner, 21 Oct: "go more… cohesive and deep for all aspects") ----------
   The sheet's frame on every panel: ink rule + inner hairline (a double rule), ink bracket corners, the orange crosshair,
   and a faint city silhouette along the bottom edge. Paper gets a fine printed dither. */
:root {
  --bc-corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%230e0e0c' d='M0 0h7v2H2v5H0z'/%3E%3C/svg%3E");
  --bc-corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%230e0e0c' d='M0 10h7V8H2V3H0z'/%3E%3C/svg%3E");
  --bc-corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%230e0e0c' d='M10 10H3V8h5V3h2z'/%3E%3C/svg%3E");
  --bc-dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%230e0e0c' fill-opacity='.035' d='M0 0h1v1H0zM2 2h1v1H2z'/%3E%3C/svg%3E");
}
body { background-image: var(--bc-dither) !important; background-color: var(--vb-paper) !important; }
#shell :is(.index2, .listpanel, .side > .panel, .wside > .panel, .wtop, .feedpanel, #view-explore .panel, .disc-hub > .panel, .blend-genres-panel) {
  background:
    var(--bc-corner-tl) left 3px top 3px / 10px 10px no-repeat,
    var(--bc-corner-bl) left 3px bottom 3px / 10px 10px no-repeat,
    var(--bc-corner-br) right 3px bottom 3px / 10px 10px no-repeat,
    var(--vb-star) right 8px top 8px / 11px 11px no-repeat,
    linear-gradient(#f6eedbb8, #f6eedbb8) left bottom / 100% 26px no-repeat,
    url("/web/art/vb-ridge.webp") left bottom / auto 26px repeat-x,
    var(--vb-paper) !important;
  border: 2px solid var(--vb-ink) !important; box-shadow: inset 0 0 0 3px var(--vb-paper), inset 0 0 0 4px #0e0e0c33, 3px 3px 0 #0e0e0c1f !important;
  image-rendering: pixelated; }
#shell .listpanel { padding-bottom: 30px !important; }
/* section headings: ink caps after the orange slashes, a dashed rule running to the crosshair */
#shell .panel .ph-row { border-bottom: 1.5px dashed #0e0e0c40; padding-bottom: 8px !important; margin-bottom: 10px !important; }
#shell .panel .ph { font: 700 17px/1.1 var(--ui) !important; letter-spacing: .08em !important; color: var(--vb-ink) !important; text-transform: uppercase; }
#shell .panel .ph .sl { color: var(--vb-orange) !important; font-weight: 800; margin-right: 4px; }
/* the YEARS rail as a framed index card, the chosen year a solid orange key */
@media (min-width: 761px) {
  #shell .year-rail { top: calc(var(--bar) + 12px) !important; max-height: calc(100vh - var(--bar) - var(--ftr, 54px) - 30px) !important; padding: 10px 6px 12px !important;
    background: var(--bc-corner-tl) left 2px top 2px / 9px 9px no-repeat, var(--bc-corner-br) right 2px bottom 2px / 9px 9px no-repeat, var(--vb-paper) !important; border: 2px solid var(--vb-ink) !important; box-shadow: 3px 3px 0 #0e0e0c1f !important; }
  #shell .year-rail-h { margin: 0 0 8px 8px !important; color: var(--vb-ink) !important; }
  #shell .year-rail .erabar button { padding: 6px 8px 6px 18px !important; border: 0 !important; border-bottom: 1px dashed #0e0e0c26 !important; }
  #shell .year-rail .erabar button.on { background: var(--vb-orange) !important; color: #fff !important; }
  #shell .year-rail .erabar button.on span { color: #ffe3d4 !important; }
  #shell .year-rail .erabar button.on::before { color: #fff !important; }
}
/* the genre tag in a row: a square ink-framed chip like the filter chips, the genre colour as a corner pixel */
#shell .row .tag, #shell .card .tag { position: relative; border: 1.5px solid var(--vb-ink) !important; border-radius: 0 !important; background: var(--bc-card) !important; color: var(--vb-ink) !important;
  box-shadow: 1px 1px 0 var(--vb-ink) !important; font: 700 10.5px/1 var(--ui) !important; letter-spacing: .08em !important; text-transform: uppercase; padding: 5px 8px 5px 12px !important; }
#shell .row .tag::before, #shell .card .tag::before { content: ""; position: absolute; left: 3px; top: 3px; bottom: 3px; width: 4px; background: var(--gc, var(--vb-orange)); }
#shell .row .tag:hover, #shell .card .tag:hover { background: var(--vb-ink) !important; color: var(--vb-paper) !important; }
/* row numbers and the playing row: orange numerals, the current row framed in orange like a selected slot */
#shell .row .r-num { font: 700 15px/1 var(--ui) !important; color: var(--vb-orange) !important; }
#shell .row.current { box-shadow: inset 4px 0 0 var(--vb-orange) !important; background: #ff5b1c0d !important; }
/* modals (similar, people, stats): a cream panel with the sheet's frame and a dark title bar */
body :is(#more-modal, #people-modal) > :first-child { border: 2px solid var(--vb-ink) !important; border-radius: 0 !important; box-shadow: 6px 6px 0 #0e0e0c55, inset 0 0 0 3px var(--vb-paper), inset 0 0 0 4px #0e0e0c33 !important; }
#shell :is(.index2, .side > .panel, .wside > .panel, .wtop, .feedpanel, #view-explore .panel, .disc-hub > .panel, .blend-genres-panel) { padding-bottom: 30px !important; }

/* ---------- phone track rows (E2E critique, 21 Oct): rows were ~200 px with the title squeezed into 150 px.
   Now: cover with ▶ on it · title, genre + date, artist, waveform · then one line of keys (♥ ⟲ 💬 · similar crate ···). ---------- */
@media (max-width: 760px) {
  body .rows:not(.grid) > .row:not(.compact) { display: grid !important; grid-template-columns: 60px minmax(0, 1fr) 36px 36px 36px !important;
    grid-template-areas: "art body body body body" "side side sim crate more" !important; gap: 8px 8px !important; padding: 10px 2px 12px !important; min-height: 0 !important; align-items: start !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-num { display: none !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-art { grid-area: art !important; width: 60px !important; height: 60px !important; margin: 0 !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-play { grid-area: art !important; align-self: center !important; justify-self: center !important; width: 34px !important; height: 34px !important; margin: 0 !important; opacity: .94; z-index: 1; }
  body .rows:not(.grid) > .row:not(.compact) > .r-body { grid-area: body !important; display: grid !important; gap: 3px !important; min-width: 0 !important; width: auto !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-titleline { display: block !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-titleline > .r-title { white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body .rows:not(.grid) > .row:not(.compact) .r-titleline > .r-title a { font-size: 14.5px !important; line-height: 1.25 !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-tmeta { display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
  body .rows:not(.grid) > .row:not(.compact) .r-tmeta .tag { padding: 3px 6px 3px 10px !important; font-size: 9.5px !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-tmeta .r-tdate { font: 600 11px var(--ui) !important; color: #5f594c !important; background: none !important; border: 0 !important; padding: 0 !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-artist { font-size: 12.5px !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-wave { height: 22px !important; margin: 2px 0 0 !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-wave canvas { height: 22px !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-wave .r-time { display: none !important; }
  body .rows:not(.grid) > .row:not(.compact) .track-date-pair, body .rows:not(.grid) > .row:not(.compact) .r-side .r-date, body .rows:not(.grid) > .row:not(.compact) .r-side .r-tags { display: none !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-side { grid-area: side !important; display: flex !important; align-items: center !important; min-width: 0 !important; width: auto !important; margin: 0 !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-stats { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; align-items: center !important; width: auto !important; margin: 0 !important; }
  body .rows:not(.grid) > .row:not(.compact) .r-stats > * { height: 32px !important; min-height: 0 !important; width: auto !important; flex: none !important; margin: 0 !important; padding: 0 8px !important; font-size: 11.5px !important; display: inline-flex !important; align-items: center; gap: 5px; }
  body .rows:not(.grid) > .row:not(.compact) > .r-likeit { grid-area: sim !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-crate { grid-area: crate !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-more { grid-area: more !important; }
  body .rows:not(.grid) > .row:not(.compact) > :is(.r-likeit, .r-crate, .r-more) { width: 34px !important; height: 34px !important; margin: 0 !important; align-self: center !important; justify-self: end !important; }
}

/* the welcome screen owns the screen: the page behind it can't scroll or rubber-band (E2E: page scrolled to 5,000 px behind it) */
html:has(#landing), html:has(#landing) body { overflow: hidden !important; overscroll-behavior: none; }
@media (max-width: 760px) {
  body .rows:not(.grid) > .row:not(.compact) > .r-play { position: relative !important; inset: auto !important; top: auto !important; left: auto !important; transform: none !important; translate: none !important; }
}

/* LOG IN WITH SOUNDCLOUD bar inside the app (guests only): the welcome screen's big orange 16-bit button, as a strip at the top */
body .sc-login-bar { position: relative; display: flex; align-items: stretch; gap: 0; margin: 0 0 12px; }
body .sc-login-bar .slb-go { flex: 1; display: flex !important; align-items: center; gap: 14px; min-height: 0 !important; margin: 0 !important; padding: 10px 52px 10px 16px !important; width: auto !important; max-width: none !important; text-decoration: none; }
body .sc-login-bar .slb-go .ld-cloud { width: 48px; height: 24px; flex: none; }
body .sc-login-bar .slb-go b { font-size: 17px !important; }
body .sc-login-bar .slb-go small { font-size: 12px !important; }
body .sc-login-bar .slb-x { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; background: #0e0e0c33; color: #fff; border: 1.5px solid #ffffff88; cursor: pointer; font: 700 13px/1 var(--ui); }
body .sc-login-bar .slb-x:hover { background: #0e0e0c; }
@media (max-width: 760px) {
  body .sc-login-bar { margin: 0 0 8px; }
  body .sc-login-bar .slb-go { padding: 8px 44px 8px 10px !important; gap: 10px; }
  body .sc-login-bar .slb-go .ld-cloud { width: 36px; height: 18px; }
  body .sc-login-bar .slb-go b { font-size: 14px !important; }
  body .sc-login-bar .slb-go small { font-size: 10.5px !important; }
}

body .sc-login-bar.is-peek .slb-go { background: #3fd0e0 !important; color: #0e0e0c !important; box-shadow: 4px 4px 0 #0e0e0c !important; }
body .sc-login-bar.is-peek .slb-go b, body .sc-login-bar.is-peek .slb-go small { color: #0e0e0c !important; text-shadow: none !important; }

/* quests that offer themselves: a corner card above the player, no backdrop, clicks pass through to the page */
body .quest.quest-dock { inset: auto auto calc(var(--pl-h, 76px) + 14px) 14px !important; display: block !important; padding: 0 !important; background: none !important; pointer-events: none; z-index: 140; }
body .quest.quest-dock .quest-card { pointer-events: auto; width: min(380px, calc(100vw - 28px)) !important; box-shadow: 5px 5px 0 #0e0e0c55 !important; }
body .quest.quest-dock .quest-face { display: none; }
body .quest.quest-dock .quest-steps { font-size: 12px; }
@media (max-width: 760px) { body .quest.quest-dock { bottom: calc(var(--tab-h, 64px) + var(--pl-h, 60px) + var(--safe-b, 0px) + 10px) !important; left: 8px !important; } body .quest.quest-dock .quest-card { width: calc(100vw - 16px) !important; } }
body .pf-demo-note { display: grid; gap: 8px; padding: 14px; margin: 6px 0 4px; background: var(--bc-card); border: 2px dashed #b9b09a; }
body .pf-demo-note b { font: 700 13px/1.2 var(--ui); letter-spacing: .1em; }
body .pf-demo-note p { margin: 0; font: 500 13px/1.5 var(--ui); color: #5f594c; }
body .pf-demo-note .btn { justify-self: start; }

/* ♥ and comments: one centred pair of keys (repost is out for now) */
@media (min-width: 761px) {
  body .rows:not(.grid) > .row:not(.compact) { grid-template-columns: 24px 70px 44px minmax(0, 1fr) 170px 34px 34px 34px !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-side .r-stats { display: flex !important; grid-template-columns: none !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-side .r-stats .r-heart { grid-column: auto !important; justify-self: auto !important; }
  body .row .r-side { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center !important; }
  body .row .r-stats { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: center !important; gap: 8px !important; }
  body .row .r-stats > .r-heart, body .row .r-stats > .r-comments { height: 32px !important; min-height: 0 !important; margin: 0 !important; display: inline-flex !important; align-items: center; gap: 6px; padding: 0 10px !important; }
  body .row .r-stats > .r-heart .n, body .row .r-stats > .r-comments .n { font: 700 12px/1 var(--ui) !important; }
}

/* Lurklist rows: ♥ and comments as the same pair of keys, with room for both */
@media (min-width: 761px) {
  body #w-feed .row.compact .r-stats { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; min-width: 0 !important; width: auto !important; justify-content: center; }
  body #w-feed .row.compact .r-stats > .r-heart, body #w-feed .row.compact .r-stats > .r-comments { height: 30px !important; padding: 0 8px !important; display: inline-flex !important; align-items: center; gap: 5px; border: 1.5px solid var(--bc-ink) !important; background: var(--bc-card) !important; box-shadow: 1px 1px 0 var(--bc-ink) !important; font: 700 11.5px/1 var(--ui) !important; flex: none; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  body .rows:not(.grid) > .row:not(.compact) { grid-template-columns: 18px 54px 36px minmax(0, 1fr) 138px 32px 32px 32px !important; gap: 8px !important; }
  body .row .r-stats > .r-heart, body .row .r-stats > .r-comments { padding: 0 7px !important; gap: 4px !important; }
}
@media (min-width: 761px) { body .rows:not(.grid) > .row:not(.compact) > .r-side .r-stats > :is(.r-heart, .r-comments) { width: auto !important; min-width: 0 !important; max-width: none !important; flex: none !important; } }
/* CRATES menu opens straight under its tab (an older rule pinned it to the screen's right edge) */
@media (min-width: 761px) { body .hdr #crates-menu { position: absolute !important; top: calc(100% + 6px) !important; left: 0 !important; right: auto !important; } }

/* GRID cards (owner, 22 Oct: "weirdly spaced"): one fixed rhythm per card — 2-line title, artist, genre + date, PEOPLE,
   SIMILAR pinned to the bottom so every card in a row lines up */
#shell .rows.grid { align-items: stretch !important; }
#shell .rows.grid > .card { display: flex !important; flex-direction: column !important; height: auto !important; }
#shell .rows.grid > .card .c-meta { display: flex !important; flex-direction: column !important; gap: 5px !important; flex: 1 1 auto; padding: 8px 2px 4px !important; min-width: 0; }
#shell .rows.grid > .card .c-meta .r-title { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important;
  min-height: 2.5em; max-height: 2.5em; font: 700 13.5px/1.25 var(--ui) !important; margin: 0 !important; }
#shell .rows.grid > .card .c-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 !important; font-size: 12px !important; }
#shell .rows.grid > .card .c-sub { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: nowrap !important; min-width: 0; margin: 0 !important; }
#shell .rows.grid > .card .c-sub .tag { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#shell .rows.grid > .card .c-sub > span { flex: none; white-space: nowrap; font: 600 11px/1 var(--ui) !important; color: #5f594c !important; }
#shell .rows.grid > .card .track-date-pair { display: none !important; }
#shell .rows.grid > .card .card-people { align-self: flex-start; margin: 0 !important; }
#shell .rows.grid > .card .card-similar { margin: auto 0 0 !important; width: 100% !important; min-height: 34px !important; }

/* ▶ / ❚❚ centred in their circles: the 3 px nudge meant for the triangle was also shifting pause off-centre.
   On the 12×12 grids ▶ spans cols 3–8 / rows 1–11 (1 px low) and ❚❚ cols 2–9 / rows 2–9 (exact). */
body :is(#p-play, .player .p-play, .r-play, .ps-play) .ic { margin: 0 !important; transform: translate(1px, -1px) !important; }
body :is(#p-play, .player .p-play, .r-play, .ps-play) .ic:has(use[href="#i-pause"]) { transform: none !important; }

/* the play-while-it-loads invite: centre stage, bigger, the page dimmed around it (clicks still reach the page) */
body .arcade-invite { left: 50% !important; top: 46% !important; right: auto !important; bottom: auto !important; translate: -50% -50%; width: min(460px, calc(100vw - 28px)) !important;
  grid-template-columns: 64px minmax(0, 1fr) !important; padding: 20px !important; z-index: 450 !important; border-radius: 0 !important;
  box-shadow: 0 0 0 3px #050605, 8px 8px 0 #ff5b1c, 0 0 0 100vmax #0e0e0c66 !important; }
body .arcade-invite .world-sprite { width: 64px !important; height: 64px !important; }
body .arcade-invite .ai-copy b { font: 700 20px/1.15 var(--ui) !important; letter-spacing: .06em; }
body .arcade-invite .ai-copy p { font: 500 14px/1.45 var(--ui) !important; }
body .arcade-invite .ai-acts { grid-column: 1 / -1; display: flex; gap: 10px; }
body .arcade-invite .ai-play { flex: 1; min-height: 44px; font: 700 15px/1 var(--ui) !important; letter-spacing: .1em; background: #ff5b1c !important; color: #fff !important; border: 2px solid #050605 !important; box-shadow: 3px 3px 0 #050605 !important; }
body .arcade-invite .ai-no { min-height: 44px; }
body .arcade-invite { inset: 0 !important; margin: auto !important; height: max-content !important; translate: none !important; }

/* ---------- welcome screen, 22 Oct ----------
   The logo never "types in" any more: iOS Safari could stop the 7-step clip one step short (WATCHE, weight off to the left). */
body #landing .ld-title .ld-mark .wm, body #landing .ld-title .ld-mark img { animation: ld-fade .5s ease-out both !important; clip-path: none !important; }
@keyframes ld-fade { from { opacity: 0; } to { opacity: 1; } }
body #landing .ld-title { justify-items: center !important; text-align: center; }
body #landing .ld-title > * { margin-left: auto !important; margin-right: auto !important; }
/* LOG IN WITH SOUNDCLOUD sits in the open space between the logo and the dialog box, and invites a tap */
body #landing .ld-login { position: relative; overflow: hidden; animation: ld-invite 2.6s ease-in-out 1s infinite; }
body #landing .ld-login::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, #fff6, transparent); transform: skewX(-18deg); animation: ld-shine 4.2s ease-in-out 1.6s infinite; pointer-events: none; }
@keyframes ld-invite { 0%, 100% { box-shadow: 0 0 0 3px #050605, 6px 6px 0 #a33600, 0 0 0 0 #ff5b1c00; } 50% { box-shadow: 0 0 0 3px #050605, 6px 6px 0 #a33600, 0 0 26px 6px #ff5b1c88; } }
@keyframes ld-shine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { body #landing .ld-login, body #landing .ld-login::after { animation: none !important; } }
body.motion-quiet #landing .ld-login, body.motion-quiet #landing .ld-login::after { animation: none !important; }
@media (max-width: 760px) {
  body #landing .ld-title { flex: 1 1 auto; display: flex !important; flex-direction: column; align-items: center; min-height: 0; }
  body #landing .ld-login { margin: auto !important; }
  body #landing .ld-tip { margin: 0 auto 6px !important; }
}

/* lurk-only visits (LURK SOMEONE, logged out): none of the host's collection is shown */
#lurk-gate { display: none; }
body.lurk-only:is([data-nav="stream"], [data-nav="dls"], [data-nav="mixes"], [data-nav="explore"], [data-nav="blend"]) #lurk-gate { display: block; padding: 28px 22px 34px !important; text-align: center; }
body.lurk-only:is([data-nav="stream"], [data-nav="dls"], [data-nav="mixes"], [data-nav="explore"], [data-nav="blend"]) #shell .main > :not(#lurk-gate):not(#sc-login-bar) { display: none !important; }
body.lurk-only:not([data-nav="person"]) #profile-panel, body.lurk-only:not([data-nav="person"]) #profile-panel + .panel { display: none !important; }
body.lurk-only :is(.ph-blend, #person-modes, #demo-badge) { display: none !important; }
#lurk-gate h2 { font: 700 18px/1.25 var(--ui); letter-spacing: .08em; margin: 0 0 8px; }
#lurk-gate p { font: 500 14px/1.55 var(--ui); color: #5f594c; max-width: 56ch; margin: 0 auto 16px; }
#lurk-gate .lg-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
body.lurk-only :is(.p-home, #nav .scope-label) { display: none !important; }

/* Blend HP bars: solid shiny bars (no liquid canvas) with a light sweep across the fill */
#blend-arena .arena-hp i { position: relative; }
#blend-arena .arena-hp i::after { display: block !important; background: linear-gradient(180deg, #fff7c8 0 18%, transparent 18%), linear-gradient(90deg, #ffd74c, #ff471b) !important; }
#blend-arena .arena-hp.b i::after { left: auto; right: 0; background: linear-gradient(180deg, #e9ffff 0 18%, transparent 18%), linear-gradient(90deg, #03a9ba, #71ffff) !important; }
#blend-arena .arena-hp i::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 22%; left: -30%; background: linear-gradient(100deg, transparent, #ffffffaa, transparent); transform: skewX(-20deg); animation: hp-shine 3.4s ease-in-out 1s infinite; pointer-events: none; }
#blend-arena .arena-hp.b i::before { animation-delay: 2.7s; }
@keyframes hp-shine { 0%, 60% { left: -30%; } 100% { left: 120%; } }
body.motion-quiet #blend-arena .arena-hp i::before { animation: none !important; display: none; }
@media (prefers-reduced-motion: reduce) { #blend-arena .arena-hp i::before { animation: none !important; display: none; } }
body .roster-entry > .roster-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }
body .roster-entry > .roster-acts > * { width: 100% !important; min-height: 28px !important; margin: 0 !important; justify-content: center; font-size: 10.5px !important; padding: 4px 6px !important; }

/* Lurklist: tap a face to filter, LURK to open their likes; phones get FEED / PEOPLE tabs */
body #w-feed :is(.r-who img, .t-node img, .t-name) { cursor: pointer; }
body #w-feed .r-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body #w-feed .r-who-lurk, body #w-feed .t-lurk { min-height: 22px !important; padding: 2px 8px !important; font-size: 9.5px !important; margin-left: auto; }
body #w-feed .t-lurk { margin-left: 6px; }
body .w-phone-tabs { display: none; }
@media (max-width: 760px) {
  body .w-phone-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 10px; border: 2px solid var(--bc-ink); background: var(--bc-card); position: sticky; top: calc(var(--bar, 50px) + 4px); z-index: 30; }
  body .w-phone-tabs button { padding: 11px 8px; background: none; border: 0; border-left: 2px solid var(--bc-ink); font: 700 13px/1 var(--ui); letter-spacing: .12em; color: var(--bc-ink); }
  body .w-phone-tabs button:first-child { border-left: 0; }
  body .w-phone-tabs button.on { background: var(--bc-o); color: #fff; }
}

/* Taste twins: all six in one view — a compact 3-across (2 on phones) row with a small picture beside the name */
#shell #hub-twins { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
#shell #hub-twins .person-card.twin { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) !important; grid-template-areas: "art body" "acts acts"; gap: 6px 10px !important; padding: 8px !important; }
#shell #hub-twins .person-card .pc-art { grid-area: art; width: 64px; height: 64px; aspect-ratio: auto; padding: 3px; }
#shell #hub-twins .person-card .pc-body { grid-area: body; align-self: center; gap: 1px; }
#shell #hub-twins .person-card .pc-real { display: none; }
#shell #hub-twins .person-card .pc-body small { font-size: 11px; }
#shell #hub-twins .person-card .twin-rank { left: 4px; top: 4px; font-size: 9px; padding: 1px 3px; }
#shell #hub-twins .person-card .twin-acts { grid-area: acts; grid-template-columns: 1fr 1fr 1fr !important; }
#shell #hub-twins .person-card .twin-acts > * { grid-column: auto !important; min-height: 26px !important; }
@media (max-width: 760px) { #shell #hub-twins { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } #shell #hub-twins .person-card.twin { grid-template-columns: 48px minmax(0,1fr) !important; } #shell #hub-twins .person-card .pc-art { width: 48px; height: 48px; } #shell #hub-twins .person-card .twin-acts { grid-template-columns: 1fr 1fr !important; } #shell #hub-twins .person-card .twin-acts > .lurklist-action { grid-column: 1 / -1 !important; } }
#shell .hub-twins { align-self: start; }
#shell #hub-twins .person-card .twin-acts { grid-template-columns: 1fr 1fr !important; }
#shell #hub-twins .person-card .twin-acts > .lurklist-action { grid-column: 1 / -1 !important; }
@media (max-width: 760px) {
  #shell #hub-twins { grid-template-columns: 1fr !important; gap: 6px !important; }
  #shell #hub-twins .person-card.twin { grid-template-columns: 46px minmax(0, 1fr) auto !important; grid-template-areas: "art body acts" !important; align-items: center !important; padding: 6px !important; gap: 0 10px !important; }
  #shell #hub-twins .person-card .pc-art { width: 46px !important; height: 46px !important; padding: 2px !important; }
  #shell #hub-twins .person-card .pc-body small:not(.pc-ov) { display: none; }
  #shell #hub-twins .person-card .twin-acts { display: flex !important; flex-direction: column; gap: 4px !important; margin: 0 !important; }
  #shell #hub-twins .person-card .twin-acts > * { width: 74px !important; min-height: 24px !important; font-size: 9.5px !important; }
  #shell #hub-twins .person-card .twin-acts > .lurklist-action { display: none !important; }
}
@media (max-width: 760px) {
  #shell #hub-twins .person-card .twin-acts { flex-direction: row !important; }
  #shell #hub-twins .person-card .twin-acts > * { width: auto !important; height: 30px !important; min-height: 0 !important; padding: 0 8px !important; }
  #shell #hub-twins .person-card.twin { min-height: 0 !important; }
}
/* phone rows: ▶ dead centre on the cover (it centred on the taller text row, 15 px low) */
@media (max-width: 760px) {
  body .rows:not(.grid) > .row:not(.compact) > .r-art { align-self: start !important; }
  body .rows:not(.grid) > .row:not(.compact) > .r-play { align-self: start !important; justify-self: center !important; margin-top: 13px !important; }
}

/* the empty Lurklist adds someone right there */
body .lurklist-empty .le-add { display: flex; gap: 8px; max-width: 460px; margin: 4px auto 0; }
body .lurklist-empty .le-add input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 2px solid var(--bc-ink); background: #fff; font: 500 14px var(--ui); }
body .lurklist-empty .le-add input:focus { outline: 0; border-color: var(--bc-o); }
body .lurklist-empty .le-add .btn { height: 40px; padding: 0 16px !important; background: var(--bc-o) !important; color: #fff !important; border: 2px solid var(--bc-ink) !important; box-shadow: 2px 2px 0 var(--bc-ink) !important; }
body .lurklist-empty .le-or { margin: 10px 0 6px !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .12em; }
/* phone: the CRATES menu opens as a sheet just above the player and tabs (it showed as a tall empty box at the top) */
@media (max-width: 760px) {
  body .hdr #crates-menu { position: fixed !important; left: 10px !important; right: 10px !important; top: auto !important; width: auto !important; height: auto !important; max-height: 55vh !important; overflow: auto;
    bottom: calc(var(--tab-h, 62px) + var(--pl-h, 58px) + var(--safe-b, 0px) + 10px) !important; z-index: 900 !important; }
}

/* ---------- less chrome above the music (usability pass, 27 Oct) ---------- */
/* LOG IN bar: one slim line, still unmissable */
body .sc-login-bar { margin: 0 0 8px !important; }
body .sc-login-bar .slb-go { padding: 7px 46px 7px 12px !important; gap: 12px !important; min-height: 0 !important; }
body .sc-login-bar .slb-go .ld-cloud { width: 34px !important; height: 17px !important; }
body .sc-login-bar .slb-go span { display: flex !important; align-items: baseline; gap: 12px; flex-wrap: wrap; }
body .sc-login-bar .slb-go b { font-size: 14px !important; line-height: 1.2 !important; }
body .sc-login-bar .slb-go small { font-size: 11.5px !important; line-height: 1.3 !important; }
body .sc-login-bar .slb-x { width: 26px !important; height: 26px !important; }
/* LIKES / FREE DOWNLOADS / DIG MODE and CHECK FOR UPDATES on one line */
#shell #archive-tools { flex-wrap: nowrap !important; align-items: center; }
#shell #archive-tools > .btn { height: 28px !important; min-height: 0 !important; white-space: nowrap; }
#shell #archive-tools > .likes-check { margin-left: auto !important; }
@media (max-width: 760px) {
  body .sc-login-bar .slb-go small { display: none !important; }
  body .sc-login-bar .slb-go b::after { content: " · it's free"; font-weight: 600; opacity: .85; }
  #shell #archive-tools { overflow-x: auto; scrollbar-width: none; gap: 6px !important; padding-bottom: 4px !important; }
  #shell #archive-tools > .btn { font-size: 11px !important; padding: 0 9px !important; flex: none; }
  #shell #archive-tools > .likes-check { font-size: 0 !important; width: 34px; padding: 0 !important; display: grid !important; place-items: center; }
  #shell #archive-tools > .likes-check::before { content: "⟳"; font-size: 16px; }
  /* phone filters: shorter selects and keys */
  #shell .index2 { padding-top: 8px !important; padding-bottom: 10px !important; }
  #shell .index2 > .genre-row .ph-row { display: none !important; }
  #shell .mobile-filterbar { padding-top: 6px !important; padding-bottom: 4px !important; gap: 6px !important; }
  #shell .mobile-filterbar > label { font-size: 0 !important; gap: 0 !important; }
  #shell .mobile-filterbar > label select { height: 34px !important; font-size: 13px !important; }
}
/* laptop/desktop filter panel: the chips carry the label; smaller heading, tighter chips */
@media (min-width: 761px) {
  #shell #view-library .index2, #shell .view-main .index2 { padding-top: 8px !important; padding-bottom: 26px !important; gap: 8px !important; }
  #shell .index2 > .genre-row > .ph-row { margin: 0 0 6px !important; padding-bottom: 4px !important; }
  #shell .index2 > .genre-row .ph { font-size: 12px !important; }
  #shell .index2 .gchips { gap: 5px !important; }
  #shell .index2 .gchip.gchip { min-height: 26px !important; padding: 4px 8px !important; font-size: 10.5px !important; }
  #shell .index2 .gmore { height: 28px !important; }
  #shell .view-main .tabsbar { padding-top: 4px !important; padding-bottom: 4px !important; }
}

/* sprites in headings never sit on a control: small, beside the title, not clickable-through onto chips */
#shell .index2 .npc, #shell .ph-row .npc { position: static !important; transform: none !important; width: 26px !important; height: 26px !important; margin-left: 8px !important; vertical-align: middle; }
#shell .index2 > .genre-row > .ph-row { display: flex !important; align-items: center; }
/* phone: the floating taste-map / arcade keys sit in the gap above the player, not over a row's ··· key */
@media (max-width: 760px) {
  body .game-dock { right: 8px !important; bottom: calc(var(--tab-h, 62px) + var(--pl-h, 58px) + var(--safe-b, 0px) + 8px) !important; opacity: .92; }
  #shell .rows:not(.grid) > .row:not(.compact) { padding-right: 46px !important; }
  #shell .rows:not(.grid) > .row:not(.compact):nth-child(n) > :is(.r-likeit, .r-crate, .r-more) { margin-right: 0 !important; }
}

/* Blend: the arena is the page — the second heading that repeated the banner goes, the portraits shrink on short screens,
   so FIGHT ▸ BLEND is on screen without scrolling */
#shell .blend-arena-page > .section-intro { display: none !important; }
#shell .blend-arena-page { padding-top: 10px !important; }
@media (min-width: 761px) and (max-height: 900px) {
  #blend-arena .arena-pic { width: clamp(96px, 11vw, 150px) !important; height: clamp(96px, 11vw, 150px) !important; }
  #blend-arena { padding-top: 10px !important; padding-bottom: 10px !important; }
}
@media (min-width: 761px) and (max-height: 900px) {
  #shell #blend-arena .arena-pic { width: 128px !important; height: 128px !important; padding: 6px !important; }
  #shell #blend-arena .arena-side { gap: 6px !important; }
  #shell #blend-arena .arena-hp { margin-bottom: 8px !important; }
  #shell #blend-arena .arena-fight { margin-top: 6px !important; }
}
/* the docked quest card waits on the right, clear of the arena's player-1 corner and the list's left-hand controls */
@media (min-width: 761px) { body .quest.quest-dock { left: auto !important; right: 14px !important; } }
/* docked quest: a slim strip in the bottom-right corner, small enough never to cover a page's controls */
@media (min-width: 761px) {
  body .quest.quest-dock .quest-card { width: 300px !important; }
  body .quest.quest-dock .quest-bar { padding: 4px 10px !important; font-size: 10px !important; }
  body .quest.quest-dock .quest-body { padding: 8px 10px !important; gap: 6px !important; }
  body .quest.quest-dock .quest-title { font-size: 13px !important; margin: 0 !important; }
  body .quest.quest-dock .quest-steps { display: none !important; }
  body .quest.quest-dock :is(.quest-go, .quest-later) { min-height: 26px !important; padding: 3px 9px !important; font-size: 10.5px !important; }
}
@media (min-width: 761px) {
  body .quest.quest-dock .quest-card { width: 250px !important; }
  body .quest.quest-dock .quest-body { display: flex !important; flex-wrap: wrap; align-items: center; }
  body .quest.quest-dock .quest-copy { flex: 1 1 100%; }
  body .quest.quest-dock .quest-acts, body .quest.quest-dock .quest-foot { margin: 0 !important; padding: 0 !important; }
}
/* docked tip: one compact line — title on the left, LATER / OPEN on the right — tucked in the corner above the player */
@media (min-width: 761px) {
  body .quest.quest-dock .quest-card { width: auto !important; max-width: 430px; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  body .quest.quest-dock .quest-bar { grid-column: 1 / -1; }
  body .quest.quest-dock .quest-body { padding: 6px 10px !important; }
  body .quest.quest-dock .quest-reward { display: none !important; }
  body .quest.quest-dock .quest-actions { display: flex !important; gap: 6px; padding: 6px 10px 6px 0 !important; margin: 0 !important; border: 0 !important; }
  body .quest.quest-dock { bottom: calc(var(--pl-h, 76px) + 8px) !important; }
}
/* empty Lurklist: just the invitation — no genre/year/view/sort/shuffle for a feed with nobody in it */
body.lurklist-none #view-watcher :is(.wtop, .feedpanel > .tabsbar, #w-sysbar, .w-year-rail, .w-phone-tabs) { display: none !important; }
body.lurklist-none #view-watcher .has-year-rail { grid-template-columns: minmax(0, 1fr) !important; }
body .lurklist-empty .le-or { text-align: center !important; width: 100%; }
@media (max-width: 760px) { body .sc-login-bar .slb-go b::after { content: none !important; } }
/* the archivist sprite: beside the sort controls, never on top of the genre chips */
@media (min-width: 761px) {
  #shell .index2 > .mobile-filterbar > .npc { position: static !important; order: 99; align-self: center !important; margin: 0 0 0 6px !important; transform: none !important; translate: none !important; }
}
body .lurklist-empty { display: flex !important; flex-direction: column; align-items: center; }
body .lurklist-empty .le-add { width: 100%; }
body .account-changed { position: fixed; inset: 0; margin: auto; z-index: 2000; width: min(420px, calc(100vw - 32px)); height: max-content; padding: 18px; text-align: center;
  background: var(--bc-card); color: var(--bc-ink); border: 2px solid var(--bc-ink); box-shadow: 0 0 0 100vmax #0e0e0c88, 6px 6px 0 var(--bc-o); font-family: var(--ui); }
body .account-changed b { display: block; font: 700 14px/1.3 var(--ui); letter-spacing: .08em; }
body .account-changed p { margin: 8px 0 12px; font: 500 13px/1.5 var(--ui); color: #5f594c; }
body .account-changed button { padding: 9px 16px; background: var(--bc-o); color: #fff; border: 2px solid var(--bc-ink); font: 700 11px/1 var(--ui); letter-spacing: .1em; cursor: pointer; }

/* YEAR rails (Likes, people's pages, Lurklist): stop above the city art over the player, fit more years, and show that
   they scroll when they don't all fit */
@media (min-width: 761px) {
  #shell .year-rail { --rail-gap: calc(var(--pl-h, 72px) + 32px + 14px); max-height: calc(100vh - var(--bar, 52px) - 12px - var(--rail-gap)) !important;
    overflow-y: auto !important; scrollbar-width: thin; scrollbar-color: var(--bc-o) transparent; overscroll-behavior: contain; }
  #shell .year-rail::-webkit-scrollbar { width: 6px; }
  #shell .year-rail::-webkit-scrollbar-thumb { background: var(--bc-o); }
  #shell .year-rail .erabar button { padding: 4px 8px 4px 18px !important; min-height: 0 !important; }
  #shell .year-rail .erabar button b { font-size: 14px !important; }
  #shell .year-rail .erabar button span { font-size: 9.5px !important; }
  #shell .year-rail.has-more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent); }
  #shell .year-rail .rail-more { position: sticky; bottom: 0; display: block; width: 100%; margin-top: 4px; padding: 4px 0; background: var(--bc-ink); color: #fff; border: 0; font: 700 10px/1 var(--ui); letter-spacing: .1em; cursor: pointer; }
  #shell .year-rail:not(.has-more) .rail-more { display: none; }
}
@media (min-width: 761px) {
  #shell .year-rail.has-more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 64px), #0003 calc(100% - 30px), #000 calc(100% - 29px)); mask-image: linear-gradient(180deg, #000 calc(100% - 64px), #0003 calc(100% - 30px), #000 calc(100% - 29px)); }
}

/* ---------- Lurklist rows (27 Oct): a real waveform you can scrub, and the same keys as Likes rows on every screen ---------- */
#shell #w-feed .row.compact { display: grid !important; align-items: center !important; gap: 6px 10px !important; padding: 10px 6px 12px 10px !important;
  grid-template-columns: 52px 36px minmax(0, 1fr) auto 34px 34px 34px !important;
  grid-template-areas: "art play body stats sim crate more" !important; }
#shell #w-feed .row.compact:has(> .r-who) { grid-template-areas: "who who who who who who who" "art play body stats sim crate more" !important; }
#shell #w-feed .row.compact > .r-who { grid-area: who; }
#shell #w-feed .row.compact > .r-art { grid-area: art !important; width: 52px !important; height: 52px !important; align-self: start; }
#shell #w-feed .row.compact > .r-play { grid-area: play !important; position: static !important; transform: none !important; width: 34px !important; height: 34px !important; align-self: start; margin-top: 9px !important; }
#shell #w-feed .row.compact > .r-body { grid-area: body !important; min-width: 0; }
#shell #w-feed .row.compact .r-wave { display: block !important; position: relative; height: 30px !important; min-height: 30px !important; max-height: none !important; overflow: visible !important; margin: 6px 0 2px !important; min-width: 0; cursor: pointer; touch-action: none; }
#shell #w-feed .row.compact .r-wave canvas { display: block; width: 100% !important; height: 30px !important; }
#shell #w-feed .row.compact > .r-stats { grid-area: stats !important; display: flex !important; gap: 6px !important; align-items: center; }
#shell #w-feed .row.compact > .r-likeit { grid-area: sim !important; display: grid !important; width: 34px !important; height: 34px !important; padding: 0 !important; place-items: center; }
#shell #w-feed .row.compact > .r-likeit .signal-label, #shell #w-feed .row.compact > .r-likeit .signal-arrow { display: none !important; }
#shell #w-feed .row.compact > .r-crate { grid-area: crate !important; display: grid !important; }
#shell #w-feed .row.compact > .r-more { grid-area: more !important; width: 34px !important; height: 34px !important; position: static !important; margin: 0 !important; }
#shell #w-feed .row.compact > :is(.c-dur, .tag, span:empty) { display: none !important; }
#shell #w-feed .row.compact .r-title { font: 700 14px/1.3 var(--ui) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#shell #w-feed .row.compact .r-artist { font: 500 12.5px/1.4 var(--ui) !important; }
@media (max-width: 760px) {
  #shell #w-feed .row.compact { grid-template-columns: 52px minmax(0, 1fr) 34px 34px 34px !important; gap: 6px 8px !important; padding: 10px 46px 12px 4px !important;
    grid-template-areas: "art body body body body" "stats stats sim crate more" !important; }
  #shell #w-feed .row.compact:has(> .r-who) { grid-template-areas: "who who who who who" "art body body body body" "stats stats sim crate more" !important; }
  #shell #w-feed .row.compact > .r-play { grid-area: art !important; justify-self: center; align-self: center !important; margin: 0 !important; }
  #shell #w-feed .row.compact .r-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  #shell #w-feed .row.compact > .r-stats > * { height: 32px !important; }
}
/* scrubbing: drag along any row's waveform (mouse or finger) to choose where to play from */
.r-wave.scrubbing { outline: 2px solid var(--bc-o); outline-offset: 2px; }
.r-wave .scrub-tip { position: absolute; top: -22px; padding: 2px 6px; background: var(--bc-ink); color: #fff; font: 700 11px/1.2 var(--ui); pointer-events: none; transform: translateX(-50%); white-space: nowrap; }
/* Lurklist rows: ♥ · comments · likers sit on one line; the round keys sit in a fixed row; ▶ centred on the cover */
#shell #w-feed .row.compact > .r-stats { flex-wrap: nowrap !important; }
#shell #w-feed .row.compact > .r-stats > * { flex: 0 0 auto !important; width: auto !important; }
#shell #w-feed .row.compact > .r-likeit { width: 34px !important; min-width: 0 !important; max-width: 34px !important; overflow: hidden; }
@media (max-width: 760px) {
  #shell #w-feed .row.compact { grid-template-columns: 52px minmax(0, 1fr) 34px 34px 34px !important; }
  #shell #w-feed .row.compact > .r-play { align-self: start !important; margin-top: 9px !important; }
  #shell #w-feed .row.compact > .r-stats { gap: 5px !important; }
  #shell #w-feed .row.compact > .r-stats > * { height: 32px !important; padding: 0 7px !important; }
  /* phone tips: one slim line too */
  body .quest.quest-dock .quest-card { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  body .quest.quest-dock .quest-bar { grid-column: 1 / -1; padding: 4px 10px !important; font-size: 10px !important; }
  body .quest.quest-dock .quest-body { padding: 6px 10px !important; }
  body .quest.quest-dock .quest-title { font-size: 13px !important; margin: 0 !important; }
  body .quest.quest-dock :is(.quest-steps, .quest-reward, .quest-face) { display: none !important; }
  body .quest.quest-dock .quest-actions { display: flex !important; gap: 6px; padding: 6px 8px 6px 0 !important; margin: 0 !important; border: 0 !important; }
  body .quest.quest-dock :is(.quest-go, .quest-later) { min-height: 30px !important; padding: 4px 9px !important; font-size: 11px !important; }
}

/* loading strip once likes are already on screen */
body #library-load-status.compact:not(.hidden) { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; padding: 8px 12px !important; margin: 0 0 8px !important; min-height: 0 !important; max-width: none !important; width: auto !important; }
body #library-load-status.compact strong { font-size: 13px !important; margin: 0 !important; }
body #library-load-status.compact p { margin: 0 !important; font-size: 12px !important; }
body #library-load-status.compact .library-meter { grid-column: 1 / -1; grid-row: 2; height: 6px !important; margin: 0 !important; }
body #library-load-status.compact small { font-size: 11px !important; }
body #library-load-status.compact button { min-height: 0 !important; padding: 5px 10px !important; font-size: 10.5px !important; }
@media (max-width: 760px) { body #library-load-status.compact:not(.hidden) { grid-template-columns: minmax(0, 1fr) auto; } body #library-load-status.compact p, body #library-load-status.compact small { display: none; } }
