:root {
  --ink: #182034;
  --muted: #687086;
  --line: #e5e8f0;
  --paper: #ffffff;
  --canvas: #f6f7fb;
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --indigo-soft: #eeedff;
  --mint: #0d9488;
  --mint-soft: #e7f8f4;
  --orange: #ea580c;
  --orange-soft: #fff0e8;
  --sky: #0284c7;
  --sky-soft: #e8f6fd;
  --danger: #c24157;
  --success: #15803d;
  --shadow: 0 16px 38px rgba(37, 42, 74, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 5%, rgba(79, 70, 229, 0.08), transparent 23rem),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.25);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-140%); background: var(--ink); color: white;
  padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: 78px; padding: 12px max(22px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(229, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: max-content; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px;
  background: var(--indigo); color: white; font-weight: 850; font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.24);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand small { color: var(--muted); font-size: 0.78rem; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  min-height: 44px; padding: 10px 16px; border: 0; border-radius: 13px;
  color: var(--muted); background: transparent; font-weight: 700;
}
.nav-btn span { margin-right: 5px; }
.nav-btn:hover { background: #f1f2f7; color: var(--ink); }
.nav-btn.active { background: var(--indigo-soft); color: var(--indigo-dark); }

.app-shell { width: min(1180px, calc(100% - 44px)); margin: 26px auto 80px; }

.day-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 26px;
  padding: 20px 24px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: rgba(255,255,255,.82); box-shadow: 0 8px 28px rgba(37, 42, 74, 0.04);
}
.day-title { display: flex; align-items: center; gap: 24px; }
.eyebrow { display: block; color: var(--indigo); font-size: 0.78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.day-switcher { display: flex; align-items: center; gap: 8px; }
.day-switcher select {
  min-width: 142px; height: 46px; padding: 0 40px 0 16px;
  border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); font-weight: 800;
}
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px;
  background: white; color: var(--ink); font-size: 1.15rem;
}
.icon-btn:hover { border-color: var(--indigo); color: var(--indigo); }

.day-meter { width: min(350px, 38%); }
.day-meter > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.day-meter strong { color: var(--indigo-dark); }
.progress-track { height: 8px; margin-top: 8px; overflow: hidden; background: #e9eaf1; border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--indigo), #7c73ff); border-radius: inherit; transition: width .35s ease; }

.view { animation: enter .24s ease-out; }
.view[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  min-height: 142px; padding: 20px; display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--radius-lg); border: 1px solid transparent;
}
.stat-card span { font-weight: 750; font-size: .88rem; }
.stat-card strong { margin: 7px 0 2px; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.05; }
.stat-card strong em { font-size: .9rem; font-style: normal; font-weight: 700; }
.stat-card small { opacity: .75; }
.stat-card.indigo { color: var(--indigo-dark); background: var(--indigo-soft); border-color: #dcd9ff; }
.stat-card.mint { color: #0f766e; background: var(--mint-soft); border-color: #d1eee8; }
.stat-card.orange { color: #c2410c; background: var(--orange-soft); border-color: #ffe0cc; }
.stat-card.sky { color: #0369a1; background: var(--sky-soft); border-color: #d2ecfa; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 42px 2px 18px; }
.section-heading.compact { align-items: center; margin-top: 12px; margin-bottom: 24px; }
.section-heading h1 { margin: 5px 0 3px; font-size: clamp(1.75rem, 4vw, 2.55rem); line-height: 1.18; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.primary-btn, .secondary-btn, .outline-btn {
  min-height: 46px; border-radius: 14px; padding: 11px 18px; border: 1px solid transparent; font-weight: 800;
}
.primary-btn { color: white; background: var(--indigo); box-shadow: 0 8px 18px rgba(79,70,229,.18); }
.primary-btn:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.secondary-btn { color: var(--indigo-dark); background: var(--indigo-soft); border-color: #d9d6ff; }
.secondary-btn:hover { background: #e1dfff; }
.outline-btn { background: white; border-color: var(--line); color: var(--ink); }

.player-card {
  display: grid; grid-template-columns: minmax(220px, .8fr) minmax(520px, 1.2fr); align-items: center; gap: 22px;
  padding: 20px 22px; border-radius: var(--radius-xl); color: white;
  background: linear-gradient(135deg, #302990, var(--indigo) 58%, #675ff1); box-shadow: 0 18px 40px rgba(55,48,163,.2);
}
.now-playing { display: flex; align-items: center; gap: 15px; min-width: 0; }
.now-playing div { min-width: 0; }
.now-playing small, .now-playing strong, .now-playing span { display: block; }
.now-playing small { opacity: .7; }
.now-playing strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.7rem; line-height: 1.2; }
.now-playing span { opacity: .86; }
.pulse-dot { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #7ef4d8; box-shadow: 0 0 0 7px rgba(126,244,216,.14); }
.player-card.playing .pulse-dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(126,244,216,0); } }

.player-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.control-btn, .play-btn {
  min-height: 44px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.19); border-radius: 13px;
  background: rgba(255,255,255,.11); color: white; font-weight: 750;
}
.control-btn:hover, .play-btn:hover { background: rgba(255,255,255,.2); }
.play-btn { min-height: 50px; padding-inline: 18px; background: white; color: var(--indigo-dark); border-color: white; }
.play-btn:hover { background: #f4f2ff; }
.danger { color: #ffdce2; }
.speed-control { display: flex; align-items: center; gap: 7px; margin-left: 2px; font-size: .85rem; color: rgba(255,255,255,.8); }
.speed-control select { height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.12); color: white; padding: 0 7px; }
.speed-control select option { color: var(--ink); background: white; }

.word-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.word-card {
  position: relative; min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: 0 8px 25px rgba(37,42,74,.035); transition: border-color .18s, transform .18s, box-shadow .18s;
}
.word-card:hover { transform: translateY(-2px); border-color: #c9c5ff; box-shadow: var(--shadow); }
.word-card.current { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft), var(--shadow); }
.word-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.word-number { display: inline-flex; color: #9398a9; font-size: .78rem; font-weight: 800; }
.word-title { margin: 6px 0 0; font-size: 1.65rem; line-height: 1.15; letter-spacing: -.02em; }
.word-phonetic { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; }
.word-meaning { display: block; margin: 10px 0 13px; color: #424a60; }
.word-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.word-audio-actions { display: flex; gap: 6px; align-items: center; }
.speak-word, .loop-word { min-width: 40px; height: 40px; border: 0; border-radius: 12px; color: var(--indigo); background: var(--indigo-soft); font-size: 1.05rem; }
.loop-word { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 9px; font-size: .86rem; font-weight: 850; }
.loop-word.active { color: white; background: var(--danger); }
.status-select { max-width: 125px; height: 40px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fafafe; color: var(--ink); font-size: .88rem; font-weight: 700; }
.word-card[data-status="mastered"] { border-color: #bfe6d0; background: linear-gradient(180deg, white, #f7fffa); }
.word-card[data-status="mastered"] .status-select { color: var(--success); background: #edf9f2; border-color: #cbead8; }
.word-card[data-status="learning"] .status-select { color: #b45309; background: #fff8e8; border-color: #fde5ad; }
.mistake-badge { position: absolute; top: 13px; right: 132px; padding: 3px 8px; border-radius: 999px; color: var(--danger); background: #fff0f3; font-size: .72rem; font-weight: 850; }

.add-row { display: flex; justify-content: center; margin-top: 24px; }
.empty-state { padding: 54px 24px; margin-top: 20px; text-align: center; border: 1px dashed #cfd2df; border-radius: var(--radius-xl); background: rgba(255,255,255,.7); }
.empty-state h2 { margin: 12px 0 4px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; margin: auto; display: grid; place-items: center; border-radius: 20px; color: var(--indigo); background: var(--indigo-soft); font-weight: 900; font-size: 1.4rem; }

.dictation-score { min-width: 142px; padding: 12px 16px; border-radius: 15px; background: var(--mint-soft); color: #0f766e; }
.dictation-score span, .dictation-score strong { display: block; }
.dictation-score span { font-size: .78rem; font-weight: 750; }
.dictation-score strong { font-size: 1.5rem; }
.dictation-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 18px; }
.dictation-card { position: relative; min-height: 520px; padding: 28px; display: flex; align-items: center; flex-direction: column; justify-content: center; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(180deg, white, #fbfbff); box-shadow: var(--shadow); text-align: center; }
.dictation-progress { position: absolute; inset: 0 0 auto; height: 7px; background: #e8e9f2; }
.dictation-progress span { display: block; width: 0; height: 100%; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, var(--indigo), #7c73ff); transition: width .28s ease; }
.dictation-count { align-self: flex-end; color: var(--muted); font-size: .88rem; font-weight: 700; }
.dictation-prompt { margin: 8px 0 24px; padding: 6px 11px; border-radius: 999px; color: var(--indigo-dark); background: var(--indigo-soft); font-size: .82rem; font-weight: 800; }
.meaning-label { color: var(--muted); font-size: .85rem; font-weight: 800; }
.dictation-card h2 { margin: 10px 0; font-size: clamp(2rem, 6vw, 3.7rem); letter-spacing: -.05em; }
.dictation-answer { min-height: 68px; margin: 3px 0 10px; }
.dictation-answer strong, .dictation-answer span { display: block; }
.dictation-answer strong { color: var(--indigo); font-size: 2rem; }
.dictation-answer span { color: var(--muted); }
.round-action { width: 50px; height: 50px; border: 1px solid #d9d6ff; border-radius: 16px; background: var(--indigo-soft); color: var(--indigo); font-size: 1.25rem; }
.dictation-entry { width: min(100%, 610px); margin-top: 6px; text-align: left; }
.dictation-entry label { display: block; margin: 0 0 7px 4px; color: #4a5267; font-size: .86rem; font-weight: 800; }
.dictation-input-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 9px; }
.dictation-input-row input { min-width: 0; height: 50px; padding: 0 16px; border: 2px solid #dfe1eb; border-radius: 15px; color: var(--ink); background: white; font-size: 1.15rem; font-weight: 750; }
.dictation-input-row input:focus { border-color: var(--indigo); outline: 3px solid rgba(79,70,229,.12); }
.dictation-input-row input:disabled { color: var(--muted); background: #f3f4f8; }
.dictation-feedback { min-height: 27px; margin: 8px 4px 0; color: var(--muted); font-size: .86rem; }
.dictation-feedback.success { color: var(--success); font-weight: 800; }
.dictation-feedback.error { color: var(--danger); font-weight: 800; }
.text-btn { margin-top: 4px; padding: 7px 10px; border: 0; background: transparent; color: var(--muted); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--indigo); }
.dictation-controls { width: 100%; justify-content: center; margin-top: auto; padding-top: 28px; }
.dictation-controls .control-btn { color: var(--ink); background: #f7f7fb; border-color: var(--line); }

.voice-panel { align-self: start; padding: 24px; border-radius: var(--radius-xl); color: white; background: #202943; box-shadow: var(--shadow); }
.voice-heading { display: flex; gap: 14px; align-items: flex-start; }
.voice-heading h2 { margin: 0; font-size: 1.2rem; }
.voice-heading p { margin: 2px 0 0; color: #bbc2d7; font-size: .88rem; }
.mic-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #8b93aa; font-size: .7rem; }
.mic-icon.listening { color: #62e6c6; text-shadow: 0 0 15px #62e6c6; }
.voice-panel .secondary-btn { width: 100%; margin: 20px 0; color: white; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.1); }
.command-list { display: flex; gap: 8px; flex-wrap: wrap; }
.command-list span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #e5e8f1; background: rgba(255,255,255,.06); font-size: .8rem; }
.privacy-note { margin: 20px 0 0; color: #9fa7bd; font-size: .78rem; }

.sentence-list { display: grid; gap: 14px; }
.sentence-now-playing { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; padding: 18px 22px; border-radius: var(--radius-xl); color: white; background: linear-gradient(135deg, #4f46e5, #756cf4); box-shadow: 0 14px 35px rgba(79,70,229,.2); }
.sentence-now-playing[hidden] { display: none; }
.sentence-now-playing .pulse-dot { flex: 0 0 auto; background: #a7f3d0; animation: pulse 1.2s infinite; }
.sentence-now-playing div { min-width: 0; }
.sentence-now-playing small, .sentence-now-playing strong, .sentence-now-playing span { display: block; }
.sentence-now-playing small { margin-bottom: 3px; opacity: .78; }
.sentence-now-playing strong { font-size: clamp(1.35rem, 3.5vw, 2rem); line-height: 1.25; }
.sentence-now-playing span { margin-top: 4px; color: #e4e2ff; font-size: 1.02rem; }
.sentence-card { padding: 24px; border-radius: var(--radius-xl); background: white; border: 1px solid var(--line); box-shadow: 0 8px 25px rgba(37,42,74,.035); }
.sentence-card.current { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft), 0 12px 30px rgba(79,70,229,.12); }
.sentence-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.sentence-number { display: inline-flex; margin-bottom: 8px; color: var(--indigo); font-weight: 850; font-size: .8rem; }
.sentence-card h2 { margin: 0; font-size: clamp(1.45rem, 3.5vw, 2.15rem); letter-spacing: -.025em; }
.sentence-zh { margin: 5px 0 16px; color: var(--muted); font-size: 1.05rem; }
.sentence-controls { display: flex; gap: 8px; }
.sentence-controls button { min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: #f8f8fc; color: var(--indigo); font-weight: 800; white-space: nowrap; }
.sentence-controls button.active { color: white; background: var(--indigo); border-color: var(--indigo); }
#playAllSentences.active { background: var(--danger); }
.breakdown { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.breakdown span { padding: 6px 10px; border-radius: 9px; background: #f1f2f7; color: #4a5267; font-size: .82rem; }
.breakdown b { color: var(--ink); }

.review-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.filter-tabs { display: inline-flex; padding: 5px; border-radius: 15px; background: #e9eaf0; }
.filter-btn { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 750; }
.filter-btn.active { color: var(--ink); background: white; box-shadow: 0 3px 10px rgba(37,42,74,.08); }
.review-summary { color: var(--muted); font-size: .9rem; }
.review-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.review-grid .word-card { min-height: 140px; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; max-width: calc(100% - 30px); padding: 11px 16px; border-radius: 12px; color: white; background: #202943; box-shadow: var(--shadow); transform: translate(-50%, 120px); opacity: 0; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.editor-dialog { width: min(900px, calc(100% - 28px)); max-height: min(88vh, 880px); padding: 0; border: 0; border-radius: 24px; background: white; box-shadow: 0 26px 70px rgba(24,32,52,.25); }
.editor-dialog::backdrop { background: rgba(20,26,42,.5); backdrop-filter: blur(3px); }
.dialog-shell { padding: 26px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin: 4px 0; font-size: 1.7rem; }
.dialog-heading p { margin: 0; color: var(--muted); }
.dialog-close { width: 40px; height: 40px; border: 0; border-radius: 12px; color: var(--muted); background: #f2f3f7; font-size: 1.5rem; }
.editor-head, .editor-row { display: grid; grid-template-columns: 32px 1fr 1.35fr 1fr; gap: 8px; align-items: center; }
.editor-head { margin: 22px 0 6px; padding: 0 8px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.editor-rows { display: grid; gap: 7px; max-height: 50vh; padding: 3px; overflow: auto; }
.editor-row span { color: #969bad; text-align: center; font-weight: 800; font-size: .8rem; }
.editor-row input { min-width: 0; height: 43px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fbfbfd; }
.editor-row input:focus { background: white; border-color: var(--indigo); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; }
  .main-nav { overflow-x: auto; }
  .nav-btn { white-space: nowrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .player-card { grid-template-columns: 1fr; }
  .player-controls { justify-content: flex-start; }
  .word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dictation-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { position: static; padding: 14px 16px; flex-direction: column; gap: 12px; }
  .brand small { display: none; }
  .main-nav { width: 100%; padding-bottom: 2px; }
  .nav-btn { flex: 1 0 auto; padding: 9px 11px; font-size: .87rem; }
  .app-shell { width: min(100% - 24px, 1180px); margin-top: 14px; }
  .day-bar { align-items: stretch; padding: 16px; flex-direction: column; gap: 15px; }
  .day-title { justify-content: space-between; gap: 12px; }
  .day-title > .eyebrow { display: none; }
  .day-meter { width: 100%; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 116px; padding: 15px; }
  .stat-card strong { font-size: 1.65rem; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-top: 30px; }
  .section-heading .primary-btn, .section-heading .secondary-btn { width: 100%; }
  .heading-actions { width: 100%; }
  .heading-actions .primary-btn, .heading-actions .secondary-btn { flex: 1 1 170px; }
  .player-card { padding: 18px 15px; }
  .player-controls { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .player-controls .play-btn { grid-column: span 1; }
  .player-controls .danger { grid-column: span 1; }
  .speed-control { grid-column: span 2; }
  .control-btn span, .play-btn span { display: none; }
  .word-grid, .review-grid { grid-template-columns: 1fr; }
  .word-card { min-height: 142px; }
  .dictation-card { min-height: 430px; padding: 20px 15px; }
  .dictation-input-row { grid-template-columns: 50px minmax(0, 1fr); }
  .dictation-input-row .primary-btn { grid-column: 1 / -1; width: 100%; }
  .dictation-controls { display: grid; grid-template-columns: repeat(2, 1fr); }
  .dictation-controls .control-btn { font-size: .88rem; }
  .review-toolbar { align-items: stretch; flex-direction: column; }
  .filter-tabs { width: 100%; }
  .filter-btn { flex: 1; padding-inline: 8px; font-size: .82rem; }
  .sentence-card { padding: 19px 16px; }
  .sentence-top { flex-direction: column; }
  .sentence-controls { width: 100%; }
  .sentence-controls button { flex: 1; }
  .editor-head { display: none; }
  .editor-row { grid-template-columns: 30px 1fr 1fr; }
  .editor-row input:last-child { grid-column: 2 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
