/* Panel de artistas de Magnus Media. Una aplicación de trabajo: barra lateral, tablas y fichas.
   De la marca, el logotipo y los acentos (negro, dorado, azul); la letra es la del sistema. */
:root {
  --black: #000;
  --white: #fff;
  --gold: #e4bc77;
  --gold-wash: #fbf3df;
  --gold-line: #ead7a6;
  --gold-ink: #6b4e12;
  --blue: #33414e;
  --blue-wash: #e9eef3;
  --bg: #f6f6f7;
  --soft: #efeff2;
  --line: #e6e6ea;
  --line-strong: #d2d2d8;
  --field: #8c8c96; /* borde de campos: 3,3:1 sobre blanco */
  --ink: #111113;
  --muted: #62626d; /* 5,9:1 sobre blanco */
  --ok: #1c8a4d;
  --warn: #b7791f;
  --off: #9a9aa4;
  --bad: #b42318;
  --bad-wash: #fdecea;
  --side: 232px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--blue);
  text-underline-offset: 2px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.ico {
  flex: none;
}

/* --- Estructura: barra lateral y contenido --- */
.app {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px 12px 12px;
  background: var(--black);
  color: var(--white);
}
.side :focus-visible {
  outline-color: var(--gold);
}
.side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 20px;
  color: var(--white);
  text-decoration: none;
}
.side__brand span {
  padding-left: 10px;
  border-left: 1px solid rgb(255 255 255 / 0.24);
  color: rgb(255 255 255 / 0.66);
  font-size: 12.5px;
  font-weight: 550;
}
.side__nav {
  display: grid;
  gap: 2px;
}
.side__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  color: rgb(255 255 255 / 0.74);
  font-weight: 550;
  text-decoration: none;
}
.side__nav a:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
}
.side__nav a[aria-current] {
  background: rgb(255 255 255 / 0.13);
  color: var(--white);
}
.side__nav a[aria-current] .ico {
  color: var(--gold);
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  color: var(--white);
  font-size: 12px;
  font-weight: 650;
}
.count--gold {
  background: var(--gold);
  color: var(--black);
}
.side__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 6px 2px 10px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.side__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 650;
}
.side__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side__name small {
  display: block;
  color: rgb(255 255 255 / 0.66);
  font-size: 12px;
}
.side__out {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: rgb(255 255 255 / 0.74);
  cursor: pointer;
}
.side__out:hover {
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
}
main {
  width: 100%;
  max-width: 1240px;
  padding: 26px clamp(16px, 3vw, 40px) 72px;
}
main:focus {
  outline: 0;
}

/* --- Cabecera de página --- */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 36px;
  margin-bottom: 18px;
}
.top__title {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.top__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
h1 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.top__meta {
  color: var(--muted);
  font-size: 13.5px;
}
.top__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  justify-self: start;
  margin-left: -4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.back:hover {
  color: var(--ink);
}
.dirty {
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 550;
}

/* --- Botones y enlaces --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--black);
  border-radius: 7px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  background: #2a2a2f;
}
.btn--ghost {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--field);
  background: var(--bg);
}
.btn--gold {
  border-color: #d3a85c;
  background: var(--gold);
  color: var(--black);
}
.btn--gold:hover {
  background: #dcb269;
}
.btn--s {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}
.btn--wide {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* --- Campos --- */
label,
legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 550;
}
input:not([type='radio'], [type='hidden'], [type='range']),
select,
textarea {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--field);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
textarea {
  display: block;
  height: auto;
  min-height: 120px;
  padding: 9px 10px;
  line-height: 1.5;
  resize: vertical;
}
input::placeholder {
  color: var(--muted);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--blue);
}
.field--bad input,
.field--bad textarea {
  border-color: var(--bad);
}
.field__hint {
  margin-top: 6px;
  color: var(--gold-ink);
  font-size: 12.5px;
}
.field__error {
  margin-top: 6px;
  color: var(--bad);
  font-size: 12.5px;
  font-weight: 550;
}
.search {
  width: 240px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.grid2__all {
  grid-column: 1 / -1;
}
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--soft);
}
.seg label {
  position: relative;
  margin: 0;
}
.seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.seg span,
.seg button {
  display: block;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
}
.seg input:checked + span,
.seg button[aria-selected='true'] {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line-strong);
  color: var(--ink);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.seg input:disabled + span {
  opacity: 0.45;
}
.seg input:disabled {
  cursor: not-allowed;
}
.seg--s span,
.seg--s button {
  padding: 3px 10px;
}
.seg__flag::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--warn);
  vertical-align: middle;
}

/* --- Tarjetas, avisos y etiquetas --- */
.card {
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
/* tarjetas seguidas en una página (fuera de una rejilla, que ya trae su separación) */
main > .card + .card,
main > form > .card + .card {
  margin-top: 18px;
}
.card h2 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 650;
}
.card h2 small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin-bottom: 14px;
}
.card__head h2 {
  margin: 0;
}
.card--table {
  padding: 0;
  overflow-x: auto;
}
.empty {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}
.alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 13.5px;
}
.alert--pending {
  border-color: var(--gold-line);
  background: var(--gold-wash);
}
.alert--pending b {
  margin-right: 6px;
}
.alert--bad {
  border-color: #f1c1bb;
  background: var(--bad-wash);
  color: #7a1a12;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  white-space: nowrap;
}
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--off);
}
.state--cartel .dot {
  background: var(--ok);
}
.state--pagina .dot {
  background: var(--warn);
}
.top .state {
  padding: 3px 10px 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 550;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.pill--pending {
  background: var(--gold-wash);
  color: var(--gold-ink);
}
.pill--news {
  background: var(--blue-wash);
  color: var(--blue);
}
.pill--bad {
  background: var(--bad-wash);
  color: var(--bad);
}
.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}
.avatar--none {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.avatar--s {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
}
.avatar--l {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.who b {
  font-weight: 600;
}
.who small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
a.who:hover b {
  text-decoration: underline;
}

/* --- Pestañas y tabla --- */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--ink);
}
.tabs a[aria-current] {
  border-color: var(--black);
  color: var(--ink);
}
.tabs span {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafafb;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  text-align: left;
  white-space: nowrap;
}
.table td {
  height: 56px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover td {
  background: #fafafb;
}
.table .t-num {
  width: 64px;
  text-align: center;
}
.table--stack th:first-child {
  width: 36%;
}
.table .t-end {
  text-align: right;
  white-space: nowrap;
}
.table .t-end > * {
  margin-left: 4px;
  vertical-align: middle;
}
.table .t-end form {
  display: inline-block;
}
.table .t-what::first-letter {
  text-transform: uppercase;
}
.none {
  color: var(--muted);
}
form.state {
  position: relative;
}
form.state .dot {
  position: absolute;
  left: 9px;
  pointer-events: none;
}
form.state select {
  width: auto;
  height: 30px;
  margin-left: -1px;
  padding: 0 28px 0 24px;
  border-color: transparent;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2362626d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E")
    no-repeat right 8px center / 12px;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}
form.state select:hover,
form.state select:focus-visible {
  border-color: var(--field);
  background-color: var(--white);
}

/* --- Cartel: filas de la portada --- */
.board {
  display: grid;
  gap: 18px;
}
.board__rows {
  padding: 4px 0;
}
.lane {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  padding: 10px 18px;
}
.lane + .lane {
  border-top: 1px solid var(--line);
}
.card .lane h2 {
  margin: 0;
  padding-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.zone {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  padding: 2px;
  border-radius: 8px;
}
.zone:not(:has(.chip))::before {
  content: 'Vacío';
  padding: 7px 6px;
  color: var(--muted);
  font-size: 13px;
}
.board--dragging .zone {
  outline: 1px dashed var(--line-strong);
  outline-offset: 2px;
}
.chip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.chip a:hover {
  border-color: var(--field);
}
.chip--changed a {
  border-color: var(--gold-line);
  background: var(--gold-wash);
}
.chip--drag a {
  border-color: var(--black);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.16);
  cursor: grabbing;
}

/* --- Ficha --- */
.detail .top,
.frame .top {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -14px 0 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 18px;
}
.detail__main,
.detail__side {
  display: grid;
  gap: 18px;
  min-width: 0;
}
[data-tabs].tabs--on [data-panel] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[data-panel] + [data-panel] {
  margin-top: 16px;
}
.shot {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--soft);
}
.shot--portrait {
  width: 46%;
  margin-top: 10px;
}
.shot--none {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--muted);
  font-size: 13px;
}
.shot--none.shot--portrait {
  aspect-ratio: 4 / 5;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
}
.facts div + div {
  border-top: 1px solid var(--line);
}
.facts div:first-child {
  padding-top: 0;
}
.facts div:last-child {
  padding-bottom: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  overflow-wrap: anywhere;
  text-align: right;
}

/* --- Fotos y encuadre --- */
.now {
  display: grid;
  grid-template-columns: minmax(0, 16fr) minmax(0, 7fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}
.now .shot--portrait {
  width: 100%;
  margin: 0;
}
.pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px 16px;
}
/* las que no valen para la tira: se enseñan en pequeño */
.pick--s {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px 12px;
}
.pick img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--soft);
  object-fit: contain;
}
.pick p,
.pick form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.pick__off {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
.pick__off:hover {
  color: var(--bad);
}
/* --- vídeos y tira de fotos: listas que se ordenan y en las que se elige qué sale --- */
.rows {
  margin: 0 -8px -6px;
}
.rows a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 8px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.rows li + li {
  border-top: 1px solid var(--line);
}
.rows a:hover {
  background: var(--soft);
}
.rows .ico {
  color: var(--muted);
}
.pill--plain {
  background: var(--soft);
  color: var(--muted);
}
.sort {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sort__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.sort__row:first-child {
  padding-top: 0;
  border-top: 0;
}
.sort__row:last-child {
  padding-bottom: 0;
}
.sort__thumb {
  flex: none;
  width: 112px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: var(--soft);
  object-fit: cover;
}
.sort__text {
  display: grid;
  flex: 1 1 200px;
  gap: 2px;
  min-width: 0;
}
.sort__text a {
  overflow: hidden;
  color: inherit;
  font-weight: 550;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sort__text a:hover {
  text-decoration: underline;
}
.sort__text small {
  color: var(--muted);
  font-size: 13px;
}
.sort__ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.sort__grip {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 30px;
  border-radius: 4px;
  color: var(--field);
  cursor: grab;
  touch-action: none;
}
.sort__grip:hover {
  background: var(--soft);
  color: var(--ink);
}
.sort__grip .ico {
  stroke-width: 2.2;
}
.sort__move {
  display: inline-flex;
  gap: 4px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--soft);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--black);
}
.sort__over {
  display: none;
}
.is-over .sort__over {
  display: inline-flex;
}
/* lo que no sale (oculto o porque no cabe) se ve apagado; el texto conserva su contraste */
.is-off .sort__thumb,
.is-off .sort__pic,
.is-over .sort__thumb,
.is-over .sort__pic {
  opacity: 0.4;
}
.is-off .sort__text a {
  color: var(--muted);
  font-weight: 400;
}
.is-drag {
  background: var(--gold-wash);
  box-shadow: 0 0 0 6px var(--gold-wash);
  border-radius: 4px;
}
.is-drag .sort__grip {
  cursor: grabbing;
}
.sort--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px 16px;
}
.sort__tile {
  display: grid;
  align-content: start;
  gap: 8px;
}
.sort__pic {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--soft);
  object-fit: contain;
}
.sort__tile .sort__ctl {
  margin-left: 0;
  gap: 6px;
}
.sort__tile .sort__move {
  margin-left: auto;
}
.frame__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  gap: 18px;
}
.pad {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
  line-height: 0;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.pad img {
  width: auto;
  height: auto;
  max-height: 62vh;
}
.pad--live {
  cursor: crosshair;
}
.pad__dot {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--black),
    inset 0 0 0 2px var(--black);
  pointer-events: none;
}
.ranges {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  max-width: 460px;
  margin-top: 16px;
}
.ranges label {
  margin: 0;
}
.ranges input {
  width: 100%;
  accent-color: var(--black);
}
.views {
  display: grid;
  gap: 16px;
}
.view div {
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}
.view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.view--wide div {
  aspect-ratio: 16 / 9;
}
.view--tall div {
  aspect-ratio: 3 / 4;
  max-width: 200px;
}
.view--portrait div {
  aspect-ratio: 4 / 5;
  max-width: 300px;
}

/* --- Novedades --- */
.news {
  margin-bottom: 18px;
  padding-bottom: 6px;
}
.news .card__head {
  margin-bottom: 4px;
}
.prop {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.prop h3 {
  padding-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.prop__body {
  min-width: 0;
  padding-top: 5px;
}
.prop__go {
  display: flex;
  gap: 6px;
}
.prop__diff {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  overflow-wrap: anywhere;
}
.prop__old {
  color: var(--muted);
  text-decoration: line-through;
}
.prop__arrow {
  color: var(--muted);
}
.prop__new {
  font-weight: 550;
}
.prop i {
  font-style: normal;
}
.prop__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: -5px;
}
.prop h4 {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
}
.prop__text {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-line;
}
.prop__text--new {
  background: var(--gold-wash);
}
.prop__shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.prop__shots img {
  width: auto;
  height: 96px;
  border-radius: 6px;
  background: var(--soft);
}

/* --- Avisos breves --- */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 8px;
}
.toast {
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.2);
  color: var(--white);
  font-size: 13.5px;
}
.toast--bad {
  background: var(--bad);
}
.toast a {
  margin-left: 10px;
  color: var(--gold);
  font-weight: 550;
}

/* --- Entrada --- */
.door {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--black);
}
.door main {
  width: min(100%, 372px);
  padding: 0;
}
.door__logo {
  margin: 0 auto 30px;
}
.door__box {
  padding: 26px 26px 24px;
  border-radius: 12px;
  background: var(--white);
}
.door h1 {
  margin-bottom: 18px;
  font-size: 18px;
}
.door__sub {
  margin: -10px 0 18px;
  color: var(--muted);
}
.door input:not([type='hidden']) {
  height: 42px;
  margin-bottom: 14px;
}
.door__code {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
  text-align: center;
}
.door .btn {
  height: 42px;
}
.door__alt {
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1040px) {
  .table .t-wide {
    display: none;
  }
  .detail__grid,
  .frame__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail__side {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
  }
}
@media (max-width: 880px) {
  .app {
    display: block;
  }
  .side {
    z-index: 10;
    flex-flow: row wrap;
    align-items: center;
    height: auto;
    padding: 10px 12px 0;
  }
  .side__brand {
    flex: 1;
    padding: 4px 4px 10px;
  }
  .side__user {
    order: 2;
    margin: 0;
    padding: 0 0 10px;
    border: 0;
  }
  .side__name {
    display: none;
  }
  .side__nav {
    order: 3;
    display: flex;
    width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
  }
  .side__nav a {
    flex: none;
  }
  .count {
    margin-left: 2px;
  }
  main {
    padding: 18px 16px 64px;
  }
  .detail .top,
  .frame .top {
    position: static;
    margin-top: 0;
    padding-top: 0;
  }
}
@media (max-width: 640px) {
  .sort__thumb {
    width: 88px;
  }
  .sort__text {
    flex-basis: 140px;
  }
  .sort__row .sort__ctl {
    width: 100%;
    justify-content: flex-end;
  }
  .sort--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid2,
  .now,
  .prop__cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .table th,
  .table td {
    padding-inline: 12px;
  }
  /* la tabla de artistas, en móvil: cada fila es nombre + estado y, debajo, sus avisos */
  .table--stack,
  .table--stack tbody {
    display: block;
  }
  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table--stack tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 6px 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  .table--stack tr[hidden] {
    display: none;
  }
  .table--stack tbody tr:last-child {
    border-bottom: 0;
  }
  .table--stack td {
    height: auto;
    padding: 0;
    border: 0;
  }
  .table--stack .t-num {
    display: none;
  }
  .table--stack .t-flags {
    grid-column: 1 / -1;
    padding-left: 46px;
    text-align: left;
  }
  .table--stack .t-flags:not(:has(.pill:not([hidden]))) {
    display: none;
  }
  .table--stack .t-flags > * {
    margin: 0 4px 0 0;
  }
  .table--stack .t-end:not(.t-flags) {
    padding-right: 6px;
  }
  .who small {
    overflow-wrap: anywhere;
  }
  .side__nav {
    justify-content: space-between;
  }
  .side__nav .ico {
    display: none;
  }
  .side__nav a {
    gap: 6px;
    padding: 0 9px;
  }
  .search {
    width: 100%;
  }
  .top__actions:has(.search) {
    width: 100%;
  }
  .lane {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 14px;
  }
  .card .lane h2 {
    padding: 0 0 6px;
  }
  .prop {
    grid-template-columns: minmax(0, 1fr);
  }
  .prop h3,
  .prop__body {
    padding-top: 0;
  }
  .now .shot--portrait {
    max-width: 200px;
  }
  .toasts {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .chip a,
  .side__nav a,
  .seg span,
  .seg button,
  .icon-btn,
  .rows a,
  form.state select {
    transition:
      background-color 0.12s,
      border-color 0.12s,
      color 0.12s;
  }
  .toast {
    animation: toast-in 0.18s ease-out;
  }
  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
  }
}
