:root {
  --bg: #f0f4ff;
  --bg-soft: #f7f9ff;
  --surface: #ffffff;
  --surface-warm: #fff8ec;
  --ink: #2d3748;
  --ink-soft: #4a5568;
  --muted: #718096;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #4f86f7;
  --primary-dark: #3a6bd4;
  --primary-soft: #edf4ff;
  --accent: #6c5ce7;
  --accent-soft: #f1efff;
  --success: #4cd964;
  --success-soft: #f0fff4;
  --warning: #ffb340;
  --warning-soft: #fff7e6;
  --danger: #ff6b6b;
  --danger-soft: #fff0f0;
  --info: #6c5ce7;
  --info-soft: #f1efff;
  --focus: rgba(79, 134, 247, 0.18);
  --shadow: 0 6px 20px rgba(79, 134, 247, 0.18);
  --shadow-soft: 0 4px 12px rgba(79, 134, 247, 0.12);
  --radius: 16px;
  --tap: 46px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(79, 134, 247, 0.1), rgba(108, 92, 231, 0.08) 260px, transparent 520px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 244, 255, 0) 320px),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  touch-action: manipulation;
}

select {
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.app-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0 12px;
  background: rgba(240, 244, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 216, 218, 0.78);
}

.brand-block {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: var(--radius);
  color: var(--primary-dark);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(237, 244, 255, 0.94)),
    var(--primary-soft);
  font-size: 20px;
  font-weight: 850;
}

.brand {
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
}

.subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tabs {
  display: grid;
  gap: 6px;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.secondary-tabs {
  display: flex;
}

.nav-more-toggle {
  display: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab,
.btn {
  min-height: var(--tap);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  font-weight: 750;
}

.tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab:hover,
.btn:hover:not(:disabled) {
  border-color: var(--primary);
}

.tab.active {
  color: var(--primary-dark);
  border-color: rgba(79, 134, 247, 0.34);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(79, 134, 247, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 760;
}

.btn.primary {
  color: #fff;
  border-color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(79, 134, 247, 0.26);
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark), #5b4ed6);
}

.btn.ghost {
  color: var(--primary-dark);
  border-color: rgba(79, 134, 247, 0.3);
  background: var(--surface);
}

.btn.large {
  min-height: 52px;
  padding: 0 20px;
  font-weight: 850;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.main {
  width: 100%;
  margin: 22px auto 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.workbench-section {
  display: grid;
  gap: 16px;
}

.first-entry-guide,
.state-message,
.onboarding-panel,
.onboarding-form {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.first-entry-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border-color: rgba(79, 134, 247, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.74)),
    var(--surface);
  box-shadow: var(--shadow);
}

.first-entry-guide h1,
.first-entry-guide p,
.onboarding-form h2 {
  margin: 0;
}

.first-entry-guide h1 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.first-entry-actions {
  display: grid;
  gap: 10px;
  min-width: min(260px, 100%);
}

.first-entry-actions .btn {
  width: 100%;
}

.onboarding-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.onboarding-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  box-shadow: none;
}

.student-form {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-form h2,
.student-form .btn {
  grid-column: 1 / -1;
}

.onboarding-form label {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.onboarding-form input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.state-message {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 4vw, 28px);
  border-color: rgba(79, 134, 247, 0.28);
  background: var(--primary-soft);
}

.state-message.error {
  border-color: rgba(255, 107, 107, 0.34);
  background: var(--danger-soft);
}

.state-message > span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.state-message.error > span {
  color: #b83232;
}

.state-message strong {
  font-size: 22px;
  line-height: 1.3;
}

.state-message p {
  margin: 0;
  color: var(--ink-soft);
}

.workbench-hero {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
}

.workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 16px;
  align-items: stretch;
}

.workbench-progress-card,
.workbench-metric,
.next-step-card,
.resource-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.workbench-progress-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.workbench-progress-card > span,
.workbench-progress-card small,
.workbench-metric span,
.workbench-metric small,
.resource-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workbench-progress-card strong {
  color: var(--primary-dark);
  font-size: 32px;
  line-height: 1;
}

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

.workbench-metric {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.workbench-metric strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.next-step-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.next-step-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
}

.next-step-card h3,
.next-step-card p {
  margin: 0;
}

.next-step-card h3 {
  font-size: 17px;
  line-height: 1.35;
}

.next-step-card p {
  color: var(--ink-soft);
}

.next-step-card .btn {
  width: 100%;
}

.primary-step {
  border-color: rgba(79, 134, 247, 0.34);
  background: var(--primary-soft);
}

.resource-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.resource-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.resource-link {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.resource-link:hover {
  color: var(--primary-dark);
  border-color: rgba(79, 134, 247, 0.24);
  background: var(--primary-soft);
}

.hero-copy-block,
.panel,
.value-card,
.issue-card,
.task-card,
.today-panel,
.daily-detail,
.history-card,
.wrong-card,
.path-day-card,
.method-detail,
.summary-block,
.metric-card,
.summary-progress-card,
.summary-share-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-copy-block {
  display: grid;
  align-content: center;
  min-height: 520px;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 240, 247, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(18px, 3vw, 32px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.hero-kicker,
.value-card-head,
.progress-label-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(31px, 4.1vw, 46px);
}

h2 {
  font-size: 20px;
}

p {
  margin: 0 0 12px;
  line-height: 1.72;
}

.hero-copy {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.value-grid {
  display: grid;
  gap: 12px;
}

.value-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.96)),
    var(--surface);
  box-shadow: none;
}

.value-card h2,
.issue-card h2 {
  font-size: 18px;
}

.value-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 251, 0.82);
}

.hero-stats strong {
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.25;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.toolbar.split {
  justify-content: space-between;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.today-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-color: rgba(79, 134, 247, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.62)),
    var(--surface);
  box-shadow: var(--shadow);
}

.lesson-today {
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.lesson-today::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(79, 134, 247, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 134, 247, 0.12), transparent 62%);
  pointer-events: none;
}

.today-head,
.daily-title-row,
.diagnosis-head,
.path-title-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.daily-title-row > div,
.diagnosis-head > div,
.path-title-row > div,
.today-head > div {
  min-width: 0;
}

.today-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.today-metrics div,
.path-meta-grid > div,
.detail-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 251, 0.88);
}

.today-metrics dt,
.detail-grid span,
.path-meta-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.today-metrics dd {
  margin: 0;
  font-weight: 850;
  line-height: 1.4;
}

.teacher-note {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 13px 14px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: #6b4d12;
  background: var(--accent-soft);
  font-weight: 650;
}

.teacher-note strong {
  color: #5b4ed6;
  font-size: 12px;
}

.path-version-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: var(--radius);
  background: rgba(237, 244, 255, 0.68);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.path-version-note strong {
  color: var(--primary-dark);
}

.course-brief,
.today-lesson-flow {
  display: grid;
  gap: 8px;
}

.course-brief {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-brief div,
.today-lesson-flow div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.course-brief span,
.today-lesson-flow span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.course-brief strong,
.today-lesson-flow strong {
  font-size: 14px;
  line-height: 1.35;
}

.course-brief small {
  color: var(--muted);
  line-height: 1.35;
}

.today-lesson-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(79, 134, 247, 0.2);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.badge.accent {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.badge.light {
  color: var(--primary-dark);
  background: #fff;
}

.diagnosis-panel,
.result-panel,
.path-panel,
.profile-panel,
.wrongbook-panel,
.summary-panel,
.methods-panel {
  display: grid;
  gap: 18px;
}

.diagnosis-panel {
  scroll-margin-bottom: var(--bottom-nav-clearance, 96px);
}

.diagnosis-progress-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.diagnosis-progress-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 251, 0.92);
}

.diagnosis-progress-summary span,
.diagnosis-draft-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.diagnosis-progress-summary strong {
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.diagnosis-helper,
.missing-answer-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
}

.diagnosis-helper {
  color: var(--ink-soft);
  background: rgba(237, 244, 255, 0.72);
}

.diagnosis-draft-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 179, 64, 0.34);
  border-radius: var(--radius);
  background: var(--warning-soft);
}

.diagnosis-draft-note strong {
  color: #8a5a00;
  line-height: 1.35;
}

.missing-answer-note {
  color: #9b2c2c;
  background: var(--danger-soft);
}

.progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e0e8ea;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--info));
  transition: width 160ms ease;
}

.progress-wide {
  height: 12px;
}

.option-list,
.task-list,
.history-list,
.wrong-list,
.method-list,
.lesson-step-list,
.practice-list {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.choice.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 4px var(--focus);
}

.choice input {
  flex: 0 0 auto;
  margin-top: 5px;
  accent-color: var(--primary);
}

.choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.issue-grid,
.summary-grid,
.history-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-v2 {
  align-items: stretch;
  scroll-margin-bottom: var(--bottom-nav-clearance, 96px);
}

.result-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.result-conclusion {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
  align-items: stretch;
  border-color: rgba(79, 134, 247, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.68)),
    var(--surface);
}

.result-score-card {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: var(--radius);
  background: #fff;
}

.result-score-card span,
.result-score-card small,
.evidence-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-score-card strong {
  color: var(--primary-dark);
  font-size: 30px;
  line-height: 1.1;
}

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

.evidence-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(79, 134, 247, 0.2);
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.evidence-grid strong {
  line-height: 1.45;
}

.result-day-one {
  border-color: rgba(77, 138, 93, 0.3);
  background: var(--success-soft);
}

.result-day-one p {
  margin: 0;
}

.result-actions {
  border-color: rgba(255, 179, 64, 0.32);
  background: var(--warning-soft);
}

.result-actions .toolbar {
  margin-top: 0;
}

.issue-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.issue-card,
.history-card,
.wrong-card,
.path-day-card,
.method-detail {
  padding: 18px;
}

.primary-issue {
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
}

.path-meta-grid,
.detail-grid,
.summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.path-meta-grid strong,
.detail-grid strong {
  line-height: 1.45;
}

.task-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.task-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--info));
  font-weight: 900;
}

.day-switcher {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day-chip {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 60px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.day-chip span,
.day-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-chip span {
  font-weight: 850;
}

.day-chip small {
  color: var(--muted);
  font-size: 12px;
}

.day-chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--focus);
}

.day-chip.done {
  border-color: rgba(77, 138, 93, 0.42);
  background: var(--success-soft);
}

.daily-detail {
  display: grid;
  gap: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 251, 0.96)),
    var(--surface);
}

.lesson-detail {
  border-top: 4px solid var(--primary);
}

.lesson-hero {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.lesson-guide {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(237, 244, 255, 0.98), rgba(241, 239, 255, 0.9)),
    var(--primary-soft);
}

.lesson-guide span,
.lesson-board span,
.lesson-sidebar span,
.lesson-exit-ticket span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.lesson-guide strong {
  color: var(--primary-dark);
  line-height: 1.45;
}

.lesson-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.lesson-board-main,
.lesson-board-side,
.lesson-sidebar div,
.lesson-exit-ticket div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lesson-board strong {
  font-size: 19px;
  line-height: 1.35;
}

.lesson-board p {
  margin: 0;
  color: var(--ink-soft);
}

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

.lesson-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 251, 0.92);
}

.lesson-sidebar strong,
.lesson-sidebar p {
  margin: 0;
  line-height: 1.5;
}

.lesson-main,
.lesson-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.lesson-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.course-unit-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.lesson-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  display: grid;
  gap: 4px;
}

.section-heading h3,
.lesson-section h3,
.learning-block h3 {
  margin: 0;
  font-size: 18px;
}

.lesson-tag {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #5b4ed6;
  background: var(--warning-soft);
  font-size: 12px;
  font-weight: 900;
}

.lesson-step,
.practice-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-marker,
.practice-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--info));
  font-weight: 900;
}

.lesson-step small {
  color: var(--primary-dark);
  font-weight: 900;
}

.lesson-step h4 {
  margin: 2px 0 4px;
  font-size: 16px;
}

.lesson-step p,
.example-grid p,
.practice-list p,
.practice-list strong,
.practice-list small {
  margin: 0;
}

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

.example-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.example-grid span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.practice-list strong {
  display: block;
  line-height: 1.5;
}

.practice-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.practice-entry-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.practice-entry-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.practice-single-question {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.practice-screen-panel {
  display: grid;
  gap: 14px;
}

.practice-screen-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: none;
}

.practice-question-head {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.practice-question-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.practice-answer-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.practice-answer-field span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.practice-answer-field input {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.practice-option-list {
  margin-top: 2px;
}

.practice-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.practice-feedback {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.practice-feedback.success {
  border-color: rgba(77, 138, 93, 0.45);
  background: var(--success-soft);
}

.practice-feedback.error {
  border-color: rgba(194, 53, 68, 0.45);
  background: var(--danger-soft);
}

.practice-feedback p {
  margin: 0;
}

.practice-footer-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.course-alignment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-alignment span {
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(79, 134, 247, 0.24);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.lesson-exit-ticket {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(77, 138, 93, 0.34);
  border-radius: var(--radius);
  background: var(--success-soft);
}

.lesson-exit-ticket p {
  margin: 0;
  color: #2f7d43;
}

.inline-notice {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(79, 134, 247, 0.28);
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 750;
}

.learning-block {
  display: grid;
  gap: 8px;
}

.path-version-block {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: var(--radius);
  background: rgba(237, 244, 255, 0.54);
}

.path-version-block p {
  margin: 0;
}

.path-version-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.path-version-list > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 251, 0.9);
}

.path-version-list strong {
  color: var(--primary-dark);
}

.path-version-list span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.profile-record-block {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.student-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.student-switcher > div,
.student-switcher label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.student-switcher strong {
  line-height: 1.25;
}

.student-switcher label {
  grid-template-columns: auto minmax(160px, 240px);
  align-items: center;
  gap: 8px;
}

.student-switcher label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.student-switcher select {
  width: 100%;
  min-width: 0;
}

.profile-record-block p {
  margin: 0;
}

.profile-record-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.daily-status-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day-status-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
}

.day-status-chip strong,
.day-status-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-status-chip.completed {
  color: #1f7a4f;
  border-color: rgba(76, 217, 100, 0.34);
  background: var(--success-soft);
}

.day-status-chip.today {
  color: var(--primary-dark);
  border-color: rgba(79, 134, 247, 0.44);
  box-shadow: inset 0 0 0 1px rgba(79, 134, 247, 0.12);
}

.latest-diagnostic-block {
  border-color: rgba(108, 92, 231, 0.22);
  background: rgba(241, 239, 255, 0.5);
}

.next-phase-block {
  border-color: rgba(34, 148, 120, 0.28);
  background: linear-gradient(180deg, rgba(234, 250, 245, 0.9), rgba(255, 255, 255, 0.96));
}

.next-phase-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.next-phase-preview article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.next-phase-preview span,
.next-phase-preview small {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.next-phase-preview strong {
  display: block;
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.35;
}

.learning-block ul,
.learning-block ol,
.summary-block ul,
.method-detail ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.history-card,
.wrong-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.wrong-card.mastered {
  opacity: 0.76;
  background: var(--success-soft);
}

.history-actions,
.filter-row,
.method-inline-list,
.summary-controls,
.summary-share-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.history-actions {
  justify-content: flex-end;
}

.history-detail {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filter-row {
  align-items: center;
}

.filter-row select {
  max-width: 100%;
}

.check-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.summary-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(79, 134, 247, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.86)),
    var(--surface);
}

.summary-status-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.summary-status-card strong {
  color: var(--primary-dark);
  font-size: 38px;
  line-height: 1;
}

.summary-status-card > span:last-child,
.summary-metrics span {
  color: var(--muted);
  font-weight: 700;
}

.summary-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  width: fit-content;
  max-width: 100%;
}

.summary-share-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
}

.summary-share-head {
  justify-content: space-between;
}

.summary-share-head h2,
.summary-share-head p {
  margin: 0;
}

.summary-share-head p {
  margin-top: 4px;
  color: var(--muted);
}

.summary-share-text {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--bg-soft);
  font: inherit;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.metric-card,
.summary-progress-card,
.summary-block {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.metric-card {
  border-left: 4px solid var(--primary);
}

.metric-card.green {
  border-left-color: var(--success);
  background: var(--success-soft);
}

.metric-card.teal {
  border-left-color: var(--primary);
  background: var(--primary-soft);
}

.metric-card.red {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.metric-card.blue {
  border-left-color: var(--primary);
  background: var(--info-soft);
}

.summary-metrics strong {
  font-size: 22px;
  line-height: 1.25;
}

.progress-label-row span {
  color: var(--primary-dark);
  font-weight: 900;
}

.summary-block.wide {
  grid-column: 1 / -1;
}

.summary-block h2 {
  margin: 0;
}

.method-link,
.method-list-item {
  border: 1px solid rgba(79, 134, 247, 0.28);
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: var(--bg-soft);
  cursor: pointer;
  text-align: left;
}

.method-link {
  display: grid;
  gap: 3px;
  min-height: var(--tap);
  padding: 9px 12px;
  min-width: 0;
}

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

.method-card-button {
  align-content: start;
  min-height: 120px;
}

.method-card-button .badge {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}

.summary-next-btn {
  width: fit-content;
  max-width: 100%;
}

.method-link small,
.method-list-item small {
  color: var(--muted);
  line-height: 1.4;
  white-space: normal;
}

.methods-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.method-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 13px;
}

.method-link strong,
.method-list-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.method-list-item.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--focus);
}

.small-note {
  margin-top: 2px;
  color: var(--accent);
  font-weight: 750;
}

@media (max-width: 920px) {
  .app-shell {
    width: min(100vw - 28px, 1120px);
    padding-bottom: 92px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tabs {
    justify-content: flex-start;
  }

  .hero-section,
  .first-entry-guide,
  .workbench-head,
  .result-conclusion,
  .lesson-board,
  .lesson-layout,
  .summary-hero,
  .methods-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy-block {
    min-height: auto;
  }

  .path-meta-grid,
  .detail-grid,
  .evidence-grid,
  .summary-metrics,
  .next-step-grid,
  .next-phase-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell {
    --bottom-nav-bottom: max(10px, env(safe-area-inset-bottom));
    --bottom-nav-clearance: calc(60px + var(--bottom-nav-bottom) + 24px);
    width: 100%;
    padding: 10px 12px var(--bottom-nav-clearance);
  }

  .topbar {
    position: sticky;
    top: 0;
    margin: 0 -12px;
    padding: 10px 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tabs {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: var(--bottom-nav-bottom);
    left: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    justify-content: stretch;
    padding: 7px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(79, 134, 247, 0.18);
    backdrop-filter: blur(16px);
    overflow: visible;
  }

  .tab-row {
    justify-content: stretch;
    width: 100%;
  }

  .primary-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .secondary-tabs {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 28px rgba(79, 134, 247, 0.18);
  }

  .tabs.more-open .secondary-tabs {
    display: grid;
  }

  .nav-more-toggle {
    display: inline-flex;
  }

  .tab {
    min-width: 0;
    min-height: 44px;
    padding: 0 4px;
    border-color: transparent;
    font-size: 11px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .tab.active {
    box-shadow: inset 0 0 0 1px rgba(79, 134, 247, 0.12);
  }

  .main {
    margin-top: 16px;
  }

  .panel,
  .hero-copy-block,
  .first-entry-guide,
  .onboarding-form,
  .today-panel,
  .daily-detail {
    padding: 16px;
  }

  .diagnosis-panel {
    margin-bottom: var(--bottom-nav-clearance);
  }

  .result-panel {
    margin-bottom: var(--bottom-nav-clearance);
  }

  .first-entry-actions {
    min-width: 0;
  }

  .hero-section {
    gap: 12px;
    margin-bottom: var(--bottom-nav-clearance);
  }

  .hero-copy-block {
    min-height: 0;
  }

  .value-grid {
    gap: 10px;
  }

  .hero-stats,
  .onboarding-panel,
  .student-form,
  .course-brief,
  .today-lesson-flow,
  .diagnosis-progress-summary,
  .workbench-metrics,
  .workbench-head,
  .next-step-grid,
  .issue-grid,
  .evidence-grid,
  .result-detail-grid,
  .summary-grid,
  .history-path-grid,
  .example-grid,
  .today-metrics,
  .next-phase-preview {
    grid-template-columns: 1fr;
  }

  .student-form h2,
  .student-form .btn {
    grid-column: auto;
  }

  .day-switcher {
    display: flex;
    gap: 8px;
    margin-inline: -2px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .day-chip {
    flex: 0 0 112px;
    scroll-snap-align: start;
  }

  .diagnosis-head,
  .path-title-row,
  .today-head,
  .daily-title-row,
  .profile-record-head,
  .history-card,
  .wrong-card {
    display: grid;
    gap: 10px;
  }

  .daily-title-row .badge,
  .path-title-row .badge,
  .today-head .badge,
  .diagnosis-head .badge {
    justify-self: start;
  }

  .history-actions {
    justify-content: stretch;
  }

  .history-actions .btn,
  .toolbar .btn,
  .toolbar-group {
    flex: 1 1 auto;
  }

  .daily-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar.split,
  .toolbar-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .diagnosis-progress-summary div,
  .diagnosis-draft-note,
  .diagnosis-helper,
  .missing-answer-note,
  .choice {
    border-radius: 7px;
  }

  .choice {
    padding: 13px;
  }

  .lesson-board,
  .lesson-sidebar,
  .onboarding-panel,
  .result-section,
  .result-score-card,
  .workbench-hero,
  .next-step-panel,
  .workbench-metric,
  .next-step-card,
  .course-unit-section,
  .lesson-step,
  .practice-list article,
  .example-grid div,
  .summary-share-card,
  .metric-card,
  .summary-progress-card,
  .summary-block,
  .value-card,
  .issue-card,
  .history-card,
  .wrong-card,
  .path-day-card,
  .profile-record-block,
  .method-detail {
    padding: 14px;
  }

  .lesson-board strong {
    font-size: 17px;
  }

  .lesson-layout {
    gap: 12px;
  }

  .section-heading h3,
  .lesson-section h3,
  .learning-block h3 {
    font-size: 17px;
  }

  .method-inline-list,
  .filter-row,
  .summary-controls,
  .method-card-grid,
  .student-switcher,
  .student-switcher label {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .method-link,
  .filter-row select,
  .check-toggle,
  .summary-next-btn,
  .student-switcher select {
    width: 100%;
  }

  .course-alignment {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .practice-action-row [data-action="submit-practice-answer"] {
    grid-column: 1 / -1;
  }

  .summary-block.wide {
    grid-column: auto;
  }

  .workbench-section {
    gap: 12px;
    padding-bottom: 8px;
  }

  .workbench-progress-card strong,
  .workbench-metric strong {
    font-size: 24px;
  }

  .resource-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .resource-panel > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .resource-link {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 10px;
  }

  .topbar {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 19px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .brand {
    font-size: 19px;
  }

  .subtitle {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .path-meta-grid,
  .detail-grid,
  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .today-panel,
  .daily-detail,
  .panel,
  .first-entry-guide,
  .onboarding-panel,
  .onboarding-form,
  .hero-copy-block {
    border-radius: 7px;
  }

  .course-brief div,
  .today-lesson-flow div,
  .today-metrics div,
  .path-meta-grid > div {
    padding: 11px;
  }

  .lesson-step,
  .practice-list article {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }

  .step-marker,
  .practice-list article > span {
    width: 30px;
    height: 30px;
  }

  .tabs {
    right: 8px;
    left: 8px;
    gap: 4px;
    padding: 6px;
  }

  .primary-tabs {
    gap: 4px;
  }

  .tab {
    min-height: 42px;
    font-size: 10.5px;
  }

  .summary-switch,
  .summary-switch .btn,
  .summary-share-head .btn,
  .btn.large {
    width: 100%;
  }

  .summary-switch .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .summary-share-head {
    display: grid;
  }
}
