:root {
  color-scheme: light;
  --bg: #edf5f0;
  --panel: #fbfdfb;
  --panel-soft: #e5efe9;
  --surface: #f7faf7;
  --surface-soft: #f0f6f2;
  --text: #24322d;
  --muted: #6a7972;
  --line: #cbdad2;
  --line-strong: #adc4b9;
  --accent: #2d7c68;
  --accent-strong: #1f6655;
  --accent-soft: rgba(45, 124, 104, 0.11);
  --accent-line: rgba(45, 124, 104, 0.34);
  --focus-ring: rgba(45, 124, 104, 0.16);
  --danger: #a84d49;
  --danger-soft: rgba(168, 77, 73, 0.09);
  --danger-line: rgba(168, 77, 73, 0.28);
  --ok: #24765d;
  --ok-soft: rgba(36, 118, 93, 0.09);
  --ok-line: rgba(36, 118, 93, 0.3);
  --frequent: #9a6b12;
  --frequent-soft: rgba(202, 148, 38, 0.12);
  --frequent-line: rgba(154, 107, 18, 0.34);
  --meter-bg: #cfddd5;
  --shadow: 0 14px 36px rgba(42, 65, 55, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 760px);
  gap: 16px;
  align-items: start;
  width: min(840px, calc(100vw - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  transition:
    grid-template-columns 180ms ease,
    width 180ms ease;
}

.app-shell.sidebar-open {
  grid-template-columns: 300px minmax(0, 760px);
  width: min(1100px, calc(100vw - 32px));
}

.word-sidebar,
.practice-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.word-sidebar {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 32px);
  padding: 8px;
}

.app-shell.sidebar-open .word-sidebar {
  gap: 12px;
  padding: 16px;
}

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 54px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  border-color: var(--line-strong);
  outline: none;
}

.sidebar-toggle:focus {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.toggle-icon {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.toggle-text {
  font-size: 13px;
  line-height: 1;
}

.app-shell.sidebar-open .sidebar-toggle {
  flex-direction: row;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.app-shell.sidebar-open .toggle-icon {
  color: #fff;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

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

.sidebar-head span {
  min-width: 54px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 650;
}

.list-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.list-tab {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.list-tab:hover,
.list-tab:focus {
  border-color: var(--line-strong);
  color: var(--text);
  outline: none;
}

.list-tab:focus {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.list-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 102, 85, 0.18);
}

#wordSearch {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

#wordSearch:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.word-list {
  display: grid;
  gap: 6px;
  align-content: start;
  /* The list is the sidebar's primary content, so it takes whatever height the
     collapsible panels leave. The floor keeps it from being flex-shrunk away on
     short viewports — it collapsed to 0px at 720px tall. */
  flex: 1 1 auto;
  min-height: 120px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.word-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.word-item:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.word-item:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.word-item.active {
  background: #dcebe4;
  border-color: var(--accent);
  border-width: 2px;
  color: var(--accent-strong);
  font-weight: 750;
  box-shadow: inset 4px 0 0 var(--accent);
}

.word-item.mistake {
  color: var(--danger);
}

.word-item.mastered {
  color: var(--ok);
}

.word-item.frequent:not(.active) {
  border-color: var(--frequent-line);
  background: var(--frequent-soft);
}

.word-number {
  flex: 0 0 38px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.word-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-frequency {
  flex: 0 0 auto;
  color: var(--frequent);
  font-size: 15px;
  line-height: 1;
}

.group-back {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.group-back:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.group-back:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.group-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.group-item:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

.group-item:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.group-item.mastered .group-badge {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  color: var(--ok);
}

.group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.group-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.group-badge {
  flex: 0 0 auto;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.group-words {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-list {
  min-height: 42px;
  padding: 12px;
  color: var(--muted);
}

.admin-panel {
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* These panels are set-once configuration; collapsed by default they hand the
   sidebar's vertical space back to the word list. */
summary.admin-head {
  cursor: pointer;
  list-style: none;
}

summary.admin-head::-webkit-details-marker {
  display: none;
}

summary.admin-head::after {
  flex: 0 0 auto;
  color: var(--muted);
  content: "▸";
  font-size: 12px;
  transition: transform 120ms ease;
}

details[open] > summary.admin-head::after {
  transform: rotate(90deg);
}

summary.admin-head:hover h3 {
  color: var(--accent-strong);
}

summary.admin-head:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.admin-status {
  flex: 0 0 auto;
  min-width: 60px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.admin-status.ready {
  border-color: var(--ok-line);
  background: var(--ok-soft);
  color: var(--ok);
}

.admin-status.offline,
.admin-status.error {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-form {
  display: grid;
  gap: 7px;
}

.admin-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  cursor: pointer;
  user-select: none;
}

.admin-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.admin-option span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

#adminTokenInput,
#learnerTokenInput,
#newWordInput,
#manualMeaningInput {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

#adminTokenInput:focus,
#learnerTokenInput:focus,
#newWordInput:focus,
#manualMeaningInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

#addWordBtn {
  min-width: 64px;
  padding: 0 12px;
}

#syncNowBtn {
  min-width: 64px;
  padding: 0 12px;
}

.delete-panel {
  display: grid;
  gap: 8px;
}

.danger-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  cursor: pointer;
  font-weight: 750;
}

.danger-btn:hover,
.danger-btn:focus {
  border-color: var(--danger);
  outline: none;
}

.danger-btn:focus {
  box-shadow: 0 0 0 3px rgba(168, 77, 73, 0.16);
}

.danger-btn:disabled,
.secondary-btn:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.confirm-box {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  background: var(--danger-soft);
}

.confirm-box p {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.confirm-actions .danger-btn,
.confirm-actions .secondary-btn {
  min-width: 0;
  padding: 0 10px;
}

.admin-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-message.success {
  color: var(--ok);
}

.admin-message.error {
  color: var(--danger);
}

.practice-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
}

.topbar,
.audio-row,
.answer-form {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
}

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

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 16px;
}

.jump-form {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.2;
}

#jumpInput {
  width: 56px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: center;
  outline: none;
}

#jumpInput:hover {
  border-color: var(--line);
  background: var(--surface);
}

#jumpInput:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--focus-ring);
  color: var(--text);
}

#jumpInput::-webkit-outer-spin-button,
#jumpInput::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.scoreboard {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scoreboard span,
.score-action {
  min-width: 76px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.score-action {
  cursor: pointer;
  font-weight: 650;
}

.score-action:hover,
.score-action:focus {
  border-color: var(--line-strong);
  outline: none;
}

.score-action:focus {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.score-action.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(31, 102, 85, 0.2);
}

.scoreboard strong {
  color: var(--text);
}

.score-action.active strong {
  color: #fff;
}

.listen-surface {
  display: grid;
  gap: 22px;
  align-content: center;
  min-height: 260px;
  padding: 28px;
  background: var(--panel-soft);
  border-radius: 8px;
}

.meter {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: var(--meter-bg);
  border-radius: 999px;
}

#progressBar {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.audio-row {
  justify-content: center;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.frequency-btn,
.icon-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.primary-btn {
  min-width: 136px;
  min-height: 54px;
  padding: 0 26px;
  background: var(--accent);
  color: #fbfffc;
  font-weight: 700;
}

.secondary-btn {
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  font-weight: 650;
}

.frequency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface);
  border-color: var(--frequent-line);
  color: var(--frequent);
  font-weight: 700;
}

.frequency-btn.active {
  background: var(--frequent-soft);
  border-color: var(--frequent);
}

.frequency-icon {
  font-size: 18px;
  line-height: 1;
}

.icon-btn {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.primary-btn:hover,
.secondary-btn:hover,
.frequency-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:hover {
  background: var(--accent-strong);
}

.primary-btn.loading,
.primary-btn:disabled,
.secondary-btn:disabled,
.frequency-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.secondary-btn:hover,
.frequency-btn:hover,
.icon-btn:hover {
  border-color: var(--line-strong);
}

.answer-form {
  gap: 10px;
}

#answerInput {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

#answerInput {
  min-height: 52px;
  padding: 0 16px;
  font-size: 18px;
}

#answerInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

#checkBtn {
  flex: 0 0 72px;
  min-width: 72px;
  white-space: nowrap;
}

.feedback {
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.feedback.correct {
  border-color: var(--ok-line);
  background: var(--ok-soft);
  color: var(--ok);
}

.feedback.wrong {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: var(--danger);
}

.feedback strong {
  color: inherit;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.detail-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

.example-panel {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.example-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.example-panel p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.example-panel p + p {
  margin-top: 6px;
  color: var(--muted);
}

.relation-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.relation-row > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relation-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.relation-chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.relation-chip:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}

.relation-chip.mastered {
  border-color: var(--ok-line);
  background: var(--ok-soft);
  color: var(--ok);
}

.relation-chip.mistake {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: var(--danger);
}

.relation-chip.frequent {
  border-color: var(--frequent-line);
  box-shadow: inset 0 0 0 1px var(--frequent-soft);
}

.frequency-btn:focus {
  border-color: var(--frequent);
  box-shadow: 0 0 0 3px var(--frequent-soft);
  outline: none;
}

.word-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: min(100vw - 20px, 720px);
    margin: 10px auto;
  }

  .app-shell.sidebar-open {
    grid-template-columns: 1fr;
    width: min(100vw - 20px, 720px);
  }

  .word-sidebar {
    position: static;
    max-height: none;
    padding: 8px;
  }

  .app-shell.sidebar-open .word-sidebar {
    max-height: none;
    padding: 12px;
  }

  .sidebar-toggle,
  .app-shell.sidebar-open .sidebar-toggle {
    flex-direction: row;
    justify-content: center;
    min-height: 44px;
  }

  .app-shell.sidebar-open .word-list {
    /* Stacked layout: the sidebar is unbounded, so the list needs its own cap.
       Raised because the collapsed panels no longer compete for the space. */
    max-height: min(46vh, 360px);
  }

  .practice-panel {
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .listen-surface {
    min-height: 220px;
    padding: 20px;
  }

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

}

@media (max-width: 480px) {
  .app-shell {
    width: min(100vw - 16px, 420px);
    min-height: calc(100vh - 16px);
    margin: 8px auto;
    gap: 10px;
  }

  .app-shell.sidebar-open {
    width: min(100vw - 16px, 420px);
  }

  .word-sidebar {
    padding: 6px;
  }

  .app-shell.sidebar-open .word-sidebar {
    max-height: none;
    padding: 10px;
  }

  .app-shell.sidebar-open .word-list {
    max-height: min(42vh, 300px);
  }

  .sidebar-toggle,
  .app-shell.sidebar-open .sidebar-toggle {
    min-height: 42px;
    padding: 0 10px;
  }

  .list-tab {
    min-height: 32px;
    padding: 0 4px;
    font-size: 13px;
  }

  #wordSearch {
    min-height: 40px;
  }

  .word-item {
    min-height: 40px;
    padding: 0 8px;
  }

  .relation-panel {
    padding: 12px;
  }

  .practice-panel {
    gap: 14px;
    padding: 14px;
  }

  .topbar {
    gap: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .jump-form {
    margin-top: 4px;
  }

  .scoreboard {
    gap: 8px;
  }

  .scoreboard span,
  .score-action {
    min-width: 0;
    flex: 1 1 0;
    padding: 8px 10px;
  }

  .listen-surface {
    min-height: 184px;
    gap: 18px;
    padding: 14px;
  }

  .meter {
    height: 8px;
  }

  .audio-row {
    gap: 7px;
  }

  .primary-btn {
    min-width: 92px;
    min-height: 46px;
    padding: 0 16px;
  }

  .secondary-btn {
    min-height: 42px;
    padding: 0 13px;
  }

  .frequency-btn {
    min-height: 42px;
    padding: 0 13px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  #answerInput {
    min-height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }

  #checkBtn {
    flex-basis: 64px;
    min-width: 64px;
    padding: 0 12px;
  }

  .feedback {
    min-height: 54px;
    padding: 12px;
  }

  .detail-grid {
    gap: 8px;
  }

  .detail-grid div {
    min-height: 66px;
    padding: 10px;
  }
}

@media (max-width: 340px) {
  .app-shell {
    width: calc(100vw - 12px);
    margin: 6px auto;
  }

  .practice-panel {
    padding: 12px;
  }

  .listen-surface {
    padding: 12px;
  }

  .audio-row {
    gap: 6px;
  }

  .primary-btn {
    min-width: 84px;
    padding: 0 12px;
  }

  .secondary-btn {
    padding: 0 10px;
  }

  .frequency-btn {
    padding: 0 10px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }
}
