:root {
  --bg: #0e0f14;
  --panel: #181a22;
  --panel-2: #22252f;
  --line: #30343f;
  --text: #e7e8ee;
  --muted: #9a9eac;
  --accent: #a78bfa;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { background: var(--panel-2); }
button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #14101f; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

#sidebar {
  width: 340px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  min-height: 0;
}
body.side-hidden #sidebar { display: none; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
h1 { font-size: 16px; margin: 0; }
#live { font-size: 12px; color: var(--muted); }
#live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #4ade80; }
#live.off::before { background: #f87171; }
#search {
  margin: 0 14px 10px;
  padding: 6px 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
#assets { overflow-y: auto; padding: 0 8px 16px; flex: 1; min-height: 0; }
.group h2 { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 6px 4px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 6px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  min-width: 0;
  white-space: normal;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tile:hover { border-color: var(--muted); background: var(--panel-2); }
.tile.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile .pic {
  display: block;
  aspect-ratio: 1;
  border-radius: 5px;
  background: radial-gradient(circle at 50% 40%, #2c2f3a, #17181f);
  overflow: hidden;
}
.tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile img:not([src]) { visibility: hidden; }
.tile.no-thumb .pic::after { content: "No preview"; display: grid; place-items: center; height: 100%; font-size: 11px; color: var(--muted); }
.tile .name {
  font-size: 11.5px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tile .pic { position: relative; }
.tile .flag {
  position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #17181f;
}
.flag.warn, .check-dot.warn { background: #f2b33d; }
.flag.fail, .check-dot.fail { background: #ef5350; }
.check-dot.ok { background: #4caf7a; }
.flag-filter { display: flex; align-items: center; gap: 6px; margin: 0 14px 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.flag-filter input { margin: 0; }
#checks { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
#checks[hidden] { display: none; }
#checks h2 { font-size: 13px; font-weight: 600; margin: 0 14px 8px; }
#check-list { list-style: none; margin: 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
#check-list li { display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: start; }
#check-list b { font-weight: 600; }
#check-list span.text { color: var(--muted); }
.check-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
.images-head { font-size: 13px; font-weight: 600; margin: 18px 6px 0; }
.group details { margin: 4px 6px; }
.group summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 3px 0; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px 0; }
.thumbs button { padding: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; border-radius: 4px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.empty { color: var(--muted); padding: 12px 8px; }
.empty code { color: var(--text); }

#stage { position: relative; flex: 1; min-width: 0; height: 100%; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.bar { position: absolute; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top-left { top: 12px; left: 12px; }
.top-left strong { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-weight: 600; }
.top-right { top: 12px; right: 12px; justify-content: flex-end; max-width: calc(100% - 260px); }
.bottom-right { bottom: 12px; right: 12px; justify-content: flex-end; }
.seg { display: flex; }
.seg button { border-radius: 0; margin-left: -1px; }
.seg button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.seg button:last-child { border-radius: 0 6px 6px 0; }
.panel {
  position: absolute;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
}
#info {
  width: 260px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding-bottom: 16px;
}
body.info-hidden #info { display: none; }
#info .side-head h1 { font-size: 15px; overflow-wrap: anywhere; }
#toggle-info { padding: 2px 8px; }
.info-source { margin: -4px 14px 4px; color: var(--muted); font-size: 12.5px; }
#stats, .version-meta { margin: 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 13px; }
#stats[hidden], #versions[hidden], .info-source[hidden] { display: none; }
#stats dt, .version-meta dt { color: var(--muted); }
#stats dd, .version-meta dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
#versions { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
#versions h2 { font-size: 13px; font-weight: 600; margin: 0 14px 8px; }
.version-tiles { display: flex; flex-direction: column; gap: 8px; }
.version-tiles .tile { width: 140px; margin: 0 14px; }
.version-meta { font-size: 12px; }
#anim { left: 50%; bottom: 12px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); z-index: 2; display: flex; flex-direction: column; gap: 6px; }
#anim[hidden], #clips[hidden], #anim .anim-row[hidden], #then-idle[hidden] { display: none; }
#clips { display: flex; flex-wrap: wrap; gap: 4px; max-height: 92px; overflow-y: auto; }
#clips button { padding: 3px 9px; }
.anim-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anim-row button { padding: 3px 9px; }
.anim-row .speed { margin-left: auto; color: var(--muted); }
#bones:disabled { opacity: .45; cursor: default; }
#scrub { flex: 1; min-width: 40px; accent-color: var(--accent); }
#clip-time { font-variant-numeric: tabular-nums; color: var(--muted); }
#speed { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
#help { left: 12px; bottom: 54px; }
#help summary { cursor: pointer; }
#help table { border-collapse: collapse; margin-top: 4px; }
#help th { text-align: left; font-weight: 500; color: var(--muted); padding: 1px 10px 1px 0; }
#help td { padding: 1px 0; }
#message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(420px, 85%);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
}
#progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
#progress div { height: 100%; width: 0; background: var(--accent); }

dialog#lightbox {
  width: 92vw;
  height: 92vh;
  max-width: none;
  max-height: none;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
dialog#lightbox[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgb(0 0 0 / .7); }
.lb-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.lb-hint { color: var(--muted); font-size: 12.5px; margin-right: auto; }
#lb-area { flex: 1; min-height: 0; overflow: hidden; cursor: grab; display: flex; align-items: center; justify-content: center; background: #2a2c34; touch-action: none; }
#lb-area.dragging { cursor: grabbing; }
#lb-img { max-width: 100%; max-height: 100%; transform-origin: center; user-select: none; -webkit-user-drag: none; }

@media (max-width: 760px) {
  #sidebar { position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: min(340px, 85vw); box-shadow: 0 0 30px #000; }
  .top-left { z-index: 6; }
  body:not(.side-hidden) .top-left { left: min(352px, calc(85vw + 12px)); }
  body:not(.side-hidden) .top-left strong { display: none; }
  .top-right { top: 52px; left: 12px; right: 12px; max-width: none; justify-content: flex-start; }
  #info { position: absolute; z-index: 5; top: 0; bottom: 0; right: 0; width: min(260px, 85vw); box-shadow: 0 0 30px #000; }
  #help { bottom: 56px; }
  .bottom-right { left: 12px; justify-content: flex-start; }
  #anim { bottom: 100px; }
}

/* combat preview ("Shoot it", combat.js) */
#combat { top: 52px; left: 12px; width: 264px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
#combat[hidden] { display: none; }
#combat:not([open]) { width: auto; }
#combat summary { cursor: pointer; font-weight: 600; }
.cb-sub { font-weight: 400; color: var(--muted); margin-left: 4px; }
.cb-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cb-row button { padding: 3px 8px; }
.cb-slider { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); }
.cb-slider input { accent-color: var(--accent); min-width: 0; }
.cb-slider output { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.cb-checks { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.cb-checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.cb-checks input { margin: 0; }
.cb-foot { align-items: center; justify-content: space-between; }
#cb-status { color: var(--muted); font-size: 12px; flex: 1; min-width: 0; }
#combat-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.cb-num {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Fredoka One", "Arial Rounded MT Bold", system-ui, sans-serif; line-height: 1; white-space: nowrap;
  -webkit-text-stroke: 4px #2a1a10; paint-order: stroke fill; will-change: transform, opacity;
}
.cb-bar { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; }
.cb-bar[hidden] { display: none; }
.cb-bar-text {
  height: 55%; display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: "Fredoka One", "Arial Rounded MT Bold", system-ui, sans-serif; line-height: 1;
  -webkit-text-stroke: 2px rgb(0 0 0 / .7); paint-order: stroke fill;
}
.cb-bar-track { position: relative; height: 45%; border-radius: 999px; overflow: hidden; }
.cb-bar-ghost, .cb-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 999px; }
.cb-bar-ghost { background: rgb(255 255 255 / .9); }
.cb-screen-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
@media (max-width: 760px) {
  #combat { top: 96px; width: min(264px, calc(100% - 24px)); }
}
#combat .cb-speed { color: var(--muted); font-size: 12px; }
#cb-speed { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
#cb-status { flex-basis: 100%; order: -1; }

/* Roblox files (.rbxm/.rbxl): listed with a format tag instead of a picture */
.tile.roblox .pic { display: grid; place-items: center; }
.rbx-tag { font: 600 12px/1 system-ui, sans-serif; letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; background: #e2231a; color: #fff; }

/* search filters: format / Mac / tag chips, result count */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 14px 6px; }
.chips[hidden] { display: none; }
.chip { padding: 2px 8px; font-size: 12px; border-radius: 999px; }
.chip-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
#tag-chips { max-height: 54px; overflow-y: auto; }
.filter-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 14px 8px; }
.filter-foot .flag-filter { margin: 0; }
#result-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.more { height: 40px; }

/* favourites and tags */
.tile .star {
  position: absolute; top: 2px; left: 3px; font-size: 15px; line-height: 1; padding: 2px; cursor: pointer;
  color: var(--muted); opacity: 0; text-shadow: 0 0 3px #000;
}
.tile:hover .star, .tile:focus-visible .star { opacity: .8; }
.tile .star:hover { opacity: 1; color: #f2c94c; }
.tile.fav .star { opacity: 1; color: #f2c94c; }
#meta { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
#meta[hidden], #meta-note[hidden] { display: none; }
#meta h2 { font-size: 13px; font-weight: 600; margin: 0 14px; }
#meta > button, #tag-input { margin: 0 14px; }
#meta > button { align-self: flex-start; }
#meta .chips { margin-bottom: 0; }
#meta .chips:empty { display: none; }
#tag-input { padding: 5px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
#meta-note { margin: 0 14px; font-size: 12px; color: #f2b33d; }

/* Narrow screens (a phone, or the dashboard's embed): the details panel is a sheet over the bottom of the view,
   never a column over the list. It closes with its Close button or Esc; opening the list closes it, and the
   other way round (app.js). */
@media (max-width: 760px) {
  #info {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: min(62%, 460px); z-index: 7;
    border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0;
    box-shadow: 0 -12px 32px rgb(0 0 0 / .55);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }
  #info .side-head {
    position: sticky; top: 0; z-index: 1; gap: 10px; align-items: center;
    padding: 10px 10px 10px 14px; margin-bottom: 6px;
    background: var(--panel); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0;
  }
  #info .side-head h1 { min-width: 0; }
  #toggle-info { flex: none; min-height: 36px; padding: 4px 12px; }
  #toggle-info::after { content: " Close"; }
  #info .info-source { margin-top: 0; }
  #stats, .version-meta { column-gap: 20px; }
  #message { max-width: calc(100% - 24px); overflow-wrap: anywhere; }
}


/* ---------------------------------------------------------------- phone layout (2026-11-23)
   Keep the model visible: one compact top bar (list, name, View menu), "Shoot it" as a closed chip, the camera
   views inside the View menu, and a small animation bar (clips + play + scrub; the rest behind "⋯").
   Touch targets at least 40px. */
.narrow-only { display: none; }
@media (max-width: 760px) {
  body { font-size: 15px; }
  .narrow-only { display: inline-flex; align-items: center; justify-content: center; }
  .bar button, #anim button, #combat button, #combat summary, #toggle-side { min-height: 40px; padding: 6px 12px; }
  .top-left { left: 8px; right: 8px; top: 8px; flex-wrap: nowrap; }
  .top-left strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 12px; }
  #toggle-side { min-width: 44px; }
  body:not(.side-hidden) .top-left { right: auto; }
  body:not(.side-hidden) #tools-btn { display: none; }

  /* the View menu */
  .top-right { display: none; }
  body.tools-open .top-right {
    display: flex; top: 60px; left: 8px; right: 8px; z-index: 8; gap: 8px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
    box-shadow: 0 12px 32px rgb(0 0 0 / .55);
  }
  body.tools-open .top-right > * { flex: 1 1 auto; }
  .top-right .seg { flex-basis: 100%; }
  .top-right .seg button { flex: 1; }
  #views-bar.bar { position: static; flex-basis: 100%; display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
  #views-bar button { flex: 1 1 0; padding: 6px 4px; }
  #tools-btn[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #14101f; }

  /* "Shoot it": a chip under the top bar; opened, it scrolls inside a capped height */
  #combat { top: 60px; left: 8px; max-height: calc(100% - 210px); overflow-y: auto; }
  #combat:not([open]) { padding: 0 4px; }
  #combat:not([open]) .cb-sub { display: none; }
  #combat summary { display: flex; align-items: center; list-style-position: inside; }
  #combat summary::before { content: "▸"; margin-right: 6px; }
  #combat[open] summary::before { content: "▾"; }
  body.tools-open #combat { display: none; }

  #help { display: none; }

  /* animation bar */
  #anim {
    left: 8px; right: 8px; width: auto; transform: none;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 8px; gap: 8px; border-radius: 12px;
  }
  #clips { flex-wrap: nowrap; overflow-x: auto; max-height: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #clips::-webkit-scrollbar { display: none; }
  #clips button { flex: none; min-height: 38px; padding: 6px 14px; }
  #transport { flex-wrap: nowrap; }
  #scrub { height: 28px; }
  #clip-time { font-size: 12.5px; white-space: nowrap; }
  #anim-extra { display: none; }
  #anim.extra-open #anim-extra { display: flex; }
  #anim-more { min-width: 44px; font-size: 18px; line-height: 1; }
  #anim-more[aria-expanded="true"] { background: var(--panel-2); }
}

/* categories: a menu under the search box, chosen categories as chips, clickable values in the details panel */
.cat-row { margin: 0 14px 8px; }
#category { width: 100%; padding: 6px 8px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
#cat-chips .chip[aria-pressed="true"] { font-weight: 600; }
#stats dd.cat-values { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
#stats dd.cat-values .chip { padding: 1px 8px; font-size: 12px; }
@media (max-width: 760px) {
  #category { min-height: 42px; font-size: 16px; }
  #cat-chips .chip, #stats dd.cat-values .chip { min-height: 34px; padding: 4px 12px; }
}


/* ---- Owner clean-up (2026-11-24): no boxes behind the overlay controls; the title is a clickable path ---- */
#anim, #help, #combat { background: none; border: none; box-shadow: none; backdrop-filter: none; }
#anim button, #help summary, #combat button, #combat summary, #speed, #cb-speed, .top-left #toggle-side { background: none; border: none; box-shadow: none; }
#anim button:hover, #combat button:hover, .top-left #toggle-side:hover { background: none; color: #fff; }
#anim button[aria-pressed="true"], #combat button[aria-pressed="true"] { background: none; color: var(--accent); }
#anim, #help, #combat, .top-left { text-shadow: 0 1px 2px rgb(0 0 0 / .75), 0 0 8px rgb(0 0 0 / .45); }
#speed, #cb-speed { color: var(--text); }
#speed option, #cb-speed option { background: var(--panel); }
.top-left strong { background: none; border: none; padding: 0 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 15px; }
.crumb { all: unset; cursor: pointer; color: #fff; font-weight: 600; border-radius: 4px; }
.crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.crumb-sep { color: var(--muted); font-weight: 400; }
.crumb-name { color: #fff; font-weight: 600; }
/* Without boxes the overlays must not touch: the path gets the whole top row, the view options and camera views
   stack on the right under it, the playback sits alone at the bottom centre, Controls at the bottom left. */
@media (min-width: 761px) {
  .top-left { right: 12px; }
  .top-right { top: 46px; max-width: calc(100% - 300px); }
  #views-bar.bottom-right { top: 84px; bottom: auto; }
  #combat { top: 46px; }
  #help { bottom: 12px; }
  #anim { width: min(520px, calc(100% - 220px)); }
}

/* ---- Owner clean-up 2 (2026-11-24) ---- */
/* Buttons and panels always sit above the floating HP bar and damage numbers. */
.bar, #anim, #help, #combat, #mode-switch, .edge-tab { z-index: 4; }
#combat-layer { z-index: 1; }
/* Controls: the toggle stays where it is; the list opens above it. */
#help { bottom: 12px; }
#help table { position: absolute; left: 0; bottom: 100%; margin: 0 0 6px; white-space: nowrap; }
/* Open in new tab + reload beside the name, no boxes. */
.title-acts { display: inline-flex; align-items: center; gap: 2px; }
.title-acts button { background: none; border: none; box-shadow: none; padding: 4px; color: var(--muted); display: inline-grid; place-items: center; }
.title-acts button:hover { background: none; color: #fff; }
.embedded-only { display: none !important; }
body.embedded .title-acts.embedded-only { display: inline-flex !important; }
body.embedded #mode-switch.embedded-only { display: inline-flex !important; }
/* Viewer / Pipeline in the very top right corner. */
#mode-switch { position: fixed; top: 8px; right: 10px; gap: 2px; padding: 2px; border-radius: 8px; background: color-mix(in srgb, var(--panel) 80%, transparent); font-size: 12.5px; }
#mode-switch a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 6px; }
#mode-switch a:hover { color: var(--text); }
#mode-switch a.active { background: var(--panel-2); color: var(--text); }
body.embedded #info .side-head { padding-top: 44px; }
body.embedded.info-hidden .top-left { right: 170px; }
/* Details: closed with the three lines, opened from a half-circle tab on the right edge. */
#toggle-info { order: -1; }
.edge-tab { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 22px; height: 56px; padding: 0 0 0 4px; border: none; border-radius: 28px 0 0 28px; background: var(--panel); color: var(--muted); display: none; place-items: center; box-shadow: -2px 0 10px rgb(0 0 0 / .35); }
.edge-tab:hover { color: var(--text); background: var(--panel-2); width: 26px; }
body.info-hidden .edge-tab { display: grid; }
#info .side-head { justify-content: flex-start; gap: 8px; }

.list-count { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
/* layoutOverlays() places these from their real sizes; they must not stretch the stage. */
@media (min-width: 761px) {
  .top-left { flex-wrap: wrap; row-gap: 2px; }
  .top-right, #views-bar.bottom-right { justify-content: flex-end; }
  #anim { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .top-left strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-left strong .crumb, .top-left strong .crumb-sep, .top-left strong .crumb-name { display: inline; margin-right: 5px; }
  body.embedded .top-left { right: 150px; }
  body.embedded #mode-switch { top: 12px; }
}
@media (max-width: 760px) { .top-left strong .crumb, .top-left strong .crumb-sep { display: none; } }
