:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-2: #252836;
  --border: #2e3240;
  --text: #e4e6ef;
  --text-muted: #8b8fa3;
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --danger-light: #fab1a0;
  --info: #74b9ff;
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

#app:has(#screen-coaching.active) {
  max-width: 1200px;
}

.screen { display: none; }
.screen.active { display: block; }

h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto 32px;
}

.stat-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Start test section */
.start-section {
  text-align: center;
  margin-bottom: 32px;
}

.btn-start-test {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 20px 48px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-start-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.45);
}

.start-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.shuffle-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.shuffle-option input[type="checkbox"] {
  accent-color: var(--primary);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-small { padding: 6px 14px; font-size: 0.8rem; }
.btn-solve { background: var(--success); color: white; font-size: 1rem; padding: 14px 28px; }
.btn-skip { background: var(--warning); color: #333; font-size: 1rem; padding: 14px 28px; }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Load test section */
.load-test-section {
  text-align: center;
  margin-bottom: 24px;
}
.test-loaded-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
#btn-load-test {
  font-size: 0.8rem;
  opacity: 0.6;
}
#btn-load-test:hover { opacity: 1; }

/* Strategy reference */
.strategy-reference {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.strategy-reference summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-light);
}

.strategy-reference h4 {
  margin: 12px 0 6px;
  color: var(--info);
  font-size: 0.9rem;
}

.strategy-reference ul {
  margin-left: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.strategy-reference li { margin-bottom: 4px; }

/* Drill header */
.drill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.drill-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Timer */
.timer-display { text-align: right; }

.timer-bar-container {
  width: 120px;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.timer-bar {
  height: 100%;
  background: var(--success);
  transition: width 0.3s, background-color 0.5s;
  width: 100%;
}

.timer-bar.warning { background: var(--warning); }
.timer-bar.danger { background: var(--danger); }

.question-number {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.question-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

.question-image {
  margin-bottom: 16px;
  text-align: center;
}

.question-image img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

/* Answer choices */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.choice-btn:hover { border-color: var(--primary); }

.choice-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.choice-btn.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.15);
}

.choice-btn.selected .choice-letter {
  background: var(--primary);
  color: white;
}

.choice-btn.correct {
  border-color: var(--success);
  background: rgba(0, 184, 148, 0.15);
}

.choice-btn.correct .choice-letter {
  background: var(--success);
  color: white;
}

.choice-btn.wrong {
  border-color: var(--danger);
  background: rgba(225, 112, 85, 0.15);
}

.choice-btn.eliminated {
  opacity: 0.35;
  text-decoration: line-through;
  border-style: dashed;
}

.choice-btn.eliminated:hover {
  opacity: 0.5;
}

/* Pacing indicator colors */
.pacing-indicator.ahead { background: var(--success); color: white; }
.pacing-indicator.on-pace { background: var(--info); color: white; }
.pacing-indicator.behind { background: var(--danger); color: white; }

.hidden { display: none !important; }

/* Results */
.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.result-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.result-card .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.result-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-card.good .value { color: var(--success); }
.result-card.warn .value { color: var(--warning); }
.result-card.bad .value { color: var(--danger); }

/* Results detail */
.results-detail {
  margin-bottom: 24px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.result-row.correct-row { background: rgba(0, 184, 148, 0.1); }
.result-row.wrong-row { background: rgba(225, 112, 85, 0.1); }
.result-row.skipped-row { background: rgba(253, 203, 110, 0.1); }
.result-row.timeout-row { background: rgba(225, 112, 85, 0.05); }

.result-row .q-num { font-weight: 600; width: 30px; }
.result-row .q-time { width: 60px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.result-row .q-status { width: 20px; text-align: center; }
.result-row .q-detail { flex: 1; color: var(--text-muted); font-size: 0.8rem; }

/* Review */
.review-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.review-item h4 { margin-bottom: 8px; }
.review-item .review-q { margin-bottom: 12px; white-space: pre-wrap; }
.review-item .review-answer { color: var(--success); font-weight: 600; }
.review-item .review-your { color: var(--danger); }
.review-item .review-explanation { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* Mode toggle button */
.btn-mode-toggle {
  background: var(--surface-2);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-mode-toggle:hover {
  background: var(--primary);
  color: white;
}

/* Timed mode layout — two columns: question left, choices right */
#screen-coaching.timed-mode .coaching-layout {
  grid-template-columns: 1fr 1fr;
}

#screen-coaching.timed-mode .coaching-question-panel {
  max-height: calc(100vh - 200px);
}

#screen-coaching.timed-mode .timed-choices-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Hide inline choices in timed mode (they move to the right panel) */
#screen-coaching.timed-mode #coach-choices {
  display: none !important;
}

@media (max-width: 700px) {
  #screen-coaching.timed-mode .coaching-layout {
    grid-template-columns: 1fr;
  }
}

/* Section timer display */
.section-timer {
  text-align: right;
}

#section-timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.question-timer {
  margin-top: 4px;
}

.question-timer .timer-bar-container {
  width: 120px;
}

/* Pacing indicator (inline in header for timed mode) */
#screen-coaching .pacing-indicator {
  position: static;
  transform: none;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
}

/* Timed feedback flash */
.timed-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius);
  z-index: 100;
  pointer-events: none;
}

.timed-feedback.correct-flash {
  background: rgba(0, 184, 148, 0.9);
  color: white;
}

.timed-feedback.wrong-flash {
  background: rgba(225, 112, 85, 0.9);
  color: white;
}

.coach-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  padding: 0 8px;
}

.coach-step-pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 2px;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s;
}

.coach-step-pip.active {
  opacity: 1;
  transform: scale(1.1);
}

.coach-step-pip.done {
  opacity: 0.7;
}

.coach-step-pip:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pip-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  transition: all 0.3s;
}

.coach-step-pip.active .pip-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.coach-step-pip.done .pip-num {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.pip-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.coach-step-pip.active .pip-label {
  color: var(--primary-light);
  font-weight: 600;
}

.coach-step-connector {
  width: 24px;
  height: 2px;
  background: var(--border);
  margin: 0 2px;
  margin-bottom: 16px;
}

.coaching-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 400px;
  max-height: calc(100vh - 180px);
}

.coaching-question-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.pdf-question-view {
  overflow: hidden;
  max-height: min(420px, calc(100vh - 400px));
  border-radius: 6px;
  background: #fff;
  margin-top: 8px;
  position: relative;
  flex-shrink: 0;
}

.pdf-question-view canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  will-change: transform;
}
.pdf-question-view canvas:active {
  cursor: grabbing;
}

.pdf-zoom-controls {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.pdf-question-view:hover .pdf-zoom-controls { opacity: 1; }

.pdf-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(30,30,40,0.7);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.pdf-zoom-btn:hover { background: rgba(30,30,40,0.9); }
#btn-pdf-zoom-reset {
  width: auto;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.coaching-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.coach-card {
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: coachSlideIn 0.3s ease-out;
}

@keyframes coachSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.coach-card-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.coach-card[data-color="blue"] { border-left-color: var(--info); }
.coach-card[data-color="blue"] .coach-card-header { color: var(--info); }

.coach-card[data-color="purple"] { border-left-color: var(--primary-light); }
.coach-card[data-color="purple"] .coach-card-header { color: var(--primary-light); }

.coach-card[data-color="yellow"] { border-left-color: var(--warning); }
.coach-card[data-color="yellow"] .coach-card-header { color: var(--warning); }

.coach-card[data-color="green"] { border-left-color: var(--success); }
.coach-card[data-color="green"] .coach-card-header { color: var(--success); }

.coach-card[data-color="red"] { border-left-color: var(--danger); }
.coach-card[data-color="red"] .coach-card-header { color: var(--danger); }

.coach-card-body {
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}
.coach-card-body p {
  margin-bottom: 14px;
}
.coach-card-body ol, .coach-card-body ul {
  margin: 12px 0;
}
.coach-card-body li {
  margin-bottom: 8px;
}

.coach-card-body .katex {
  color: #e8d5b5;
  font-size: 1.1em;
  padding: 0 2px;
}

.coach-card-body strong { color: var(--text); }
.coach-card-body a {
  color: var(--info);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.coach-card-body a:hover { color: var(--primary-light); }
.coach-card-body .coach-highlight {
  background: rgba(108, 92, 231, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.coach-card-prompt {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.coach-actions {
  display: flex;
  gap: 8px;
}

.coach-actions .btn { flex: 1; }

.coaching-step-times {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.step-time-chip {
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.step-time-chip.slow { background: rgba(225, 112, 85, 0.2); color: var(--danger-light); }

/* Coaching question text highlights */
#coach-q-text {
  transition: all 0.3s;
}

.hl-dim {
  opacity: 0.45;
  transition: opacity 0.4s;
}

.hl-question {
  background: rgba(116, 185, 255, 0.18);
  padding: 2px 4px;
  border-radius: 4px;
  border-bottom: 2px solid var(--info);
  font-weight: 600;
  transition: all 0.4s;
}

.hl-question-word {
  color: var(--info);
  font-weight: 700;
}

.hl-number {
  background: rgba(253, 203, 110, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  border-bottom: 2px solid var(--warning);
  font-weight: 600;
  color: var(--warning);
  transition: all 0.4s;
}

.hl-constraint {
  background: rgba(225, 112, 85, 0.18);
  padding: 1px 4px;
  border-radius: 3px;
  border-bottom: 2px solid var(--danger);
  font-weight: 600;
  color: var(--danger-light);
  transition: all 0.4s;
}

.hl-unit {
  background: rgba(162, 155, 254, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
  color: var(--primary-light);
  transition: all 0.4s;
}

.hl-strategy-clue {
  background: rgba(108, 92, 231, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
  color: var(--primary-light);
  transition: all 0.4s;
}

.hl-variable {
  background: rgba(0, 184, 148, 0.15);
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
  color: var(--success);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.95em;
  transition: all 0.4s;
}

/* Highlight legend */
.hl-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.hl-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Elimination walkthrough */
.elim-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  animation: elimItemIn 0.3s ease-out;
}

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

.elim-item-eliminated {
  background: rgba(225, 112, 85, 0.1);
  border-left: 3px solid var(--danger);
}

.elim-item-keep {
  background: rgba(0, 184, 148, 0.08);
  border-left: 3px solid var(--success);
}

.elim-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elim-item-letter {
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.elim-item-eliminated .elim-item-letter {
  background: var(--danger);
  color: white;
  text-decoration: line-through;
}

.elim-item-keep .elim-item-letter {
  background: var(--success);
  color: white;
}

.elim-item-choice {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.elim-item-eliminated .elim-item-choice {
  text-decoration: line-through;
  opacity: 0.6;
}

.elim-item-verdict {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.elim-item-eliminated .elim-item-verdict { color: var(--danger); }
.elim-item-keep .elim-item-verdict { color: var(--success); }

.elim-item-reason {
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.elim-technique-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--danger-light);
  background: rgba(225, 112, 85, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.elim-item-keep .elim-technique-tag {
  color: var(--success);
  background: rgba(0, 184, 148, 0.12);
}

.elim-reason-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.elim-reason-list li {
  margin-bottom: 4px;
}

.elim-reason-list li:last-child {
  margin-bottom: 0;
}

/* Animated elimination on choice buttons */
.choice-btn.elim-animate {
  animation: elimStrike 0.5s ease-out;
}

@keyframes elimStrike {
  0% { transform: translateX(0); }
  15% { transform: translateX(-4px); background: rgba(225, 112, 85, 0.25); }
  30% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* Reason tag on choice */
.choice-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elim-reason-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--danger);
  background: rgba(225, 112, 85, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
  width: fit-content;
  animation: tagIn 0.3s ease-out;
}

@keyframes tagIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Coaching answer states */
#coach-choices .choice-btn.coach-eliminated {
  opacity: 0.3;
  text-decoration: line-through;
  border-style: dashed;
  border-color: var(--danger);
  pointer-events: none;
}

#coach-choices .choice-btn.coach-estimated {
  border-color: var(--warning);
  border-width: 2px;
}

#coach-choices .choice-btn.coach-likely {
  border-color: var(--success);
  background: rgba(0, 184, 148, 0.08);
}

#coach-choices .choice-btn.coach-selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.15);
}

/* Responsive coaching */
@media (max-width: 700px) {
  .coaching-layout {
    grid-template-columns: 1fr;
  }
  .coach-steps-bar {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }
}

.hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Coaching feedback */
.coach-feedback-area {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.btn-feedback {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 0;
  opacity: 0.7;
  transition: opacity 0.2s;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-feedback:hover { opacity: 1; }

.feedback-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
}

.feedback-input:focus { outline: none; border-color: var(--primary); }

.feedback-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.feedback-sent {
  font-size: 0.8rem;
  color: var(--success);
}

/* Standalone cheat sheet page */
.cheatsheet-standalone {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
  line-height: 1.6;
}
.cheatsheet-standalone h1 { margin-bottom: 24px; }
.cheatsheet-subtitle {
  color: var(--text-muted);
  margin-top: -16px;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .question-text { font-size: 1rem; }
  .btn-start-test { padding: 16px 32px; font-size: 1.1rem; }
}
