:root {
  --radio-bg: #0b1c2c;
  --radio-panel: #102536;
  --radio-accent: #2aa5c7;
  --radio-text: #e8f1f6;
  --radio-muted: #8aa4b5;
  --radio-warn: #e8b86d;
  --radio-ok: #7ddea4;
  --radio-danger: #ff8f8f;
}
body.radio-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% -10%, #16384f 0%, var(--radio-bg) 55%, #07131d 100%);
  color: var(--radio-text);
  font-family: "Segoe UI", system-ui, sans-serif;
}
.radio-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px 48px; }
.radio-brand { font-size: 1.45rem; font-weight: 750; margin: 0 0 4px; }
.radio-sub { color: var(--radio-muted); margin: 0; }
.radio-top { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.radio-userbox { display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:var(--radio-muted); }
.radio-card {
  background: color-mix(in srgb, var(--radio-panel) 92%, white 8%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.radio-card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.radio-grid { display:grid; gap:12px; }
@media (min-width: 800px) {
  .radio-grid.two { grid-template-columns: 1fr 1fr; }
  .radio-grid.filters { grid-template-columns: repeat(4, 1fr); }
}
.radio-card label { display:block; font-size:.82rem; color:var(--radio-muted); margin-bottom:4px; }
.radio-card input, .radio-card select, .radio-card textarea {
  width:100%; box-sizing:border-box; border-radius:8px;
  border:1px solid rgba(255,255,255,.14); background:#0a1924; color:var(--radio-text);
  padding:9px 11px; font-size:.95rem;
}
.radio-actions { display:flex; gap:8px; flex-wrap:wrap; }
.btn-radio {
  appearance:none; border:0; border-radius:8px; padding:9px 14px; font-weight:650; cursor:pointer;
  background: var(--radio-accent); color:#04202b; font-size:.88rem;
}
.btn-radio.secondary { background:transparent; color:var(--radio-text); border:1px solid rgba(255,255,255,.2); }
.btn-radio:disabled { opacity:.55; cursor:wait; }
.radio-status { min-height:1.2em; margin:8px 0 0; color:var(--radio-muted); font-size:.9rem; }
.radio-status.is-ok { color: var(--radio-ok); }
.radio-status.is-error { color: var(--radio-danger); }
.radio-stats { display:grid; grid-template-columns: repeat(2,1fr); gap:10px; margin-bottom:14px; }
@media (min-width:720px){ .radio-stats { grid-template-columns: repeat(4,1fr); } }
.stat {
  background: rgba(42,165,199,.1); border:1px solid rgba(42,165,199,.25);
  border-radius:12px; padding:12px 14px;
}
.stat-n { display:block; font-size:1.5rem; font-weight:800; }
.stat-l { color:var(--radio-muted); font-size:.82rem; }
.table-scroll { overflow:auto; }
.radio-table { width:100%; border-collapse:collapse; font-size:.88rem; }
.radio-table th, .radio-table td { text-align:left; padding:9px 7px; border-bottom:1px solid rgba(255,255,255,.08); vertical-align:top; }
.radio-table th { color:var(--radio-muted); font-weight:600; white-space:nowrap; }
.radio-table tr:hover td { background: rgba(42,165,199,.07); }
.badge {
  display:inline-block; padding:3px 8px; border-radius:999px; font-size:.75rem; font-weight:700;
}
.badge-pendiente { background:rgba(232,184,109,.2); color:var(--radio-warn); }
.badge-en_lectura { background:rgba(42,165,199,.2); color:#8fdff3; }
.badge-finalizado { background:rgba(125,222,164,.18); color:var(--radio-ok); }
.action-row { display:flex; flex-wrap:wrap; gap:5px; }
.hidden { display:none !important; }
.radio-modal {
  position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:1000;
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.radio-modal__panel {
  width:min(640px, 100%); max-height:90vh; overflow:auto;
  background:#0f2433; border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:16px;
}
.radio-modal__head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:12px; }
.radio-modal__head h3 { margin:0; font-size:1.05rem; }
.note-item { border-top:1px solid rgba(255,255,255,.08); padding:8px 0; }
.note-meta { color:var(--radio-muted); font-size:.78rem; }

.radio-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.radio-hint {
  flex: 1 1 100%;
  margin: 0.25rem 0 0;
  color: #5b6b7c;
  font-size: 0.88rem;
  line-height: 1.35;
}
tr.row-mine {
  background: rgba(14, 116, 144, 0.08);
}
tr.row-mine:hover {
  background: rgba(14, 116, 144, 0.14);
}
.badge-mine {
  background: #0e7490;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}
.study-type {
  color: #5b6b7c;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.study-confirm {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.col-study-name {
  font-weight: 600;
  max-width: 280px;
  white-space: normal;
  line-height: 1.25;
  color: var(--radio-text);
}


/* Paginación */
.list-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}
.pager-info { color: var(--radio-muted); font-size: .9rem; }

/* Títulos / selección legibles */
.radio-body ::selection {
  background: #2aa5c7;
  color: #04202b;
}
.radio-body ::-moz-selection {
  background: #2aa5c7;
  color: #04202b;
}
.radio-card select option,
.radio-modal select option {
  background: #f4f7fa;
  color: #0b1c2c;
}
.radio-modal__head h3,
#modal-title {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--radio-text);
}
.col-study-name {
  color: var(--radio-text);
  max-width: 280px;
}
.radio-table tr:hover .col-study-name,
.radio-table tr.row-mine .col-study-name {
  color: #f2fbff;
}
