/* Zalgo generator. Same board language as the kaomoji page. Site chrome stays untouched. */
body.page-gerador-de-texto-zalgo {
  --zg-navy: #1e3a8a;
  --zg-blue: #1d4ed8;
  --zg-ink: #1a1d2b;
  --zg-card: #fff;
  --zg-line: #e3e9f1;
  --zg-soft: #f4f7fb;
}

.zg-stage {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 18px 26px;
  align-items: start;
  margin: 4px 0 20px;
  color: var(--zg-ink);
}

.zg-aside {
  position: relative;
  min-width: 0;
}

.zg-title {
  margin: 0 0 14px;
  color: var(--zg-ink);
  font-size: clamp(2.2rem, 2.9vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.article .zg-lede {
  margin: 0 0 6px;
  max-width: 32ch;
  color: #3d4658;
  font-size: 1rem;
  line-height: 1.5;
  hyphens: manual;
}

.article img.zg-mascot {
  display: block;
  width: min(112%, 300px);
  max-width: none;
  height: auto;
  margin: 2px 0 2px -4%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zg-checks {
  width: min(100%, 250px);
  margin: 6px 0 0;
  padding: 16px 16px 12px;
  border-radius: 16px;
  background: #fff6d8;
  box-shadow: 0 10px 22px rgba(180, 140, 20, 0.12);
}

.zg-checks-title,
.zg-note-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--zg-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.zg-note-title svg,
.zg-ico,
.zg-flame {
  display: block;
  flex: none;
}

.zg-bulb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffedd5 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a6 6 0 0 0-3 11c.5.5 1 1.2 1 2v1h4v-1c0-.8.5-1.5 1-2A6 6 0 0 0 12 2z'/%3E%3C/svg%3E") center / 16px no-repeat;
  flex: none;
}

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

.article .zg-checks li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 28px;
  color: #3f3a2a;
  font-size: 0.93rem;
  line-height: 1.35;
}

.zg-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #f5c400 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231a1d2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.zg-main {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7edf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 40, 80, 0.06);
}

.zg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.zg-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.zg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--zg-line);
  border-radius: 16px;
  background: var(--zg-card);
  box-shadow: 0 6px 16px rgba(20, 40, 80, 0.03);
}

.zg-result {
  grid-column: 1 / -1;
}

.article .post-content h2.zg-step,
.article .post-content h2.zg-ready-title,
.zg-step,
.zg-ready-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--zg-ink);
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
}

.zg-step-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #c7d4ee;
  border-radius: 50%;
  background: var(--zg-navy);
  background-clip: padding-box;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  flex: none;
}

.zg-ico { color: var(--zg-ink); }

.zg-input,
.zg-dirty {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--zg-line);
  border-radius: 12px;
  background: var(--zg-soft);
  color: var(--zg-ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  resize: vertical;
}

.zg-input {
  flex: 1;
  min-height: 148px;
}

.zg-input:focus,
.zg-dirty:focus {
  outline: 2px solid var(--zg-blue);
  outline-offset: 1px;
  border-color: var(--zg-blue);
  background: #fff;
}

.article .zg-field-note,
.zg-field-label {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.zg-field-label { margin: 0 0 8px; }

.zg-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.zg-card .zg-presets:not(.zg-dirs) {
  margin-bottom: 12px;
}

.zg-dir-label {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.zg-preset {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--zg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--zg-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.zg-preset:hover {
  border-color: #c9d6ea;
  background: #f5f8fd;
}

.zg-preset.is-on {
  border-color: var(--zg-blue);
  background: var(--zg-blue);
  color: #fff;
}

.zg-preset:focus-visible,
.zg-sample:focus-visible,
.zg-version-copy:focus-visible,
.zg-main .ut-btn:focus-visible,
.zg-preview-dice:focus-visible {
  outline: 2px solid var(--zg-blue);
  outline-offset: 2px;
}

.zg-sliders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.zg-slider span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
  font-size: 0.88rem;
  font-weight: 800;
}

.zg-slider output {
  color: var(--zg-blue);
  font-variant-numeric: tabular-nums;
}

.zg-slider input[type="range"] {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--zg-blue);
  cursor: pointer;
}

.zg-preview-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 118px;
  margin: 0 0 14px;
  padding: 16px 56px;
  border-radius: 14px;
  background: #1e293b;
  overflow: hidden;
}

.zg-preview {
  flex: 1;
  min-height: 0;
  max-height: 7.4rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 2.05;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.zg-preview.is-empty {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.4;
}

.zg-preview-sparks {
  position: absolute;
  left: 14px;
  top: 50%;
  color: #93c5fd;
  transform: translateY(-50%);
}

.zg-preview-dice {
  position: absolute;
  right: 10px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
  transform: translateY(-50%);
}

.zg-preview-dice:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.zg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-gerador-de-texto-zalgo .zg-actions .ut-btn,
body.page-gerador-de-texto-zalgo #zg-clean-copy {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--zg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--zg-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

body.page-gerador-de-texto-zalgo .zg-actions .ut-btn svg,
body.page-gerador-de-texto-zalgo #zg-clean-copy svg {
  display: block;
  flex: none;
}

body.page-gerador-de-texto-zalgo .zg-actions .ut-btn:hover,
body.page-gerador-de-texto-zalgo #zg-clean-copy:hover {
  border-color: #c9d6ea;
  background: #f5f8fd;
  color: var(--zg-ink);
  filter: none;
}

body.page-gerador-de-texto-zalgo #zg-copy,
body.page-gerador-de-texto-zalgo #zg-clean-copy {
  flex-grow: 1.4;
  border-color: var(--zg-navy);
  background: var(--zg-navy);
  color: #fff;
}

body.page-gerador-de-texto-zalgo #zg-copy:hover,
body.page-gerador-de-texto-zalgo #zg-clean-copy:hover {
  border-color: #172e6e;
  background: #172e6e;
  color: #fff;
}

body.page-gerador-de-texto-zalgo #zg-copy.is-copied,
body.page-gerador-de-texto-zalgo #zg-clean-copy.is-copied {
  border-color: #15803d;
  background: #15803d;
  color: #fff;
}

body.page-gerador-de-texto-zalgo .zg-actions .ut-btn:disabled,
body.page-gerador-de-texto-zalgo #zg-clean-copy:disabled {
  opacity: 0.45;
  cursor: default;
  background: var(--zg-navy);
  color: #fff;
}

.zg-meta {
  margin: 12px 0 8px;
  color: #4b5568;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.zg-limits li {
  padding: 6px 10px;
  border: 1px solid var(--zg-line);
  border-radius: 999px;
  background: var(--zg-soft);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.zg-limits b { font-variant-numeric: tabular-nums; }

.zg-limits li.is-ok {
  border-color: #b7e4c7;
  background: #f0fdf4;
  color: #166534;
}

.zg-limits li.is-over {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.article .zg-warn,
.article .zg-clean-note {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.article .zg-clean-note { margin-top: 8px; }

.zg-status {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
}

.article .zg-fit,
.article .zg-versions-title,
.article .zg-versions-sub {
  margin: 0;
}

.zg-fit {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--zg-soft);
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.zg-versions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--zg-line);
}

.zg-versions-title {
  color: var(--zg-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.zg-versions-sub {
  margin-top: 4px !important;
  margin-bottom: 10px !important;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.zg-version-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zg-version {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr) auto auto;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--zg-line);
  border-radius: 12px;
  background: var(--zg-soft);
}

.zg-version.is-current {
  border-color: #bfdbfe;
  background: #f3f8ff;
}

.zg-version-name {
  color: var(--zg-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.zg-version-face {
  display: block;
  min-width: 0;
  max-height: 3.15rem;
  overflow: hidden;
  color: #111;
  font-size: 1.02rem;
  line-height: 3.15rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zg-version-face.is-empty {
  max-height: 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.4;
}

.zg-version-count {
  min-width: 1.6rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.zg-version-count.is-ok { color: #166534; }
.zg-version-count.is-tight { color: #b45309; }
.zg-version-count.is-long { color: #c2410c; }
.zg-version-count.is-over { color: #991b1b; }

.zg-version-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  background: #f1f6fc;
  color: #1e2b45;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.zg-version-copy svg { display: block; flex: none; }
.zg-version-done { display: none; }

.zg-version-copy:hover {
  border-color: #c9d6ea;
  background: #fff;
}

.zg-version-copy.is-copied {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.zg-version-copy.is-copied .zg-version-idle { display: none; }
.zg-version-copy.is-copied .zg-version-done { display: inline; }

.zg-version-copy:disabled {
  opacity: 0.45;
  cursor: default;
}

.zg-ready-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dde8f7;
  border-radius: 18px;
  background: #f3f8ff;
}

.zg-ready-head {
  margin-bottom: 14px;
}

.article .post-content h2.zg-ready-title,
.zg-ready-title {
  margin: 0 !important;
  font-size: 1.2rem !important;
}

.zg-ready-sub {
  margin: 4px 0 0 32px;
  color: #64748b;
  font-size: 0.85rem;
}

.zg-ready {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.zg-sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 132px;
  margin: 0;
  padding: 14px 10px 12px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: #fff;
  color: var(--zg-ink);
  box-shadow: 0 6px 14px rgba(30, 50, 90, 0.05);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.zg-sample:hover {
  border-color: #dbe4f0;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(30, 50, 90, 0.08);
}

.zg-sample-face {
  display: block;
  max-height: 3.1rem;
  overflow: hidden;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.zg-sample-plain {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.zg-sample-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  background: #f1f6fc;
  color: #1e2b45;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.zg-sample-copy svg { display: block; flex: none; }
.zg-sample-done { display: none; }
.zg-sample.is-copied .zg-sample-idle { display: none; }
.zg-sample.is-copied .zg-sample-done { display: inline; }
.zg-sample.is-copied .zg-sample-copy {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.zg-clean-card { margin-top: 14px; }

.zg-clean-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  align-items: start;
}

.zg-clean {
  min-height: 4.6rem;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--zg-line);
  border-radius: 12px;
  background: var(--zg-soft);
  font-size: 1.05rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.zg-clean.is-empty { color: #94a3b8; }

#zg-clean-copy { width: 100%; }

.zg-notes {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.zg-how,
.zg-tip {
  position: relative;
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
}

.zg-how {
  border: 1px solid #f6e3a8;
  background: #fff8e6;
}

.zg-tip {
  min-height: 150px;
  padding-right: min(46%, 210px);
  border: 1px solid #f7d5de;
  background: #fff1f4;
  overflow: hidden;
}

.article .zg-how ol,
.article .zg-tip p {
  margin: 0;
  padding: 0;
  color: #3f3a2a;
  font-size: 0.93rem;
  line-height: 1.45;
}

.zg-how ol {
  list-style: none;
  counter-reset: zg;
}

.article .zg-how li {
  position: relative;
  counter-increment: zg;
  margin: 0 0 9px;
  padding-left: 32px;
}

.zg-how li::before {
  content: counter(zg);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fde68a;
  color: #1a1d2b;
  font-size: 12px;
  font-weight: 800;
}

.article img.zg-tip-mascot {
  position: absolute;
  right: -18px;
  bottom: -22px;
  display: block;
  width: min(210px, 48%);
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: scaleX(-1);
}

.zg-prose { margin-top: 22px; }

@media (min-width: 1360px) {
  .zg-stage {
    --zg-stage-w: min(1780px, calc(100vw - 96px));
    width: var(--zg-stage-w);
    margin-left: calc((100% - var(--zg-stage-w)) / 2);
    grid-template-columns: clamp(250px, 16vw, 300px) minmax(0, 1fr);
    gap: 18px clamp(24px, 1.6vw, 32px);
  }
}

@media (max-width: 1100px) {
  .zg-ready { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .zg-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .zg-title {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .article .zg-lede {
    max-width: none;
    margin: 0 0 8px;
    font-size: 0.95rem;
  }

  .article img.zg-mascot,
  .zg-checks,
  .article img.zg-tip-mascot {
    display: none;
  }

  .zg-main {
    padding: 10px;
    border-radius: 18px;
  }

  .zg-notes,
  .zg-clean-grid {
    grid-template-columns: 1fr;
  }

  .zg-tip {
    min-height: 0;
    padding-right: 18px;
  }
}

@media (max-width: 720px) {
  .zg-builder,
  .zg-ready {
    grid-template-columns: 1fr 1fr;
  }

  .zg-card { padding: 12px; }
  .zg-input { min-height: 96px; }
  .zg-ready-panel { padding: 12px; }
  .zg-ready-sub { margin-left: 0; }
  .zg-preview { font-size: 1.25rem; }

  .zg-status { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .zg-builder { grid-template-columns: 1fr; }

  .zg-version {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .zg-version-face {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

html[data-theme="dark"] body.page-gerador-de-texto-zalgo {
  --zg-ink: #f1f5f9;
  --zg-card: #1e293b;
  --zg-line: #334155;
  --zg-soft: #111827;
  --zg-blue: #3b82f6;
  --zg-navy: #1d4ed8;
}

html[data-theme="dark"] .zg-main {
  border-color: #1f2a3d;
  background: #0f172a;
}

html[data-theme="dark"] .zg-card,
html[data-theme="dark"] .zg-preset:not(.is-on),
html[data-theme="dark"] .zg-sample,
html[data-theme="dark"] body.page-gerador-de-texto-zalgo .zg-actions .ut-btn:not(#zg-copy) {
  border-color: #334155;
  background: #1e293b;
  color: #f1f5f9;
}

html[data-theme="dark"] .zg-input,
html[data-theme="dark"] .zg-dirty,
html[data-theme="dark"] .zg-clean {
  border-color: #334155;
  background: #111827;
  color: #f8fafc;
}

html[data-theme="dark"] .zg-input:focus,
html[data-theme="dark"] .zg-dirty:focus {
  background: #0f172a;
}

html[data-theme="dark"] .zg-sample-face { color: #f8fafc; }

html[data-theme="dark"] .zg-sample-copy {
  border-color: #334155;
  background: #243044;
  color: #e2e8f0;
}

html[data-theme="dark"] .zg-checks { background: #3f3516; }
html[data-theme="dark"] .article .zg-checks li,
html[data-theme="dark"] .article .zg-lede { color: #f8efd2; }
html[data-theme="dark"] .zg-how { border-color: #5a4a1a; background: #3a3214; }
html[data-theme="dark"] .zg-tip { border-color: #5a2f3e; background: #3b2430; }
html[data-theme="dark"] .article .zg-how ol,
html[data-theme="dark"] .article .zg-tip p,
html[data-theme="dark"] .article .zg-checks li { color: #f8efd2; }

html[data-theme="dark"] .zg-ready-panel {
  border-color: #27416a;
  background: #152033;
  color: #f8fafc;
}

html[data-theme="dark"] .zg-preview-wrap {
  background: #0b1220;
}

html[data-theme="dark"] .zg-limits li {
  border-color: #334155;
  background: #1e293b;
  color: #e2e8f0;
}

html[data-theme="dark"] .zg-limits li.is-ok {
  background: #052e16;
  border-color: #166534;
  color: #bbf7d0;
}

html[data-theme="dark"] .zg-limits li.is-over {
  background: #450a0a;
  border-color: #991b1b;
  color: #fecaca;
}

html[data-theme="dark"] .article .zg-warn,
html[data-theme="dark"] .article .zg-clean-note,
html[data-theme="dark"] .zg-meta,
html[data-theme="dark"] .zg-ready-sub,
html[data-theme="dark"] .zg-field-label,
html[data-theme="dark"] .zg-dir-label,
html[data-theme="dark"] .article .zg-field-note,
html[data-theme="dark"] .zg-sample-plain,
html[data-theme="dark"] .zg-versions-sub,
html[data-theme="dark"] .zg-fit {
  color: #cbd5e1;
}

html[data-theme="dark"] .zg-fit,
html[data-theme="dark"] .zg-version {
  border-color: #334155;
  background: #111827;
}

html[data-theme="dark"] .zg-version.is-current {
  border-color: #1d4ed8;
  background: #172033;
}

html[data-theme="dark"] .zg-version-face { color: #f8fafc; }
html[data-theme="dark"] .zg-version-face.is-empty { color: #94a3b8; }

html[data-theme="dark"] .zg-version-copy {
  border-color: #334155;
  background: #243044;
  color: #e2e8f0;
}

html[data-theme="dark"] .zg-version-copy:hover {
  border-color: #475569;
  background: #1e293b;
  color: #f8fafc;
}

html[data-theme="dark"] .zg-version-count.is-ok { color: #86efac; }
html[data-theme="dark"] .zg-version-count.is-tight { color: #fcd34d; }
html[data-theme="dark"] .zg-version-count.is-long { color: #fdba74; }
html[data-theme="dark"] .zg-version-count.is-over { color: #fca5a5; }
