/* Panel de oposfinder: tranquilo y legible, tema claro y oscuro, sin fuentes externas. */

:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #1b2230;
  --muted: #5a6475;
  --border: #dce1e8;
  --accent: #2355c4;
  --accent-text: #ffffff;
  --accent-soft: #e7eefc;
  --amber: #8a5300;
  --amber-soft: #fff1d6;
  --red: #b3261e;
  --red-soft: #fde9e7;
  --green: #1d7444;
  --green-soft: #e3f3e9;
  --tg-bg: #eaf2fb;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%);
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217;
    --surface: #171b22;
    --surface-2: #1f2530;
    --text: #e5e8ee;
    --muted: #9ba5b5;
    --border: #2c333f;
    --accent: #7ea3ff;
    --accent-text: #0f1217;
    --accent-soft: #1c2945;
    --amber: #f3b65a;
    --amber-soft: #3a2a10;
    --red: #ff8f86;
    --red-soft: #3c1b18;
    --green: #74d19c;
    --green-soft: #14301f;
    --tg-bg: #1b2533;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1rem;
  margin-top: 1rem;
}

p {
  margin: 0 0 0.5rem;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 6px 10px;
  border-radius: 6px;
}

/* Cabecera */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.logout {
  margin: 0 0 0 auto;
}

/* En pantallas estrechas, el menú baja a su propia fila. */
@media (max-width: 600px) {
  .nav {
    order: 3;
    flex-basis: 100%;
  }
}

/* Página */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.page-title {
  margin-bottom: 16px;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
  min-width: 0;
}

.muted {
  color: var(--muted);
}

.block {
  display: block;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain li {
  padding: 4px 0;
}

.notice {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice.tone-closed {
  background: var(--red-soft);
  color: var(--red);
}

.notice.tone-urgent {
  background: var(--amber-soft);
  color: var(--amber);
}

.saved {
  color: var(--green);
  font-weight: 600;
}

.tone-text-closed {
  color: var(--red);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--surface-2);
}

.btn-primary,
.btn-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover,
.btn-active:hover {
  background: var(--accent);
  filter: brightness(1.08);
}

.btn-danger {
  color: var(--red);
}

.btn-danger.btn-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--surface);
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

/* Etiquetas */

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.6;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}

.badge.tone-open,
.badge.tone-soon {
  background: var(--surface-2);
  color: var(--text);
}

.badge.tone-urgent {
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 600;
}

.badge.tone-closed {
  background: var(--red-soft);
  color: var(--red);
}

.badge.route-push {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.badge.status {
  background: var(--green-soft);
  color: var(--green);
}

.badge.status-nueva {
  background: var(--surface-2);
  color: var(--muted);
}

.badge.status-descartada {
  background: var(--surface-2);
  color: var(--muted);
  text-decoration: line-through;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  background: var(--muted);
}

.dot.health-ok {
  background: var(--green);
}

.dot.health-warning {
  background: var(--amber);
}

.dot.health-failing,
.dot.health-blocked {
  background: var(--red);
}

/* Listas de convocatorias (inicio) */

.home-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  align-items: start;
}

.home-grid .card {
  margin-bottom: 0;
}

.conv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.conv-card {
  padding: 10px 0 10px 12px;
  border-top: 1px solid var(--border);
  border-left: 3px solid transparent;
}

.conv-card:first-child {
  border-top: 0;
}

.conv-card.is-push {
  border-left-color: var(--accent);
}

.conv-title {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.conv-title:hover {
  text-decoration: underline;
}

.conv-issuer {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
}

.conv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
}

/* Filtros y tabla */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr));
  gap: 10px 12px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.stack label,
.inline-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  min-height: 36px;
  max-width: 100%;
}

textarea {
  width: 100%;
  resize: vertical;
}

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

#resultados {
  transition: opacity 0.15s ease;
}

#resultados.htmx-request {
  opacity: 0.55;
}

.results-head {
  color: var(--muted);
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.conv-table,
.simple-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.conv-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.conv-table th,
.conv-table td,
.simple-table th,
.simple-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.conv-table th,
.simple-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface-2);
}

.conv-table tbody tr.is-push td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.conv-table .cell-title {
  min-width: 260px;
}

.conv-table .small {
  font-size: 0.85rem;
}

.conv-table .num,
.simple-table .num {
  text-align: right;
  white-space: nowrap;
}

.conv-table td .badge {
  margin: 0 4px 4px 0;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

/* Tabla apilada en pantallas estrechas: cada fila es una tarjeta. */
@media (max-width: 760px) {
  .conv-table,
  .conv-table tbody,
  .conv-table tr,
  .conv-table td {
    display: block;
    width: 100%;
  }

  .conv-table {
    border: 0;
    background: transparent;
  }

  .conv-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .conv-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 6px 0;
  }

  .conv-table tbody tr.is-push {
    border-left: 3px solid var(--accent);
  }

  .conv-table tbody tr.is-push td:first-child {
    box-shadow: none;
  }

  .conv-table td {
    border: 0;
    padding: 2px 12px;
  }

  .conv-table td.cell-title {
    padding-bottom: 6px;
  }

  .conv-table td:not(.cell-title)::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 0.8rem;
  }

  .conv-table .cell-title {
    min-width: 0;
  }

  .conv-table .num {
    text-align: left;
  }
}

/* Ficha */

.back {
  margin-bottom: 8px;
}

.detail-head {
  margin-bottom: 16px;
}

.detail-head h1 {
  overflow-wrap: anywhere;
}

.facts {
  margin-top: 6px;
}

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

@media (min-width: 960px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .detail-side {
    position: sticky;
    top: 16px;
    align-self: start;
  }

  .jump {
    display: none;
  }
}

.jump {
  margin-top: 8px;
}

.deadline {
  border-left: 4px solid var(--border);
  padding: 6px 0 6px 12px;
  margin-bottom: 10px;
}

.deadline.tone-urgent {
  border-left-color: var(--amber);
}

.deadline.tone-closed {
  border-left-color: var(--red);
}

.deadline.tone-open,
.deadline.tone-soon {
  border-left-color: var(--accent);
}

.deadline-main {
  font-size: 1.05rem;
}

.deadline.tone-urgent .deadline-sub {
  color: var(--amber);
  font-weight: 600;
}

.deadline.tone-closed .deadline-sub {
  color: var(--red);
}

.quote {
  margin: 6px 0;
  padding: 6px 10px;
  border-left: 3px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.check:first-child {
  border-top: 0;
}

.check-icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.check-blocked strong {
  color: var(--red);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.85rem;
}

.chip-neg {
  background: var(--red-soft);
  color: var(--red);
}

.chip-ok {
  background: var(--green-soft);
  color: var(--green);
}

.search-mode {
  font-size: 0.85rem;
}

.reasons li::before {
  content: "· ";
  color: var(--muted);
}

.docs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.docs li:first-child {
  border-top: 0;
}

.doc-title {
  overflow-wrap: anywhere;
}

.timeline {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 4px 0 8px 8px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Seguimiento */

.estado fieldset {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}

.estado legend {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0;
}

.estado form {
  margin-bottom: 12px;
}

.estado-actual {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.inline-form label {
  flex-basis: 100%;
}

/* Vista previa del aviso de Telegram */

.preview summary {
  cursor: pointer;
  color: var(--accent);
  margin: 8px 0;
}

.tg-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--tg-bg);
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 560px;
  font-size: 0.93rem;
}

.tg-keyboard {
  max-width: 560px;
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.tg-row {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
}

.tg-button {
  display: block;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Documento */

.meta-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0 0 12px;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.sha {
  overflow-wrap: anywhere;
}

.doc-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  max-height: 75vh;
  overflow-y: auto;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px;
}

.pdf-frame {
  width: 100%;
  height: 75vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

/* Login y errores */

.login {
  max-width: 380px;
  margin: 8vh auto 0;
}

.login input {
  width: 100%;
}

.error-page {
  max-width: 520px;
  margin: 6vh auto 0;
  text-align: center;
}

.error-code {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}

/* Operación: fuentes, anuncios, tareas y avisos */

.badge.tone-ok,
.badge.health-ok {
  background: var(--green-soft);
  color: var(--green);
}

.badge.tone-info {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.tone-warn,
.badge.health-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.tone-bad,
.badge.health-failing,
.badge.health-blocked {
  background: var(--red-soft);
  color: var(--red);
}

.source-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  align-items: start;
}

.source-grid .card {
  margin-bottom: 0;
}

.source-card.is-disabled {
  border-style: dashed;
}

.source-card .btn-row {
  margin-top: 10px;
}

.source-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.source-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

a.source-name {
  text-decoration: none;
}

a.source-name:hover {
  text-decoration: underline;
}

.meta-list.compact {
  gap: 2px 10px;
  margin: 8px 0;
  font-size: 0.9rem;
}

.action-form {
  display: inline-flex;
  margin: 0;
}

.job-slot {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.job-slot:empty {
  display: none;
}

.job-msg {
  color: var(--green);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.action-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.action-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.action-grid form,
.action-grid .hint {
  margin: 0;
}

.job-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  max-height: 16rem;
  overflow-y: auto;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 8px 10px;
}

.conv-table .cell-result {
  min-width: 260px;
  max-width: 520px;
}

.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

@media (max-width: 760px) {
  .conv-table .cell-result {
    min-width: 0;
    max-width: none;
  }
}

/* Configuración */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.notice.tone-ok {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}

.config-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  align-items: start;
}

.config-grid .card {
  margin-bottom: 0;
}

.config-card h2 a {
  text-decoration: none;
}

.config-card h2 a:hover {
  text-decoration: underline;
}

.config-card .meta code,
.config-state code {
  overflow-wrap: anywhere;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.subnav a {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.92rem;
}

.subnav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.subnav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.config-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  align-items: start;
}

.form-grid .hint,
.field .hint {
  margin: 0;
  font-size: 0.85rem;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}

fieldset.field legend {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0;
  margin-bottom: 4px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox input {
  min-height: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.row-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
  padding: 6px 0;
}

.field-grow {
  flex: 1 1 260px;
}

.field-grow input {
  width: 100%;
}

.field-error {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: end;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.options-help {
  margin-top: 10px;
  font-size: 0.9rem;
}

textarea.code,
.code-block {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  tab-size: 2;
}

textarea.code {
  min-height: 0;
}

.yaml-file.has-error,
.config-sources tr.has-error td {
  border-color: var(--red);
}

.yaml-editor textarea {
  margin-top: 8px;
  max-height: 70vh;
}

.yaml-editor summary,
.yaml-default summary {
  cursor: pointer;
  color: var(--accent);
  margin: 6px 0;
}

.code-block {
  white-space: pre;
  overflow: auto;
  max-height: 60vh;
  margin: 6px 0 0;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
}

.config-sources .cell-title {
  min-width: 220px;
}

.config-sources textarea {
  width: 100%;
  min-width: 200px;
}

.config-sources tr.is-disabled .source-name {
  color: var(--muted);
}

.num-input {
  width: 6rem;
}

.reset-form {
  margin-bottom: 12px;
}

.reset-form .hint {
  flex-basis: auto;
  margin: 0;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-list li {
  padding: 10px 0 10px 12px;
  border-top: 1px solid var(--border);
  border-left: 3px solid transparent;
}

.history-list li:first-child {
  border-top: 0;
}

.history-list li.is-current {
  border-left-color: var(--green);
}

.history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 2px;
}

.history-note {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .config-sources textarea {
    min-width: 0;
  }

  .config-sources td:not(.cell-title)::before {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
