:root {
  --paper: #f3f7fb;
  --ink: #192f45;
  --muted: #637c90;
  --sea: #167b86;
  --line: #dce5ec;
  --sky: #e6f0f5;
  --white: #fff;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #69b8cb;
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1.7px;
  font-size: 46px;
  line-height: 1.16;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
#app {
  min-height: 100dvh;
  display: flex;
}
.loading {
  margin: 80px auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.rail {
  width: 246px;
  flex: 0 0 246px;
  border-right: 1px solid var(--line);
  padding: 35px 23px 24px;
  display: flex;
  flex-direction: column;
  background: #edf3f8;
  min-height: 100dvh;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.rail .brand {
  margin: 0 10px 52px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 14px 12px;
}
.course-label {
  margin-top: 34px;
}
.nav-item {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}
.nav-item:hover {
  background: #e1ebf2;
}
.nav-item.active {
  background: #dcebf0;
  color: #146977;
  font-weight: 650;
}
.nav-symbol {
  width: 23px;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
}
.rail-bottom {
  margin-top: auto;
  padding: 40px 10px 0;
}
.rail-bottom > .small {
  margin-bottom: 26px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.profile strong {
  font-size: 12px;
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile .small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #d6e5ed;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  font-family: Georgia, serif;
}
.text-link,
.text-button {
  font-size: 12px;
  border: 0;
  background: none;
  padding: 8px 0;
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
}
.text-link:hover,
.text-button:hover {
  color: var(--sea);
  text-decoration: underline;
}
.rail-bottom .text-button {
  display: block;
}
.workspace {
  min-width: 0;
  flex: 1;
}
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 43px 62px 32px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--sea);
}
.date {
  font-size: 12px;
  color: var(--muted);
}
.intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
  max-width: 600px;
}
.daily {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin: 34px 0 43px;
  gap: 26px;
}
.daily-label strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  display: block;
  margin-top: 10px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 92px;
}
.stat strong {
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.course-list {
  border-top: 1px solid var(--line);
}
.course-row {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(115px, 1fr) minmax(120px, 1.1fr) 110px 20px;
  align-items: center;
  gap: 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 25px 4px;
  text-align: left;
  transition: background 0.15s;
}
.course-row:hover {
  background: #eaf2f7;
}
.course-symbol {
  width: 52px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 26px;
  background: #e0ebf3;
}
.lang-ko {
  background: #e8e6ef;
  color: #756485;
}
.lang-de {
  background: #e9e9df;
  color: #747448;
}
.lang-zh {
  background: #f1e6df;
  color: #9d7150;
}
.lang-ja {
  background: #e2ebe6;
  color: #567e66;
}
.course-title > .muted {
  display: block;
  font-size: 11px;
  margin-top: 7px;
}
.progress-label {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
progress {
  appearance: none;
  height: 4px;
  width: 100%;
  border: 0;
  background: var(--line);
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--sea);
}
progress::-moz-progress-bar {
  background: var(--sea);
}
.course-count {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.course-count strong {
  font-size: 12px;
  font-weight: 550;
  color: var(--sea);
}
.course-count .small {
  font-size: 10px;
}
.row-arrow {
  color: var(--muted);
  font-size: 18px;
}
.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.engine-note {
  white-space: nowrap;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 15px 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  min-height: 48px;
}
.button:hover {
  filter: brightness(0.97);
}
.primary,
.good {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}
.welcome {
  max-width: 1220px;
  width: 100%;
  padding: 48px 62px 25px;
  margin: auto;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 90px;
  margin: 95px 0 85px;
}
.welcome h1 {
  font-size: 64px;
  white-space: pre-line;
  margin-top: 25px;
  letter-spacing: -2.6px;
}
.welcome .intro {
  max-width: 400px;
}
.language-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  margin: 26px 0 38px;
  color: var(--muted);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 350px;
}
.login-form label {
  font-size: 12px;
}
.login-form input {
  background: #fff;
  border: 1px solid #c7d5df;
  border-radius: 7px;
  padding: 15px;
  color: var(--ink);
  width: 100%;
  font-size: 13px;
}
.practice {
  font-size: 13px;
  margin-top: 12px;
}
.welcome-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 360px;
  transform: rotate(3deg);
  padding: 26px 30px;
  box-shadow: 0 16px 36px #28465c08;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.welcome-card .card-rule {
  margin-bottom: auto;
}
.sample-word {
  font-family: Georgia, serif;
  font-size: 64px;
  display: block;
  margin: 48px 0 14px;
  text-align: center;
  letter-spacing: -2px;
}
.sample-reading {
  text-align: center;
  color: var(--muted);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px;
}
.sample-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.welcome footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.study {
  max-width: 960px;
}
.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
  gap: 16px;
}
.study-course {
  font-size: 13px;
  color: var(--muted);
}
.study-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tag {
  font-size: 11px;
  border: 1px solid #cddfe8;
  border-radius: 25px;
  padding: 6px 12px;
  color: var(--muted);
}
.study-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  max-width: 648px;
  margin: 0 auto;
  box-shadow: 0 7px 22px #27496404;
}
.study-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 24px;
  gap: 12px;
}
.reveal {
  min-width: 250px;
}
.keyboard-hint {
  font-size: 10px;
  color: var(--muted);
}
.rating-buttons {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 440px;
}
.rating-buttons .button {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px;
}
.rating-buttons small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}
.again {
  color: #98614c;
  border-color: #d8c4b9;
  background: #fbf5f0;
}
.study-footnote {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 24px;
}
.complete {
  text-align: center;
  padding: 38px 10px;
}
.complete-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #dfefed;
  color: var(--sea);
  border-radius: 50%;
  font-size: 25px;
  margin: 0 auto 35px;
}
.complete .eyebrow {
  margin-bottom: 16px;
}
.complete .intro {
  margin: 20px auto;
}
.complete > .muted {
  font-size: 13px;
  line-height: 1.7;
}
.complete .button {
  margin-top: 35px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 25px #192f4520;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  z-index: 20;
}
.pending {
  padding: 14px;
  border: 1px solid #d8c4b9;
  background: #fbf5f0;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}
@media (min-width: 1500px) {
  .page {
    padding-top: 55px;
  }
  .home {
    padding-top: 55px;
  }
  .course-row {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .daily {
    margin-top: 45px;
    margin-bottom: 50px;
  }
}
@media (max-width: 1150px) {
  .rail {
    width: 205px;
    flex-basis: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .page {
    padding: 32px;
  }
  .course-row {
    gap: 16px;
    grid-template-columns: 48px 1fr 1fr 90px 15px;
  }
  .course-symbol {
    width: 45px;
    height: 50px;
  }
  .daily {
    gap: 18px;
  }
  .daily-label strong {
    max-width: 140px;
    font-size: 16px;
  }
  .stat {
    min-width: 70px;
  }
  .welcome-grid {
    gap: 45px;
  }
  .welcome h1 {
    font-size: 53px;
  }
}
@media (max-width: 850px) {
  h1 {
    font-size: 36px;
  }
  .course-row {
    grid-template-columns: 48px 1fr 90px 15px;
  }
  .course-progress {
    display: none;
  }
  .daily-label {
    display: none;
  }
  .daily {
    justify-content: flex-start;
    gap: 40px;
  }
  .section-heading > .small {
    display: none;
  }
  .welcome {
    padding: 30px;
  }
  .welcome-grid {
    gap: 35px;
  }
  .welcome h1 {
    font-size: 43px;
  }
  .welcome-card {
    min-height: 300px;
    padding: 20px;
  }
  .sample-word {
    font-size: 49px;
  }
  .welcome .intro {
    font-size: 13px;
  }
  .language-line {
    font-size: 11px;
    gap: 8px;
  }
  .study-header {
    margin-bottom: 32px;
  }
  .study-course {
    display: none;
  }
}
@media (max-width: 650px) {
  #app {
    display: block;
  }
  .rail {
    position: static;
    height: auto;
    min-height: 0;
    width: 100%;
    padding: 17px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .rail .brand {
    margin: 0;
    font-size: 19px;
  }
  .rail .nav-label,
  .rail > .nav-item,
  .rail-bottom > .small,
  .rail-bottom .profile,
  .rail-bottom .text-link {
    display: none;
  }
  .rail-bottom {
    padding: 0;
    margin: 0;
  }
  .rail-bottom .text-button {
    font-size: 11px;
  }
  .page {
    padding: 25px 22px;
  }
  .page-header {
    margin-bottom: 30px;
  }
  .date {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1.2px;
    max-width: 360px;
  }
  .intro {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 13px;
  }
  .daily {
    margin: 25px 0 32px;
    padding: 22px 0;
    justify-content: space-between;
    gap: 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 10px;
  }
  .course-row {
    gap: 13px;
    grid-template-columns: 46px 1fr 80px 13px;
    padding: 22px 0;
  }
  .course-title h3 {
    font-size: 20px;
  }
  .course-title > .muted {
    font-size: 10px;
  }
  .course-count strong {
    font-size: 11px;
  }
  .course-count .small {
    font-size: 9px;
  }
  .home-footer {
    display: block;
    font-size: 10px;
  }
  .engine-note {
    display: block;
    margin-top: 10px;
  }
  .welcome {
    padding: 25px;
  }
  .welcome-grid {
    display: block;
    margin: 55px 0 50px;
  }
  .welcome h1 {
    font-size: 49px;
  }
  .welcome .intro {
    font-size: 14px;
  }
  .welcome-card {
    display: none;
  }
  .welcome footer {
    gap: 15px;
    font-size: 10px;
  }
  .language-line {
    font-size: 13px;
    gap: 10px;
  }
  .login-form {
    max-width: none;
  }
  .study-header {
    margin-bottom: 26px;
  }
  .study-header .text-button {
    font-size: 11px;
  }
  .study-meta {
    margin-bottom: 15px;
  }
  .card-rule {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .card-rule > span {
    display: none;
  }
  .rating-buttons {
    max-width: none;
  }
  .keyboard-hint {
    display: none;
  }
  .study-actions {
    margin-top: 20px;
  }
  .button {
    min-height: 50px;
  }
  .complete {
    padding-top: 24px;
  }
  .complete h1 {
    margin: auto;
  }
  .complete .muted {
    font-size: 12px;
  }
  .study-footnote {
    margin-top: 19px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.footer-export {
  display: none;
}
@media (max-width: 650px) {
  .footer-export {
    display: inline-block;
    margin-top: 12px;
  }
}

.source-offer {
  padding: 12px 24px;
  text-align: right;
  font-size: 12px;
}
.source-offer a {
  color: var(--muted);
}

.auth-modes {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.auth-mode {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}
.auth-mode.selected {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.password-hint {
  margin: -4px 0 4px;
}
.invite-link {
  align-self: flex-start;
  margin-top: 4px;
}
