/* Violet study desk with focused, spacious practice surfaces. */
:root {
  --accent: #6844df;
  --bg: #f7f6fb;
  --surface: #ffffff;
  --surface-2: #eee9ff;
  --ink: #29243c;
  --ink-2: #6d667d;
  --radius: 18px;
  --max: 1180px;
  --font-display: ui-rounded, 'Trebuchet MS', sans-serif;
  color-scheme: light;
}

/* Daily plans come before countdowns. */
.app-main {
  padding-top: 28px;
}

.card {
  border: 1px solid var(--line);
  box-shadow: none;
  overflow-wrap: anywhere;
}

.grid > .card + .card {
  margin-top: 0;
}

.plan-card {
  padding: 24px;
  border-top: 3px solid var(--accent);
}

.plan-card h2 {
  margin-top: 14px;
}

.eyebrow {
  font-size: .75rem;
  letter-spacing: .08em;
  font-weight: 800;
  color: var(--accent);
}

.welcome {
  padding: 32px 20px;
}

.sample-caption {
  margin: 24px 0 10px;
  font-size: .85rem;
}

.sample-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
}

.exam-tile h3 {
  margin-top: 16px;
}

#exam-form,
#preview-form {
  max-width: 640px;
}

/* The question and response share one quiet workspace. */
.study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(610px, calc(100dvh - 190px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.question-pane,
.response-pane {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
}

.question-pane h1 {
  margin: 24px 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.response-pane {
  background: linear-gradient(145deg, #f4f0fc, #f0f5f8);
}

.response-pane .btn {
  margin-top: 12px;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 16px;
  border: 1px solid #dcd8e6;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.radio-circle {
  flex: 0 0 20px;
  height: 20px;
  border: 1.75px solid #aaa2b9;
  border-radius: 50%;
}

.quiz-option.selected {
  border-color: var(--accent);
  background: #eee8ff;
}

.quiz-option[aria-checked="true"] .radio-circle {
  border: 6px solid var(--accent);
}

.quiz-option.correct {
  border-color: #38835a;
  background: #eaf6ee;
}

.quiz-option.incorrect {
  border-color: #b64444;
  background: #fcecec;
}

.quiz-option small {
  margin-left: auto;
  font-weight: 700;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-feedback {
  margin-top: 20px;
}

.study-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  align-self: end;
}

.study-bar > strong {
  flex: 1;
  overflow-wrap: anywhere;
}

.study-progress {
  flex: 1;
  min-width: 80px;
  font-size: .8rem;
  color: var(--ink-2);
}

progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  accent-color: var(--accent);
}

.grades {
  gap: 6px;
}

.grades .btn {
  padding: 0 12px;
}

.answer {
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.helper {
  white-space: pre-line;
  margin-top: 16px;
}

.metric strong {
  font-size: 3rem;
  color: var(--accent);
}

@media (max-width: 699px) {
  .app-main {
    padding-top: 18px;
  }

  .study-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .question-pane,
  .response-pane {
    padding: 24px;
  }

  .question-pane h1 {
    margin: 18px 0;
  }

  .study-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .study-bar > strong {
    flex-basis: 100%;
  }

  .grades {
    width: 100%;
  }

  .grades .btn {
    flex: 1;
  }
}
