:root {
  color-scheme: light;
  --bg: #f4f7f2;
  --surface: #fffef8;
  --surface-strong: #ffffff;
  --text: #17211e;
  --muted: #69736f;
  --line: #dce4df;
  --green: #1f8a70;
  --blue: #2a9fd6;
  --amber: #f0a020;
  --red: #c84f5f;
  --shadow: 0 16px 34px rgba(31, 43, 38, 0.08);
  --soft-shadow: 0 8px 18px rgba(31, 43, 38, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(42, 159, 214, 0.12), transparent 32rem),
    linear-gradient(180deg, #f7faf5 0%, var(--bg) 100%);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

h1 {
  margin-bottom: 4px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.app-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px 14px 48px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 20px;
}

.brand {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.subtitle {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.content {
  display: grid;
  gap: 18px;
}

.module-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.module-content {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.side-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.86);
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.side-nav button,
.bottom-nav button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.side-nav button {
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
}

.side-nav button.is-active,
.bottom-nav button.is-active {
  border-color: rgba(31, 138, 112, 0.18);
  background: rgba(31, 138, 112, 0.1);
  color: var(--green);
}

.bottom-nav {
  display: none;
}

.module-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.module-entry {
  display: grid;
  min-height: 116px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--role);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px;
  text-align: left;
  box-shadow: var(--soft-shadow);
}

.module-entry span {
  color: var(--role);
  font-size: 13px;
  font-weight: 900;
}

.module-entry strong {
  align-self: end;
  margin-top: 18px;
  font-size: 18px;
}

.module-entry small {
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-hero,
.module-header {
  border-top: 4px solid var(--role, var(--green));
}

.summary-list,
.fitness-metrics {
  display: grid;
  gap: 10px;
}

.summary-list > div,
.fitness-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 11px 12px;
}

.summary-list span,
.fitness-metrics span {
  min-width: 0;
  color: #41504a;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.summary-list strong,
.fitness-metrics strong {
  flex: 0 0 auto;
  color: var(--green);
}

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

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

.compact-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.active-timer-text {
  margin: 0 0 12px;
  color: #34423d;
  font-size: 20px;
  font-weight: 900;
}

.module-timer-button {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 12px 14px;
}

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

.role-edit-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--role);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.role-edit-card label {
  display: grid;
  gap: 7px;
}

.role-edit-card label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.role-edit-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 9px 11px;
}

.date-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 560px);
  margin: 0 auto 2px;
  text-align: center;
}

.date-bar strong {
  display: block;
  font-size: 17px;
}

.date-bar span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button,
.timer-button,
.stepper button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--soft-shadow);
}

.icon-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.icon-button.flat {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.ghost-button,
.secondary-button,
.primary-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--green);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.primary-button {
  border: 0;
  background: var(--green);
  color: white;
}

.action-panel,
.panel,
.role-card,
.progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.92);
  box-shadow: var(--shadow);
}

.action-panel {
  padding: 22px;
}

.panel {
  padding: 18px;
}

.panel-head,
.section-row,
.progress-card-head,
.role-foot,
.legend-row,
.manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head.compact {
  margin-bottom: 14px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.panel-head h2,
.section-row h2 {
  margin-bottom: 0;
}

.panel-head h2 small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.status-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(31, 138, 112, 0.16);
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.09);
  color: #176753;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.progress-track,
.mini-track {
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece8;
}

.progress-track {
  height: 12px;
}

.mini-track {
  height: 8px;
}

.progress-track span,
.mini-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 180ms ease;
}

.role-card .mini-track span,
.progress-card .mini-track span {
  background: var(--role);
}

.subtle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-block {
  display: grid;
  gap: 12px;
}

.section-row {
  padding: 0 2px;
}

.section-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.role-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 4px solid var(--role);
}

.role-card.is-selected {
  border-color: color-mix(in srgb, var(--role) 82%, white);
  background: color-mix(in srgb, var(--role) 6%, white);
}

.role-main {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
}

.role-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--role);
}

.role-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.role-main small,
.role-foot,
.progress-card-head,
.entry-row small,
.manage-row small {
  color: var(--muted);
  font-size: 13px;
}

.role-card p {
  min-height: 42px;
  margin-bottom: 0;
  color: #3e4a45;
  font-size: 14px;
  line-height: 1.5;
}

.timer-button {
  width: 42px;
  height: 42px;
  border-color: transparent;
  background: var(--role);
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.timer-button.is-running {
  background: var(--red);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
}

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

.form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-grid label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 10px 12px;
}

.form-grid textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

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

.analysis-panel {
  min-height: 100%;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3ef;
  padding: 4px;
}

.segmented button {
  min-width: 54px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.segmented button.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--soft-shadow);
}

.donut-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 16px 0 18px;
}

.donut {
  position: relative;
  width: min(48vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 30, 0.04);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 30, 0.04);
}

.legend-list {
  display: grid;
  gap: 10px;
}

.legend-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.legend-row:first-child {
  border-top: 0;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-row strong {
  color: #3c4742;
  font-size: 13px;
  text-align: right;
}

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

.progress-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-left: 4px solid var(--role);
}

.progress-card-head strong {
  color: var(--role);
}

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

.stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.stepper button {
  width: 38px;
  height: 38px;
  color: var(--role);
  font-size: 18px;
  font-weight: 900;
}

.stepper span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.entry-list,
.role-manage-list {
  display: grid;
  gap: 10px;
}

.entry-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.entry-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.entry-row p {
  margin: 7px 0 0;
  color: #4b5852;
  font-size: 14px;
  line-height: 1.5;
}

.settings-panel {
  scroll-margin-top: 16px;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.role-manage-list {
  margin-top: 14px;
}

.manage-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 10px;
}

.manage-row strong {
  overflow-wrap: anywhere;
}

.empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.compact-button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.mini-button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.english-role-card {
  gap: 13px;
}

.english-role-metrics,
.english-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.english-role-metrics div,
.english-meta-grid div {
  border-radius: 8px;
  background: color-mix(in srgb, var(--role) 8%, white);
  padding: 10px;
}

.english-role-metrics span,
.english-meta-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.english-role-metrics strong,
.english-meta-grid strong {
  font-size: 16px;
}

.english-panel {
  display: grid;
  gap: 12px;
  scroll-margin-top: 16px;
}

.english-hero,
.practice-mode-panel,
.english-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.94);
  box-shadow: var(--shadow);
}

.english-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-top: 4px solid var(--role);
  padding: 18px;
}

.english-hero h2 {
  margin-bottom: 6px;
}

.english-hero p,
.practice-mode-panel p {
  margin-bottom: 0;
  color: #43504a;
  line-height: 1.5;
}

.english-score {
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--role) 12%, white);
  text-align: center;
}

.english-score strong {
  color: var(--role);
  font-size: 24px;
  line-height: 1;
}

.english-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.practice-mode-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.practice-mode-button {
  display: grid;
  gap: 5px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 11px;
  text-align: left;
}

.practice-mode-button strong {
  color: var(--role);
  font-size: 16px;
}

.practice-mode-button span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.finish-button {
  justify-self: start;
}

.english-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.english-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.english-card-head h3 {
  margin-bottom: 0;
}

.done-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--role) 14%, white);
  color: var(--role);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.sentence-list,
.task-list {
  display: grid;
  gap: 10px;
}

.sentence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.sentence-row.is-done {
  border-color: color-mix(in srgb, var(--role) 48%, white);
  background: color-mix(in srgb, var(--role) 7%, white);
}

.sentence-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.45;
}

.sentence-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pronunciation-guide {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--role) 8%, white);
  padding: 8px 10px;
}

.pronunciation-guide span {
  color: color-mix(in srgb, var(--role) 74%, #24312d);
  font-size: 12px;
  font-weight: 900;
}

.pronunciation-guide code {
  color: #26342f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.sentence-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.text-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.short-text {
  margin-bottom: 0;
  color: #2f3b36;
  font-size: 16px;
  line-height: 1.65;
}

.short-translation {
  margin: 0;
  border-left: 3px solid color-mix(in srgb, var(--role) 55%, white);
  color: #4a5852;
  padding-left: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.assessment-card {
  gap: 14px;
}

.recording-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff0ed;
  color: #b42318;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.assessment-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assessment-target-text,
.assessment-transcript,
.assessment-audio {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 11px 12px;
}

.assessment-target-text span,
.assessment-transcript span,
.assessment-audio span {
  color: color-mix(in srgb, var(--role) 72%, #24312d);
  font-size: 12px;
  font-weight: 900;
}

.assessment-target-text p,
.assessment-transcript p,
.assessment-audio p {
  margin: 0;
  color: #2f3b36;
  font-size: 14px;
  line-height: 1.55;
}

.assessment-audio audio {
  width: 100%;
}

.assessment-result {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.assessment-score {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--role) 12%, white);
  color: var(--role);
  padding: 12px;
}

.assessment-score strong {
  font-size: 30px;
  line-height: 1;
}

.assessment-score span {
  margin-top: 5px;
  color: #42504a;
  font-size: 12px;
  font-weight: 900;
}

.assessment-feedback {
  display: grid;
  gap: 7px;
  border-radius: 8px;
  background: #f8faf7;
  padding: 11px 12px;
}

.assessment-feedback p,
.assessment-error {
  margin: 0;
  color: #34423d;
  font-size: 14px;
  line-height: 1.5;
}

.assessment-error {
  border-radius: 8px;
  background: #fff0ed;
  color: #9f2a1d;
  padding: 10px 12px;
  font-weight: 800;
}

.success-note {
  margin-bottom: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--role) 10%, white);
  color: #24433b;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.english-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
  color: #34423d;
  font-weight: 800;
}

.english-task-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--role);
}

.english-task-row.is-done {
  border-color: color-mix(in srgb, var(--role) 40%, white);
  background: color-mix(in srgb, var(--role) 7%, white);
}

@media (max-width: 980px) {
  .module-layout {
    grid-template-columns: 132px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .app-shell {
    padding-top: 18px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .topbar {
    align-items: center;
  }

  .module-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 254, 248, 0.94);
    box-shadow: 0 10px 28px rgba(31, 43, 38, 0.16);
    padding: 6px;
    backdrop-filter: blur(12px);
  }

  .bottom-nav button {
    min-width: 0;
    min-height: 48px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.15;
  }

  .date-bar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .date-bar .ghost-button {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .panel-head,
  .section-row {
    align-items: flex-start;
  }

  .two-column,
  .role-grid,
  .progress-grid,
  .module-section-grid,
  .fitness-metrics,
  .role-edit-card {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-wrap: wrap;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .english-hero,
  .english-meta-grid,
  .practice-mode-grid,
  .sentence-row,
  .assessment-result {
    grid-template-columns: 1fr;
  }

  .english-score {
    width: 74px;
    justify-self: start;
  }

  .sentence-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .module-entry-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav button {
    font-size: 11px;
  }

  .action-panel,
  .panel {
    padding: 15px;
  }

  .role-foot,
  .legend-row,
  .manage-row {
    align-items: flex-start;
  }

  .legend-row {
    display: grid;
  }

  .manage-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .manage-row .ghost-button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}
