:root {
  color-scheme: dark;
  --bg: #121619;
  --card: #1b2024;
  --line: #343c41;
  --ink: #edf2f4;
  --muted: #a1afb6;
  --blue: #a7d4ff;
  --accent: #a9dbf7;
  --focus: #9ad1ff;
  font-family: Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}

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

button,select {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,a:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

button {
  transition: background-color .16s,color .16s,border-color .16s;
}

button:disabled {
  cursor: default;
  opacity: .4;
}

button svg,i svg {
  width: 19px;
  height: 19px;
  display: block;
}

i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.topbar {
  height: 68px;
  background: #191e21;
  border-bottom: 1px solid #32393e;
}

.topinner {
  max-width: 1370px;
  padding: 0 clamp(22px,4vw,72px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 19px;
}

.brand {
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.series-logo { display: block; flex-shrink: 0; width: 46px; height: 46px; padding: 2px; object-fit: contain; background: #f1f5f4; border-radius: 9px; }
.brand-name { display: grid; gap: 2px; white-space: nowrap; line-height: 1.25; }
.brand-name > span { color: #b1bec5; font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.brand-name strong { color: #edf2f4; font-size: 18px; font-weight: 750; letter-spacing: .04em; }

.divider {
  background: var(--line);
  height: 17px;
  width: 1px;
}

.wordmark,.topicEn,.kicker,.progressNums strong,.counter,.tiny,.footBrand,.subtle,.keyhints kbd {
  font-family: "Segoe UI",Arial,sans-serif;
}

.wordmark { font-size: 15px; color: #c2d1d8; white-space: nowrap; }

.topinner nav {
  display: flex;
  align-self: stretch;
  gap: 4px;
  margin-left: clamp(6px,5vw,70px);
}

.navitem {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 3px 17px 0;
  font-size: 14px;
  color: #9caab1;
}

.navitem.active {
  color: #dbedfa;
  border-bottom-color: #b8dbf3;
}

.navitem:hover {
  color: #fff;
  background: #272f33;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  color: #becbd1;
  white-space: nowrap;
}

.statusdot {
  height: 7px;
  width: 7px;
  background: #9ac4aa;
  border-radius: 50%;
}

.shell {
  max-width: 1308px;
  margin: auto;
  padding: 34px clamp(22px,4vw,64px) 16px;
}

.pagehead,.sidepanel header,.analysis>header,.stageMeta,.stageBottom,.answerHead,.progressFoot,.toolsrow,.actions,.progressNums,footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pagehead {
  margin-bottom: 23px;
}

.kicker {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  color: #a5c5d7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.livebar {
  width: 18px;
  height: 2px;
  background: #9ccbe5;
}

.pagehead h1 {
  font-weight: 650;
  letter-spacing: .025em;
  font-size: clamp(27px,3vw,38px);
  line-height: 1.17;
  margin: 8px 0 0;
}

button.ghost,.secondary,.navarrows button,.speed {
  border: 1px solid #465055;
  background: transparent;
  color: #c8d3da;
  border-radius: 7px;
}

.ghost,.primary,.secondary,.textBtn,.progressFoot button,.manageLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sm {
  padding: 8px 12px;
  font-size: 13px;
}

.sm svg {
  width: 15px;
  height: 15px;
}

.ghost:hover,.navarrows button:hover,.secondary:hover {
  background: #303a40;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(235px,27%);
  gap: 20px;
  align-items: start;
}

.workbench,.sidepanel,.analysis {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.workbench {
  overflow: hidden;
}

.modes {
  display: flex;
  align-items: stretch;
  height: 54px;
  padding: 0 19px;
  border-bottom: 1px solid #323c41;
  gap: 10px;
}

.mode {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  color: #98a7b0;
  font-size: 14px;
  font-weight: 550;
}

.mode svg {
  width: 16px;
  height: 16px;
}

.mode.active {
  color: #c5e4fb;
  border-bottom-color: #a1d1f2;
}

.mode:hover {
  background: #272e31;
}

.stage {
  position: relative;
  isolation: isolate;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px 25px 16px;
  overflow: hidden;
  background: #253e43;
}

.photobg,.photobg::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.photobg {
  background-position: center 52%;
  background-size: cover;
}

.photobg::after {
  content: "";
  background: linear-gradient(90deg,rgba(7,21,25,.9) 0%,rgba(7,21,25,.72) 32%,rgba(8,23,26,.16) 76%),linear-gradient(0deg,rgba(9,21,25,.44),transparent 50%);
  z-index: 0;
}

.stageMeta,.stageBottom {
  color: #e6eef0;
}

.sceneUnit {
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #192b30aa;
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #dae7ed40;
}

.sceneUnit:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dcecf0;
}

.star {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #17262f99;
  color: #f4f7fa;
  border: 1px solid #d7e5f14d;
}

.star[aria-pressed=true] {
  background: #ebc77b;
  color: #312614;
}

.star[aria-pressed=true] svg {
  fill: currentColor;
}

.cue {
  margin: 24px 0 18px;
  max-width: 86%;
}

.cueLabel {
  font-size: 11px;
  color: #d4e8eb;
  display: block;
  margin: 0 0 8px;
  letter-spacing: .09em;
}

.cue h2 {
  font-size: clamp(22px,2.4vw,32px);
  line-height: 1.45;
  margin: 0;
  font-weight: 600;
  letter-spacing: .018em;
  color: white;
  text-wrap: pretty;
  text-shadow: 0 1px 9px #13262a90;
}

.topicEn {
  font-size: 12px;
  letter-spacing: .05em;
  color: #d1dde0;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #ecf2f4;
}

.counter b {
  font-size: 22px;
  font-weight: 600;
}

.counter i {
  font-size: 14px;
  font-style: normal;
  color: #c6d2d7;
}

.exercise {
  padding: 22px 25px 20px;
}

.answerHead {
  gap: 10px;
}

.answerHead label {
  font-size: 14px;
  font-weight: 600;
}

.subtle {
  font-size: 12px;
  color: #abb7be;
  font-variant-numeric: tabular-nums;
}

.wordslots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 17px 0 13px;
  min-height: 25px;
}

.slot {
  font: 500 17px/1.25 "Segoe UI",sans-serif;
  text-align: center;
  color: #d7e3ed;
  min-width: 1.3ch;
  border-bottom: 2px solid #5d686e;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  min-height: 24px;
  transition: border-color .15s;
}

.slot.current {
  border-color: #acd9f5;
}

.slot.miss {
  border-color: #f28d84;
  color: #ffb7ad;
}

.slot.ok {
  border-color: #90b8a0;
}

.exercise textarea {
  resize: vertical;
  min-height: 48px;
  width: 100%;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid #424c52;
  background: #161b1f;
  border-radius: 8px;
  color: #f4f8fb;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 17px;
}

.exercise textarea::placeholder {
  font-size: 14px;
  color: #839198;
}

.actions {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.actions #submit {
  margin-left: auto;
}

.primary {
  border: 1px solid #c5e6ff;
  background: #b1d8f3;
  color: #182b38;
  font-weight: 650;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 14px;
}

.primary:hover {
  background: #d0eaff;
}

.secondary {
  padding: 9px 12px;
  font-size: 13px;
}

.secondary svg {
  width: 17px;
  height: 17px;
}

.secondary.playing {
  color: #c5e7fb;
  border-color: #89b9d7;
}

.speed {
  height: 37px;
  background: #20262b;
  font-size: 12px;
  padding: 0 5px;
}

.toolsrow {
  border-top: 1px solid #333c41;
  padding: 11px 25px;
  gap: 12px;
}

.textBtn,.progressFoot button,.manageLink {
  background: none;
  border: 0;
  color: #b6d9ef;
  font-size: 13px;
}

.textBtn {
  padding: 4px 0;
}

.textBtn svg {
  width: 16px;
  height: 16px;
}

kbd {
  border: 1px solid #465157;
  border-bottom-width: 2px;
  color: #aebbc2;
  border-radius: 4px;
  padding: 1px 5px;
  font: 11px "Segoe UI",sans-serif;
}

.navarrows {
  display: flex;
  gap: 7px;
}

.navarrows button {
  width: 31px;
  height: 29px;
  display: grid;
  place-items: center;
}

.navarrows svg {
  width: 15px;
  height: 15px;
}

.sidepanel {
  padding: 20px 18px 12px;
  margin-bottom: 16px;
}

.sidepanel header h2,.analysis h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.sidepanel header>i {
  color: #90a1ab;
}

.sidepanel header svg {
  width: 17px;
  height: 17px;
}

.unitlist {
  display: grid;
  gap: 6px;
  margin: 15px -7px 10px;
}

.unit {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  text-align: left;
  width: 100%;
  color: #c3cdd3;
}

.unit:hover {
  background: #262e33;
}

.unit.current {
  background: #29343a;
  border-color: #3e505c;
}

.unitbadge {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--uInk,#aec9d9);
  background: var(--uBg,#2c3c47);
}

.unitbadge svg {
  width: 18px;
  height: 18px;
}

.uname {
  font-size: 14px;
  flex: 1;
}

.unitcount {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #aab8be;
}

.manageLink {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 13px 0 2px;
  justify-content: space-between;
}

.manageLink svg,.progressFoot svg {
  width: 14px;
  height: 14px;
}

.tiny {
  font-size: 11px;
  color: #a5b6c0;
}

.progressPanel {
  padding-bottom: 17px;
}

.progressNums {
  justify-content: flex-start;
  align-items: baseline;
  gap: 7px;
  margin-top: 10px;
}

.progressNums strong {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
}

.progressNums span {
  font-size: 13px;
  color: #a2aeb6;
}

.meter {
  display: flex;
  gap: 4px;
  margin: 13px 0 10px;
}

.meter i {
  height: 5px;
  flex: 1;
  border-radius: 5px;
  background: #39434a;
}

.meter i.hit {
  background: #a9d3ec;
}

.progressFoot {
  color: var(--muted);
  font-size: 12px;
}

.progressFoot button {
  font-size: 12px;
  gap: 2px;
}

.keyhints {
  display: flex;
  justify-content: center;
  gap: 15px;
  color: #84939b;
  font-size: 11px;
}

.keyhints kbd {
  font-size: 10px;
}

.feedback {
  font-size: 13px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #302a28;
  color: #edc0b3;
  line-height: 1.7;
}

.feedback.good {
  background: #22342b;
  color: #b8dfc5;
}

.diff {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.diff span {
  border: 1px solid #705348;
  border-radius: 4px;
  padding: 0 5px;
  overflow-wrap: anywhere;
}

.analysis {
  margin-top: 19px;
  padding: 22px 25px;
  scroll-margin: 12px;
}

.analysis .kicker {
  font-size: 9px;
  margin-bottom: 5px;
}

.annotation {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 9px;
  row-gap: 17px;
  margin: 24px 0 15px;
}

.phrase {
  display: inline-grid;
  max-width: 100%;
  color: var(--role);
  text-align: left;
}

.phraseWords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  border-bottom: 3px solid var(--role);
  padding-bottom: 6px;
}

.annotWord {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
}

.annotWord small,.annotWord em {
  font: 12px/1.3 "Segoe UI","Arial",sans-serif;
  color: #b9c6cc;
}

.annotWord em {
  font-size: 10px;
  color: #9daab1;
}

.annotWord strong {
  font: 550 21px/1.4 "Segoe UI",sans-serif;
  color: #f0f4f6;
}

.phraseLabel {
  font-size: 12px;
  font-weight: 650;
  margin-top: 5px;
}

.gloss {
  color: #b5c2c9;
  font-size: 12px;
  padding-top: 2px;
}

.translation {
  color: #c3d2d8;
  font-size: 16px;
  line-height: 1.6;
}

.ipaLine {
  font-size: 15px;
  color: #b8c8ce;
  margin-bottom: 8px;
}

.pattern {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.pattern span {
  color: #9daeb6;
  font-size: 12px;
  white-space: nowrap;
}

.pattern strong {
  font: 500 16px "Segoe UI",sans-serif;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 9px;
  margin-top: 14px;
}

.notes p {
  margin: 0;
  color: #a7b6be;
  font-size: 12px;
  line-height: 1.65;
}

.notes b {
  color: var(--role);
  margin-right: 5px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

footer {
  border-top: 1px solid #2e363b;
  color: #92a0a8;
  font-size: 11px;
  margin-top: 26px;
  padding: 16px 1px;
}

.footBrand b {
  margin: 0 4px;
  color: #55636d;
}

#empty {
  text-align: center;
  padding: 50px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

#empty p {
  color: #b3c3cb;
}

#toast {
  position: fixed;
  z-index: 1100;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 17px;
  background: #d5e6ef;
  border: 1px solid #f2f8fa;
  color: #19272e;
  border-radius: 8px;
  font-size: 13px;
  max-width: min(90vw,560px);
  box-shadow: 0 3px 22px #080b0e80;
}

.focused .topbar,.focused .layout aside,.focused footer,.focused .pagehead .kicker {
  display: none;
}

.focused .shell {
  max-width: 960px;
  padding-top: 18px;
}

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

.focused .pagehead {
  margin-bottom: 13px;
}

.focused .pagehead h1 {
  font-size: 20px;
}

.focused .stage {
  min-height: 29vh;
}

.copy-audio {
  margin: 0 24px 14px;
  display: flex;
  gap: 8px;
}

.reviewpill {
  color: #efd5ac;
}

body:has(dialog[open]) {
  overflow: hidden;
}

[hidden] {
  display: none!important;
}
@media(min-width:1500px) {
  .shell {
    padding-top: 48px;
  }
  .stage {
    min-height: 255px;
  }
  .exercise {
    padding: 26px 29px;
  }
  .pagehead {
    margin-bottom: 28px;
  }
}
@media(max-width:940px) {
  .topinner {
    gap: 13px;
  }
  .topinner nav {
    margin-left: 0;
  }
  .wordmark,.divider {
    display: none;
  }
  .shell {
    padding: 24px 18px 10px;
  }
  .stage {
    padding: 15px 18px;
  }
  .layout {
    gap: 12px;
    grid-template-columns: minmax(0,1fr) 225px;
  }
  .exercise {
    padding: 18px;
  }
  .modes {
    padding: 0 8px;
    gap: 4px;
  }
  .mode {
    padding: 0 10px;
  }
}
@media(max-width:730px) {
  .topbar {
    height: 57px;
  }
  .topinner {
    padding: 0 13px;
    gap: 9px;
  }
  .brand {
    font-size: 18px;
    gap: 7px;
  }
  .navitem {
    font-size: 12px;
    padding: 0 7px;
  }
  .account {
    font-size: 10px;
    gap: 4px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .layout aside {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    gap: 9px;
  }
  .keyhints {
    display: none;
  }
  .sidepanel {
    margin: 0;
    padding: 13px 11px;
  }
  .unit {
    padding: 5px;
    gap: 5px;
  }
  .unitbadge {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
  .uname {
    font-size: 12px;
  }
  .unitcount {
    font-size: 10px;
  }
  .unitlist {
    gap: 2px;
    margin: 9px -4px;
  }
  .pagehead {
    margin-bottom: 14px;
  }
  .shell {
    padding: 19px 12px 8px;
  }
  .stage {
    min-height: 198px;
  }
  .cue {
    max-width: 100%;
  }
  .exercise {
    padding: 16px;
  }
  .toolsrow {
    padding: 9px 16px;
  }
  .modes {
    height: 46px;
    gap: 0;
  }
  .mode {
    flex: 1;
    padding: 0 4px;
    font-size: 13px;
  }
  .mode svg {
    width: 14px;
  }
  .analysis {
    padding: 15px;
  }
  .wordslots {
    gap: 6px;
  }
  .slot {
    font-size: 15px;
  }
  .pagehead h1 {
    font-size: 27px;
  }
  .keyhints {
    display: none;
  }
  .pattern {
    flex-wrap: wrap;
    gap: 4px;
  }
  .keyhints+* {
    display: none;
  }
  .account {
    margin-left: auto;
  }
  .cue h2 {
    font-size: 23px;
  }
  .actions {
    gap: 5px;
  }
  .primary {
    padding: 10px 11px;
  }
  .account .statusdot {
    width: 5px;
    height: 5px;
  }
}
@media(max-width:435px) {
  .wordmark,.account .statusdot {
    display: none;
  }
  .topinner nav {
    gap: 0;
  }
  .actions #submit {
    padding: 9px;
  }
  .stage {
    min-height: 188px;
  }
  .modes {
    padding: 0 4px;
  }
  .wordslots {
    margin: 10px 0;
  }
  .cue {
    margin: 15px 0;
  }
  .footBrand {
    font-size: 10px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}

.answerOptions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.answerOptions button {
  background: transparent;
  border: 0;
  border-bottom: 1px dotted #6c7d87;
  color: #b4c4ce;
  padding: 2px 0;
  font-size: 11px;
}

.grid-entry {
  position: relative;
}

.grid-entry .wordslots {
  min-height: 77px;
  padding: 15px 12px;
  border: 1px solid #46555e;
  border-radius: 8px;
  align-content: center;
  align-items: flex-end;
  background: #161c20;
  cursor: text;
  margin: 13px 0 17px;
}

.grid-entry .wordslots .slot {
  font-size: 20px;
  min-height: 30px;
  line-height: 1.3;
  position: relative;
}

.grid-entry:has(#entry:focus) .wordslots {
  outline: 2px solid #8dbbda;
  outline-offset: 1px;
}

.grid-entry:has(#entry:focus) .slot.current::after {
  content: "";
  display: inline-block;
  height: .88em;
  width: 1.5px;
  vertical-align: baseline;
  background: #c7e7ff;
  animation: caret 1s step-end infinite;
}
@keyframes caret {
  0%,45% {
    opacity: 1;
  }
  50%,95% {
    opacity: 0;
  }
}

.grid-entry #entry {
  position: absolute;
  left: 28px;
  bottom: 68px;
  min-height: 1px;
  height: 1px;
  width: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  resize: none;
  opacity: 0;
}

#wordSlots.blank::before {
  content: "";
}

#wordSlots.blank::after {
  content: "点击词格开始输入";
  width: 100%;
  color: #98a7b1;
  font-size: 11px;
  margin-top: 1px;
}

#exercise.copy-controls .answerHead, #exercise.copy-controls #wordSlots, #exercise.copy-controls #entry, #exercise.copy-controls #feedback, #exercise.copy-controls #submit {
  display: none!important;
}

#exercise.copy-controls {
  padding: 4px 24px 12px;
}

#wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  opacity: .9;
  max-width: 120px;
  overflow: hidden;
}

#wave i {
  flex: 0 1 2px;
  width: 2px;
  min-width: 1px;
  background: #55666f;
  border-radius: 3px;
}

#wave i.on {
  background: #b1d8f3;
}

.reviewDialog {
  color: #e8f0f3;
  background: #1d2429;
  width: min(540px,92vw);
  border: 1px solid #4a5962;
  border-radius: 12px;
  padding: 22px;
}

.reviewDialog::backdrop {
  background: rgba(5,10,14,.76);
}

.reviewDialog header,.reviewTabs,.reviewRow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.reviewDialog h2 {
  margin: 0;
  font-size: 21px;
}

.reviewDialog header {
  justify-content: space-between;
}

.reviewTabs {
  margin: 15px 0;
}

.reviewTabs button[aria-pressed=true] {
  background: #31434f;
  color: #d6edfc;
}

.reviewBody {
  max-height: 54vh;
  overflow: auto;
}

.reviewInfo {
  color: #a6b5be;
  font-size: 13px;
}

.reviewRow {
  text-align: left;
  color: #f1f5f6;
  background: transparent;
  border: 0;
  border-top: 1px solid #3c4851;
  padding: 12px 0;
  width: 100%;
}

.reviewRow small {
  margin-left: auto;
  flex-shrink: 0;
  color: #a9bec7;
}

.finishReview {
  margin-left: 8px;
}

#saveStatus[tabindex] {
  cursor: pointer;
  text-decoration: underline dotted;
}
@media(max-width:500px) {
  #wave {
    display: none;
  }
  .grid-entry .wordslots {
    gap: 6px;
  }
  .grid-entry .wordslots .slot {
    font-size: 18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .grid-entry:has(#entry:focus) .slot.current::after {
    animation: none;
  }
}

/* Keep the analysis next to the typing area, including at phone widths. */
.workbench .inline-analysis {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  padding: 16px 24px 20px;
  background: #20282d;
}
.inline-analysis header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-analysis header h2 { margin-right: auto; }
.notes-choice, .auto-control { display: inline-flex; align-items: center; gap: 6px; color: #bed0da; font-size: 12px; }
.notes-choice select { border: 1px solid #4e626e; padding: 5px; border-radius: 5px; background: #20282d; color: #e0edf4; }
.auto-control { cursor: pointer; }
.auto-control input { accent-color: #b1d8f3; }
.unlock-note, .practice-summary { font-size: 12px; color: #b3c6d0; line-height: 1.45; margin: 9px 0 0; }
.inline-analysis .annotation { margin: 14px 0; gap: 12px; }
.original-comparison { margin: 0 0 12px; text-align: left; }
.original-comparison summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.original-comparison .original-answer { font-weight: 600; }
.structure-chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 5px 2px; border-bottom: 2px solid var(--role); }
.structure-chip strong { font-size: 14px; color: var(--role); }
.structure-chip small { color: var(--muted); font-size: 11px; }
@media(max-width:730px) {
 .layout aside #courseHost { grid-column: 1 / -1; }
 .workbench .inline-analysis { padding: 15px; }
 .inline-analysis header .ghost kbd { display: none; }
}
.progress-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 730px) {
  .series-logo { width: 36px; height: 36px; }
  .brand-name strong { font-size: 15px; }
  .brand-name > span { font-size: 10px; }
}
@media (max-width: 520px) {
  .topbar { height: auto; }
  .topinner { flex-wrap: wrap; padding-top: 10px; }
  .topinner nav { order: 3; width: 100%; height: 42px; justify-content: center; }
  .topinner .account { margin-left: auto; }
}
