/* ==========================================================================
   KHHH member dashboard ("studio")
   Calm workspace: hairline borders, one accent, no gradients on controls.
   Brand signals kept on purpose: deep-purple rail, Anton artist name,
   vinyl-sleeve covers and the equaliser bars.
   ========================================================================== */

.studio-body {
  --st-rail: #1b0e20;
  --st-rail-text: rgba(255, 255, 255, 0.62);
  --st-card: #ffffff;
  --st-line: rgba(27, 14, 32, 0.1);
  --st-line-strong: rgba(27, 14, 32, 0.18);
  --st-accent: var(--crimson);
  --st-ok: #0d7a46;
  --st-rail-w: 248px;
  --st-tab-h: 64px;
  padding-top: 0;
  background: var(--paper);
  font-family: var(--font-body);
}
[data-theme="dark"] .studio-body {
  --st-card: #241530;
  --st-line: rgba(255, 255, 255, 0.09);
  --st-line-strong: rgba(255, 255, 255, 0.16);
  --st-ok: #4ec07f;
  background: #160b1b;
}

.studio-body svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.studio-kicker {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--st-accent);
}
.studio-muted { color: var(--text-muted); font-size: 0.875rem; }
.studio-optional { font-weight: 500; color: var(--text-dim); font-size: 0.78rem; margin-left: 4px; }
.studio-danger-text { color: var(--crimson-bright) !important; }

/* ---------- Equaliser bars (brand motif) ---------- */
.eq-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq-bars i { width: 3px; height: 30%; background: currentColor; border-radius: 1px; animation: st-eq 1.1s ease-in-out infinite; }
.eq-bars i:nth-child(2) { animation-delay: -0.3s; }
.eq-bars i:nth-child(3) { animation-delay: -0.6s; }
.eq-bars i:nth-child(4) { animation-delay: -0.15s; }
.eq-bars i:nth-child(5) { animation-delay: -0.45s; }
.eq-bars--lg { height: 34px; gap: 5px; color: var(--st-accent); }
.eq-bars--lg i { width: 5px; }
@keyframes st-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .eq-bars i { animation: none; height: 60%; } }

/* ---------- Gate ---------- */
.studio-gate {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 24px 16px;
  background: var(--st-rail); color: #fff;
}
.studio-gate[hidden] { display: none; }
.studio-gate__brand {
  position: absolute; top: 20px; left: 20px;
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-statement); letter-spacing: 0.06em; font-size: 1.1rem;
}
.studio-gate__brand img { border-radius: 8px; }
.studio-gate__card { max-width: 420px; text-align: center; }
.studio-gate__card[hidden] { display: none; }
.studio-gate__card h1 { font-family: var(--font-statement); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1; margin: 10px 0 12px; letter-spacing: 0.01em; }
.studio-gate__card p { color: rgba(255, 255, 255, 0.7); }
.studio-gate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.studio-gate .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* ---------- Shell ---------- */
.studio { min-height: 100vh; min-height: 100dvh; }
.studio[hidden] { display: none; }

.studio-rail {
  position: fixed; inset: 0 auto 0 0; width: var(--st-rail-w); z-index: 30;
  background: var(--st-rail); color: #fff;
  display: none; flex-direction: column; padding: 22px 14px;
}
.studio-rail__brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; color: #fff; }
.studio-rail__brand img { border-radius: 8px; }
.studio-rail__brand strong { display: block; font-family: var(--font-statement); font-weight: 400; letter-spacing: 0.08em; font-size: 1.05rem; line-height: 1; }
.studio-rail__brand small { display: block; font-size: 0.72rem; color: var(--st-rail-text); margin-top: 3px; }

.studio-nav { display: flex; flex-direction: column; gap: 2px; }
.studio-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 8px;
  color: var(--st-rail-text); font-size: 0.92rem; font-weight: 600; text-align: left;
  transition: background var(--dur), color var(--dur);
}
.studio-nav button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.studio-nav button.is-active { color: #fff; background: rgba(255, 255, 255, 0.09); box-shadow: inset 3px 0 0 var(--crimson-bright); }
.studio-rail__foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.studio-rail__public { font-size: 0.85rem; color: var(--st-rail-text); }
.studio-rail__public:hover { color: #fff; }

.studio-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--st-line);
}
[data-theme="dark"] .studio-top { background: color-mix(in srgb, #160b1b 88%, transparent); }
.studio-top__brand img { border-radius: 7px; display: block; }
.studio-top__title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; flex: 1; }
.studio-top__actions { display: flex; gap: 6px; align-items: center; }

.studio-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted);
}
.studio-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.studio-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep-purple); color: #fff; font-weight: 800; font-size: 0.85rem;
}

.studio-main {
  max-width: 960px; margin: 0 auto;
  padding: 20px 16px calc(var(--st-tab-h) + 32px + env(safe-area-inset-bottom));
  outline: none;
}
.studio-section[hidden] { display: none; }
.studio-section { animation: st-in 220ms var(--ease); }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.studio-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.studio-section__head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }

.studio-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--st-tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--st-card); border-top: 1px solid var(--st-line);
}
.studio-tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 0.68rem; font-weight: 700; color: var(--text-dim);
}
.studio-tabbar button.is-active { color: var(--st-accent); }

@media (min-width: 960px) {
  .studio-rail { display: flex; }
  .studio-top, .studio-main { margin-left: var(--st-rail-w); }
  .studio-main { max-width: none; padding: 28px clamp(24px, 4vw, 56px) 64px; }
  .studio-main > .studio-section { max-width: 920px; }
  .studio-top { padding: 0 clamp(24px, 4vw, 56px); }
  .studio-top__brand { display: none; }
  .studio-tabbar { display: none; }
}

/* ---------- Cards, forms ---------- */
.studio-card {
  background: var(--st-card); border: 1px solid var(--st-line); border-radius: 14px;
  padding: 18px; margin-bottom: 16px;
}
@media (min-width: 640px) { .studio-card { padding: 22px 24px; } }
.studio-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.studio-card__head h3 { font-size: 1rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }

.studio-grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .studio-grid-2 { grid-template-columns: 1fr 1fr; } }
.studio-body .field { margin-bottom: 14px; }
.studio-body .field label, .studio-fieldset legend { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.studio-body .input { background: var(--bg-2); border-radius: 10px; }
[data-theme="dark"] .studio-body .input { background: rgba(255, 255, 255, 0.04); }
.studio-fieldset { border: 0; padding: 0; margin: 0 0 14px; }

.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-chip {
  padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--st-line-strong);
  font-size: 0.84rem; font-weight: 600; color: var(--text-muted); background: transparent;
}
.studio-chip[aria-pressed="true"] { border-color: var(--deep-purple); background: var(--deep-purple); color: #fff; }
.studio-chip[aria-pressed="true"].is-main { background: var(--st-accent); border-color: var(--st-accent); }

.studio-links { display: grid; gap: 10px; }
.studio-link-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.studio-link-row label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
@media (max-width: 479px) { .studio-link-row { grid-template-columns: 1fr; gap: 4px; } }

.studio-savebar {
  position: sticky; bottom: calc(var(--st-tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 14px;
  background: var(--st-card); border: 1px solid var(--st-line-strong);
  box-shadow: 0 10px 30px rgba(27, 14, 32, 0.12);
}
@media (min-width: 960px) { .studio-savebar { bottom: 16px; } }

/* ---------- Uploads ---------- */
.studio-media-row { display: grid; gap: 14px; grid-template-columns: 120px 1fr; }
.studio-upload {
  position: relative; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  border: 1.5px dashed var(--st-line-strong); border-radius: 12px; background: var(--surface);
  text-align: center; transition: border-color var(--dur);
}
.studio-upload:hover, .studio-upload:focus-within { border-color: var(--deep-purple); }
.studio-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-upload__hint { position: relative; padding: 10px; font-size: 0.74rem; color: var(--text-muted); line-height: 1.35; }
.studio-upload__hint strong { display: block; font-size: 0.82rem; color: var(--text); margin-bottom: 2px; }
.studio-upload img:not([hidden]) + .studio-upload__hint {
  align-self: end; width: 100%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); color: rgba(255, 255, 255, 0.85);
}
.studio-upload img:not([hidden]) + .studio-upload__hint strong { color: #fff; }
.studio-upload--portrait { aspect-ratio: 4 / 5; }
.studio-upload--wide { aspect-ratio: 16 / 7; min-height: 150px; }
.studio-upload--square { aspect-ratio: 1; }
.studio-upload--poster { aspect-ratio: 16 / 9; margin-bottom: 16px; }

.studio-file {
  display: grid; gap: 6px; padding: 14px; border: 1px solid var(--st-line); border-radius: 12px; background: var(--surface);
}
.studio-file__label { font-size: 0.82rem; font-weight: 800; }
.studio-file__name { font-size: 0.8rem; color: var(--text-muted); word-break: break-word; }
.studio-file .btn { justify-self: start; }
.studio-file__bar { height: 4px; border-radius: 4px; background: var(--st-line); overflow: hidden; }
.studio-file__bar span { display: block; height: 100%; width: 0; background: var(--st-accent); transition: width 160ms linear; }
.studio-file.is-ready { border-color: color-mix(in srgb, var(--st-ok) 45%, transparent); }

/* ---------- Overview ---------- */
.studio-identity {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 6px 0 22px;
}
.studio-identity__sleeve { position: relative; width: 104px; height: 104px; margin-right: 26px; }
.studio-identity__vinyl {
  position: absolute; top: 6%; right: -24%; width: 88%; height: 88%; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px);
  box-shadow: inset 0 0 0 30px #141414, inset 0 0 0 31px var(--crimson);
}
.studio-identity__sleeve img, .studio-identity__placeholder {
  position: relative; width: 100%; height: 100%; border-radius: 8px; object-fit: cover;
  box-shadow: 0 10px 24px rgba(27, 14, 32, 0.28);
}
.studio-identity__placeholder { display: grid; place-items: center; background: var(--deep-purple); color: rgba(255, 255, 255, 0.6); }
.studio-identity__placeholder svg { width: 40px; height: 40px; }
.studio-identity__name {
  font-family: var(--font-statement); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 0.95; margin: 6px 0 6px; letter-spacing: 0.005em;
}
.studio-identity__meta { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.studio-identity__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 479px) {
  .studio-identity { grid-template-columns: 1fr; }
  .studio-identity__sleeve { width: 88px; height: 88px; }
}

.studio-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 16px;
  background: var(--st-card); border: 1px solid var(--st-line); border-radius: 14px; overflow: hidden;
}
.studio-stats > div { padding: 14px 12px; border-left: 1px solid var(--st-line); }
.studio-stats > div:first-child { border-left: 0; }
.studio-stats dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.studio-stats dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .studio-stats { grid-template-columns: repeat(3, 1fr); }
  .studio-stats > div:nth-child(4) { border-left: 0; }
  .studio-stats > div:nth-child(n+4) { border-top: 1px solid var(--st-line); }
}

.studio-progress { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.studio-meter { height: 6px; border-radius: 6px; background: var(--st-line); overflow: hidden; margin-bottom: 8px; }
.studio-meter span { display: block; height: 100%; width: 0; background: var(--st-accent); transition: width 400ms var(--ease); }
.studio-checklist { list-style: none; margin: 0; padding: 0; }
.studio-checklist li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--st-line);
  font-size: 0.92rem;
}
.studio-checklist li:first-child { border-top: 0; }
.studio-check {
  width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--st-line-strong);
  display: grid; place-items: center;
}
.studio-checklist li.is-done .studio-check { background: var(--st-ok); border-color: var(--st-ok); color: #fff; }
.studio-checklist li.is-done .studio-check svg { width: 13px; height: 13px; stroke-width: 3; }
.studio-checklist li.is-done span.studio-check__text { color: var(--text-muted); }
.studio-checklist button { margin-left: auto; font-size: 0.84rem; font-weight: 700; color: var(--deep-purple); }
[data-theme="dark"] .studio-checklist button { color: #d7b6ea; }

/* ---------- Releases (vinyl sleeve covers) ---------- */
.studio-releases { display: grid; gap: 12px; }
.studio-release {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center;
  padding: 12px 14px 12px 12px; background: var(--st-card); border: 1px solid var(--st-line); border-radius: 14px;
}
.studio-sleeve { position: relative; width: 76px; height: 76px; }
.studio-sleeve::after {
  content: ""; position: absolute; top: 8%; right: -14%; width: 84%; height: 84%; border-radius: 50%; z-index: 0;
  background: repeating-radial-gradient(circle, #111 0 1.5px, #1d1d1d 1.5px 3px);
  box-shadow: inset 0 0 0 22px #141414, inset 0 0 0 23px var(--crimson);
  transition: transform 400ms var(--ease);
}
.studio-release:hover .studio-sleeve::after, .studio-release.is-playing .studio-sleeve::after { transform: translateX(16%) rotate(40deg); }
.studio-sleeve img, .studio-sleeve__blank {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 6px; object-fit: cover;
  box-shadow: 0 6px 14px rgba(27, 14, 32, 0.25);
}
.studio-sleeve__blank { display: grid; place-items: center; background: var(--deep-purple); color: rgba(255, 255, 255, 0.55); }
.studio-release__title { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.studio-release__meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.studio-release__actions { display: flex; gap: 4px; align-items: center; }
.studio-release .eq-bars { color: var(--st-accent); height: 12px; }
.studio-release:not(.is-playing) .eq-bars { display: none; }
.studio-play {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep-purple); color: #fff;
}
.studio-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.studio-play:disabled { opacity: 0.35; }
@media (max-width: 559px) {
  .studio-release { grid-template-columns: 64px 1fr; }
  .studio-sleeve { width: 64px; height: 64px; }
  .studio-release__actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--st-line); padding-top: 8px; }
}

.studio-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-muted);
}
.studio-pill--ok { background: color-mix(in srgb, var(--st-ok) 14%, transparent); color: var(--st-ok); }
.studio-pill--soon { background: color-mix(in srgb, var(--st-accent) 12%, transparent); color: var(--crimson-bright); }

.studio-release-media { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 16px; }
.studio-release-files { display: grid; gap: 10px; align-content: start; }
@media (min-width: 560px) { .studio-release-media { grid-template-columns: 180px 1fr; } }

.studio-toggles { display: grid; gap: 10px; margin-top: 4px; }
.studio-toggle { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.studio-toggle small { grid-column: 2; font-weight: 500; color: var(--text-muted); font-size: 0.8rem; }
.studio-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.studio-toggle > span {
  grid-row: span 2; width: 40px; height: 24px; border-radius: 24px; background: var(--st-line-strong); position: relative; transition: background var(--dur);
}
.studio-toggle > span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform var(--dur) var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.studio-toggle input:checked + span { background: var(--deep-purple); }
.studio-toggle input:checked + span::after { transform: translateX(16px); }
.studio-toggle input:focus-visible + span { outline: 2px solid var(--st-accent); outline-offset: 2px; }

/* ---------- Videos ---------- */
.studio-inline-form { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 720px) { .studio-inline-form { grid-template-columns: 1.4fr 1fr auto; } }
.studio-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.studio-video {
  display: grid; grid-template-columns: 136px 1fr auto; gap: 14px; align-items: center;
  padding: 10px; background: var(--st-card); border: 1px solid var(--st-line); border-radius: 12px;
}
.studio-video img { width: 136px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; }
.studio-video__title { font-weight: 700; font-size: 0.92rem; }
.studio-video__id { font-size: 0.76rem; color: var(--text-dim); font-family: ui-monospace, monospace; }
.studio-video__actions { display: flex; gap: 2px; }
@media (max-width: 519px) {
  .studio-video { grid-template-columns: 104px 1fr; }
  .studio-video img { width: 104px; }
  .studio-video__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- Clips (9:16) ---------- */
.studio-clips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.studio-clip { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.studio-clip video { width: 100%; height: 100%; object-fit: cover; }
.studio-clip__cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 10px 10px; font-size: 0.76rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.studio-clip__del {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; display: grid; place-items: center;
}
.studio-clip__del svg { width: 16px; height: 16px; }
.studio-clip-preview { aspect-ratio: 9 / 16; max-height: 46vh; margin: 0 auto 14px; border-radius: 12px; overflow: hidden; background: #000; }
.studio-clip-preview video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Events ---------- */
.studio-events { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.studio-event { background: var(--st-card); border: 1px solid var(--st-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.studio-event__cover { aspect-ratio: 16 / 9; background: var(--deep-purple); position: relative; }
.studio-event__cover img { width: 100%; height: 100%; object-fit: cover; }
.studio-event__date {
  position: absolute; left: 12px; bottom: -18px; width: 52px; padding: 6px 0; text-align: center;
  background: var(--st-card); border: 1px solid var(--st-line); border-radius: 10px; line-height: 1;
}
.studio-event__date b { display: block; font-size: 1.25rem; font-weight: 800; }
.studio-event__date small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-accent); }
.studio-event__body { padding: 26px 14px 12px; flex: 1; }
.studio-event__title { font-weight: 800; }
.studio-event__meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.studio-event__actions { display: flex; justify-content: flex-end; gap: 4px; padding: 0 8px 8px; }

/* ---------- Gallery ---------- */
.studio-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-bottom: 12px; }
.studio-gallery figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.studio-gallery img { width: 100%; height: 100%; object-fit: cover; }
.studio-gallery .studio-clip__del { width: 26px; height: 26px; top: 6px; right: 6px; }

/* ---------- Account ---------- */
.studio-dl { margin: 0; display: grid; }
.studio-dl > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--st-line); font-size: 0.92rem; }
.studio-dl > div:first-child { border-top: 0; }
.studio-dl dt { color: var(--text-muted); font-weight: 600; }
.studio-dl dd { margin: 0; font-weight: 700; word-break: break-word; }
@media (max-width: 479px) { .studio-dl > div { grid-template-columns: 1fr; gap: 2px; } }
.studio-row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Empty state ---------- */
.studio-empty {
  padding: 36px 20px; text-align: center; border: 1.5px dashed var(--st-line-strong); border-radius: 14px; color: var(--text-muted);
}
.studio-empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.studio-empty .eq-bars { color: var(--st-line-strong); height: 22px; margin-bottom: 10px; }
.studio-empty .eq-bars i { animation: none; }
.studio-empty .eq-bars i:nth-child(1) { height: 40%; } .studio-empty .eq-bars i:nth-child(2) { height: 80%; }
.studio-empty .eq-bars i:nth-child(3) { height: 55%; } .studio-empty .eq-bars i:nth-child(4) { height: 100%; }
.studio-empty .eq-bars i:nth-child(5) { height: 30%; }

/* ---------- Sheets ---------- */
.studio-sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; }
.studio-sheet[hidden] { display: none; }
.studio-sheet__scrim { position: absolute; inset: 0; background: rgba(12, 5, 16, 0.55); animation: st-fade 180ms ease; }
.studio-sheet__panel {
  position: relative; width: 100%; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: 18px 18px 0 0; animation: st-up 240ms var(--ease);
}
[data-theme="dark"] .studio-sheet__panel { background: #1f1229; }
.studio-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px 20px; border-bottom: 1px solid var(--st-line); }
.studio-sheet__head h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.studio-sheet__body { padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.studio-sheet__foot {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--st-line);
}
.studio-sheet__foot .studio-muted { margin-right: auto; font-size: 0.82rem; }
@media (min-width: 720px) {
  .studio-sheet { align-items: center; justify-items: center; padding: 24px; }
  .studio-sheet__panel { max-width: 720px; border-radius: 18px; max-height: 88vh; animation-name: st-pop; }
  .studio-sheet__panel--narrow { max-width: 440px; }
}
@keyframes st-fade { from { opacity: 0; } }
@keyframes st-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes st-pop { from { transform: scale(0.97); opacity: 0; } }

/* ---------- Toast ---------- */
.studio-toast {
  position: fixed; left: 50%; bottom: calc(var(--st-tab-h) + 18px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translateX(-50%); max-width: calc(100vw - 32px);
  padding: 11px 16px; border-radius: 10px; background: #1b0e20; color: #fff; font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); animation: st-up 200ms var(--ease);
}
.studio-toast.is-error { background: var(--crimson); }
@media (min-width: 960px) { .studio-toast { bottom: 24px; left: calc(50% + var(--st-rail-w) / 2); } }

/* Shared small icon buttons in lists */
.studio-mini {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--text-muted);
}
.studio-mini:hover { background: var(--surface-2); color: var(--text); }
.studio-mini.is-danger:hover { color: var(--crimson-bright); }
.studio-mini svg { width: 17px; height: 17px; }
.studio-mini:disabled { opacity: 0.3; pointer-events: none; }

/* Flat, quiet buttons inside the dashboard (the site's 3D buttons stay on public pages) */
.studio-body .btn { box-shadow: none; border-radius: 10px; transform: none; }
.studio-body .btn:active { transform: translateY(1px); }
.studio-body .btn-sm { min-height: 36px; padding: 0.45rem 0.9rem; }

/* Release editor: compact cover beside the file pickers on phones */
@media (max-width: 559px) {
  .studio-release-media { grid-template-columns: 112px 1fr; align-items: start; }
  .studio-file { padding: 10px; }
  .studio-file__name { font-size: 0.74rem; }
}
