/* Comparar textos page. Site header, footer and tools bar stay untouched. */
body.page-comparar-textos {
  --ctx-ink: #172033;
  --ctx-navy: #1e3a8a;
  --ctx-blue: #2563eb;
  --ctx-line: #e3e9f1;
  --ctx-muted: #64748b;
}

.ctx-page {
  position: relative;
  margin: 2px 0 28px;
  color: var(--ctx-ink);
}

/* ---------- Header row ---------- */
.ctx-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 16px;
}

.ctx-title {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ctx-ink);
}

.article .ctx-lede {
  margin: 0;
  max-width: 52ch;
  color: #3d4658;
  font-size: 1rem;
  line-height: 1.5;
}

body.page-comparar-textos .ctx-app {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  margin: 0;
}

body.page-comparar-textos .ctx-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-comparar-textos .ctx-toolbar > .ctx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ctx-line);
  color: var(--ctx-ink);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.page-comparar-textos .ctx-toolbar > .ctx-btn:hover {
  border-color: #bfd3f5;
  background: #f8fbff;
}

body.page-comparar-textos .ctx-toolbar .ctx-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

body.page-comparar-textos #ctx-btn-compare {
  background: #eaf2ff;
  border-color: #bcd3fb;
  color: #1d4ed8;
}

body.page-comparar-textos .ctx-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ctx-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.page-comparar-textos .ctx-view-btn {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ctx-ink);
  font-size: 0.84rem;
  font-weight: 750;
  box-shadow: none;
}

body.page-comparar-textos #ctx-view-side.is-active,
body.page-comparar-textos #ctx-view-unified.is-active {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.22);
}

/* ---------- Stats + options ---------- */
.ctx-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 16px;
}

body.page-comparar-textos .ctx-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-comparar-textos .ctx-stat {
  gap: 8px;
  min-height: 34px;
  padding: 4px 13px 4px 5px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
}

body.page-comparar-textos .ctx-stat strong { color: var(--ctx-ink); }

.ctx-stat-ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  background: var(--ctx-stat-c);
}

.ctx-stat-ico svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctx-stat-sim .ctx-stat-ico circle { fill: #fff; stroke: none; }

body.page-comparar-textos .ctx-stat-add { --ctx-stat-c: #22a55a; background: #e9f9ef; color: #15803d; }
body.page-comparar-textos .ctx-stat-del { --ctx-stat-c: #ef4444; background: #ffecee; color: #dc2626; }
body.page-comparar-textos .ctx-stat-chg { --ctx-stat-c: #f5b400; background: #fff5d6; color: #a16207; }
body.page-comparar-textos .ctx-stat-same { --ctx-stat-c: #7c8aa0; background: #f1f5f9; color: #475569; border-color: #e5eaf1; }
body.page-comparar-textos .ctx-stat-sim { --ctx-stat-c: #8fb4f5; background: #eaf2ff; color: #1d4ed8; }

.ctx-options-fold {
  position: relative;
  margin: 0;
}

.ctx-options-fold summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--ctx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ctx-ink);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.ctx-options-fold summary::-webkit-details-marker { display: none; }

.ctx-options-fold summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ctx-options-fold[open] summary {
  border-color: #bcd3fb;
  background: #eaf2ff;
  color: #1d4ed8;
}

.ctx-options-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(560px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--ctx-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
}

body.page-comparar-textos .ctx-options {
  margin: 0;
  padding: 10px;
  border: 0;
  background: transparent;
}

body.page-comparar-textos .ctx-options-tip {
  margin: 0;
  padding: 4px 10px 10px;
  border: 0;
  background: transparent;
}

/* ---------- Illustration ---------- */
.ctx-art {
  display: none;
  position: absolute;
  top: 190px;
  z-index: 0;
  pointer-events: none;
}

.article .ctx-art img {
  display: block;
  width: 100%;
  height: auto;
  margin: 25px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 1320px) {
  .ctx-page { --ctx-gutter: calc((100vw - 100%) / 2); }

  .ctx-art {
    display: block;
    width: min(250px, calc(var(--ctx-gutter) + 20px));
    left: calc(-1 * var(--ctx-gutter) + 14px);
  }
}

@media (min-width: 1360px) {
  .ctx-page {
    --ctx-stage-w: max(100%, min(1560px, calc(100vw - 380px)));
    --ctx-gutter: calc((100vw - var(--ctx-stage-w)) / 2);
    width: var(--ctx-stage-w);
    margin-left: calc((100% - var(--ctx-stage-w)) / 2);
  }
}

/* ---------- A / B panes ---------- */
body.page-comparar-textos .ctx-panes {
  position: relative;
  z-index: 1;
  gap: 16px;
  min-height: 0;
  background: transparent;
}

body.page-comparar-textos .ctx-pane {
  border: 1px solid var(--ctx-line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 50, 90, 0.05);
}

body.page-comparar-textos .ctx-pane.is-a { background: #f3f7ff; border-color: #d8e5f8; }
body.page-comparar-textos .ctx-pane.is-b { background: #fff7e6; border-color: #f5e3bd; }

body.page-comparar-textos .ctx-pane-head {
  background: transparent;
  border-bottom: 0;
  padding: 14px 14px 10px;
}

body.page-comparar-textos .ctx-pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ctx-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  flex: none;
}

.ctx-badge.is-a { background: #2563eb; }
.ctx-badge.is-b { background: #f5b400; color: #172033; }

body.page-comparar-textos .ctx-pane-head-right { gap: 12px; }

body.page-comparar-textos .ctx-pane-meta {
  color: var(--ctx-muted);
  font-size: 0.74rem;
}

body.page-comparar-textos .ctx-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  color: var(--ctx-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.ctx-file-btn svg,
#ctx-btn-copy-diff svg,
.ctx-copy-caret svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

body.page-comparar-textos .ctx-pane-body {
  flex-direction: row;
  align-items: stretch;
  max-height: 400px;
  overflow: auto;
  margin: 0 12px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eef6;
}

.ctx-gutter {
  flex: none;
  width: 2.6rem;
  margin: 0;
  padding: 12px 10px 12px 6px;
  border-right: 1px solid #eef2f7;
  background: #fbfcfe;
  text-align: right;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: calc(0.88rem * 1.75);
  white-space: pre;
  user-select: none;
}

body.page-comparar-textos .ctx-textarea.ctx-editor {
  flex: 1 1 auto;
  min-height: 250px;
  max-height: none;
  overflow: visible;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #1e293b;
  background: #fff;
}

body.page-comparar-textos .ctx-editor .ctx-tok-del {
  background: #ffe1e5;
  color: #be123c;
  text-decoration: none;
}

body.page-comparar-textos .ctx-editor .ctx-tok-ins {
  background: #d7f5e1;
  color: #166534;
}

/* ---------- Result ---------- */
body.page-comparar-textos .ctx-result-wrap {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--ctx-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 50, 90, 0.05);
}

body.page-comparar-textos .ctx-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.ctx-result-intro {
  position: relative;
  padding-left: 54px;
  min-height: 42px;
}

.ctx-result-ico {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3b82f6 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15.2 15.2 4.5 4.5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.25);
}

.article .ctx-result-title {
  margin: 0 0 3px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ctx-ink);
}

.article .ctx-result-sub {
  margin: 0;
  color: var(--ctx-muted);
  font-size: 0.84rem;
}

body.page-comparar-textos .ctx-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-comparar-textos .ctx-nav .ctx-btn {
  min-height: 36px;
  border-radius: 10px;
}

.ctx-copy-menu { position: relative; display: inline-flex; }

body.page-comparar-textos #ctx-btn-copy-diff,
body.page-comparar-textos .ctx-copy-caret {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #d6e2f5;
  background: #fff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 750;
}

body.page-comparar-textos #ctx-btn-copy-diff { border-radius: 12px 0 0 12px; padding: 0 12px; }
body.page-comparar-textos .ctx-copy-caret { border-radius: 0 12px 12px 0; border-left: 0; padding: 0 9px; }

.ctx-copy-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ctx-line);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.ctx-copy-panel[hidden] { display: none !important; }
.ctx-copy-panel .ctx-btn { justify-content: flex-start; background: transparent; border: 0; }

.ctx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
}

.ctx-filters button {
  --ctx-f: #94a3b8;
  --ctx-f-bg: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: pre;
  min-height: 38px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--ctx-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ctx-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.ctx-filters button::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--ctx-f);
  background: #fff center / 12px no-repeat;
  margin-right: 8px;
  flex: none;
  box-sizing: border-box;
}

.ctx-filters button.is-on {
  background: var(--ctx-f-bg);
  border-color: color-mix(in srgb, var(--ctx-f) 30%, transparent);
  color: var(--ctx-ink);
}

.ctx-filters button.is-on::before {
  background-color: var(--ctx-f);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.ctx-filters [data-ctx-filter="all"] { --ctx-f: #2563eb; --ctx-f-bg: #eaf2ff; }
.ctx-filters [data-ctx-filter="insert"] { --ctx-f: #22a55a; --ctx-f-bg: #e9f9ef; }
.ctx-filters [data-ctx-filter="delete"] { --ctx-f: #e11d48; --ctx-f-bg: #ffecee; }
.ctx-filters [data-ctx-filter="change"] { --ctx-f: #f5b400; --ctx-f-bg: #fff5d6; }
.ctx-filters [data-ctx-filter="equal"] { --ctx-f: #8391a7; --ctx-f-bg: #f1f5f9; }

body.page-comparar-textos .ctx-diff-grid {
  gap: 14px;
  min-height: 0;
}

body.page-comparar-textos .ctx-diff-col {
  border: 1px solid #edf1f6;
  border-radius: 12px;
}

body.page-comparar-textos .ctx-diff-col-head { display: none; }

body.page-comparar-textos .ctx-diff-body { font-size: 0.82rem; line-height: 1.8; }

body.page-comparar-textos .ctx-line.is-delete { background: #fff0f2; border-left-color: #f43f5e; }
body.page-comparar-textos .ctx-line.is-insert { background: #ebfaf0; border-left-color: #22a55a; }
body.page-comparar-textos .ctx-line.is-change { background: #fffaeb; border-left-color: #f5b400; }

body.page-comparar-textos .ctx-diff-body .ctx-tok-del { background: #ffd9df; color: #be123c; text-decoration: none; }
body.page-comparar-textos .ctx-diff-body .ctx-tok-ins { background: #cdf3da; color: #166534; }

body.page-comparar-textos .ctx-legend { display: none; }

body.page-comparar-textos .ctx-empty-state {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #cfdcee;
  border-radius: 16px;
  background: #f8fbff;
  color: var(--ctx-muted);
  font-size: 0.88rem;
}

/* ---------- Bottom cards ---------- */
.ctx-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.ctx-how,
.ctx-where {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid transparent;
}

.ctx-how { background: #fff7e0; border-color: #f8e6b0; }
.ctx-where { align-items: center; background: #edfaf2; border-color: #d3f0de; }

.ctx-foot-body { flex: 1 1 auto; min-width: 0; }

.article .ctx-foot h2 {
  margin: 2px 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ctx-ink);
}

.article .ctx-foot p,
.article .ctx-how ol {
  margin: 0;
  color: #3d4658;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ctx-how ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 0;
  list-style: none;
}

.ctx-how li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ctx-how li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #dbe7fb;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
  flex: none;
}

.ctx-how-ico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: transparent center / 26px no-repeat;
}

.ctx-how-ico.is-bulb {
  background-size: 40px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b400' d='M12 2a7 7 0 0 0-4 12.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26A7 7 0 0 0 12 2z'/%3E%3Cpath fill='%23d99a00' d='M9 19h6v1.2a1.8 1.8 0 0 1-1.8 1.8h-2.4A1.8 1.8 0 0 1 9 20.2z'/%3E%3C/svg%3E");
}

.ctx-how-ico.is-share {
  background-color: #c8f0d6;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11A2.99 2.99 0 0 0 21 5a3 3 0 1 0-5.91.7L8.04 9.81A2.99 2.99 0 0 0 3 12a3 3 0 0 0 5.04 2.19l7.12 4.16c-.05.21-.08.43-.08.65A2.92 2.92 0 1 0 18 16.08z'/%3E%3C/svg%3E");
}

.ctx-devices {
  display: flex;
  gap: 10px;
  flex: none;
}

.ctx-devices span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  border: 1px solid #d6e9dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.04);
}

.ctx-devices svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #1e293b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ctx-foot { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .ctx-top { flex-direction: column; }
  body.page-comparar-textos .ctx-toolbar { justify-content: flex-start; margin-top: 0; }
  body.page-comparar-textos .ctx-panes { display: flex; flex-direction: column; }
  body.page-comparar-textos .ctx-diff-grid { grid-template-columns: 1fr; }
  .ctx-how ol { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ctx-top { gap: 12px; margin-bottom: 12px; }
  body.page-comparar-textos .ctx-toolbar { width: 100%; gap: 6px; }
  body.page-comparar-textos .ctx-toolbar > .ctx-btn {
    flex: 1 1 0;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    font-size: 0.76rem;
  }
  body.page-comparar-textos .ctx-toolbar .ctx-btn svg { width: 15px; height: 15px; }
  body.page-comparar-textos .ctx-view-toggle { flex: 1 1 100%; }
  body.page-comparar-textos .ctx-view-btn { flex: 1 1 0; min-height: 34px; }
  .ctx-meta-row { flex-wrap: nowrap; gap: 8px; margin-bottom: 12px; }
  body.page-comparar-textos .ctx-stats {
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.page-comparar-textos .ctx-stats::-webkit-scrollbar { display: none; }
  body.page-comparar-textos .ctx-stat { flex: none; white-space: nowrap; }
  .ctx-options-fold { flex: none; }
  body.page-comparar-textos .ctx-pane-meta { display: none; }
  body.page-comparar-textos .ctx-pane-body { max-height: 300px; }
  body.page-comparar-textos .ctx-textarea.ctx-editor { min-height: 170px; }
  body.page-comparar-textos .ctx-result-head { flex-direction: column; }
  body.page-comparar-textos .ctx-result-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-self: stretch;
    justify-content: space-between;
  }
  body.page-comparar-textos .ctx-nav { flex: none; width: auto; }
  body.page-comparar-textos .ctx-result-wrap { padding: 14px; }
  body.page-comparar-textos #ctx-btn-copy-diff { padding: 0 10px; }
  body.page-comparar-textos #ctx-btn-copy-diff svg { display: none; }
  .ctx-filters { gap: 8px; }
  .ctx-filters button { min-height: 34px; padding: 0 11px 0 9px; font-size: 0.76rem; }
  .ctx-how ol { grid-template-columns: 1fr; }
  .ctx-where { flex-wrap: wrap; }
  .ctx-how-ico { width: 36px; height: 36px; }
  .ctx-how-ico.is-bulb { background-size: 32px; }
  .ctx-how-ico.is-share { background-size: 20px; }
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] .ctx-title,
html[data-theme="dark"] .article .ctx-result-title,
html[data-theme="dark"] .article .ctx-foot h2,
html[data-theme="dark"] body.page-comparar-textos .ctx-stat strong { color: #f8fafc; }

html[data-theme="dark"] .article .ctx-lede,
html[data-theme="dark"] .article .ctx-result-sub,
html[data-theme="dark"] .article .ctx-foot p,
html[data-theme="dark"] .article .ctx-how ol { color: #cbd5e1; }

html[data-theme="dark"] body.page-comparar-textos .ctx-toolbar > .ctx-btn,
html[data-theme="dark"] body.page-comparar-textos .ctx-view-toggle,
html[data-theme="dark"] .ctx-options-fold summary,
html[data-theme="dark"] .ctx-options-pop,
html[data-theme="dark"] body.page-comparar-textos .ctx-file-btn,
html[data-theme="dark"] body.page-comparar-textos #ctx-btn-copy-diff,
html[data-theme="dark"] body.page-comparar-textos .ctx-copy-caret,
html[data-theme="dark"] .ctx-filters button,
html[data-theme="dark"] .ctx-devices span {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] body.page-comparar-textos #ctx-btn-compare { background: #1e3a6e; border-color: #2f4f8f; color: #bfdbfe; }
html[data-theme="dark"] body.page-comparar-textos .ctx-view-btn { color: #e2e8f0; }

html[data-theme="dark"] body.page-comparar-textos .ctx-pane.is-a { background: #16213a; border-color: #263a5e; }
html[data-theme="dark"] body.page-comparar-textos .ctx-pane.is-b { background: #2a2416; border-color: #4a3d1c; }

html[data-theme="dark"] body.page-comparar-textos .ctx-result-wrap,
html[data-theme="dark"] body.page-comparar-textos .ctx-pane-body,
html[data-theme="dark"] body.page-comparar-textos .ctx-textarea.ctx-editor,
html[data-theme="dark"] body.page-comparar-textos .ctx-diff-col,
html[data-theme="dark"] body.page-comparar-textos .ctx-empty-state {
  background: #111827;
  color: #e2e8f0;
  border-color: #334155;
}

html[data-theme="dark"] .ctx-gutter { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .ctx-filters button::before { background-color: transparent; }
html[data-theme="dark"] .ctx-filters button.is-on::before { background-color: var(--ctx-f); }
html[data-theme="dark"] .ctx-filters button.is-on { background: color-mix(in srgb, var(--ctx-f) 16%, #1e293b); color: #f8fafc; }
html[data-theme="dark"] .ctx-devices svg { stroke: #e2e8f0; }

html[data-theme="dark"] body.page-comparar-textos .ctx-stat-add { background: rgba(34, 165, 90, 0.16); color: #86efac; }
html[data-theme="dark"] body.page-comparar-textos .ctx-stat-del { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
html[data-theme="dark"] body.page-comparar-textos .ctx-stat-chg { background: rgba(245, 180, 0, 0.16); color: #fcd34d; }
html[data-theme="dark"] body.page-comparar-textos .ctx-stat-same { background: #1e293b; color: #cbd5e1; border-color: #334155; }
html[data-theme="dark"] body.page-comparar-textos .ctx-stat-sim { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }

html[data-theme="dark"] body.page-comparar-textos .ctx-editor .ctx-tok-del,
html[data-theme="dark"] body.page-comparar-textos .ctx-diff-body .ctx-tok-del { background: rgba(244, 63, 94, 0.26); color: #fecdd3; }
html[data-theme="dark"] body.page-comparar-textos .ctx-editor .ctx-tok-ins,
html[data-theme="dark"] body.page-comparar-textos .ctx-diff-body .ctx-tok-ins { background: rgba(34, 197, 94, 0.24); color: #bbf7d0; }
html[data-theme="dark"] body.page-comparar-textos .ctx-line.is-delete { background: rgba(244, 63, 94, 0.1); }
html[data-theme="dark"] body.page-comparar-textos .ctx-line.is-insert { background: rgba(34, 197, 94, 0.1); }
html[data-theme="dark"] body.page-comparar-textos .ctx-line.is-change { background: rgba(245, 180, 0, 0.08); }

html[data-theme="dark"] .ctx-how { background: #2a2416; border-color: #4a3d1c; }
html[data-theme="dark"] .ctx-where { background: #13261c; border-color: #1f4030; }
