/* ==========================================================================
   Stafford Audio — the back office
   Builds on brand.css tokens. Every rule is scoped to .adm-* so nothing here
   can leak into the store.

   Hierarchy rule: burgundy is for headings, primary buttons, links and the
   active state. Body text is a deep warm ink, so dense tables never read as a
   wall of red.

   Access identity colours (dots/icons ONLY — always beside a text label):
     free #4AA37A · paid #A8323E · private #5B63B7
   Validated with the dataviz skill's palette checker on the white card
   surface: all six checks pass, worst colour-blind separation ΔE 14.5.
   On the sand page the green dips to 2.59:1, which is why these never
   appear without a label.
   ========================================================================== */

:root {
  --adm-ink: #3A2427;
  --adm-muted: var(--sa-slate);            /* 5.95:1 on white, 5.0:1 on sand */
  --adm-head: var(--sa-navy);
  --adm-page: var(--sa-sand);
  --adm-card: #FFFFFF;
  --adm-soft: #FBF6EE;                     /* hover / inset surfaces */
  --adm-line: #EADFD1;
  --adm-line-strong: #DCCBB8;
  --adm-ring: 0 0 0 3px rgba(166, 58, 72, 0.18);
  --adm-shadow: 0 1px 2px rgba(74, 7, 16, 0.05), 0 10px 30px -18px rgba(74, 7, 16, 0.28);
  --adm-shadow-lift: 0 2px 4px rgba(74, 7, 16, 0.06), 0 18px 40px -20px rgba(74, 7, 16, 0.38);
  --adm-radius: 16px;

  --adm-free: #4AA37A;   --adm-free-tint: #E7F3EC;
  --adm-paid: #A8323E;   --adm-paid-tint: #F8E6E8;
  --adm-private: #5B63B7; --adm-private-tint: #ECEDF8;
  /* Unlisted: validated in the fixed order free, paid, unlisted, private (the
     order of the cards and the Overview mix) — every pair passes CVD and
     normal-vision separation. Always beside its icon and word. */
  --adm-unlisted: #0097A7; --adm-unlisted-tint: #E2F3F5;
  --adm-live: #2E8757;
  --adm-warn: #B7791F;   --adm-warn-ink: #8A5A00; --adm-warn-tint: #FFF6E0;
  --adm-bad: #C2410C;    --adm-bad-ink: #9A3412;  --adm-bad-tint: #FDEDE8;
}

/* ---- Shell: sidebar in back-office mode --------------------------------- */
/* The shell's content column is a 1fr grid track, and a 1fr track won't shrink
   below its content's min-content width — so one non-wrapping chip would make
   the whole page wider than a phone. min-width: 0 lets it shrink. */
body.is-admin .shell > .main { min-width: 0; }
.nav .nav-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: var(--sa-tracking-caps);
  text-transform: uppercase; color: var(--sa-bronze); padding: 4px 12px 10px;
}
.nav a.nav-store { color: var(--sa-slate); }
@media (max-width: 1023px) { .nav .nav-eyebrow { display: none; } }
body.is-admin .toast { bottom: 104px; }
@media (max-width: 639px) { body.is-admin .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 84px); } }

/* `hidden` must always win. Without this, any element whose class sets a
   display value (.adm-btn is inline-flex) ignores the hidden attribute —
   the bug that showed Preview/Remove on empty media slots. */
.adm [hidden], .adm-modal [hidden], .adm-menu [hidden] { display: none !important; }

/* ---- Page frame ----------------------------------------------------------- */
.adm {
  color: var(--adm-ink);
  max-width: 1240px;
  padding: 6px var(--gutter) 120px;
  font-size: 14.5px;
}
.adm--wide { max-width: 1400px; }
.adm a { color: inherit; }
.adm code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em;
  background: var(--adm-soft); border: 1px solid var(--adm-line); border-radius: 6px; padding: 1px 6px;
}
.adm-muted { color: var(--adm-muted); }
.adm-small { font-size: 13px; }

.adm-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 30px 0 22px;
}
.adm-head__text { min-width: 0; }
.adm-head__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.adm-eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: var(--sa-tracking-caps);
  text-transform: uppercase; color: var(--sa-bronze); margin-bottom: 6px;
}
.adm-title {
  font-family: var(--sa-font-serif); font-weight: 400; color: var(--adm-head);
  font-size: 34px; line-height: 1.12; margin: 0;
}
.adm-title--sm { font-size: 26px; word-break: break-word; }
.adm-sub { margin: 6px 0 0; color: var(--adm-muted); font-size: 14.5px; }

/* The ⌘K button — discoverability for the palette. */
.adm-jump {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px;
  border-radius: 999px; background: var(--adm-card); color: var(--adm-muted);
  box-shadow: inset 0 0 0 1px var(--adm-line-strong); font-size: 14px; min-width: 250px;
  transition: box-shadow .15s, color .15s;
}
.adm-jump:hover { color: var(--adm-ink); box-shadow: inset 0 0 0 1px var(--sa-sky); }
.adm-jump .ic { width: 18px; height: 18px; }
.adm-jump span { flex: 1; text-align: left; }

.adm-kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 6px; background: var(--adm-soft); color: var(--adm-muted);
  font: 500 11.5px/1 var(--sa-font-sans); box-shadow: inset 0 0 0 1px var(--adm-line), inset 0 -1px 0 var(--adm-line-strong);
}

/* ---- Buttons ------------------------------------------------------------------ */
.adm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 14.5px;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s, transform .1s;
}
.adm-btn:active { transform: translateY(1px); }
.adm-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.adm-btn .ic { width: 18px; height: 18px; }
.adm-btn--primary { background: var(--sa-navy); color: var(--sa-cream) !important; }
.adm-btn--primary:hover:not(:disabled) { background: var(--sa-deep); }
.adm-btn--ghost { background: var(--adm-card); color: var(--adm-ink); box-shadow: inset 0 0 0 1px var(--adm-line-strong); }
.adm-btn--ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--sa-sky); color: var(--adm-head); }
.adm-btn--quiet { color: var(--sa-deep); padding: 0 10px; }
.adm-btn--quiet:hover:not(:disabled) { background: var(--adm-paid-tint); }
.adm-btn--danger { background: var(--adm-bad-ink); color: #fff; }
.adm-btn--danger:hover:not(:disabled) { background: #7C2A0E; }
.adm-btn--light { background: rgba(251, 243, 228, .12); color: var(--sa-cream); box-shadow: inset 0 0 0 1px rgba(251, 243, 228, .22); }
.adm-btn--light:hover:not(:disabled) { background: rgba(251, 243, 228, .22); }
.adm-btn--cream { background: var(--sa-cream); color: var(--sa-navy); }
.adm-btn--cream:hover:not(:disabled) { background: #fff; }
.adm-btn--cream .adm-kbd { background: rgba(112, 12, 24, .08); box-shadow: none; color: var(--sa-navy); }
.adm-btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.adm-btn--xs { height: 30px; padding: 0 11px; font-size: 13px; gap: 6px; }
.adm-btn--xs .ic, .adm-btn--sm .ic { width: 16px; height: 16px; }

.adm-iconbtn {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
  color: var(--adm-muted); flex: none; transition: background .15s, color .15s;
}
.adm-iconbtn:hover:not(:disabled) { background: var(--adm-soft); color: var(--adm-head); }
.adm-iconbtn:disabled { opacity: .3; cursor: default; }
.adm-iconbtn .ic { width: 18px; height: 18px; }
.adm-iconbtn--boxed { width: 40px; height: 40px; border-radius: 999px; background: var(--adm-card); box-shadow: inset 0 0 0 1px var(--adm-line-strong); }

.adm-link { display: inline-flex; align-items: center; gap: 2px; color: var(--sa-deep) !important; font-weight: 500; font-size: 13.5px; }
.adm-link .ic { width: 16px; height: 16px; }
.adm-link:hover { color: var(--sa-navy) !important; }

/* ---- Cards ----------------------------------------------------------------- */
.adm-card {
  background: var(--adm-card); border-radius: var(--adm-radius); box-shadow: var(--adm-shadow);
  border: 1px solid rgba(112, 12, 24, 0.05); padding: 22px 24px;
}
.adm-card--flush { padding: 0; overflow: hidden; }
.adm-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px 12px;
}
.adm-card__head h2, .adm-sec__h {
  font-family: var(--sa-font-serif); font-weight: 400; color: var(--adm-head);
  font-size: 19px; margin: 0; display: flex; align-items: center; gap: 8px;
}
.adm-card__meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--adm-muted); }
.adm-card__meta .ic { width: 15px; height: 15px; color: var(--adm-live); }
.adm-cardlink {
  display: flex; align-items: center; justify-content: center; gap: 2px; padding: 12px;
  border-top: 1px solid var(--adm-line); color: var(--sa-deep) !important; font-weight: 500; font-size: 13.5px;
}
.adm-cardlink:hover { background: var(--adm-soft); }
.adm-cardlink .ic { width: 16px; height: 16px; }
.adm-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--adm-soft); color: var(--adm-ink);
  font: 600 12px/1 var(--sa-font-sans); box-shadow: inset 0 0 0 1px var(--adm-line);
}
.adm-count:empty { display: none; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-grid--person { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.adm-grid--team { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.adm-stack { display: grid; gap: 20px; }

/* ---- Notices ----------------------------------------------------------------- */
.adm-notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px;
  margin: 0 0 20px; font-size: 14px; line-height: 1.5;
}
.adm-notice .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.adm-notice--info { background: var(--adm-private-tint); color: var(--adm-ink); }
.adm-notice--info .ic { color: var(--adm-private); }
.adm-notice--error { background: var(--adm-bad-tint); color: var(--adm-bad-ink); }
.adm-notice--error h2 { font-family: var(--sa-font-serif); font-weight: 400; font-size: 19px; margin: 0 0 4px; }
.adm-notice p { margin: 0 0 6px; }

/* ---- KPI tiles -------------------------------------------------------------- */
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.adm-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 16px;
  background: var(--adm-card); border-radius: var(--adm-radius); box-shadow: var(--adm-shadow);
  border: 1px solid rgba(112, 12, 24, 0.05); transition: box-shadow .2s, transform .2s;
}
a.adm-stat:hover { box-shadow: var(--adm-shadow-lift); transform: translateY(-1px); }
.adm-stat__label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--adm-muted); }
.adm-stat__label .ic { width: 16px; height: 16px; }
.adm-stat__value {
  font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: var(--adm-ink);
  font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px;
}
.adm-stat__foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--adm-muted); }
.adm-stat__foot b { color: var(--adm-live); font-weight: 600; }
.adm-mix { display: inline-flex; align-items: center; gap: 5px; color: var(--adm-ink); }
.adm-mix i { width: 8px; height: 8px; border-radius: 50%; }
.adm-mix--free i { background: var(--adm-free); }
.adm-mix--paid i { background: var(--adm-paid); }
.adm-mix--private i { background: var(--adm-private); }
.adm-mix--unlisted i { background: var(--adm-unlisted); }

/* ---- Pills: access identity + live/draft state -------------------------------- */
.adm-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px;
  border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--adm-ink); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.adm-pill .ic { width: 14px; height: 14px; }
.adm-pill--free { background: var(--adm-free-tint); }
.adm-pill--free .ic { color: var(--adm-free); }
.adm-pill--paid { background: var(--adm-paid-tint); }
.adm-pill--paid .ic { color: var(--adm-paid); }
.adm-pill--private { background: var(--adm-private-tint); }
.adm-pill--private .ic { color: var(--adm-private); }
.adm-pill--unlisted { background: var(--adm-unlisted-tint); }
.adm-pill--unlisted .ic { color: var(--adm-unlisted); }

.adm-state {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.adm-state i { width: 7px; height: 7px; border-radius: 50%; }
.adm-state--live { color: var(--adm-ink); background: #EAF4EE; }
.adm-state--live i { background: var(--adm-live); box-shadow: 0 0 0 3px rgba(46, 135, 87, .18); }
.adm-state--draft { color: var(--adm-muted); box-shadow: inset 0 0 0 1px var(--adm-line-strong); background: transparent; }
.adm-state--draft i { box-shadow: inset 0 0 0 1.5px var(--adm-muted); }
.adm-dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--adm-line-strong); display: inline-block; }

.adm-issue {
  display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; flex: none;
  padding: 1px 6px 1px 4px; border-radius: 999px; cursor: help;
}
.adm-issue .ic { width: 14px; height: 14px; }
.adm-issue--warn { color: var(--adm-warn-ink); background: var(--adm-warn-tint); }
.adm-issue--warn .ic { color: var(--adm-warn); }
.adm-issue--error { color: var(--adm-bad-ink); background: var(--adm-bad-tint); }
.adm-issue--error .ic { color: var(--adm-bad); }

.adm-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500;
  padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--adm-soft); color: var(--adm-ink); white-space: nowrap;
}
.adm-chip .ic { width: 13px; height: 13px; }
.adm-chip--warn { background: var(--adm-warn-tint); color: var(--adm-warn-ink); }
.adm-chip--warn .ic { color: var(--adm-warn); }
.adm-chip--error { background: var(--adm-bad-tint); color: var(--adm-bad-ink); }
.adm-chip--error .ic { color: var(--adm-bad); }

.adm-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px;
  border-radius: 999px; background: var(--adm-private-tint); color: var(--adm-ink);
  font-size: 12px; font-weight: 500;
}
.adm-badge .ic { width: 13px; height: 13px; color: var(--adm-private); }

.adm-avatar {
  --h: 350; flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center; font: 500 15px/1 var(--sa-font-serif);
  background: hsl(var(--h) 45% 92%); color: hsl(var(--h) 45% 28%);
}
.adm-avatar--sm { width: 28px; height: 28px; font-size: 12.5px; }
.adm-avatar--xl { width: 64px; height: 64px; font-size: 26px; }

/* ---- Overview lists ----------------------------------------------------------- */
.adm-attn { list-style: none; margin: 0; padding: 0 10px 8px; }
.adm-attn__row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px 12px; border-radius: 12px; transition: background .15s;
}
.adm-attn__row:hover { background: var(--adm-soft); }
.adm-attn__row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 12px -6px rgba(74,7,16,.4); }
.adm-attn__main { min-width: 0; }
.adm-attn__main b { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-attn__issues { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; min-width: 0; }
.adm-attn__issues .adm-chip { white-space: normal; max-width: 100%; }
.adm-attn__go { display: inline-flex; align-items: center; gap: 1px; color: var(--sa-deep); font-weight: 500; font-size: 13px; }
.adm-attn__go .ic { width: 16px; height: 16px; }

.adm-feed { list-style: none; margin: 0; padding: 0 10px 10px; }
.adm-feed li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; }
.adm-feed li:has(> .adm-feed__link) { padding: 0; }
.adm-feed__link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; width: 100%; }
.adm-feed__link:hover { background: var(--adm-soft); }
.adm-feed__link > .ic { width: 16px; height: 16px; color: var(--adm-muted); }
.adm-feed__main { flex: 1; min-width: 0; }
.adm-feed__main b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-feed__main small { display: block; color: var(--adm-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-feed__amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.adm-feed__amt small { display: block; font-size: 11.5px; text-decoration: none; }
.adm-feed__amt.is-refunded, .adm-num.is-refunded { color: var(--adm-muted); font-weight: 500; }
.adm-feed__amt.is-refunded { text-decoration: none; }
.adm-feed__amt.is-refunded::first-line, .adm-num.is-refunded { text-decoration: line-through; }

.adm-shelf { margin-top: 30px; }
.adm-shelf__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.adm-shelf__head h2 { font-family: var(--sa-font-serif); font-weight: 400; font-size: 21px; color: var(--adm-head); margin: 0; }
.adm-covers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.adm-covers--card { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 4px 22px 22px; }
.adm-cover b { display: block; font-family: var(--sa-font-serif); font-weight: 400; font-size: 14.5px; margin: 10px 0 6px; line-height: 1.3; }
.adm-cover__art { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: var(--cover-shadow); background: var(--adm-soft); transition: transform .2s var(--sa-ease); }
.adm-cover:hover .adm-cover__art { transform: translateY(-2px); }
.adm-cover__art img { width: 100%; height: 100%; object-fit: cover; }
.adm-cover__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.adm-foothint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 34px 0 0; color: var(--adm-muted); font-size: 13px; }
.adm-foothint .ic { width: 18px; height: 18px; }

/* ---- Empty / gate / loading --------------------------------------------------- */
.adm-empty { text-align: center; padding: 38px 24px 42px; color: var(--adm-muted); }
.adm-empty__ic {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--adm-soft); color: var(--sa-bronze);
}
.adm-empty__ic .ic { width: 24px; height: 24px; }
.adm-empty h3 { font-family: var(--sa-font-serif); font-weight: 400; color: var(--adm-head); font-size: 19px; margin: 0 0 6px; }
.adm-empty p { margin: 0 auto 14px; max-width: 380px; font-size: 14px; }
.adm-gate { max-width: 460px; margin: 12vh auto 0; text-align: center; }
.adm-gate img { width: 56px; margin: 0 auto 18px; }
.adm-gate p { color: var(--adm-muted); margin: 12px 0 22px; line-height: 1.6; }

.adm-sk { background: linear-gradient(90deg, #EFE5D8 0%, #F7F0E6 50%, #EFE5D8 100%); background-size: 200% 100%; border-radius: 8px; animation: adm-shimmer 1.3s linear infinite; }
.adm-sk--title { width: 240px; height: 36px; }
.adm-sk--sq { width: 44px; height: 44px; flex: none; }
.adm-sk--line { height: 14px; flex: 1; max-width: 360px; }
.adm-sk-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.adm-head--ghost { padding-top: 40px; }
@keyframes adm-shimmer { to { background-position: -200% 0; } }

/* ---- Toolbar, search, filters ----------------------------------------------- */
.adm-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.adm-toolbar__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.adm-search {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px;
  background: var(--adm-card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--adm-line-strong);
  color: var(--adm-muted); transition: box-shadow .15s;
}
.adm-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--sa-ocean), var(--adm-ring); }
.adm-search .ic { width: 18px; height: 18px; flex: none; }
.adm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--adm-ink); height: 100%; }
.adm-search input::-webkit-search-cancel-button { cursor: pointer; }
.adm-search:focus-within .adm-search__kbd { display: none; }
.adm-search--sm { height: 38px; flex: 1; }
.adm-select {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  background: var(--adm-card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--adm-line-strong); color: var(--adm-muted);
}
.adm-select .ic { width: 16px; height: 16px; }
.adm-select select { border: 0; background: none; font: inherit; font-size: 14px; color: var(--adm-ink); cursor: pointer; outline: none; padding-right: 2px; }
.adm-select:focus-within { box-shadow: inset 0 0 0 1.5px var(--sa-ocean), var(--adm-ring); }
.adm-seg { display: inline-flex; padding: 3px; background: var(--adm-card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--adm-line-strong); }
.adm-seg button { width: 36px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--adm-muted); }
.adm-seg button .ic { width: 18px; height: 18px; }
.adm-seg button[aria-checked="true"] { background: var(--sa-navy); color: var(--sa-cream); }

.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.adm-chipf {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: 999px; background: transparent; color: var(--adm-ink); font-size: 13.5px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--adm-line-strong); transition: background .15s, box-shadow .15s;
}
.adm-chipf:hover { background: var(--adm-card); }
.adm-chipf span { font-size: 12px; color: var(--adm-muted); font-variant-numeric: tabular-nums; }
.adm-chipf .ic { width: 15px; height: 15px; }
.adm-chipf.is-on { background: var(--sa-navy); color: var(--sa-cream); box-shadow: none; }
.adm-chipf.is-on span { color: var(--sa-mist); }
.adm-chipf--warn:not(.is-on) .ic { color: var(--adm-warn); }
.adm-dotm { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.adm-dotm--free { background: var(--adm-free); }
.adm-dotm--paid { background: var(--adm-paid); }
.adm-dotm--private { background: var(--adm-private); }
.adm-dotm--unlisted { background: var(--adm-unlisted); }
.adm-chipf.is-on .adm-dotm { box-shadow: 0 0 0 2px var(--sa-cream); }

/* ---- Titles table ----------------------------------------------------------- */
.adm-table { background: var(--adm-card); border-radius: var(--adm-radius); box-shadow: var(--adm-shadow); border: 1px solid rgba(112,12,24,.05); overflow: hidden; }
.adm-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 22px 48px minmax(0, 1fr) 132px 64px 72px 96px 112px 34px;
  padding: 10px 16px; border-top: 1px solid var(--adm-line); cursor: pointer; transition: background .12s;
}
.adm-row:hover { background: var(--adm-soft); }
.adm-row.is-selected { background: #FBF0EC; }
.adm-row--head {
  cursor: default; border-top: 0; padding-top: 12px; padding-bottom: 10px; background: #FDFAF5;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--adm-muted);
}
.adm-row--head:hover { background: #FDFAF5; }
.adm-row__check { display: grid; place-items: center; cursor: pointer; }
.adm-row__check input, .adm-tile__check input { width: 16px; height: 16px; accent-color: var(--sa-navy); cursor: pointer; }
.adm-row__art img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; box-shadow: 0 5px 14px -8px rgba(74,7,16,.5); background: var(--adm-soft); }
.adm-row__main { min-width: 0; }
.adm-row__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-row__link { font-family: var(--sa-font-serif); font-size: 15.5px; color: var(--adm-head) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.adm-row__issue { color: var(--adm-bad-ink) !important; font-weight: 500; }
.adm-row__issue--warn { color: var(--adm-warn-ink) !important; }
.adm-row__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.adm-row__main small { display: block; font-size: 12.5px; color: var(--adm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.adm-row__who { display: inline-flex; align-items: center; gap: 5px; color: var(--adm-ink); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.adm-row__who .ic { width: 15px; height: 15px; color: var(--adm-muted); }
.adm-row__len, .adm-row__when { font-size: 13.5px; color: var(--adm-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-row__live { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.adm-row__livelabel { font-size: 13px; font-weight: 500; color: var(--adm-muted); }
.adm-row__live input:checked ~ .adm-row__livelabel { color: var(--adm-live); }

/* A real switch built on a checkbox (keyboard & screen-reader native). */
.adm-row__live input, .adm-switch input { position: absolute; opacity: 0; width: 38px; height: 22px; margin: 0; cursor: pointer; }
.adm-switch__track {
  position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--adm-line-strong);
  transition: background .18s;
}
.adm-switch__track i {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s var(--sa-ease);
}
input:checked + .adm-switch__track { background: var(--adm-live); }
input:checked + .adm-switch__track i { transform: translateX(16px); }
input:focus-visible + .adm-switch__track { box-shadow: var(--adm-ring); outline: 2px solid var(--sa-ocean); outline-offset: 2px; }
input:disabled + .adm-switch__track { opacity: .5; }

/* Covers view */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 24px 20px; }
.adm-tile { position: relative; }
.adm-tile__art { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: var(--cover-shadow); background: var(--adm-soft); transition: transform .2s var(--sa-ease); }
.adm-tile__art:hover { transform: translateY(-2px); }
.adm-tile__art img { width: 100%; height: 100%; object-fit: cover; }
.adm-tile__draft {
  position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: rgba(58, 36, 39, .78); color: #fff; backdrop-filter: blur(6px);
}
.adm-tile__issue { position: absolute; right: 8px; top: 8px; }
.adm-tile__check { position: absolute; right: 10px; bottom: 74px; opacity: 0; transition: opacity .15s; }
.adm-tile:hover .adm-tile__check, .adm-tile.is-selected .adm-tile__check, .adm-tile__check:focus-within { opacity: 1; }
.adm-tile.is-selected .adm-tile__art { box-shadow: 0 0 0 3px var(--sa-navy), var(--cover-shadow); }
.adm-tile__title { display: block; font-family: var(--sa-font-serif); font-weight: 400; font-size: 15px; color: var(--adm-head); margin: 11px 0 6px; line-height: 1.3; }

/* Bulk bar */
.adm-bulk {
  position: fixed; left: calc(var(--sb-w) + (100vw - var(--sb-w)) / 2); bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--sa-navy); color: var(--sa-cream); box-shadow: 0 18px 40px -12px rgba(74, 7, 16, .55); z-index: 30;
  animation: adm-rise .22s var(--sa-ease);
}
.adm-bulk[hidden] { display: none; }
.adm-bulk__n { margin-right: 6px; white-space: nowrap; }
.adm-bulk__sep { width: 1px; height: 22px; background: rgba(251,243,228,.2); margin: 0 4px; }
.adm-bulk__lbl { font-size: 13px; color: var(--sa-mist); }
.adm-bulk__clear { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--sa-cream); }
.adm-bulk__clear:hover { background: rgba(251,243,228,.14); }
.adm-bulk__clear .ic { width: 18px; height: 18px; }
@keyframes adm-rise { from { opacity: 0; transform: translate(-50%, 12px); } }
.adm-skipped { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }

/* Menu */
.adm-menu {
  position: fixed; z-index: 80; min-width: 210px; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(58, 36, 39, .35), 0 0 0 1px rgba(58, 36, 39, .07); animation: adm-pop .12s ease-out;
}
.adm-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px;
  border-radius: 8px; color: var(--adm-ink); font-size: 14px; text-align: left;
}
.adm-menu button .ic { width: 17px; height: 17px; color: var(--adm-muted); }
.adm-menu button:hover, .adm-menu button:focus-visible { background: var(--adm-soft); outline: none; }
.adm-menu button.is-danger { color: var(--adm-bad-ink); }
.adm-menu button.is-danger .ic { color: var(--adm-bad); }
.adm-menu__sep { height: 1px; background: var(--adm-line); margin: 5px 4px; }
@keyframes adm-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---- Modal & palette ------------------------------------------------------------ */
.adm-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.adm-modal__scrim { position: absolute; inset: 0; background: rgba(42, 10, 16, .42); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s; }
.adm-modal.is-open .adm-modal__scrim { opacity: 1; }
.adm-modal__card {
  position: relative; width: min(460px, 100%); background: #fff; border-radius: 20px; padding: 24px 24px 20px;
  box-shadow: 0 30px 70px -20px rgba(42, 10, 16, .5); color: var(--adm-ink);
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .16s, transform .16s var(--sa-ease);
}
.adm-modal.is-open .adm-modal__card, .adm-modal.is-open .adm-palette__card, .adm-modal.is-open .adm-picker__card { opacity: 1; transform: none; }
.adm-modal__card h2 { font-family: var(--sa-font-serif); font-weight: 400; font-size: 22px; color: var(--adm-head); margin: 0 0 10px; }
.adm-modal__body { font-size: 14.5px; line-height: 1.6; }
.adm-modal__body p { margin: 0 0 10px; }
.adm-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.adm-palette { place-items: start center; padding-top: 11vh; }
.adm-palette__card {
  position: relative; width: min(640px, 100%); background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(42, 10, 16, .55), 0 0 0 1px rgba(58,36,39,.06);
  opacity: 0; transform: translateY(-6px) scale(.985); transition: opacity .14s, transform .14s var(--sa-ease);
}
.adm-palette__search { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 18px; height: 60px; border-bottom: 1px solid var(--adm-line); }
.adm-palette__search .ic { width: 20px; height: 20px; color: var(--adm-muted); }
.adm-palette__search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--adm-ink); background: none; }
.adm-palette__list { max-height: min(56vh, 480px); overflow-y: auto; padding: 6px 8px 8px; }
.adm-palette__group { padding: 12px 10px 5px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--adm-muted); }
.adm-palette__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.adm-palette__item.is-active { background: var(--adm-soft); box-shadow: inset 3px 0 0 var(--sa-navy); }
.adm-palette__ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--adm-soft); color: var(--sa-bronze); flex: none; }
.adm-palette__item.is-active .adm-palette__ic { background: #fff; }
.adm-palette__ic .ic { width: 18px; height: 18px; }
.adm-palette__art { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.adm-palette__label { flex: 1; min-width: 0; }
.adm-palette__label b { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-palette__label small { display: block; font-size: 12.5px; color: var(--adm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-palette__meta { display: flex; gap: 5px; flex: none; }
.adm-palette__keys { display: flex; gap: 3px; flex: none; }
.adm-palette__none { padding: 34px; text-align: center; color: var(--adm-muted); }
.adm-palette__foot { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--adm-line); font-size: 12px; color: var(--adm-muted); background: #FDFAF5; }
.adm-palette__foot span { display: inline-flex; align-items: center; gap: 4px; }
.adm-palette__hint { margin-left: auto; }

.adm-keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 4px 0 0; align-items: center; }
.adm-keys dt { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.adm-keys dt span { font-size: 11.5px; color: var(--adm-muted); margin: 0 2px; }
.adm-keys dd { margin: 0; font-size: 14px; }

/* ---- Picker ---------------------------------------------------------------------- */
.adm-picker__card {
  position: relative; width: min(680px, 100%); max-height: min(84vh, 760px); display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(42, 10, 16, .5); color: var(--adm-ink);
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .16s, transform .16s var(--sa-ease);
}
.adm-picker__head { display: flex; justify-content: space-between; gap: 12px; padding: 22px 22px 8px; }
.adm-picker__head h2 { font-family: var(--sa-font-serif); font-weight: 400; font-size: 22px; color: var(--adm-head); margin: 0 0 2px; }
.adm-picker__head p { margin: 0; font-size: 13.5px; }
.adm-picker__bar { display: flex; gap: 10px; align-items: center; padding: 10px 22px; }
.adm-picker__progress { margin: 0 22px 8px; font-size: 13px; color: var(--adm-muted); }
.adm-picker__progress div, .adm-media__prog { height: 5px; border-radius: 999px; background: var(--adm-line); overflow: hidden; margin-top: 6px; }
.adm-picker__progress i, .adm-media__prog i { display: block; height: 100%; width: 0; background: var(--sa-navy); border-radius: 999px; transition: width .15s; }
.adm-picker__crumb { display: flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 13px; color: var(--adm-muted); }
.adm-picker__crumb:empty { display: none; }
.adm-picker__crumb button { display: inline-flex; align-items: center; color: var(--sa-deep); font-weight: 500; }
.adm-picker__crumb .ic { width: 16px; height: 16px; }
.adm-picker__list { flex: 1; overflow-y: auto; padding: 6px 14px 10px; min-height: 220px; border-radius: 12px; margin: 0 8px; }
.adm-picker__list.is-drop { outline: 2px dashed var(--sa-ocean); outline-offset: -4px; background: var(--adm-soft); }
.adm-picker__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
.adm-picker__item:hover, .adm-picker__item:focus-visible { background: var(--adm-soft); }
.adm-picker__item > .ic { width: 16px; height: 16px; color: var(--adm-muted); }
.adm-picker__thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--adm-soft); color: var(--sa-bronze); }
.adm-picker__thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-picker__thumb .ic { width: 20px; height: 20px; }
.adm-picker__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.adm-picker__current { font-size: 11.5px; font-weight: 600; color: var(--adm-live); background: #EAF4EE; padding: 2px 8px; border-radius: 999px; }
.adm-picker__size { font-size: 12.5px; color: var(--adm-muted); font-variant-numeric: tabular-nums; }
.adm-picker__empty, .adm-picker__loading { text-align: center; padding: 50px 20px; color: var(--adm-muted); }
.adm-picker__empty .ic { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--sa-bronze); }
.adm-picker__note { margin: 0; padding: 8px 22px 18px; font-size: 13px; color: var(--adm-bad-ink); min-height: 1em; }

/* ---- Editor --------------------------------------------------------------------- */
.adm-crumbs { padding-top: 22px; }
.adm-crumbs a { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 500; color: var(--adm-muted) !important; padding: 6px 8px 6px 2px; border-radius: 8px; }
.adm-crumbs a:hover { color: var(--adm-head) !important; }
.adm-crumbs .ic { width: 18px; height: 18px; }
.adm-ehead, .adm-phead { display: flex; align-items: center; gap: 20px; padding: 10px 0 24px; }
.adm-ehead__art { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex: none; box-shadow: var(--cover-shadow); background: var(--adm-soft); }
.adm-ehead__art img { width: 100%; height: 100%; object-fit: cover; }
.adm-ehead__text { flex: 1; min-width: 0; }
.adm-ehead__text .adm-title { font-size: 30px; overflow-wrap: anywhere; }
.adm-ehead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--adm-muted); }
.adm-ehead__actions { display: flex; gap: 10px; align-items: center; flex: none; }

.adm-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.adm-editor__main, .adm-editor__side { display: grid; gap: 20px; min-width: 0; }

.adm-sec { padding: 22px 24px 24px; scroll-margin-top: 20px; }
.adm-sec__h { margin-bottom: 16px; }
.adm-sec__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.adm-sec__row .adm-sec__h { margin: 0; }
.adm-sec__note { font-size: 12.5px; color: var(--adm-muted); }
.adm-sec__tools { display: flex; gap: 8px; }
.adm-sec.is-flash, .adm-media.is-flash { animation: adm-flash 1.6s ease-out; }
@keyframes adm-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--adm-warn), var(--adm-shadow); } }
.adm-divider { height: 1px; background: var(--adm-line); margin: 16px 0 6px; }

.adm-field { margin-bottom: 16px; }
.adm-field:last-child { margin-bottom: 0; }
.adm-field__label { display: block; font-size: 13px; font-weight: 600; color: var(--adm-ink); margin-bottom: 6px; }
.adm-field input:not([type=checkbox]):not([type=radio]), .adm-field textarea, .adm-grant-add input, .adm-media__adv input, .adm-paste textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; border: 1.5px solid var(--adm-line-strong);
  background: #fff; font: inherit; font-size: 15px; color: var(--adm-ink); transition: border-color .15s, box-shadow .15s;
}
.adm-field textarea, .adm-paste textarea { height: auto; padding: 11px 13px; line-height: 1.55; resize: vertical; min-height: 120px; }
.adm-field input:focus, .adm-field textarea:focus, .adm-grant-add input:focus, .adm-media__adv input:focus, .adm-paste textarea:focus {
  outline: none; border-color: var(--sa-ocean); box-shadow: var(--adm-ring);
}
.adm-field input[readonly] { background: var(--adm-soft); color: var(--adm-muted); }
.adm-field__hint { font-size: 12.5px; color: var(--adm-muted); margin-top: 6px; line-height: 1.45; }
.adm-field__err { font-size: 13px; color: var(--adm-bad-ink); margin-top: 6px; font-weight: 500; }
.adm-field.is-bad input, .adm-field.is-bad textarea, .adm-field.is-bad .adm-prefix { border-color: var(--adm-bad) !important; }
.adm-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.adm-2col--tight { margin-top: 18px; max-width: 420px; grid-template-columns: 1fr; }

.adm-prefix { display: flex; align-items: center; border: 1.5px solid var(--adm-line-strong); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.adm-prefix:focus-within { border-color: var(--sa-ocean); box-shadow: var(--adm-ring); }
.adm-prefix > span { padding: 0 0 0 13px; color: var(--adm-muted); font-size: 14.5px; white-space: nowrap; }
.adm-field .adm-prefix input { border: 0 !important; box-shadow: none !important; padding-left: 3px; background: transparent; }
.adm-prefix--ro { background: var(--adm-soft); }
.adm-prefix--ro .adm-iconbtn { margin-right: 4px; }

.adm-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px;
  border: 1.5px solid var(--adm-line-strong); border-radius: 10px; background: #fff; cursor: text;
}
.adm-tags:focus-within { border-color: var(--sa-ocean); box-shadow: var(--adm-ring); }
.adm-tags #tagList { display: contents; }
.adm-field .adm-tags input { flex: 1; min-width: 160px; height: 30px !important; border: 0 !important; box-shadow: none !important; padding: 0 4px !important; }
.adm-tag { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 11px; border-radius: 999px; background: var(--adm-paid-tint); color: var(--adm-ink); font-size: 13.5px; font-weight: 500; }
.adm-tag button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--adm-muted); }
.adm-tag button:hover { background: rgba(112,12,24,.1); color: var(--adm-head); }
.adm-tag .ic { width: 13px; height: 13px; }

.adm-issuesbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin: -8px 0 20px;
  border-radius: 14px; background: var(--adm-warn-tint); color: var(--adm-warn-ink); font-size: 13.5px;
}
.adm-issuesbar > .ic { width: 18px; height: 18px; color: var(--adm-warn); }
.adm-issuesbar a.adm-chip { background: #fff; text-decoration: none; }
.adm-issuesbar a.adm-chip:hover { box-shadow: inset 0 0 0 1px currentColor; }
.adm-refunded { color: var(--adm-warn-ink); font-weight: 600; }

/* Media tiles */
.adm-media-grid { display: grid; gap: 12px; }
.adm-media {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 14px; border-radius: 14px; border: 1.5px solid var(--adm-line); background: #fff;
  transition: border-color .15s, background .15s; scroll-margin-top: 20px;
}
.adm-media.is-drop { border-style: dashed; border-color: var(--sa-ocean); background: var(--adm-soft); }
.adm-media.is-missing { border-color: #F2C3B3; background: #FFFBF9; }
.adm-media.is-uploading { background: var(--adm-soft); }
.adm-media__preview { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--adm-soft); display: grid; place-items: center; }
.adm-media__preview img { width: 100%; height: 100%; object-fit: cover; }
.adm-media__glyph { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sa-bronze); box-shadow: 0 4px 12px -6px rgba(74,7,16,.4); }
.adm-media__glyph .ic { width: 22px; height: 22px; }
.adm-media.is-empty .adm-media__glyph { background: transparent; box-shadow: inset 0 0 0 1.5px var(--adm-line-strong); color: var(--adm-muted); }
.adm-media__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-media__top b { font-weight: 600; font-size: 14.5px; }
.adm-media__file { font-size: 13.5px; margin: 3px 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--adm-ink); }
.adm-media__file.is-hint { font-family: inherit; font-size: 13px; color: var(--adm-muted); white-space: normal; }
.adm-media__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-media__adv { margin-top: 10px; font-size: 12.5px; color: var(--adm-muted); }
.adm-media__adv summary { cursor: pointer; width: max-content; }
.adm-media__adv input { height: 38px !important; font-size: 13px !important; margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace !important; }
.adm-media__player:not(:empty) { margin-top: 10px; }
.adm-media__player audio { width: 100%; height: 40px; }
.adm-media__player video { width: 100%; max-height: 260px; border-radius: 10px; background: #000; }
.adm-mstat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--adm-muted); white-space: nowrap; }
.adm-mstat .ic { width: 14px; height: 14px; }
.adm-mstat--ok { color: var(--adm-live); }
.adm-mstat--bad { color: var(--adm-bad-ink); }
.adm-mstat--warn { color: var(--adm-warn-ink); }
.adm-mstat--none { color: var(--adm-muted); font-weight: 400; }

/* Chapters */
.adm-chapters { display: grid; gap: 6px; }
.adm-ch { display: grid; grid-template-columns: 26px minmax(0, 1fr) 96px 58px auto; gap: 8px; align-items: center; padding: 4px; border-radius: 10px; }
.adm-ch.is-bad { background: var(--adm-bad-tint); }
.adm-ch__n { text-align: center; font-size: 13px; color: var(--adm-muted); font-variant-numeric: tabular-nums; }
.adm-ch input { height: 40px; padding: 0 11px; border-radius: 9px; border: 1.5px solid var(--adm-line); font: inherit; font-size: 14.5px; color: var(--adm-ink); background: #fff; width: 100%; }
.adm-ch input:focus { outline: none; border-color: var(--sa-ocean); box-shadow: var(--adm-ring); }
.adm-ch__start { font-variant-numeric: tabular-nums; text-align: right; }
.adm-ch__len { font-size: 12.5px; color: var(--adm-muted); font-variant-numeric: tabular-nums; text-align: right; }
.adm-ch__tools { display: flex; }
.adm-ch__tools .adm-iconbtn { width: 30px; height: 30px; }
.adm-ch__tools .ic { width: 16px; height: 16px; }
.adm-chapters__empty { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--adm-soft); color: var(--adm-muted); font-size: 13.5px; line-height: 1.55; }
.adm-chapters__empty .ic { width: 22px; height: 22px; flex: none; color: var(--sa-bronze); }
.adm-chapters__empty p { margin: 0; }
.adm-paste { padding: 16px; margin-bottom: 14px; border-radius: 12px; background: var(--adm-soft); }
.adm-paste label { font-size: 13px; font-weight: 600; }
.adm-paste__eg { margin: 6px 0 10px; font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--adm-muted); white-space: pre-wrap; }
.adm-paste textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; min-height: 130px; }
.adm-paste__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.adm-paste__foot > span:last-child { display: flex; gap: 8px; }
.adm-help { margin-top: 14px; font-size: 13px; color: var(--adm-muted); }
.adm-help summary { cursor: pointer; width: max-content; font-weight: 500; }
.adm-help p { margin: 8px 0 0; line-height: 1.6; }

/* Access selector */
.adm-access { display: grid; gap: 8px; }
.adm-access__opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--adm-line); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.adm-access__opt:hover { border-color: var(--adm-line-strong); background: #FFFCF8; }
.adm-access__opt input { position: absolute; opacity: 0; pointer-events: none; }
.adm-access__opt.is-on { border-color: var(--sa-navy); background: #FFFAF6; box-shadow: 0 0 0 1px var(--sa-navy); }
.adm-access__opt:focus-within { box-shadow: var(--adm-ring); }
.adm-access__opt.is-on:focus-within { box-shadow: 0 0 0 1px var(--sa-navy), var(--adm-ring); }
.adm-access__opt.is-disabled { opacity: .5; cursor: not-allowed; }
.adm-access__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.adm-access__ic .ic { width: 18px; height: 18px; }
.adm-access__opt--free .adm-access__ic { background: var(--adm-free-tint); color: var(--adm-free); }
.adm-access__opt--paid .adm-access__ic { background: var(--adm-paid-tint); color: var(--adm-paid); }
.adm-access__opt--private .adm-access__ic { background: var(--adm-private-tint); color: var(--adm-private); }
.adm-access__opt--unlisted .adm-access__ic { background: var(--adm-unlisted-tint); color: var(--adm-unlisted); }
.adm-access__txt b { display: block; font-weight: 600; font-size: 14.5px; }
.adm-access__txt small { display: block; font-size: 12.5px; color: var(--adm-muted); }
.adm-access__opt.is-on::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--sa-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%23FBF3E4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.adm-price { margin-top: 14px; }
.adm-price .adm-field { margin: 0; }

.adm-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; }
.adm-switch__txt b { display: block; font-weight: 600; font-size: 14.5px; }
.adm-switch__txt small { display: block; font-size: 12.5px; color: var(--adm-muted); }
.adm-switch input { right: 0; }
.adm-explain { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--adm-ink); margin: 6px 0 10px; padding: 11px 12px; border-radius: 10px; background: var(--adm-soft); }
.adm-explain .ic { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--sa-bronze); }
.adm-explain a { color: var(--sa-deep) !important; text-decoration: underline; text-underline-offset: 2px; }
#featWrap { border-top: 1px solid var(--adm-line); }

/* Store preview */
.adm-prev { width: 168px; margin: 0 auto; transition: opacity .2s; }
.adm-prev.is-hidden { opacity: .45; filter: grayscale(.4); }
.adm-prev__cov { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: var(--cover-shadow); }
.adm-prev__cov img { width: 100%; height: 100%; object-fit: cover; }
.adm-prev b { display: block; font-family: var(--sa-font-serif); font-weight: 400; font-size: 15px; color: var(--adm-head); margin: 12px 0 5px; line-height: 1.3; }
.adm-prev__meta { font-size: 12.5px; color: var(--adm-muted); }
.adm-prev__note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 13px; color: var(--adm-muted); line-height: 1.5; }
.adm-prev__note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--sa-bronze); }

/* Grants & combobox */
.adm-grant-add { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.adm-grant-add input { height: 38px !important; font-size: 14px !important; }
.adm-grant-add--wide { margin-bottom: 14px; }
.adm-combo { position: relative; flex: 1; min-width: 0; }
.adm-combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(58,36,39,.35), 0 0 0 1px rgba(58,36,39,.07); max-height: 320px; overflow-y: auto;
}
.adm-combo__opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.adm-combo__txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-combo__txt small { display: block; font-size: 12px; color: var(--adm-muted); }
.adm-combo__opt > small { color: var(--adm-muted); font-size: 12px; }
.adm-combo__opt.is-active { background: var(--adm-soft); }
.adm-combo__opt.is-disabled { opacity: .55; cursor: default; }
.adm-combo__opt img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.adm-combo__foot { padding: 8px 8px 4px; font-size: 12px; color: var(--adm-muted); border-top: 1px solid var(--adm-line); margin-top: 4px; }
.adm-grants, .adm-lib { list-style: none; margin: 4px 0 0; padding: 0; }
.adm-grants li, .adm-lib li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--adm-line); }
.adm-grants li:first-child, .adm-lib li:first-child { border-top: 0; }
.adm-grants li.is-revoked, .adm-lib li.is-revoked { opacity: .55; }
.adm-grants__who, .adm-lib__main { flex: 1; min-width: 0; }
.adm-grants__who a, .adm-lib__main a { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-grants__who a:hover, .adm-lib__main a:hover { color: var(--sa-deep) !important; text-decoration: underline; }
.adm-grants__who small, .adm-lib__main small { display: block; font-size: 12px; color: var(--adm-muted); margin-top: 1px; }
.adm-grants__empty { color: var(--adm-muted); font-size: 13.5px; justify-content: center; padding: 18px 0 !important; }
.adm-lib img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.adm-lib__pills { flex: none; }
.adm-src { font-weight: 600; }
.adm-src--purchase { color: var(--adm-paid); }
.adm-src--admin, .adm-src--gift, .adm-src--promo { color: var(--adm-private); }
.adm-src--free_claim { color: var(--adm-free); }
.adm-src--link { color: var(--adm-head); }

/* Status bar — "Saving… / Saved · Undo / Not saved yet". One bar for the
   whole back office (it lives on <body>, so it outlasts a screen's render). */
.adm-snack {
  position: fixed; z-index: 70; left: calc(var(--sb-w) + (100vw - var(--sb-w)) / 2); bottom: 22px;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: min(640px, calc(100vw - var(--sb-w) - 48px));
  padding: 10px 10px 10px 16px; border-radius: 999px; min-height: 48px;
  background: var(--sa-navy); color: var(--sa-cream); font-size: 14.5px;
  box-shadow: 0 18px 44px -14px rgba(74, 7, 16, .6);
  transition: transform .22s var(--sa-ease), opacity .22s;
}
.adm-snack.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.adm-snack__ic { display: grid; place-items: center; flex: none; color: var(--sa-straw); }
.adm-snack__ic .ic { width: 18px; height: 18px; }
.adm-snack__text { flex: 1; min-width: 0; line-height: 1.35; }
.adm-snack__text b { font-weight: 600; }
.adm-snack__btn {
  flex: none; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  background: var(--sa-cream); color: var(--sa-navy);
}
.adm-snack__btn:hover { background: #fff; }
.adm-snack__btn:disabled { opacity: .6; }
.adm-snack:not(:has(.adm-snack__btn)) { padding-right: 20px; }
.adm-snack--warn { background: #3A2427; }
.adm-snack--warn .adm-snack__ic { color: #F5C26B; }
.adm-snack--error { background: #7C2A0E; }
.adm-snack--error .adm-snack__ic { color: #FFD2C2; }
body:not(.no-mini) .adm-snack { bottom: calc(var(--mini-h) + 16px); }

/* ---- People / orders tables ------------------------------------------------------- */
.adm-prow {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 70px 70px 90px 110px 18px; gap: 14px; align-items: center;
  padding: 11px 18px; border-top: 1px solid var(--adm-line); transition: background .12s;
}
a.adm-prow:hover { background: var(--adm-soft); }
.adm-prow > .ic { width: 16px; height: 16px; color: var(--adm-muted); }
.adm-prow--head { border-top: 0; background: #FDFAF5; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--adm-muted); padding-top: 12px; padding-bottom: 10px; }
.adm-prow__main { min-width: 0; display: flex; align-items: center; gap: 8px; }
.adm-prow__main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-prow__n, .adm-prow__when { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.adm-prow__when { color: var(--adm-muted); }
.adm-orow {
  display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr) 100px 90px; gap: 14px; align-items: center;
  padding: 11px 18px; border-top: 1px solid var(--adm-line);
}
.adm-orow--head { border-top: 0; background: #FDFAF5; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--adm-muted); padding-top: 12px; padding-bottom: 10px; }
.adm-orow__when { font-size: 13.5px; color: var(--adm-muted); }
.adm-orow__who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.adm-orow__who a, .adm-orow__title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-orow a:hover { color: var(--sa-deep) !important; text-decoration: underline; }
.adm-orow__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-ostat { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; background: var(--adm-soft); color: var(--adm-ink); }
.adm-ostat--paid { background: #EAF4EE; color: #1F6B41; }
.adm-ostat--refunded { background: var(--adm-warn-tint); color: var(--adm-warn-ink); }
.adm-ostat--failed { background: var(--adm-bad-tint); color: var(--adm-bad-ink); }
.adm-stat--static { cursor: default; }

/* ---- Groups -------------------------------------------------------------------- */
.adm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.adm-group {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--adm-radius);
  background: var(--adm-card); box-shadow: var(--adm-shadow); color: var(--adm-ink) !important;
  transition: box-shadow .15s, transform .15s;
}
.adm-group:hover { box-shadow: var(--adm-shadow-lift); transform: translateY(-1px); }
.adm-group:focus-visible { outline: none; box-shadow: var(--adm-shadow-lift), var(--adm-ring); }
.adm-group__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-group__head b { font: 400 21px/1.25 var(--sa-font-serif); color: var(--adm-head); overflow-wrap: anywhere; }
.adm-group__head .ic { width: 16px; height: 16px; color: var(--adm-muted); flex: none; }
.adm-group__desc { font-size: 13.5px; color: var(--adm-muted); line-height: 1.45; }
.adm-group__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--adm-muted); }
.adm-faces { display: inline-flex; }
.adm-faces:empty { display: none; }
.adm-faces > * { margin-left: -7px; box-shadow: 0 0 0 2px var(--adm-card); }
.adm-faces > :first-child { margin-left: 0; }
.adm-faces--art img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.adm-newgroup { padding: 18px 20px; margin-bottom: 18px; }
.adm-newgroup .adm-field__label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; color: var(--adm-head); }
.adm-newgroup .adm-grant-add input { flex: 1; min-width: 0; }
.adm-explainer { max-width: 620px; margin: 8px auto 0; padding: 34px 32px 30px; text-align: center; }
.adm-explainer h3 { font: 400 23px/1.3 var(--sa-font-serif); color: var(--adm-head); margin: 0 0 10px; }
.adm-explainer p { margin: 0 auto 12px; max-width: 480px; font-size: 14.5px; line-height: 1.6; }
.adm-explainer .adm-btn { margin-top: 8px; }

.adm-ghead { display: flex; align-items: center; gap: 18px; padding: 10px 0 18px; }
.adm-ghead__ic {
  width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center;
  background: var(--adm-card); box-shadow: var(--adm-shadow); color: var(--sa-bronze);
}
.adm-ghead__ic .ic { width: 30px; height: 30px; }
.adm-ghead__text { flex: 1; min-width: 0; }
.adm-ghead__actions { flex: none; }
/* Name and description edit in place: they read as a heading until you click. */
.adm-title-input, .adm-sub-input {
  display: block; width: 100%; border: 0; background: transparent; border-radius: 8px;
  margin-left: -6px; padding: 2px 6px; transition: background .15s, box-shadow .15s;
}
.adm-title-input { font-size: 30px; }
.adm-sub-input { font-size: 14.5px; color: var(--adm-muted); margin-top: 4px; }
.adm-title-input:hover, .adm-sub-input:hover { background: rgba(255, 255, 255, .6); }
.adm-title-input:focus, .adm-sub-input:focus { outline: none; background: var(--adm-card); box-shadow: var(--adm-ring); }
.adm-sub-input::placeholder { color: var(--adm-muted); opacity: .75; }
.adm-explain--wide { margin: 0 0 20px; background: var(--adm-card); box-shadow: inset 0 0 0 1px var(--adm-line); }
.adm-grid--group { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.adm-grid--group .adm-combo { flex: 1; }

.adm-gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-gchips__none { margin: 0; font-size: 13.5px; line-height: 1.5; }
.adm-gchips__none a { color: var(--sa-deep) !important; text-decoration: underline; text-underline-offset: 2px; }
.adm-gchip {
  display: inline-flex; align-items: center; height: 32px; border-radius: 999px;
  background: var(--adm-soft); box-shadow: inset 0 0 0 1px var(--adm-line-strong); font-size: 13.5px; font-weight: 500;
}
.adm-gchip a { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 4px 0 11px; color: var(--adm-head) !important; border-radius: 999px 0 0 999px; }
.adm-gchip a:hover { text-decoration: underline; text-underline-offset: 2px; }
.adm-gchip a .ic { width: 15px; height: 15px; color: var(--sa-bronze); }
.adm-gchip a small { font-size: 12px; font-weight: 500; color: var(--adm-muted); font-variant-numeric: tabular-nums; }
.adm-gchip button { width: 28px; height: 28px; margin-right: 2px; border-radius: 50%; display: grid; place-items: center; color: var(--adm-muted); }
.adm-gchip button:hover { background: var(--adm-card); color: var(--adm-head); }
.adm-gchip button .ic { width: 14px; height: 14px; }
.adm-gchip--add { gap: 5px; padding: 0 12px 0 9px; background: transparent; box-shadow: inset 0 0 0 1px var(--adm-line-strong); color: var(--adm-muted) !important; border-style: dashed; }
.adm-gchip--add:hover { background: var(--adm-card); color: var(--adm-head) !important; }
.adm-gchip--add .ic { width: 15px; height: 15px; }
.adm-grouprow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.adm-grouprow__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--adm-muted); flex: none; }
.adm-badge--group { background: var(--adm-soft); box-shadow: inset 0 0 0 1px var(--adm-line); }
.adm-badge--group .ic { color: var(--sa-bronze); }
.adm-src--group { color: var(--adm-head); }
.adm-lib__main small a, .adm-grants__who small a {
  display: inline; font-size: inherit; font-weight: 600; white-space: normal; color: inherit !important;
  text-decoration: underline; text-decoration-color: var(--adm-line-strong); text-underline-offset: 2px;
}

/* ---- Responsive ---------------------------------------------------------------- */
@media (max-width: 1280px) {
  .adm-row { grid-template-columns: 22px 48px minmax(0, 1fr) 124px 56px 64px 112px 34px; }
  .adm-row > .adm-row__when, .adm-row--head > span:nth-child(7) { display: none; }
}
@media (max-width: 1100px) {
  .adm-editor { grid-template-columns: minmax(0, 1fr); }
  .adm-editor__side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .adm-grid, .adm-grid--person, .adm-grid--team, .adm-grid--group { grid-template-columns: minmax(0, 1fr); }
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .adm-snack { left: calc(var(--rail-w) + (100vw - var(--rail-w)) / 2); max-width: calc(100vw - var(--rail-w) - 40px); }
  .adm-bulk { left: calc(var(--rail-w) + (100vw - var(--rail-w)) / 2); }
  .adm-jump { min-width: 0; }
  .adm-jump span, .adm-jump .adm-kbd { display: none; }
  .adm-jump { width: 40px; padding: 0; justify-content: center; }
  .adm-row { grid-template-columns: 22px 48px minmax(0, 1fr) 124px 112px 34px; }
  .adm-row > .adm-row__who, .adm-row > .adm-row__len,
  .adm-row--head > span:nth-child(5), .adm-row--head > span:nth-child(6) { display: none; }
  .adm-prow { grid-template-columns: 36px minmax(0, 1fr) 60px 100px 18px; }
  .adm-prow > :nth-child(4), .adm-prow > :nth-child(5) { display: none; }
}
@media (max-width: 639px) {
  .adm { padding: 0 var(--gutter) 150px; }
  .adm-head { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 0 16px; }
  .adm-head__actions { justify-content: space-between; }
  .adm-title { font-size: 28px; }
  .adm-stats, .adm-stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adm-stat { padding: 14px 14px 12px; }
  .adm-stat__value { font-size: 26px; }
  .adm-stats--3 > :first-child { grid-column: 1 / -1; }
  .adm-covers--card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 4px 16px 18px; }
  .adm-cover__meta { display: none; }
  .adm-toolbar { flex-wrap: wrap; }
  .adm-search { max-width: none; flex-basis: 100%; }
  .adm-search__kbd { display: none; }
  .adm-toolbar__right { margin-left: 0; width: 100%; justify-content: space-between; }
  .adm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 0 var(--gutter); scrollbar-width: none; }
  .adm-chips::-webkit-scrollbar { display: none; }
  .adm-chipf { flex: none; }
  .adm-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .adm-row > .adm-row__check, .adm-row > .adm-row__access, .adm-row > [data-more], .adm-row--head { display: none; }
  .adm-row__art img { width: 44px; height: 44px; }
  .adm-row__livelabel { display: none; }
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .adm-tile__check { opacity: 1; }
  .adm-bulk {
    left: 12px; right: 12px; transform: none; bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
    border-radius: 18px; flex-wrap: wrap; justify-content: center;
  }
  .adm-snack {
    left: 12px; right: 12px; max-width: none; bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
    transform: translateY(160%); border-radius: 16px; font-size: 14px;
  }
  .adm-snack.is-shown { transform: none; }
  @keyframes adm-rise { from { opacity: 0; transform: translateY(12px); } }
  .adm-ehead, .adm-phead { flex-wrap: wrap; gap: 14px; }
  .adm-ghead { gap: 12px; align-items: flex-start; }
  .adm-ghead__ic { width: 48px; height: 48px; border-radius: 14px; }
  .adm-ghead__ic .ic { width: 24px; height: 24px; }
  .adm-title-input { font-size: 24px; }
  .adm-explainer { padding: 26px 18px 22px; }
  .adm-grouprow { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Library rows: the action drops under the title rather than crushing it. */
  .adm-lib li { flex-wrap: wrap; row-gap: 4px; }
  .adm-lib__main { flex: 1 1 140px; }
  .adm-lib li > .adm-btn { margin-left: 54px; }
  .adm-ehead__art { width: 60px; height: 60px; }
  .adm-ehead__text .adm-title { font-size: 24px; }
  .adm-ehead__actions { width: 100%; }
  .adm-2col { grid-template-columns: 1fr; }
  .adm-sec { padding: 18px 16px 20px; }
  .adm-media { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .adm-media__preview { width: 64px; height: 64px; }
  .adm-ch { grid-template-columns: 20px minmax(0, 1fr) 76px; }
  .adm-ch__len { display: none; }
  .adm-ch__tools { grid-column: 2 / -1; justify-content: flex-end; }
  .adm-editor__side { grid-template-columns: minmax(0, 1fr); }
  .adm-prow { grid-template-columns: 36px minmax(0, 1fr) 18px; }
  .adm-prow > :nth-child(3), .adm-prow > :nth-child(6), .adm-prow--head { display: none; }
  .adm-orow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .adm-orow--head { display: none; }
  .adm-orow__when { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  .adm-orow__title { grid-column: 1; grid-row: 1; font-weight: 500; }
  .adm-orow__who { display: none; }
  .adm-orow > :nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .adm-orow > .adm-num { grid-column: 2; grid-row: 1; }
  .adm-palette { padding: 10px; padding-top: 6vh; }
  .adm-card__head { flex-wrap: wrap; row-gap: 2px; }
  .adm-card__head .adm-card__meta:not(.adm-link) { flex-basis: 100%; }
  .adm-attn { padding: 0 4px 6px; }
  .adm-attn__row { grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 12px; padding: 10px; }
  .adm-attn__row img { width: 40px; height: 40px; }
  .adm-attn__go { font-size: 0; }
  .adm-attn__go .ic { width: 16px; height: 16px; }
  .adm-palette__hint, .adm-palette__meta { display: none; }
  .adm-picker__bar { flex-wrap: wrap; }
  .adm-picker__bar .adm-select { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .adm *, .adm-modal *, .adm-menu, .adm-bulk, .adm-snack { animation: none !important; transition: none !important; }
}

/* ---- Unlisted: the link panel (editor, Who can listen) ------------------- */
.adm-sharelink { margin: 14px 0 4px; padding: 14px; border-radius: 12px; background: var(--adm-unlisted-tint); }
.adm-sharelink__label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-bottom: 9px; color: var(--adm-head); }
.adm-sharelink__label .ic { width: 16px; height: 16px; color: var(--adm-unlisted); }
.adm-sharelink__label span { color: var(--adm-muted); font-weight: 500; }
.adm-sharelink__row { display: flex; gap: 8px; align-items: flex-start; }
.adm-sharelink__url {
  flex: 1; min-width: 0; min-height: 38px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--adm-line-strong);
  background: var(--adm-card); font: 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: var(--adm-ink);
  overflow-wrap: anywhere; user-select: all;
}
.adm-sharelink__url.is-pending { font-family: inherit; color: var(--adm-muted); font-style: italic; user-select: none; }
.adm-sharelink__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.adm-sharelink__tools .adm-btn--quiet { margin-left: auto; }

/* ---- Playlists -------------------------------------------------------------- */
.adm-plart { display: inline-block; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none;
  background: var(--adm-soft); box-shadow: var(--adm-shadow); }
.adm-plart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-plart--mosaic { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 1.5px; }
.adm-plart--head { width: 76px; height: 76px; border-radius: 14px; }
.adm-plart--sm { width: 56px; height: 56px; border-radius: 10px; box-shadow: none; }
.adm-plcard { flex-direction: row; align-items: flex-start; gap: 14px; }
.adm-plcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-plcard .adm-group__meta { margin-top: 2px; }
.adm-plitems { list-style: none; margin: 4px 0 0; padding: 0; }
.adm-plitems li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--adm-line); }
.adm-plitems li:first-child { border-top: 0; }
.adm-plitems img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.adm-plitems__n { width: 22px; text-align: center; font-size: 13px; color: var(--adm-muted); font-variant-numeric: tabular-nums; flex: none; }
.adm-plitems__move { display: flex; flex: none; }
.adm-plitems__move .adm-iconbtn { width: 30px; height: 30px; }
.adm-shelfchip { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--adm-card); color: var(--adm-muted); box-shadow: inset 0 0 0 1px var(--adm-line-strong); }
.adm-shelfchip:hover { color: var(--adm-head); box-shadow: inset 0 0 0 1px var(--adm-head); }
.adm-shelfchip.is-off { background: var(--adm-soft); color: var(--adm-head); box-shadow: inset 0 0 0 1px var(--sa-bronze); }
.adm-plcover { display: flex; align-items: flex-start; gap: 12px; }
@media (max-width: 639px) {
  .adm-plitems li { flex-wrap: wrap; row-gap: 6px; }
  .adm-plitems .adm-lib__main { flex: 1 1 140px; }
  .adm-plitems .adm-lib__pills { display: none; }
  .adm-shelfchip { margin-left: 76px; }
}

/* ---- Home videos --------------------------------------------------------------- */
.adm-hvadd { padding: 22px 24px 20px; margin-bottom: 26px; }
.adm-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 26px 18px; border-radius: 14px; border: 1.5px dashed var(--adm-line-strong); background: var(--adm-soft);
  transition: border-color .15s, background .15s; }
.adm-drop:hover, .adm-drop.is-over { border-color: var(--sa-navy); background: #FFF8F2; }
.adm-drop:focus-within { box-shadow: var(--adm-ring); }
.adm-drop__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--adm-card); color: var(--sa-bronze); box-shadow: var(--adm-shadow); }
.adm-drop__ic .ic { width: 22px; height: 22px; }
.adm-drop b { font-size: 15px; color: var(--adm-head); margin-top: 4px; }
.adm-drop small { font-size: 13px; color: var(--adm-muted); max-width: 440px; line-height: 1.45; }
.adm-hvset { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-end; margin: 18px 0 6px; }
.adm-hvset__item { display: flex; flex-direction: column; gap: 6px; }
.adm-hvset__item .adm-field__label { font-weight: 600; font-size: 13px; color: var(--adm-head); }
.adm-hvset__check { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.adm-hvset__check input { width: 18px; height: 18px; accent-color: var(--sa-navy); }
.adm-hvset__check b { display: block; font-size: 13.5px; color: var(--adm-head); }
.adm-hvset__check small { display: block; font-size: 12px; color: var(--adm-muted); }
.adm-seg--text button { width: auto; padding: 0 12px; display: inline-flex; gap: 6px; font-size: 13.5px; font-weight: 500; }
.adm-seg--text button .ic { width: 16px; height: 16px; }
.adm-seg--text button:disabled { opacity: .45; cursor: not-allowed; }
.adm-hvq { list-style: none; margin: 10px 0 0; padding: 0; }
.adm-hvq__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--adm-line); }
.adm-hvq__thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--adm-soft); color: var(--adm-muted); }
.adm-hvq__thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-hvq__thumb .ic { width: 22px; height: 22px; }
.adm-hvq__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-hvq__name { font-size: 12.5px; color: var(--adm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-hvq__when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.adm-hvq__when input { height: 34px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--adm-line-strong); font: inherit; font-size: 14px; color: var(--adm-ink); background: var(--adm-card); }
.adm-hvq__when input:focus { outline: none; box-shadow: var(--adm-ring); }
.adm-hvq__when small { font-size: 12px; color: var(--adm-muted); }
.adm-hvsrc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--adm-live); }
.adm-hvsrc .ic { width: 13px; height: 13px; }
.adm-hvsrc.is-guess { color: var(--adm-warn-ink); }
.adm-hvq__meta { font-size: 12px; color: var(--adm-muted); }
.adm-hvq__warn { display: flex; gap: 5px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--adm-warn-ink); }
.adm-hvq__warn .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--adm-warn); }
/* What the uploader will fix for the TV on its own (tv-prepare.js). */
.adm-hvq__fix { display: flex; gap: 5px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--adm-live); }
.adm-hvq__fix .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--adm-live); }
.adm-hvq__bar { display: block; height: 5px; border-radius: 3px; background: var(--adm-line); overflow: hidden; max-width: 320px; }
.adm-hvq__bar i { display: block; height: 100%; background: var(--sa-navy); transition: width .3s; }
.adm-hvq__state { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--adm-muted); }
.adm-hvq__done { display: inline-flex; align-items: center; gap: 4px; color: var(--adm-live) !important; font-weight: 600; }
.adm-hvq__done .ic { width: 15px; height: 15px; }
.adm-hvq__item.is-toobig { opacity: .7; }
.adm-hvbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px;
  border-radius: 14px; background: var(--adm-card); box-shadow: var(--adm-shadow-lift); }
.adm-hvbar > span { flex: 1; font-size: 13.5px; color: var(--adm-ink); }
.adm-hvempty { text-align: center; padding: 22px; }
.adm-hvyear { margin-bottom: 30px; }
.adm-hvyear__h { font: 400 26px/1.2 var(--sa-font-serif); color: var(--adm-head); margin: 0 0 4px; }
.adm-hvmonth { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-muted); margin: 18px 0 10px; }
.adm-hvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.adm-hvtile { display: flex; flex-direction: column; gap: 6px; color: var(--adm-ink) !important; }
.adm-hvtile__art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--adm-soft); box-shadow: var(--adm-shadow); }
.adm-hvtile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.adm-hvtile:hover .adm-hvtile__art img { transform: scale(1.03); }
.adm-hvtile:focus-visible .adm-hvtile__art { box-shadow: var(--adm-shadow), var(--adm-ring); }
.adm-hvtile__len { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: rgba(20, 4, 8, 0.72); color: #fff; font-variant-numeric: tabular-nums; }
.adm-hvtile__when { font-size: 13px; font-weight: 500; }
.adm-hvtile__pill { margin-top: -2px; }
.adm-chipf--link { text-decoration: none; }
.adm-filmed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-filmed input { height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--adm-line-strong); font: inherit; color: var(--adm-ink); background: var(--adm-card); }
.adm-filmed input:focus { outline: none; box-shadow: var(--adm-ring); }
.adm-filmed small { font-size: 12.5px; color: var(--adm-muted); }
@media (max-width: 639px) {
  .adm-hvadd { padding: 18px 16px; }
  .adm-hvq__item { flex-wrap: wrap; }
  .adm-hvq__thumb { width: 56px; height: 56px; }
  .adm-hvq__main { flex: 1 1 180px; }
  .adm-hvbar { flex-wrap: wrap; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); }
  .adm-hvbar > span { flex-basis: 100%; }
  .adm-hvbar .adm-btn { flex: 1; }
  .adm-hvq__when input { max-width: 100%; }
  .adm-hvgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.adm-hvq__item.is-badtype { opacity: .7; }

/* ---- Tags -------------------------------------------------------------------- */
.adm-tagpick { display: flex; flex-direction: column; gap: 8px; }
.adm-tagpick__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-tagpick__chips:empty { display: none; }
.adm-tagpick input { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--adm-line-strong); font: inherit; font-size: 14px; background: var(--adm-card); color: var(--adm-ink); }
.adm-tagpick input:focus { outline: none; box-shadow: var(--adm-ring); }
.adm-tagchip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px 0 9px; border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--adm-soft); color: var(--adm-head); box-shadow: inset 0 0 0 1px var(--adm-line-strong); }
.adm-combo__opt .adm-tagchip { padding-right: 10px; }
.adm-tagchip .ic { width: 14px; height: 14px; color: var(--sa-bronze); }
.adm-tagchip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--adm-muted); }
.adm-tagchip button:hover { background: var(--adm-card); color: var(--adm-head); }
.adm-tagchip button .ic { width: 12px; height: 12px; color: inherit; }
.adm-hvset__tags { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; max-width: 560px; }
.adm-hvset__tags .adm-field__label { font-weight: 600; font-size: 13px; color: var(--adm-head); }
.adm-hvlibbar { display: flex; justify-content: flex-end; margin: -6px 0 4px; }
.adm-hvsel { position: sticky; top: 10px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px;
  padding: 12px 14px; border-radius: 14px; background: var(--adm-card); box-shadow: var(--adm-shadow-lift); }
.adm-hvsel > span { font-size: 13.5px; font-weight: 500; color: var(--adm-head); }
.adm-hvsel #hvSelPick { flex: 1 1 260px; }
.adm-hvtile { position: relative; }
.adm-hvtile__check { position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: transparent; box-shadow: inset 0 0 0 1.5px var(--adm-line-strong); }
.adm-hvtile__check .ic { width: 15px; height: 15px; }
.adm-hvtile.is-picked .adm-hvtile__check { background: var(--sa-navy); color: var(--sa-cream); box-shadow: none; }
.adm-hvtile.is-picked .adm-hvtile__art { box-shadow: 0 0 0 3px var(--sa-navy); }
.adm-hvtile__tags { font-size: 12px; color: var(--adm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-hvtags { margin-top: 10px; }
.adm-hvtaggroup { margin-bottom: 14px; }
.adm-hvtaglist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.adm-hvtaglist li { display: flex; align-items: center; gap: 8px; }
.adm-hvtaglist input { flex: 1; min-width: 0; height: 34px; padding: 0 9px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 14px; background: transparent; color: var(--adm-ink); }
.adm-hvtaglist input:hover { border-color: var(--adm-line-strong); }
.adm-hvtaglist input:focus { outline: none; background: var(--adm-card); box-shadow: var(--adm-ring); }
.adm-hvtaglist small { font-size: 12px; color: var(--adm-muted); white-space: nowrap; }
