/* Client content hub: shared styles for every client (hubs/core).
   Per-client colour comes from hub.config.json (theme.accent), injected into index.html.
   Base layout and tokens are carried over from the studio's asset hub (site/styles.css). */
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/PPNeueMontreal-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Moulin"; src: url("fonts/Moulin-Light-Web.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Moulin"; src: url("fonts/Moulin-Regular-Web.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Moulin"; src: url("fonts/Moulin-Medium-Web.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Moulin"; src: url("fonts/Moulin-Bold-Web.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #060606;
  --side: #060606;
  --panel: #0c0c0c;
  --panel-2: #141414;
  --line: #1c1c1c;
  --line-2: #2c2c2c;
  --text: #c5c5c5;
  --strong: #ffffff;
  --hover: #141414;
  --muted: #767676;
  --yellow: 197, 197, 197;
  --pink: 197, 197, 197;
  --blue: 197, 197, 197;
  --coral: 197, 197, 197;
  --radius: 14px;
  --title-sm: 18px; /* small heading: sidebar title — Neue Montreal Book, a step above menu items (14px) */
  --side-w: 272px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Iowan Old Style", Georgia, ui-serif, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-family: var(--sans);
}
/* theme.fonts = "studio": Uncommon's licensed fonts (only on uncommondesign.group and its subdomains) */
.fonts-studio { --sans: "PP Neue Montreal", "Inter", ui-sans-serif, system-ui, sans-serif; --display: "Moulin", "Iowan Old Style", Georgia, serif; font-family: var(--sans); }
* { box-sizing: border-box; }
html, body { height: 100%; }
/* Desktop: the window doesn't scroll. The sidebar fills the window height (scrolling only if its own content is taller);
   the gallery column is the one scrolling area. */
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; height: 100dvh; overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- sidebar */
.side { position: relative; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--side); border-right: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.brand { color: var(--strong); display: flex; align-items: center; gap: 12px; padding: 4px 8px 14px; font-weight: 400; font-size: var(--title-sm); letter-spacing: -.01em; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--hover); border: 1px solid var(--line-2); color: var(--text); flex: none; }
.mark .logo { width: 21px; height: 25px; display: block; }

.search { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.search:focus-within { border-color: var(--line-2); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
.search kbd { color: var(--muted); font: 11px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }

.nav-item, .tree-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0;
  padding: 12px 12px; border-radius: 10px; cursor: pointer; color: var(--text); text-decoration: none; }
.nav-item:hover, .tree-item:hover { background: var(--hover); }
.nav-item[aria-current="true"], .tree-item[aria-current="true"] { background: var(--hover); color: var(--strong); }
.count { margin-left: auto; color: var(--muted); font: 12px var(--mono); }

.side-label { color: var(--muted); font-size: 13px; margin: 26px 12px 8px; }
.tree { display: flex; flex-direction: column; gap: 4px; }
.tree-sub { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px 24px; padding-left: 10px; border-left: 1px solid var(--line); }
.tree-sub .tree-item { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.tree-sub .tree-item[aria-current="true"], .tree-sub .tree-item:hover { color: var(--text); }
.tree-sub .name, .tree-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-foot { margin-top: auto; padding-top: 18px; }
.synced { color: var(--muted); font-size: 12px; margin: 8px 10px 0; }

/* ------------------------------------------------------------------- main */
.main { min-width: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 48px 48px 80px; }
.head { margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
h1 { color: var(--strong); margin: 0; font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: -0.07em; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.stats:empty { display: none; }
.stat { text-align: left; border-radius: var(--radius); padding: 18px 20px 20px; cursor: pointer; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: background .15s, border-color .15s, transform .15s; }
.stat:hover { background: var(--hover); border-color: var(--line-2); }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.stat-num { font: 300 44px/1 var(--display); text-transform: uppercase; letter-spacing: -0.07em; margin: 22px 0 8px; color: var(--strong); }
.stat-sub { color: var(--muted); font-size: 13px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.crumbs button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.crumbs button:hover, .crumbs .cur { color: var(--text); }
.tools { display: flex; gap: 10px; align-items: center; }
select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font: inherit; }
.toggle { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.toggle button { display: grid; place-items: center; width: 32px; height: 28px; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; }
.toggle.orient button[data-orient="all"] { width: auto; padding: 0 10px; font-size: 13px; }
.toggle button[aria-pressed="true"] { background: var(--hover); color: var(--strong); box-shadow: inset 0 0 0 1px var(--line-2); }

.folders { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.folders:empty { display: none; }
.folder { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.folder:hover { border-color: var(--line-2); }
.folder span { color: var(--muted); font: 12px var(--mono); }

/* grid view */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .2s, background .2s; }
.card:hover, .card:focus-visible { border-color: var(--line-2); background: var(--hover); outline: 0; }
.thumb { aspect-ratio: 4 / 3; background: var(--panel-2); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
/* hover: the card stays put, the image eases in 5% */
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } .card:hover .thumb img { transform: none; } }
.thumb.none { display: grid; place-items: center; background:
  var(--panel-2); }
.thumb.none span { font: 600 13px var(--mono); letter-spacing: .12em; color: var(--muted); }
.card-body { padding: 12px 14px 14px; }
.card-name { font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 5px; }
.card-sub span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; text-transform: uppercase; flex: none; }

/* list view */
.list-head, .row { display: grid; grid-template-columns: 52px minmax(0, 2.4fr) minmax(0, 1.4fr) 64px 84px 110px 200px; gap: 16px; align-items: center; }
.list-head { color: var(--muted); font-size: 12px; padding: 0 14px 8px; border-bottom: 1px solid var(--line); }
.grid.list { display: flex; flex-direction: column; gap: 0; }
.row { padding: 8px 14px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.row:hover, .row:focus-visible { background: var(--hover); outline: 0; }
.row .mini { width: 52px; height: 39px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.row .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row .r-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r-folder, .row .r-size, .row .r-date { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.row .r-size, .row .r-date { font-family: var(--mono); font-size: 12px; }
.row .dl { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.row .dl:hover { background: var(--panel-2); color: var(--text); }

mark { background: rgba(255, 255, 255, .14); color: var(--strong); border-radius: 2px; }
.empty { text-align: center; color: var(--muted); padding: 60px; }

/* detail */
dialog { width: min(1100px, 94vw); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; z-index: 1; }
.detail-body { display: grid; grid-template-columns: 1.6fr 1fr; }
.detail-img { background: #0c0c0c; display: grid; place-items: center; min-height: 380px; }
.detail-img img { max-width: 100%; max-height: 76vh; display: block; }
.detail-info { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.detail-path { color: var(--muted); margin: 0; font-size: 12px; }
.detail-info h2 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 300; text-transform: uppercase; letter-spacing: -0.07em; line-height: 1.05; color: var(--strong); }
dl { display: grid; grid-template-columns: 70px 1fr; gap: 6px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); background: none; cursor: pointer; }
.tag:hover { color: var(--text); border-color: var(--line-2); }
.files { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.files a { color: var(--muted); text-decoration: none; display: flex; justify-content: space-between; gap: 10px; }
.files a:hover { color: var(--text); }
.actions { display: flex; gap: 10px; margin-top: auto; }
.btn { flex: 1; text-align: center; text-decoration: none; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; }
.btn:hover { border-color: var(--line-2); }
.btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.primary:hover { background: var(--strong); border-color: var(--strong); }


/* ---------------------------------------------------------------- icons */
/* Streamline Ultimate: Regular by default, Bold when the control is selected (or hovered, for actions). */
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; overflow: visible; }
.ic-b { display: none; }
/* Regular (line) icons: a true 1px line at every icon size */
symbol[id$="-r"] * { vector-effect: non-scaling-stroke; stroke-width: 1px; }
[aria-current="true"] .ic-r, [aria-pressed="true"] .ic-r, [aria-expanded="true"] .ic-r,
.search:focus-within .ic-r, .stat:hover .ic-r, .folder:hover .ic-r, .dl:hover .ic-r, .btn:hover .ic-r,
.close:hover .ic-r, .akoya-link:hover .ic-r, .nav-item:hover .ic-r { display: none; }
[aria-current="true"] .ic-b, [aria-pressed="true"] .ic-b, [aria-expanded="true"] .ic-b,
.search:focus-within .ic-b, .stat:hover .ic-b, .folder:hover .ic-b, .dl:hover .ic-b, .btn:hover .ic-b,
.close:hover .ic-b, .akoya-link:hover .ic-b, .nav-item:hover .ic-b { display: inline; }

.search .ic { width: 16px; height: 16px; color: var(--muted); }
.search:focus-within .ic { color: var(--text); }
.nav-item .ic, .tree-item > .ic:first-child { color: var(--muted); }
.nav-item[aria-current="true"] .ic, .tree-item[aria-current="true"] > .ic:first-child, .tree-item[aria-expanded="true"] > .ic:first-child { color: var(--strong); }
.tree-item .chev { width: 11px; height: 11px; margin-left: 2px; color: var(--muted); transition: transform .15s; }
.tree-item[aria-expanded="true"] .chev { transform: rotate(90deg); }
.tree-sub .tree-item .ic { width: 14px; height: 14px; }
.tree-sub .tree-item[aria-current="true"] .ic { color: var(--strong); }
.toggle button .ic { width: 16px; height: 16px; }
.stat-top .ic { width: 20px; height: 20px; }
.folder .ic { width: 16px; height: 16px; color: var(--muted); }
.row .dl .ic { width: 18px; height: 18px; }
.close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; top: 12px; right: 12px; }
.close:hover { background: var(--panel-2); color: var(--text); }
.close .ic { width: 14px; height: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn .ic { width: 16px; height: 16px; }
.akoya-link .ic { width: 12px; height: 12px; vertical-align: -1px; margin-left: 2px; }

.nav { display: flex; flex-direction: column; gap: 4px; }



/* =========================================================== content hub */
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { color: var(--strong); }
.brand-sub { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.mark { font: 300 20px/1 var(--display); text-transform: uppercase; color: var(--strong); }
.mark img, .mark svg { width: 24px; height: 24px; display: block; object-fit: contain; }
.made { color: var(--muted); font-size: 12px; margin: 6px 10px 0; }
.made a { color: var(--text); text-decoration: none; }
.made a:hover { color: var(--strong); }
.intro { color: var(--muted); margin: 14px 0 0; max-width: 560px; line-height: 1.5; font-size: 15px; }
.tree-item .name { flex: 1; min-width: 0; }

/* play icon (no Streamline video icon in the set yet) */
.ic-play { width: 18px; height: 18px; flex: none; display: inline-grid; place-items: center; }
.ic-play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.nav-item .ic-play { color: var(--muted); }
.nav-item[aria-current="true"] .ic-play { color: var(--strong); }

/* filter chips (type) */
.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filterbar.home { justify-content: flex-end; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chips button:hover { color: var(--text); background: var(--hover); }
.chips button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.chips button span { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.btn { cursor: pointer; background: none; color: var(--text); font: inherit; }
.btn.ghost { flex: none; height: 36px; padding: 0 14px; border-radius: 9px; background: var(--panel); }
.btn.ghost:hover { background: var(--hover); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; font-size: 12px; }
.link:hover { color: var(--strong); }

/* gallery chips */
.folder[aria-current="true"] { border-color: var(--accent); color: var(--strong); }

/* series (sidebar) and event cards */
.tree-item.series .chev { width: 10px; height: 10px; margin: 0 -2px 0 0; color: var(--muted); transition: transform .15s; }
.tree-item.series[aria-expanded="true"] .chev { transform: rotate(90deg); }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.eyebrow a:hover { color: var(--strong); }
.ev-series { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.grid.events { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ev-card { text-align: left; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; color: var(--text); transition: border-color .2s, background .2s; }
.ev-card:hover, .ev-card:focus-visible { border-color: var(--line-2); background: var(--hover); outline: 0; }
.ev-card .thumb { aspect-ratio: 3 / 2; }
.ev-card:hover .thumb img { transform: scale(1.05); }
.ev-name { color: var(--strong); font: 300 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card .card-body { padding: 16px 16px 16px; }
.ev-card .card-sub { margin-top: 8px; align-items: center; }
.tallies { display: inline-flex; gap: 12px; flex: none; }
.tally { display: inline-flex; align-items: center; gap: 5px; }
.tally .ic { width: 15px; height: 15px; }
/* events as a list */
.grid.events.ev-list { display: flex; flex-direction: column; gap: 4px; }
.ev-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 140px auto; align-items: center; gap: 16px; width: 100%; padding: 8px 14px 8px 8px; border: 0; border-radius: 12px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.ev-row:hover, .ev-row:focus-visible { background: var(--panel); outline: 0; }
.ev-row .mini { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.ev-row .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-row .ev-series { margin-bottom: 3px; }
.ev-row .ev-name { font-size: 17px; }
.ev-row-date { color: var(--muted); font-size: 13px; }
.ev-row .tallies { color: var(--muted); font-size: 13px; justify-content: flex-end; min-width: 110px; }
@media (max-width: 760px) { .ev-row { grid-template-columns: 56px minmax(0, 1fr) auto; } .ev-row-date { display: none; } }
.ev-n { position: absolute; top: 10px; right: 10px; font: 11px var(--mono); background: rgba(6, 6, 6, .72); backdrop-filter: blur(6px); border: 1px solid var(--line-2); color: var(--text); padding: 3px 7px; border-radius: 6px; }

/* media tiles */
.grid.media { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid.media .thumb { aspect-ratio: 3 / 2; }
.card { position: relative; }
.card.sel { border-color: var(--accent); }
.vbadge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border-radius: 6px; background: rgba(6, 6, 6, .72); backdrop-filter: blur(6px); color: var(--strong); font-style: normal; }
.vbadge b { font: 11px var(--mono); font-weight: 400; }
.vbadge.sm { left: 3px; bottom: 3px; padding: 0; border-radius: 4px; }
.vbadge.sm .ic-play { width: 14px; height: 14px; }
.vbadge.lg { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 14px; border-radius: 50%; pointer-events: none; }
.vbadge.lg .ic-play { width: 28px; height: 28px; transform: scale(1.6); }

/* selection check */
.check { position: absolute; top: 10px; left: 10px; z-index: 2; width: 24px; height: 24px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.card:hover .check, .card:focus-within .check, .card.sel .check, .grid:has(.sel) .check { opacity: 1; }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check i { position: absolute; inset: 0; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .85); background: rgba(6, 6, 6, .45); backdrop-filter: blur(4px); }
.check input:checked + i { background: var(--accent); border-color: var(--accent); }
.check input:checked + i::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + i { outline: 2px solid var(--strong); outline-offset: 2px; }
.row { position: relative; }
.grid.list .row { padding-left: 44px; }
.list-head { padding-left: 44px; }
.row .mini { position: relative; }
.row .check { top: 50%; left: 14px; transform: translateY(-50%); width: 20px; height: 20px; opacity: 1; display: none; }
.row:hover .check, .row.sel .check, .grid:has(.sel) .row .check { display: block; }
.row .check input:checked + i::after { left: 6px; top: 2px; }
.row.sel { background: var(--hover); }
.more { grid-column: 1 / -1; justify-self: center; margin-top: 12px; }

/* selection bar + download progress */
.selbar { position: fixed; left: calc(var(--side-w) + 50%); transform: translateX(calc(-50% - var(--side-w) / 2)); bottom: 24px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.selbar #sel-n { color: var(--strong); margin-right: 8px; white-space: nowrap; }
.selbar .btn { flex: none; height: 36px; padding: 0 14px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 6; width: 340px; padding: 16px 18px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.toast-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.toast b { color: var(--strong); font-weight: 500; }
.toast p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.bar { height: 3px; margin-top: 12px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* lightbox */
.detail-body { min-height: 0; }
.detail-media { position: relative; background: #0c0c0c; display: grid; place-items: center; min-height: 420px; border-radius: 18px 0 0 18px; overflow: hidden; }
.detail-stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 18px 56px; }
.detail-stage img, .detail-stage video { max-width: 100%; max-height: 78vh; display: block; border-radius: 6px; }
.noprev { color: var(--muted); }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6, 6, 6, .6); color: var(--text); cursor: pointer; }
.nav-arrow:hover:not(:disabled) { color: var(--strong); border-color: var(--text); }
.nav-arrow:disabled { opacity: .25; cursor: default; }
.nav-arrow.prev { left: 10px; } .nav-arrow.next { right: 10px; }
.nav-arrow.prev .ic { transform: rotate(180deg); }
.nav-arrow .ic { width: 14px; height: 14px; }
.detail-info dl { grid-template-columns: 64px 1fr; row-gap: 8px; }
.detail-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.detail-pos { margin: 0; color: var(--muted); font: 11px var(--mono); text-align: center; }
.detail-info .actions { flex-direction: column; }

/* Download + Copy link */
.acts { display: flex; gap: 6px; }
.act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.act:hover { border-color: var(--line-2); color: var(--strong); background: var(--hover); }
.act.done { color: var(--strong); border-color: var(--accent); }
.act .ic { width: 14px; height: 14px; }
.grid.media .card { container-type: inline-size; }
.grid.media .card-body { padding: 10px; }
.card .acts { margin: 0; }
.card .act { padding: 0 6px; min-width: 0; }
.card .act span { overflow: hidden; text-overflow: ellipsis; }
/* narrow tiles: icons only (names show on hover) */
@container (max-width: 330px) { .card .act { gap: 0; } .card .act span { display: none; } }
.row .acts .act { flex: none; }
.row .acts { justify-content: flex-end; }

/* event intro: written context (left) + recap video (right, capped width) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 0 0 36px; }
.feature.has-video { grid-template-columns: minmax(340px, 1fr) minmax(0, 960px); align-items: start; }
.feature-context { min-width: 0; max-width: 640px; }
.feature-context .feature-label { margin: 0 0 14px; }
.about { color: var(--text); font-size: 15px; line-height: 1.6; }
.about p { margin: 0 0 14px; }
.about ul { margin: 0 0 14px; padding-left: 18px; }
.about li { margin-bottom: 4px; }
.about a, .facts a { color: var(--strong); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.about a:hover, .facts a:hover { border-color: var(--strong); }
.facts { display: grid; grid-template-columns: 90px 1fr; gap: 0; margin: 6px 0 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--text); font-variant-numeric: tabular-nums; }
.feature-video { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.feature-media { background: #000; display: grid; place-items: center; }
.feature-media video, .feature-poster { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.feature-poster { position: relative; display: grid; place-items: center; }
.feature-poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.feature-poster:hover .vbadge.lg { background: rgba(6, 6, 6, .9); }
.feature-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 18px; flex-wrap: wrap; }
.feature-bar p { margin: 0; }
.feature-label { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.feature-name { color: var(--strong); font-size: 16px; margin-top: 6px !important; }
.feature-meta { color: var(--muted); font: 12px var(--mono); margin-top: 4px !important; }
.feature-bar .acts .act { flex: none; height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 1100px) { .feature.has-video { grid-template-columns: minmax(0, 1fr); } .feature.has-video .feature-video { order: -1; } }

/* responsive */
@media (max-width: 1100px) { .list-head, .row { grid-template-columns: 52px minmax(0, 2fr) minmax(0, 1fr) 64px 84px 200px; } .list-head span:nth-child(6), .row .r-date { display: none; } }
@media (max-width: 860px) {
  body { display: block; height: auto; overflow: visible; }
  .main { height: auto; overflow: visible; padding: 28px 16px 90px; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tree, .side-label, .side-foot { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; } .nav .nav-item { width: auto; padding: 8px 12px; }
  .grid.media { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .grid.events { grid-template-columns: 1fr; }
  .check { opacity: 1; }
  .card .act span { display: none; }
  .list-head { display: none !important; }
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; } .row .act { font-size: 0; gap: 0; width: 34px; padding: 0; } .row .r-folder, .row .r-ext, .row .r-size { display: none; }
  .detail-body { grid-template-columns: 1fr; } .detail-media { border-radius: 18px 18px 0 0; min-height: 260px; } .detail-stage { padding: 12px 48px; }
  .selbar { left: 12px; right: 12px; bottom: 12px; transform: none; flex-wrap: wrap; justify-content: flex-end; padding: 10px; }
  .selbar #sel-n { flex: 1 0 100%; margin: 0 0 4px 6px; }
  .selbar #sel-all { display: none; }
  .toast { left: 16px; right: 16px; width: auto; }
}
[hidden] { display: none !important; }
