/* Panel de admin — tema claro propio (no depende de Tailwind ni de la web). */
:root {
  --paper: #f2ece0;
  --paper-2: #faf6ee;
  --paper-3: #ece5d7;
  --ink: #1e1b16;
  --ink-2: #4a463d;
  --muted: #9a9284;
  --muted-2: #726b5e;
  --gold: #c7a353;
  --gold-dark: #9a7526;
  --blue: #1d447d;
  --green: #3f6b4f;
  --red: #b4432b;
  --border: rgba(154, 146, 132, 0.22);
  --shadow: 0 1px 2px rgba(30, 27, 22, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; }
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: 12.5px; }
.xsmall { font-size: 11.5px; }
.muted { color: var(--muted); }
.blue { color: var(--blue); }
.right { text-align: right; }
.w-full { width: 100%; }
.inline { display: inline; }
.hidden { display: none; }

/* ── top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.brand { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.brand b { font-weight: 700; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); display: inline-block; }
.brand-lg { font-size: 16px; margin-bottom: 6px; }

/* ── layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 22px 20px 60px; }
.footer { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 11.5px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head h1 { margin: 0; font-size: 24px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── cards ── */
.card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.big { font-size: 24px; font-weight: 800; margin: 4px 0 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { margin: 0; padding: 14px; }
.kpi-label { margin: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kpi-value { margin: 4px 0 2px; font-size: 22px; font-weight: 900; }
.kpi-sub { margin: 0; font-size: 11.5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 18px; }
.wide { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── bar chart ── */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 116px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.bar-num { font-size: 9.5px; color: var(--muted); }
.bar { width: 100%; border-radius: 3px 3px 0 0; background: rgba(199, 163, 83, 0.75); }
.bar-day { font-size: 9px; color: var(--muted-2); }

/* ── lists / tracks ── */
.stack { display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; }
.kv-k { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-v { flex: none; }
.track { margin-top: 4px; height: 8px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--blue); border-radius: 4px; }

/* ── tablas ── */
/* `table-fit` = table-layout fixed + recorte con elipsis: la tabla ocupa
   exactamente el ancho de su tarjeta, sin scroll horizontal al cargar. */
.scroll-x { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-fit { table-layout: fixed; }
.table th,
.table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(154, 146, 132, 0.12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.table th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}
.table th.right, .table td.right { text-align: right; }
.table td.right, .table td.numeric { font-variant-numeric: tabular-nums; }
.table td.mono { font-size: 12px; }
.table tbody tr:hover { background: rgba(250, 246, 238, 0.9); }
.table tr.is-hidden { display: none; }
/* 2026-10-14 (propietario): en las pantallas de analítica de navegación (rutas, secciones, props, destinos) el texto
   no se recorta: las celdas y las cabeceras pasan a varias líneas y cortan las cadenas largas sin espacios. */
.nav-page .table th,
.nav-page .table td { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; vertical-align: top; }
/* celda que puede crecer en alto (cuerpo de un mensaje) */
.table td.wrap { white-space: normal; overflow: visible; word-break: break-word; vertical-align: top; }

/* cabeceras ordenables */
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--blue); }
.table th.sorted { color: var(--ink-2); font-weight: 800; }
.table th .sarrow { font-size: 9px; opacity: 0.85; }

/* pie de tabla (contador + paginación) */
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.table-foot .foot-btns { display: flex; gap: 8px; }
.table-foot .btn { padding: 5px 11px; font-size: 12.5px; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: var(--paper-3); color: var(--muted-2); }
.pill-gold { background: rgba(199, 163, 83, 0.18); color: var(--gold-dark); font-weight: 700; }
.pill-green { background: rgba(63, 107, 79, 0.15); color: var(--green); font-weight: 600; }
.pill-red { background: rgba(180, 67, 43, 0.12); color: var(--red); font-weight: 600; }

/* ── variación vs periodo anterior ── */
.dl { font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-up { color: var(--green); }
.dl-down { color: var(--red); }
.dl-flat { color: var(--muted-2); }
.dl-new { color: var(--blue); font-weight: 700; }

/* ── pestañas ── */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-2);
  cursor: pointer;
  border-radius: 10px 10px 0 0;
}
.tab:hover { color: var(--ink-2); background: rgba(250, 246, 238, 0.7); }
.tab.is-active { color: var(--ink); background: var(--paper-2); border-color: var(--border); }
.tab-panel.is-hidden { display: none; }

/* ── barras apiladas ── */
.sbars { display: flex; align-items: flex-end; gap: 4px; height: 124px; margin-top: 8px; }
.sbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.sbar-num { font-size: 9.5px; color: var(--muted); }
.sbar-stack { width: 100%; display: flex; flex-direction: column-reverse; }
.sbar-seg { width: 100%; }

/* ── embudo de conversión ── */
.funnel { display: flex; flex-direction: column; gap: 14px; }
.fn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fn-label { font-weight: 600; color: var(--ink-2); }
.fn-nums { font-size: 12.5px; }
.fn-nums b { font-size: 15px; }
.fn-row .track { height: 10px; }
.fn-row p { margin: 3px 0 0; }

/* ── análisis de informe: gates, traza y evidencia ── */
.gate-list { display: flex; flex-direction: column; gap: 8px; }
.gate-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}
.gate-row.is-fail { border-left: 4px solid #b3261e; background: #fdf5f4; }
.gate-row.is-ok { border-left: 4px solid #2e7d32; }
.gate-row.is-na { border-left: 4px solid var(--border); opacity: 0.75; }
.gate-ico { font-weight: 800; font-size: 15px; width: 18px; text-align: center; }
.gate-row.is-fail .gate-ico { color: #b3261e; }
.gate-row.is-ok .gate-ico { color: #2e7d32; }
.gate-body { flex: 1; min-width: 0; }
.gate-title { font-size: 13px; }
.gate-reason { font-size: 12.5px; margin-top: 3px; word-break: break-word; }
.gate-why { margin-top: 3px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-ok { background: #e6f4ea; color: #1e6b2a; }
.badge-fail { background: #fce8e6; color: #a5221a; }
.badge-mode { background: var(--paper-3); color: var(--ink-2); }
.badge-run { background: #e8f0fe; color: #1a4b9c; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; margin-bottom: 10px; }
.inf-headline { font-size: 14px; font-weight: 600; margin: 6px 0 10px; }
.inf-sec { margin-bottom: 14px; }
.inf-list { margin: 4px 0 0 18px; font-size: 12.5px; }
.inf-list li { margin-bottom: 2px; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.chip { background: var(--paper-3); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-family: var(--mono, monospace); }
.ok-mark { color: #2e7d32; font-weight: 800; }
.fail-mark { color: #b3261e; font-weight: 800; }
.bar-track { height: 9px; background: var(--paper-3); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.bar-fill { height: 100%; background: #2e7d32; }
.bar-fill.is-fail { background: #b3261e; }

.trace { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tr-ev { border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; background: var(--paper); }
.tr-ev.tr-error { border-left: 4px solid #b3261e; background: #fdf5f4; }
.tr-ev.tr-llm { border-left: 4px solid #1D447D; }
.tr-ev.tr-check { border-left: 4px solid var(--gold-dark); }
.tr-ev.tr-result { border-left: 4px solid #2e7d32; }
.tr-ev.tr-log { padding: 3px 10px; background: transparent; border-color: transparent; }
.tr-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tr-seq { font-family: var(--mono, monospace); font-size: 10.5px; color: var(--muted); min-width: 20px; }
.tr-t { font-size: 10.5px; color: var(--muted); min-width: 44px; }
.tr-ico { font-size: 12px; }
.tr-title { font-size: 13px; font-weight: 600; }
.tr-meta { font-size: 11.5px; color: var(--muted); }
.tr-block { margin-top: 6px; }
.tr-block summary { cursor: pointer; font-size: 12px; color: var(--blue); }
.tr-logline .tr-title { font-weight: 400; font-size: 12px; color: var(--muted); font-family: var(--mono, monospace); }
.code-block {
  max-height: 420px;
  overflow: auto;
  background: var(--paper-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 4px 0 8px;
}
.inf-veredicto { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.w200 { width: 200px; }
.w260 { width: 260px; }
.w140 { width: 140px; }

/* ── origen clicable + modal de detalle ── */
.origen-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  color: var(--blue);
  text-align: left;
  cursor: pointer;
  text-decoration: underline dotted;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.origen-link:hover { color: var(--gold-dark); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 22, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  z-index: 50;
  overflow: auto;
}
.modal.is-hidden { display: none; }
.modal-box {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 980px;
  box-shadow: 0 12px 40px rgba(30, 27, 22, 0.25);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 15px; word-break: break-all; }
.modal-body { padding: 16px 18px 22px; }
.origen-kpis { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.origen-kpi { display: flex; flex-direction: column; }
.origen-kpi-v { font-size: 18px; font-weight: 800; }
.origen-sec { margin-bottom: 14px; }
.origen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .origen-grid { grid-template-columns: 1fr; } }
.origen-bars { height: 110px; margin-bottom: 6px; justify-content: flex-start; }
.origen-bars .sbar-col { flex: 1 1 20px; max-width: 44px; }

/* ── gráfico de líneas ── */
.chart { display: block; width: 100%; height: auto; margin-top: 6px; }
.legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── subidas / bajadas ── */
.grid-2-nowrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2-nowrap { grid-template-columns: 1fr; } }
.sub-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.up-title { color: var(--green); }
.down-title { color: var(--red); }

/* ── forms / buttons ── */
.btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--paper-2);
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--paper-3); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #12100c; font-weight: 700; }
.btn-gold:hover { background: #d9be73; }
.btn-blue { background: rgba(29, 68, 125, 0.15); border-color: rgba(29, 68, 125, 0.28); color: var(--blue); font-weight: 700; }
.btn-soft { background: var(--paper-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted-2); }
.btn-ghost:hover { background: var(--paper-3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.grow { flex: 1 1 240px; }
.w180 { width: 200px; }
.w90 { width: 88px; }
.field { display: block; margin-bottom: 12px; }
.label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.input {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid rgba(30, 27, 22, 0.14);
  border-radius: 9px;
}
.input:focus { outline: none; border-color: var(--gold); }

/* ── alerts ── */
.alert { padding: 9px 12px; border-radius: 9px; font-size: 13px; margin: 10px 0; }
.alert-error { background: rgba(180, 67, 43, 0.09); border: 1px solid rgba(180, 67, 43, 0.3); color: var(--red); }
.alert-warn { background: rgba(199, 163, 83, 0.12); border: 1px solid rgba(199, 163, 83, 0.4); color: var(--gold-dark); }
.alert-ok { background: rgba(63, 107, 79, 0.12); border: 1px solid rgba(63, 107, 79, 0.3); color: var(--green); }

/* ── login ── */
.login-wrap { min-height: 82vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 400px; padding: 26px; }
.login-title { margin: 12px 0 4px; font-size: 20px; }
.login-form { margin-top: 16px; }

/* ── log ── */
.log {
  margin-top: 10px;
  max-height: 420px;
  overflow: auto;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px;
}
.log-line { white-space: pre-wrap; word-break: break-all; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; line-height: 1.35; color: #9a9284; }
.log-line.err { color: #f87171; }
.log-line.ok { color: #4ade80; }
.log-line.step { color: #60a5fa; }
.log-line.warn { color: #fbbf24; }

/* Pestaña Usuarios (2026-09-14): acciones por fila */
.row-actions { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.btn-xs { padding: 2px 7px; font-size: 11.5px; }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); }

/* 2026-09-17: tarjetas desplegables en la pestaña Tickers (estado recordado por sección) */
details.card-fold > summary { cursor: pointer; list-style: none; }
details.card-fold > summary::-webkit-details-marker { display: none; }
details.card-fold > summary .card-title::before { content: "▸ "; color: var(--muted-2); font-size: 12px; }
details.card-fold[open] > summary .card-title::before { content: "▾ "; }
details.card-fold:not([open]) { padding-bottom: 12px; }

/* 2026-09-22: log de un cron en modal */
.modal-box.modal-wide { max-width: 1100px; width: 94vw; }
.cronlog-controls { align-items: center; gap: 14px; flex-wrap: wrap; }
.input-xs { padding: 2px 6px; font-size: 12px; width: auto; display: inline-block; }
.pill-btn { cursor: pointer; border: 0; font: inherit; }
.log-line.ctx { color: #cfc8b8; }
.log-line.gap { color: #6b665c; text-align: center; }
#cronlog-body.log { max-height: 70vh; }

/* Analítica de navegación (2026-10-12) */
.tab-link { text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 12px 14px; }
.filters select { margin-left: 4px; }
.heat td { transition: none; }

/* Enlaces en redes (2026-10-29) */
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; margin-top: 8px; }
.notice { border-left: 4px solid var(--gold); padding: 10px 14px; font-size: 13px; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.input-sm { padding: 4px 8px; width: auto; margin-left: 4px; }
.hbars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(140px, 30%) 1fr 48px; gap: 10px; align-items: center; text-decoration: none; color: inherit; font-size: 12.5px; }
.hbar-row:hover .hbar-label { text-decoration: underline; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 14px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--gold); border-radius: 4px; position: relative; overflow: hidden; }
.hbar-net { display: block; height: 100%; background: #1D447D; }
.hbar-num { text-align: right; font-weight: 700; }
.pre { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.45; margin: 8px 0 0; }
.proposal { border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; background: var(--paper); }
.proposal.is-used { border-color: var(--gold); }
@media (max-width: 820px) { .hbar-row { grid-template-columns: 1fr 40px; } .hbar-label { grid-column: 1 / -1; } }
/* la tabla de posts y la barra de pestañas se desplazan dentro de su caja en pantallas estrechas; la página no se ensancha */
.links-page .table-wrap { overflow-x: auto; }
.links-page #links-posts { min-width: 1060px; }
.links-page #link-visits { min-width: 820px; }
.links-page .tabs { overflow-x: auto; }
.links-page .tab { white-space: nowrap; }
.links-page .grid-2 > * { min-width: 0; }

/* ── Administrador RRSS (04-11-2026) ── */
.rrss-page .tabs { overflow-x: auto; }
.rrss-page .tab { white-space: nowrap; }
.rrss-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 14px; font: 11.5px var(--mono, monospace); color: var(--ink-2); }
.rrss-flow span { background: var(--paper); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; }
.rrss-flow i { font-style: normal; color: var(--muted); }
.rrss-red-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.rrss-red-side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.rrss-red-side .sub-title { margin-top: 6px; }
@media (max-width: 980px) { .rrss-red-grid { grid-template-columns: 1fr; } }
.rrss-editor { border: 1px solid var(--border); border-radius: 10px; background: var(--paper); padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 8px; min-width: 0; }
.rrss-editor.is-dirty { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.rrss-ed-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.rrss-help { margin: 0; }
.rrss-text { width: 100%; font-size: 12.5px; line-height: 1.55; resize: vertical; white-space: pre-wrap; }
.rrss-ed-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.rrss-ed-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rrss-note { min-width: 220px; }
.rrss-checks { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.rrss-checks .ok-mark, .rrss-checks .fail-mark { font-weight: 600; font-family: var(--mono, monospace); font-size: 11.5px; }
.rrss-diff { font: 12px/1.5 var(--mono, monospace); border: 1px solid var(--border); border-radius: 8px; overflow: auto; max-height: 420px; background: var(--paper-2); }
.rrss-diff > div { padding: 0 10px 0 24px; white-space: pre-wrap; word-break: break-word; position: relative; }
.rrss-da { background: rgba(63, 107, 79, 0.13); }
.rrss-dd { background: rgba(180, 67, 43, 0.11); text-decoration: line-through; text-decoration-color: rgba(180, 67, 43, 0.45); }
.rrss-da::before, .rrss-dd::before { position: absolute; left: 8px; font-weight: 700; }
.rrss-da::before { content: "+"; color: var(--green); }
.rrss-dd::before { content: "−"; color: var(--red); }
.rrss-dc { color: var(--muted-2); }
.rrss-dgap { color: var(--muted); text-align: center; }
.rrss-test { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; display: grid; gap: 6px; }
.rrss-test-fields { display: flex; gap: 6px; flex-wrap: wrap; }
.rrss-post { width: 100%; resize: vertical; }
.rrss-prop { border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: 8px; padding: 6px 9px; background: var(--paper-2); margin-top: 6px; }
.rrss-prop-text { white-space: pre-wrap; font-size: 13px; }
.rrss-gtable td, .rrss-gtable th { vertical-align: middle; }
.rrss-guide summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.rrss-guide pre { max-height: 520px; overflow: auto; }
.rrss-prow { justify-content: space-between; align-items: flex-start; border-top: 1px solid var(--border); padding: 9px 0; }
.rrss-prow label { flex: 1 1 260px; font-size: 13px; }
.rrss-prow > div { flex: 1 1 320px; min-width: 0; }
.rrss-prow textarea { width: 100%; }
.rrss-new-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 760px) { .rrss-new-grid { grid-template-columns: 1fr; } }
#rrss-new-text { width: 100%; resize: vertical; }
.rrss-instr > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.rrss-instr-body { display: grid; gap: 10px; margin-top: 10px; min-width: 0; }
.rrss-msg { background: var(--paper); border-left: 3px solid var(--border); padding: 8px 12px; border-radius: 6px; }
.rrss-proposal { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--paper); display: grid; gap: 8px; }
.rrss-change { border-top: 1px solid var(--border); padding-top: 8px; display: grid; gap: 6px; }
.rrss-change.is-bad { opacity: .8; }
.rrss-ch-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rrss-quote { margin: 0; font-style: italic; }
.rrss-tasks ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rrss-hrow td { background: var(--paper); }
