/* Page-only layout for /teste-de-digitacao/. */
body.page-teste-de-digitacao .td-page { --td-blue: #2563eb; --td-ink: #172033; }
@media (min-width: 1100px) {
  body.page-teste-de-digitacao .td-page { --cv-aside: clamp(230px, 18vw, 280px); }
}
body.page-teste-de-digitacao .td-page .conv-title {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
body.page-teste-de-digitacao .article .td-page .conv-lede {
  margin: 0 0 18px;
  color: #4f63b8;
  font-size: 1.02rem;
  line-height: 1.4;
}
body.page-teste-de-digitacao .article .td-page img.conv-art { max-width: 240px; margin: 16px 0 0; }
body.page-teste-de-digitacao .td-app { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
body.page-teste-de-digitacao .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
body.page-teste-de-digitacao .td-app svg { max-width: none; }
body.page-teste-de-digitacao .td-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
body.page-teste-de-digitacao .td-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.page-teste-de-digitacao .td-head .conv-card-title { margin: 0; }
body.page-teste-de-digitacao #td-restart {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #172033;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
body.page-teste-de-digitacao .td-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
body.page-teste-de-digitacao .td-pill {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #172033;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}
body.page-teste-de-digitacao .td-pill.is-on { background: #2563eb; border-color: #2563eb; color: #fff; }
body.page-teste-de-digitacao .td-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-weight: 700;
  color: #172033;
}
body.page-teste-de-digitacao .td-prompt {
  min-height: 4.8em;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body.page-teste-de-digitacao .td-prompt .is-ok { color: #166534; }
body.page-teste-de-digitacao .td-prompt .is-bad { color: #b91c1c; background: #fee2e2; border-radius: 3px; }
body.page-teste-de-digitacao .td-prompt .is-now { color: #172033; border-bottom: 2px solid #2563eb; }
body.page-teste-de-digitacao .td-input {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.05rem;
  color: #172033;
  background: #fff;
}
body.page-teste-de-digitacao .td-input:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
body.page-teste-de-digitacao .td-input:disabled { background: #f1f5f9; color: #64748b; }
body.page-teste-de-digitacao .article .td-status { margin: 10px 0 0; color: #475569; font-weight: 700; }
body.page-teste-de-digitacao .td-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
body.page-teste-de-digitacao .td-stats div {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}
body.page-teste-de-digitacao .td-stats dt { color: #64748b; font-size: 0.78rem; font-weight: 700; }
body.page-teste-de-digitacao .td-stats dd { margin: 2px 0 0; color: #172033; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
body.page-teste-de-digitacao .article .td-note { margin: 12px 0 0; color: #64748b; font-size: 0.92rem; }
html[data-theme="dark"] body.page-teste-de-digitacao .td-prompt,
html[data-theme="dark"] body.page-teste-de-digitacao .td-input,
html[data-theme="dark"] body.page-teste-de-digitacao #td-restart,
html[data-theme="dark"] body.page-teste-de-digitacao .td-pill,
html[data-theme="dark"] body.page-teste-de-digitacao .td-stats div {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}
html[data-theme="dark"] body.page-teste-de-digitacao .td-prompt { color: #94a3b8; }
html[data-theme="dark"] body.page-teste-de-digitacao .td-prompt .is-now { color: #e2e8f0; }
html[data-theme="dark"] body.page-teste-de-digitacao .td-accent,
html[data-theme="dark"] body.page-teste-de-digitacao .td-stats dd { color: #e2e8f0; }
