@font-face {
  font-family: Klee;
  src: url("./assets/klee-kana.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
.dialog-notice,
.dialog-warning {
  background: #efe6d8;
  border: 1px solid #dac6ac;
  border-radius: 5px;
  color: #865a35;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
}
.dialog-notice[hidden] {
  display: none;
}
:root {
  --paper: #f7f5ef;
  --white: #fffefa;
  --ink: #263b34;
  --muted: #7a8177;
  --green: #254d43;
  --sage: #e4eade;
  --line: #dfdfd4;
  --rust: #bd6c50;
  --peach: #f1e5d9;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --jp: Klee, "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b46d4b;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.035em;
  line-height: 1.4;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 12px;
}
h3 {
  font-size: 18px;
  line-height: 1.6;
}
p {
  margin-bottom: 16px;
}
small,
.small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.jp {
  font-family: var(--jp);
  font-weight: 400;
}
.center {
  text-align: center;
}
.wide {
  width: 100%;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 30;
  background: var(--green);
  color: white;
  padding: 12px 24px;
}
.skip:focus {
  top: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 5px;
  min-height: 46px;
  padding: 11px 20px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-size: 13px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.btn:not(:disabled):active {
  transform: translateY(1px);
}
.btn.primary {
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
}
.btn.primary:not(:disabled):hover {
  background: #326454;
}
.btn.outline {
  border: 1px solid #c9cec1;
  background: transparent;
}
.btn.outline:not(:disabled):hover {
  background: var(--sage);
}
.btn.text {
  padding-left: 7px;
  padding-right: 7px;
  background: none;
  min-height: 44px;
  color: var(--green);
}
.btn.text:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.btn.dark {
  color: var(--white);
  background: #263b34;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: transparent;
  border-radius: 50%;
}
.icon-button:hover {
  background: #e9ecdf;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 25px;
}
.detail-actions > .btn {
  flex: 1;
  min-width: 130px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  border-right: 1px solid var(--line);
  padding: 37px 24px 28px;
  background: #efefe6;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.brand small {
  font-family: Georgia, serif;
  display: block;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 44px;
  background: var(--green);
  color: #f8f4e7;
  font-size: 31px;
  border-radius: 3px;
  flex-shrink: 0;
}
.sidebar-note {
  margin: 46px 0 29px 11px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #8c9081;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 5px;
  color: #747e71;
  position: relative;
}
.nav-link.active {
  background: #dfe5d7;
  color: var(--green);
  font-weight: 600;
}
.nav-link:hover {
  background: #e5e8db;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.settings-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 14px 20px;
  color: var(--muted);
  font-size: 12px;
}
.settings-link.active {
  color: var(--green);
}
.sidebar-footer {
  margin: auto 0 0 12px;
  font-size: 10px;
  color: #8a9183;
  line-height: 2;
}
.sidebar-footer small {
  display: block;
  font-size: 9px;
  color: #a2a695;
}
.little-line {
  display: block;
  width: 23px;
  height: 1px;
  background: #a9b29d;
  margin-bottom: 15px;
}
.workspace {
  margin-left: 222px;
}
.topbar {
  height: 84px;
  max-width: 1232px;
  margin: auto;
  padding: 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.top-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.top-status .icon {
  width: 14px;
  height: 14px;
}
.top-status .icon:last-child {
  margin-left: 8px;
}
.mobile-brand {
  display: none;
}
main {
  max-width: 1232px;
  margin: auto;
  padding: 27px 56px 20px;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}
.page-heading .muted {
  font-size: 12px;
  margin-bottom: 0;
}
.segment {
  display: inline-flex;
  background: #eeeee4;
  border: 1px solid #e3e4d8;
  padding: 4px;
  border-radius: 7px;
  flex-shrink: 0;
}
.segment button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border-radius: 4px;
  padding: 6px 13px;
  font-size: 11px;
  color: #7b8374;
}
.segment button.selected {
  background: var(--white);
  box-shadow: 0 1px 4px #213d3010;
  color: var(--green);
}
.segment .jp {
  font-size: 17px;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 354px;
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  background: #e9ecdf;
  border: 1px solid #e0e3d3;
  border-radius: 9px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2396a47c' opacity='.13' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
.hero-copy {
  position: relative;
  padding: 33px 0 27px 36px;
  z-index: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #677a5e;
  font-size: 10px;
  letter-spacing: 0.07em;
}
.dot {
  width: 5px;
  height: 5px;
  background: #82966a;
  border-radius: 50%;
}
.hero h2 {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.65;
  letter-spacing: 0.045em;
  margin: 20px 0 12px;
}
.hero h2 .jp {
  font-size: 38px;
}
.hero p {
  font-size: 11px;
  color: #7c8571;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-actions .btn {
  font-size: 11px;
  padding: 11px 16px;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #8a927b;
  font-size: 9px;
}
.hero-foot .icon {
  width: 13px;
  height: 13px;
}
.kana-art {
  position: relative;
  min-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 18px;
}
.art-rule {
  position: absolute;
  left: 17%;
  top: 38px;
  bottom: 38px;
  width: 1px;
  background: #c7cfb780;
}
.art-label {
  position: absolute;
  left: 21%;
  top: 37px;
  letter-spacing: 0.14em;
  color: #9aa588;
  font-size: 8px;
  writing-mode: vertical-rl;
}
.art-back {
  position: absolute;
  left: 45%;
  top: 61px;
  width: 161px;
  height: 201px;
  border-radius: 3px;
  background: #d9dfcb;
  color: #748769;
  font-size: 111px;
  display: grid;
  place-items: center;
  transform: rotate(10deg);
  border: 1px solid #cbd3bc;
}
.art-card {
  position: relative;
  width: 162px;
  height: 205px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fffcf1;
  border-radius: 3px;
  border: 1px solid #dfdfcd;
  box-shadow: 3px 7px 13px #4c583a0b;
  transform: rotate(-7deg);
  margin-right: 25px;
  background-image:
    linear-gradient(
      90deg,
      transparent 49.8%,
      #b4b8a51f 49.8%,
      #b4b8a51f 50.2%,
      transparent 50.2%
    ),
    linear-gradient(
      0deg,
      transparent 49.8%,
      #b4b8a51f 49.8%,
      #b4b8a51f 50.2%,
      transparent 50.2%
    );
  background-size: 128px 128px;
  background-position: center center;
  background-repeat: no-repeat;
}
.art-num {
  font:
    8px Georgia,
    serif;
  letter-spacing: 0.16em;
  color: #aaa995;
  position: absolute;
  left: 13px;
  top: 12px;
}
.art-kana {
  font-size: 122px;
  line-height: 1.25;
  margin-top: 21px;
  color: #314f40;
}
.art-romaji {
  font:
    italic 17px Georgia,
    serif;
  color: #8d967f;
  line-height: 1;
  margin-top: 1px;
}
.art-stamp {
  position: absolute;
  right: 13px;
  bottom: 13px;
  border: 1px solid #b96f55;
  color: #b96f55;
  padding: 0 2px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1.2;
}
.art-caption {
  position: absolute;
  bottom: 31px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #8a947a;
}
.daily-stats {
  margin: 24px 0 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 19px 9px;
  background: #faf9f4;
}
.daily-stats > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}
.daily-stats > div:last-child {
  border: 0;
}
.daily-stats strong {
  display: block;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  font-family: Georgia, var(--serif);
}
.daily-stats strong small {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}
.daily-stats span > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.stat-icon {
  color: #5c765a;
  background: #e8eddf;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.stat-icon .icon {
  width: 17px;
  height: 17px;
}
.stat-icon.warm {
  background: #f1e7dc;
  color: #b88767;
}
.stat-icon.pale {
  background: #ecebdf;
  color: #a29a72;
}
.stat-icon.light {
  background: #e8ece5;
  color: #85937b;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 28px 0 17px;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.03em;
}
.section-heading > span {
  font-size: 10px;
  color: #8e9387;
}
.task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.task-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
  background: #fcfbf6;
}
.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.task-number {
  font:
    italic 23px Georgia,
    serif;
  color: #78926f;
}
.task-number.rust {
  color: #b4866b;
}
.task-meta {
  font-size: 9px;
  color: #969986;
}
.task-card h3 {
  font-size: 16px;
  font-family: var(--serif);
  margin-bottom: 10px;
}
.task-card p {
  font-size: 11px;
  color: var(--muted);
  min-height: 40px;
  margin-bottom: 20px;
}
.task-card .btn {
  font-size: 10px;
  min-height: 39px;
  padding: 8px 13px;
}
.task-card .btn .icon {
  width: 15px;
}
.journey {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 26px;
}
.journey .eyebrow {
  font-size: 8px;
  letter-spacing: 0.16em;
}
.journey h2 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 8px;
}
.journey p.muted {
  font-size: 10px;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.journey-step {
  position: relative;
  padding: 15px 10px 6px 15px;
  border-left: 1px solid #d9dfce;
}
.journey-step > span {
  font:
    11px Georgia,
    serif;
  color: #a5ab99;
  position: absolute;
  top: 0;
  left: 15px;
}
.journey-step strong {
  display: block;
  font-size: 12px;
  margin-top: 9px;
  font-weight: 400;
}
.journey-step small {
  display: block;
  color: #9a9f90;
  font-size: 9px;
  margin-top: 5px;
}
.journey-step.current {
  border-left-color: #6e8863;
}
.journey-step.current > span {
  color: #517348;
}
.journey-step.current:before {
  position: absolute;
  content: "";
  width: 5px;
  height: 5px;
  background: #6e8863;
  left: -3px;
  top: 26px;
  border-radius: 50%;
}
.page-footer {
  max-width: 1232px;
  margin: 35px auto 0;
  padding: 0 56px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a4a899;
  letter-spacing: 0.04em;
}
.paper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 25px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #dddcd3;
  border-radius: 50%;
  margin-right: 6px;
}
.legend-dot.learned {
  background: #a1b28e;
}
.legend-dot.familiar {
  background: var(--green);
}
.chart-paper {
  padding: 22px 26px;
}
.kana-table {
  width: 100%;
  max-width: 680px;
  margin: auto;
}
.kana-row {
  display: grid;
  grid-template-columns: 40px repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.header-row {
  color: #a0a68e;
  font:
    italic 14px Georgia,
    serif;
  text-align: center;
  margin-bottom: 16px;
}
.row-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8c967d;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.4;
}
.row-play {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 3px;
  min-width: 32px;
  min-height: 32px;
  color: #b0b6a1;
}
.row-play:hover {
  color: var(--green);
}
.row-play .icon {
  width: 15px;
  height: 15px;
}
.kana-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  background: #f5f4ed;
  border-radius: 5px;
  border: 1px solid #eeede5;
  min-height: 92px;
  padding: 6px 4px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.kana-cell > .jp {
  font-size: 43px;
  line-height: 1.25;
}
.kana-cell small {
  font-family: Georgia, serif;
  font-size: 11px;
  color: #a6a895;
}
.kana-cell:hover {
  background: #e9edde;
  border-color: #a4b196;
}
.kana-cell.learned {
  background: #edf0e6;
  border-color: #d8e0cd;
}
.kana-cell i {
  position: absolute;
  right: 7px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d5d6cb;
}
.kana-cell.learned i {
  background: #a1b28e;
}
.kana-cell.familiar i {
  background: var(--green);
}
.empty-cell {
  display: grid;
  place-items: center;
  color: #deded2;
  min-height: 80px;
}
.chart-note {
  margin: 24px 0 0;
  text-align: center;
  font-size: 10px;
}
.tip-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #8c927e;
  font-size: 11px;
  margin: 23px 3px;
}
.tip-strip .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.review-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 29px;
  background: #e9ecdf;
  border-radius: 7px;
  border: 1px solid #dce2ce;
  margin-bottom: 24px;
}
.review-banner h2 {
  font-family: var(--serif);
  font-size: 23px;
  margin-bottom: 9px;
}
.review-banner p {
  font-size: 11px;
  color: #829075;
  margin: 0;
}
.review-banner > .btn {
  flex-shrink: 0;
}
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.practice-card {
  background: #fcfbf6;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.practice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #e7ecdf;
  border-radius: 50%;
  color: #7f916e;
  margin-bottom: 22px;
}
.practice-card:nth-child(even) .practice-icon {
  background: #f1e7dc;
  color: #b08767;
}
.practice-card h2 {
  font-family: var(--serif);
  font-size: 21px;
}
.practice-card p {
  font-size: 12px;
  color: var(--muted);
  min-height: 40px;
}
.practice-card > .btn {
  font-size: 11px;
  padding: 8px 16px;
  min-height: 40px;
}
.practice-grid + .small {
  margin: 17px 0 30px;
}
.exam-banner {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 29px;
  border-radius: 7px;
  border: 1px solid #dfd8c8;
  background: #eee7db;
}
.exam-banner h2 {
  font-family: var(--serif);
  font-size: 24px;
}
.exam-banner p:last-child {
  font-size: 11px;
  color: #8e8878;
  margin: 0;
}
.exam-banner + .small {
  margin-top: 17px;
}
.exam-banner .btn {
  flex-shrink: 0;
}
.progress-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.progress-overview .paper {
  background: #e9ecdf;
  border-color: #dfe3d4;
}
.progress-overview .paper:nth-child(2) {
  background: #eee8dc;
  border-color: #e2dbce;
}
.big-number {
  display: block;
  font:
    45px Georgia,
    serif;
  line-height: 1.4;
}
.big-number small {
  font-size: 18px;
  color: #909782;
}
.progress-overview .paper > p:last-child {
  font-size: 11px;
  color: #838b76;
  margin-top: 8px;
  margin-bottom: 0;
}
.mastery-paper {
  padding: 24px;
}
.mastery {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.mastery th {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 6px;
}
.mastery td {
  padding: 14px 4px;
  font:
    23px Georgia,
    serif;
}
.mastery td small {
  font: 10px var(--sans);
  color: #a7ac9c;
}
.mastery tr {
  border-bottom: 1px solid #eeeee4;
}
.mastery th:first-child {
  text-align: left;
}
.mastery-paper > p {
  margin: 19px 0 0;
  font-size: 10px;
}
.progress-lists {
  margin-top: 24px;
}
.progress-lists h2 {
  font-family: var(--serif);
  font-size: 19px;
}
.empty-note {
  font-family: var(--serif);
  color: #a3a792;
  text-align: center;
  font-size: 14px;
  padding: 35px 0;
  line-height: 2;
}
.weak-list {
  display: flex;
  flex-direction: column;
}
.weak-list button {
  display: flex;
  gap: 13px;
  align-items: center;
  background: transparent;
  padding: 9px 0;
  border-bottom: 1px solid #eceee2;
  text-align: left;
}
.weak-list .jp {
  font-size: 27px;
  width: 30px;
}
.weak-list strong {
  font-family: Georgia, serif;
  font-weight: 400;
  min-width: 30px;
}
.weak-list small {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.weak-list .icon {
  width: 13px;
  height: 13px;
  color: #a5ae98;
}
.day-list,
.exam-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.day-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #eceee2;
  gap: 10px;
}
.day-list span {
  font:
    13px Georgia,
    serif;
  color: var(--muted);
}
.day-list strong {
  font-size: 12px;
}
.day-list small {
  font-size: 10px;
  color: #969d88;
}
.exam-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eceee2;
  gap: 14px;
}
.exam-history small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.exam-history strong {
  font-size: 13px;
}
.exam-history li > span {
  font:
    15px Georgia,
    var(--sans);
  white-space: nowrap;
}
.pass {
  color: var(--green);
}
.settings-section {
  margin-bottom: 20px;
  padding: 29px;
}
.settings-section h2 {
  font-family: var(--serif);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 23px;
}
.settings-section h2 .icon {
  width: 19px;
  height: 19px;
  color: #8a977b;
}
.settings-section > p {
  font-size: 12px;
  color: var(--muted);
  max-width: 670px;
}
.settings-section p.small {
  font-size: 10px;
  margin: 18px 0 0;
}
.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
input,
select {
  border: 1px solid #d6dbc9;
  border-radius: 5px;
  min-height: 44px;
  padding: 8px 12px;
  background: #f9faf3;
  color: var(--ink);
  max-width: 100%;
}
.install-steps {
  padding-left: 22px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2.2;
}
.save-banner {
  background: #f8e9dd;
  border: 1px solid #d8ab8a;
  color: #87532d;
  padding: 13px 20px;
  margin: 0 25px 10px;
  border-radius: 5px;
  font-size: 12px;
}
.save-banner[hidden] {
  display: none;
}
.exam-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.exam-cell {
  aspect-ratio: 1;
  position: relative;
  border: 1px solid #e5e5d9;
  border-radius: 4px;
  background-color: #fbfaf5;
  background-image:
    linear-gradient(
      90deg,
      transparent 49.5%,
      #e8e7dc 49.5%,
      #e8e7dc 50%,
      transparent 50%
    ),
    linear-gradient(
      0deg,
      transparent 49.5%,
      #e8e7dc 49.5%,
      #e8e7dc 50%,
      transparent 50%
    );
  padding: 0;
  overflow: hidden;
  min-height: 50px;
}
.exam-cell:hover {
  background-color: #eef0e4;
  border-color: #a2b092;
}
.exam-cell.filled {
  background-color: #f1f4e8;
}
.exam-cell.correct {
  border-color: #73956d;
}
.exam-cell.wrong {
  border-color: #d6a182;
}
.empty-plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d3d7c6;
  font-size: 19px;
}
.exam-cell .empty-plus {
  font-size: 14px;
}
.ink-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  pointer-events: none;
}
.answer-corner {
  position: absolute;
  right: 1px;
  bottom: -5px;
  color: #bc7657;
  font-size: 27px;
  line-height: 1.6;
  pointer-events: none;
}
.grade-corner {
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 12px;
  color: var(--green);
}
.exam-cell.wrong .grade-corner {
  color: #b66b4f;
}
.exam-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.exam-actions + .small {
  margin-top: 15px;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #263b34;
  color: #fffdf5;
  padding: 13px 20px;
  border-radius: 7px;
  box-shadow: 0 8px 35px #25332426;
  max-width: min(90vw, 550px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  font-size: 12px;
  line-height: 1.8;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast:empty {
  display: none;
}
dialog {
  border: 1px solid #dedfd2;
  border-radius: 13px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(540px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  box-shadow: 0 25px 85px #102c2633;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #1b2c255c;
  backdrop-filter: blur(4px);
}
.dialog-inner {
  padding: 25px 32px 30px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.dialog-heading .eyebrow {
  margin: 8px 0 0;
  font-size: 9px;
}
.dialog-heading p {
  margin: 6px 0 0;
  font-size: 11px;
}
.dialog-heading .icon-button {
  margin: -4px -9px 0 0;
  color: #8d9883;
}
.session-progress {
  height: 3px;
  background: #e2e6d7;
  border-radius: 2px;
  overflow: hidden;
  margin: 15px 0 24px;
}
.session-progress i {
  display: block;
  height: 100%;
  background: #8ca57d;
  transition: width 0.25s;
}
.detail-glyph {
  font-size: 154px;
  text-align: center;
  line-height: 1.5;
  padding-top: 9px;
}
.detail-reading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font:
    italic 27px Georgia,
    serif;
  color: #75896b;
  margin-bottom: 18px;
}
.detail-reading .icon-button {
  color: var(--green);
  background: #e6ebdd;
}
.kana-hint {
  background: #eeeee3;
  border: 1px solid #e5e5d7;
  border-radius: 5px;
  padding: 14px 18px;
  color: #8b927e;
  font-size: 12px;
  line-height: 1.8;
  margin: 22px 0;
}
.question-instruction {
  text-align: center;
  color: #8c957f;
  font-size: 12px;
  margin: 12px 0 10px;
}
.question-glyph {
  font-size: 143px;
  text-align: center;
  line-height: 1.4;
  margin: 6px 0 10px;
}
.question-romaji {
  font:
    italic 85px Georgia,
    serif;
  text-align: center;
  line-height: 1.5;
  margin: 24px 0 28px;
}
.question-romaji.compact {
  font-size: 42px;
  margin: 2px 0 12px;
  line-height: 1.3;
}
.answer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 20px 0;
}
.answer-option {
  min-height: 68px;
  background: var(--white);
  border: 1px solid #d6ddc9;
  border-radius: 6px;
  font:
    25px Georgia,
    serif;
}
.answer-option .jp {
  font-size: 40px;
  line-height: 1.5;
}
.answer-option:hover:not(:disabled) {
  background: #e9edde;
  border-color: #93a880;
}
.answer-option:disabled {
  opacity: 1;
}
.answer-option.correct {
  background: #dfebd4;
  border-color: #88a472;
  color: #3c6433;
}
.answer-option.wrong {
  background: #f3e5d9;
  border-color: #c99878;
  color: #a26947;
}
.feedback {
  padding: 16px 18px;
  background: #e4ecd9;
  border: 1px solid #d4dfc8;
  border-radius: 5px;
  margin: 24px 0 18px;
}
.feedback strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.feedback > span {
  font-size: 12px;
  color: #768368;
}
.feedback.again {
  background: #f1e6d8;
  border-color: #e2d2bc;
}
.feedback.again strong {
  color: #9b6b45;
}
.feedback .jp {
  font-size: 20px;
}
.listen-button {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: #e1e8d4;
  color: #4f7144;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px auto;
}
.listen-button .icon {
  width: 43px;
  height: 43px;
}
.listen-button span {
  font-size: 11px;
}
.listen-button:hover {
  background: #d5e1c5;
}
.kana-input {
  display: block;
  width: 100%;
  font-size: 46px;
  text-align: center;
  min-height: 95px;
  line-height: 1.5;
  margin: 20px 0 15px;
}
.kana-input::placeholder {
  font-family: var(--sans);
  font-size: 14px;
  color: #adb49d;
}
.kana-input:disabled {
  opacity: 0.6;
}
.draw-wrap {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 315px);
  margin: 15px auto 0;
  overflow: hidden;
  border: 1px solid #d2dac4;
  border-radius: 6px;
  background-color: #fffef8;
  background-image:
    linear-gradient(
      90deg,
      transparent 49.8%,
      #ced5c266 49.8%,
      #ced5c266 50.2%,
      transparent 50.2%
    ),
    linear-gradient(
      0deg,
      transparent 49.8%,
      #ced5c266 49.8%,
      #ced5c266 50.2%,
      transparent 50.2%
    );
}
#draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
  z-index: 1;
}
.draw-answer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 230px;
  line-height: 1;
  opacity: 0.24;
  color: #bd6b49;
  pointer-events: none;
  z-index: 2;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 315px;
  margin: 5px auto 0;
}
.canvas-toolbar .btn {
  font-size: 10px;
  min-height: 40px;
  padding: 5px;
}
.canvas-toolbar > span {
  font-size: 9px;
  color: #a3ac95;
  margin-left: auto;
}
.completion-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: #e0e9d4;
  color: #547745;
  margin: 22px auto 23px;
  border-radius: 50%;
}
.completion-mark .icon {
  width: 31px;
  height: 31px;
}
.result-kana {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.result-kana span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 42px;
  background: #eee5d7;
  color: #9c6d4d;
  border-radius: 3px;
  font-size: 26px;
}
.import-summary {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 22px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 25px 0;
}
.import-summary > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.import-summary small,
.import-summary span {
  font-size: 11px;
  color: var(--muted);
}
.import-summary strong {
  font-size: 16px;
}
.dialog-inner > p:not([class]) {
  font-size: 13px;
  color: var(--muted);
}
.dialog-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dialog-inner > .wide:last-child {
  margin-top: 15px;
}
@media (min-width: 1400px) {
  main {
    padding-top: 45px;
  }
  .hero {
    min-height: 382px;
  }
  .hero-copy {
    padding: 39px 0 32px 43px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-actions .btn {
    font-size: 12px;
  }
  .hero-foot {
    font-size: 10px;
  }
  .art-card {
    width: 180px;
    height: 224px;
  }
  .art-kana {
    font-size: 137px;
  }
  .art-back {
    width: 181px;
    height: 220px;
  }
  .kana-art {
    padding-bottom: 16px;
  }
  .art-caption {
    bottom: 35px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 188px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .workspace {
    margin-left: 188px;
  }
  main {
    padding: 24px 30px 20px;
  }
  .topbar {
    padding: 0 30px;
  }
  .page-footer {
    padding-left: 30px;
    padding-right: 30px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 35px;
    height: 40px;
    font-size: 28px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading .segment {
    margin-top: 15px;
  }
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero-copy {
    padding-left: 27px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    font-size: 10px;
    padding: 10px 12px;
  }
  .hero-foot {
    font-size: 8px;
  }
  .art-card {
    width: 135px;
    height: 183px;
    margin-right: 15px;
  }
  .art-kana {
    font-size: 105px;
    margin-top: 24px;
  }
  .art-romaji {
    font-size: 15px;
  }
  .art-back {
    width: 131px;
    height: 178px;
    left: 36%;
    top: 73px;
    font-size: 94px;
  }
  .art-rule {
    left: 8%;
  }
  .art-label {
    left: 12%;
  }
  .art-caption {
    font-size: 8px;
    bottom: 40px;
  }
  .daily-stats {
    padding: 19px 6px;
  }
  .daily-stats > div {
    gap: 8px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
  }
  .daily-stats strong {
    font-size: 22px;
  }
  .daily-stats span > small {
    font-size: 8px;
  }
  .review-banner,
  .exam-banner {
    padding: 23px;
  }
  .review-banner h2,
  .exam-banner h2 {
    font-size: 21px;
  }
  .practice-card {
    padding: 23px;
  }
  .practice-card h2 {
    font-size: 19px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 13px;
  }
  .sidebar {
    inset: auto 0 0 0;
    width: auto;
    height: calc(65px + env(safe-area-inset-bottom));
    padding: 0 10px env(safe-area-inset-bottom);
    border-right: 0;
    border-top: 1px solid #dfe2d4;
    background: #f7f6eff7;
    backdrop-filter: blur(12px);
  }
  .sidebar .brand,
  .sidebar-note,
  .settings-link,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    height: 65px;
    align-items: center;
  }
  .nav-link {
    padding: 7px 3px 4px;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    font-size: 10px;
    border-radius: 5px;
    line-height: 1.6;
    min-height: 51px;
  }
  .nav-link .icon {
    width: 19px;
    height: 19px;
  }
  .nav-link.active {
    background: transparent;
  }
  .nav-link.active .icon {
    color: var(--green);
  }
  .nav-link.active:before {
    content: "";
    width: 29px;
    height: 29px;
    position: absolute;
    top: 3px;
    background: #e0e7d5;
    border-radius: 50%;
    z-index: -1;
  }
  .nav-dot {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 76px;
    padding: 18px 23px 9px;
    padding-top: calc(18px + env(safe-area-inset-top));
  }
  .top-date {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--serif);
    font-size: 16px;
    letter-spacing: 0.04em;
  }
  .mobile-brand strong {
    font-weight: 500;
  }
  .mobile-brand .brand-mark {
    width: 31px;
    height: 35px;
    font-size: 25px;
  }
  .top-status {
    font-size: 9px;
    gap: 6px;
  }
  .top-status .icon:first-child {
    display: none;
  }
  .top-status .icon:last-child {
    width: 17px;
    height: 17px;
    margin-left: 4px;
  }
  main {
    padding: 23px 23px 15px;
  }
  .page-heading {
    display: block;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 29px;
    margin-bottom: 9px;
  }
  .page-heading .muted {
    font-size: 11px;
    max-width: 320px;
    line-height: 1.9;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .page-heading .segment {
    margin-top: 21px;
  }
  .segment {
    border-radius: 6px;
  }
  .segment button {
    min-height: 33px;
    font-size: 11px;
    padding: 5px 17px;
    gap: 17px;
  }
  .segment .jp {
    font-size: 16px;
  }
  .hero {
    min-height: 330px;
    display: block;
    border-radius: 7px;
  }
  .hero-copy {
    padding: 26px 22px 23px;
    min-height: 330px;
  }
  .tag {
    font-size: 8px;
    gap: 5px;
  }
  .dot {
    width: 4px;
    height: 4px;
  }
  .hero h2 {
    font-size: 26px;
    line-height: 1.65;
    letter-spacing: 0.04em;
    margin: 17px 0 10px;
    position: relative;
    z-index: 2;
  }
  .hero h2 .jp {
    font-size: 31px;
  }
  .hero p {
    font-size: 10px;
    line-height: 2;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    max-width: 190px;
  }
  .hero-actions {
    margin-top: 23px;
    gap: 12px;
    max-width: calc(100% - 18px);
  }
  .hero-actions .btn.primary {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 10px;
    z-index: 2;
  }
  .hero-actions .btn.text {
    font-size: 9px;
    padding-left: 0;
    padding-right: 0;
    min-height: 30px;
  }
  .hero-foot {
    font-size: 8px;
    gap: 5px;
    margin-top: 17px;
    line-height: 1.8;
  }
  .hero-foot .icon {
    width: 11px;
    height: 11px;
  }
  .kana-art {
    position: absolute;
    right: -10px;
    top: 33px;
    width: 145px;
    min-height: 210px;
    height: 210px;
    padding: 0;
    pointer-events: none;
    opacity: 0.95;
  }
  .art-card {
    width: 94px;
    height: 130px;
    margin-right: 12px;
    box-shadow: 2px 4px 8px #4c583a0b;
    transform: rotate(-7deg) translateX(6px);
    background-size: 78px 78px;
  }
  .art-kana {
    font-size: 72px;
    margin-top: 15px;
    line-height: 1.2;
  }
  .art-num {
    font-size: 5px;
    left: 7px;
    top: 8px;
  }
  .art-romaji {
    font-size: 12px;
    margin-top: 5px;
  }
  .art-stamp {
    font-size: 6px;
    right: 8px;
    bottom: 8px;
    padding: 0 1px;
  }
  .art-back {
    width: 88px;
    height: 123px;
    left: 45px;
    top: 25px;
    font-size: 69px;
    transform: rotate(10deg);
  }
  .art-rule {
    left: 14px;
    top: 0;
    bottom: 0;
    background: #c7cfb75c;
  }
  .art-label {
    font-size: 5px;
    top: 0;
    left: 18px;
    letter-spacing: 0.12em;
  }
  .art-caption {
    font-size: 5px;
    bottom: 10px;
    left: 24px;
    letter-spacing: 0;
  }
  .daily-stats {
    margin: 18px 0 29px;
    padding: 19px 0 16px;
    border-radius: 6px;
  }
  .daily-stats > div {
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid #e5e6dc;
  }
  .stat-icon {
    width: 27px;
    height: 27px;
  }
  .stat-icon .icon {
    width: 14px;
    height: 14px;
  }
  .daily-stats strong {
    font-size: 21px;
    text-align: center;
  }
  .daily-stats strong small {
    font-size: 8px;
  }
  .daily-stats span > small {
    font-size: 8px;
    text-align: center;
    margin-top: 6px;
  }
  .section-heading {
    margin: 24px 0 15px;
    align-items: flex-end;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading > span {
    font-size: 8px;
    max-width: 140px;
    text-align: right;
  }
  .task-grid {
    gap: 12px;
  }
  .task-card {
    padding: 18px 16px;
    border-radius: 6px;
  }
  .task-top {
    margin-bottom: 17px;
    gap: 5px;
  }
  .task-number {
    font-size: 20px;
  }
  .task-meta {
    font-size: 7px;
  }
  .task-card h3 {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 9px;
  }
  .task-card p {
    font-size: 10px;
    min-height: 55px;
    line-height: 1.9;
    margin-bottom: 15px;
  }
  .task-card .btn {
    font-size: 9px;
    padding: 8px 10px;
    min-height: 37px;
    gap: 5px;
  }
  .task-card .btn .icon {
    width: 12px;
    height: 12px;
  }
  .journey {
    margin-top: 27px;
    padding-top: 22px;
  }
  .journey h2 {
    font-size: 17px;
    max-width: 270px;
  }
  .journey p.muted {
    font-size: 9px;
    line-height: 1.9;
  }
  .journey .eyebrow {
    font-size: 7px;
  }
  .journey-steps {
    gap: 0;
    margin-top: 18px;
  }
  .journey-step {
    padding-left: 11px;
  }
  .journey-step > span {
    font-size: 9px;
    left: 11px;
  }
  .journey-step strong {
    font-size: 10px;
  }
  .journey-step small {
    font-size: 8px;
  }
  .page-footer {
    margin: 28px auto 0;
    padding: 0 23px calc(94px + env(safe-area-inset-bottom));
    font-size: 8px;
  }
  .paper {
    padding: 21px 18px;
  }
  .chart-paper {
    padding: 17px 12px;
  }
  .chart-legend {
    font-size: 8px;
    gap: 12px;
    margin-bottom: 14px;
  }
  .legend-dot {
    width: 5px;
    height: 5px;
    margin-right: 4px;
  }
  .kana-row {
    grid-template-columns: 21px repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 5px;
  }
  .row-label {
    font-size: 11px;
  }
  .row-play {
    min-width: 28px;
    min-height: 28px;
    padding: 4px;
  }
  .row-play .icon {
    width: 11px;
    height: 11px;
  }
  .header-row {
    font-size: 12px;
    margin-bottom: 11px;
  }
  .kana-cell {
    min-height: 69px;
    border-radius: 4px;
    padding: 4px 1px;
  }
  .kana-cell > .jp {
    font-size: 32px;
    line-height: 1.2;
  }
  .kana-cell small {
    font-size: 9px;
    line-height: 1.6;
  }
  .kana-cell i {
    width: 3px;
    height: 3px;
    right: 4px;
    top: 5px;
  }
  .empty-cell {
    min-height: 60px;
  }
  .chart-note {
    font-size: 9px;
    margin-top: 19px;
    line-height: 1.9;
  }
  .tip-strip {
    font-size: 10px;
    margin-top: 20px;
  }
  .tip-strip .icon {
    width: 14px;
    height: 14px;
  }
  .review-banner {
    display: block;
    padding: 23px;
    margin-bottom: 18px;
  }
  .review-banner h2 {
    font-size: 22px;
  }
  .review-banner p {
    font-size: 10px;
  }
  .review-banner .eyebrow {
    font-size: 8px;
  }
  .review-banner > .btn {
    font-size: 11px;
    min-height: 42px;
    margin-top: 20px;
  }
  .practice-grid {
    gap: 12px;
  }
  .practice-card {
    padding: 20px 15px;
    border-radius: 6px;
  }
  .practice-icon {
    width: 33px;
    height: 33px;
    margin-bottom: 19px;
  }
  .practice-icon .icon {
    width: 17px;
    height: 17px;
  }
  .practice-card h2 {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .practice-card p {
    font-size: 10px;
    min-height: 60px;
    line-height: 1.9;
  }
  .practice-card > .btn {
    font-size: 10px;
    padding: 8px 12px;
    min-height: 39px;
  }
  .practice-grid + .small {
    font-size: 9px;
    line-height: 1.9;
  }
  .exam-banner {
    display: block;
    padding: 23px;
  }
  .exam-banner h2 {
    font-size: 23px;
    max-width: 230px;
  }
  .exam-banner p:last-child {
    font-size: 10px;
    line-height: 1.9;
  }
  .exam-banner > .btn {
    font-size: 11px;
    min-height: 42px;
    margin-top: 21px;
  }
  .exam-banner + .small {
    font-size: 9px;
    line-height: 1.9;
  }
  .progress-overview {
    gap: 12px;
  }
  .progress-overview .paper {
    padding: 21px 17px;
  }
  .big-number {
    font-size: 38px;
  }
  .big-number small {
    font-size: 13px;
  }
  .progress-overview .paper > .eyebrow {
    font-size: 8px;
  }
  .progress-overview .paper > p:last-child {
    font-size: 9px;
  }
  .mastery-paper {
    padding: 15px 13px;
  }
  .mastery th {
    padding: 9px 2px;
    font-size: 9px;
  }
  .mastery td {
    padding: 13px 2px;
    font-size: 19px;
  }
  .mastery td small {
    display: block;
    font-size: 8px;
    margin-top: 4px;
  }
  .mastery-paper > p {
    font-size: 9px;
    line-height: 1.9;
  }
  .progress-lists {
    grid-template-columns: 1fr;
    margin-top: 18px;
    gap: 16px;
  }
  .progress-lists h2 {
    font-size: 18px;
  }
  .weak-list button {
    gap: 16px;
  }
  .weak-list small {
    font-size: 10px;
  }
  .day-list span {
    font-size: 12px;
  }
  .empty-note {
    padding: 26px 0;
    font-size: 13px;
  }
  .exam-history li {
    gap: 8px;
  }
  .exam-history li > span {
    font-size: 12px;
  }
  .exam-history strong {
    font-size: 12px;
  }
  .exam-history small {
    font-size: 9px;
  }
  .settings-section {
    padding: 23px 20px;
    margin-bottom: 16px;
  }
  .settings-section h2 {
    font-size: 21px;
    gap: 10px;
  }
  .settings-section > p {
    font-size: 11px;
    line-height: 1.9;
  }
  .settings-section p.small {
    font-size: 9px;
    line-height: 1.9;
  }
  .button-row {
    gap: 10px;
  }
  .button-row > .btn {
    font-size: 11px;
    padding: 10px 15px;
  }
  .inline-field {
    font-size: 11px;
  }
  .install-steps {
    font-size: 11px;
    padding-left: 17px;
    line-height: 2.1;
  }
  .settings-section .small {
    font-size: 10px;
  }
  .save-banner {
    margin: 4px 23px;
    padding: 12px 15px;
    font-size: 11px;
  }
  .exam-topline {
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
  }
  .exam-topline .small {
    font-size: 8px;
    max-width: 120px;
    text-align: right;
  }
  .exam-cell {
    min-height: 45px;
    border-radius: 3px;
  }
  .exam-cell .empty-plus {
    font-size: 11px;
  }
  .answer-corner {
    font-size: 22px;
    bottom: -3px;
    right: 1px;
  }
  .grade-corner {
    font-size: 9px;
  }
  .exam-actions .btn {
    font-size: 11px;
  }
  .exam-actions + .small {
    font-size: 10px;
  }
  .toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
    font-size: 11px;
    max-width: calc(100vw - 36px);
    padding: 12px 17px;
  }
  dialog {
    width: calc(100vw - 26px);
    max-height: calc(100dvh - 30px);
    border-radius: 10px;
  }
  .dialog-inner {
    padding: 20px 23px 25px;
  }
  .dialog-heading .eyebrow {
    font-size: 8px;
  }
  .dialog-heading p {
    font-size: 10px;
  }
  .dialog-heading .icon-button {
    margin-right: -9px;
  }
  .question-instruction {
    font-size: 11px;
    margin-top: 14px;
  }
  .question-glyph {
    font-size: 124px;
    line-height: 1.35;
    margin: 16px 0;
  }
  .detail-glyph {
    font-size: 135px;
  }
  .detail-reading {
    font-size: 25px;
  }
  .kana-hint {
    font-size: 11px;
    padding: 13px 15px;
  }
  .answer-options {
    gap: 11px;
    margin-top: 20px;
  }
  .answer-option {
    min-height: 65px;
    font-size: 23px;
  }
  .answer-option .jp {
    font-size: 37px;
  }
  .question-romaji {
    font-size: 68px;
    margin: 25px 0;
  }
  .question-romaji.compact {
    font-size: 38px;
    margin: 5px 0 12px;
  }
  .detail-actions > .btn {
    font-size: 12px;
    min-width: 115px;
  }
  .canvas-toolbar > span {
    font-size: 8px;
  }
  .draw-wrap {
    max-width: 295px;
  }
  .draw-answer {
    font-size: 215px;
  }
  .feedback {
    padding: 14px 15px;
    margin: 19px 0 15px;
  }
  .feedback strong {
    font-size: 12px;
  }
  .feedback > span {
    font-size: 11px;
  }
  .feedback .jp {
    font-size: 18px;
  }
  .import-summary {
    padding: 20px 8px;
    gap: 10px;
  }
  .import-summary strong {
    font-size: 14px;
  }
  .import-summary small,
  .import-summary span {
    font-size: 10px;
  }
  .import-summary .icon {
    width: 16px;
  }
  .dialog-inner h2 {
    font-size: 21px;
  }
  .dialog-inner > .muted {
    font-size: 12px;
    line-height: 1.9;
  }
  .dialog-inner .small {
    font-size: 10px;
  }
  .completion-mark {
    width: 62px;
    height: 62px;
    margin: 18px auto 22px;
  }
}
@media (max-width: 370px) {
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .top-status span {
    display: none;
  }
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .hero-copy {
    padding-left: 19px;
    padding-right: 15px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero h2 .jp {
    font-size: 28px;
  }
  .hero-actions {
    gap: 6px;
  }
  .hero-actions .btn.primary {
    font-size: 9px;
    padding: 10px 12px;
  }
  .hero-foot {
    font-size: 7px;
  }
  .kana-art {
    right: -24px;
    opacity: 0.8;
  }
  .task-card {
    padding: 16px 12px;
  }
  .task-meta {
    font-size: 6px;
  }
  .task-card h3 {
    font-size: 14px;
  }
  .daily-stats strong {
    font-size: 19px;
  }
  .daily-stats span > small {
    font-size: 7px;
  }
  .kana-cell {
    min-height: 61px;
  }
  .kana-cell > .jp {
    font-size: 28px;
  }
  .kana-row {
    gap: 4px;
    grid-template-columns: 18px repeat(5, minmax(0, 1fr));
  }
  .practice-card h2 {
    font-size: 16px;
  }
  .practice-card {
    padding: 18px 13px;
  }
  .practice-card > .btn {
    font-size: 9px;
  }
  .dialog-inner {
    padding-left: 19px;
    padding-right: 19px;
  }
  .draw-answer {
    font-size: 205px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Phone reading sizes favor daily use over fitting every card above the fold. */
@media (max-width: 760px) {
  .page-heading .muted {
    font-size: 12px;
  }
  .hero-copy {
    min-height: 356px;
  }
  .hero h2 {
    max-width: 200px;
  }
  .hero p {
    font-size: 12px;
    max-width: 205px;
  }
  .hero-actions .btn.primary {
    font-size: 12px;
    padding: 11px 14px;
  }
  .hero-actions .btn.text {
    font-size: 11px;
  }
  .hero-foot {
    font-size: 9px;
  }
  .daily-stats span > small {
    font-size: 9px;
  }
  .daily-stats strong small {
    font-size: 10px;
  }
  .task-meta {
    font-size: 9px;
  }
  .task-card h3 {
    font-size: 17px;
  }
  .task-card p {
    font-size: 12px;
    min-height: 69px;
  }
  .task-card .btn {
    font-size: 12px;
    min-height: 44px;
    padding: 9px 12px;
  }
  .journey p.muted {
    font-size: 11px;
  }
  .journey-step strong {
    font-size: 12px;
  }
  .journey-step small {
    font-size: 10px;
  }
  .chart-legend {
    font-size: 10px;
  }
  .kana-cell small {
    font-size: 12px;
  }
  .chart-note,
  .tip-strip {
    font-size: 11px;
  }
  .review-banner p {
    font-size: 12px;
  }
  .review-banner > .btn {
    font-size: 13px;
    min-height: 46px;
  }
  .practice-card h2 {
    font-size: 18px;
  }
  .practice-card p {
    font-size: 12px;
    min-height: 72px;
  }
  .practice-card > .btn {
    font-size: 12px;
    min-height: 44px;
  }
  .practice-grid + .small,
  .exam-banner + .small {
    font-size: 11px;
  }
  .exam-banner p:last-child {
    font-size: 12px;
  }
  .exam-banner > .btn {
    font-size: 13px;
    min-height: 46px;
  }
  .settings-section > p {
    font-size: 12px;
  }
  .settings-section p.small {
    font-size: 11px;
  }
  .button-row > .btn {
    font-size: 12px;
  }
  .install-steps {
    font-size: 12px;
  }
  .question-instruction,
  .kana-hint {
    font-size: 12px;
  }
  .detail-actions > .btn {
    font-size: 13px;
    min-height: 46px;
  }
  .canvas-toolbar .btn {
    font-size: 12px;
    min-height: 44px;
  }
  .canvas-toolbar > span {
    font-size: 10px;
  }
  .dialog-inner .small {
    font-size: 11px;
  }
  .mastery-paper > p {
    font-size: 11px;
  }
  .section-heading > span {
    font-size: 10px;
  }
}
