/* DigestPress Tools — Typing Speed Test. Clean, mobile-friendly, matches a light editorial site. */
.dtt-wrap { max-width: 900px; margin: 0 auto; font-size: 16px; line-height: 1.55; color: #1f2937; }
.dtt-intro { color: #4b5563; margin: 0 0 20px; }

.dtt-panel { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin: 0 0 24px; }

.dtt-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.dtt-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #374151; }
.dtt-field select { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; background: #fff; color: #111827; }

.dtt-btn { padding: 10px 22px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; background: #1d4ed8; color: #fff; }
.dtt-btn:hover { background: #1e40af; }
.dtt-btn-secondary { background: #e5e7eb; color: #374151; }
.dtt-btn-secondary:hover { background: #d1d5db; }

.dtt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 640px) { .dtt-stats { grid-template-columns: repeat(2, 1fr); } }
.dtt-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 8px; text-align: center; }
.dtt-stat-num { display: block; font-size: 28px; font-weight: 700; color: #1d4ed8; line-height: 1.2; }
.dtt-stat-label { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }

.dtt-passage { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; font-size: 19px; line-height: 1.8; margin-bottom: 12px; user-select: none; }
.dtt-passage span { border-radius: 3px; padding: 0 1px; }
.dtt-passage span.dtt-correct { color: #15803d; background: #dcfce7; }
.dtt-passage span.dtt-wrong { color: #b91c1c; background: #fee2e2; text-decoration: underline; }
.dtt-passage span.dtt-current { border-left: 2px solid #1d4ed8; background: #dbeafe; }

.dtt-input { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 17px; line-height: 1.6; font-family: inherit; resize: vertical; background: #fff; color: #111827; }
.dtt-input:focus { outline: 2px solid #93c5fd; border-color: #1d4ed8; }
.dtt-input:disabled { background: #f3f4f6; color: #6b7280; }

.dtt-result { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 16px 18px; margin-top: 16px; }
.dtt-result[hidden] { display: none; }
.dtt-result h3 { margin: 0 0 6px; font-size: 19px; color: #1e40af; }
.dtt-result p { margin: 6px 0; color: #374151; }

.dtt-note { font-size: 13px; color: #6b7280; margin: 12px 0 0; font-weight: 400; }

.dtt-support { margin-top: 36px; border-top: 1px solid #e5e7eb; padding-top: 8px; }
.dtt-support h2 { font-size: 22px; margin: 28px 0 10px; color: #111827; }
.dtt-support h3 { font-size: 17px; margin: 18px 0 6px; color: #111827; }
.dtt-support p { color: #374151; margin: 10px 0; }
.dtt-support ul { color: #374151; }
