/* Shared exam-style countdown (word-exam + reading) */
.timer-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--line, #2d3329);
  background: var(--panel, #fbfbf8);
  box-shadow: var(--soft, 4px 4px 0 rgba(45, 51, 41, 0.12));
  border-radius: 0;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.timer-card b {
  display: block;
  color: var(--ink, #111);
  font-weight: 900;
}

.timer-card span {
  display: block;
  color: #555;
  font-size: 14px;
  margin-top: 2px;
}

.timer-card strong {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  color: var(--ink, #111);
}

.timer-card i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  background: #e8e4da;
  border-radius: 999px;
  overflow: hidden;
}

.timer-card em {
  display: block;
  height: 100%;
  width: 100%;
  background: #153f3c;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.timer-card.danger em {
  background: #c75043;
}

.timer-card.paused {
  background: #f5f2ea;
}

.timer-card.expired {
  background: #f8ecea;
  border-color: #c75043;
}

.timer-toggle {
  border: 2px solid var(--line, #2d3329);
  background: var(--ink, #111);
  color: #fff;
  border-radius: 0;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.timer-card.paused .timer-toggle,
.timer-card.idle .timer-toggle {
  background: #fff;
  color: var(--ink, #111);
}

.timer-card.expired .timer-toggle {
  display: none;
}

.choice.timer-locked,
.choice:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.time-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.22);
}

.time-modal-card {
  border: 2px solid var(--line, #111);
  background: #fffdf8;
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(45, 51, 41, 0.18);
  padding: 20px 22px;
  display: grid;
  gap: 14px;
  min-width: min(360px, calc(100vw - 40px));
  text-align: center;
}

.time-modal-card button {
  border: 2px solid var(--line, #111);
  background: var(--ink, #111);
  color: #fff;
  border-radius: 0;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.reader-head .reading-timer-slot {
  margin-top: 12px;
}
