/* Counter studio layout for /contador-de-palavras/ and /contador-de-caracteres/. Site header, footer and tools bar stay untouched. */
.cpw-hero,
.cdc-words {
  --cpw-ink: #172033;
  --cpw-blue: #2563eb;
  --cpw-line: #e3e9f1;
  --cpw-muted: #64748b;
  --cpw-art-w: 0px;
  --cpw-side-w: 280px;
}

/* ---------- Hero ---------- */
.cpw-hero {
  position: relative;
  margin: 4px 0 16px;
  padding-left: var(--cpw-art-w);
}

.article img.cpw-art {
  display: none;
  position: absolute;
  left: -10px;
  top: 17px;
  width: calc(var(--cpw-art-w) - 6px);
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

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

.article .cpw-lede {
  margin: 0;
  color: #3d4658;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- Shell ---------- */
.global.cdc-words {
  display: block;
  margin-bottom: 28px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  color: var(--cpw-ink);
}

.cdc-words .globalinner {
  display: block;
}

.cpw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cpw-side-w);
  gap: 16px;
  align-items: start;
}

.cpw-main,
.cpw-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ---------- Stat cards ---------- */
.cdc-words #statistic {
  width: auto;
  margin: 0 0 0 var(--cpw-art-w);
  padding: 0;
  border: 0;
  background: transparent;
}

.cdc-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cdc-words .cdc-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--cpw-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 40, 80, 0.04);
  text-align: left;
}

.cdc-stat-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  color: var(--cpw-c, #2563eb);
  background: var(--cpw-bg, #dbeafe);
}

.cdc-stat-ico b {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
}

.cdc-stat-ico svg,
.cdc-sum-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cdc-stat-txt { min-width: 0; }

.cdc-words .cdc-stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cpw-ink);
  white-space: nowrap;
}

.cdc-words .cdc-stat-label {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cpw-muted);
}

.cdc-words .cdc-stat-label small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
}

.is-chars, .is-unique, .is-utf, .is-spaces { --cpw-c: #2563eb; --cpw-bg: #dbeafe; }
.is-nospace, .is-lines { --cpw-c: #16a34a; --cpw-bg: #dcfce7; }
.is-words, .is-reading { --cpw-c: #7c3aed; --cpw-bg: #ede9fe; }
.is-sentences { --cpw-c: #ea580c; --cpw-bg: #ffedd5; }
.is-paragraphs, .is-pages { --cpw-c: #e11d48; --cpw-bg: #ffe4e6; }
.is-graphemes { --cpw-c: #ca8a04; --cpw-bg: #fef3c7; }
.is-speak { --cpw-c: #db2777; --cpw-bg: #fce7f3; }
.is-sms { --cpw-c: #4f46e5; --cpw-bg: #e0e7ff; }
.is-read { --cpw-c: #0d9488; --cpw-bg: #ccfbf1; }

/* ---------- Editor card ---------- */
.cpw-editor {
  border: 1px solid var(--cpw-line);
  border-radius: 20px;
  background: #f4f7fc;
  box-shadow: 0 10px 28px rgba(30, 50, 90, 0.05);
}

.cdc-words .editbarwrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 12px;
  border: 0;
  background: transparent;
  white-space: normal;
}

.cdc-words .dropdown {
  border-right: 0;
  line-height: normal;
}

.cdc-words .dropdown-btn {
  min-height: 38px;
  padding: 0 32px 0 13px;
  border: 1px solid var(--cpw-line);
  border-radius: 10px;
  background-color: #fff;
  background-position: right 9px center;
  color: var(--cpw-ink);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 36px;
}

.cdc-words .editbar {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.cdc-words .botao-global {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--cpw-line);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cdc-words .botao-global:hover {
  border-color: #bfd3f5;
  background: #f8fbff;
}

.cdc-words .botao-global svg {
  width: 20px;
  height: 20px;
}

.cdc-words .botao-global button,
.cdc-words .botao-global label {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.cdc-words .botao-global:nth-child(2) { order: 1; }
.cdc-words .botao-global:nth-child(3) { order: 2; }
.cdc-words .botao-global:nth-child(8) { order: 3; }
.cdc-words .botao-global:nth-child(4) {
  order: 4;
  width: auto;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}
.cdc-words .botao-global:nth-child(1) { order: 5; margin-left: auto; }
.cdc-words .botao-global:nth-child(5) { order: 6; }
.cdc-words .botao-global:nth-child(6) { order: 7; }
.cdc-words .botao-global:nth-child(7) { order: 8; }

.cdc-words #font-size {
  min-height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--cpw-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cpw-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.cdc-words .paper {
  width: auto;
  margin: 0 12px;
  border: 1px solid var(--cpw-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.cdc-words .cdc-editor-wrap {
  display: flex;
  align-items: stretch;
}

.cpw-gutter {
  flex: none;
  width: 2.8rem;
  margin: 0;
  padding: 16px 10px 16px 6px;
  overflow: hidden;
  border-right: 1px solid #eef2f7;
  background: #fbfcfe;
  color: #94a3b8;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 15px;
  line-height: 1.7;
  text-align: right;
  white-space: pre;
  user-select: none;
}

.cdc-words #textArea {
  flex: 1 1 auto;
  height: 300px;
  min-height: 220px;
  margin: 0;
  padding: 16px 14px;
  border: 0;
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
  color: var(--cpw-ink);
}

.cdc-words .cdc-empty { display: none !important; }

.cdc-words .cdc-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 12px;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
}

.cdc-words .cdc-options label {
  gap: 8px;
  font-weight: 600;
  color: #334155;
}

.cdc-words .cdc-options input[type="checkbox"] {
  width: 17px;
  height: 17px;
}

.cdc-words .cdc-options-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.cdc-words .cdc-options-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--cpw-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cpw-ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.cdc-words #cdc-copy-stats-top {
  padding: 0 20px;
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22);
}

.cdc-words #cdc-copy-stats-top:hover { background: #1e40af; }

.cdc-words #cdc-copy-stats-top svg,
.cdc-words #cdc-clear-draft svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Limits card ---------- */
.cpw-limits {
  padding: 16px;
  border: 1px solid var(--cpw-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 50, 90, 0.04);
}

.cdc-words .cpw-limits .cdc-label-limits {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cpw-ink);
}

.cdc-words .cdc-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cdc-words .cdc-limit-bar {
  gap: 12px;
  padding: 0;
  background: transparent;
}

.cdc-words .cdc-limit-bar label {
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 650;
}

.cdc-words .cdc-limit-label::after { content: none; }

.cdc-words .cdc-limit-bar input[type="number"] {
  width: 110px;
  min-height: 40px;
  border-color: var(--cpw-line);
  border-radius: 10px;
}

.cdc-words #cdc-remaining {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--cpw-line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--cpw-ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.cdc-words .cdc-autosave {
  gap: 14px;
  padding: 0;
  background: transparent;
  font-size: 0.74rem;
  color: var(--cpw-muted);
}

.cdc-words #cdc-clear-draft {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--cpw-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cpw-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.cdc-words .cdc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cdc-words .cdc-preset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--cpw-line);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 650;
}

.cdc-words .cdc-preset.is-active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

/* ---------- Side cards ---------- */
.cpw-how,
.cpw-summary,
.cpw-where {
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 20px;
}

.cpw-how { background: #fff8e6; border-color: #f8e7b5; }
.cpw-summary { background: #f3f7ff; border-color: #dfe9fa; }
.cpw-where {
  position: relative;
  min-height: 190px;
  background: #ecfaf1;
  border-color: #d3f0de;
}

.article .cpw-side h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--cpw-ink);
}

.cpw-ico {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: transparent center / 18px no-repeat;
}

.cpw-ico.is-bulb {
  background-size: 28px;
  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");
}

.cpw-ico.is-chart {
  border-radius: 9px;
  background-color: #2563eb;
  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='2.6' stroke-linecap='round'%3E%3Cpath d='M6 19v-5M12 19V9M18 19V5'/%3E%3C/svg%3E");
}

.cpw-ico.is-check {
  background-color: #22a55a;
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4 9-9'/%3E%3C/svg%3E");
}

.cpw-ico.is-gear {
  width: 32px;
  height: 32px;
  background-color: #2563eb;
  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='%23fff' d='M19.14 12.94a7.07 7.07 0 0 0 0-1.88l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96a7.03 7.03 0 0 0-1.62-.94l-.36-2.54A.48.48 0 0 0 13.93 2h-3.84a.48.48 0 0 0-.48.41l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.49.49 0 0 0-.59.22L2.73 8.47a.48.48 0 0 0 .12.61l2.03 1.58a7.07 7.07 0 0 0 0 1.88l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.25.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32a.49.49 0 0 0-.12-.61zM12 15.6A3.6 3.6 0 1 1 12 8.4a3.6 3.6 0 0 1 0 7.2z'/%3E%3C/svg%3E");
}

.cpw-how ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cpw-how li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #3d4658;
}

.cpw-how li:last-child { margin-bottom: 0; }

.cpw-how li span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: #fbbf24;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.cdc-words #footerpart {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cdc-words #footerpart::before { content: none; }

.cdc-words #footerpart ul.cdc-sum {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cdc-words #footerpart ul.cdc-sum li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 9px 8px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.cdc-sum-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  color: var(--cpw-c);
  background: var(--cpw-bg);
  font-style: normal;
}

.cdc-sum-ico svg { width: 14px; height: 14px; stroke-width: 2.2; }

.cdc-sum-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdc-words #footerpart ul.cdc-sum li .cdc-sum-value {
  margin-left: auto;
  color: var(--cpw-ink);
  font-weight: 800;
  white-space: nowrap;
}

.cdc-words #footerpart .cdc-copy-stats { display: none; }

.article .cpw-where p {
  max-width: 62%;
  margin: 0;
  color: #3d4658;
  font-size: 0.84rem;
  line-height: 1.45;
}

.cpw-devices {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cpw-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);
}

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

.cpw-where h2 { position: relative; z-index: 1; }

.article img.cpw-clip {
  position: absolute;
  right: -30px;
  bottom: -5px;
  width: min(40%, 132px);
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}

/* ---------- Below the studio ---------- */
.cdc-words .cdc-label-platforms {
  margin: 26px 0 10px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--cpw-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.cdc-words .cdc-platforms,
.cdc-words .cdc-method-note,
.cdc-words #cdc-sms,
.cdc-words .keyword-global {
  border-radius: 16px;
}

.cdc-words .keyword-global {
  margin-top: 16px;
  border: 1px solid var(--cpw-line);
  overflow: hidden;
}

/* ---------- Wide screens ---------- */
@media (min-width: 1181px) {
  .cpw-hero,
  .cdc-words {
    --cpw-art-w: 170px;
  }

  .article img.cpw-art { display: block; }
}

@media (min-width: 1360px) {
  .cpw-hero,
  .cdc-words {
    --cpw-art-w: clamp(170px, 11vw, 210px);
    --cpw-side-w: clamp(300px, 21vw, 370px);
  }

  .cpw-hero,
  .global.cdc-words {
    --cpw-stage-w: min(1640px, calc(100vw - 96px));
    width: var(--cpw-stage-w);
    margin-left: calc((100% - var(--cpw-stage-w)) / 2);
  }
}

@media (max-width: 1359px) {
  .cdc-words #footerpart ul.cdc-sum {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

@media (max-width: 1180px) {
  .cdc-stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cdc-words .cdc-stat { gap: 8px; padding: 10px; }
  .cdc-stat-ico { width: 34px; height: 34px; border-radius: 10px; }
}

@media (max-width: 980px) {
  .cpw-layout { grid-template-columns: 1fr; }
  .cpw-main { gap: 12px; }
  .cdc-words #statistic { order: 2; }
  .cpw-editor { order: 1; }
  .cpw-limits { order: 3; }
  .cpw-how,
  .cpw-where { display: none; }
  .cdc-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cdc-words #footerpart ul.cdc-sum { grid-template-columns: 1fr 1fr; }
  .cdc-words .botao-global:nth-child(1) { margin-left: 0; }
}

@media (max-width: 640px) {
  .cpw-hero { margin-bottom: 12px; }
  .cdc-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdc-words .editbarwrapper { gap: 8px; padding: 10px; }
  .cdc-words .dropdown { flex: 1 1 100%; }
  .cdc-words .editbar { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .cdc-words .botao-global:nth-child(4) { display: none; }
  .cdc-words .paper { margin: 0 10px; }
  .cdc-words #textArea { height: 38vh; min-height: 180px; font-size: 16px; }
  .cpw-gutter { font-size: 16px; }
  .cdc-words .cdc-options { padding: 10px; }
  .cdc-words .cdc-options-actions { width: 100%; margin-left: 0; }
  .cdc-words .cdc-options-actions button { flex: 1 1 0; justify-content: center; }
  .cdc-words #footerpart ul.cdc-sum { grid-template-columns: 1fr; }
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] .cpw-title,
html[data-theme="dark"] .cdc-words .cdc-stat-value,
html[data-theme="dark"] .article .cpw-side h2,
html[data-theme="dark"] .cdc-words .cpw-limits .cdc-label-limits,
html[data-theme="dark"] .cdc-words #footerpart ul.cdc-sum li .cdc-sum-value { color: #f8fafc; }

html[data-theme="dark"] .article .cpw-lede,
html[data-theme="dark"] .cpw-how li,
html[data-theme="dark"] .article .cpw-where p,
html[data-theme="dark"] .cdc-words .cdc-options label { color: #cbd5e1; }

html[data-theme="dark"] .cdc-words .cdc-stat,
html[data-theme="dark"] .cpw-limits,
html[data-theme="dark"] .cdc-words .paper,
html[data-theme="dark"] .cdc-words #textArea,
html[data-theme="dark"] .cdc-words #footerpart ul.cdc-sum li,
html[data-theme="dark"] .cdc-words .botao-global,
html[data-theme="dark"] .cdc-words .dropdown-btn,
html[data-theme="dark"] .cdc-words #font-size,
html[data-theme="dark"] .cdc-words .cdc-options-actions button:not(#cdc-copy-stats-top),
html[data-theme="dark"] .cdc-words #cdc-remaining,
html[data-theme="dark"] .cdc-words #cdc-clear-draft,
html[data-theme="dark"] .cdc-words .cdc-preset:not(.is-active),
html[data-theme="dark"] .cpw-devices span {
  background-color: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .cpw-editor { background: #111827; border-color: #334155; }
html[data-theme="dark"] .cpw-gutter { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .cpw-how { background: #2a2416; border-color: #4a3d1c; }
html[data-theme="dark"] .cpw-summary { background: #152033; border-color: #243452; }
html[data-theme="dark"] .cpw-where { background: #13261c; border-color: #1f4030; }
html[data-theme="dark"] .cpw-devices svg { stroke: #e2e8f0; }
html[data-theme="dark"] .cdc-stat-ico,
html[data-theme="dark"] .cdc-sum-ico { background: color-mix(in srgb, var(--cpw-c) 22%, #1e293b); }
