/* ReadTime — tool-specific styles.
   Shared styles (nav, panels, buttons, chips) live in ../../css/style.css */

.rt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.rt-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ---------- Editor ---------- */
.rt-actions { margin-left: auto; display: flex; gap: 6px; }

#rt-text {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  display: block;
  background: transparent;
  border: none;
  padding: 16px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  outline: none;
}
#rt-text::placeholder { color: #5c5c66; }

/* ---------- Main result ---------- */
.rt-result {
  padding: 22px 16px;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(232, 70, 124, .16), transparent 70%),
    var(--card-2);
}
.rt-result-label {
  display: block;
  color: var(--pink-light);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rt-result strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.rt-result-sub { color: #74747e; font-size: .78rem; }

/* ---------- Speed ---------- */
.rt-speed { display: flex; flex-direction: column; gap: 12px; }
.rt-speed-head { display: flex; align-items: baseline; gap: 6px; }
.rt-wpm {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rt-speed-head span { color: #74747e; font-size: .78rem; }

#rt-wpm {
  --fill: 25%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink) var(--fill), #26262b var(--fill));
  outline: none;
  cursor: pointer;
}
#rt-wpm::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}
#rt-wpm::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}
#rt-wpm:focus-visible { box-shadow: 0 0 0 4px rgba(232, 70, 124, .25); }

.rt-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-presets .chip { font-size: .76rem; padding: 6px 11px; }
.rt-presets .chip.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  font-weight: 600;
}

/* ---------- Other paces ---------- */
.rt-rows { display: flex; flex-direction: column; gap: 9px; }
.rt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .85rem;
  color: #8b8b94;
}
.rt-row strong {
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 880px) {
  .rt { grid-template-columns: 1fr; }
  #rt-text { min-height: 220px; }
}
