/*
 * The Producers page (assets/wkx-producers.js). Its prefix is wkpd- (and
 * data-wkpd-*, --wkpd-*), used by no other module. The page chrome is only
 * touched while .wkpd-root is on screen (:has(.wkpd-root)); every other rule
 * names a wkpd- class, so no other page is affected. The page's own values
 * are --wkpd-* tokens with Create's --pt-* values; the shared --pt-* tokens
 * are never redefined here, so the shared top bar mounted in the header
 * looks exactly as on every other page.
 */

/* Page chrome while the directory is on screen: one column (the page draws
   its own inspector), no legacy right panel. .main is overflow:auto but as
   tall as its content (the document scrolls), which would pin the sticky
   inspector to a scroller that never moves: clip it instead (no scroll
   container), so the inspector sticks to the viewport. The room the player
   bar needs sits inside the page (.wkpd-main / the full page), not below
   it: a sticky panel can't leave its grid area, so space under the grid
   would push the panel up at the end of a long list.
   Padding as on Create and the Dashboard, so the shared top bar sits in the
   same spot on every page. */
body.producers-active .main:has(.wkpd-root) { overflow: clip visible !important; padding-bottom: 0 !important; }
body.producers-active .workspace:has(.wkpd-root) {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 20px 28px 0 !important;
  background:
    radial-gradient(900px 300px at 18% -80px, rgba(124, 92, 255, .16), transparent 70%),
    radial-gradient(700px 320px at 96% -60px, rgba(59, 130, 246, .07), transparent 70%),
    #050509 !important;
}
body.producers-active .workspace:has(.wkpd-root) > .profile-panel { display: none !important; }
body.producers-active .workspace:has(.wkpd-root) .content-panel { overflow: visible !important; }
@media (max-height: 940px) {
  body.producers-active .workspace:has(.wkpd-root) { padding-top: 16px !important; }
}
@media (max-width: 820px) {
  body.producers-active .workspace:has(.wkpd-root) { padding: 16px 16px 0 !important; }
}

.wkpd-root {
  --wkpd-border-subtle: rgba(255, 255, 255, .075);
  --wkpd-border-strong: rgba(255, 255, 255, .13);
  --wkpd-border-active: rgba(167, 139, 250, .62);
  --wkpd-text-primary: #f7f5ff;
  --wkpd-text-secondary: rgba(228, 224, 246, .68);
  --wkpd-text-muted: rgba(228, 224, 246, .6);
  --wkpd-accent: #7c5cff;
  --wkpd-accent-bright: #a78bfa;
  --wkpd-accent-soft: rgba(124, 92, 255, .16);
  --wkpd-cta-gradient: linear-gradient(100deg, #9a6bff 0%, #7446ff 22%, #6538f2 58%, #5227dc 100%);
  --wkpd-radius-card: 16px;
  --wkpd-surface: linear-gradient(180deg, #0e0f1f 0%, #0a0a16 100%);
  --wkpd-panel: #0a0b17;
  --wkpd-inspector-w: 384px;
  --wkpd-gap: 14px;
  color: var(--wkpd-text-primary);
  color-scheme: dark;
  min-width: 0;
  font-family: inherit;
}
.wkpd-root *, .wkpd-root *::before, .wkpd-root *::after { box-sizing: border-box; }
.wkpd-root [hidden] { display: none !important; }
/* :where() keeps these resets below every component rule's specificity. */
.wkpd-root :where(button, select, input) { font-family: inherit; line-height: 1.2; transition: none; }
.wkpd-root :where(button) { cursor: pointer; }
.wkpd-root button:focus-visible, .wkpd-root select:focus-visible, .wkpd-root [tabindex]:focus-visible {
  outline: none; box-shadow: 0 0 0 2px #0b0916, 0 0 0 4px rgba(167, 139, 250, .9);
}
.wkpd-root svg { width: 1em; height: 1em; flex: 0 0 auto; }
.wkpd-muted { color: var(--wkpd-text-muted); font-size: 12px; }

/* ── Header: title + the shared top bar ─────────────────────────────── */
/* Title and the top bar share the first row (the subtitle runs under both)
   when the bar still gets the ~1000px its GPU/VRAM/CPU/RAM readouts need
   (the bar's own container rule hides VRAM and RAM below 980px); a narrower
   page puts the bar on its own full-width row above the title, as on Create. */
.wkpd-head { container: wkpd-head / inline-size; margin: 0 0 20px; }
.wkpd-head-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "title bar" "sub sub";
  column-gap: 32px; row-gap: 8px; align-items: center;
}
.wkpd-title {
  grid-area: title; margin: 0; padding-bottom: 2px;
  font-size: clamp(28px, 3.1vw, 48px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  background: linear-gradient(95deg, #ffffff 0%, #ece7ff 38%, #c4b5fd 78%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wkpd-sub { grid-area: sub; margin: 0; color: var(--wkpd-text-secondary); font-size: 15px; line-height: 1.45; }
.wkpd-topbar-slot { grid-area: bar; min-width: 0; }
.wkpd-topbar-slot .pt-topbar { margin: 0; }
@container wkpd-head (max-width: 1240px) {
  .wkpd-head-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "title" "sub"; row-gap: 10px; }
  .wkpd-topbar-slot { margin-bottom: 2px; }      /* the title 12px under the bar, as on Create */
}

/* ── Body: directory + inspector ────────────────────────────────────── */
.wkpd-body { display: block; min-width: 0; }
.wkpd-root.is-wide .wkpd-body {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--wkpd-inspector-w); gap: 22px; align-items: start;
}
/* nothing in the panel (the directory failed to load): the message spans the page */
.wkpd-root.is-wide .wkpd-body:has(> .wkpd-inspector:empty) { grid-template-columns: minmax(0, 1fr); }
.wkpd-main { min-width: 0; container: wkpd-main / inline-size; padding-bottom: calc(var(--wkpd-bottom, 84px) + 36px); }

/* Category tabs, view toggle + filters, section title, sort: one grid.
   Wide: the tabs and tools share the first row (the mockup); when the tabs
   need the whole row, the tools move down beside the sort instead of
   wrapping onto a row of their own. */
.wkpd-ctl {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs tools" "sec sort";
  column-gap: 10px; row-gap: 20px; align-items: center; margin: 0 0 14px;
}
.wkpd-ctl > .wkpd-tabs { grid-area: tabs; }
.wkpd-ctl > .wkpd-tools { grid-area: tools; }
.wkpd-ctl > .wkpd-sec-left { grid-area: sec; }
.wkpd-ctl > .wkpd-sort { grid-area: sort; }
/* is-stacked: set by the page when the tabs and tools don't fit one row */
.wkpd-ctl.is-stacked { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "tabs tabs tabs" "sec sort tools"; row-gap: 16px; }
.wkpd-tabs { display: flex; gap: 9px; flex-wrap: wrap; min-width: 0; }
.wkpd-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px 0 12px; border-radius: 10px; white-space: nowrap;
  border: 1px solid var(--wkpd-border-subtle); background: rgba(18, 17, 34, .78);
  color: var(--wkpd-text-secondary); font-size: 13px; font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.wkpd-tab svg { font-size: 13px; opacity: .8; }
.wkpd-tab.is-active svg { opacity: 1; }
/* set by the page when the glyphs would push the row past its width */
.wkpd-ctl.no-glyphs .wkpd-tabs { gap: 7px; }
.wkpd-ctl.no-glyphs .wkpd-tab { padding: 0 14px; }
.wkpd-ctl.no-glyphs .wkpd-tab svg { display: none; }
.wkpd-tab:hover { color: var(--wkpd-text-primary); border-color: var(--wkpd-border-strong); }
.wkpd-tab.is-active {
  color: #fff; border-color: rgba(167, 139, 250, .7); background: var(--wkpd-cta-gradient);
  box-shadow: 0 6px 22px rgba(124, 92, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.wkpd-tools { display: flex; align-items: center; gap: 10px; justify-self: end; }
.wkpd-viewtoggle { display: flex; gap: 6px; }
.wkpd-icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--wkpd-border-subtle); background: rgba(18, 17, 34, .78); color: var(--wkpd-text-secondary); font-size: 17px;
}
.wkpd-icon-btn:hover { color: #fff; border-color: var(--wkpd-border-strong); }
.wkpd-icon-btn.is-active { color: #fff; border-color: rgba(167, 139, 250, .7); background: rgba(124, 92, 255, .42); }
.wkpd-filters-wrap { position: relative; }
.wkpd-filters-btn {
  height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px;
  border: 1px solid var(--wkpd-border-subtle); background: rgba(18, 17, 34, .78); color: var(--wkpd-text-primary);
  font-size: 13.5px; font-weight: 600;
}
.wkpd-filters-btn svg { font-size: 16px; color: var(--wkpd-text-secondary); }
.wkpd-filters-btn.is-active { border-color: var(--wkpd-border-active); }
.wkpd-fcount {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--wkpd-accent); color: #fff; font-size: 11px; font-weight: 700;
}
.wkpd-filters-slot { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; }
.wkpd-filters-pop {
  width: min(420px, calc(100vw - 32px)); padding: 16px; border-radius: 14px;
  border: 1px solid var(--wkpd-border-strong); background: #12112a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  display: grid; gap: 14px;
}
.wkpd-f-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wkpd-text-secondary); margin-bottom: 8px; }
.wkpd-f-hint { color: var(--wkpd-text-muted); font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; margin: 4px 0 0; line-height: 1.4; }
.wkpd-f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wkpd-f-chip {
  height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--wkpd-border-subtle);
  background: rgba(255, 255, 255, .04); color: var(--wkpd-text-secondary); font-size: 12px;
}
.wkpd-f-chip span { color: var(--wkpd-text-muted); margin-left: 3px; font-size: 11px; }
.wkpd-f-chip.is-on { color: #fff; border-color: var(--wkpd-border-active); background: var(--wkpd-accent-soft); }
.wkpd-f-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wkpd-f-field { display: grid; gap: 6px; font-size: 12px; color: var(--wkpd-text-secondary); font-weight: 600; min-width: 0; }
.wkpd-root select {
  height: 34px; min-width: 0; padding: 0 28px 0 10px; border-radius: 9px; border: 1px solid var(--wkpd-border-strong);
  background: #0c0b1c; color: var(--wkpd-text-primary); font-size: 12.5px; font-weight: 500;
}
.wkpd-f-checks { display: flex; gap: 16px; flex-wrap: wrap; }
.wkpd-f-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wkpd-text-primary); cursor: pointer; }
.wkpd-f-check input { width: 16px; height: 16px; accent-color: #8b5cf6; margin: 0; }
.wkpd-f-adv { padding-top: 12px; border-top: 1px solid var(--wkpd-border-subtle); }
.wkpd-f-foot { display: flex; justify-content: space-between; align-items: center; }

.wkpd-btn-sm {
  height: 34px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(167, 139, 250, .5); background: var(--wkpd-accent-soft); color: #fff; font-size: 13px; font-weight: 600;
}
.wkpd-btn-sm:hover { background: rgba(124, 92, 255, .28); }
.wkpd-link-btn { padding: 0; border: 0; background: none; color: var(--wkpd-accent-bright); font-size: 13px; font-weight: 600; }
.wkpd-link-btn:hover { color: #c4b5fd; text-decoration: underline; }

/* Section head (in .wkpd-ctl) */
.wkpd-sec-left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.wkpd-sec-title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.wkpd-count { color: var(--wkpd-accent-bright); font-size: 13px; font-weight: 600; }
.wkpd-qnote .wkpd-link-btn { font-size: 12.5px; }
.wkpd-sort { display: inline-flex; align-items: center; gap: 8px; min-width: 0; justify-self: end; color: var(--wkpd-text-muted); font-size: 12.5px; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.wkpd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--wkpd-gap); }
.wkpd-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--wkpd-radius-card); border: 1px solid rgba(255, 255, 255, .08); background: var(--wkpd-surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .04);
  cursor: pointer; outline: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.wkpd-card:hover { transform: translateY(-2px); border-color: rgba(196, 181, 253, .32); }
.wkpd-card.is-selected {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .85), 0 0 26px rgba(139, 92, 246, .42), 0 14px 34px rgba(0, 0, 0, .35);
}
.wkpd-art { position: relative; overflow: hidden; display: grid; place-items: center; }
.wkpd-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wkpd-art .wkpd-initials { color: rgba(255, 255, 255, .88); font-weight: 700; letter-spacing: .02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.wkpd-art img + .wkpd-initials { visibility: hidden; }
/* A picture loads onto a neutral dark tile, not the abstract art (which
   comes back if the picture fails and is removed). */
.wkpd-root .wkpd-art:has(> img) { background: linear-gradient(180deg, #16142b, #0c0b1a) !important; }
.wkpd-card-art { aspect-ratio: 5 / 4; width: 100%; }
.wkpd-card-art .wkpd-initials { font-size: 34px; }
.wkpd-card-art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 22, .85));
}
.wkpd-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1 1 auto; min-width: 0; }
.wkpd-card-name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-loc {
  display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--wkpd-text-muted);
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.wkpd-loc svg { color: var(--wkpd-accent-bright); font-size: 11px; }
.wkpd-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-card-stats { display: grid; gap: 1px; font-size: 12.5px; color: #d9d6ea; }
.wkpd-card-stats span + span { color: var(--wkpd-text-secondary); }
.wkpd-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.wkpd-chip {
  height: 21px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045);
  color: #d4d0e6; font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.wkpd-view-btn {
  margin-top: auto; height: 34px; width: 100%; border-radius: 9px;
  border: 1px solid rgba(167, 139, 250, .34); background: rgba(22, 19, 44, .8); color: #fff;
  font-size: 13px; font-weight: 600; transition: background-color 160ms ease, border-color 160ms ease;
}
.wkpd-card-body .wkpd-chips { margin-bottom: 4px; }
.wkpd-view-btn:hover { background: rgba(124, 92, 255, .3); border-color: rgba(196, 181, 253, .6); }
.wkpd-done-badge {
  position: absolute; top: 9px; left: 9px; z-index: 2; height: 22px; padding: 0 8px 0 6px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 4px; background: rgba(10, 30, 18, .82); color: #86efac;
  border: 1px solid rgba(74, 222, 128, .35); font-size: 10.5px; font-weight: 700;
}
.wkpd-card.is-done .wkpd-card-art { filter: saturate(.55) brightness(.8); }

/* List view */
.wkpd-grid[data-view="list"] { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.wkpd-row {
  display: grid; grid-template-columns: 52px minmax(140px, 1.6fr) repeat(3, minmax(64px, .5fr)) minmax(0, 1.2fr) 132px;
  align-items: center; gap: 14px; padding: 8px 12px 8px 8px; min-width: 0; cursor: pointer; outline: none;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .07); background: var(--wkpd-surface);
  transition: border-color 160ms ease;
}
.wkpd-row:hover { border-color: rgba(196, 181, 253, .3); }
.wkpd-row.is-selected { border-color: #8b5cf6; box-shadow: 0 0 0 1px rgba(139, 92, 246, .8), 0 0 22px rgba(139, 92, 246, .32); }
.wkpd-row-art { width: 52px; height: 52px; border-radius: 12px; }
.wkpd-row-art .wkpd-initials { font-size: 16px; }
.wkpd-row-main { min-width: 0; display: grid; gap: 3px; }
.wkpd-row-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-done-inline { color: #86efac; font-size: 11px; font-weight: 700; }
.wkpd-row-num { display: grid; gap: 1px; font-size: 11px; color: var(--wkpd-text-muted); }
.wkpd-row-num b { color: #ecebf6; font-size: 13.5px; font-weight: 700; }
.wkpd-row .wkpd-view-btn { margin: 0; }

/* Show more / empty */
.wkpd-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 18px 0 4px; min-height: 20px; }
.wkpd-more-btn {
  height: 36px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--wkpd-border-strong);
  background: rgba(18, 17, 34, .8); color: var(--wkpd-text-primary); font-size: 13px; font-weight: 600;
}
.wkpd-more-btn:hover { border-color: var(--wkpd-border-active); }
.wkpd-empty {
  grid-column: 1 / -1; padding: 48px 20px; text-align: center; border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .12); background: rgba(12, 11, 24, .6);
}
.wkpd-empty h3 { margin: 0 0 6px; font-size: 18px; }
.wkpd-empty p { margin: 0 0 16px; color: var(--wkpd-text-secondary); font-size: 13.5px; }
.wkpd-empty-acts { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Follows kept only in this browser: the offer to add them to the account */
.wkpd-notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, .34); background: rgba(124, 92, 255, .09);
}
.wkpd-notice-text { margin: 0; flex: 1 1 320px; min-width: 0; color: var(--wkpd-text-secondary); font-size: 13px; line-height: 1.45; }
.wkpd-notice-text b { color: var(--wkpd-text-primary); font-weight: 650; }
.wkpd-notice-acts { display: flex; align-items: center; gap: 14px; }

/* Skeletons: a soft sweep, no spinners */
.wkpd-skel { cursor: default; }
.wkpd-shimmer, .wkpd-bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .085) 50%, rgba(255, 255, 255, .035) 100%);
  background-size: 200% 100%; animation: wkpdSweep 1.4s ease-in-out infinite;
}
.wkpd-bar { display: block; height: 10px; border-radius: 5px; margin: 6px 0; }
.wkpd-bar.tall { height: 30px; margin-top: 12px; }
.wkpd-bar.row { height: 44px; border-radius: 10px; }
.wkpd-bar.w40 { width: 40%; } .wkpd-bar.w60 { width: 60%; } .wkpd-bar.w70 { width: 70%; }
.wkpd-bar.w80 { width: 80%; } .wkpd-bar.w90 { width: 90%; } .wkpd-bar.w100 { width: 100%; }
@keyframes wkpdSweep { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── Inspector ──────────────────────────────────────────────────────── */
.wkpd-inspector {
  container: wkpd-insp / inline-size;
  min-width: 0; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: var(--wkpd-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45); overflow: hidden auto; scrollbar-width: thin;
}
/* nothing to show (the directory failed to load): no empty framed box */
.wkpd-inspector:empty { display: none; }
.wkpd-root.is-wide .wkpd-inspector {
  position: sticky; top: 14px; max-height: var(--wkpd-insp-max, calc(100vh - 28px - var(--wkpd-bottom, 84px)));
}
/* Narrower pages: the inspector is a drawer over the page. */
.wkpd-root:not(.is-wide) .wkpd-inspector {
  position: fixed; z-index: 60; top: 12px; right: 12px; bottom: calc(var(--wkpd-bottom, 84px) + 12px);
  width: min(420px, calc(100vw - 24px));
  transform: translateX(calc(100% + 24px)); visibility: hidden;
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 220ms;
}
.wkpd-root:not(.is-wide).drawer-open .wkpd-inspector { transform: none; visibility: visible; transition: transform 220ms cubic-bezier(.2, .7, .2, 1); }
.wkpd-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(3, 3, 8, .55); }
.wkpd-root.is-wide .wkpd-scrim { display: none !important; }
.wkpd-insp-close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px; border-radius: 10px;
  display: none; place-items: center; border: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 8, 18, .65); color: #fff; font-size: 14px;
}
.wkpd-root:not(.is-wide) .wkpd-insp-close { display: grid; }

.wkpd-insp-hero { position: relative; height: 138px; overflow: hidden; display: grid; place-items: center; }
.wkpd-insp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.wkpd-insp-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 23, 0) 35%, rgba(10, 11, 23, .72) 78%, var(--wkpd-panel) 100%);
}
.wkpd-hero-initials { font-size: 54px; }
.wkpd-insp-id { position: relative; z-index: 2; margin-top: -34px; padding: 0 18px; display: grid; gap: 6px; }
.wkpd-insp-name { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; overflow-wrap: anywhere; }
.wkpd-insp-bio {
  margin: 4px 0 0; color: #d3d0e4; font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.wkpd-insp-src { color: var(--wkpd-text-muted); font-size: 11px; }
.wkpd-insp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 18px 0; padding: 9px 0; border-top: 1px solid var(--wkpd-border-subtle); border-bottom: 1px solid var(--wkpd-border-subtle); }
.wkpd-insp-stats div { display: grid; justify-items: center; gap: 2px; }
.wkpd-insp-stats div + div { border-left: 1px solid var(--wkpd-border-subtle); }
.wkpd-insp-stats b { font-size: 21px; font-weight: 700; }
.wkpd-insp-stats span { color: var(--wkpd-text-muted); font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.wkpd-insp-actions { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; padding: 12px 18px 0; }
.wkpd-playall {
  height: 44px; border-radius: 11px; border: 1px solid rgba(196, 181, 253, .5); background: var(--wkpd-cta-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(124, 92, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.wkpd-playall svg { font-size: 14px; }
.wkpd-playall:hover { filter: brightness(1.08); }
.wkpd-playall[disabled] { opacity: .7; cursor: progress; }
.wkpd-follow {
  height: 44px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff;
  font-size: 14px; font-weight: 700;
}
.wkpd-follow:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .04); }
.wkpd-follow.is-on { border-color: rgba(74, 222, 128, .45); color: #86efac; background: rgba(22, 101, 52, .14); }
/* The detail tabs stay at the top of the panel while its content scrolls. */
.wkpd-itabs {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 2px; padding: 10px 12px 6px; margin-bottom: -6px;
  overflow-x: auto; scrollbar-width: none; background: var(--wkpd-panel);
}
.wkpd-insp-note { margin: 12px 18px 0; color: var(--wkpd-text-muted); font-size: 12px; line-height: 1.4; }
.wkpd-itabs::-webkit-scrollbar { display: none; }
.wkpd-itab {
  flex: 0 0 auto; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: none;
  color: var(--wkpd-text-secondary); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.wkpd-itab:hover { color: #fff; }
.wkpd-itab.is-active {
  color: #fff; border-color: var(--wkpd-border-strong); background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 -2px 0 var(--wkpd-accent-bright);
}
.wkpd-insp-body { padding: 8px 14px 18px; display: grid; gap: 8px; min-width: 0; }
.wkpd-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 4px 0; }
.wkpd-sec-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.wkpd-insp-empty { padding: 36px 22px; text-align: center; }
.wkpd-insp-empty h3 { margin: 0 0 6px; font-size: 17px; }
.wkpd-insp-pad { padding: 16px 18px; }
.wkpd-insp-skel .wkpd-insp-hero { height: 138px; }
.wkpd-skel-rows { display: grid; gap: 8px; margin-top: 10px; }
.wkpd-skel-rows .wkpd-bar { margin: 0; }

/* Pack rows */
.wkpd-packs { display: grid; gap: 2px; }
.wkpd-pack {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px; align-items: center; gap: 12px; width: 100%;
  padding: 4px 6px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left;
  transition: background-color 160ms ease;
}
.wkpd-pack:hover { background: rgba(255, 255, 255, .045); }
.wkpd-pack-art { width: 46px; height: 46px; border-radius: 9px; }
.wkpd-pack-art .wkpd-initials { font-size: 14px; }
.wkpd-pack-main { display: grid; gap: 4px; min-width: 0; }
.wkpd-pack-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wkpd-pack-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-weekly {
  flex: 0 0 auto; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 5px;
  background: rgba(124, 92, 255, .32); border: 1px solid rgba(167, 139, 250, .55); color: #e4dcff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.wkpd-pack-chips .wkpd-chip { height: 19px; font-size: 10px; }
.wkpd-pack-meta { color: var(--wkpd-text-muted); font-size: 11.5px; }
.wkpd-pack-chev { color: var(--wkpd-text-muted); font-size: 16px; display: grid; place-items: center; }
.wkpd-back {
  justify-self: start; height: 30px; padding: 0 10px 0 6px; border-radius: 9px; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--wkpd-border-subtle); background: rgba(255, 255, 255, .03); color: var(--wkpd-text-secondary); font-size: 12.5px; font-weight: 600;
}
.wkpd-packhead { display: grid; gap: 6px; padding: 2px 4px; }
.wkpd-packhead h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.wkpd-play-pack { justify-self: start; }
.wkpd-play-pack svg { font-size: 12px; }

/* Sample rows */
.wkpd-slist { display: grid; gap: 2px; }
.wkpd-srow {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto auto 22px 28px; align-items: center; gap: 8px;
  padding: 6px 6px; border-radius: 11px; cursor: pointer; transition: background-color 140ms ease;
}
.wkpd-srow:hover { background: rgba(255, 255, 255, .045); }
.wkpd-srow.is-current { background: rgba(124, 92, 255, .14); }
.wkpd-srow-art { width: 34px; height: 34px; border-radius: 8px; }
.wkpd-srow-main { min-width: 0; display: grid; gap: 1px; }
.wkpd-srow-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-srow-pack { color: var(--wkpd-text-muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-srow-tag.wkpd-chip { height: 19px; font-size: 10px; padding: 0 6px; }
.wkpd-srow-bpm, .wkpd-srow-key, .wkpd-srow-dur { color: var(--wkpd-text-secondary); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wkpd-srow-bpm.is-detected { color: var(--wkpd-text-muted); }   /* an estimate, marked ~ like estimated hours */
.wkpd-srow-sim {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--wkpd-text-muted);
  font-size: 14px; font-weight: 700; line-height: 1;
}
.wkpd-srow-sim:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.wkpd-srow-sim.is-off, .wkpd-srow-sim.is-off:hover { background: none; }
.wkpd-play-dot {
  width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: #7c3aed; color: #fff; font-size: 11px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .45);
}
.wkpd-play-dot:hover { background: #8b5cf6; }
.wkpd-list-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 4px; }
.wkpd-list-tools .wkpd-muted { margin-right: auto; }
.wkpd-mini-select { display: inline-flex; align-items: center; gap: 6px; color: var(--wkpd-text-muted); font-size: 12px; }
.wkpd-mini-select select { height: 30px; font-size: 12px; }
.wkpd-mini-check { font-size: 12px; color: var(--wkpd-text-secondary); }

/* Stats */
.wkpd-stat-block { padding: 12px; border-radius: 12px; border: 1px solid var(--wkpd-border-subtle); background: rgba(255, 255, 255, .02); display: grid; gap: 8px; }
.wkpd-stat-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; }
.wkpd-stat-h span { color: var(--wkpd-text-secondary); font-weight: 600; font-size: 12px; }
.wkpd-meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.wkpd-meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7c5cff, #60a5fa); }
.wkpd-bars { display: grid; gap: 6px; }
.wkpd-barrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) 48px; align-items: center; gap: 8px; font-size: 12px; }
.wkpd-barrow-l { color: var(--wkpd-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-barrow-t { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.wkpd-barrow-t i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6d4aff, #8b5cf6); }
.wkpd-barrow-n { text-align: right; color: var(--wkpd-text-muted); font-variant-numeric: tabular-nums; }
.wkpd-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wkpd-dates div { display: grid; gap: 2px; }
.wkpd-dates span { color: var(--wkpd-text-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wkpd-dates b { font-size: 13.5px; }

/* Similar */
.wkpd-sim-note { margin: 0 4px; line-height: 1.45; }
.wkpd-sim { display: grid; gap: 2px; }
.wkpd-sim-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 6px;
  border: 0; border-radius: 12px; background: none; color: inherit; text-align: left;
}
.wkpd-sim-row:hover { background: rgba(255, 255, 255, .045); }
.wkpd-sim-art { width: 44px; height: 44px; border-radius: 50%; }
.wkpd-sim-art .wkpd-initials { font-size: 14px; }
.wkpd-sim-main { display: grid; gap: 2px; min-width: 0; }
.wkpd-sim-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkpd-sim-score { color: var(--wkpd-accent-bright); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Responsive ─────────────────────────────────────────────────────── */
/* By the width the page actually gets (the viewport minus the app's
   sidebar), not the viewport: container queries on the directory column
   and on the inspector. */
@container wkpd-main (max-width: 760px) {
  .wkpd-row { grid-template-columns: 48px minmax(120px, 1fr) repeat(3, minmax(56px, .45fr)) 124px; }
  .wkpd-row-chips { display: none; }
}
@container wkpd-main (max-width: 560px) {
  .wkpd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wkpd-ctl, .wkpd-ctl.is-stacked {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs tabs" "sec sec" "sort tools"; row-gap: 12px;
  }
  .wkpd-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wkpd-tabs::-webkit-scrollbar { display: none; }
  .wkpd-sort { justify-self: start; max-width: 100%; }
  .wkpd-sort select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  .wkpd-tools { flex-wrap: wrap; }
  .wkpd-filters-pop { width: min(420px, calc(100cqw - 4px)); }
  .wkpd-row { grid-template-columns: 44px minmax(0, 1fr) 96px; }
  .wkpd-row .wkpd-row-num { display: none; }
  .wkpd-row-art { width: 44px; height: 44px; }
  .wkpd-f-row { grid-template-columns: 1fr 1fr; }
}
@container wkpd-main (max-width: 360px) {
  .wkpd-grid { grid-template-columns: minmax(0, 1fr); }
  .wkpd-card-art { aspect-ratio: 16 / 9; }
  .wkpd-ctl, .wkpd-ctl.is-stacked { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "sec" "sort" "tools"; }
  .wkpd-row { grid-template-columns: 44px minmax(0, 1fr); }
  .wkpd-row .wkpd-view-btn { grid-column: 1 / -1; }
  .wkpd-f-row { grid-template-columns: minmax(0, 1fr); }
}
@container wkpd-insp (max-width: 360px) {
  .wkpd-srow { grid-template-columns: 34px minmax(0, 1fr) auto auto 22px 28px; }
  .wkpd-srow-tag, .wkpd-srow-key { display: none; }
}
/* A very narrow page column (the app's sidebar stays open on a phone): the
   producer page keeps to names and play buttons. */
@container wkpd-insp (max-width: 260px) {
  .wkpd-insp-body { padding-left: 8px; padding-right: 8px; }
  .wkpd-insp-stats { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .wkpd-insp-stats div + div { border-left: 0; }
  .wkpd-insp-actions { grid-template-columns: minmax(0, 1fr); }
  .wkpd-sec-head { flex-wrap: wrap; }
  .wkpd-pack { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
  .wkpd-pack-art { width: 34px; height: 34px; }
  .wkpd-pack-chev { display: none; }
  .wkpd-srow { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 6px; }
  .wkpd-srow-art { width: 28px; height: 28px; }
  .wkpd-srow-bpm, .wkpd-srow-dur, .wkpd-srow-sim { display: none; }
  .wkpd-barrow { grid-template-columns: minmax(0, 1fr) 40px; }
  .wkpd-barrow-t { display: none; }
  .wkpd-dates { grid-template-columns: minmax(0, 1fr); }
}
/* The full-screen drawer follows the viewport itself. */
@media (max-width: 760px) {
  .wkpd-root:not(.is-wide) .wkpd-inspector { top: 0; right: 0; left: 0; width: auto; border-radius: 0; bottom: var(--wkpd-bottom, 84px); }
}
/* A short window: a tighter panel header and two latest packs, so the
   first samples show. */
@media (max-height: 960px) {
  .wkpd-root .wkpd-insp-hero { height: 118px; }
  .wkpd-insp-bio { -webkit-line-clamp: 3; }
  .wkpd-root:not(.is-page) .wkpd-latest > .wkpd-pack:nth-child(n + 3) { display: none; }
}

/* ── View Producer: the producer's full page (the panel across the page) ── */
.wkpd-root.is-page .wkpd-main, .wkpd-root.is-page .wkpd-scrim { display: none !important; }
.wkpd-root.is-page .wkpd-body { display: block; }
.wkpd-root.is-page .wkpd-body .wkpd-inspector {
  position: relative; inset: auto; z-index: auto; width: auto; max-height: none;
  transform: none; visibility: visible; transition: none; overflow: visible;
  margin-bottom: calc(var(--wkpd-bottom, 84px) + 36px);
}
.wkpd-root.is-page .wkpd-insp-close { display: none !important; }
.wkpd-root.is-page .wkpd-page-back { margin: 16px 0 0 18px; }
.wkpd-root.is-page .wkpd-insp-hero { margin: 12px 18px 0; border-radius: 16px; }
.wkpd-root.is-page .wkpd-itabs { border-radius: 0; }
@container wkpd-insp (min-width: 720px) {
  .wkpd-root.is-page .wkpd-insp-top {
    display: grid; grid-template-columns: 176px minmax(0, 1fr) minmax(280px, 360px);
    grid-template-areas: "art id stats" "art id actions"; column-gap: 28px; row-gap: 16px; align-items: start;
    padding: 16px 22px 10px;
  }
  .wkpd-root.is-page .wkpd-insp-hero { grid-area: art; width: 176px; height: 176px; margin: 0; border-radius: 18px; }
  .wkpd-root.is-page .wkpd-insp-hero::after { display: none; }
  .wkpd-root.is-page .wkpd-insp-id { grid-area: id; margin: 0; padding: 6px 0 0; }
  .wkpd-root.is-page .wkpd-insp-name { font-size: 34px; }
  .wkpd-root.is-page .wkpd-insp-bio { -webkit-line-clamp: 6; max-width: 72ch; }
  .wkpd-root.is-page .wkpd-insp-stats { grid-area: stats; margin: 0; }
  .wkpd-root.is-page .wkpd-insp-actions { grid-area: actions; padding: 0; }
  .wkpd-root.is-page .wkpd-itabs { padding: 12px 18px 8px; }
  .wkpd-root.is-page .wkpd-insp-body { padding: 12px 22px 24px; }
  .wkpd-root.is-page .wkpd-packs, .wkpd-root.is-page .wkpd-sim { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 12px; }
  .wkpd-root.is-page .wkpd-insp-body:has(> .wkpd-stat-block) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .wkpd-shimmer, .wkpd-bar { animation: none; }
  .wkpd-card, .wkpd-root:not(.is-wide) .wkpd-inspector { transition: none; }
  .wkpd-card:hover { transform: none; }
}

/* round producer avatars (owner 2026-10-07) */
.wkpd-avatar { border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.wkpd-avatar img { border-radius: 50%; }
.wkpd-avatar-sm { width: 34px; height: 34px; }
.wkpd-avatar-sm .wkpd-initials { font-size: 12px; }
.wkpd-avatar-lg { width: 64px; height: 64px; }
.wkpd-avatar-lg .wkpd-initials { font-size: 22px; }
.wkpd-card-namerow, .wkpd-insp-namerow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wkpd-card-namerow .wkpd-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wkpd-insp-namerow { gap: 14px; }
.wkpd-ig { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.wkpd-row-art { border-radius: 50%; }

/* Producer covers (owner 2026-10-07): the picture whole, over a blurred copy of itself */
.wkpd-art img.wkpd-cover-blur, .wkpd-insp-hero img.wkpd-cover-blur { object-fit: cover; filter: blur(22px) saturate(1.25) brightness(.55);
  transform: scale(1.25); }
.wkpd-art img.wkpd-cover-main, .wkpd-insp-hero img.wkpd-cover-main { object-fit: contain; object-position: center; }
.wkpd-insp-hero.has-pic .wkpd-hero-initials { display: none; }
