/* MediaPineal · shared tokens + panel UI */
:root {
  --ink: #1b1640;
  --ink-2: #2a2458;
  --ink-soft: #4a4570;
  --muted: #6d6889;
  --paper: #f4f2fb;
  --surface: #ffffff;
  --line: #e2dff0;
  --line-strong: #cdc8e4;
  --violet: #5b3df5;
  --violet-deep: #4428d8;
  --violet-wash: #ece8ff;
  --lume: #ffb938;

  --st-pending: #b7791f;   --st-pending-bg: #fdf3dd;
  --st-revision: #c2551b;  --st-revision-bg: #fde8dc;
  --st-approved: #0d7f73;  --st-approved-bg: #dbf3ef;
  --st-rejected: #b8284f;  --st-rejected-bg: #fbe1e8;
  --st-published: #2c7a3d; --st-published-bg: #dff2e2;

  --font-display: "Oxanium", "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 0.975rem;
  --text-lg: 1.15rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-float: 0 1px 2px rgba(27, 22, 64, .06), 0 12px 32px -12px rgba(27, 22, 64, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--violet) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 600 var(--text-sm)/1 var(--font-text);
  padding: .72rem 1.05rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-deep); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-soft); }
.btn--quiet { background: transparent; color: var(--ink-soft); padding-inline: .6rem; }
.btn--quiet:hover { color: var(--ink); background: var(--violet-wash); }
.btn--danger { background: var(--surface); color: var(--st-rejected); border-color: #f0c6d2; }
.btn--danger:hover { background: var(--st-rejected-bg); }
.btn--sm { padding: .5rem .75rem; font-size: var(--text-xs); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--text-xs); font-weight: 600; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending { color: var(--st-pending); background: var(--st-pending-bg); }
.badge--revision { color: var(--st-revision); background: var(--st-revision-bg); }
.badge--approved { color: var(--st-approved); background: var(--st-approved-bg); }
.badge--rejected { color: var(--st-rejected); background: var(--st-rejected-bg); }
.badge--published { color: var(--st-published); background: var(--st-published-bg); }
.badge--neutral { color: var(--ink-soft); background: #ebe9f3; }
.badge--neutral::before { display: none; }

/* ---------- panel shell ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--ink); color: #d9d5f0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 1.25rem .85rem;
  --logo-iris: var(--ink);
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: .2rem .55rem 1.2rem; }
.brand__logo { height: 22px; width: auto; }
.cone { display: inline-block; width: 1em; height: 1.2em; background: currentColor; -webkit-mask: url(/assets/img/cone.png) center / contain no-repeat; mask: url(/assets/img/cone.png) center / contain no-repeat; }
.side__tenant { padding: 0 .55rem 1rem; margin-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.side__tenant strong { display: block; color: #fff; font-size: var(--text-sm); }
.side__tenant span { font-size: var(--text-xs); color: #9f99c4; }
.side nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side nav a {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .6rem; border-radius: var(--r-sm);
  color: #cbc6e6; text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--lume); }
.side nav .count {
  margin-left: auto; background: var(--lume); color: var(--ink); font-size: .7rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px;
}
.side nav .nav-cta { margin: .6rem 0; background: var(--violet); color: #fff; justify-content: center; }
.side nav .nav-cta:hover { background: var(--violet-deep); }
.side__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.side__user { padding: 0 .55rem .6rem; font-size: var(--text-sm); }
.side__user strong { color: #fff; display: block; }
.side__user span { color: #9f99c4; font-size: var(--text-xs); }
.side__foot form { margin: 0; }
.side__foot button { width: 100%; justify-content: flex-start; color: #cbc6e6; }
.side__foot button:hover { background: rgba(255,255,255,.06); color: #fff; }

.topbar { display: none; }
.main { padding: 2rem clamp(1rem, 3vw, 2.75rem) 4rem; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head h1 { font-size: var(--text-2xl); }
.page-head p { color: var(--muted); margin: .35rem 0 0; }
.page-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.lang-switch { display: flex; gap: .25rem; font-size: var(--text-xs); padding: .2rem .55rem .8rem; }
.lang-switch a { color: #9f99c4; text-decoration: none; padding: .15rem .4rem; border-radius: 5px; }
.lang-switch a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform 220ms var(--ease); }
  .side.is-open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .75rem 1rem; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30;
    --logo-iris: var(--ink);
  }
  .topbar .brand { padding: 0; }
  .topbar button { background: transparent; border: 0; color: #fff; padding: .4rem; cursor: pointer; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 12, 40, .45); z-index: 35; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.4rem; }
.panel + .panel { margin-top: 1rem; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel__head h2 { font-size: var(--text-lg); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .grid-2, .grid-main { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1rem; }

/* Overview strip: one row of figures, separated by rules rather than boxed */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 1rem; }
.figure { padding: 1.1rem 1.3rem; border-left: 1px solid var(--line); text-decoration: none; color: inherit; }
.figure:first-child { border-left: 0; }
a.figure:hover { background: #faf9fe; }
.figure b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.figure span { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 640px) { .figure { border-left: 0; border-top: 1px solid var(--line); } .figure:first-child { border-top: 0; } }

.quota { margin-top: .6rem; }
.quota__bar { height: 8px; border-radius: 4px; background: #ebe8f6; overflow: hidden; }
.quota__bar i { display: block; height: 100%; background: var(--violet); border-radius: 4px; }
.quota__bar i.is-high { background: var(--st-revision); }

.notice { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--r-md); margin-bottom: 1rem; font-size: var(--text-sm); }
.notice .icon { margin-top: 1px; }
.notice p { margin: 0; }
.notice--info { background: var(--violet-wash); color: var(--ink-2); }
.notice--warn { background: var(--st-pending-bg); color: #6e4a0e; }
.notice--ok { background: var(--st-approved-bg); color: #0a5a52; }
.notice--error { background: var(--st-rejected-bg); color: #86183a; }
.notice ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.notice__action { margin-left: auto; }

/* ---------- tables & lists ---------- */
.table-wrap { overflow-x: auto; margin: 0 -1.4rem; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: var(--text-xs); padding: .55rem 1.4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: .8rem 1.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #faf9fe; }
table.data .right { text-align: right; }
.row-title { display: flex; align-items: center; gap: .8rem; min-width: 220px; }
.row-title img, .row-title .cover-ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--violet-wash); }
.row-title a { color: var(--ink); font-weight: 600; text-decoration: none; }
.row-title a:hover { color: var(--violet-deep); }
.row-title small { display: block; color: var(--muted); font-size: var(--text-xs); }
.empty { padding: 2.2rem 1rem; text-align: center; color: var(--muted); }
.empty .btn { margin-top: .8rem; }

.filters { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters a { font-size: var(--text-sm); padding: .4rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); }
.filters a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters a .n { opacity: .6; margin-left: .25rem; font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.form-section { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section > h2 { font-size: var(--text-lg); margin-bottom: 1rem; }
.fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .95rem 1rem; }
.field { grid-column: span 12; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--6 { grid-column: span 6; } .field--4 { grid-column: span 4; } .field--3 { grid-column: span 3; } .field--8 { grid-column: span 8; }
@media (max-width: 720px) { .field--6, .field--4, .field--3, .field--8 { grid-column: span 12; } }
.field > label, .label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: var(--text-xs); color: var(--muted); font-weight: 400; }
.req { color: var(--st-rejected); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=tel],
input[type=number], input[type=month], select, textarea {
  width: 100%; font: inherit; font-size: var(--text-sm); color: var(--ink);
  padding: .68rem .8rem; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #b3acd6; }
input[readonly], input:disabled { background: #f6f5fb; color: var(--ink-soft); cursor: default; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-wash); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--text-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; align-items: center; padding-top: 1.2rem; border-top: 1px solid var(--line); margin-top: 1.2rem; flex-wrap: wrap; }
.form-actions .muted { margin-right: auto; font-size: var(--text-sm); }

.repeat-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; background: #fcfbff; }
.repeat-item + .repeat-item { margin-top: .75rem; }
.repeat-item__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.repeat-item__head strong { font-size: var(--text-sm); color: var(--violet-deep); }
.add-row { margin-top: .75rem; }

/* dropzone-style file field */
.file-drop { position: relative; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: #fff; min-height: 64px; }
.file-drop:hover { border-color: var(--violet); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet-deep); flex: none; }
.file-drop__text { font-size: var(--text-sm); min-width: 0; }
.file-drop__text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop__text span { color: var(--muted); font-size: var(--text-xs); }
.file-drop__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--violet); width: 0; border-radius: 0 0 0 var(--r-md); transition: width 120ms linear; }
.file-drop.is-done { border-style: solid; border-color: #9fd9cf; background: #f4fbf9; }
.file-drop.is-done .file-drop__icon { background: var(--st-approved-bg); color: var(--st-approved); }
.file-drop.is-error { border-color: #eaa9bb; background: #fff7f9; }
.file-drop.is-error .file-drop__text span { color: var(--st-rejected); }
.cover-field { display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: center; }
.cover-field img, .cover-field .cover-ph { width: 132px; height: 132px; border-radius: var(--r-md); object-fit: cover; background: repeating-linear-gradient(45deg, #efecf9 0 8px, #f7f5fd 8px 16px); border: 1px solid var(--line); }
@media (max-width: 520px) { .cover-field { grid-template-columns: 1fr; } }

/* ---------- release detail ---------- */
.release-hero { display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem; align-items: start; }
.release-hero img { width: 180px; height: 180px; border-radius: var(--r-md); object-fit: cover; box-shadow: var(--shadow-float); }
.release-hero h1 { font-size: var(--text-2xl); margin: .4rem 0 .3rem; }
.release-hero .meta { color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 620px) { .release-hero { grid-template-columns: 1fr; } }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; font-size: var(--text-sm); }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.track { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: start; }
.track:first-child { border-top: 0; }
.track__n { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.track__title { font-weight: 600; }
.track__meta { font-size: var(--text-xs); color: var(--muted); margin-top: .15rem; }
.track audio { width: 100%; max-width: 360px; height: 34px; margin-top: .5rem; }
.track details { margin-top: .4rem; font-size: var(--text-sm); }
.track details pre { white-space: pre-wrap; font: inherit; background: #faf9fe; padding: .7rem; border-radius: var(--r-sm); margin: .4rem 0 0; }

/* timeline: the release's conversation with the artist */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 1.5px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline li[data-status="pending"]::after { border-color: var(--st-pending); }
.timeline li[data-status="revision"]::after { border-color: var(--st-revision); }
.timeline li[data-status="approved"]::after { border-color: var(--st-approved); }
.timeline li[data-status="rejected"]::after { border-color: var(--st-rejected); }
.timeline li[data-status="published"]::after { border-color: var(--st-published); background: var(--st-published); }
.timeline strong { font-size: var(--text-sm); display: block; }
.timeline small { color: var(--muted); font-size: var(--text-xs); }
.timeline blockquote { margin: .45rem 0 0; padding: .6rem .8rem; background: #faf9fe; border-left: 2px solid var(--violet); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--text-sm); white-space: pre-line; }

/* Missing documents: amber rail so it reads as "blocking paperwork", distinct from status colours */
.docs-alert { border-color: #f3d9a4; background: linear-gradient(180deg, #fffaf0, var(--surface) 70%); box-shadow: inset 4px 0 0 var(--lume); }
.docs-alert__head { display: flex; gap: .8rem; align-items: flex-start; }
.docs-alert__head h2 { font-size: var(--text-lg); margin: 0; }
.docs-alert__head p { margin: .15rem 0 0; font-size: var(--text-sm); color: #6e4a0e; }
.docs-alert__icon { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--st-pending-bg); color: var(--st-pending); }
.docs-alert__list { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px dashed #efd6a2; }
.docs-alert__list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed #efd6a2; font-size: var(--text-sm); font-weight: 600; }
.docs-alert__list small { font-weight: 500; color: var(--st-rejected); margin-left: .3rem; }
.docs-alert__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: 1rem; }
.docs-alert__form p { margin: 0; }
/* .field spans 12 columns elsewhere; in these single-column stacks every child takes the one column */
.docs-alert__form > *, .docs-alert__drops > *, .contract__form > * { grid-column: 1 / -1; }
.docs-alert__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.docs-alert__note { margin: 1rem 0 0; padding: .6rem .8rem; background: var(--surface); border-left: 2px solid var(--lume); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--text-sm); white-space: pre-line; }
.docs-alert__drops { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: 1rem; }
.badge--docs { color: var(--st-revision); background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.badge--docs::before { display: none; }
.timeline li[data-event="docs_requested"]::after { border-color: var(--lume); }
.timeline li[data-event="docs_added"]::after { border-color: var(--st-approved); }

/* Label and artist contracts */
.contract { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.contract:first-of-type { border-top: 0; padding-top: 0; }
.contract__icon { grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); background: var(--violet-wash); color: var(--violet); }
.contract.is-signed .contract__icon { background: var(--st-approved-bg); color: var(--st-approved); }
.contract__title { font-weight: 700; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.contract__meta { font-size: var(--text-xs); color: var(--muted); }
.contract__note { grid-column: 2; margin: .2rem 0 0; font-size: var(--text-sm); white-space: pre-line; color: var(--ink-soft); }
.contract__files { grid-column: 2; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.contract__form { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: .6rem; }
.contract__form .form-actions { margin: 0; padding-top: 0; border-top: 0; justify-content: flex-start; }
.contracts-add { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.contracts-add summary { cursor: pointer; font-weight: 600; color: var(--violet); }

.decision { display: grid; gap: .6rem; }
.decision__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .4rem; }
.decision__choices label { position: relative; }
.decision__choices input { position: absolute; opacity: 0; }
.decision__choices span {
  display: flex; align-items: center; justify-content: center; gap: .35rem; text-align: center;
  padding: .6rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--text-xs); font-weight: 600; cursor: pointer; background: #fff;
}
.decision__choices input:focus-visible + span { outline: 3px solid var(--violet-wash); }
.decision__choices input:checked + span { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.decision__choices .c-approved { color: var(--st-approved); }
.decision__choices .c-revision { color: var(--st-revision); }
.decision__choices .c-rejected { color: var(--st-rejected); }
.decision__choices .c-published { color: var(--st-published); }
.decision__choices .c-pending { color: var(--st-pending); }

/* ---------- messages ---------- */
.thread { display: flex; flex-direction: column; gap: .75rem; }
.bubble { max-width: min(640px, 88%); padding: .8rem 1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.bubble--mine { align-self: flex-end; background: var(--violet-wash); border-color: #d9d0ff; }
.bubble header { font-size: var(--text-xs); color: var(--muted); margin-bottom: .3rem; }
.bubble p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-right: .4rem; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth__art { background: var(--ink); color: #d9d5f0; padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; --logo-iris: var(--ink); position: relative; overflow: hidden; }
/* Long forms (register) scroll; the brand panel stays pinned to the viewport so its text never drops out of view. */
@media (min-width: 861px) { .auth { align-items: start; } .auth__art { position: sticky; top: 0; height: 100vh; } }
.auth__art .brand { padding: 0; }
.auth__art blockquote { margin: auto 0 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem); line-height: 1.15; color: #fff; max-width: 18ch; letter-spacing: -0.02em; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.auth__card { width: 100%; max-width: 440px; }
.auth__card h1 { font-size: var(--text-2xl); margin-bottom: .4rem; }
.auth__card > p { color: var(--muted); margin-bottom: 1.5rem; }
.auth__card form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .95rem; }
.auth__card form > .field { grid-column: auto; } /* .field spans 12 panel columns elsewhere */
.auth__card .btn--primary { width: 100%; padding-block: .85rem; }
.auth__alt { margin-top: 1.4rem; font-size: var(--text-sm); color: var(--muted); }
.auth__alt p { margin: .3rem 0; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__art { min-height: 0; padding-bottom: 2rem; } .auth__art blockquote { margin-top: 2rem; } }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }

/* ---------- plans: one capacity scale instead of four price cards ---------- */
.plan-scale { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.plan { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px 150px; gap: 1.2rem; align-items: center; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); }
.plan:first-child { border-top: 0; }
.plan.is-current { background: #faf8ff; box-shadow: inset 3px 0 0 var(--violet); }
.plan__cap { display: flex; align-items: baseline; gap: .4rem; }
.plan__n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.plan__unit { color: var(--muted); font-size: var(--text-sm); }
.plan__meter { height: 10px; background: #efedf7; border-radius: 5px; overflow: hidden; }
.plan__meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), #8a74ff); border-radius: 5px; }
.plan__price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.plan__price strong { font-family: var(--font-display); font-size: 1.35rem; }
.plan__price s { font-size: var(--text-sm); }
.plan form, .plan > .btn, .plan > .badge { justify-self: end; }
@media (max-width: 760px) {
  .plan { grid-template-columns: 1fr auto; gap: .6rem 1rem; }
  .plan__meter { grid-column: 1 / -1; grid-row: 2; }
  .plan__price { grid-column: 1; }
}
.u-mt { margin-top: 1rem; } .u-mb0 { margin-bottom: 0; } .u-sm { font-size: var(--text-sm); } .u-xs { font-size: var(--text-xs); }
.auth__cone { position: absolute; right: -60px; bottom: -40px; width: 340px; height: 410px; color: rgba(255, 185, 56, .12); pointer-events: none; }
@media (max-width: 860px) { .auth__cone { width: 180px; height: 220px; right: -30px; bottom: -30px; } }

/* password reveal + captcha (auth pages) */
.password-field { position: relative; }
.password-field input { padding-right: 3rem; }
.password-field__toggle {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.password-field__toggle:hover { color: var(--ink); background: var(--violet-wash); }
.password-field__toggle[aria-pressed="true"] { color: var(--violet-deep); }
.captcha { min-height: 78px; }
@media (max-width: 360px) { .captcha { transform: scale(.9); transform-origin: left top; } }

.lyrics-copy { margin: .5rem 0 0; }
.lyrics-copy.is-copied { color: var(--st-approved); border-color: #9fd9cf; background: var(--st-approved-bg); }

/* invoices + secure payment strip */
.trust { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.trust li { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.trust .icon { color: var(--st-approved); margin-top: 2px; }
.trust span { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.45; }
.trust strong { display: block; color: var(--ink); font-size: var(--text-sm); }
.trust--panel { margin: 0 0 1rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

.consent { display: grid; gap: .7rem; }
.consent .check span { font-size: var(--text-xs); line-height: 1.5; }

/* ISRC / UPC box inside a track row */
.codes { padding: .9rem 1rem 1rem; border-radius: var(--r-md); background: #f6f4ff; border: 1px solid #e4defc; gap: .7rem; }
.codes__head { display: flex; align-items: center; gap: .45rem; font-size: var(--text-sm); font-weight: 600; color: var(--violet-deep); }
.codes__head .icon { width: 17px; height: 17px; }
.codes__head .hint { margin-left: .2rem; }
.codes .fields input { background: #fff; }
.codes__note { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .7rem .8rem; border-radius: var(--r-sm); background: var(--st-pending-bg); color: #6e4a0e; font-size: var(--text-xs); line-height: 1.55; }
.codes__note .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.legal-dialog { width: min(760px, calc(100vw - 2rem)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(15, 12, 40, .5); color: var(--ink); }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: rgba(15, 12, 40, .55); }
.legal-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.legal-dialog__head h2 { font-size: var(--text-lg); }
.legal-dialog__body { overflow-y: auto; padding: 1rem 1.3rem; font-size: var(--text-sm); color: var(--ink-soft); }
.legal-dialog__body h3 { font-size: 1.15rem; color: var(--ink); margin: 1.2rem 0 .3rem; }
.legal-dialog__body h3:first-child { margin-top: 0; }
.legal-dialog__body h4 { font-size: var(--text-sm); color: var(--ink); margin: 1rem 0 .3rem; font-family: var(--font-text); font-weight: 700; }
.legal-dialog__body p { margin: 0 0 .6rem; }
.legal-dialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.3rem; border-top: 1px solid var(--line); background: #faf9fe; border-radius: 0 0 var(--r-lg) var(--r-lg); }
