:root {
  --ink: #172b35;
  --muted: #60727a;
  --brand: #0b6b65;
  --brand-dark: #07514d;
  --brand-soft: #e4f2ef;
  --accent: #d4a44e;
  --paper: #ffffff;
  --canvas: #f4f7f6;
  --border: #d8e1df;
  --danger: #a13b3b;
  --danger-soft: #fbeaea;
  --success: #176b49;
  --shadow: 0 22px 60px rgba(20, 47, 54, 0.11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--brand); font-weight: 650; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #e1ad4f; outline-offset: 3px; }
.skip-link {
  left: 1rem;
  padding: .7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(500px, 1.1fr); }
.auth-intro {
  background:
    radial-gradient(circle at 80% 15%, rgba(212, 164, 78, .14), transparent 30%),
    linear-gradient(145deg, #0a5c57, #123f45);
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 5.5rem);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: inherit; font-size: 1.1rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { align-items: center; background: var(--accent); border-radius: 11px; color: #15373b; display: inline-flex; font-size: 1.65rem; font-weight: 500; height: 42px; justify-content: center; width: 42px; }
.auth-intro__content { margin: auto 0; max-width: 650px; padding: 5rem 0; }
.eyebrow { color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 .8rem; text-transform: uppercase; }
.auth-intro .eyebrow { color: #b9dcd6; }
.auth-intro h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; margin: 0; }
.intro-copy { color: #d9e8e6; font-size: 1.08rem; max-width: 560px; }
.feature-list { display: grid; gap: .85rem; list-style: none; margin: 2.25rem 0 0; padding: 0; }
.feature-list li { display: flex; gap: .75rem; }
.feature-list span { color: #f4c66f; font-weight: 900; }
.auth-intro__note { color: #b9d0ce; font-size: .78rem; margin: 0; }
.auth-panel { align-items: center; background: var(--paper); display: flex; justify-content: center; padding: clamp(2rem, 7vw, 7rem); }
.auth-card { max-width: 560px; width: 100%; }
.auth-heading { margin-bottom: 2rem; }
.auth-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; margin: 0 0 .8rem; }
.auth-heading > p:last-child { color: var(--muted); margin: 0; }
.stack { display: grid; gap: 1.2rem; }
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-group { min-width: 0; }
.form-group--full { grid-column: 1 / -1; }
.form-group > label, .label-row label { display: inline-block; font-size: .9rem; font-weight: 750; margin-bottom: .42rem; }
.label-row { align-items: center; display: flex; justify-content: space-between; }
.label-row a { font-size: .82rem; }
.form-control, input[type="email"], input[type="password"], input[type="text"],
input[type="date"], select {
  appearance: none;
  background: white;
  border: 1px solid #b9c9c6;
  border-radius: 10px;
  color: var(--ink);
  min-height: 48px;
  padding: .75rem .9rem;
  width: 100%;
}
.form-control:hover { border-color: #809b97; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 107, 101, .12); outline: none; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 6.2rem; }
.password-toggle { background: transparent; border: 0; color: var(--brand); cursor: pointer; font-size: .78rem; font-weight: 750; padding: .5rem; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); }
.check-row { align-items: center; cursor: pointer; display: inline-flex; font-size: .9rem; gap: .65rem; width: fit-content; }
.form-check-input { accent-color: var(--brand); height: 18px; width: 18px; }
.field-help { color: var(--muted); font-size: .76rem; margin-top: .35rem; }
.field-help ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 650; margin: .35rem 0 0; }
.alert { border-radius: 10px; padding: .85rem 1rem; }
.alert p { margin: 0; }
.alert--error { background: var(--danger-soft); border-left: 4px solid var(--danger); color: #7e2727; }
.button { align-items: center; border: 1px solid transparent; border-radius: 10px; cursor: pointer; display: inline-flex; font-weight: 750; justify-content: center; min-height: 50px; padding: .75rem 1.2rem; text-decoration: none; }
.button--wide { width: 100%; }
.button--primary { background: var(--brand); color: white; box-shadow: 0 8px 20px rgba(11, 107, 101, .16); }
.button--primary:hover { background: var(--brand-dark); color: white; }
.button--secondary { border-color: var(--border); color: var(--brand); }
.auth-switch { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; margin: 2rem 0 0; padding-top: 1.4rem; text-align: center; }
.legal-note { color: var(--muted); font-size: .75rem; margin: 0; text-align: center; }

.site-header { align-items: center; background: white; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; min-height: 72px; padding: .8rem clamp(1rem, 5vw, 5rem); }
.brand--compact { color: var(--ink); }
.brand--compact .brand-mark { height: 36px; width: 36px; }
.site-header nav { align-items: center; display: flex; gap: 1.5rem; }
.site-header nav a, .nav-button { background: none; border: 0; color: var(--muted); cursor: pointer; font-weight: 700; text-decoration: none; }
.site-header form { display: inline; margin: 0; }
.page-container { margin: 0 auto; max-width: 1180px; padding: clamp(2rem, 6vw, 5rem) 1.25rem; }
.page-container--narrow { max-width: 850px; }
.page-heading { margin-bottom: 2rem; }
.page-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.page-heading p:last-child { color: var(--muted); }
.page-heading--split { align-items: flex-start; display: flex; gap: 2rem; justify-content: space-between; }
.surface { background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3rem); }
.empty-state { text-align: center; }
.empty-icon { align-items: center; background: var(--brand-soft); border-radius: 50%; color: var(--brand); display: inline-flex; font-size: 2rem; height: 64px; justify-content: center; width: 64px; }
.messages { left: 50%; max-width: 600px; position: fixed; top: 1rem; transform: translateX(-50%); width: calc(100% - 2rem); z-index: 20; }
.message { background: white; border: 1px solid var(--border); border-left: 5px solid var(--success); border-radius: 10px; box-shadow: var(--shadow); margin: 0; padding: .85rem 1rem; }
.status-pill { background: #f7edd8; border: 1px solid #ead3a7; border-radius: 999px; color: #725417; flex: none; font-size: .76rem; font-weight: 800; padding: .45rem .8rem; }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.subject-card, .case-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; padding: 1.6rem; }
.subject-card { box-shadow: 0 12px 34px rgba(20, 47, 54, .06); gap: 1.15rem; }
.subject-card__icon { align-items: center; background: var(--brand-soft); border-radius: 13px; color: var(--brand); display: flex; font-size: 1.5rem; height: 48px; justify-content: center; width: 48px; }
.card-kicker, .case-card__meta { color: var(--muted); font-size: .76rem; font-weight: 750; margin: 0; text-transform: uppercase; }
.subject-card h2, .case-card h3 { margin: .15rem 0 .45rem; }
.subject-card h2 a, .case-card h3 a { color: var(--ink); text-decoration: none; }
.subject-card p, .case-card p { color: var(--muted); margin: 0; }
.compact-list { border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); list-style: none; margin: 0; padding: .65rem 0; }
.compact-list li { display: flex; font-size: .86rem; justify-content: space-between; padding: .3rem 0; }
.compact-list span { color: var(--muted); }
.card-link { margin-top: auto; text-decoration: none; }
.breadcrumbs { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: .84rem; gap: .5rem; margin-bottom: 2.2rem; }
.breadcrumbs a { color: var(--muted); }
.category-section { margin: 3rem 0; }
.section-heading { align-items: flex-end; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; margin-bottom: 1.2rem; padding-bottom: .8rem; }
.section-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; margin: 0; }
.section-heading > span { color: var(--muted); font-size: .85rem; }
.case-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case-card { gap: .9rem; }
.case-card__meta { display: flex; flex-wrap: wrap; gap: .8rem; }
.case-card__meta span + span::before { color: #adc0bc; content: "•"; margin-right: .8rem; }
.case-layout { align-items: start; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 330px; }
.prototype-notice { background: #fff8e9; border: 1px solid #ead3a7; border-radius: 10px; color: #6f531e; margin-bottom: 1.25rem; padding: .8rem 1rem; }
.case-story h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; margin: 2rem 0 .25rem; }
.case-story h2:first-of-type { margin-top: 1.3rem; }
.case-story p { color: #3f545c; margin-top: 0; }
.patient-facts { display: flex; flex-wrap: wrap; gap: .6rem; }
.patient-facts span { background: var(--brand-soft); border-radius: 999px; color: var(--brand-dark); font-size: .82rem; padding: .35rem .7rem; }
.case-sidebar { position: sticky; top: 1.5rem; }
.case-sidebar h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; line-height: 1.2; margin-top: 0; }
.case-sidebar dl { border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); margin: 1.4rem 0; padding: .75rem 0; }
.case-sidebar dl div { display: flex; justify-content: space-between; padding: .35rem 0; }
.case-sidebar dt { color: var(--muted); }
.case-sidebar dd { font-weight: 750; margin: 0; }
.muted { color: var(--muted); }
.practice-shell { margin: 0 auto; max-width: 1320px; padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 5rem; }
.practice-header { align-items: flex-end; display: flex; justify-content: space-between; }
.practice-header h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; margin: 0; }
.practice-header .eyebrow { margin-top: 1rem; }
.back-link { color: var(--muted); font-size: .82rem; }
.question-count { color: var(--muted); font-size: 1rem; }
.question-count strong { color: var(--ink); font-size: 1.7rem; }
.progress-track { background: #dce7e5; border-radius: 999px; height: 7px; margin: 1rem 0 2rem; overflow: hidden; }
.progress-track span { background: var(--brand); border-radius: inherit; display: block; height: 100%; }
.practice-layout { align-items: start; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 310px; }
.question-surface h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 500; line-height: 1.25; margin: 1.2rem 0 1.8rem; }
.question-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.question-meta span { background: var(--brand-soft); border-radius: 999px; color: var(--brand-dark); font-size: .75rem; font-weight: 750; padding: .3rem .65rem; }
.answer-tabs { border-bottom: 1px solid var(--border); display: flex; gap: 1.2rem; margin-bottom: 1.2rem; }
.answer-tab { background: transparent; border: 0; color: var(--muted); font-weight: 750; padding: .8rem .15rem; }
.answer-tab.is-active { border-bottom: 3px solid var(--brand); color: var(--brand); }
.answer-tab--disabled { cursor: not-allowed; opacity: .55; }
.answer-textarea { border: 1px solid #b9c9c6; border-radius: 12px; color: var(--ink); font: inherit; line-height: 1.65; min-height: 250px; padding: 1rem; resize: vertical; width: 100%; }
.answer-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 107, 101, .12); outline: none; }
.answer-helper { color: var(--muted); display: flex; font-size: .75rem; justify-content: space-between; margin-top: .3rem; }
.answer-actions { align-items: center; display: flex; justify-content: space-between; }
.practice-aside { display: grid; gap: 1rem; }
.tip-card, .history-card { box-shadow: none; padding: 1.3rem; }
.tip-card h2, .history-card h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 500; margin: 0 0 .5rem; }
.tip-card p:last-child { color: var(--muted); font-size: .86rem; }
.history-card ul { list-style: none; margin: 0; padding: 0; }
.history-card li { border-top: 1px solid var(--border); display: flex; flex-direction: column; font-size: .82rem; padding: .7rem 0; }
.history-card li span { color: var(--muted); }
.submission-status { align-items: center; background: var(--brand-soft); border-radius: 12px; display: flex; gap: 1rem; padding: 1rem; }
.submission-status p { color: var(--muted); margin: .1rem 0 0; }
.status-symbol { align-items: center; background: white; border-radius: 50%; color: var(--success); display: flex; flex: none; font-size: 1.2rem; font-weight: 900; height: 42px; justify-content: center; width: 42px; }
.status-spinner { animation: spin 1s linear infinite; border: 4px solid white; border-radius: 50%; border-top-color: var(--brand); height: 36px; width: 36px; }
@keyframes spin { to { transform: rotate(360deg); } }
.original-answer { background: #f7f9f8; border-left: 4px solid #b9c9c6; border-radius: 4px 10px 10px 4px; padding: 1.2rem; }
.grading-card { display: grid; gap: 1rem; margin-top: 1.5rem; }
.grading-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; margin: 0; }
.grade-grid { display: grid; gap: .65rem; grid-template-columns: repeat(4, 1fr); }
.grade-button { background: white; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 750; padding: .75rem; }
.grade-button--again { border-color: #daa3a3; color: #8b3030; }
.grade-button--hard { border-color: #dbc596; color: #76591d; }
.grade-button--good, .grade-button--easy { border-color: #8fc7b1; color: #176b49; }
.completion-card { margin-bottom: 1.5rem; text-align: center; }
.completion-card h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; font-weight: 500; margin: .2rem 0; }
.completion-mark { align-items: center; background: var(--brand-soft); border-radius: 50%; color: var(--success); display: inline-flex; font-size: 2rem; height: 70px; justify-content: center; margin-bottom: 1rem; width: 70px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.5rem; }
.review-list { display: grid; gap: 1rem; }
.review-row { align-items: center; box-shadow: none; display: flex; gap: 2rem; justify-content: space-between; padding: 1.4rem; }
.review-row h2 { font-size: 1.05rem; margin: .3rem 0; }
.review-row p:last-child { color: var(--muted); font-size: .8rem; margin: 0; }
.is-hidden { display: none !important; }
.recorder-card { background: #f7f9f8; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; }
.recorder-status { align-items: center; display: flex; gap: .8rem; }
.recorder-status p { color: var(--muted); font-size: .82rem; margin: 0; }
.recorder-status time { font-variant-numeric: tabular-nums; font-weight: 800; margin-left: auto; }
.record-dot { background: #b6c7c4; border-radius: 50%; height: 12px; width: 12px; }
.recorder-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.button--record { background: #9d3d3d; color: white; }
.button--danger { border-color: #d6a0a0; color: var(--danger); }
.audio-preview { align-items: center; display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.audio-preview audio, .audio-submission audio { max-width: 100%; width: 100%; }
.upload-fallback { border-top: 1px solid var(--border); display: grid; font-size: .82rem; gap: .4rem; margin-top: 1rem; padding-top: 1rem; }
.upload-fallback input { max-width: 100%; }
.upload-progress { margin-top: 1rem; }
.upload-progress > div { display: flex; font-size: .78rem; justify-content: space-between; }
.upload-progress progress { accent-color: var(--brand); height: 10px; width: 100%; }
.audio-submission { display: grid; gap: .4rem; }
.audio-submission span { color: var(--muted); font-size: .8rem; }
.text-button { background: transparent; border: 0; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; padding: .5rem 0; text-decoration: underline; text-underline-offset: 3px; }
.text-button--danger { color: var(--danger); }
.feedback-report { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.score-overview { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.score-overview h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; line-height: 1.3; margin: 0; }
.confidence-note { color: var(--muted); font-size: .76rem; }
.score-ring { align-items: center; aspect-ratio: 1; background: conic-gradient(var(--brand) calc(var(--score) * 1%), #e4ecea 0); border-radius: 50%; display: flex; flex: 0 0 118px; flex-direction: column; justify-content: center; position: relative; }
.score-ring::before { background: white; border-radius: 50%; content: ""; inset: 9px; position: absolute; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; }
.score-ring strong { font-size: 2rem; line-height: 1; }
.score-ring span { color: var(--muted); font-size: .7rem; }
.score-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.mini-score { background: white; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: .35rem; padding: .9rem; }
.mini-score > span { color: var(--muted); font-size: .73rem; font-weight: 700; }
.mini-score > strong { font-size: 1.4rem; }
.mini-score > div { background: #e4ecea; border-radius: 999px; height: 5px; overflow: hidden; }
.mini-score i { background: var(--brand); display: block; height: 100%; }
.feedback-section { box-shadow: none; }
.feedback-section > h2, .next-drill h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; margin: 0 0 1rem; }
.feedback-list { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.feedback-list li { align-items: flex-start; display: flex; gap: .65rem; }
.feedback-list li span { color: var(--brand); font-weight: 900; }
.feedback-list--success li { background: #eff8f4; border-radius: 9px; padding: .7rem; }
.issue-card { border: 1px solid var(--border); border-left: 4px solid #d69a58; border-radius: 8px; margin-top: .8rem; padding: 1rem; }
.issue-card--uncertain { border-style: dashed; }
.issue-card p { margin: .45rem 0; }
.issue-card del { color: #8b3030; text-decoration-thickness: 2px; }
.issue-labels { display: flex; flex-wrap: wrap; gap: .45rem; }
.issue-labels span { background: #f5ecdc; border-radius: 999px; color: #74551f; font-size: .67rem; font-weight: 800; padding: .25rem .55rem; text-transform: uppercase; }
.correction { color: var(--success); }
.feedback-columns { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.feedback-columns > div { background: #f7f9f8; border-radius: 10px; padding: 1rem; }
.feedback-columns h3 { font-size: .92rem; margin: 0; }
.feedback-columns h3 span { color: var(--brand); }
.feedback-columns ul { margin-bottom: 0; padding-left: 1.2rem; }
.section-heading-inline { align-items: flex-start; display: flex; justify-content: space-between; }
.section-heading-inline h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; margin: 0 0 1rem; }
.pronunciation-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.pronunciation-grid div { border-top: 1px solid var(--border); padding-top: .6rem; }
.pronunciation-grid dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.pronunciation-grid dd { margin: .2rem 0 0; }
.answer-comparison { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.feedback-section--model { background: #edf6f3; border-color: #bcd9d3; }
.model-answer { line-height: 1.75; }
.next-drill { align-items: center; box-shadow: none; display: flex; gap: 1rem; }
.next-drill h2 { margin: 0; }
.dashboard-welcome { align-items: flex-end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.dashboard-welcome h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.dashboard-welcome p:last-child { color: var(--muted); margin-bottom: 0; }
.metric-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.25rem; }
.metric-card { align-items: center; background: white; border: 1px solid var(--border); border-radius: 14px; display: flex; gap: .8rem; min-height: 110px; padding: 1.1rem; position: relative; }
.metric-card > div { display: flex; flex-direction: column; }
.metric-card strong { font-size: 1.7rem; line-height: 1.1; }
.metric-card span:not(.metric-icon) { color: var(--muted); font-size: .78rem; }
.metric-card small { color: var(--muted); font-size: .65rem; }
.metric-card > a { inset: 0; position: absolute; }
.metric-icon { align-items: center; background: var(--brand-soft); border-radius: 11px; color: var(--brand); display: flex; flex: none; font-size: 1.2rem; height: 42px; justify-content: center; width: 42px; }
.metric-icon--due { background: #f8edd9; color: #76591d; }
.metric-icon--streak { background: #f2e8f7; color: #674078; }
.continue-card { align-items: center; background: linear-gradient(120deg, #0a625c, #15464b); border-radius: var(--radius); color: white; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; padding: 1.5rem 2rem; }
.continue-card > div { flex: 1; }
.continue-card .eyebrow { color: #bee1db; }
.continue-card h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; margin: 0; }
.continue-card p { color: #d7e9e6; margin: .2rem 0 .8rem; }
.continue-card .progress-track { background: rgba(255,255,255,.25); margin: 0; max-width: 600px; }
.continue-card .progress-track span { background: #f1c46c; }
.continue-card .button--primary { background: white; box-shadow: none; color: var(--brand-dark); flex: none; }
.dashboard-columns { align-items: start; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 320px; }
.dashboard-main, .dashboard-aside { display: grid; gap: 1.5rem; }
.dashboard-section { min-width: 0; }
.dashboard-section .section-heading { align-items: center; }
.dashboard-section .section-heading h2 { font-size: 1.7rem; }
.dashboard-specialties { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.dashboard-specialty { align-items: center; background: white; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); display: flex; gap: .8rem; padding: .9rem; text-decoration: none; }
.dashboard-specialty > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dashboard-specialty small { color: var(--muted); font-size: .7rem; }
.dashboard-specialty .subject-card__icon { height: 38px; width: 38px; }
.session-table { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.session-row { align-items: center; border-top: 1px solid var(--border); display: grid; font-size: .78rem; gap: 1rem; grid-template-columns: minmax(180px, 1fr) 90px 100px 75px; padding: .85rem 1rem; }
.session-row:first-child { border-top: 0; }
.session-row > div { display: flex; flex-direction: column; }
.session-row small, .session-row > span { color: var(--muted); }
.empty-inline { color: var(--muted); padding: 1rem; }
.activity-list { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.activity-list > a { align-items: center; border-top: 1px solid var(--border); color: var(--ink); display: flex; gap: .8rem; padding: .8rem 1rem; text-decoration: none; }
.activity-list > a:first-child { border-top: 0; }
.activity-list .status-symbol { background: var(--brand-soft); height: 34px; width: 34px; }
.activity-list a > div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.activity-list small, .activity-list time { color: var(--muted); font-size: .7rem; }
.analytics-card { box-shadow: none; padding: 1.25rem; }
.analytics-card h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 500; margin: 0 0 1rem; }
.analytics-bars { display: grid; gap: .85rem; }
.analytics-bars > div { display: grid; font-size: .74rem; gap: .3rem; grid-template-columns: 1fr auto; }
.analytics-bars > div > i { background: #e4ecea; border-radius: 99px; grid-column: 1 / -1; height: 5px; overflow: hidden; }
.analytics-bars b { background: var(--brand); display: block; height: 100%; }
.weak-list { list-style: none; margin: 0; padding: 0; }
.weak-list li { border-top: 1px solid var(--border); display: flex; font-size: .8rem; justify-content: space-between; padding: .55rem 0; }
.privacy-zone { align-items: center; border-color: #e6bcbc; box-shadow: none; display: flex; gap: 2rem; justify-content: space-between; margin-top: 2rem; }
.privacy-zone h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 500; margin: 0; }
.privacy-zone p:last-child { color: var(--muted); font-size: .85rem; margin-bottom: 0; }
.privacy-zone form { flex: none; }
.summary-metrics { display: flex; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
.summary-metrics div { background: #f7f9f8; border-radius: 10px; display: flex; flex-direction: column; min-width: 105px; padding: .7rem; }
.summary-metrics strong { font-size: 1.5rem; }
.summary-metrics span { color: var(--muted); font-size: .7rem; }

@media (max-width: 850px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; padding: 1.5rem; }
  .auth-intro__content { padding: 3.5rem 0 2rem; }
  .auth-intro h1 { font-size: 2.55rem; }
  .auth-intro__note, .feature-list { display: none; }
  .auth-panel { padding: 2.5rem 1.25rem 4rem; }
  .case-layout { grid-template-columns: 1fr; }
  .case-sidebar { position: static; }
  .practice-layout { grid-template-columns: 1fr; }
  .answer-comparison { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: auto; }
  .site-header { align-items: flex-start; gap: 1rem; }
  .site-header nav { align-items: flex-end; flex-direction: column; gap: .3rem; }
  .answer-actions, .review-row { align-items: stretch; flex-direction: column; }
  .grade-grid { grid-template-columns: repeat(2, 1fr); }
  .score-overview { align-items: flex-start; flex-direction: column-reverse; }
  .feedback-columns, .pronunciation-grid { grid-template-columns: 1fr; }
  .dashboard-welcome, .continue-card, .privacy-zone { align-items: stretch; flex-direction: column; }
  .dashboard-specialties { grid-template-columns: 1fr; }
  .session-row { grid-template-columns: 1fr 1fr; }
  .summary-metrics { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
