:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5f7;
  --text: #17212f;
  --muted: #667085;
  --line: #d8e0e7;
  --line-strong: #bcc8d4;
  --blue: #1e5bff;
  --blue-dark: #1742b0;
  --teal: #0c8f8f;
  --teal-soft: #d9f2f0;
  --amber: #bd7100;
  --amber-soft: #fff0d6;
  --green: #157f4f;
  --red: #b42318;
  --shadow: 0 18px 48px rgba(23, 33, 47, 0.08);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

body,
button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #102033;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #425268;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--blue);
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(30, 91, 255, 0.22);
}

main {
  overflow-x: clip;
}

.workspace,
.study-section,
.guide-section,
.pipeline-section,
.faq-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 24px;
}

.workspace {
  padding-top: 34px;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.source-review-strip {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr) minmax(150px, 0.65fr);
  gap: 10px;
  margin: -4px 0 18px;
}

.source-review-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.source-review-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-review-strip strong {
  color: #243246;
  font-size: 13px;
  line-height: 1.35;
}

.source-review-strip a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-label,
.toolbar-label,
.control-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 720px;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.2;
}

.practice-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 18px;
  align-items: start;
}

.question-panel,
.readiness-panel,
.flashcard-panel,
.exam-fact-panel,
.guide-grid article,
.pipeline-detail,
.plan-controls,
.plan-summary,
.table-wrap,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.question-panel {
  min-width: 0;
  padding: 22px;
}

.question-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.question-toolbar > div,
.plan-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.question-toolbar strong,
.plan-summary strong {
  font-size: 18px;
  line-height: 1.15;
}

.control-strip {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.control-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.segmented,
.domain-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.segmented button,
.domain-toggles button {
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.segmented button {
  flex: 1;
  padding: 0 10px;
}

.domain-toggles button {
  padding: 0 12px;
}

.segmented button.is-active,
.domain-toggles button.is-active {
  border-color: rgba(30, 91, 255, 0.35);
  background: #eaf0ff;
  color: var(--blue-dark);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.question-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fbfcfe;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.question-text {
  margin: 18px 0 16px;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.22;
  letter-spacing: 0;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-height: 60px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.option:hover,
.option:focus-visible,
.button:focus-visible,
.flashcard-card:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  border-color: rgba(30, 91, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.12);
}

.option-key {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

.option-text {
  align-self: center;
  color: #243246;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

.option.is-selected {
  border-color: rgba(30, 91, 255, 0.52);
  background: #f5f8ff;
}

.option.is-correct {
  border-color: rgba(21, 127, 79, 0.5);
  background: #eefaf4;
}

.option.is-wrong {
  border-color: rgba(180, 35, 24, 0.42);
  background: #fff2f0;
}

.explanation {
  margin-top: 16px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  background: #f0fbfa;
  color: #204050;
  font-size: 15px;
  line-height: 1.55;
}

.explanation strong {
  color: #0a6767;
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 850;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.primary:hover,
.topbar-action:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: #fff;
  color: #1f344d;
}

.button.secondary:hover,
.button.quiet:hover {
  background: #f3f6f9;
}

.button.quiet {
  margin-left: auto;
  background: transparent;
  color: #5a687b;
}

.side-rail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.readiness-panel,
.flashcard-panel,
.exam-fact-panel {
  padding: 18px;
}

.exam-fact-panel {
  box-shadow: var(--shadow);
}

.exam-fact-panel h2 {
  margin: 4px 0 14px;
}

.exam-fact-panel dl {
  gap: 10px;
}

.guide-grid article p {
  color: #526176;
  font-size: 14px;
  line-height: 1.55;
}

.panel-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.score-pill {
  display: inline-flex;
  min-width: 62px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  font-size: 16px;
}

.domain-bars {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.bar-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e5ebf1;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.weak-areas {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.weak-areas strong {
  color: var(--text);
}

.study-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.small-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.flashcard-card {
  display: block;
  width: 100%;
  min-height: 142px;
  border: 1px solid #b5dcd8;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #f0fbfa, #fff);
  color: #14263a;
  text-align: left;
}

.flashcard-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0b6f6f;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flashcard-card span {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.flashcard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.study-section,
.guide-section,
.pipeline-section,
.faq-section {
  padding-top: 28px;
}

.study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  align-items: stretch;
}

.plan-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font-weight: 750;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font-weight: 750;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  box-shadow: none;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  box-shadow: none;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #243246;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-grid article {
  padding: 18px;
  box-shadow: none;
}

dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  color: #243246;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.source-note {
  margin: 14px 0 0;
  color: #5e6d81;
  font-size: 13px;
  line-height: 1.5;
}

.pipeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.pipeline-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.pipeline-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pipeline-selector button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.pipeline-selector button.is-active {
  border-color: rgba(12, 143, 143, 0.45);
  background: var(--teal-soft);
  color: #075e5e;
}

.pipeline-table-wrap {
  margin-top: 0;
  box-shadow: none;
}

.score-meter {
  display: grid;
  gap: 6px;
  min-width: 130px;
}

.score-meter span {
  color: #243246;
  font-size: 13px;
  font-weight: 900;
}

.score-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e5ebf1;
}

.score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}

.pipeline-detail {
  padding: 18px;
  box-shadow: none;
}

.pipeline-detail h3 {
  margin-bottom: 6px;
}

.pipeline-detail p {
  color: #526176;
  font-size: 14px;
  line-height: 1.55;
}

.pipeline-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 13px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.pipeline-link:hover {
  background: #087373;
  transform: translateY(-1px);
}

.pipeline-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pipeline-detail-list div {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.pipeline-detail-list strong {
  color: #243246;
  font-size: 13px;
}

.query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.query-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fbfcfe;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  box-shadow: none;
}

.faq-list details {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.faq-list details:last-child {
  border-bottom: 0;
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 18px 16px;
  color: #526176;
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.footer-links a {
  color: #344054;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--blue);
}

.content-hero,
.content-page,
.library-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 42px 24px;
}

.content-hero {
  display: grid;
  gap: 12px;
}

.content-hero p:not(.section-label),
.content-page p,
.content-page li {
  color: #526176;
  font-size: 16px;
  line-height: 1.65;
}

.content-page {
  max-width: 820px;
}

.content-page h1 {
  margin-bottom: 18px;
}

.content-page h2 {
  margin: 30px 0 8px;
}

.content-page ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.resource-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-left: 24px;
  color: #526176;
  font-size: 15px;
  line-height: 1.6;
}

.resource-list li {
  padding-left: 4px;
}

.exam-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.exam-card-grid.planned {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exam-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.exam-card h3 {
  margin-bottom: 0;
}

.exam-card p {
  margin-bottom: 0;
  color: #526176;
  font-size: 14px;
  line-height: 1.55;
}

.status-dot {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--amber-soft);
  color: #8a5300;
  font-size: 12px;
  font-weight: 900;
}

.status-dot.live {
  background: var(--teal-soft);
  color: #075e5e;
}

.source-link {
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-list {
  display: grid;
  gap: 12px;
}

.update-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.update-entry time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.update-entry h3 {
  margin: 8px 0;
}

.update-entry p {
  margin-bottom: 0;
  color: #526176;
  font-size: 14px;
  line-height: 1.55;
}

.maintenance-grid article {
  min-height: 0;
}

.results-section,
.results-action-grid {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px 42px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-card,
.share-panel,
.email-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 18px;
}

.result-card.strong {
  border-top: 4px solid var(--green);
}

.result-card.building {
  border-top: 4px solid var(--amber);
}

.result-card.needs-work {
  border-top: 4px solid var(--blue);
}

.result-card-header,
.result-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.result-card-header h3 {
  margin: 4px 0 0;
}

.result-score {
  display: grid;
  min-width: 68px;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  font-size: 20px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.result-stats div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.result-stats span,
.result-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.result-stats strong {
  color: #243246;
  font-size: 17px;
}

.result-focus,
.result-empty,
.email-message {
  margin: 0;
  color: #526176;
  font-size: 14px;
  line-height: 1.5;
}

.mini-bars {
  display: grid;
  gap: 10px;
}

.mini-bar-row {
  display: grid;
  gap: 6px;
}

.result-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.empty-result {
  grid-column: 1 / -1;
  min-height: 0;
}

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

.results-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  padding-top: 0;
}

.share-panel,
.email-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.inline-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
}

.shared-notice {
  margin: 0 0 14px;
  border: 1px solid rgba(12, 143, 143, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--teal-soft);
  color: #075e5e;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .practice-shell,
  .study-grid,
  .guide-grid,
  .pipeline-layout,
  .results-grid,
  .results-action-grid {
    grid-template-columns: 1fr;
  }

  .side-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-photo {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
  }

  .nav {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topbar-action {
    width: 100%;
  }

  .workspace,
  .study-section,
  .guide-section,
  .pipeline-section,
  .content-hero,
  .content-page,
  .library-section,
  .results-section,
  .results-action-grid,
  .faq-section {
    padding: 28px 16px;
  }

  .exam-card-grid,
  .exam-card-grid.planned {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.08;
  }

  .section-heading {
    width: 100%;
  }

  .question-panel,
  .readiness-panel,
  .flashcard-panel {
    padding: 16px;
  }

  .question-toolbar,
  .control-strip,
  .plan-controls,
  .plan-summary,
  .side-rail,
  .source-review-strip,
  .inline-input-row,
  .email-form {
    grid-template-columns: 1fr;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented button {
    padding: 0 8px;
  }

  .question-text,
  .option-text {
    overflow-wrap: break-word;
  }

  .button.quiet {
    margin-left: 0;
  }

  .question-actions .button {
    flex: 1 1 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
