/* WhatsApp formatter page. Site header and footer stay untouched. */
.waf-page {
  --waf-ink: #172033;
  --waf-body: #3d4658;
  --waf-muted: #64748b;
  --waf-line: #e3e9f1;
  --waf-green: #22c55e;
  --waf-green-dark: #16a34a;
  margin: 4px 0 28px;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-app {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 320px;
  grid-template-areas:
    "art head actions"
    "art editor side"
    "ex ex rail";
  gap: 16px 18px;
  align-items: start;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  color: var(--waf-ink);
}

body.page-whatsapp-negrito-italico-sublinhado .waf-app > .util-success { grid-column: 1 / -1; }

/* ---------- Art ---------- */
.waf-art {
  grid-area: art;
  position: relative;
  align-self: stretch;
  min-height: 340px;
  margin-left: -8px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 360'%3E%3Cpath fill='%23dcfce7' d='M28 64C-6 110-4 250 34 312c26 42 88 44 108 6 18-34-16-62-6-104 10-40 50-64 36-110C156 58 64 16 28 64z'/%3E%3Cpath fill='%2386efac' opacity='.75' d='M14 150c-14 50 0 118 38 132-22-40-24-86-6-128z'/%3E%3Cpath fill='%234ade80' opacity='.55' d='M120 250c24 6 44 30 36 58-8-22-22-34-44-40z'/%3E%3Cg stroke='%23facc15' stroke-width='5' stroke-linecap='round' fill='none'%3E%3Cpath d='M146 14l6-12M160 32l14-6M160 50l14 3M22 336l10-9M52 348l2-13'/%3E%3C/g%3E%3Cg fill='%234ade80'%3E%3Ccircle cx='14' cy='62' r='5'/%3E%3Ccircle cx='166' cy='196' r='4'/%3E%3Ccircle cx='12' cy='300' r='6'/%3E%3Ccircle cx='150' cy='322' r='4'/%3E%3Ccircle cx='160' cy='120' r='3'/%3E%3C/g%3E%3C/svg%3E") left top / 100% auto no-repeat;
  pointer-events: none;
}

.waf-mark {
  position: absolute;
  left: 22px;
  top: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(160deg, #3ee07a, #1faa4f);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
}

.waf-mark svg {
  width: 62px;
  height: 62px;
  fill: #fff;
}

.waf-pill {
  position: absolute;
  z-index: 2;
  padding: 7px 12px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  color: var(--waf-ink);
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
}

.waf-pill.is-bold { top: 138px; left: 30px; font-weight: 800; transform: rotate(-9deg); }
.waf-pill.is-italic { top: 186px; left: 4px; font-style: italic; transform: rotate(-4deg); }
.waf-pill.is-strike { top: 232px; left: 16px; text-decoration: line-through; transform: rotate(3deg); }
.waf-pill.is-mono {
  top: 280px;
  left: 20px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  transform: rotate(-7deg);
}

/* ---------- Head ---------- */
.waf-head { display: contents; }

.waf-intro-block { grid-area: head; }

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

.article .waf-lede {
  margin: 0;
  max-width: 78ch;
  color: var(--waf-body);
  font-size: 1rem;
  line-height: 1.5;
}

.waf-actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  align-self: start;
  margin-top: 8px;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-app .waf-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--waf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--waf-ink) !important;
  font-size: 0.84rem;
  font-weight: 750;
  gap: 8px;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-app .waf-btn:hover {
  border-color: #bbf7d0;
  background: #f6fef9;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-app .waf-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.waf-app svg.is-stroke,
.waf-app .is-stroke svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waf-actions .waf-btn { min-height: 46px !important; }

body.page-whatsapp-negrito-italico-sublinhado .waf-app #waf-btn-copy {
  flex: 1 1 auto;
  border-color: var(--waf-green-dark);
  background: linear-gradient(180deg, #25c864, #17a34a);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

body.page-whatsapp-negrito-italico-sublinhado .waf-app #waf-btn-copy:hover {
  background: linear-gradient(180deg, #1fb959, #13913f);
}

body.page-whatsapp-negrito-italico-sublinhado .waf-app #waf-btn-copy svg {
  width: 22px;
  height: 22px;
}

/* ---------- Editor ---------- */
.waf-editor {
  grid-area: editor;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 12px;
  border: 1px solid var(--waf-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 50, 90, 0.05);
}

body.page-whatsapp-negrito-italico-sublinhado .waf-format-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-format-group .waf-btn {
  min-height: 42px;
  padding: 0 16px;
  font-weight: 650;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-format-group .waf-glyph {
  display: inline-grid;
  place-items: center;
  width: 20px;
  font-size: 1.12rem;
  line-height: 1;
}

.waf-format-group b.waf-glyph { font-weight: 900; }
.waf-format-group i.waf-glyph { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.waf-format-group s.waf-glyph { font-weight: 800; }

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

body.page-whatsapp-negrito-italico-sublinhado .waf-textarea {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 230px;
  padding: 16px;
  border: 1.5px solid #4ade80;
  border-radius: 12px;
  background: #fff;
  color: var(--waf-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-textarea:focus {
  border-color: var(--waf-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

body.page-whatsapp-negrito-italico-sublinhado .waf-meta-row {
  align-items: center;
  margin-top: 10px;
  padding: 0 2px;
  color: var(--waf-muted);
  font-size: 0.78rem;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-hint { margin: 0; }

.waf-count-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.waf-smile {
  width: 20px;
  height: 20px;
  color: #475569;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-status { margin-top: 6px; }
body.page-whatsapp-negrito-italico-sublinhado .waf-status:empty { display: none; }

/* ---------- Side cards ---------- */
body.page-whatsapp-negrito-italico-sublinhado .waf-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  background: transparent;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-card,
.waf-examples,
.waf-tips-card,
.waf-where {
  padding: 14px;
  border: 1px solid var(--waf-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 50, 90, 0.04);
}

body.page-whatsapp-negrito-italico-sublinhado .waf-card-label,
.article .waf-tips-card h2,
.article .waf-where h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  opacity: 1;
  color: var(--waf-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.waf-card-ico {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--waf-green) center / 16px no-repeat;
}

.waf-card-ico.is-chat {
  background-size: 17px;
  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='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.47-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.15-.18.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.21 3.07c.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.22 1.36.2 1.87.12.57-.09 1.76-.72 2-1.41.25-.7.25-1.29.18-1.41-.08-.13-.27-.2-.57-.35m-5.42 7.4h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h.01c6.55 0 11.89-5.34 11.89-11.89a11.82 11.82 0 0 0-3.48-8.41z'/%3E%3C/svg%3E");
}

.waf-card-ico.is-link {
  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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13.5a4.5 4.5 0 0 0 6.4.4l2.6-2.6a4.5 4.5 0 0 0-6.4-6.4l-1.4 1.4'/%3E%3Cpath d='M14 10.5a4.5 4.5 0 0 0-6.4-.4L5 12.7a4.5 4.5 0 0 0 6.4 6.4l1.4-1.4'/%3E%3C/svg%3E");
}

.waf-card-ico.is-bulb {
  background-color: #fbbf24;
  background-size: 17px;
  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='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 2zM9 19.5h6v.7A1.8 1.8 0 0 1 13.2 22h-2.4A1.8 1.8 0 0 1 9 20.2z'/%3E%3C/svg%3E");
}

.waf-card-ico.is-share {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='18' cy='5.5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='18.5' r='3'/%3E%3C/g%3E%3Cpath stroke='%23fff' stroke-width='2' d='m8.6 10.6 6.8-3.7M8.6 13.4l6.8 3.7'/%3E%3C/svg%3E");
}

body.page-whatsapp-negrito-italico-sublinhado .waf-chat {
  justify-content: center;
  min-height: 120px;
  padding: 22px 14px 16px;
  border: 0;
  border-radius: 12px;
  background: #efe7dc url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23d9cdbd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14h14a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-9l-5 4V17a3 3 0 0 1 3-3z'/%3E%3Ccircle cx='66' cy='18' r='7'/%3E%3Cpath d='M63 17h.01M69 17h.01M63.5 21a3.5 3.5 0 0 0 5 0'/%3E%3Cpath d='M40 52l4-8 4 8-8-5h8z'/%3E%3Cpath d='M78 56a6 6 0 1 1 0 .1M12 64h12M18 58v12'/%3E%3Cpath d='M44 80c4-6 10-6 14 0M58 80c4-6 10-6 14 0'/%3E%3Cpath d='M86 82l4 4M90 82l-4 4'/%3E%3C/svg%3E") 0 0 / 96px 96px;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-bubble {
  position: relative;
  max-width: 82%;
  padding: 10px 12px 6px;
  border-radius: 10px 10px 2px 10px;
  background: #d9fdd3;
  color: #111b21;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-bubble.is-empty {
  opacity: 1;
  color: #334155;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-bubble-time {
  margin-top: 6px;
  color: #667781;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
}

.waf-tick { color: #53bdeb; letter-spacing: -3px; }

body.page-whatsapp-negrito-italico-sublinhado .waf-cheat { gap: 0; }

body.page-whatsapp-negrito-italico-sublinhado .waf-cheat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid #eef2f7;
  color: var(--waf-body);
  font-size: 0.84rem;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-cheat-row:first-child { border-top: 0; padding-top: 0; }
body.page-whatsapp-negrito-italico-sublinhado .waf-cheat-row:last-child { padding-bottom: 0; }

body.page-whatsapp-negrito-italico-sublinhado .waf-cheat-row code {
  padding: 7px 10px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #f5f7fa;
  color: var(--waf-ink);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
}

.waf-cheat-row button,
.waf-ex-copy {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--waf-line);
  border-radius: 9px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='11' height='11' rx='2'/%3E%3Cpath d='M15.5 5.5v-.5A1.5 1.5 0 0 0 14 3.5H6A1.5 1.5 0 0 0 4.5 5v8A1.5 1.5 0 0 0 6 14.5h.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  cursor: pointer;
}

.waf-cheat-row button:hover,
.waf-ex-grid button:hover .waf-ex-copy {
  border-color: #86efac;
  background-color: #f0fdf4;
}

/* ---------- Examples ---------- */
.waf-examples { grid-area: ex; padding: 16px; }

.waf-ex-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.waf-sparkle {
  width: 30px;
  height: 30px;
  flex: none;
  fill: #fbbf24;
}

.article .waf-examples h2 {
  margin: 2px 0 2px;
  color: var(--waf-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.article .waf-examples p {
  margin: 0;
  color: var(--waf-muted);
  font-size: 0.84rem;
}

.waf-ex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.waf-ex-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--waf-line);
  border-radius: 12px;
  background: #fff;
  color: var(--waf-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waf-ex-grid button:hover {
  border-color: #bbf7d0;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.08);
}

.waf-ex-txt { min-width: 0; }

.waf-ex-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 750;
}

.waf-ex-code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #1e293b;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.waf-ex-code.is-mono {
  padding: 3px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
}

.waf-ex-code.is-italic { font-style: italic; }
.waf-ex-code.is-bold { font-weight: 800; }
.waf-ex-code.is-strike { text-decoration: line-through; color: #64748b; }

/* ---------- Rail ---------- */
.waf-rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-whatsapp-negrito-italico-sublinhado .waf-tips { display: grid; gap: 9px; }

body.page-whatsapp-negrito-italico-sublinhado .waf-tips li {
  margin: 0;
  padding: 1px 0 1px 30px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23fbbf24'/%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 1px / 20px no-repeat;
  color: var(--waf-body);
  font-size: 0.84rem;
  line-height: 1.45;
}

.waf-where {
  background: #ecfaf1;
  border-color: #cdeeda;
}

.waf-where-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article .waf-where p {
  margin: 0;
  color: var(--waf-body);
  font-size: 0.8rem;
  line-height: 1.45;
}

.waf-devices {
  display: flex;
  gap: 8px;
  flex: none;
}

.waf-devices span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d6e9dd;
  border-radius: 10px;
  background: #fff;
}

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

/* ---------- Breakpoints ---------- */
@media (min-width: 1360px) {
  body.page-whatsapp-negrito-italico-sublinhado .waf-app {
    --waf-stage-w: min(1560px, calc(100vw - 96px));
    width: var(--waf-stage-w);
    margin-left: calc((100% - var(--waf-stage-w)) / 2);
    grid-template-columns: clamp(170px, 11vw, 200px) minmax(0, 1fr) clamp(330px, 24vw, 400px);
    column-gap: 22px;
  }

  .waf-art { transform: scale(1.08); transform-origin: left top; }
}

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

@media (max-width: 1180px) {
  body.page-whatsapp-negrito-italico-sublinhado .waf-app {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "head actions"
      "editor side"
      "ex rail";
  }

  .waf-art { display: none; }
  .waf-actions { flex-wrap: wrap; }
  .waf-where-body { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 980px) {
  body.page-whatsapp-negrito-italico-sublinhado .waf-app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "actions"
      "editor"
      "side"
      "ex"
      "rail";
    gap: 12px;
  }

  .waf-actions { flex-wrap: nowrap; margin-top: 0; }
  .waf-where { display: none; }
}

@media (max-width: 640px) {
  .waf-title { font-size: 1.75rem; }
  .article .waf-lede { font-size: 0.94rem; }
  .waf-actions { gap: 6px; }
  .waf-actions .waf-btn {
    min-height: 44px !important;
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  body.page-whatsapp-negrito-italico-sublinhado .waf-app #waf-btn-copy { min-width: 0; }
  body.page-whatsapp-negrito-italico-sublinhado .waf-app #waf-btn-copy svg { width: 19px; height: 19px; }
  body.page-whatsapp-negrito-italico-sublinhado .waf-format-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  body.page-whatsapp-negrito-italico-sublinhado .waf-format-group .waf-btn {
    flex-direction: column;
    gap: 2px;
    min-height: 52px;
    padding: 4px 2px;
    font-size: 0.72rem;
  }
  body.page-whatsapp-negrito-italico-sublinhado .waf-textarea { min-height: 170px; }
  .waf-hint { display: none; }
  body.page-whatsapp-negrito-italico-sublinhado .waf-meta-row { justify-content: flex-end; }
  .waf-ex-grid { grid-template-columns: minmax(0, 1fr); }
  .waf-ex-grid button { min-height: 64px; }
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] .waf-title,
html[data-theme="dark"] .article .waf-examples h2,
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-card-label,
html[data-theme="dark"] .article .waf-tips-card h2,
html[data-theme="dark"] .article .waf-where h2,
html[data-theme="dark"] .waf-ex-grid strong { color: #f8fafc; }

html[data-theme="dark"] .article .waf-lede,
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-tips li,
html[data-theme="dark"] .article .waf-where p,
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-cheat-row,
html[data-theme="dark"] .waf-ex-code { color: #cbd5e1; }

html[data-theme="dark"] .waf-editor,
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-card,
html[data-theme="dark"] .waf-examples,
html[data-theme="dark"] .waf-tips-card,
html[data-theme="dark"] .waf-ex-grid button,
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-textarea,
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-app .waf-btn:not(#waf-btn-copy),
html[data-theme="dark"] .waf-pill,
html[data-theme="dark"] .waf-devices span {
  background-color: #1e293b;
  border-color: #334155;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-cheat-row code,
html[data-theme="dark"] .waf-ex-code.is-mono { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-cheat-row { border-color: #334155; }
html[data-theme="dark"] .waf-where { background: #13261c; border-color: #1f4030; }
html[data-theme="dark"] .waf-devices svg { stroke: #e2e8f0; }
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-chat { background-color: #0b141a; }
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-bubble { background: #005c4b; color: #e9edef; }
html[data-theme="dark"] body.page-whatsapp-negrito-italico-sublinhado .waf-bubble.is-empty { color: #d1d7db; }
html[data-theme="dark"] .waf-cheat-row button,
html[data-theme="dark"] .waf-ex-copy { background-color: #fff; }
