:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
  color: #243d34;
  background: #f4f5f1;
  font-synthesis: none;
  --green: #173e33;
  --lime: #dcf49d;
  --muted: #7e8982;
  --border: #e3e7df;
}
.source-label {
  text-align: center;
  color: #aac298;
  font-size: 9px;
  line-height: 1.7;
  margin: 6px 0 0;
}
.relocation-notice {
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid #c6d6ac;
  border-radius: 12px;
  background: #eef5e2;
}
.relocation-notice h2 {
  font-size: 17px;
  line-height: 1.5;
}
.relocation-notice p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.9;
  color: #6f805f;
}
.relocation-notice > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.relocation-notice a {
  text-decoration: none;
}
.source-label a {
  color: inherit;
  text-underline-offset: 3px;
}
.ipa {
  color: #a3bc92;
  font-size: 12px;
  margin-top: 10px;
}
.meaning-language {
  font-size: 9px;
  color: #d2e5bc;
}
.word-meaning {
  max-width: 100%;
  line-height: 1.8;
}
.source-panel table {
  min-width: 0;
  margin-top: 20px;
}
.source-panel td,
.source-panel th {
  padding: 12px 8px;
}
.source-entry {
  margin-top: 24px;
  border-top: 1px solid #e8ecdf;
  padding-top: 20px;
}
.source-entry h3 {
  font-size: 13px;
  line-height: 1.7;
}
.source-entry p {
  font-size: 11px;
  line-height: 1.9;
  color: #879579;
  margin-top: 8px;
}
.source-entry small,
.license-link {
  display: block;
  font-size: 9px;
  line-height: 1.8;
  color: #98a68b;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
audio:focus-visible {
  outline: 3px solid #78a663;
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
button,
input,
select {
  border-radius: 8px;
}
button {
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover:enabled {
  filter: brightness(0.97);
}
button:active:enabled {
  transform: translateY(1px);
}
#app {
  min-height: 100vh;
}
.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 35px 22px 20px;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 0 0 58px 5px;
}
.brand-light {
  font-weight: 350;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green);
  color: var(--lime);
}
.brand-icon svg {
  width: 26px;
  height: 26px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 5px;
  font-weight: 600;
  color: #819085;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #98a299;
  font-weight: 700;
  margin: 0 0 18px 15px;
}
nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: #7d8980;
  text-align: left;
  padding: 15px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-item.active {
  background: #edf3e6;
  color: var(--green);
}
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #517047;
  margin-left: auto;
}
.sidebar-tip {
  margin: auto 5px 32px;
  padding: 22px 18px 12px;
  background: #f7f8f2;
  border: 1px solid #e9ecdf;
  border-radius: 12px;
}
.tip-icon {
  color: #7b9658;
}
.sidebar-tip h3 {
  font-size: 13px;
  margin: 14px 0 9px;
  letter-spacing: -0.4px;
}
.sidebar-tip p {
  font-size: 11px;
  line-height: 1.9;
  color: #89917d;
}
.tip-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 45px;
  margin-top: 15px;
  color: #bbcba6;
}
.bar {
  display: inline-block;
  width: 4px;
  border-radius: 4px;
  background: currentColor;
}
.bar-0 {
  height: 8px;
}
.bar-1 {
  height: 18px;
}
.bar-2 {
  height: 30px;
}
.bar-3 {
  height: 42px;
}
.bar-4 {
  height: 22px;
}
.bar-5 {
  height: 13px;
}
.bar-6 {
  height: 35px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 22px 2px 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0e7d8;
  font-size: 14px;
  font-weight: 650;
}
.profile strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.profile small {
  display: block;
  color: #9aa197;
  font-size: 9px;
  margin-top: 5px;
}
.profile-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: #8fa479;
  border-radius: 50%;
}
main {
  margin-left: 244px;
  padding: 45px 48px 20px;
  max-width: 1740px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
  gap: 15px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #899386;
  display: block;
}
.page-header h1 {
  font-size: 29px;
  letter-spacing: -1.3px;
  font-weight: 650;
  margin: 13px 0 10px;
}
.page-header p {
  font-size: 12px;
  color: #899084;
  line-height: 1.7;
  word-break: keep-all;
}
.private-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 13px;
  color: #7e887c;
  background: #f9faf6;
}
.private-badge svg {
  width: 14px;
  height: 14px;
}
.online-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex-shrink: 0;
  background: #7e9b5d;
  border-radius: 50%;
}
.online-dot.dim {
  background: #aaad9f;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 25px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 23px 21px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.metric-icon {
  display: grid;
  place-items: center;
  background: #f3f6ed;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  color: #729366;
}
.metric div > span {
  display: block;
  font-size: 10px;
  color: #879083;
  white-space: nowrap;
}
.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
}
.metric strong small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 6px;
  color: #a2aa9b;
}
.setup-card {
  padding: 25px 28px 16px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 29px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-heading h2,
.panel h2 {
  font-size: 17px;
  letter-spacing: -0.6px;
  font-weight: 650;
  margin-top: 8px;
}
.text-badge {
  font-size: 10px;
  padding: 7px 10px;
  border: 1px solid #e7eadf;
  border-radius: 6px;
  color: #8d987f;
  white-space: nowrap;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.level-button {
  position: relative;
  padding: 15px 15px 14px;
  background: #fafbf7;
  border: 1px solid #e9ece4;
  border-radius: 9px;
  text-align: left;
  min-height: 76px;
}
.level-button > span {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.level-button sup {
  font-size: 10px;
  margin-left: 3px;
}
.level-button small {
  display: block;
  font-size: 9px;
  color: #949c8b;
  margin-top: 6px;
  line-height: 1.5;
}
.level-button svg {
  position: absolute;
  right: 12px;
  top: 18px;
  width: 15px;
  height: 15px;
}
.level-button.selected {
  background: #f0f5e5;
  border-color: #9caf7e;
  color: #24442e;
}
.level-button.selected small {
  color: #738561;
}
.setup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
}
.setup-footer p {
  font-size: 11px;
  color: #819077;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.setup-footer p > span {
  font-size: 10px;
  color: #b3bba7;
  margin: 0 4px;
}
.setup-footer p strong {
  font-size: 12px;
  color: #4d6342;
  font-weight: 600;
}
.setup-footer p svg {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  line-height: 1.5;
  white-space: nowrap;
}
.button.primary {
  background: var(--green);
  color: #eff6e5;
  min-width: 158px;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button.subtle {
  border: 1px solid var(--border);
  background: #fafbf7;
  color: #5a7254;
}
.fineprint {
  font-size: 10px;
  color: #9ba290;
  line-height: 1.9;
  margin-top: 14px;
  word-break: keep-all;
}
.fineprint.center {
  text-align: center;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 15px;
  gap: 10px;
}
.section-label h2 {
  font-size: 16px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.section-label > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #929d88;
  font-size: 10px;
}
.section-label svg {
  width: 13px;
  height: 13px;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}
.player-card {
  background: var(--green);
  color: #e7eddc;
  border-radius: 15px;
  padding: 25px 29px 17px;
  min-height: 477px;
  overflow: hidden;
}
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.player-top .eyebrow {
  color: #a6b6a0;
}
.session-chip {
  font-size: 9px;
  letter-spacing: 0.6px;
  border: 1px solid #dfe7d7;
  padding: 6px 9px;
  border-radius: 5px;
  background: #f1f5e9;
  color: #6c8257;
  font-weight: 600;
}
.player-top .session-chip {
  color: #c0d1b1;
  background: #284c3d;
  border-color: #3c5e49;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #96ad92;
}
.domain-pill {
  background: #2e5342;
  color: #ccdda4;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 0;
}
.muted {
  color: #9aa38f;
}
.learning-content {
  min-height: 144px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 25px 0 15px;
}
.word-title {
  font-size: clamp(24px, 2.7vw, 43px);
  line-height: 1.28;
  letter-spacing: -1px;
  font-weight: 450;
  overflow-wrap: anywhere;
}
.word-meaning {
  font-size: 12px;
  color: #a4b99b;
  margin-top: 17px;
  letter-spacing: 0.2px;
}
.waveform {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6d9272;
  margin: 5px 0 18px;
  opacity: 0.6;
}
.waveform .bar {
  width: 3px;
  max-height: 35px;
}
.waveform.is-playing {
  color: #c3e18d;
  opacity: 1;
}
.is-playing .bar {
  animation: pulse 1s ease-in-out infinite alternate;
}
.is-playing .bar:nth-child(3n) {
  animation-delay: -0.5s;
}
.is-playing .bar:nth-child(4n) {
  animation-delay: -0.8s;
}
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: transparent;
  color: #7b9270;
  border-radius: 50%;
}
.player-card .icon-button {
  color: #9eb89e;
}
.play-button {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
}
.play-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}
.play-button svg:has(path[d="M8 5v14M16 5v14"]) {
  fill: none;
}
.play-caption {
  text-align: center;
  color: #b0c0a7;
  font-size: 10px;
  margin-top: 13px;
  min-height: 15px;
}
.player-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #a0b298;
  border-top: 1px solid #365646;
  margin-top: 25px;
  padding-top: 17px;
  gap: 8px;
}
.player-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-bottom svg {
  width: 12px;
  height: 12px;
}
.speed-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.speed-label select {
  color: #c6d4bb;
  background: #2a503d;
  border: 0;
  padding: 3px;
  border-radius: 4px;
  font-size: 9px;
}
.player-card progress {
  height: 3px;
  margin-top: 12px;
  background: #355845;
}
.player-card progress::-webkit-progress-bar {
  background: #355845;
}
.player-card progress::-webkit-progress-value {
  background: #c3df8d;
}
.player-card .fineprint {
  font-size: 9px;
  color: #8da183;
  margin-top: 9px;
}
.conversation {
  text-align: left;
  align-items: stretch;
  padding: 19px 0 10px;
  gap: 12px;
}
.scene-title {
  font-size: 10px;
  color: #9ab18d;
  margin-bottom: 2px;
}
.dialogue-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 7px;
  padding: 5px 0;
}
.dialogue-line.speaking {
  background: #2e5341;
}
.speaker-label {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #365745;
  color: #c9dbb5;
  font-size: 9px;
  border-radius: 50%;
  margin-top: 1px;
}
.speaker-label.b {
  background: #b9cf8f;
  color: #244332;
}
.dialogue-line p {
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.1px;
}
.practice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 26px 25px 17px;
  min-height: 477px;
}
.practice-card .section-heading {
  margin-bottom: 21px;
}
.practice-card h2 {
  font-size: 19px;
}
.mic-icon {
  color: #89a477;
  background: #f1f5e9;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
}
.engine-select {
  font-size: 10px;
  color: #909a85;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.engine-select select {
  font-size: 10px;
  padding: 7px 8px;
  max-width: 75%;
  border: 1px solid #e5e9df;
  background: #fafcf7;
  color: #6f8063;
}
.practice-note {
  font-size: 9px;
  line-height: 1.8;
  color: #9ca38f;
  margin-top: 9px;
  word-break: keep-all;
}
.reference {
  margin: 18px 0;
  padding: 13px 15px;
  background: #f5f7f0;
  border-left: 2px solid #bbcf98;
  border-radius: 0 6px 6px 0;
}
.reference > span {
  font-size: 9px;
  color: #96a284;
}
.reference p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 6px;
  letter-spacing: -0.1px;
}
.record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.record-button {
  background: #edf3e2;
  border: 1px solid #d9e4c6;
  color: #567347;
  flex: 1;
}
.record-button.recording {
  background: #f9e4df;
  border-color: #dcae9f;
  color: #9b483d;
}
.recording svg {
  animation: pulse 0.8s infinite alternate;
}
.record-actions .icon-button {
  width: 39px;
  height: 39px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.result-empty {
  text-align: center;
  padding: 25px 0 20px;
}
.result-empty > span {
  display: grid;
  place-items: center;
  margin: 0 auto 9px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f7f9f1;
  color: #a7bb8f;
}
.result-empty p {
  font-size: 11px;
  color: #89967c;
}
.result-empty small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: #adb4a0;
}
.practice-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #eef0e8;
  padding-top: 14px;
  font-size: 9px;
  color: #99a28d;
}
.result-summary {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 18px 0 14px;
}
.result-summary > strong {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
}
.result-summary > strong > small {
  font-size: 11px;
  color: #b0b7a1;
  margin-left: 4px;
}
.good {
  color: #527b3e;
}
.needs-work {
  color: #b38756;
}
.result-summary b {
  font-size: 11px;
  font-weight: 600;
}
.result-summary p {
  font-size: 9px;
  line-height: 1.6;
  color: #94a084;
  margin-top: 5px;
}
.transcript {
  font-size: 12px;
  line-height: 1.7;
  color: #617057;
  background: #f7f9f3;
  padding: 11px;
  border-radius: 7px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.transcript small {
  display: block;
  font-size: 9px;
  color: #9ca68f;
  margin-bottom: 4px;
}
.subscores {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.subscores span {
  background: #f5f7ef;
  border-radius: 5px;
  font-size: 9px;
  padding: 7px;
  color: #9aa38e;
  flex: 1;
}
.subscores b {
  color: #6d8658;
  margin-left: 7px;
}
.word-feedback {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.feedback-word {
  font-size: 11px;
  background: #eef4e6;
  color: #67834f;
  padding: 5px 7px;
  border-radius: 5px;
}
.feedback-word.weak {
  background: #f8eee2;
  color: #a07949;
}
.feedback-word small {
  font-size: 8px;
  opacity: 0.7;
  margin-left: 4px;
}
.coaching {
  font-size: 10px;
  line-height: 1.8;
  padding: 12px;
  border: 1px solid #ece8d9;
  background: #fcfaf3;
  border-radius: 7px;
  margin: 12px 0 18px;
  color: #968765;
}
.coaching b {
  color: #81744f;
}
.coaching p {
  margin-top: 7px;
}
.success-line {
  font-size: 10px;
  color: #7f9d64;
  margin: 12px 0 18px;
}
audio {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 12px;
}
.how-it-works,
.set-card {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 26px 28px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  border-right: 1px solid #eef0e8;
  padding: 8px 15px 9px 0;
}
.step:last-child {
  border: 0;
}
.step > span {
  font-size: 10px;
  color: #bbc6aa;
  float: right;
  margin-right: 8px;
}
.step > svg {
  color: #95a981;
}
.step h3 {
  font-size: 12px;
  margin: 12px 0 7px;
  font-weight: 550;
}
.step p {
  font-size: 10px;
  color: #99a08e;
  line-height: 1.7;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 28px 0 7px;
  color: #a6ae9e;
  font-size: 8px;
  letter-spacing: 1.2px;
}
.page-footer span:first-child {
  font-size: 12px;
  letter-spacing: -0.5px;
}
.list-tabs {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.list-tabs button {
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  color: #99a28e;
  padding: 0 4px 14px;
  border-bottom: 2px solid transparent;
}
.list-tabs button.selected {
  color: #466139;
  border-color: #87a75e;
}
.list-tabs > span {
  margin-left: auto;
  font-size: 9px;
  color: #a4ad96;
}
.item-list {
  max-height: 420px;
  overflow: auto;
}
.item-row {
  display: flex;
  gap: 15px;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 5px;
  padding: 14px 9px;
  align-items: center;
  border-bottom: 1px solid #f0f2ea;
}
.item-row.selected {
  background: #f3f7eb;
}
.item-number {
  font-size: 10px;
  color: #a0ac93;
  width: 21px;
  flex-shrink: 0;
}
.item-name {
  flex: 1;
  min-width: 0;
}
.item-name strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.item-name small {
  font-size: 10px;
  display: block;
  color: #a3ab97;
  margin-top: 5px;
}
.domain-label {
  font-size: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9daa8d;
  flex-shrink: 0;
  min-width: 45px;
}
.item-score {
  font-size: 10px;
  color: #88a26a;
  min-width: 23px;
  text-align: right;
}
.item-row > svg {
  width: 12px;
  height: 12px;
  color: #96ac7c;
}
.section-heading input {
  font-size: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: #fafbf7;
  width: 180px;
  color: #65725d;
}
.empty-message {
  font-size: 12px;
  text-align: center;
  padding: 30px;
  color: #a0a793;
}
.warning,
.storage-warning {
  color: #9a6d3e;
  font-size: 11px;
  padding: 14px;
  border: 1px solid #ecd9b9;
  border-radius: 8px;
  background: #faf3e5;
  line-height: 1.8;
  margin-top: 14px;
}
.storage-warning {
  margin: 0 0 20px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.library-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 23px;
  background: #fff;
}
.library-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.library-card .muted {
  font-size: 10px;
}
.library-card h2 {
  font-size: 21px;
  font-weight: 450;
  letter-spacing: -0.7px;
  margin: 25px 0 9px;
}
.library-card p {
  font-size: 11px;
  color: #939e86;
}
.library-card progress {
  margin: 25px 0 18px;
}
.library-card > div:last-child > span {
  font-size: 10px;
  color: #8a9d78;
}
.library-card button {
  font-size: 10px;
}
.empty-state {
  text-align: center;
  padding: 65px 20px;
  border: 1px dashed #d8dfce;
  border-radius: 13px;
  background: #f9fbf5;
  grid-column: 1/-1;
  color: #a4b091;
}
.empty-state svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}
.empty-state h2 {
  font-size: 17px;
  font-weight: 500;
  color: #7e936d;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 12px;
}
.empty-state.compact {
  border: 0;
  padding: 40px;
}
.report-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 27px;
}
.panel > p {
  font-size: 12px;
  line-height: 1.9;
  color: #8d987f;
  margin-top: 20px;
  word-break: keep-all;
}
.panel .fineprint {
  font-size: 10px;
  color: #a0a991;
  margin-top: 15px;
}
.big-rate {
  font-size: 75px;
  font-weight: 350;
  letter-spacing: -3px;
  color: #63884d;
  margin-top: 30px;
}
.big-rate small {
  font-size: 25px;
  letter-spacing: 0;
  margin-left: 6px;
  color: #a6bb91;
}
.progress-bars {
  margin-top: 25px;
  display: grid;
  gap: 18px;
}
.progress-bars > div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #9aa68c;
}
.progress-bars span {
  min-width: 93px;
}
.progress-bars b {
  font-weight: 450;
  color: #77965c;
  width: 20px;
}
.progress-bars meter {
  flex: 1;
  min-width: 30px;
  height: 11px;
}
.activity-list {
  margin: 25px 0 0;
}
.activity-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eef1e6;
  font-size: 11px;
  color: #a0ab90;
}
.activity-list dd {
  color: #6f8b55;
  font-size: 14px;
}
.attempt-panel {
  margin-top: 25px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 490px;
  text-align: left;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #a6af98;
  padding: 13px 12px;
  background: #f8faf4;
}
td {
  font-size: 11px;
  padding: 16px 12px;
  border-bottom: 1px solid #edf0e5;
  color: #889b72;
}
td:first-child {
  max-width: 350px;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #607c4b;
}
td small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
  color: #adb69e;
  overflow-wrap: anywhere;
}
.score-pill {
  padding: 5px 10px;
  border-radius: 5px;
  background: #fbf1e4;
  color: #b18b56;
}
.score-pill.good {
  background: #f1f6e8;
  color: #78995a;
}
.field {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #82946d;
  gap: 10px;
  margin-top: 25px;
}
.field select {
  background: #fafcf6;
  border: 1px solid #e4e9db;
  padding: 12px;
  color: #82966c;
  font-size: 11px;
  max-width: 100%;
}
.panel > .button {
  margin-top: 20px;
}
.panel pre {
  font-size: 11px;
  background: #f5f8ee;
  padding: 16px;
  border-radius: 7px;
  overflow: auto;
  line-height: 2;
  color: #73905a;
}
.panel code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.connection-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection-status svg {
  width: 17px;
  height: 17px;
}
.backup-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
progress {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 5px;
  height: 5px;
  overflow: hidden;
  background: #eaf0df;
}
progress::-webkit-progress-bar {
  background: #eaf0df;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #9bb878;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #9bb878;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 15px;
  color: #48613b;
  max-width: 450px;
  padding: 30px;
  background: #fff;
}
dialog::backdrop {
  background: #173e3375;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
}
dialog p {
  font-size: 12px;
  color: #89977c;
  line-height: 1.8;
  margin-top: 18px;
}
#toast {
  position: fixed;
  z-index: 50;
  bottom: 24px;
  left: calc(50% + 120px);
  transform: translate(-50%, 20px);
  padding: 15px 22px;
  max-width: min(600px, 90vw);
  border-radius: 10px;
  background: #244b3b;
  color: #e6efd8;
  box-shadow: 0 10px 40px #173e3322;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes pulse {
  from {
    transform: scaleY(0.5);
    opacity: 0.6;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  main {
    padding: 50px 65px;
  }
  .player-card,
  .practice-card {
    min-height: 500px;
  }
  .learning-content {
    min-height: 168px;
  }
  .metrics {
    gap: 20px;
  }
  .metric {
    padding: 25px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 210px;
    padding: 30px 14px 20px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  main {
    margin-left: 210px;
    padding: 35px 25px;
  }
  .metric {
    padding: 18px 13px;
    gap: 9px;
  }
  .metric-icon {
    width: 30px;
    height: 30px;
  }
  .metric-icon svg {
    width: 17px;
  }
  .metric div > span {
    font-size: 9px;
  }
  .metric strong {
    font-size: 24px;
  }
  .studio-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 15px;
  }
  .player-card,
  .practice-card {
    padding: 22px 20px 15px;
  }
  .level-button {
    padding: 14px 11px;
  }
  .level-button small {
    font-size: 8px;
  }
  .page-header h1 {
    font-size: 27px;
  }
  .waveform {
    gap: 3px;
  }
  .waveform .bar {
    width: 2px;
  }
  .setup-card {
    padding: 24px 22px 16px;
  }
  .private-badge {
    font-size: 9px;
    padding: 9px;
  }
  .sidebar-tip {
    padding: 20px 14px;
  }
  .profile small {
    font-size: 8px;
  }
  .profile strong {
    font-size: 10px;
  }
  #toast {
    left: calc(50% + 105px);
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 78px;
    padding: 28px 10px 20px;
  }
  .brand {
    margin: 0 auto 45px;
  }
  .brand > span:last-child,
  .nav-caption,
  .nav-item .nav-dot,
  .sidebar-tip,
  .profile > div,
  .profile-dot {
    display: none;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 16px;
  }
  .nav-item svg {
    width: 21px;
    height: 21px;
  }
  .profile {
    margin-top: auto;
    justify-content: center;
    padding-top: 20px;
  }
  .brand-icon {
    width: 39px;
    height: 39px;
  }
  main {
    margin-left: 78px;
    padding: 30px 25px;
  }
  .studio-grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .metric {
    padding: 18px 13px;
    gap: 10px;
  }
  .metric-icon {
    display: none;
  }
  .metric div > span {
    font-size: 10px;
  }
  .level-button > span {
    font-size: 19px;
  }
  .level-button small {
    font-size: 8px;
  }
  .private-badge {
    display: none;
  }
  #toast {
    left: calc(50% + 39px);
  }
  .report-grid,
  .settings-grid {
    gap: 16px;
  }
  .panel {
    padding: 22px;
  }
  .domain-label {
    min-width: 0;
  }
  .setup-footer p {
    gap: 5px;
  }
  .button.primary {
    min-width: 143px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 65px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    margin: 0 auto 0 0;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .brand > span:last-child {
    display: block;
    font-size: 21px;
  }
  .brand small {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 3px;
  }
  .nav-item {
    padding: 11px 12px;
  }
  .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .profile {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 28px 18px 15px;
  }
  .page-header {
    margin-bottom: 22px;
  }
  .page-header h1 {
    font-size: 25px;
    letter-spacing: -1px;
  }
  .page-header .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .page-header p {
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 17px 16px;
    gap: 13px;
  }
  .metric-icon {
    display: grid;
    width: 31px;
    height: 31px;
  }
  .metric div > span {
    font-size: 9px;
  }
  .metric strong {
    font-size: 23px;
    margin-top: 5px;
  }
  .setup-card {
    padding: 21px 17px 14px;
    margin-bottom: 24px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .section-heading {
    margin-bottom: 18px;
    gap: 8px;
  }
  .text-badge {
    font-size: 8px;
    padding: 6px 7px;
  }
  .level-grid {
    gap: 6px;
  }
  .level-button {
    padding: 13px 9px;
    min-height: 80px;
  }
  .level-button > span {
    font-size: 19px;
  }
  .level-button small {
    font-size: 8px;
    line-height: 1.5;
    word-break: keep-all;
  }
  .level-button svg {
    width: 11px;
    height: 11px;
    top: 16px;
    right: 7px;
  }
  .level-button.selected small {
    color: #82966c;
  }
  .setup-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
    margin-top: 18px;
  }
  .setup-footer p {
    font-size: 10px;
    justify-content: center;
    gap: 6px;
  }
  .button.primary {
    padding: 13px;
  }
  .fineprint {
    font-size: 9px;
    margin-top: 12px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .player-card {
    padding: 23px 25px 16px;
    min-height: 460px;
  }
  .practice-card {
    min-height: 420px;
    padding: 24px;
  }
  .word-title {
    font-size: 36px;
  }
  .learning-content {
    min-height: 145px;
  }
  .waveform .bar {
    width: 3px;
  }
  .waveform {
    gap: 4px;
  }
  .section-label {
    margin-bottom: 13px;
  }
  .section-label > span {
    font-size: 8px;
    max-width: 55%;
    text-align: right;
    line-height: 1.6;
  }
  .section-label h2 {
    font-size: 15px;
  }
  .practice-card h2 {
    font-size: 20px;
  }
  .reference p {
    font-size: 15px;
  }
  .practice-note {
    font-size: 10px;
  }
  .practice-footer {
    font-size: 10px;
  }
  .result-empty {
    padding: 25px 0;
  }
  .how-it-works,
  .set-card {
    padding: 22px 18px;
    margin-top: 22px;
  }
  .steps {
    gap: 12px;
  }
  .step {
    padding-right: 8px;
  }
  .step h3 {
    font-size: 11px;
  }
  .step p {
    font-size: 9px;
    word-break: keep-all;
  }
  .section-heading input {
    width: 120px;
    padding: 9px;
    font-size: 9px;
  }
  .list-tabs {
    gap: 10px;
  }
  .list-tabs button {
    font-size: 10px;
  }
  .list-tabs > span {
    font-size: 8px;
  }
  .item-row {
    gap: 9px;
  }
  .item-name strong {
    font-size: 11px;
  }
  .item-name small {
    font-size: 9px;
  }
  .domain-label {
    display: none;
  }
  .item-number {
    width: 18px;
  }
  .page-footer {
    font-size: 6px;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
    line-height: 2;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .library-grid,
  .report-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 25px 23px;
  }
  .library-card > div:last-child > span {
    font-size: 11px;
  }
  .panel > p {
    font-size: 12px;
  }
  #toast {
    left: 50%;
    width: max-content;
    font-size: 11px;
    bottom: 16px;
  }
  .dialogue-line p {
    font-size: 16px;
  }
  .dialogue-line {
    padding: 6px 0;
  }
  .private-badge {
    display: none;
  }
}
@media (max-width: 380px) {
  .brand > span:last-child {
    display: none;
  }
  .sidebar nav {
    gap: 8px;
  }
  .nav-item {
    padding: 11px;
  }
  .level-button {
    padding: 11px 7px;
  }
  .level-button svg {
    display: none;
  }
  .level-button > span {
    font-size: 17px;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric-icon {
    display: none;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .setup-footer p {
    gap: 4px;
  }
  .waveform {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
