/* ============================================================ */
/* ROUNDS 46-60 — ReviseKit V9 Feature Styles                    */
/* ============================================================ */

/* ============================================================ */
/* ROUND 46: WJEC BOARD SUPPORT                                 */
/* ============================================================ */

.wjec-board-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 10px;
  margin: 8px 16px;
  font-size: 13px;
  color: #f87171;
}

.wjec-banner-flag { font-size: 18px; }

.wjec-banner-text {
  flex: 1;
  color: var(--text-secondary, #c8d0e0);
}

.wjec-banner-close {
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.board-pill-flag { margin-right: 4px; }

body.wjec-mode .board-pill[data-board="wjec"] {
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.08);
  color: #f87171;
}

/* ============================================================ */
/* ROUND 47: WRITING MODE                                       */
/* ============================================================ */

#screen-writing-mode {
  padding: 0;
  padding-bottom: 80px;
  overflow-y: auto;
  max-height: 100vh;
}

.wm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-primary, #0f1729);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wm-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary, #c8d0e0);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.wm-back-btn:hover { background: rgba(255,255,255,0.08); }

.wm-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.wm-progress-text {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted, #8892a4);
}

.wm-progress-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.wm-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #6c63ff);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#wm-board {
  padding: 16px;
}

.wm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(20px);
}

.wm-card-image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.03);
}

.wm-question-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
}

.wm-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  line-height: 1.5;
  margin-bottom: 10px;
}

.wm-subject-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  color: #00d4ff;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.wm-input-area {
  padding: 0 0 16px;
}

.wm-input-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
}

.wm-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.wm-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary, #f0f4ff);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  min-height: 80px;
}

.wm-input:focus { border-color: #00d4ff; }
.wm-input:disabled { opacity: 0.65; }

.wm-mic-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary, #c8d0e0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.wm-mic-btn:hover {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.06);
}

.wm-mic-btn.wm-mic-active {
  border-color: #ef4444;
  background: rgba(239,68,68,0.12);
  animation: micPulse 1.5s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.wm-mic-icon { font-size: 18px; }

.wm-recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #ef4444;
}

.wm-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: recBlink 0.8s ease-in-out infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.wm-feedback {
  margin-top: 14px;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wm-feedback-icon {
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.wm-feedback-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.wm-correct {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
}
.wm-correct .wm-feedback-icon { background: rgba(34,197,94,0.2); color: #22c55e; }

.wm-close {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
}
.wm-close .wm-feedback-icon { background: rgba(251,191,36,0.15); color: #fbbf24; }

.wm-wrong {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}
.wm-wrong .wm-feedback-icon { background: rgba(239,68,68,0.15); color: #f87171; }

.wm-correct-ans {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary, #c8d0e0);
}

.wm-misconception {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted, #8892a4);
}

.wm-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.wm-check-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
}
.wm-check-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.wm-next-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary, #f0f4ff);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.wm-next-btn:hover { background: rgba(255,255,255,0.1); }

.wm-end-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
}

.wm-end-icon { font-size: 48px; }

.wm-end-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.wm-end-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.wm-end-stat { text-align: center; }
.wm-end-val { font-size: 28px; font-weight: 800; color: #00d4ff; }
.wm-close-val { color: #fbbf24; }
.wm-end-label { font-size: 12px; color: var(--text-muted, #8892a4); }

.wm-end-pct {
  font-size: 40px;
  font-weight: 900;
  color: var(--text-primary, #f0f4ff);
}

.wm-end-actions { display: flex; gap: 10px; }

/* Mode button for Writing Mode */
.mode-write-btn .mode-option-icon { color: #00d4ff; }

/* ============================================================ */
/* ROUND 48: PUSH NOTIFICATION BANNER                           */
/* ============================================================ */

.push-notif-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px;
  margin: 8px 16px;
}

.push-notif-icon { font-size: 22px; flex-shrink: 0; }

.push-notif-text { flex: 1; }

.push-notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 2px;
}

.push-notif-sub {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
}

.push-notif-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.push-notif-enable-btn {
  padding: 7px 14px;
  border-radius: 8px;
  background: #00d4ff;
  color: #0f1729;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.push-notif-enable-btn:hover { opacity: 0.9; }

.push-notif-dismiss-btn {
  padding: 5px 10px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

.notif-permission-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.25);
  color: #00d4ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.notif-permission-btn:hover { opacity: 0.85; }

/* ============================================================ */
/* ROUND 49: MINI-MOCKS                                         */
/* ============================================================ */

#screen-mini-mock {
  padding: 0;
  padding-bottom: 80px;
  overflow-y: auto;
  max-height: 100vh;
}

.mm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-primary, #0f1729);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mm-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.mm-timer {
  margin-left: auto;
  font-size: 18px;
  font-weight: 800;
  color: #00d4ff;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.mm-timer.mm-timer-warning {
  color: #ef4444;
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.mm-progress-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.mm-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffb800, #00d4ff);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mm-board {
  padding: 16px;
}

.mm-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mm-progress-text {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
}

.mm-exam-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,184,0,0.12);
  border: 1px solid rgba(255,184,0,0.25);
  color: #ffb800;
}

.mm-question-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(20px);
}

.mm-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  line-height: 1.5;
}

.mm-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.mm-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary, #f0f4ff);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.mm-option-btn:hover:not(:disabled) {
  border-color: rgba(255,184,0,0.4);
  background: rgba(255,184,0,0.05);
}

.mm-opt-letter {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mm-option-btn.mm-correct { border-color: #22c55e; background: rgba(34,197,94,0.1); color: #22c55e; }
.mm-option-btn.mm-wrong { border-color: #ef4444; background: rgba(239,68,68,0.08); color: #f87171; }
.mm-option-btn.mm-correct-reveal { border-color: #22c55e; background: rgba(34,197,94,0.06); }

.mm-feedback {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mm-fb-correct { background: rgba(34,197,94,0.1); color: #22c55e; }
.mm-fb-wrong { background: rgba(239,68,68,0.08); color: #f87171; }

.mm-end-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 16px 48px;
  text-align: center;
}

.mm-end-header {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px;
}

.mm-end-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 12px;
}

.mm-grade-display {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.grade-high { color: #22c55e; }
.grade-mid  { color: #ffb800; }
.grade-low  { color: #ef4444; }
.grade-u    { color: var(--text-muted, #8892a4); }

.mm-end-pct {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary, #c8d0e0);
  margin-bottom: 4px;
}

.mm-end-time-row {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
}

.mm-end-stats {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.mm-end-stat { text-align: center; }
.mm-end-val { font-size: 26px; font-weight: 800; color: #00d4ff; }
.mm-end-label { font-size: 12px; color: var(--text-muted, #8892a4); }

.mm-grade-boundaries-section {
  width: 100%;
}

.mm-boundaries-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #8892a4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.mm-grade-boundaries {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mm-boundary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  font-size: 12px;
}

.mm-boundary-achieved {
  background: rgba(255,184,0,0.08);
  border: 1px solid rgba(255,184,0,0.2);
}

.mm-boundary-grade { font-weight: 700; color: var(--text-primary, #f0f4ff); min-width: 50px; }
.mm-boundary-pct { color: var(--text-muted, #8892a4); min-width: 35px; }
.mm-boundary-bar-wrap { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.mm-boundary-bar { height: 100%; background: rgba(255,184,0,0.4); border-radius: 2px; }

.mm-breakdown {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
}

.mm-breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.mm-br-correct { background: rgba(34,197,94,0.06); }
.mm-br-wrong { background: rgba(239,68,68,0.06); }
.mm-br-num { font-weight: 700; min-width: 18px; color: var(--text-muted, #8892a4); }
.mm-br-q { flex: 1; color: var(--text-secondary, #c8d0e0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-br-status { font-weight: 700; }
.mm-br-correct .mm-br-status { color: #22c55e; }
.mm-br-wrong .mm-br-status { color: #ef4444; }

.mm-end-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Mini-mock home button */
.mini-mock-btn .home-extra-icon { font-size: 22px; }

/* ============================================================ */
/* ROUND 50: SMART EXPLANATIONS                                 */
/* ============================================================ */

.explanation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,30,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9100;
  padding: 16px;
}

.explanation-modal {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
}

.explanation-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  background: var(--card-bg, #141b2e);
  border-radius: 20px 20px 0 0;
}

.explanation-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.explanation-close-btn {
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.explanation-card {
  padding: 16px 20px 20px;
}

.explanation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.explanation-icon { font-size: 20px; }

.explanation-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.explanation-question {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 12px;
  line-height: 1.5;
}

.explanation-correct {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  font-size: 14px;
  color: var(--text-secondary, #c8d0e0);
  margin-bottom: 10px;
  line-height: 1.5;
}

.explanation-highlight {
  font-weight: 700;
  color: #22c55e;
}

.explanation-wrong-ans {
  font-size: 13px;
  color: #f87171;
  margin-bottom: 10px;
}

.explanation-wrong-text { text-decoration: line-through; opacity: 0.7; }

.explanation-because {
  font-size: 14px;
  color: var(--text-secondary, #c8d0e0);
  margin-bottom: 10px;
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.explanation-misconception {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.15);
  font-size: 13px;
  color: var(--text-secondary, #c8d0e0);
  margin-bottom: 10px;
  line-height: 1.5;
}

.explanation-misconception-label {
  font-weight: 600;
  color: #fbbf24;
}

.explanation-tip {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.12);
  font-size: 13px;
  color: var(--text-secondary, #c8d0e0);
  line-height: 1.5;
}

.explanation-tip-label {
  font-weight: 600;
  color: #00d4ff;
}

.explain-wrong-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.07);
  color: #00d4ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.explain-wrong-btn:hover { opacity: 0.85; }

/* ============================================================ */
/* ROUND 51: PARENT DASHBOARD                                   */
/* ============================================================ */

#screen-parent-dashboard {
  padding: 0;
  padding-bottom: 80px;
}

.pd-content {
  padding: 16px;
}

.pd-loading {
  text-align: center;
  color: var(--text-muted, #8892a4);
  padding: 40px 20px;
  font-size: 14px;
}

.pd-student-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pd-student-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #6c63ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.pd-student-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.pd-report-date {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
}

.pd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.pd-stat-card {
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  text-align: center;
  backdrop-filter: blur(20px);
}

.pd-stat-icon { font-size: 24px; margin-bottom: 6px; display: block; }
.pd-stat-val { font-size: 22px; font-weight: 800; color: var(--text-primary, #f0f4ff); display: block; }
.pd-stat-label { font-size: 11px; color: var(--text-muted, #8892a4); text-transform: uppercase; letter-spacing: 0.05em; }

.pd-badges-row {
  padding: 12px 16px;
  background: rgba(255,184,0,0.06);
  border: 1px solid rgba(255,184,0,0.15);
  border-radius: 10px;
  margin-bottom: 14px;
}

.pd-badges-label { font-size: 14px; color: #ffb800; font-weight: 600; }

.pd-progress-section {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}

.pd-progress-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #c8d0e0);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-progress-text {
  font-size: 14px;
  color: var(--text-muted, #8892a4);
  line-height: 1.6;
}

/* Parent share modal */
.parent-share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,30,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9100;
  padding: 16px;
}

.parent-share-modal {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0;
  width: 100%;
  max-width: 380px;
}

.parent-share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.parent-share-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.parent-share-close {
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 22px;
  cursor: pointer;
}

.parent-share-body {
  padding: 20px;
}

.parent-share-desc {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pd-code-section { margin-bottom: 16px; }

.pd-code-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
}

.pd-code-display {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #00d4ff;
  text-align: center;
  padding: 14px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.pd-link-section { margin-bottom: 14px; }

.pd-link-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
}

.pd-link-row {
  display: flex;
  gap: 8px;
}

.pd-share-link-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary, #c8d0e0);
  font-size: 12px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-copy-btn {
  padding: 10px 16px;
  border-radius: 10px;
  background: #00d4ff;
  color: #0f1729;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.pd-copy-btn:hover { opacity: 0.9; }

.pd-privacy-note {
  font-size: 11px;
  color: var(--text-muted, #8892a4);
  text-align: center;
}

/* ============================================================ */
/* ROUND 52: OFFLINE PWA                                        */
/* ============================================================ */

.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 16px;
  background: rgba(239,68,68,0.15);
  border-bottom: 1px solid rgba(239,68,68,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #f87171;
  z-index: 9999;
  text-align: center;
  justify-content: center;
}

.offline-icon { font-size: 16px; }

/* ============================================================ */
/* ROUND 53: SPEC CHECKLIST                                     */
/* ============================================================ */

#screen-spec-checklist {
  padding: 0;
  padding-bottom: 80px;
  overflow-y: auto;
  max-height: 100vh;
}

.checklist-progress-section {
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.checklist-progress-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.checklist-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #22c55e);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.checklist-progress-text {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  font-weight: 500;
}

.checklist-filters {
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.checklist-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.checklist-filter-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted, #8892a4);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.checklist-filter-pill.active {
  background: rgba(var(--pill-color, 0, 212, 255), 0.12);
  border-color: var(--pill-color, #00d4ff);
  color: var(--text-primary, #f0f4ff);
}

.checklist-unchecked-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary, #c8d0e0);
  cursor: pointer;
}

.checklist-unchecked-toggle input {
  accent-color: #00d4ff;
}

.checklist-list {
  padding: 8px 16px;
}

.checklist-subject-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 0 6px;
  margin-top: 4px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.checklist-item:hover { background: rgba(255,255,255,0.04); }

.checklist-item.checklist-checked {
  background: rgba(34,197,94,0.05);
  border-color: rgba(34,197,94,0.2);
}

.checklist-checkbox {
  display: none; /* Custom checkmark below */
}

.checklist-checkmark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #22c55e;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.checklist-checked .checklist-checkmark {
  background: rgba(34,197,94,0.15);
  border-color: #22c55e;
}

.checklist-item-info { flex: 1; }

.checklist-topic-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #f0f4ff);
  display: block;
}

.checklist-checked .checklist-topic-name {
  text-decoration: line-through;
  opacity: 0.6;
}

.checklist-card-count {
  font-size: 11px;
  color: var(--text-muted, #8892a4);
  display: block;
  margin-top: 2px;
}

.checklist-empty {
  text-align: center;
  color: var(--text-muted, #8892a4);
  padding: 40px 20px;
  font-size: 14px;
}

/* ============================================================ */
/* ROUND 54: IMAGE-ENHANCED CARDS                               */
/* ============================================================ */

.card-image-wrap {
  position: relative;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

.card-image-wrap.card-image-error .card-image {
  display: none;
}

.card-image-placeholder {
  height: 120px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-image-placeholder-icon { font-size: 32px; opacity: 0.7; }

.card-image-placeholder-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.card-diagram-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  font-weight: 600;
}

.diagram-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  color: #00d4ff;
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}

/* ============================================================ */
/* ROUND 55: VOICE INPUT                                        */
/* Styles mostly in ROUND 47 section (wm-mic-btn, wm-rec-dot)  */
/* ============================================================ */

/* (Main mic button styles are in Round 47 section above)      */

/* ============================================================ */
/* ROUND 56: CHALLENGE-A-FRIEND                                 */
/* ============================================================ */

.challenge-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,30,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9200;
  padding: 16px;
}

.challenge-modal {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
}

.challenge-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.challenge-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

#challenge-modal-close {
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 22px;
  cursor: pointer;
}

.challenge-modal-body { padding: 20px; }

.challenge-score-display {
  text-align: center;
  padding: 16px;
  background: rgba(255,184,0,0.06);
  border: 1px solid rgba(255,184,0,0.15);
  border-radius: 12px;
  margin-bottom: 16px;
}

.challenge-score-label {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 4px;
}

.challenge-score-val {
  font-size: 36px;
  font-weight: 900;
  color: #ffb800;
}

.challenge-link-row { margin-bottom: 14px; }

.challenge-link-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary, #c8d0e0);
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.challenge-actions { display: flex; gap: 8px; margin-bottom: 12px; }

.challenge-note {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  text-align: center;
  line-height: 1.4;
}

.challenge-accept-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255,184,0,0.1);
  border-bottom: 1px solid rgba(255,184,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  font-size: 14px;
}

.challenge-accept-icon { font-size: 20px; flex-shrink: 0; }

.challenge-accept-text {
  flex: 1;
  color: var(--text-secondary, #c8d0e0);
}

.challenge-accept-btn {
  padding: 7px 16px;
  border-radius: 8px;
  background: #ffb800;
  color: #0f1729;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.challenge-accept-btn:hover { opacity: 0.9; }

.challenge-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted, #8892a4);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

.challenge-friend-btn {
  margin-top: 8px;
}

/* ============================================================ */
/* ROUND 57: PAST PAPER WALKTHROUGHS                           */
/* ============================================================ */

#screen-walkthrough {
  padding: 0;
  padding-bottom: 80px;
  overflow-y: auto;
  max-height: 100vh;
}

.wt-content { padding: 16px; }

.wt-progress-label {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  margin-left: auto;
}

.wt-question-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(20px);
}

.wt-question-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
}

.wt-marks-label {
  font-weight: 600;
  color: #ffb800;
  margin-left: 6px;
}

.wt-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  line-height: 1.6;
}

.wt-attempt-section { margin-bottom: 16px; }

.wt-attempt-label {
  font-size: 13px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 8px;
  line-height: 1.4;
}

.wt-attempt-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary, #f0f4ff);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.wt-attempt-input:focus { border-color: rgba(0,212,255,0.4); }

.wt-mark-scheme {
  background: rgba(34,197,94,0.04);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.wt-mark-scheme-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
  margin-bottom: 12px;
}

.wt-marks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wt-mark-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
}

.wt-mark-point-reveal {
  animation: markReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes markReveal {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wt-mark-tick {
  color: #22c55e;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.wt-mark-text {
  font-size: 14px;
  color: var(--text-secondary, #c8d0e0);
  line-height: 1.5;
}

.wt-actions { display: flex; justify-content: center; }

.walkthrough-launch-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  margin: 12px 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px dashed rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.04);
  color: var(--text-secondary, #c8d0e0);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.walkthrough-launch-btn:hover {
  border-color: rgba(0,212,255,0.6);
  background: rgba(0,212,255,0.06);
}

.walkthrough-icon { font-size: 24px; flex-shrink: 0; }

.walkthrough-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 2px;
}

.walkthrough-desc {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
}

/* ============================================================ */
/* ROUND 58: GRADE PREDICTION                                   */
/* ============================================================ */

.grade-prediction-section {
  padding: 16px;
  margin-top: 8px;
}

.grade-pred-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(20px);
}

.grade-pred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.grade-pred-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

.grade-pred-confidence {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.grade-confidence-high {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #22c55e;
}

.grade-confidence-medium {
  background: rgba(255,184,0,0.08);
  border: 1px solid rgba(255,184,0,0.2);
  color: #ffb800;
}

.grade-confidence-low {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
}

.grade-pred-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.grade-pred-number {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.grade-pred-score {
  font-size: 16px;
  color: var(--text-muted, #8892a4);
}

.grade-pred-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grade-pred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}

.grade-pred-factor { color: var(--text-secondary, #c8d0e0); }
.grade-pred-val { font-weight: 600; color: var(--text-primary, #f0f4ff); }

.grade-pred-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  line-height: 1.4;
}

/* ============================================================ */
/* ROUND 59: THEME CUSTOMISATION                                */
/* ============================================================ */

.theme-picker-section {
  padding: 16px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

.theme-picker-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 12px;
}

.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.theme-btn:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.theme-btn.theme-btn-active {
  border-color: #00d4ff;
  background: rgba(0,212,255,0.08);
}

.theme-btn-icon { font-size: 18px; }

.theme-btn-label {
  font-size: 9px;
  color: var(--text-muted, #8892a4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.theme-btn-preview {
  width: 28px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}

.theme-preview-accent {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
}

/* Light mode theme overrides */
body.theme-light .screen,
body.theme-light .navbar,
body.theme-light .nav-inner {
  border-color: rgba(0,0,0,0.08);
}

body.theme-light .glass-card,
body.theme-light .home-extra-btn,
body.theme-light .subject-card {
  border-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
}

/* ============================================================ */
/* ROUND 60: STRIPE V2 + DAILY QUESTION COUNTER                */
/* ============================================================ */

.daily-q-counter {
  display: block;
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  text-align: right;
  padding: 4px 16px;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.daily-q-counter.daily-q-low {
  color: #f87171;
  font-weight: 600;
}

.daily-limit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,30,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9500;
  padding: 16px;
}

.daily-limit-modal {
  background: var(--card-bg, #141b2e);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.daily-limit-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.daily-limit-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
  margin-bottom: 10px;
}

.daily-limit-desc {
  font-size: 14px;
  color: var(--text-muted, #8892a4);
  line-height: 1.6;
  margin-bottom: 12px;
}

.daily-limit-resets {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
  margin-bottom: 20px;
}

.daily-limit-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.daily-limit-upgrade-btn {
  background: linear-gradient(135deg, #00d4ff, #6c63ff) !important;
}

.daily-limit-trial {
  font-size: 12px;
  color: var(--text-muted, #8892a4);
}

/* Updated trial badge in pricing modal */
.trial-badge-v2 {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

/* ============================================================ */
/* SHARED SCREEN HEADERS FOR NEW SCREENS                        */
/* ============================================================ */

#screen-parent-dashboard .screen-header,
#screen-spec-checklist .screen-header,
#screen-walkthrough .screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-primary, #0f1729);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

#screen-parent-dashboard .screen-title,
#screen-spec-checklist .screen-title,
#screen-walkthrough .screen-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
}

/* ============================================================ */
/* HOME EXTRAS BUTTONS (shared style for new rounds)            */
/* ============================================================ */

.mini-mock-btn,
.parent-dash-btn,
.checklist-btn {
  /* Inherits .home-extra-btn styles from existing CSS */
}

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */

@media (max-width: 400px) {
  .pd-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wm-end-stats,
  .mm-end-stats {
    gap: 16px;
  }

  .theme-picker-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .theme-btn-label { display: none; }
  .theme-btn { padding: 8px; }
}

@media (min-width: 600px) {
  #screen-writing-mode,
  #screen-mini-mock,
  #screen-walkthrough,
  #screen-spec-checklist,
  #screen-parent-dashboard {
    max-width: 600px;
    margin: 0 auto;
  }
}
