:root {
  --paper: #f7f7f2;
  --surface: #fff;
  --ink: #283a34;
  --muted: #7d877f;
  --green: #244f44;
  --green-light: #edf2e9;
  --line: #e6e9df;
  --sand: #f5eee1;
  --orange: #c69058;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c7965c;
  outline-offset: 4px;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.45;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.8;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: white;
  padding: 12px 21px;
  border-radius: 10px;
  font-weight: 550;
  min-height: 45px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: #183d34;
  transform: translateY(-1px);
}
.button.secondary {
  background: #f4f6f0;
  border: 1px solid #dfe5da;
  color: var(--green);
}
.button.secondary:hover {
  background: #e9eee4;
}
.button.light {
  background: #f6f2e6;
  color: #284d42;
}
.button.light:hover {
  background: white;
}
.button.full {
  width: 100%;
}
.text-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  background: none;
  color: var(--green);
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--green);
  background: #eef2e9;
}
.icon-button:hover {
  background: #e2eadc;
}
.icon-button.filled {
  background: var(--green);
  color: white;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.fine-print {
  font-size: 12px;
  color: #7a837c;
  line-height: 1.8;
  margin-top: 18px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2.2px;
  color: #7f8f80;
  margin-bottom: 9px;
}
.tiny-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  padding: 3px 8px;
  white-space: nowrap;
  color: #5d7565;
  background: #edf2e8;
  border-radius: 5px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-title > span {
  font-size: 11px;
  color: var(--muted);
}
.section-title h2 .icon {
  margin-right: 7px;
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
}
.sidebar {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 35px 20px 20px;
  background: #fbfcf8;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  margin-bottom: 53px;
}
.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 13px;
  font-size: 32px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1;
  color: #faf6e9;
}
.brand-mark > span {
  position: absolute;
  right: 5px;
  top: 1px;
  font-family: serif;
  color: #d6b17e;
  font-size: 20px;
}
.brand b {
  display: block;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1.2;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 6px;
  color: #849082;
}
.nav-caption {
  font-size: 10px;
  color: #9aa294;
  letter-spacing: 1.3px;
  padding: 0 15px;
  margin-bottom: 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 47px;
  border-radius: 9px;
  padding: 12px 15px;
  background: transparent;
  color: #7c887e;
  margin-bottom: 7px;
  font-size: 13px;
  text-align: left;
}
.nav-item:hover {
  background: #f0f3eb;
}
.nav-item.active {
  background: #e7eee1;
  color: #2d5444;
  font-weight: 600;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-dot {
  height: 6px;
  width: 6px;
  background: #658264;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.daily-note {
  position: relative;
  margin: 30px 14px 28px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
}
.daily-note > span {
  font-family: "Hiragino Mincho ProN", serif;
  letter-spacing: 2px;
  font-size: 17px;
  color: #677c65;
}
.daily-note p {
  margin-top: 9px;
  color: #98a090;
  font-size: 10px;
  line-height: 1.9;
}
.daily-note .icon {
  position: absolute;
  right: 3px;
  bottom: 0;
  width: 33px;
  height: 33px;
  color: #c4cdb7;
  transform: rotate(-10deg);
}
.profile {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding: 18px 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eceadd;
  color: #6f795f;
  border: 1px solid #e1e3d5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: serif;
  font-size: 18px;
}
.profile b {
  font-size: 11px;
  font-weight: 550;
}
.profile small {
  display: block;
  color: #929b8c;
  font-size: 9px;
  margin-top: 2px;
}
.main {
  margin-left: 226px;
  min-height: 100vh;
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  background: var(--paper);
}
.breadcrumb {
  font-size: 11px;
  color: #899184;
}
.breadcrumb > span {
  padding: 0 14px;
  color: #c0c6b9;
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #8b9486;
  font-size: 11px;
}
.streak {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: #eeefe5;
  color: #7b856c;
}
.streak .icon {
  width: 15px;
  height: 15px;
}
.page {
  max-width: 1320px;
  padding: 34px 42px 30px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 12px;
  color: #8a9387;
  margin-top: 8px;
  letter-spacing: 0.2px;
}
.level-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #74836b;
  background: #ecefe4;
  border-radius: 20px;
  padding: 7px 12px;
  white-space: nowrap;
}
.level-pill .icon {
  width: 14px;
  height: 14px;
}
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: #244d42;
  border-radius: 18px;
  min-height: 276px;
  color: #f8f7eb;
  padding: 34px 37px;
  margin-bottom: 22px;
}
.hero-copy {
  z-index: 1;
  min-width: 300px;
}
.hero-label {
  display: flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #bed0b8;
  gap: 8px;
}
.light-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7d7ac;
}
.hero-divider {
  margin: 0 5px;
  opacity: 0.4;
}
.hero h2 {
  font-size: 29px;
  letter-spacing: 1px;
  font-weight: 550;
  margin: 17px 0 10px;
}
.hero p {
  color: #c1d0bd;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.3px;
}
.hero .button {
  margin-top: 23px;
  font-size: 12px;
  gap: 11px;
  padding: 12px 18px;
}
.hero .button .icon {
  width: 16px;
  height: 16px;
}
.hero .button .icon:last-child {
  margin-left: 14px;
}
.hero-meta {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #a6bfaa;
  font-size: 9px;
  margin-left: 14px;
}
.hero-meta .icon {
  width: 12px;
  height: 12px;
}
.hero-art {
  width: 300px;
  min-width: 250px;
  height: 235px;
  position: relative;
  right: 10px;
  margin: -10px -12px -10px 0;
}
.art-circle {
  position: absolute;
  inset: 6px 25px 0 25px;
  width: 224px;
  height: 224px;
  border: 1px solid #668472;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #335c4d 0, #2b5246 70%);
}
.art-circle:after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px dashed #5d7964;
  opacity: 0.7;
}
.kana-big {
  position: absolute;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 183px;
  line-height: 1.2;
  left: 52px;
  top: 8px;
  color: #e7dfbd;
  transform: rotate(-10deg);
  text-shadow: 9px 9px 0 #173c32;
}
.art-label {
  position: absolute;
  writing-mode: vertical-rl;
  right: 11px;
  top: 35px;
  font-size: 10px;
  letter-spacing: 4px;
  color: #bacaa8;
  font-family: serif;
}
.art-spark {
  position: absolute;
  top: 5px;
  left: 23px;
  font-size: 29px;
  color: #b7c7a1;
}
.art-tag {
  position: absolute;
  bottom: 6px;
  left: 15px;
  padding: 10px 14px;
  color: #3a5744;
  transform: rotate(-6deg);
  background: #e9e7d5;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 15px #102b3222;
}
.art-tag span {
  font-size: 8px;
  display: block;
  color: #83917b;
  margin-top: 2px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.stat-icon {
  width: 39px;
  height: 42px;
  background: #eff3e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #73866a;
  flex-shrink: 0;
}
.stat-icon.peach {
  background: #f6efe5;
  color: #b99167;
}
.stat-icon.lilac {
  background: #eeedf3;
  color: #8f8ba1;
}
.stat-icon .icon {
  width: 19px;
  height: 19px;
}
.stat-label {
  color: #939b8d;
  font-size: 10px;
  display: block;
  margin-bottom: 5px;
}
.stat strong {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
  color: #3b4e40;
}
.stat strong small {
  font-size: 10px;
  color: #a1a697;
  font-weight: 400;
  margin-left: 4px;
}
.mini-ring {
  background: conic-gradient(#72876a var(--p), #edf0e7 0);
  width: 39px;
  height: 39px;
  border-radius: 50%;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.mini-ring > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  font-size: 9px;
  color: #7f8c73;
}
.stat-aside {
  margin-left: auto;
  align-self: flex-end;
  color: #a0a893;
  font-size: 9px;
  padding-bottom: 5px;
}
.stat > .text-button {
  margin-left: auto;
  align-self: flex-end;
  font-size: 10px;
  white-space: nowrap;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(260px, 1fr);
  gap: 22px;
}
.plan-panel {
  padding: 24px 23px 0;
}
.plan-panel .section-title {
  margin-bottom: 8px;
}
.section-title h2 {
  font-size: 15px;
}
.agenda-row {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  background: white;
  border-bottom: 1px solid #f0f1ea;
  padding: 19px 0;
  gap: 13px;
}
.agenda-row:hover {
  background: #fafbf7;
}
.agenda-row:last-child {
  border-bottom: 0;
}
.step-number {
  font-size: 10px;
  color: #b0b6a8;
  min-width: 17px;
}
.agenda-icon {
  height: 37px;
  width: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f1e7;
  color: #82926b;
  border-radius: 9px;
  flex-shrink: 0;
}
.agenda-icon .icon {
  width: 17px;
  height: 17px;
}
.tone-1 {
  background: #f4eddf;
  color: #bc9b66;
}
.tone-2 {
  background: #e9efeb;
  color: #769480;
}
.tone-3 {
  background: #eeedf4;
  color: #9991b4;
}
.tone-4 {
  background: #f4eee5;
  color: #ba9673;
}
.agenda-text {
  display: block;
  flex: 1;
  min-width: 0;
}
.agenda-text b {
  font-size: 12px;
  font-weight: 550;
  color: #485343;
  display: block;
  margin-bottom: 4px;
}
.agenda-text small {
  font-size: 10px;
  color: #a0a594;
  display: block;
  line-height: 1.5;
}
.agenda-minutes {
  font-size: 10px;
  color: #9ca48e;
  white-space: nowrap;
}
.agenda-row > .icon {
  width: 13px;
  height: 13px;
  color: #b2baaa;
}
.plan-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #a1aa94;
  border-top: 1px solid #eff1e7;
  padding: 14px 0;
}
.plan-foot .icon {
  width: 12px;
  height: 12px;
}
.right-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.coach-note {
  background: #edf0e3;
  border: 1px solid #e2e7d7;
  border-radius: var(--radius);
  padding: 23px;
}
.coach-note h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #536a49;
  margin-bottom: 12px;
}
.coach-note .section-title {
  margin-bottom: 10px;
}
.coach-note .section-title h2 {
  margin-bottom: 0;
}
.coach-note .section-title .tiny-pill {
  font-size: 9px;
  background: #e1e7d4;
  color: #7e8a67;
}
.coach-note p {
  font-size: 11px;
  color: #819171;
  line-height: 2;
  margin-top: 9px;
}
.coach-note .muted {
  font-size: 10px;
  color: #97a088;
}
.coach-separator {
  border-bottom: 1px solid #dce3cd;
  margin: 14px 0 12px;
}
.week-panel {
  padding: 20px 23px;
}
.week-chart {
  height: 104px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: stretch;
  margin: 8px 0 12px;
}
.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6px;
}
.week-day > span:last-child {
  font-size: 9px;
  color: #a2aa97;
}
.week-day.current > span:last-child {
  color: #5e7651;
}
.bar-value {
  font-size: 8px;
  color: #96a184;
  height: 12px;
}
.bar-track {
  height: 65px;
  display: flex;
  align-items: flex-end;
  width: 13px;
  background: #f8f9f5;
  border-radius: 3px;
  overflow: hidden;
}
.bar-track > div {
  background: #d6dfc6;
  min-height: 2px;
  width: 100%;
  border-radius: 3px;
}
.week-day.current .bar-track > div {
  background: #7c9465;
}
.week-panel > .muted {
  text-align: center;
  font-size: 9px;
}
.real-task {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e6e7d8;
  border-radius: 12px;
  background: #f3f1e7;
  padding: 18px 23px;
  margin-top: 24px;
}
.real-task-icon {
  background: #e8eadb;
  color: #8f9c76;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.real-task b {
  font-size: 11px;
  color: #6f7c5c;
}
.real-task p {
  font-size: 10px;
  color: #9ba389;
  margin-top: 4px;
}
.real-task > .text-button {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  color: #81916b;
}
.footer {
  display: flex;
  justify-content: space-between;
  max-width: 1320px;
  margin: auto;
  padding: 0 42px 22px;
  font-size: 9px;
  color: #a1a99a;
}
.footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sync-dot,
.offline-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #8ba77a;
  border-radius: 50%;
  vertical-align: middle;
}
.offline-dot {
  background: #c8a16d;
}
.course-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 11px;
  color: #8a9684;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.course-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s;
}
.course-card:hover {
  transform: translateY(-3px);
}
.course-card.recommended {
  border-color: #a9b99c;
  background: #fcfdf8;
}
.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8c9a81;
  font-size: 9px;
  letter-spacing: 1px;
}
.course-jp {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #749167;
  font-size: 24px;
  line-height: 1.6;
  margin: 30px 0 18px;
  min-height: 38px;
}
.course-card h2 {
  font-size: 16px;
}
.course-card p {
  font-size: 11px;
  color: #929b8c;
  margin: 10px 0 24px;
  min-height: 40px;
}
.course-progress {
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: #edf0e8;
  margin-bottom: 14px;
}
.course-progress > div {
  background: #86a176;
  height: 100%;
}
.course-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-bottom small {
  font-size: 9px;
  color: #9aa58e;
}
.course-bottom .icon-button {
  width: 30px;
  height: 30px;
}
.segmented {
  display: inline-flex;
  background: #ecefe4;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 23px;
}
.segmented button {
  padding: 9px 20px;
  background: transparent;
  color: #8c9982;
  border-radius: 7px;
  font-size: 12px;
}
.segmented button.selected {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #26332309;
}
.kana-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
}
.kana-table {
  padding: 22px;
}
.kana-columns,
.kana-row {
  display: grid;
  grid-template-columns: 65px repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.kana-columns {
  color: #a2aa98;
  text-align: center;
  font-size: 12px;
  margin-bottom: 15px;
}
.row-label {
  color: #9ca58f;
  font-size: 10px;
}
.kana-cell {
  position: relative;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f6f8f1;
  border-radius: 10px;
  color: #4b6243;
  border: 1px solid transparent;
}
.kana-cell:hover,
.kana-cell.selected {
  background: #e9efdf;
  border-color: #b8c5a6;
}
.kana-cell b {
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}
.kana-cell small {
  font-size: 10px;
  color: #98a38a;
}
.kana-cell i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #7c9c67;
  border-radius: 50%;
  right: 8px;
  top: 8px;
}
.kana-detail {
  height: max-content;
  position: sticky;
  top: 25px;
  text-align: center;
  padding: 30px 23px;
}
.detail-kana {
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 110px;
  color: #648354;
  line-height: 1.6;
  display: block;
}
.kana-detail .reading {
  font-size: 20px;
  color: #9ca98b;
  display: block;
  margin-top: -15px;
  margin-bottom: 25px;
}
.kana-detail h2 {
  font-size: 15px;
  margin-bottom: 14px;
}
.kana-detail p {
  font-size: 12px;
  color: #939e87;
  text-align: left;
}
.kana-detail .button {
  margin-top: 25px;
}
.callout {
  background: #f4f2e7;
  padding: 15px 18px;
  font-size: 12px;
  color: #a09170;
  border-radius: 10px;
  line-height: 1.9;
  margin: 20px 0;
}
.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr;
  gap: 24px;
  align-items: start;
}
.note-form h2 {
  margin-bottom: 25px;
}
label {
  display: block;
  font-size: 12px;
  color: #75836b;
  margin: 16px 0 8px;
}
label > span {
  font-size: 10px;
  color: #abb39f;
  margin-left: 6px;
}
textarea,
input:not([type="checkbox"]),
select {
  background: #fbfcf7;
  border: 1px solid #dfe5d5;
  border-radius: 9px;
  padding: 12px 14px;
  color: #42573b;
  width: 100%;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
textarea::placeholder,
input::placeholder {
  color: #acb29f;
  font-size: 12px;
}
textarea:focus,
input:focus,
select:focus {
  border-color: #8aa078;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 23px;
}
.form-actions .muted {
  font-size: 10px;
}
.notes-title {
  margin-top: 35px;
}
.note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.saved-note p {
  font-size: 13px;
  color: #7b886f;
  white-space: pre-wrap;
}
.saved-note .section-title {
  margin-bottom: 14px;
}
.saved-note .section-title .icon-button {
  width: 28px;
  height: 28px;
  background: transparent;
  color: #a9b09d;
}
.note-jp {
  margin: 18px 0;
  padding: 14px;
  background: #f2f5e9;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6c855b;
  font-size: 16px;
}
.empty-state {
  text-align: center;
  padding: 65px 25px;
  border: 1px dashed #dbe2cd;
  border-radius: 16px;
  background: #fafbf6;
  grid-column: 1/-1;
}
.empty-state > .icon {
  color: #bac8a6;
  width: 35px;
  height: 35px;
  margin-bottom: 20px;
}
.empty-state h3 {
  font-weight: 500;
  color: #7e916f;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  color: #a2ad95;
}
.empty-state.compact {
  padding: 35px;
  border: 0;
}
.generated-card {
  margin-top: 25px;
}
.generated-card h2 {
  font-size: 28px;
  color: #5a7848;
  margin: 14px 0;
}
.generated-card h3 {
  margin: 12px 0;
}
.generated-card > .text-button {
  margin-left: 20px;
}
.progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.metric {
  padding: 23px;
}
.metric > span {
  font-size: 11px;
  color: #93a085;
}
.metric strong {
  display: block;
  font-size: 31px;
  color: #586f49;
  margin-top: 14px;
  font-weight: 500;
}
.metric small {
  font-size: 12px;
  margin-left: 6px;
  color: #a3ae98;
  font-weight: 400;
}
.progress-columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 23px;
  margin-bottom: 25px;
}
.ability-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 24px;
}
.ability-row > div {
  flex: 1;
}
.ability-row b {
  font-size: 13px;
  color: #70885e;
  font-weight: 500;
}
.ability-row small {
  font-size: 10px;
  color: #9da98e;
}
.ability-bar {
  height: 5px;
  background: #f0f3e8;
  margin: 8px 0;
  border-radius: 5px;
  overflow: hidden;
}
.ability-bar > div {
  height: 100%;
  background: #9cb486;
}
.progress-columns .week-chart {
  height: 190px;
  margin-top: 32px;
}
.progress-columns .bar-track {
  height: 140px;
  width: 25px;
}
.progress-columns .muted {
  margin-top: 20px;
  font-size: 11px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 400;
  color: #a1ac94;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f3e9;
  color: #7e8b72;
}
td:first-child {
  color: #587048;
}
td:last-child {
  font-size: 10px;
  color: #a9b19e;
  white-space: nowrap;
}
.result-tag {
  font-size: 10px;
  padding: 4px 8px;
  background: #f5efe0;
  color: #aa9667;
  border-radius: 5px;
  white-space: nowrap;
}
.result-tag.success {
  background: #edf4e4;
  color: #7b985c;
}
.tutor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 1fr;
  gap: 23px;
}
.chat-panel {
  padding: 0;
  overflow: hidden;
}
.chat-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.chat-status b {
  font-size: 13px;
}
.chat-status small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #9da68f;
  margin-top: 3px;
}
.chat-messages {
  min-height: 280px;
  max-height: 440px;
  overflow-y: auto;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.chat-bubble {
  max-width: 90%;
  padding: 15px 18px;
  font-size: 13px;
  line-height: 1.9;
  border-radius: 0 12px 12px 12px;
  background: #f0f4e8;
  color: #728663;
  white-space: normal;
  overflow-wrap: anywhere;
  align-self: flex-start;
}
.chat-bubble.user {
  background: #315443;
  color: #eef3e6;
  align-self: flex-end;
  border-radius: 12px 0 12px 12px;
}
.chat-bubble small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px;
  color: #a0af90;
}
.connection-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8f4e9;
  margin: 15px 20px;
  padding: 15px;
  color: #a5956e;
  border-radius: 9px;
}
.connection-notice > b {
  font-size: 12px;
}
.connection-notice p {
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.9;
}
.connection-notice > .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.chat-input {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.chat-input textarea {
  border: 0;
  background: transparent;
  resize: none;
  padding: 6px;
}
.prompt-chips h3 {
  margin-bottom: 15px;
}
.prompt-chips button {
  font-size: 11px;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid #eff2e7;
  color: #879a72;
  background: transparent;
  line-height: 1.8;
}
.prompt-chips button .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
}
.settings-form {
  max-width: 850px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:first-child {
  padding-top: 5px;
}
.setting-row h2 {
  font-size: 14px;
}
.setting-row p {
  font-size: 11px;
  color: #9aa68d;
  margin-top: 8px;
}
.setting-row select {
  width: 180px;
  font-size: 12px;
  flex-shrink: 0;
}
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span:not(.sr-only) {
  display: block;
  margin: 0;
  width: 42px;
  height: 24px;
  background: #dce5d2;
  border-radius: 20px;
}
.switch span:not(.sr-only):after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
.switch input:checked + span {
  background: #7c9965;
}
.switch input:checked + span:after {
  left: 21px;
}
.switch input:focus-visible + span {
  outline: 3px solid #c69058;
  outline-offset: 3px;
}
.settings-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 25px;
  max-width: 850px;
}
.settings-bottom h2 {
  font-size: 15px;
  margin-bottom: 15px;
}
.settings-bottom p {
  font-size: 12px;
  color: #93a185;
  margin-bottom: 15px;
}
.session-page {
  max-width: 970px;
}
.session-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.session-toolbar > .text-button {
  font-size: 12px;
}
.session-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #91a07d;
  font-size: 12px;
}
.session-timer .icon {
  width: 16px;
  height: 16px;
}
.session-timer .icon-button {
  width: 29px;
  height: 29px;
}
.session-progress {
  height: 5px;
  border-radius: 5px;
  background: #e8eede;
  overflow: hidden;
}
.session-progress > div {
  height: 100%;
  background: #91aa77;
  transition: width 0.3s;
}
.session-meta {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 25px;
  font-size: 11px;
  color: #9ca98c;
}
.practice-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 37px 45px;
  min-height: 440px;
  text-align: center;
  overflow: hidden;
}
.practice-label {
  font-size: 12px;
  color: #99a78a;
}
.study-jp {
  font-size: 38px;
  color: #375936;
  line-height: 1.8;
  margin: 26px 0 4px;
  overflow-wrap: anywhere;
}
.study-jp.large-kana {
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 108px;
  margin: 6px 0 -10px;
  line-height: 1.6;
}
.study-reading {
  font-size: 15px;
  letter-spacing: 1px;
  color: #a0b18e;
}
.study-meaning {
  font-size: 18px;
  color: #6f8560;
  font-weight: 500;
  margin: 15px 0 22px;
}
.audio-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.audio-actions .button {
  font-size: 12px;
}
.usage-note {
  margin: 30px 0;
  text-align: left;
  background: #f7f6ee;
  border-radius: 12px;
  padding: 20px 24px;
}
.usage-note > span {
  font-size: 10px;
  color: #aa9c76;
}
.usage-note p {
  font-size: 12px;
  color: #8c937b;
  margin-top: 7px;
}
.usage-note small {
  display: block;
  font-size: 11px;
  color: #a3ac92;
  margin-top: 10px;
}
.next-button {
  min-width: 220px;
  font-size: 12px;
  margin-top: 3px;
}
.session-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #a5b297;
  margin-top: 20px;
}
.session-foot .icon {
  width: 13px;
  height: 13px;
}
.quiz-jp {
  font-size: 33px;
  color: #43623d;
  line-height: 1.8;
  margin: 35px 0;
  overflow-wrap: anywhere;
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 25px 0 18px;
}
.option {
  padding: 17px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e3e8da;
  background: #fcfdf9;
  color: #7f9170;
  border-radius: 10px;
  font-size: 13px;
}
.option > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: #f1f4e9;
  color: #a2b48f;
  font-size: 11px;
  flex-shrink: 0;
}
.option:hover {
  border-color: #9cb886;
  background: #f4f8ec;
}
.option.correct {
  background: #edf6e3;
  border-color: #9ebc82;
  opacity: 1;
}
.quiz-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.quiz-tools > .text-button {
  font-size: 11px;
  color: #a3b28f;
}
.listen-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: #edf4e3;
  color: #86a86c;
  border: 1px solid #deebce;
  border-radius: 50%;
  margin: 32px auto 13px;
  box-shadow: 0 0 0 12px #f8fbf3;
}
.listen-orb .icon {
  width: 36px;
  height: 36px;
}
.listen-orb:hover {
  background: #e2eed4;
}
.listen-caption {
  font-size: 11px;
  color: #9dad8c;
  margin-bottom: 30px;
}
.hint-box {
  font-size: 13px;
  color: #9a8f68;
  background: #faf5e8;
  padding: 18px;
  border-radius: 10px;
  margin: 22px 0;
  text-align: left;
}
.hint-box p {
  margin-top: 8px;
  font-size: 11px;
}
.recall-prompt {
  font-size: 22px;
  color: #5f7d4d;
  max-width: 540px;
  margin: 35px auto 15px;
  line-height: 1.7;
}
.practice-card > .muted {
  font-size: 11px;
  margin-bottom: 25px;
}
.answer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.answer-controls .button {
  font-size: 11px;
  padding: 10px 14px;
}
.answer-controls .text-button {
  font-size: 11px;
}
.practice-card textarea {
  text-align: left;
}
.practice-card audio {
  display: block;
  margin: 18px auto;
  width: 100%;
  max-width: 400px;
}
.feedback {
  border-radius: 13px;
  text-align: left;
  margin-top: 25px;
  padding: 23px;
  background: #f7f2e5;
  color: #ac9463;
}
.feedback.positive {
  background: #f0f6e6;
  color: #7a985a;
}
.feedback-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.feedback-heading b {
  font-weight: 550;
  font-size: 14px;
}
.feedback p {
  font-size: 12px;
  margin-bottom: 8px;
}
.feedback small {
  font-size: 10px;
  line-height: 1.7;
  display: block;
  color: #a9a086;
}
.feedback .button {
  display: flex;
  margin: 18px 0 0 auto;
  font-size: 12px;
  padding: 10px 18px;
}
.pause-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fcfdf8f5;
  z-index: 5;
  gap: 25px;
  backdrop-filter: blur(5px);
}
.pause-overlay > span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3e3;
  color: #8aa56f;
}
.pause-overlay h2 {
  color: #82966a;
  font-weight: 500;
}
.completion {
  text-align: center;
  max-width: 670px;
  margin: 30px auto;
}
.completion-mark {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #e9f1db;
  color: #87a467;
  display: grid;
  place-items: center;
  margin: 0 auto 27px;
}
.completion-mark .icon {
  width: 32px;
  height: 32px;
}
.completion h1 {
  font-size: 28px;
  margin: 12px 0;
}
.completion > p {
  font-size: 12px;
  color: #9cab8c;
}
.completion-stats {
  display: flex;
  justify-content: center;
  gap: 55px;
  margin: 35px 0;
}
.completion-stats strong {
  display: block;
  font-size: 33px;
  font-weight: 500;
  color: #6f8b54;
}
.completion-stats span {
  font-size: 11px;
  color: #9eaf88;
}
.completion .coach-note {
  text-align: left;
}
.completion .coach-note h2 {
  justify-content: flex-start;
}
.completion-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #21352365;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(3px);
}
.modal {
  background: #fffef9;
  border-radius: 18px;
  padding: 30px;
  max-width: 460px;
  box-shadow: 0 15px 60px #15221725;
}
.modal h2 {
  font-size: 20px;
  color: #64834e;
}
.modal p {
  font-size: 13px;
  color: #9aaa88;
  margin: 18px 0 24px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.modal .button {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 110px);
  transform: translate(-50%, 20px);
  background: #314d38;
  color: #fafbf4;
  box-shadow: 0 6px 25px #223a2825;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  max-width: min(560px, 80vw);
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.thinking {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
@media (min-width: 1500px) {
  .page {
    padding-top: 42px;
  }
  .hero {
    min-height: 300px;
  }
  .hero-art {
    margin-right: 35px;
  }
  .agenda-row {
    padding: 22px 0;
  }
  .hero h2 {
    font-size: 34px;
  }
  .hero-copy p {
    font-size: 13px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main {
    margin-left: 195px;
  }
  .page {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero {
    padding: 28px;
  }
  .hero-art {
    width: 220px;
    min-width: 210px;
    transform: scale(0.83);
    transform-origin: right center;
    margin-left: -40px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero-meta {
    display: flex;
    margin: 12px 0 0;
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: 16px;
  }
  .stats-row {
    gap: 10px;
  }
  .stat {
    padding: 16px 12px;
    gap: 9px;
  }
  .stat-icon {
    width: 32px;
    height: 36px;
  }
  .stat-aside {
    display: none;
  }
  .mini-ring {
    width: 34px;
    height: 34px;
  }
  .mini-ring > span {
    width: 28px;
    height: 28px;
  }
  .stat strong {
    font-size: 21px;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kana-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .kana-columns,
  .kana-row {
    grid-template-columns: 45px repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .kana-cell {
    min-height: 60px;
  }
  .kana-cell b {
    font-size: 25px;
  }
  .kana-table {
    padding: 16px;
  }
  .tutor-layout {
    grid-template-columns: minmax(0, 1.6fr) 1fr;
  }
  .real-task {
    padding: 16px;
  }
  .real-task > .text-button {
    font-size: 9px;
  }
  .agenda-row {
    gap: 9px;
  }
  .agenda-minutes {
    font-size: 9px;
  }
  .coach-note {
    padding: 20px;
  }
  .page-heading .level-pill {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 75px;
    padding: 25px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
    margin-bottom: 40px;
  }
  .brand > span:last-child,
  .nav-caption,
  .nav-item > span,
  .nav-dot,
  .daily-note,
  .profile {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 12px;
    margin-bottom: 12px;
  }
  .nav-item .icon {
    width: 21px;
    height: 21px;
  }
  .main {
    margin-left: 75px;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .page {
    padding: 25px;
  }
  .topbar {
    height: 68px;
    padding: 0 25px;
  }
  .hero-art {
    margin-right: -20px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-copy {
    min-width: 260px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat > .text-button {
    font-size: 9px;
  }
  .mini-ring {
    display: none;
  }
  .tutor-layout {
    grid-template-columns: 1fr;
  }
  .tutor-layout > .right-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .notes-layout {
    grid-template-columns: 1.6fr 1fr;
  }
  .progress-columns {
    grid-template-columns: 1fr 1fr;
  }
  .progress-stats {
    gap: 12px;
  }
  .metric {
    padding: 18px;
  }
  .metric > span {
    font-size: 10px;
  }
  .metric strong {
    font-size: 27px;
  }
  #toast {
    left: calc(50% + 37px);
  }
}
@media (max-width: 720px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .right-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .hero-art {
    transform: scale(0.7);
    margin-left: -75px;
    margin-right: -35px;
  }
  .hero {
    min-height: 250px;
  }
  .hero-copy {
    min-width: 230px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 11px;
  }
  .stats-row {
    gap: 8px;
  }
  .stat {
    padding: 13px 10px;
    display: block;
    position: relative;
  }
  .stat-icon {
    display: none;
  }
  .stat > .text-button {
    font-size: 9px;
    padding: 0;
    margin-top: 8px;
  }
  .stat-label {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .stat strong small {
    display: block;
    margin: 5px 0 0;
    font-size: 9px;
  }
  .real-task > .text-button {
    display: none;
  }
  .course-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .course-grid {
    gap: 14px;
  }
  .course-card {
    padding: 20px;
  }
  .course-jp {
    font-size: 21px;
  }
  .kana-layout {
    grid-template-columns: 1fr;
  }
  .kana-detail {
    position: static;
    display: none;
  }
  .notes-layout {
    grid-template-columns: 1fr;
  }
  .notes-layout > .coach-note {
    display: none;
  }
  .note-list {
    grid-template-columns: 1fr;
  }
  .progress-columns {
    grid-template-columns: 1fr;
  }
  .progress-stats {
    grid-template-columns: 1fr 1fr;
  }
  .progress-columns .week-chart {
    height: 130px;
  }
  .progress-columns .bar-track {
    height: 90px;
  }
  .settings-bottom {
    grid-template-columns: 1fr;
  }
  .practice-card {
    padding: 30px 25px;
  }
  .study-jp {
    font-size: 29px;
  }
  .quiz-jp {
    font-size: 27px;
  }
  .options {
    gap: 10px;
  }
  .option {
    font-size: 12px;
    padding: 14px;
  }
  .session-page {
    padding: 20px;
  }
  .completion h1 {
    font-size: 23px;
  }
  .completion-stats {
    gap: 30px;
  }
  .completion-actions {
    flex-wrap: wrap;
  }
  .date {
    font-size: 10px;
  }
  .top-meta {
    gap: 10px;
  }
  .setting-row select {
    width: 150px;
  }
  .settings-form {
    padding: 20px;
  }
  .footer {
    font-size: 8px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading .button {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 36px;
    white-space: nowrap;
  }
  h1 {
    font-size: 26px;
  }
}
@media (max-width: 520px) {
  .sidebar {
    width: auto;
    height: 64px;
    top: auto;
    right: 0;
    bottom: 0;
    flex-direction: row;
    padding: 5px 7px;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: #fbfcf8f5;
    backdrop-filter: blur(10px);
  }
  .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 3px;
  }
  .nav-item {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 6px 3px;
    border-radius: 8px;
    min-height: 47px;
  }
  .nav-item > span {
    display: block;
    font-size: 8px;
    white-space: nowrap;
  }
  .nav-item .icon {
    width: 18px;
    height: 18px;
  }
  .nav-item.active {
    background: #edf2e5;
  }
  .main {
    margin-left: 0;
    padding-bottom: 68px;
  }
  .topbar {
    height: 56px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb > span {
    padding: 0 8px;
  }
  .top-meta .date {
    display: none;
  }
  .streak {
    font-size: 10px;
  }
  .page {
    padding: 24px 18px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading p {
    font-size: 10px;
    margin-top: 7px;
    line-height: 1.9;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .hero {
    padding: 26px 22px;
    min-height: 255px;
    border-radius: 16px;
  }
  .hero-copy {
    min-width: 230px;
  }
  .hero-art {
    position: absolute;
    right: -65px;
    top: 20px;
    opacity: 0.28;
    transform: scale(0.78);
  }
  .hero-copy {
    z-index: 2;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-label {
    font-size: 9px;
  }
  .hero p {
    font-size: 12px;
    color: #c8d4c2;
  }
  .hero .button {
    padding: 11px 14px;
    font-size: 11px;
    margin-top: 20px;
  }
  .hero-meta {
    font-size: 8px;
    margin-top: 10px;
    color: #b2c6ab;
  }
  .stats-row {
    gap: 9px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat-label {
    font-size: 9px;
    white-space: nowrap;
  }
  .stat > .text-button {
    margin-top: 7px;
    font-size: 9px;
  }
  .stat > .text-button .icon {
    width: 12px;
    height: 12px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .plan-panel {
    padding: 20px 18px 0;
  }
  .section-title h2 {
    font-size: 14px;
  }
  .section-title > span {
    font-size: 9px;
  }
  .agenda-row {
    padding: 18px 0;
    gap: 10px;
  }
  .agenda-text b {
    font-size: 12px;
  }
  .agenda-text small {
    font-size: 9px;
  }
  .agenda-minutes {
    font-size: 9px;
  }
  .step-number {
    font-size: 9px;
    min-width: 15px;
  }
  .agenda-icon {
    height: 34px;
    width: 34px;
  }
  .agenda-row > .icon {
    display: none;
  }
  .right-stack {
    grid-template-columns: 1fr;
  }
  .coach-note {
    padding: 21px;
  }
  .coach-note p {
    font-size: 12px;
    line-height: 1.9;
  }
  .coach-note .muted {
    font-size: 10px;
  }
  .week-panel .week-chart {
    height: 110px;
  }
  .week-panel .bar-track {
    width: 20px;
  }
  .week-panel .section-title {
    margin-bottom: 10px;
  }
  .real-task {
    margin-top: 18px;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
  }
  .real-task p {
    font-size: 10px;
    line-height: 1.8;
  }
  .footer {
    padding: 0 18px 15px;
    gap: 10px;
    font-size: 8px;
  }
  .course-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .course-card {
    padding: 17px 14px;
  }
  .course-top {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .course-top .tiny-pill {
    font-size: 8px;
    padding: 2px 5px;
  }
  .course-jp {
    font-size: 20px;
    margin: 22px 0 12px;
    min-height: 64px;
    display: flex;
    align-items: center;
  }
  .course-card h2 {
    font-size: 13px;
  }
  .course-card p {
    font-size: 10px;
    margin: 9px 0 17px;
    min-height: 54px;
    line-height: 1.8;
  }
  .course-bottom {
    gap: 5px;
  }
  .course-bottom small {
    font-size: 8px;
  }
  .course-bottom .icon-button {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
  }
  .course-bottom .icon {
    width: 15px;
    height: 15px;
  }
  .course-intro {
    font-size: 10px;
    margin-bottom: 18px;
  }
  .page-heading:has([data-action="start-kana"]) {
    flex-direction: column;
  }
  .segmented {
    width: 100%;
    margin-bottom: 18px;
  }
  .segmented button {
    flex: 1;
    padding: 9px 5px;
    font-size: 11px;
  }
  .kana-table {
    padding: 17px 12px;
  }
  .kana-columns,
  .kana-row {
    grid-template-columns: 39px repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .row-label {
    font-size: 8px;
  }
  .kana-cell {
    min-height: 62px;
  }
  .kana-cell b {
    font-size: 26px;
  }
  .kana-cell small {
    font-size: 9px;
  }
  .notes-layout .panel {
    padding: 20px;
  }
  .note-form h2 {
    font-size: 16px;
  }
  .form-actions .muted {
    font-size: 9px;
  }
  .form-actions .button {
    font-size: 11px;
  }
  .progress-stats {
    gap: 12px;
  }
  .metric strong {
    font-size: 29px;
  }
  .progress-columns > .panel,
  .evidence-panel {
    padding: 21px 18px;
  }
  .table-scroll table {
    min-width: 530px;
  }
  .tutor-layout {
    gap: 16px;
  }
  .tutor-layout > .right-stack {
    display: flex;
  }
  .chat-messages {
    padding: 18px;
    max-height: 350px;
    min-height: 230px;
  }
  .chat-bubble {
    font-size: 12px;
    max-width: 95%;
    padding: 14px;
  }
  .chat-input {
    padding: 15px;
  }
  .connection-notice {
    margin: 10px 15px;
    padding: 13px;
  }
  .settings-form {
    padding: 18px;
  }
  .setting-row {
    align-items: flex-start;
    gap: 15px;
  }
  .setting-row h2 {
    font-size: 13px;
  }
  .setting-row p {
    font-size: 10px;
    line-height: 1.8;
    max-width: 190px;
  }
  .setting-row select {
    width: 125px;
    font-size: 11px;
    padding: 10px;
  }
  .settings-bottom > .panel {
    padding: 21px;
  }
  .session-page {
    padding: 18px 14px;
  }
  .session-meta {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .practice-card {
    padding: 27px 20px;
    min-height: 410px;
  }
  .practice-label {
    font-size: 11px;
  }
  .study-jp {
    font-size: 27px;
    margin-top: 27px;
  }
  .study-jp.large-kana {
    font-size: 105px;
  }
  .study-reading {
    font-size: 13px;
  }
  .study-meaning {
    font-size: 16px;
  }
  .usage-note {
    padding: 17px;
    margin: 25px 0;
  }
  .usage-note p {
    font-size: 11px;
  }
  .usage-note small {
    font-size: 10px;
  }
  .audio-actions .button {
    font-size: 11px;
    padding: 11px 14px;
  }
  .next-button {
    font-size: 12px;
    min-width: 200px;
  }
  .options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .option {
    font-size: 13px;
    padding: 14px;
  }
  .quiz-jp {
    font-size: 26px;
    margin: 28px 0;
  }
  .listen-orb {
    width: 85px;
    height: 85px;
    margin: 27px auto 17px;
  }
  .listen-caption {
    font-size: 10px;
  }
  .quiz-tools {
    gap: 15px;
    margin-top: 18px;
  }
  .quiz-tools > .text-button {
    font-size: 10px;
  }
  .recall-prompt {
    font-size: 19px;
    margin-top: 28px;
  }
  .answer-controls .button {
    font-size: 10px;
    padding: 10px;
  }
  .answer-controls .text-button {
    font-size: 10px;
  }
  .answer-controls {
    gap: 8px;
  }
  .answer-controls .button .icon {
    width: 15px;
    height: 15px;
  }
  .session-foot {
    font-size: 9px;
    text-align: center;
    align-items: flex-start;
    padding: 0 8px;
  }
  .session-foot .icon {
    margin-top: 3px;
  }
  .feedback {
    padding: 18px;
  }
  .feedback-heading b {
    font-size: 13px;
  }
  .feedback p {
    font-size: 11px;
  }
  .completion {
    margin: 20px 0;
  }
  .completion h1 {
    font-size: 22px;
  }
  .completion-stats {
    gap: 25px;
  }
  .completion-stats span {
    font-size: 10px;
  }
  .completion-stats strong {
    font-size: 30px;
  }
  .completion .coach-note p {
    font-size: 11px;
  }
  .modal {
    padding: 25px;
  }
  .modal h2 {
    font-size: 18px;
  }
  .modal p {
    font-size: 12px;
  }
  .modal .button {
    font-size: 11px;
    padding: 11px 14px;
  }
  #toast {
    left: 50%;
    bottom: 80px;
    max-width: 90vw;
    width: max-content;
    font-size: 11px;
    padding: 12px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.mobile-settings {
  display: none;
}
.session-ai-note {
  font-size: 12px;
  line-height: 1.8;
  color: #647955;
  background: #edf2e5;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: left;
}
.session-ai-note .icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
.page-heading p,
.agenda-text small,
.coach-note p,
.muted,
.fine-print {
  color: #74806d;
}
.practice-label,
.study-reading,
.listen-caption,
.session-meta {
  color: #718367;
}
.quiz-tools > .text-button {
  color: #718367;
}
.stat-label {
  color: #7a8571;
}
.course-card p {
  color: #79866f;
}
.saved-note p {
  color: #65775a;
}
.chat-bubble {
  color: #5b754a;
}
.chat-bubble.user {
  color: #eef3e6;
}
@media (max-width: 520px) {
  .mobile-settings {
    display: flex;
    width: 28px;
    height: 28px;
  }
  .mobile-settings .icon {
    width: 15px;
    height: 15px;
  }
  .top-meta {
    gap: 8px;
  }
  .page-heading p {
    font-size: 11px;
  }
}

.login-page { min-height:100dvh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(100%,420px); display:grid; gap:18px; padding:32px; }
.login-card h1 { font-size:26px; line-height:1.4; margin:0; }
.login-card p { margin:0; }
.login-card label { font-weight:600; }
.login-card input { width:100%; padding:14px; border:1px solid #a9b8ad; border-radius:10px; background:#fff; font:inherit; }
.login-card input:focus { outline:3px solid #a9c7b9; outline-offset:2px; }
#login-status { min-height:24px; font-size:14px; }

.option-label { font-weight:inherit; }
.option-label[lang="ja"] { font-size:30px; line-height:1.2; }
.kana-answer { font-size:20px; font-weight:600; }

.speaking-invite { display:flex; gap:24px; align-items:center; justify-content:space-between; margin:24px 0; }
.speaking-invite p { color:var(--muted); margin:8px 0 0; }
.speaking-complete { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; align-items:center; }
.speaking-model { margin:20px 0; }
.recording-error { color:#a64932; }
#recording-output audio { display:block; width:100%; max-width:420px; margin:12px auto; }
@media (max-width:600px) { .speaking-invite { flex-direction:column; align-items:stretch; } .speaking-complete { flex-direction:column; align-items:stretch; } }
