/* Generated from frontend/styles/index.css. */
/* frontend/styles/layout.css */
:root {
  --ink: #202925;
  --muted: #85918a;
  --paper: #f5f6f2;
  --white: #fff;
  --line: #e8ebe6;
  --green: #4d947c;
  --deep: #2c5546;
  --mint: #e9f4ee;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
  --jp: "Noto Sans JP", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: #fbfcfa;
  border-right: 1px solid #e9ece7;
  padding: 29px 17px 18px;
  display: flex;
  flex-direction: column;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #24332c;
  text-decoration: none;
  font: 800 14px var(--display);
  letter-spacing: 2px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #dff1e7;
  color: #4e8d73;
  display: grid;
  place-items: center;
  font: 600 18px var(--jp);
  letter-spacing: 0;
}
.brand-dot {
  color: #61a589;
}
.side-label,
.eyebrow,
.breadcrumb,
.hero-kicker,
.modal-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.35px;
}
.side-label {
  color: #a1aaa4;
  margin: 48px 12px 12px;
}
.nav-list {
  display: grid;
  gap: 5px;
}
.nav-item {
  height: 43px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #727f77;
  font-size: 12px;
}
.nav-item:hover {
  background: #f1f5f1;
  color: #33483d;
}
.nav-item.active {
  background: #eaf4ed;
  color: #376f57;
  font-weight: 700;
}
.nav-icon {
  font-size: 17px;
  width: 18px;
  text-align: center;
  color: #809087;
}
.active .nav-icon {
  color: #4b8b6b;
}
.nav-count {
  margin-left: auto;
  background: #d3e9da;
  color: #508565;
  min-width: 19px;
  height: 19px;
  border-radius: 6px;
  text-align: center;
  line-height: 19px;
  font-size: 10px;
}
.nav-count.soft {
  background: #f0f2ef;
  color: #879189;
}
.sidebar-spacer {
  flex: 1;
}
.streak-card {
  border: 1px solid #e9ede8;
  background: #fff;
  border-radius: 11px;
  padding: 13px 13px 10px;
  margin: 0 1px 15px;
}
.streak-top {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.flame {
  font-size: 15px;
  color: #e9a364;
}
.streak-number {
  font: 700 21px var(--display);
}
.streak-unit {
  font-size: 10px;
  color: #8d9890;
}
.streak-week {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
}
.streak-week i,
.week-dots i {
  font-style: normal;
  font-size: 8px;
  color: #a5aea8;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f4f1;
}
.streak-week i.done,
.week-dots i.checked {
  background: #e2f0e7;
  color: #508c68;
}
.streak-week i.today {
  background: #5e9b7e;
  color: #fff;
}
.streak-card p {
  font-size: 9px;
  color: #9aa39d;
  margin: 9px 0 0;
}
.profile {
  border: 0;
  background: transparent;
  border-top: 1px solid #edf0ec;
  padding: 14px 4px 0;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 9px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4dfd1;
  color: #91674e;
  font: 700 12px var(--display);
}
.profile-copy {
  display: grid;
  gap: 3px;
}
.profile-copy b {
  font-size: 11px;
}
.profile-copy small {
  font-size: 9px;
  color: #96a098;
}
.more {
  margin-left: auto;
  font-weight: 700;
  color: #9ca69f;
}
.main-area {
  margin-left: 244px;
  min-height: 100vh;
  padding: 0 48px 28px;
  max-width: 1700px;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid #e8ebe6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  color: #a0aaa3;
  font-size: 8px;
}
.breadcrumb span {
  padding: 0 9px;
  color: #c8cfca;
}
.breadcrumb b {
  color: #748079;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.date-label {
  font-size: 10px;
  color: #89958d;
}
.icon-button {
  border: 1px solid #e6ebe6;
  background: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #829087;
}
.page-view {
  max-width: 1140px;
  margin: 0 auto;
}
.hidden {
  display: none !important;
}

/* frontend/styles/dashboard.css */
.welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 30px 0 20px;
}
.eyebrow {
  color: #9aa69d;
}
.welcome-row .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #74aa8a;
}
.welcome-row h1,
.subpage-head h1 {
  font: 700 31px var(--display);
  letter-spacing: -1.6px;
  margin: 10px 0 5px;
}
.welcome-row h1 em,
.subpage-head h1 em {
  font-style: normal;
  color: #64a184;
}
.welcome-sub,
.subpage-head p {
  font-size: 12px;
  color: #87928b;
  margin: 0;
}
.level-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e9e4;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px 8px 8px;
  margin-bottom: 2px;
}
.level-symbol {
  height: 33px;
  width: 33px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f4ecdc;
  color: #9e8151;
  font: 700 11px var(--display);
}
.level-pill div {
  display: grid;
  gap: 3px;
}
.level-pill small {
  font-size: 7px;
  letter-spacing: 1px;
  color: #a1aaa3;
}
.level-pill b {
  font: 700 11px var(--display);
}
.level-pill b span {
  font-size: 12px;
  color: #73a386;
  margin-left: 3px;
}
.hero-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 14px;
  background: #e6f1e9;
  padding: 27px 31px 30px;
  display: flex;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #608571;
  font-size: 8px;
  letter-spacing: 1px;
}
.sun-icon {
  color: #bd9c5a;
  font-size: 13px;
}
.hero-kicker-line {
  height: 1px;
  width: 28px;
  background: #c4d8ca;
}
.hero-kicker #session-state {
  color: #8b9f91;
  font-size: 7px;
}
.hero-copy h2 {
  font: 700 24px/1.23 var(--display);
  letter-spacing: -0.8px;
  margin: 15px 0 7px;
}
.hero-copy h2 i {
  font-style: normal;
  color: #53896c;
}
.hero-copy > p {
  font-size: 10px;
  color: #77877c;
  margin: 0;
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.duration-control {
  display: flex;
  background: #f4f8f4;
  padding: 3px;
  border-radius: 7px;
}
.duration-option {
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 7px 9px;
  font-size: 9px;
  color: #849188;
}
.duration-option.selected {
  background: #fff;
  color: #3f7557;
  box-shadow: 0 1px 4px #42604a16;
  font-weight: 700;
}
.primary-button {
  border: 0;
  background: #376d53;
  color: #fff;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 3px 8px #335e471f;
}
.primary-button:hover {
  background: #2e5d46;
  transform: translateY(-1px);
}
.primary-button span {
  font-size: 14px;
  margin-left: 11px;
}
.hero-art {
  position: absolute;
  right: 30px;
  top: 10px;
  width: 330px;
  height: 205px;
  overflow: hidden;
}
.art-orbit {
  position: absolute;
  border: 1px solid #c6dbcb;
  border-radius: 50%;
  width: 230px;
  height: 230px;
  right: 43px;
  top: 0;
}
.orbit-two {
  width: 175px;
  height: 175px;
  right: 70px;
  top: 26px;
  border-color: #d3e3d7;
}
.art-sun {
  position: absolute;
  border-radius: 50%;
  width: 126px;
  height: 126px;
  background: #d1e7d6;
  right: 94px;
  top: 51px;
}
.art-kanji {
  position: absolute;
  right: 121px;
  top: 66px;
  font: 500 86px var(--jp);
  color: #79a988;
}
.art-caption {
  position: absolute;
  right: 19px;
  top: 69px;
  color: #72917a;
  font: 700 8px/1.6 var(--sans);
  letter-spacing: 2px;
}
.art-spark {
  position: absolute;
  color: #b5a573;
  font-size: 13px;
}
.spark-a {
  top: 35px;
  left: 54px;
}
.spark-b {
  bottom: 44px;
  right: 80px;
  font-size: 8px;
}
.art-wave {
  position: absolute;
  bottom: 5px;
  right: -6px;
  width: 335px;
  height: 42px;
  border-top: 1px solid #bad2c1;
  border-radius: 50%;
  transform: rotate(-5deg);
}
.hero-progress {
  position: absolute;
  right: 27px;
  bottom: 22px;
  width: 228px;
}
.hero-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #819489;
  font-size: 7px;
  letter-spacing: 1px;
}
.hero-progress > div:first-child b {
  font: 700 11px var(--display);
  color: #507d61;
  letter-spacing: 0;
}
.progress-track {
  height: 4px;
  border-radius: 5px;
  background: #d6e6d9;
  margin: 6px 0 4px;
  overflow: hidden;
}
.progress-track i,
.skill-meter i {
  height: 100%;
  display: block;
  border-radius: 5px;
  background: #72ad88;
}
.hero-progress small {
  font-size: 8px;
  color: #91a095;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 25px 0 12px;
}
.section-head h2 {
  font: 700 17px var(--display);
  letter-spacing: -0.5px;
  margin: 5px 0 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: #6d8f79;
  font-size: 10px;
  padding: 6px;
}
.text-button span {
  padding-left: 5px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}
.plan-card {
  position: relative;
  border: 1px solid #e7ebe6;
  background: #fff;
  border-radius: 10px;
  padding: 12px 12px 10px;
  min-height: 108px;
  text-align: left;
  transition: 0.16s;
}
.plan-card:hover {
  border-color: #b9d3c2;
  transform: translateY(-2px);
}
.plan-card.complete {
  background: #f6faf6;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-icon {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #eaf4ee;
  color: #5c9273;
  font-size: 13px;
}
.plan-icon.coral {
  background: #faeee6;
  color: #cf926c;
}
.plan-icon.purple {
  background: #efecf7;
  color: #8676aa;
}
.plan-icon.blue {
  background: #e8f0f4;
  color: #658a9c;
}
.plan-icon.yellow {
  background: #f6f1dc;
  color: #ad9856;
}
.plan-minutes {
  font-size: 8px;
  color: #9ba59e;
}
.plan-card b {
  display: block;
  font: 700 10px var(--display);
  margin-top: 10px;
}
.plan-card small {
  display: block;
  color: #95a098;
  font-size: 8px;
  margin-top: 4px;
}
.plan-status {
  position: absolute;
  right: 11px;
  bottom: 11px;
  font-size: 9px;
  color: #75a085;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 13px;
  margin-top: 17px;
}
.panel {
  background: #fff;
  border: 1px solid #e7ebe6;
  border-radius: 11px;
}
.focus-panel,
.stats-panel {
  padding: 16px 17px 13px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-heading h3 {
  font: 700 13px var(--display);
  letter-spacing: -0.3px;
  margin: 4px 0 0;
}
.round-arrow {
  border: 1px solid #e8ede8;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #fff;
  color: #7f9b88;
  font-size: 13px;
}
.panel-note {
  color: #9aa49d;
  font-size: 9px;
  margin: 7px 0 10px;
}
.weak-list {
  border-top: 1px solid #f0f2ef;
}
.weak-row {
  display: grid;
  grid-template-columns: 66px 1fr auto 10px;
  gap: 7px;
  align-items: center;
  width: 100%;
  padding: 10px 1px;
  border: 0;
  border-bottom: 1px solid #f1f3f1;
  background: transparent;
  text-align: left;
}
.weak-row:hover .weak-jp {
  color: #4d8a69;
}
.weak-tag {
  font-size: 7px;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.weak-tag.purple {
  color: #8a7caa;
}
.weak-tag.orange {
  color: #c38c62;
}
.weak-tag.blue {
  color: #6e94a5;
}
.weak-jp {
  font: 500 10px var(--jp);
  color: #46544b;
}
.weak-jp small {
  font: 400 9px var(--jp);
  color: #97a29a;
}
.weak-meta {
  font-size: 8px;
  color: #a1aaa3;
}
.row-chevron {
  color: #a6b0a9;
  font-size: 16px;
}
.panel-link {
  border: 0;
  background: transparent;
  padding: 11px 0 0;
  color: #59866a;
  font-size: 9px;
}
.panel-link span {
  padding-left: 7px;
}
.chart-legend {
  display: flex;
  gap: 15px;
  margin: 9px 0 3px;
  color: #929c95;
  font-size: 8px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-dot.mint {
  background: #77b39a;
}
.legend-dot.pale {
  background: #c2d8cc;
}
.mini-chart {
  height: 91px;
  display: flex;
  position: relative;
}
.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #adb5af;
  font-size: 7px;
  padding: 4px 8px 0 0;
}
.mini-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 21px,
      #f1f3f0 22px);
}
.chart-area {
  fill: url(#fill);
}
.chart-line {
  fill: none;
  stroke: #75b197;
  stroke-width: 2.5;
}
.chart-line.speed {
  stroke: #c3d8cc;
  stroke-width: 2;
}
.chart-dot {
  fill: #579879;
  stroke: #fff;
  stroke-width: 2;
}
.chart-x {
  display: flex;
  justify-content: space-between;
  margin-left: 23px;
  color: #a5aea7;
  font-size: 7px;
}
.stat-strip {
  border-top: 1px solid #eff1ee;
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  justify-content: space-around;
}
.stat-strip > div {
  display: grid;
  gap: 3px;
  text-align: center;
}
.stat-strip b {
  font: 700 13px var(--display);
}
.stat-strip b span {
  font-size: 9px;
  color: #919d95;
}
.stat-strip small {
  font-size: 8px;
  color: #99a39c;
}
.footer-note {
  margin-top: 17px;
  color: #a2aaa3;
  font-size: 8px;
}
.footer-note > span:first-child {
  font-family: var(--jp);
  color: #78937e;
  margin-right: 5px;
}
.footer-right {
  float: right;
}
.subpage-head {
  padding: 38px 0 23px;
}
.subpage-head h1 {
  font-size: 32px;
  margin-top: 9px;
}

/* frontend/styles/practice.css */
.practice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.practice-card {
  height: 184px;
  position: relative;
  border: 1px solid #e7ebe6;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 17px;
  transition: 0.16s;
}
.practice-card:hover {
  transform: translateY(-3px);
  border-color: #b5d2bf;
  box-shadow: 0 6px 18px #304c3810;
}
.practice-card.accent-card {
  background: #eaf4ed;
  border-color: #e4efe7;
}
.pc-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #d8ecdf;
  color: #518565;
  font: 600 17px var(--jp);
}
.pc-icon.peach {
  background: #f8e9df;
  color: #be8662;
}
.pc-icon.lavender {
  background: #efecf7;
  color: #8575aa;
}
.pc-icon.yellow {
  background: #f5f0dc;
  color: #a08d4d;
}
.pc-icon.blue-bg {
  background: #e6eff4;
  color: #66899b;
}
.pc-icon.dark-icon {
  background: #e9edeb;
  color: #52675c;
}
.pc-label {
  display: block;
  color: #9ba69e;
  font-size: 8px;
  letter-spacing: 0.8px;
  margin-top: 12px;
}
.practice-card b {
  display: block;
  font: 700 13px var(--display);
  margin-top: 5px;
}
.practice-card > small {
  display: block;
  color: #909b93;
  font-size: 9px;
  margin-top: 5px;
}
.pc-go {
  position: absolute;
  bottom: 15px;
  left: 17px;
  color: #5c8c6d;
  font-size: 9px;
  font-weight: 600;
}
.pc-go i {
  font-size: 14px;
  font-style: normal;
  margin-left: 6px;
}
.sprint-card {
  background: #f5f4ef;
}
.tip-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  border: 1px solid #e8ece6;
  background: #fbfcfa;
  border-radius: 10px;
  padding: 13px 15px;
  color: #87938b;
  font-size: 10px;
}
.tip-strip > span {
  font-size: 14px;
  color: #b79d5c;
}
.tip-strip b {
  color: #55645a;
}

/* frontend/styles/review.css */
.weak-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #e7ebe6;
  background: #fff;
  border-radius: 11px;
  padding: 14px 17px;
  margin-bottom: 13px;
}
.weak-summary > div {
  display: grid;
  gap: 4px;
  padding-right: 22px;
  border-right: 1px solid #edf0ec;
}
.weak-summary > div b {
  font: 700 17px var(--display);
}
.weak-summary > div span {
  font-size: 8px;
  color: #929d95;
}
.weak-summary .primary-button {
  margin-left: auto;
}
.weak-table-panel {
  overflow: hidden;
}
.table-head,
.weak-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
}
.table-head {
  background: #fafbf9;
  color: #a0aaa2;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.9px;
  border-bottom: 1px solid #edf0ec;
}
.weak-table-row {
  min-height: 60px;
  border-bottom: 1px solid #f0f2ef;
}
.weak-table-row:last-child {
  border: 0;
}
.topic-cell b {
  display: block;
  font: 500 11px var(--jp);
}
.topic-cell small {
  display: block;
  font-size: 8px;
  color: #a0aaa2;
  margin-top: 4px;
}
.category-pill {
  font-size: 7px;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 5px 7px;
  border-radius: 5px;
  background: #f1edf7;
  color: #8a7baa;
  width: max-content;
}
.miss-cell {
  font-size: 9px;
  color: #7d8981;
}
.review-date {
  font-size: 9px;
  color: #8a978f;
}
.mastery {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mastery .progress-track {
  width: 52px;
  margin: 0;
  background: #edf0ec;
}
.mastery .progress-track i {
  background: #7fb092;
}
.mastery span {
  font-size: 8px;
  color: #89958d;
}

/* frontend/styles/wordbook.css */
.vocab-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  gap: 12px;
}
.vocab-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}
.book-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #e8f2eb;
  border-radius: 8px;
  color: #5a8e6e;
}
.vocab-summary b {
  font-size: 10px;
}
.vocab-summary small {
  font-size: 9px;
  color: #9aa49d;
  margin-left: -6px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 33px;
  border: 1px solid #e7ebe6;
  border-radius: 7px;
  background: #fff;
  color: #9aa49d;
}
.search-box input {
  width: 170px;
  border: 0;
  outline: 0;
  font-size: 9px;
}
.outline-button {
  height: 33px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid #dfe7e0;
  border-radius: 7px;
  color: #578266;
  font-size: 9px;
}
.vocab-panel {
  overflow: hidden;
}
.vocab-table-head,
.vocab-row {
  display: grid;
  grid-template-columns: 1.2fr 2.2fr 1fr 0.8fr 20px;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
}
.vocab-table-head {
  color: #a0aaa2;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.9px;
  background: #fafbf9;
  border-bottom: 1px solid #edf0ec;
}
.vocab-row {
  min-height: 67px;
  border-bottom: 1px solid #f0f2ef;
}
.vocab-row:last-child {
  border: 0;
}
.word-main b {
  font: 600 13px var(--jp);
}
.word-main small {
  display: block;
  color: #8e9a91;
  font: 9px var(--jp);
  margin-top: 2px;
}
.word-meaning b {
  font-size: 9px;
  font-weight: 500;
}
.word-meaning small {
  display: block;
  font: 9px var(--jp);
  color: #9ca69e;
  margin-top: 4px;
}
.confidence {
  display: flex;
  gap: 3px;
}
.confidence i {
  width: 10px;
  height: 4px;
  border-radius: 4px;
  background: #e9ede9;
}
.confidence i.on {
  background: #7cb190;
}
.confidence-label {
  font-size: 8px;
  color: #89958d;
  margin-left: 4px;
}
.review-tag {
  padding: 5px 6px;
  border-radius: 5px;
  background: #f7f2e5;
  color: #9f8851;
  font-size: 8px;
  width: max-content;
}
.review-tag.later {
  background: #eff5f0;
  color: #668b73;
}
.vocab-remove {
  border: 0;
  background: transparent;
  color: #aeb7b0;
  font-size: 14px;
}

/* frontend/styles/progress.css */
.progress-overview {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 11px;
}
.progress-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 118px;
  padding: 15px;
  border: 1px solid #e7ebe6;
  border-radius: 11px;
  background: #fff;
}
.progress-card > span {
  font-size: 8px;
  color: #9aa69d;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.progress-card > b {
  font: 700 24px var(--display);
  letter-spacing: -1px;
}
.progress-card > b small {
  font-size: 11px;
  letter-spacing: 0;
  color: #89958c;
}
.progress-card > small {
  color: #99a39b;
  font-size: 8px;
}
.large-stat {
  background: #eaf4ed;
  border-color: #e5f0e8;
}
.week-dots {
  display: flex;
  gap: 5px;
}
.week-dots i {
  width: 18px;
  height: 18px;
}
.skill-panel {
  margin-top: 14px;
  padding: 19px;
}
.updated-label {
  font-size: 7px;
  color: #a3ada5;
  letter-spacing: 0.8px;
}
.skill-row {
  display: grid;
  grid-template-columns: 1.35fr 2.1fr 25px;
  align-items: center;
  gap: 17px;
  padding: 13px 0;
  border-bottom: 1px solid #eff1ef;
}
.skill-row > div:first-child {
  display: grid;
  gap: 4px;
}
.skill-row b {
  font-size: 10px;
}
.skill-row small {
  color: #98a29a;
  font-size: 8px;
}
.skill-row strong {
  text-align: right;
  font: 700 11px var(--display);
  color: #658c71;
}
.skill-meter {
  height: 5px;
  border-radius: 5px;
  background: #edf0ec;
  overflow: hidden;
}
.skill-meter i {
  background: #79ad8b;
}
.jlpt-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 17px;
}
.jlpt-badge {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3ecdc;
  color: #987f51;
  font-size: 10px;
  font-weight: 700;
}
.jlpt-progress > div:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 120px;
}
.jlpt-progress b {
  font-size: 9px;
}
.jlpt-progress small {
  font-size: 8px;
  color: #98a29a;
}
.jlpt-track {
  height: 5px;
  background: #eef1ed;
  border-radius: 5px;
  flex: 1;
  overflow: hidden;
}
.jlpt-track i {
  display: block;
  width: 68%;
  height: 100%;
  background: #99baa0;
  border-radius: 5px;
}
.jlpt-next {
  font-size: 9px;
  color: #89958d;
  font-weight: 700;
}

/* frontend/styles/dialogs.css */
.toast {
  position: fixed;
  z-index: 10;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 15px);
  padding: 10px 15px;
  background: #284c3c;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: #1c292477;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.exercise-modal {
  position: relative;
  background: #fbfcfa;
  border: 1px solid #e4eae4;
  box-shadow: 0 20px 80px #10271930;
  border-radius: 14px;
  width: min(570px, 100%);
  padding: 26px 28px 23px;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #99a49d;
  font-size: 22px;
}
.modal-eyebrow {
  color: #80a089;
  font-size: 8px;
}
.exercise-modal h2 {
  font: 700 21px var(--display);
  letter-spacing: -0.6px;
  margin: 9px 0 4px;
}
.exercise-modal h2 em {
  color: #64a184;
  font-style: normal;
}
.modal-context {
  font-size: 10px;
  color: #929e95;
  margin: 0 0 10px;
}
.prompt-jp {
  padding: 15px 16px;
  border: 1px solid #e7ece7;
  border-radius: 9px;
  background: #f3f7f3;
  font: 500 19px var(--jp);
  color: #32483a;
}
.timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 13px 0 10px;
  color: #95a097;
  font-size: 9px;
}
.timer-picks {
  display: flex;
  gap: 4px;
}
.timer-picks button {
  border: 1px solid #e7ebe6;
  background: #fff;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 8px;
  color: #89958d;
}
.timer-picks button.selected {
  border-color: #bdd5c3;
  background: #edf5ef;
  color: #4b7e5c;
}
.exercise-modal textarea {
  width: 100%;
  height: 94px;
  resize: vertical;
  border: 1px solid #e4e9e4;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  outline: 0;
  color: #334239;
  font: 14px var(--jp);
}
.exercise-modal textarea:focus {
  border-color: #8bb59a;
  box-shadow: 0 0 0 3px #83b5971a;
}
.exercise-modal textarea::placeholder {
  font: 10px var(--sans);
  color: #aab2ac;
}
.input-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #a1aaa3;
  font-size: 8px;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}
.feedback {
  margin-top: 13px;
  border-top: 1px solid #e9ede8;
  padding-top: 12px;
  color: #5e6e63;
  font-size: 10px;
  line-height: 1.6;
}
.feedback .scores {
  display: flex;
  gap: 7px;
  margin: 8px 0;
}
.feedback .scores span {
  border-radius: 6px;
  background: #edf4ee;
  padding: 6px 8px;
  color: #548066;
  font-size: 8px;
}
.feedback .jp-answer {
  font: 500 14px var(--jp);
  color: #3e6d50;
}
.feedback .ru-explain {
  color: #838f86;
}
.feedback-next {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #548166;
  font-size: 9px;
  padding: 5px 0;
}

/* frontend/styles/responsive.css */
@media (max-width: 1080px) {
  .main-area {
    padding: 0 28px 25px;
  }
  .hero-art {
    right: 0;
    opacity: 0.75;
  }
  .hero-progress {
    right: 20px;
  }
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .practice-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .sidebar {
    width: 60px;
    padding: 17px 8px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > span:last-child,
  .side-label,
  .nav-item:not(.active),
  .nav-item.active {
    font-size: 0;
  }
  .nav-list {
    margin-top: 38px;
  }
  .nav-item {
    justify-content: center;
    padding: 0;
  }
  .nav-icon {
    font-size: 18px;
  }
  .nav-count,
  .streak-card,
  .profile-copy,
  .more {
    display: none;
  }
  .profile {
    justify-content: center;
    padding: 12px 0 0;
  }
  .main-area {
    margin-left: 60px;
    padding: 0 16px 23px;
  }
  .topbar {
    height: 55px;
  }
  .date-label {
    display: none;
  }
  .welcome-row {
    padding-top: 24px;
  }
  .welcome-row h1,
  .subpage-head h1 {
    font-size: 25px;
  }
  .level-pill {
    display: none;
  }
  .hero-card {
    min-height: 266px;
    padding: 21px 18px;
  }
  .hero-art {
    right: -112px;
    top: 2px;
    opacity: 0.42;
  }
  .hero-copy h2 {
    font-size: 22px;
  }
  .hero-copy > p {
    max-width: 220px;
    line-height: 1.6;
  }
  .hero-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .hero-progress {
    bottom: 13px;
    left: 18px;
    right: 18px;
    width: auto;
  }
  .section-head {
    margin-top: 22px;
  }
  .section-head h2 {
    font-size: 15px;
  }
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-card:last-child {
    grid-column: span 2;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .practice-cards {
    grid-template-columns: 1fr;
  }
  .practice-card {
    height: 163px;
  }
  .subpage-head {
    padding-top: 29px;
  }
  .weak-summary {
    gap: 12px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .weak-summary > div {
    padding-right: 12px;
  }
  .weak-summary .primary-button {
    width: 100%;
    margin: 0;
  }
  .table-head,
  .weak-table-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    gap: 8px;
  }
  .table-head span:nth-child(4),
  .table-head span:nth-child(5),
  .weak-table-row > *:nth-child(4),
  .weak-table-row > *:nth-child(5) {
    display: none;
  }
  .vocab-toolbar {
    flex-wrap: wrap;
  }
  .vocab-summary {
    width: 100%;
    flex-basis: 100%;
  }
  .search-box {
    flex: 1;
  }
  .search-box input {
    width: 100%;
  }
  .vocab-table-head,
  .vocab-row {
    grid-template-columns: 1fr 1.5fr 20px;
    gap: 8px;
    padding: 10px;
  }
  .vocab-table-head span:nth-child(3),
  .vocab-table-head span:nth-child(4),
  .vocab-row > *:nth-child(3),
  .vocab-row > *:nth-child(4) {
    display: none;
  }
  .progress-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .large-stat {
    grid-column: span 2;
  }
  .skill-row {
    grid-template-columns: 1fr 1fr 22px;
    gap: 8px;
  }
  .skill-row small {
    max-width: 130px;
  }
  .jlpt-progress {
    gap: 7px;
  }
  .jlpt-progress > div:nth-child(2) {
    min-width: 96px;
  }
  .exercise-modal {
    padding: 24px 18px 18px;
  }
  .prompt-jp {
    font-size: 16px;
  }
  .timer-row {
    gap: 6px;
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-right {
    float: none;
    display: block;
    margin-top: 6px;
  }
}

/* frontend/styles/curriculum.css */
.roadmap-section {
  margin-top: 27px;
}
.roadmap-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.roadmap-head h2 {
  font: 700 17px var(--display);
  letter-spacing: -0.5px;
  margin: 5px 0;
}
.roadmap-head p {
  margin: 0;
  color: #909b93;
  font-size: 9px;
}
.roadmap-badge {
  border: 1px solid #e0e9e1;
  border-radius: 6px;
  color: #6a9275;
  background: #f7faf7;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 6px 8px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.roadmap-card {
  background: #fff;
  border: 1px solid #e7ebe6;
  border-radius: 10px;
  padding: 13px 14px 11px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
}
.roadmap-card.planned {
  background: #f8f9f7;
}
.roadmap-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.roadmap-tag {
  font-size: 7px;
  letter-spacing: 0.65px;
  color: #78947f;
  font-weight: 700;
}
.roadmap-count {
  font-size: 7px;
  color: #a2aaa4;
}
.roadmap-card h3 {
  font: 700 11px var(--display);
  margin: 9px 0 6px;
}
.roadmap-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 4px;
}
.roadmap-card li {
  font-size: 8px;
  color: #89958d;
  padding-left: 10px;
  position: relative;
}
.roadmap-card li:before {
  content: "\b7";
  position: absolute;
  left: 1px;
  color: #8bad94;
  font-weight: 700;
}
.roadmap-try {
  margin-top: auto;
  padding: 7px 0 0;
  border: 0;
  border-top: 1px solid #f0f2ef;
  background: transparent;
  text-align: left;
  color: #5f8b6c;
  font-size: 8px;
  font-weight: 600;
}
.roadmap-try span {
  margin-left: 6px;
  font-size: 12px;
}
.roadmap-coming {
  margin-top: auto;
  padding-top: 8px;
  color: #a1aaa3;
  font-size: 8px;
  border-top: 1px solid #eef0ed;
}
.roadmap-note {
  font-size: 8px;
  color: #9aa49c;
  line-height: 1.7;
  margin: 10px 1px 0;
}
@media (max-width: 1080px) {
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-card {
    min-height: 160px;
  }
  .roadmap-head {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }
}

/* frontend/styles/auth.css */
body.auth-loading .app-shell,
body.auth-required .app-shell {
  display: none;
}
.auth-screen {
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 15% 15%,
      #e7f2e9 0,
      transparent 40%),
    var(--paper);
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-screen.hidden {
  display: none !important;
}
.auth-card {
  position: relative;
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid #e6ebe6;
  border-radius: 16px;
  padding: 28px 32px 23px;
  box-shadow: 0 18px 60px #2b48330d;
}
.auth-brand {
  padding: 0;
}
.auth-locale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 21px;
  color: #8b978e;
  font-size: 9px;
}
.auth-locale-row select,
.app-language {
  border: 1px solid #e3e9e3;
  background: #fbfcfa;
  border-radius: 6px;
  padding: 6px 8px;
  color: #65766a;
  font-size: 9px;
}
.auth-heading .eyebrow {
  font-size: 8px;
}
.auth-heading h1 {
  font: 700 24px var(--display);
  letter-spacing: -0.7px;
  margin: 8px 0 4px;
}
.auth-heading p {
  margin: 0 0 18px;
  color: #89958d;
  font-size: 10px;
}
.auth-form {
  display: grid;
  gap: 7px;
}
.auth-form label {
  font-size: 9px;
  color: #68766d;
  margin-top: 7px;
}
.auth-form input {
  width: 100%;
  border: 1px solid #e1e8e1;
  border-radius: 7px;
  height: 38px;
  padding: 0 10px;
  outline: 0;
  color: #35473b;
  font-size: 11px;
}
.auth-form input:focus {
  border-color: #83b495;
  box-shadow: 0 0 0 3px #83b5971a;
}
.auth-submit {
  width: 100%;
  height: 39px;
  margin-top: 11px;
  text-align: center;
}
.auth-submit span {
  float: right;
}
.auth-switch {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 17px;
  color: #929c95;
  font-size: 9px;
}
.auth-switch button {
  border: 0;
  background: transparent;
  color: #4f8664;
  font-size: 9px;
  font-weight: 700;
}
.auth-local-note {
  font-size: 8px;
  line-height: 1.6;
  color: #a1aaa3;
  text-align: center;
  border-top: 1px solid #eff1ee;
  margin: 17px 0 0;
  padding-top: 12px;
}
.auth-error {
  border: 1px solid #f0d8d3;
  background: #fff7f5;
  border-radius: 7px;
  padding: 8px 10px;
  color: #ab655c;
  font-size: 9px;
  margin-top: 10px;
}
.logout-button {
  border: 1px solid #e4e9e4;
  background: #fff;
  color: #708076;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 8px;
}
.app-language {
  padding: 5px 6px;
}
.auth-screen input {
  font-family: var(--sans);
}
@media (max-width: 720px) {
  .auth-card {
    padding: 24px 21px;
  }
  .top-actions {
    gap: 7px;
  }
  .date-label {
    display: none !important;
  }
  .logout-button {
    font-size: 7px;
    padding: 6px;
  }
  .app-language {
    font-size: 8px;
    padding: 5px;
  }
}

/* frontend/styles/settings.css */
.settings-panel {
  max-width: 900px;
  padding: 28px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.settings-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.settings-grid select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.settings-note {
  margin: 24px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.settings-actions #settings-status {
  color: var(--accent);
  font-size: 13px;
}
@media (max-width: 640px) {
  .settings-panel {
    padding: 18px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-actions .primary-button {
    width: 100%;
  }
}

/* frontend/styles/startup.css */
.startup-screen {
  display: none;
}
body.auth-loading .startup-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #f5f6f2;
}
.startup-card {
  width: min(430px, 100%);
  padding: 32px;
  border: 1px solid #e6ebe6;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.startup-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2c5546;
  font-size: 24px;
  font-weight: 800;
}
.startup-brand span {
  color: #85918a;
  font-size: 12px;
  font-weight: 400;
}
.startup-card h1 {
  margin: 24px 0 12px;
  font-size: 20px;
}
.startup-card p {
  color: #68766d;
  line-height: 1.7;
}
.startup-card button {
  margin: 16px auto 0;
}

/* frontend/styles/platform.css */
.feature-status {
  margin: 16px 0 0;
  border: 1px solid #dbe9df;
  background: #eef6ef;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #42634e;
}
#sync-status {
  font-size: 11px;
  color: #6b7c70;
  cursor: pointer;
}
.extra-panel {
  padding: 24px;
  margin: 18px 0;
}
.extra-panel h2 {
  margin-top: 0;
  font-size: 18px;
}
.extra-panel p,
.extra-panel small {
  color: #66786b;
  line-height: 1.7;
}
.extra-panel button {
  margin: 6px 0;
}
.settings-grid input,
.security-form input,
#word-form input {
  border: 1px solid #dce5dd;
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  color: #33493b;
  background: #fff;
}
.security-form {
  display: grid;
  gap: 10px;
  max-width: 420px;
}
.auth-recover-link {
  display: block;
  border: 0;
  background: none;
  margin: 18px auto 0;
  color: #457b5e;
  font-size: 11px;
  text-decoration: underline;
}
.session-entry {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e5ece6;
  padding: 14px 0;
}
.session-entry div {
  min-width: 0;
}
.session-entry small {
  display: block;
  overflow-wrap: anywhere;
}
#recovery-code-list {
  min-height: 245px;
  width: 100%;
  font: 13px/1.8 monospace;
  padding: 14px;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
}
#word-form {
  display: grid;
  gap: 12px;
}
#word-form label {
  color: #607266;
  font-size: 12px;
}
.dialogue-history {
  display: grid;
  gap: 10px;
  max-height: 270px;
  overflow: auto;
  margin: 14px 0;
}
.dialogue-turn {
  max-width: 92%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f0f4f0;
  font-size: 13px;
}
.dialogue-turn.user {
  justify-self: end;
  background: #e4f2e8;
}
.dialogue-turn p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dialogue-turn b {
  font-size: 10px;
  color: #6c8373;
}
.topic-button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font-weight: 700;
  color: #377956;
  text-decoration: underline;
}
.weak-jp small {
  display: block;
  font-size: 10px;
}
.mini-chart {
  min-height: 150px;
  align-items: center;
}
.mini-chart svg {
  width: 100%;
  height: 140px;
}
.empty-state {
  padding: 24px 10px;
  color: #7d8c82;
  line-height: 1.7;
  font-size: 12px;
}
.exercise-modal {
  max-height: 90vh;
  overflow-y: auto;
}
.exercise-modal #finish-dialogue,
.exercise-modal #save-unscored {
  margin-top: 12px;
}
.skill-row strong {
  white-space: nowrap;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #6fa98b;
  outline-offset: 3px;
}
.roadmap-card p {
  min-height: 70px;
  font-size: 12px;
  color: #718276;
  line-height: 1.6;
}
.roadmap-card small {
  display: block;
  color: #7b8f81;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .feature-status {
    font-size: 11px;
  }
  .session-entry {
    flex-direction: column;
    gap: 8px;
  }
  .extra-panel {
    padding: 18px;
  }
  #sync-status {
    display: none;
  }
  .weak-table-row {
    overflow-wrap: anywhere;
  }
}
.diagnostic-intro {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  margin: 0 0 24px;
}
.diagnostic-intro h3 {
  margin: 0 0 8px;
}
.diagnostic-intro p {
  margin: 0 0 8px;
  max-width: 720px;
  color: #59645d;
  line-height: 1.6;
}
.diagnostic-intro button {
  flex-shrink: 0;
}
.curriculum-filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.curriculum-filters label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.curriculum-filters select,
.curriculum-filters input {
  padding: 10px;
  border: 1px solid #ced8ce;
  border-radius: 8px;
  background: #fff;
  color: #24342b;
}
.curriculum-filters input {
  min-width: 220px;
}
.proficiency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.proficiency-card {
  border: 1px solid #dbe2d7;
  border-radius: 12px;
  padding: 20px;
}
.proficiency-card h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.proficiency-card strong {
  font-size: 30px;
}
.proficiency-card p,
.proficiency-card small {
  font-size: 13px;
  line-height: 1.5;
  color: #59645d;
}
.proficiency-card small {
  display: block;
}
.screen-question {
  white-space: pre-wrap;
  font-size: 20px;
  line-height: 1.8;
}
.screen-choices {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.screen-choices button {
  text-align: left;
  white-space: normal;
  line-height: 1.6;
}
.screen-result {
  border-top: 1px solid #dbe2d7;
  padding: 16px 0;
}
.screen-result p {
  white-space: pre-wrap;
  line-height: 1.6;
}
.listening-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.listening-choice input {
  width: auto;
}
#diagnostic-content > p,
#proficiency-panel > p {
  line-height: 1.7;
  color: #59645d;
}
#diagnostic-content details {
  margin-top: 24px;
}
#task-audio-note {
  font-size: 13px;
  line-height: 1.5;
  color: #59645d;
}
.roadmap-card p {
  line-height: 1.6;
}
.roadmap-grid {
  align-items: stretch;
}
@media (max-width: 900px) {
  .proficiency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diagnostic-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .proficiency-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-filters label,
  .curriculum-filters input {
    width: 100%;
  }
  .diagnostic-intro {
    padding: 18px;
  }
}

/* frontend/styles/lessons.css */
.course-modal {
  width: min(820px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.course-header h2 {
  margin: 3px 0;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.course-header .modal-close {
  position: static;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
#course-content {
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.course-modal p {
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lesson-source {
  font-size: 12px;
  color: #58765d;
}
.lesson-structure {
  padding: 14px;
  background: #edf4ee;
  border-radius: 8px;
}
.lesson-example {
  padding: 16px;
  border: 1px solid #d9e4d8;
  border-radius: 10px;
  margin: 12px 0;
}
.lesson-example p {
  margin: 5px 0;
}
.course-instructions {
  font-size: 13px;
  color: #59645d;
  margin: 0 0 16px;
}
.lesson-question {
  min-inline-size: 0;
  min-width: 0;
  border: 1px solid #d9e4d8;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  background: #f7faf7;
}
.lesson-question legend {
  padding: 0 6px;
  color: #58765d;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.lesson-question .lesson-question-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  white-space: pre-wrap;
}
.lesson-audio {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.lesson-audio .outline-button {
  height: auto;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.lesson-audio [role=status] {
  font-size: 12px;
  line-height: 1.6;
  color: #59645d;
  flex: 1 1 130px;
}
.lesson-options {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.lesson-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce5dd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  min-height: 46px;
}
.lesson-choice input {
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.lesson-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.lesson-choice:has(input:checked) {
  background: #e9f4ee;
  border-color: #79a58d;
}
.lesson-choice:has(input:disabled) {
  cursor: default;
  color: #87918b;
  background: #f5f7f4;
}
.lesson-choice:focus-within {
  outline: 2px solid #6fa98b;
  outline-offset: 2px;
}
.course-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 0;
}
.course-actions .primary-button {
  font-size: 14px;
  padding: 12px 18px;
  min-height: 44px;
  white-space: normal;
}
.course-actions .text-button {
  font-size: 13px;
  line-height: 1.5;
  min-height: 44px;
  white-space: normal;
  text-align: left;
}
.roadmap-card > .outline-button {
  margin-top: 16px;
}
.course-modal h3 {
  margin: 24px 0 8px;
}
@media (max-width: 560px) {
  #course-backdrop {
    padding: 8px;
  }
  .course-modal {
    max-height: calc(100dvh - 16px);
  }
  .course-header {
    padding: 16px;
    gap: 12px;
  }
  #course-content {
    padding: 16px;
  }
  .lesson-question {
    padding: 12px;
  }
  .course-actions {
    align-items: stretch;
  }
  .course-actions > button {
    width: 100%;
    text-align: center !important;
  }
}

/* frontend/styles/journey.css */
.onboarding-modal {
  max-width: 640px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.onboarding-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.onboarding-form label {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.onboarding-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.journey-step {
  font-size: 14px;
  color: var(--deep);
  font-weight: 600;
}
.journey-note {
  padding: 16px;
  background: var(--mint);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--deep);
}
.journey-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  line-height: 1.6;
}
.journey-summary dt {
  color: #56675e;
}
.journey-summary dd {
  margin: 0;
  font-weight: 600;
}
.guided-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.guided-plan b {
  font-size: 16px;
}
.guided-plan small {
  font-size: 13px;
  color: #56675e;
}
.correction-panel {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #d4b57e;
  border-radius: 12px;
}
.correction-panel .lesson-question {
  margin: 16px 0;
}
.correction-panel .lesson-choice:has(input:checked) {
  background: var(--mint);
}
.usage-details {
  margin-top: 16px;
}
.usage-details summary {
  cursor: pointer;
  font-size: 14px;
}
#onboarding-error {
  color: #934536;
  margin: 0;
}
#reopen-onboarding {
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .onboarding-modal {
    padding: 22px;
  }
  .journey-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .journey-summary dd {
    margin-bottom: 12px;
  }
  .onboarding-form .course-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .onboarding-form .primary-button {
    width: 100%;
  }
}

/* frontend/styles/content-editor.css */
.editor-filters,
.editor-toolbar,
.editor-columns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.editor-filters label,
.editor-columns > label {
  flex: 1;
  min-width: 180px;
}
#content-page {
  max-width: 1100px;
}
#content-page label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
#content-page input,
#content-page select,
#content-page textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line, #d7dfd6);
  border-radius: 10px;
  padding: 10px;
  background: white;
  color: #192c29;
  font: inherit;
  box-sizing: border-box;
}
#content-page textarea {
  min-height: 100px;
  resize: vertical;
}
#content-page fieldset {
  min-width: 0;
  padding: 18px;
  margin: 18px 0;
  border: 1px solid #d7dfd6;
  border-radius: 12px;
}
#content-page legend {
  padding: 0 8px;
  font-weight: 600;
}
#content-page button {
  min-height: 42px;
  white-space: normal;
  border: 1px solid #cbdacf;
  border-radius: 9px;
  padding: 10px 16px;
  background: #fff;
  color: #2b5040;
  font: inherit;
  cursor: pointer;
}
#content-page button:hover {
  background: #edf4ed;
}
#content-page button.primary,
#content-page [data-editor=publish] {
  border-color: #376d53;
  background: #376d53;
  color: #fff;
}
#content-page button:focus-visible {
  outline: 3px solid #80b395;
  outline-offset: 3px;
}
#content-page button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#content-page pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.editor-list article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #d7dfd6;
}
.editor-list p {
  margin: 8px 0;
  color: #587169;
}
.editor-save {
  position: sticky;
  bottom: 0;
  background: #fafbf8;
  padding: 16px;
  border-top: 1px solid #d7dfd6;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
#editor-message {
  color: #376d53;
  white-space: pre-wrap;
  position: sticky;
  top: 0;
  background: #fafbf8;
  z-index: 1;
}
#editor-message.editor-error {
  color: #9b3c24;
}
#editor-message:empty {
  display: none;
}
.editor-preview {
  padding: 24px;
  background: white;
  border-radius: 16px;
}
.editor-list b {
  overflow-wrap: anywhere;
}
#content-page details {
  margin: 20px 0;
}
@media (max-width: 600px) {
  .editor-columns {
    display: block;
  }
  .editor-list article {
    align-items: start;
  }
  .editor-toolbar {
    align-items: stretch;
  }
  .editor-toolbar > * {
    flex: 1 1 130px;
  }
  .editor-save button {
    flex: 1;
  }
  .editor-filters label {
    min-width: 130px;
  }
  #content-page fieldset {
    padding: 12px;
  }
}

/* frontend/styles/chatgpt.css */
#chatgpt-settings {
  margin-top: 24px;
}
#chatgpt-settings label,
#ai-provider-settings label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  max-width: 540px;
}
#chatgpt-settings select,
#ai-provider-settings select {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #cddbd0;
  border-radius: 8px;
  background: white;
  font: inherit;
}
#chatgpt-settings p {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#chatgpt-settings button {
  min-height: 44px;
  white-space: normal;
  font-size: 14px;
  line-height: 1.4;
}
#chatgpt-message {
  color: #835127;
}
#chatgpt-message:empty {
  display: none;
}
.chatgpt-connection {
  color: #376d53;
}
@media (max-width: 600px) {
  #chatgpt-settings .settings-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* frontend/styles/preparation.css */
.preparation-backdrop {
  z-index: 20;
}
.preparation-modal {
  width: min(440px, 100%);
  padding: 32px 28px;
  text-align: center;
  outline: none;
}
.preparation-modal h2 {
  font-size: 22px;
  line-height: 1.45;
  margin: 20px 0 12px;
  overflow-wrap: anywhere;
}
.preparation-modal p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: #53685c;
}
#preparation-status:not(:empty) {
  margin-top: 14px;
}
.preparation-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 4px solid #dfebe2;
  border-top-color: #376d53;
  border-radius: 50%;
  animation: preparation-spin 0.9s linear infinite;
}
@keyframes preparation-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .preparation-spinner {
    animation: none;
  }
}

/* frontend/styles/demo.css */
.demo-banner {
  margin: 0;
  padding: 10px 18px;
  background: #edf5ef;
  color: #376d53;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
body:has(.demo-banner) {
  padding-top: 40px;
}
.demo-privacy {
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid #dbe7dd;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #4d6357;
  background: #f5f8f4;
}
body[data-demo=true] .primary-button,
body[data-demo=true] .outline-button,
body[data-demo=true] .text-button {
  font-size: 14px;
  line-height: 1.4;
  min-height: 44px;
  white-space: normal;
}

/* frontend/styles/index.css */
