/* /studio — le panel créateur (assets/studio.js).
 *
 * Même grammaire que la fiche de l'accueil et le panneau d'achat : filets
 * noirs 6 / 2 / 1 px, titres Archivo 900 à chasse 62 %, repères en JetBrains
 * Mono, commandes en pastilles. Le verre est réservé au rail (la « pochette »
 * de l'espace) ; le contenu est posé à plat sur le papier du site.
 * Un seul moment appuyé : le disque le plus écouté, en tête du tableau de
 * bord, qui tourne à 33 tours tant que son extrait joue.
 *
 * Les champs réutilisent les classes de /login (.auth__field, .auth__input,
 * .auth__meter : login.css). Chargée par toutes les pages (Barba ne recharge
 * pas le <head>). */

.studio {
  --ink: #0b0b0c;
  --ink-2: rgba(11, 11, 12, 0.58);
  --ink-3: rgba(11, 11, 12, 0.14);
  --paper: #f2f0ec;
  --mono: "JetBrains Mono Sillon", ui-monospace, "SF Mono", Menlo, monospace;
  --grot: "Archivo Sillon", "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(0.34, 1.36, 0.5, 1);
  --warn: #b3412a;
  --good: #2b7a4b;

  box-sizing: border-box;
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  width: min(100%, 92rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: 6.75rem clamp(1rem, 3vw, 3rem) 10rem;
  color: var(--ink);
  background-color: var(--_theme---background);
  font-family: var(--grot);
}
.studio *, .studio *::before, .studio *::after { box-sizing: border-box; }
:where(.studio) :where(h1, h2, p, ol, ul, dl, dd, fieldset, figure) { margin: 0; }
/* Le site numérote ses listes (« 01. ») : pas ici. */
.studio :where(ol, ul) { padding: 0; list-style: none; }
.studio ol > li::marker { content: none; }
:where(.studio) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.studio) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.studio [hidden] { display: none !important; }
/* Le CSS du site impose sa police (serif) et son interlettrage aux titres. */
.studio h1, .studio h2 { font-family: var(--grot); letter-spacing: 0; font-style: normal; }

/* ---- Rail ------------------------------------------------------------------ */

.studio__rail { position: sticky; top: 6.75rem; }
.rail {
  padding: 1.125rem 1.375rem 1.25rem;
  border-radius: 1.75rem;
  box-shadow:
    0 1rem 2.5rem -1rem rgba(0, 0, 0, 0.28),
    0 0.125rem 0.375rem rgba(0, 0, 0, 0.06),
    0 0 0 0.5px rgba(0, 0, 0, 0.07);
}
.rail__inner { position: relative; z-index: 3; }
.rail__inner::before {
  content: "";
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
}
.rail__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rail__swatch {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 0.1875rem;
  background: rgb(var(--disc-accent, 11, 11, 12));
}
.rail__step { margin-left: auto; color: var(--ink-2); }

/* L'avatar est l'étiquette d'un disque : photo au centre, sillons autour. */
.rail__who {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 0 1rem;
}
.rail__avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #121213 0 1px, #1e1e20 1px 2.4px);
  box-shadow: 0 0.375rem 1rem -0.5rem rgba(0, 0, 0, 0.55);
}
.rail__avatar img,
.rail__avatar span {
  width: 64%;
  height: 64%;
  border-radius: 50%;
  object-fit: cover;
}
.rail__avatar span {
  display: grid;
  place-items: center;
  background: var(--paper);
  font: 900 1.125rem/1 var(--grot);
  font-stretch: 62%;
}
.rail__avatar span:empty { display: none; }
.rail__id { display: grid; gap: 0.375rem; min-width: 0; }
.rail__name {
  overflow: hidden;
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.625rem;
  line-height: 1.05;   /* les capitales accentuées (NÉVÉ) ne doivent pas être rognées */
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail__status {
  font: 500 0.625rem/1.35 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rail__nav { display: grid; border-top: 2px solid var(--ink); }
.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0 0.6875rem 1.375rem;
  border-bottom: 1px solid var(--ink-3);
  color: var(--ink-2);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s, padding-left 0.35s var(--spring);
}
/* Repère : un petit disque, plein sur la vue ouverte. */
.rail__link::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: -0.3125rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.2s, transform 0.35s var(--spring);
}
.rail__link:hover { color: var(--ink); padding-left: 1.625rem; }
.rail__link[aria-current="page"] { color: var(--ink); }
.rail__link[aria-current="page"]::before {
  background: radial-gradient(circle, var(--paper) 0 18%, var(--ink) 20%);
  box-shadow: none;
  transform: scale(1.25);
}
.rail__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rail__tag {
  margin-left: auto;
  padding: 0.25rem 0.4375rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-3);
  font: 500 0.5625rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.rail__tag:empty { display: none; }
[data-view-link="validation"] .rail__tag { background: var(--ink); color: var(--paper); box-shadow: none; }

.rail__out {
  margin-top: 1rem;
  font: 500 0.6875rem/1 var(--mono) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2) !important;
  text-decoration: underline 1px transparent;
  text-underline-offset: 0.3em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.rail__out:hover { color: var(--ink) !important; text-decoration-color: currentColor; }
.rail__out:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---- Contenu -------------------------------------------------------------- */

.studio__main { min-width: 0; }
.studio__wait {
  padding-top: 0.75rem;
  font: 500 0.75rem/1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.studio__wait[data-kind="warn"] { color: var(--warn); text-transform: none; font-family: var(--grot); font-size: 1rem; }

.view__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem 2rem;
  padding-top: 0.875rem;
  border-top: 6px solid var(--ink);
}
.view__title {
  grid-column: 1 / -1;
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(3.25rem, 7.2vw, 6.75rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  outline: none;
}
.view__lede {
  max-width: 38rem;
  font: 450 1rem/1.5 var(--grot);
  font-stretch: 92%;
  color: var(--ink-2);
  text-wrap: pretty;
}
.view__period, .view__tabs { justify-self: end; width: min(100%, 17rem); }
.view__tabs { width: min(100%, 26rem); }

/* Segments à trois : le composant des fiches (product.css), élargi. */
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--3 .seg__knob { width: calc((100% - 0.5rem) / 3); }
.seg--3:has(.seg__opt:nth-child(2) input:checked) .seg__knob { transform: translateX(100%); }
.seg--3:has(.seg__opt:nth-child(3) input:checked) .seg__knob { transform: translateX(200%); }
.studio .seg__opt { padding: 0.625rem 0.5rem; }
.studio .seg__label { font-size: 1.1875rem; white-space: nowrap; }
.seg--small .seg__opt { padding: 0.4375rem 0.375rem; }
.seg--small .seg__label { font-size: 0.9375rem; }

.dash { padding-top: 2.5rem; }
.dash[aria-busy="true"] { opacity: 0.5; transition: opacity 0.2s; }

/* ---- Le disque du moment ---------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: 2.75rem;
}
.hero__disc {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 50%;
  cursor: pointer;
}
.hero__disc:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
/* Reflet fixe au-dessus du disque qui tourne : c'est la lumière, pas le vinyle. */
.hero__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, 0.1) 13%, transparent 19% 58%, rgba(255, 255, 255, 0.07) 63%, transparent 69%);
  pointer-events: none;
}
.hero__disc .disc { --d: 100%; }
.hero__disc .disc { transition: transform 0.6s var(--spring); }
.hero__disc:hover .disc { transform: rotate(-12deg) scale(1.015); }
.hero__disc[data-spinning] .disc { animation: st-spin 1.8s linear infinite; }   /* 33 ⅓ tours/min */
@keyframes st-spin { to { rotate: 360deg; } }

.hero__card { border-top: 2px solid var(--ink); padding-top: 0.625rem; }
.hero__kicker {
  font: 500 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__title {
  padding-top: 0.875rem;
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(2.75rem, 5.4vw, 5rem);
  line-height: 0.86;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero__facts {
  padding-top: 0.75rem;
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__facts span + span::before { content: "·"; margin: 0 0.625rem; }
.hero__nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem !important;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.hero__nums > div { padding: 0.625rem 0.75rem 0.75rem; }
.hero__nums > div + div { border-left: 1px solid var(--ink-3); }
.hero__nums > div:first-child { padding-left: 0; }
.hero__nums dt {
  font: 500 0.5625rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__nums dd {
  padding-top: 0.375rem;
  font-weight: 900;
  font-stretch: 62%;
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: 1.25rem; }

/* ---- Disques (vignettes et grand disque) ------------------------------------ */

.disc {
  --d: 2.75rem;
  position: relative;
  display: block;
  flex: none;
  width: var(--d);
  aspect-ratio: 1;
  border-radius: 50%;
}
.disc--vinyl {
  background: repeating-radial-gradient(circle, #111112 0 1px, #1d1d1f 1px 2.5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0.5rem 1.25rem -0.75rem rgba(0, 0, 0, 0.55);
}
.disc--vinyl .disc__label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: center / cover no-repeat;
}
/* CD : la pochette imprimée sur la face, anneau transparent au centre. */
.disc--cd {
  background: conic-gradient(from 40deg, #d9dde3, #eef0f3, #cfd6de, #f4eef3, #d6e1dc, #d9dde3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0.5rem 1.25rem -0.75rem rgba(0, 0, 0, 0.4);
}
.disc--cd .disc__label {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: center / cover no-repeat;
  -webkit-mask: radial-gradient(circle, transparent 0 19%, #000 19.5%);
  mask: radial-gradient(circle, transparent 0 19%, #000 19.5%);
}
.disc::after {
  content: "";
  position: absolute;
  inset: 46.5%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* ---- Chiffres --------------------------------------------------------------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.kpi { padding: 0.75rem 1rem 1rem; min-width: 0; }
.kpi:first-child { padding-left: 0; }
.kpi + .kpi { border-left: 1px solid var(--ink-3); }
.kpi__label {
  font: 500 0.625rem/1.25 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kpi__value {
  padding-top: 0.625rem;
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.kpi__delta {
  padding-top: 0.5rem;
  font: 500 0.625rem/1.35 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.kpi__delta span { color: var(--ink-2); }
.kpi__delta[data-dir="1"] { color: var(--good); }
.kpi__delta[data-dir="-1"] { color: var(--warn); }
.kpi__delta[data-dir="1"]::before { content: "▲ "; }
.kpi__delta[data-dir="-1"]::before { content: "▼ "; }

.dash__empty {
  margin-top: 1.25rem !important;
  max-width: 40rem;
  font: 450 0.9375rem/1.5 var(--grot);
  font-stretch: 92%;
  color: var(--ink-2);
}

/* ---- Graphique : barres par jour ------------------------------------------ */

.chart { padding-top: 3rem; }
.chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
}
.chart__title, .releases__title, .set__title {
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.875rem;
  line-height: 0.95;
  text-transform: uppercase;
}
.chart__metric { width: min(100%, 20rem); }

.bars {
  --plot: 13rem;
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  grid-template-rows: var(--plot) auto;
}
.bars__grid {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.bars__grid span { position: relative; height: 0; border-top: 1px solid var(--ink-3); }
.bars__grid span:last-child { border-top: 1px solid var(--ink); }
.bars__grid i {
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  font: 500 0.625rem/1 var(--mono);
  font-style: normal;
  color: var(--ink-2);
}
.bars__plot {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  height: var(--plot);
}
.bar {
  display: flex;
  align-items: flex-end;
  height: 100%;
  outline: none;
  cursor: default;
}
.bar i {
  display: block;
  width: 100%;
  height: var(--h);
  min-height: 0;
  border-radius: 4px 4px 0 0;
  background: var(--ink);
  transform-origin: bottom;
  animation: st-grow 0.7s var(--spring) both;
  animation-delay: calc(var(--i, 0) * 8ms);
  transition: opacity 0.15s;
}
.bar i[data-zero] { height: 0; }
@keyframes st-grow { from { transform: scaleY(0); } }
.bars__plot:hover .bar i, .bars__plot:focus-within .bar i { opacity: 0.35; }
.bars__plot .bar[data-on] i { opacity: 1; }
.bar:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); border-radius: 4px; }
.bars__axis {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 2px;
  padding-top: 0.5rem;
  font: 500 0.625rem/1 var(--mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.bars__axis span { overflow: visible; width: 0; }
/* La dernière date s'aligne sur le bord droit du graphique. */
.bars__axis span:last-child { justify-self: end; display: flex; justify-content: flex-end; }
.bars__tip {
  position: absolute;
  top: -0.5rem;
  z-index: 2;
  transform: translate(-50%, -100%);
  padding: 0.4375rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.6875rem/1 var(--mono);
  white-space: nowrap;
  pointer-events: none;
}
.bars__table { margin-top: 1rem; font: 500 0.75rem/1.4 var(--mono); color: var(--ink-2); }
.bars__table summary { cursor: pointer; width: max-content; }
.bars__table summary:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.bars__table table { margin-top: 0.75rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bars__table th, .bars__table td { padding: 0.25rem 1.5rem 0.25rem 0; text-align: left; border-bottom: 1px solid var(--ink-3); }

/* ---- Vos disques ------------------------------------------------------------- */

.releases { padding-top: 3.5rem; }
.releases__title { padding-bottom: 1rem; }
.rel-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.rel-table thead th {
  padding: 0.625rem 0.75rem 0.625rem 0;
  font: 500 0.5625rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink);
}
.rel-table thead th:first-child { text-align: left; }
.rel-table tbody th, .rel-table td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--ink-3);
  font-weight: 400;
  text-align: right;
  vertical-align: middle;
}
.rel-table td {
  font: 500 0.9375rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.rel-table tbody th { text-align: left; }
.rel-table__spark { width: 7rem; }
.rel {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: inherit;
  text-decoration: none;
}
.rel .disc { transition: rotate 0.9s var(--spring); }
.rel:hover .disc { rotate: 200deg; }
.rel__text { display: grid; gap: 0.3125rem; min-width: 0; }
.rel__title {
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.375rem;
  line-height: 0.95;
  text-transform: uppercase;
  text-decoration: underline 1px transparent;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.2s;
}
.rel:hover .rel__title { text-decoration-color: currentColor; }
.rel:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 0.5rem; }
.rel__meta {
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.spark { display: block; width: 6rem; height: 1.5rem; margin-left: auto; overflow: visible; }
.spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---- Demande de rattachement --------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  counter-reset: step;
}
.steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 1rem 0;
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-2);
}
.steps li[data-done], .steps li[data-now] { color: var(--ink); }
.steps__mark {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.steps li[data-done] .steps__mark {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23f2f0ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: none;
}
/* L'étape en cours respire : c'est la seule chose qui bouge sur la page. */
.steps li[data-now] .steps__mark { animation: st-pulse 2.4s ease-in-out infinite; }
@keyframes st-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 0 rgba(11, 11, 12, 0.18); }
  50% { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 0.5rem rgba(11, 11, 12, 0); }
}

.st-note {
  margin-top: 1.5rem !important;
  max-width: 40rem;
  padding-left: 0.875rem;
  border-left: 2px solid var(--ink);
  font: 450 0.9375rem/1.5 var(--grot);
  font-stretch: 92%;
}
.st-note--warn { border-left-color: var(--warn); }
.st-error { font: 450 0.9375rem/1.5 var(--grot); color: var(--warn); }
.claim-form { margin-top: 2.25rem; }

/* ---- Paramètres -------------------------------------------------------------- */

.panel { display: grid; gap: 3rem; padding-top: 2.5rem; }
.set {
  max-width: 40rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
}
.set--danger { border-top-color: var(--warn); }
.set--danger .set__title { color: var(--warn); }
.set__lede {
  padding-top: 0.625rem;
  font: 450 0.9375rem/1.5 var(--grot);
  font-stretch: 92%;
  color: var(--ink-2);
  text-wrap: pretty;
}
.set__value { padding-top: 0.75rem; font: 500 1.0625rem/1.3 var(--grot); overflow-wrap: anywhere; }
.set__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}
.set__msg { flex-basis: 100%; font: 500 0.8125rem/1.4 var(--grot); }
.set__msg:empty { display: none; }
.set__msg[data-kind="warn"] { color: var(--warn); }
.set__msg[data-kind="ok"]::before {
  content: "";
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--good);
  vertical-align: 0.0625rem;
}
.auth__hint {
  padding-top: 0.375rem;
  font: 450 0.75rem/1.4 var(--grot);
  font-stretch: 92%;
  color: var(--ink-2);
}
.st-count { text-align: right; font-family: var(--mono); font-size: 0.625rem; }
.studio .auth__field > .auth__label { margin-top: 1.25rem; }
.st-textarea { resize: vertical; min-height: 6rem; line-height: 1.5 !important; }
.st-select { appearance: none; padding-right: 1.5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b0b0c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 0.25rem center / 0.75rem no-repeat; cursor: pointer; }
.st-code { font: 500 1.5rem/1.2 var(--mono) !important; letter-spacing: 0.35em; max-width: 12rem; }

/* Boutons : la pastille d'encre du site ; la flèche de « Explore collections ». */
.st-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6875rem 1.25rem;
  border-radius: 999px;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-weight: 900 !important;
  font-stretch: 62%;
  font-size: 1.1875rem !important;
  line-height: 1 !important;
  letter-spacing: 0;
  word-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s var(--spring), opacity 0.2s;
}
.st-btn:has(.st-btn__arrow) { padding: 0.375rem 0.375rem 0.375rem 1.25rem; }
.st-btn:active { transform: scale(0.97); }
.st-btn:focus-visible, .st-btn:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.st-btn--ghost { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.st-btn--danger { background: var(--warn) !important; }
.st-btn[data-busy] { opacity: 0.55; cursor: progress; }
.st-btn__arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(242, 240, 236, 0.6);
  border-radius: 50%;
  transition: rotate 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
.st-btn__arrow svg { height: 0.5625rem; }
.st-btn:hover .st-btn__arrow { rotate: -45deg; transition: rotate 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.st-btn[data-busy] .st-btn__arrow { animation: st-spin 0.9s linear infinite; }
label.st-btn { position: relative; }

.st-link {
  font: 500 0.875rem/1 var(--grot) !important;
  color: var(--ink-2) !important;
  text-decoration: underline 1px;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 0.25em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.st-link:hover { color: var(--ink) !important; text-decoration-color: currentColor; }
.st-link:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* Photo de profil : l'étiquette d'un disque. */
.avatar-edit { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.5rem; }
.avatar-disc {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #111112 0 1px, #1d1d1f 1px 2.5px);
  box-shadow: 0 0.75rem 1.75rem -1rem rgba(0, 0, 0, 0.6);
}
.avatar-disc img, .avatar-disc span {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-disc span {
  display: grid;
  place-items: center;
  background: var(--paper);
  font: 900 2.75rem/1 var(--grot);
  font-stretch: 62%;
}
.avatar-disc span:empty { display: none; }
.avatar-edit__actions { display: grid; justify-items: start; gap: 0.625rem; }

/* 2FA */
.mfa-state {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mfa-state__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--ink-2); }
.mfa-state[data-on] .mfa-state__dot { background: var(--good); box-shadow: none; }
.mfa-steps { display: grid; gap: 1.5rem; padding-top: 1.25rem; counter-reset: mfa; }
.mfa-steps > li { counter-increment: mfa; position: relative; padding-left: 2.25rem; font: 450 0.9375rem/1.5 var(--grot); }
.mfa-steps > li::before {
  content: counter(mfa);
  position: absolute;
  left: 0;
  top: -0.125rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 900 0.9375rem/1 var(--grot);
  font-stretch: 62%;
}
.mfa-qr {
  display: inline-grid;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink-3);
}
.mfa-qr img { display: block; width: 11rem; height: 11rem; }
.mfa-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-top: 0.375rem; }
.mfa-secret code {
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(11, 11, 12, 0.06);
  font: 500 0.8125rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  user-select: all;
}

/* Activité */
.activity { padding-top: 1rem; }
.activity__row {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ink-3);
}
.activity__what { font-weight: 900; font-stretch: 62%; font-size: 1.125rem; line-height: 1.1; text-transform: uppercase; }
.activity__row[data-ok="false"] .activity__what { color: var(--warn); }
.activity__when { justify-self: end; font: 500 0.6875rem/1.6 var(--mono); color: var(--ink-2); }
.activity__where { grid-column: 1 / -1; font: 500 0.6875rem/1.4 var(--mono); color: var(--ink-2); }
.activity__empty { padding-top: 0.25rem; font: 450 0.9375rem/1.5 var(--grot); color: var(--ink-2); }

/* ---- Page perso (module à venir) ------------------------------------------- */

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2.5rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.soon__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #d8863a; }

/* ---- Validation (administration) ------------------------------------------- */

.claims { display: grid; gap: 2.25rem; padding-top: 2.5rem; }
.claim { max-width: 44rem; padding-top: 0.75rem; border-top: 2px solid var(--ink); }
.claim[data-status="approved"], .claim[data-status="rejected"] { border-top-width: 1px; opacity: 0.72; }
.claim__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.claim__name { font-weight: 900; font-stretch: 62%; font-size: 2rem; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.claim__status {
  flex: none;
  padding: 0.3125rem 0.5rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-3);
  font: 500 0.5625rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.claim[data-status="pending"] .claim__status { background: var(--ink); color: var(--paper); box-shadow: none; }
.claim__who { padding-top: 0.5rem; font: 500 0.6875rem/1.5 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.claim__link { padding-top: 0.5rem; font: 500 0.875rem/1.4 var(--grot); overflow-wrap: anywhere; }
.claim__link a { color: var(--ink); text-underline-offset: 0.2em; }
.claim__msg { padding-top: 0.75rem; font: 450 0.9375rem/1.5 var(--grot); white-space: pre-line; }
.claim__decide { max-width: 30rem; }

/* ---- Tablette et mobile --------------------------------------------------- */

@media (max-width: 1024px) {
  .studio { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 6rem; }
  .studio__rail { position: static; }
  .rail { padding: 0.875rem 1rem 1rem; border-radius: 1.5rem; }
  .rail__who { padding: 0.875rem 0 0.75rem; }
  .rail__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    padding-top: 0.25rem;
  }
  .rail__link { flex: none; border-bottom: 0; padding: 0.625rem 0 0.5rem 1.25rem; font-size: 1.25rem; }
  .rail__link:hover { padding-left: 1.25rem; }
  .rail__out { margin-top: 0.5rem; }
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .hero__disc { width: min(72vw, 20rem); }
  .hero__card { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--ink-3); }
}
@media (max-width: 640px) {
  .view__head { grid-template-columns: minmax(0, 1fr); }
  .view__period, .view__tabs { justify-self: stretch; width: 100%; }
  .studio .seg__label { font-size: 1.0625rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 0.75rem 0; border-bottom: 1px solid var(--ink-3); }
  .bars { --plot: 10rem; grid-template-columns: 2rem minmax(0, 1fr); }
  .bars__plot, .bars__axis { gap: 1px; }
  .bar i { border-radius: 2px 2px 0 0; }
  /* Tableau des disques en fiches empilées. */
  .rel-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rel-table, .rel-table tbody, .rel-table tr { display: block; }
  .rel-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem 0.5rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--ink-3);
  }
  .rel-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .rel-table td { display: grid; gap: 0.3125rem; padding: 0; border: 0; text-align: left; }
  .rel-table td::before {
    content: attr(data-label);
    font: 500 0.5625rem/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .rel-table .rel-table__spark { display: none; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
  .activity__row { grid-template-columns: minmax(0, 1fr); }
  .activity__when { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__disc[data-spinning] .disc, .steps li[data-now] .steps__mark, .st-btn[data-busy] .st-btn__arrow { animation: none; }
  .bar i { animation: none; }
  .rail__link, .rel .disc, .hero__disc .disc, .st-btn__arrow { transition: none; }
}

/* ============================================================================
 * Panel administrateur (/admin, assets/admin.js) — même grammaire que le
 * studio, quelques pièces en plus : filtres, étiquettes, fiche, journal.
 * ========================================================================== */

/* Lien vers l'autre panel (studio ↔ administration), sous la navigation. */
.rail__cross {
  display: block;
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink) !important;
  transition: background-color 0.2s, color 0.2s;
}
.rail__cross:hover { background: var(--ink); color: var(--paper) !important; }
.rail__cross:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rail__tag--hot { background: var(--ink); color: var(--paper); box-shadow: none; }

.kpis--second { border-top-width: 1px; margin-top: 1.5rem; }
.todo { margin: 0 0 1.75rem !important; }
.todo .st-link { margin-left: 0.5rem; color: var(--ink) !important; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
.more { padding-top: 1rem; }

/* Étiquettes (rôle, statut) : pastilles mono, encre pleine pour « Admin ». */
.tag {
  display: inline-block;
  padding: 0.25rem 0.4375rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-3);
  font: 500 0.5625rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  vertical-align: 0.125em;
}
.tag--ink { background: var(--ink); color: var(--paper); box-shadow: none; }
.tag--hot { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.tag--warn { box-shadow: inset 0 0 0 1.5px var(--warn); color: var(--warn); }

/* Barre d'outils de la liste : recherche + filtres. */
.users { padding-top: 2rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; padding-bottom: 1.25rem; }
.search { flex: 1 1 16rem; max-width: 24rem; }
.search .auth__input { padding-left: 1.625rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20 20l-4.8-4.8'/%3E%3C/svg%3E") left 0.125rem center / 1rem no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-3);
  font: 900 0.9375rem/1 var(--grot) !important;
  font-stretch: 62% !important;
  text-transform: uppercase;
  color: var(--ink-2) !important;
  transition: box-shadow 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink) !important; }
.chip[aria-pressed="true"] { background: var(--ink) !important; color: var(--paper) !important; box-shadow: none; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip__n { font: 500 0.625rem/1 var(--mono); opacity: 0.7; }

/* Tableau des comptes. */
.users-table td { font: 500 0.8125rem/1.35 var(--grot); text-align: left; }
.users-table thead th { text-align: left; }
.who { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; min-width: 0; }
.who:hover .rel__title { text-decoration-color: currentColor; }
.who:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 0.5rem; }
.who__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #121213 0 1px, #1e1e20 1px 2.4px);
}
.who__avatar img, .who__avatar span { width: 64%; height: 64%; border-radius: 50%; object-fit: cover; }
.who__avatar span { display: grid; place-items: center; background: var(--paper); font: 900 0.875rem/1 var(--grot); font-stretch: 62%; }
.rel__meta--plain { text-transform: none; letter-spacing: 0; }

/* Fiche d'un compte. */
.back { padding-top: 2rem; }
.user__head { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.5rem; }
.avatar-disc--sm { width: 6.5rem; height: 6.5rem; }
.avatar-disc--sm span { font-size: 2rem; }
.user__id { min-width: 0; }
.user__name { font-weight: 900; font-stretch: 62%; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 0.9; text-transform: uppercase; overflow-wrap: anywhere; }
.user__mail { padding-top: 0.5rem; font: 500 0.875rem/1.3 var(--mono); overflow-wrap: anywhere; }
.user__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; padding-top: 0.625rem; }
.user__bio { max-width: 40rem; padding-top: 1.25rem; font: 450 0.9375rem/1.5 var(--grot); color: var(--ink-2); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.75rem !important;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.facts > div { padding: 0.625rem 0.75rem 0.75rem; min-width: 0; }
.facts > div:first-child { padding-left: 0; }
.facts > div + div { border-left: 1px solid var(--ink-3); }
.facts dt { font: 500 0.5625rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { padding-top: 0.375rem; font: 500 0.875rem/1.35 var(--grot); overflow-wrap: anywhere; }
.links { padding-top: 1rem; }
.links li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; border-bottom: 1px solid var(--ink-3); font-weight: 900; font-stretch: 62%; font-size: 1.25rem; text-transform: uppercase; }
.set__sub { margin: 1.5rem 0 0; font: 500 0.625rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

/* Journal. */
.audit { padding-top: 2rem; }
.audit--mini { padding-top: 0.5rem; }
.audit__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ink-3);
}
.audit__what { font-weight: 900; font-stretch: 62%; font-size: 1.125rem; line-height: 1.1; text-transform: uppercase; }
.audit__row[data-action="suspend"] .audit__what,
.audit__row[data-action="user_delete"] .audit__what { color: var(--warn); }
.audit__when { justify-self: end; font: 500 0.6875rem/1.6 var(--mono); color: var(--ink-2); white-space: nowrap; }
.audit__detail { grid-column: 1 / -1; font: 500 0.6875rem/1.5 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.audit__detail .st-link { font: inherit !important; }

/* Artistes : plusieurs disques par ligne, en éventail. */
.artists-table .rel { gap: 0; }
.artists-table .rel .disc + .disc { margin-left: -1.25rem; }
.artists-table .rel__text { padding-left: 0.875rem; }
.artists-table td { text-align: right; }
.artists-table td:nth-child(2) { text-align: left; font: 500 0.8125rem/1.6 var(--grot); }
.artists-table thead th:nth-child(2) { text-align: left; }

@media (max-width: 1024px) {
  .adm-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--ink-3); }
}
@media (max-width: 640px) {
  .users-table tr, .artists-table tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user__head { flex-direction: column; align-items: flex-start; }
  .audit__row { grid-template-columns: minmax(0, 1fr); }
  .audit__when { justify-self: start; }
}
.flash { margin: 0 0 1.25rem !important; }
[data-artists] { padding-top: 2.5rem; }
@media (max-width: 640px) {
  .users-table td, .artists-table td { justify-items: start; }
}

/* ---- Page perso (studio) : carte vers l'éditeur ---- */
.pages { display: grid; gap: 2rem; padding-top: 2.5rem; }
.page-card { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; align-items: center; max-width: 48rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.page-card__disc .disc { --d: 10rem; }
.page-card__name { font-weight: 900; font-stretch: 62%; font-size: 2.5rem; line-height: 0.9; text-transform: uppercase; }
.page-card__url { padding-top: 0.5rem; font: 500 0.75rem/1.3 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.page-card__state { padding-top: 0.75rem; font: 450 0.9375rem/1.45 var(--grot); font-stretch: 92%; }
.page-card .set__actions { margin-top: 1.25rem; }
a.st-btn { text-decoration: none; }
@media (max-width: 640px) {
  .page-card { grid-template-columns: minmax(0, 1fr); }
  .page-card__disc .disc { --d: 7rem; }
}
