/*
 * Part 2 of 8 — sequential slice of the original styles.css.
 * These files preserve the exact original rule order and must stay linked
 * in this sequence in index.html; splitting was done at safe top-level
 * rule boundaries only (no reordering), so cascading overrides keep working.
 */
.admin-solicitud-row.is-selected button {
  transform: translateY(-1px);
  border-color: rgba(31, 28, 22, 0.26);
  background: rgba(255, 255, 255, 0.94);
}

.admin-solicitud-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-solicitud-row__meta,
.admin-solicitud-row__date,
.admin-solicitud-detail__block p,
.admin-solicitud-detail__block small,
.admin-solicitud-document span,
.admin-solicitud-document small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-solicitud-state,
.admin-solicitud-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-solicitud-state--pendiente {
  background: rgba(239, 225, 38, 0.26);
  color: var(--text);
}

.admin-solicitud-state--aprobada {
  background: rgba(112, 140, 105, 0.16);
  color: var(--sage);
}

.admin-solicitud-state--rechazada {
  background: rgba(155, 95, 64, 0.16);
  color: var(--clay);
}

.admin-solicitud-state--observada {
  background: rgba(177, 133, 64, 0.18);
  color: #7a5621;
}

.admin-solicitud-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-solicitud-detail__head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.16;
}

.admin-solicitud-detail__block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(31, 28, 22, 0.1);
  border-radius: 18px;
  background: rgba(31, 28, 22, 0.035);
}

.admin-solicitud-detail__block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.admin-solicitud-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-solicitud-data-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-solicitud-data-grid strong {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-solicitud-document {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-solicitud-document div {
  display: grid;
  gap: 3px;
}

.admin-solicitud-document a {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admin-solicitud-review label {
  display: grid;
  gap: 7px;
}

.admin-solicitud-review label span {
  font-weight: 800;
}

.admin-solicitud-review textarea {
  min-height: 128px;
  resize: vertical;
}

.admin-solicitud-review__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-solicitud-review__actions p {
  margin: 0;
  color: var(--clay);
  font-weight: 800;
}

.admin-solicitud-review__actions p.is-success {
  color: var(--sage);
}

.admin-solicitud-metrics {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.admin-solicitud-metric {
  min-height: 116px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 237, 0.9)),
    rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 38px rgba(31, 28, 22, 0.08);
}

.admin-solicitud-metric__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-solicitud-metric strong {
  align-self: end;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.admin-solicitud-metric small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.admin-solicitudes-workspace {
  grid-template-columns: minmax(380px, 0.86fr) minmax(520px, 1.14fr);
  gap: 22px;
}

.admin-solicitudes-panel,
.admin-solicitud-detail {
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 22px 48px rgba(31, 28, 22, 0.1);
}

.admin-solicitudes-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-solicitudes-panel__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.16;
}

.admin-solicitudes-panel__head span {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-solicitud-filters {
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.46fr) minmax(130px, 0.46fr);
  margin: 18px 0;
  padding: 12px;
  border: 1px solid rgba(31, 28, 22, 0.08);
  border-radius: 20px;
  background: rgba(31, 28, 22, 0.035);
}

.admin-solicitud-filters label {
  display: grid;
  gap: 6px;
}

.admin-solicitud-filters label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-solicitud-filters input,
.admin-solicitud-filters select {
  min-height: 44px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-solicitud-list {
  max-height: min(760px, calc(100vh - 330px));
  overflow-y: auto;
  padding-right: 4px;
}

.admin-solicitud-row button {
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 0;
  min-height: 118px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-solicitud-row__accent {
  display: block;
  align-self: stretch;
  min-height: 100%;
  background: rgba(31, 28, 22, 0.18);
}

.admin-solicitud-row__accent--pendiente {
  background: var(--amber);
}

.admin-solicitud-row__accent--aprobada {
  background: var(--sage);
}

.admin-solicitud-row__accent--rechazada {
  background: var(--clay);
}

.admin-solicitud-row__accent--observada {
  background: #b18540;
}

.admin-solicitud-row__content {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
}

.admin-solicitud-row__top strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-solicitud-row__profile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-solicitud-row__profile span:first-child {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-solicitud-row__meta {
  font-size: 0.84rem;
}

.admin-solicitud-detail {
  position: sticky;
  top: 18px;
  align-content: start;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 22px;
}

.admin-solicitud-detail--empty {
  position: static;
  min-height: 280px;
  place-items: center;
}

.admin-solicitud-detail__head {
  align-items: start;
  padding: 2px 0 18px;
}

.admin-solicitud-detail__head h2 {
  max-width: 620px;
  margin: 2px 0 10px;
}

.admin-solicitud-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-solicitud-detail__date {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-solicitud-detail__block,
.admin-solicitud-review-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 28, 22, 0.09);
  border-radius: 22px;
  background: rgba(31, 28, 22, 0.03);
}

.admin-solicitud-detail__block--quiet {
  background: rgba(255, 255, 255, 0.58);
}

.admin-solicitud-detail__block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-solicitud-detail__block-head h3,
.admin-solicitud-review-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.admin-solicitud-detail__block-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-solicitud-data-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-solicitud-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-solicitud-info strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-solicitud-info span {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow-wrap: anywhere;
}

.admin-solicitud-copy {
  display: grid;
  gap: 10px;
}

.admin-solicitud-copy article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-solicitud-copy strong {
  font-weight: 800;
}

.admin-solicitud-copy p {
  margin: 0;
}

.admin-solicitud-document {
  border: 1px solid rgba(31, 28, 22, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.admin-solicitud-document a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  text-decoration: none;
}

.admin-solicitud-review-card {
  background:
    linear-gradient(135deg, rgba(239, 225, 38, 0.16), rgba(255, 253, 248, 0.86) 45%),
    rgba(255, 253, 248, 0.96);
}

.admin-solicitud-review-card > div > p:last-child {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-solicitud-review {
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 1fr);
  align-items: start;
}

.admin-solicitud-review label:last-of-type {
  grid-column: 2;
}

.admin-solicitud-review__actions {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.work-page {
  display: grid;
  gap: 28px;
  padding: 0;
}

.work-page__header {
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.work-page__header .section__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.work-page__header .section__eyebrow::before {
  content: "";
  width: 14px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--amber-deep);
}

.work-page__header h2 {
  margin: 0;
  font-family: var(--font-display-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.08;
}

.work-page__header > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.work-form {
  display: grid;
  gap: 22px;
  padding: 0;
}

.work-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-form__field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.work-form__field--full {
  grid-column: 1 / -1;
}

.work-form__field input,
.work-form__field select,
.work-form__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.work-form__field input:hover,
.work-form__field select:hover,
.work-form__field textarea:hover {
  border-color: rgba(31, 28, 22, 0.28);
}

.work-form__field textarea {
  resize: vertical;
}

.work-form__decade-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.work-form__decade-toggle input {
  width: auto;
  min-height: 0;
  padding: 0;
}

.work-form__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236a6254' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.work-form__block {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-form__block:focus-within {
  border-color: rgba(31, 28, 22, 0.28);
  box-shadow: 0 12px 32px rgba(31, 28, 22, 0.06);
}

.work-form__block--inner {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(31, 28, 22, 0.03);
}

.work-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.work-mode-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.work-mode-card:hover {
  border-color: rgba(31, 28, 22, 0.24);
}

.work-mode-card:has(input:checked) {
  border-color: var(--amber-deep);
  border-left-color: var(--amber-deep);
  background: rgba(239, 225, 38, 0.1);
}

.work-mode-card span {
  display: grid;
  gap: 7px;
}

.work-mode-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.work-mode-card small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.work-form__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.work-form__inline-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.work-form__counter {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.work-form__block > .work-form__section-head:first-child .section__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.work-form__block > .work-form__section-head:first-child .section__eyebrow::before {
  content: "";
  width: 12px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--amber-deep);
}

.work-form__section-head h3,
.work-form__split h4,
.work-form__inline-head h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.work-form__hint,
.work-form__field small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.work-form__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-check-grid--panel {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.work-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.07);
  font-weight: 800;
}

.keyword-picker {
  position: relative;
}

.keyword-picker__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.keyword-chip strong {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 28, 22, 0.12);
  line-height: 1;
}

.keyword-picker__control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.keyword-picker__control button {
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: var(--text);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.keyword-picker__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 22px 54px rgba(31, 28, 22, 0.18);
}

.keyword-picker__option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.keyword-picker__option:hover,
.keyword-picker__option:focus-visible {
  background: rgba(31, 28, 22, 0.07);
}

.keyword-picker__option--new {
  background: rgba(239, 225, 38, 0.22);
}

.keyword-picker__option small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.keyword-picker__empty {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.keyword-picker__status {
  min-height: 20px;
  color: var(--clay);
}

.work-inline-create {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(31, 28, 22, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.work-collection-grid {
  max-height: 280px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.work-collection-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.work-collection-card:hover {
  border-color: rgba(31, 28, 22, 0.24);
}

.work-collection-card:has(input:checked) {
  border-color: var(--amber-deep);
  background: rgba(239, 225, 38, 0.1);
}

.work-collection-card span {
  display: grid;
  gap: 4px;
}

.work-collection-card small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.work-participant-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(31, 28, 22, 0.03);
}

.work-participant-add {
  white-space: nowrap;
}

.work-participants-list {
  display: grid;
  gap: 12px;
}

.work-tracks-list {
  display: grid;
  gap: 14px;
}

.work-track-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.work-track-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-track-row__head strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.work-track-row__extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.work-track-participants .work-participants-list {
  gap: 8px;
}

.work-track-genres .work-check-grid {
  margin-top: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 720px) {
  .work-track-row__extra {
    grid-template-columns: 1fr;
  }
}

.work-participant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(31, 28, 22, 0.03);
}

.work-participant-row__author {
  display: grid;
  gap: 6px;
}

.work-participant-row__toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-participant-row__toggle-publico {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

.work-participant-row__toggle-publico input[type="checkbox"] {
  /* Este checkbox vive adentro de un .work-form__field (para heredar el layout del bloque
     "Autor nuevo"), que le pone min-height/width a sus inputs pensando en campos de texto
     — incluso con !important (07-admin-body-public-work.css) — sin este reset el checkbox
     se estira y termina pareciendo un botón enorme en vez de un checkbox chico. */
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  flex: 0 0 auto;
}

.work-participant-row__author [data-author-new] {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-participant-row__author [data-author-new] span {
  grid-column: 1 / -1;
}

.work-participant-row__remove {
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(155, 95, 64, 0.14);
  color: var(--clay);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.work-participant-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(31, 28, 22, 0.03);
  margin-bottom: 14px;
}

.work-participant-form__error {
  margin: 0;
  color: var(--clay);
  font-size: 0.85rem;
  font-weight: 700;
}

.work-participant-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.work-participant-chip div {
  display: grid;
  gap: 2px;
}

.work-participant-chip strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.work-participant-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.work-participant-chip small {
  color: var(--muted);
  font-size: 0.76rem;
}

.work-participant-chip__remove {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(155, 95, 64, 0.14);
  color: var(--clay);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.work-file-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px;
  border: 1px dashed rgba(31, 28, 22, 0.28);
  border-radius: var(--radius-md);
  background: rgba(31, 28, 22, 0.02);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.work-file-drop:hover {
  border-color: rgba(31, 28, 22, 0.44);
  background: rgba(31, 28, 22, 0.04);
}

.work-file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.work-file-drop__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(31, 28, 22, 0.08);
  font-size: 1.1rem;
}

.work-file-drop strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.work-file-drop span {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.work-file-drop.is-dragover {
  border-color: var(--amber-deep);
  background: rgba(239, 225, 38, 0.12);
}

.work-file-drop--compact {
  padding: 14px;
  gap: 2px;
}

.work-file-drop--compact .work-file-drop__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.work-file-drop--compact strong {
  font-size: 0.92rem;
}

.work-file-drop--compact span {
  font-size: 0.78rem;
}

.work-file-input {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(31, 28, 22, 0.12);
  border-radius: 16px;
  background: #fff;
  font: inherit;
}

.work-file-list {
  display: grid;
  gap: 10px;
}

.work-file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 28, 22, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.work-file-item > div {
  flex: 1;
  min-width: 0;
}

.work-file-item strong,
.work-file-item span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.work-file-item__remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(155, 95, 64, 0.14);
  color: var(--clay);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: background 0.2s ease;
}

.work-file-item__remove:hover {
  background: rgba(155, 95, 64, 0.26);
}

.work-file-item__thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(31, 28, 22, 0.06);
}

.work-file-item__thumb--icon {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.work-file-item div {
  display: grid;
  gap: 4px;
}

.work-file-item span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.work-file-item--processed {
  border-color: rgba(112, 140, 105, 0.28);
  background: rgba(112, 140, 105, 0.1);
}

.work-editor {
  display: grid;
  gap: 10px;
}

.work-editor__surface {
  min-height: 360px;
  border: 1px solid rgba(31, 28, 22, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(31, 28, 22, 0.03);
  line-height: 1.75;
  outline: none;
}

.work-editor .ql-toolbar.ql-snow {
  /* Fija debajo del nav (86px de alto) para que con textos largos no haya que scrollear
     hasta arriba del todo para volver a usar los botones de formato. */
  position: sticky;
  top: 86px;
  z-index: 5;
  border: 1px solid rgba(31, 28, 22, 0.14);
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(135deg, rgba(239, 225, 38, 0.12), transparent 60%),
    rgba(255, 253, 248, 0.98);
  font-family: var(--font-sans);
}

/* Dentro del panel de administración el editor vive adentro de un contenedor con
   overflow:hidden (admin-main--ajax, lo necesita para la animación de transición entre
   pantallas) — eso rompe el cálculo de "sticky" y la barra termina flotando en cualquier
   lado en vez de quedar fija arriba. Ahí la dejamos simplemente en su lugar natural. */
.admin-record-form .work-editor .ql-toolbar.ql-snow {
  position: static;
  top: auto;
}

.work-editor .ql-container.ql-snow {
  min-height: 360px;
  border: 1px solid rgba(31, 28, 22, 0.14);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.work-editor .ql-editor {
  min-height: 360px;
  padding: 28px;
  line-height: 1.78;
}

.work-editor .ql-editor h1,
.work-editor .ql-editor h2,
.work-editor .ql-editor h3 {
  font-family: var(--font-display);
  line-height: 1.12;
}

.work-editor .ql-editor img {
  max-width: 100%;
  border-radius: 18px;
}

.work-editor .ql-snow .ql-picker.ql-size .ql-picker-label::before,
.work-editor .ql-snow .ql-picker.ql-size .ql-picker-item::before {
  content: attr(data-value);
}

.work-editor__surface--fallback {
  padding: 26px;
}

.work-editor__surface--fallback:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-weight: 700;
}

.work-editor__surface--fallback h2,
.work-editor__surface--fallback h3 {
  font-family: var(--font-display);
  line-height: 1.1;
}

.work-editor__surface--fallback blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--amber);
  background: rgba(239, 225, 38, 0.14);
}

.work-editor__surface--fallback figure.work-editor-image {
  margin: 20px 0;
  display: grid;
  gap: 8px;
}

.work-editor__surface--fallback figure.work-editor-image img {
  max-width: 100%;
  border-radius: 18px;
}

.work-editor__surface--fallback figure.work-editor-image figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.work-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.work-form__status {
  min-height: 24px;
  color: var(--clay);
  font-weight: 800;
}

.work-form__status--success {
  color: var(--sage);
}

.work-form__status--error {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(155, 95, 64, 0.12);
}

.work-editor-image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.work-editor-image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.58);
  backdrop-filter: blur(8px);
}

.work-editor-image-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(460px, calc(100% - 24px));
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(10, 8, 6, 0.3);
}

.work-editor-image-modal__panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.work-editor-image-modal__status {
  min-height: 20px;
  margin: 0;
  color: var(--clay);
  font-weight: 700;
}

.feature-work__title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.public-section-page {
  min-height: 60vh;
}

.public-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.public-work-card img,
.public-work-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background:
    radial-gradient(circle at 30% 20%, rgba(239, 225, 38, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(112, 140, 105, 0.22), rgba(155, 95, 64, 0.16));
}

.public-work-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.public-work-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.public-work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.public-work-card span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(239, 225, 38, 0.94), rgba(239, 225, 38, 0.56)),
    var(--surface);
}

.cta__title {
  font-size: clamp(1.55rem, 2.7vw, 2.12rem);
  margin-bottom: 10px;
}

.cta__actions {
  display: flex;
  justify-content: flex-end;
}

.footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 40px 0;
}

.footer__brand p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer__column-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer__column {
  display: grid;
  gap: 10px;
}

.loading,
.error {
  padding: 80px 24px;
  text-align: center;
  font-weight: 700;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 0.86rem;
  color: var(--text);
}

.session-pill__user {
  font-weight: 600;
}

.session-pill__role {
  padding: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.session-pill__role::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--muted);
  vertical-align: middle;
}

.session-pill__menu,
.session-pill__logout {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.session-pill__menu {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0;
  background: var(--text);
  color: #fff;
}

.session-pill__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.session-pill__logout {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--text);
  opacity: 0.7;
}

.session-pill__logout:hover {
  opacity: 1;
  border-bottom-color: var(--text);
}

.private-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(20, 18, 15, 0.34);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity 0.18s ease;
}

.private-menu-backdrop.is-open {
  opacity: 1;
}

.private-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 59;
  width: min(430px, calc(100vw - 18px));
  padding: 14px;
  transform: translateX(104%);
  transition: transform 0.2s ease;
}

.private-menu.is-open {
  transform: translateX(0);
}

.private-menu__content {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(245, 241, 231, 0.96)),
    var(--surface);
  box-shadow: 0 30px 80px rgba(10, 8, 6, 0.24);
  overflow-y: auto;
}

.private-menu__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.private-menu__eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.private-menu__header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.18;
}

.private-menu__header span {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.private-menu__header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.private-menu__close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 28, 22, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.private-menu__logout {
  height: 38px;
  padding: 0 16px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.private-menu__logout:hover {
  opacity: 0.9;
}

.private-menu__section {
  display: grid;
  gap: 12px;
}

.private-menu__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.private-menu__section h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.private-menu__refresh {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
}

.private-menu-accesses,
.private-menu-notifications {
  display: grid;
  gap: 10px;
}

.private-menu-access,
.private-menu-notification {
  border: 1px solid rgba(31, 28, 22, 0.1);
  background: rgba(255, 255, 255, 0.62);
}

.private-menu-access {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-radius: 18px;
}

.private-menu-access--primary {
  background: var(--text);
  color: #fff;
}

.private-menu-access span {
  font-weight: 600;
}

.private-menu-access small {
  color: inherit;
  opacity: 0.72;
  line-height: 1.38;
}

.private-menu-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid rgba(31, 28, 22, 0.08);
  border-radius: 16px;
  background: rgba(31, 28, 22, 0.06);
  overflow: hidden;
}

.private-menu-summary__item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  transition: filter 0.15s ease;
}

a.private-menu-summary__item:hover {
  filter: brightness(0.96);
}

.private-menu-summary__item--low {
  background: rgba(239, 225, 38, 0.22);
}

.private-menu-summary__item--medium {
  background: rgba(168, 100, 30, 0.2);
}

.private-menu-summary__item--high {
  background: rgba(168, 67, 58, 0.24);
}

.private-menu-summary__item--low strong {
  color: #7a6b02;
}

.private-menu-summary__item--medium strong {
  color: #8a4c15;
}

.private-menu-summary__item--high strong {
  color: var(--grana);
}

.private-menu-summary__item strong {
  flex: 0 0 auto;
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
}

.private-menu-summary__item span {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.25;
  font-weight: 500;
}

.private-menu-notification {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
}

.private-menu-notification__dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--sage);
}

.private-menu-notification__dot--warning {
  background: var(--clay);
}

.private-menu-notification strong {
  display: block;
  font-weight: 600;
}

.private-menu-notification p,
.private-menu-notification small,
.private-menu__empty,
.private-menu__state {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.private-menu-notification small {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.private-menu__empty,
.private-menu__state {
  padding: 14px;
  border-radius: 18px;
  background: rgba(31, 28, 22, 0.05);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  padding: 18px 0;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.58);
  backdrop-filter: blur(8px);
}

.auth-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 36px);
  margin: 0 auto;
  padding: 0;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(10, 8, 6, 0.3);
  overflow: hidden;
}

/* el login/recuperar/reset son 1-2 campos sueltos; en el ancho pensado para la
   grilla de registro quedaban perdidos en una caja enorme y vacia */
.auth-panel:has(#login-form.auth-form--active),
.auth-panel:has(#forgot-password-form.auth-form--active),
.auth-panel:has(#reset-password-form.auth-form--active) {
  width: min(440px, calc(100% - 24px));
}

.auth-panel__header {
  position: relative;
  flex: 0 0 auto;
  padding: 22px 26px 18px;
  background: linear-gradient(155deg, rgba(239, 225, 38, 0.24), rgba(255, 253, 248, 0.4) 75%);
  border-bottom: 1px solid rgba(31, 28, 22, 0.08);
}

.auth-panel__mark {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  object-fit: contain;
}

.auth-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 26px 26px;
  overflow-y: auto;
}

.auth-panel__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 28, 22, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background-color 0.15s ease;
}

.auth-panel__close:hover {
  background: rgba(31, 28, 22, 0.16);
}

.app-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: app-dialog-fade-in 0.15s ease;
}

.app-dialog.is-leaving {
  animation: app-dialog-fade-out 0.12s ease forwards;
}

.app-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.58);
  backdrop-filter: blur(8px);
}

.app-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(10, 8, 6, 0.3);
  animation: app-dialog-panel-in 0.18s ease;
}

.app-dialog__panel--danger {
  border-top: 4px solid var(--clay);
}

.app-dialog__title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.app-dialog__message {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.app-dialog__input {
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 28, 22, 0.18);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.app-dialog__input--error {
  border-color: var(--clay);
}

.app-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.app-dialog__actions .auth-form__submit {
  width: auto;
  padding: 0 22px;
}

.auth-form__submit--danger {
  background: var(--clay);
}

@keyframes app-dialog-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes app-dialog-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes app-dialog-panel-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
