@font-face {
  font-family: JP;
  src: url("reference/Licencas-e-fontes/JPManual-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: JP;
  src: url("reference/Licencas-e-fontes/JPManual-Bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
:root {
  --ink: #18382f;
  --ink2: #476157;
  --green: #174b3a;
  --paper: #f7f7f0;
  --white: #fffef9;
  --line: #dfe4d8;
  --muted: #6c786e;
  --red: #b34d36;
  --yellow: #eee3ad;
  --soft: #e8eee3;
  --shadow: 0 9px 32px #18382f08;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    JP,
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #d58936;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 650;
}
h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 650;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 12px;
}
ul,
ol {
  padding-left: 23px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #fffef8;
  border-right: 1px solid var(--line);
  padding: 36px 24px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand em {
  font-style: normal;
  display: block;
}
.seal {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #e9e1ba;
  width: 47px;
  height: 54px;
  transform: rotate(-3deg);
  border-radius: 14px 4px 14px 4px;
  font:
    34px JP,
    serif;
}
.brand-caption {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin: 19px 0 33px;
  color: var(--muted);
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 14px;
  color: #56675d;
  font-weight: 500;
}
.nav-link .nav-icon {
  font-size: 20px;
  font-weight: 400;
  width: 24px;
  text-align: center;
  line-height: 1;
}
.nav-link:hover {
  background: #f0f3e9;
}
.nav-link.active {
  background: #e6eddf;
  color: var(--green);
  font-weight: 650;
}
.nav-link .nav-count {
  margin-left: auto;
  font-size: 11px;
  border-radius: 30px;
  background: var(--green);
  color: white;
  padding: 1px 7px;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 7px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 22px;
}
.sidebar-bottom a {
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.edition {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 650;
}
.workspace {
  margin-left: 236px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 650;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.search-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  display: flex;
  gap: 9px;
  align-items: center;
}
.avatar {
  background: #e8e8d8;
  border: 1px solid #d4d9c9;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 10px;
  font-weight: 700;
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 32px;
  height: 32px;
}
.mobile-brand {
  display: none;
}
main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 48px 64px;
  flex: 1;
  outline: none;
}
main.narrow {
  max-width: 1080px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 13px;
}
.greeting {
  font-size: 13px;
  margin-bottom: 24px;
  color: var(--ink2);
}
.greeting span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #9eac70;
  border-radius: 50%;
  margin-right: 8px;
}
.hero {
  background: #163f32;
  color: #f9f6e7;
  border-radius: 18px;
  padding: 42px 42px 35px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  right: -100px;
  bottom: -220px;
  box-shadow:
    0 0 0 45px #ffffff03,
    0 0 0 90px #ffffff03;
  pointer-events: none;
}
.hero .eyebrow {
  color: #beccb0;
  font-size: 9px;
}
.hero h1 {
  font-size: clamp(32px, 3.3vw, 49px);
  margin: 19px 0 19px;
  max-width: 510px;
}
.hero h1 em {
  color: #d6d5aa;
  font-style: normal;
}
.hero p {
  font-size: 13px;
  color: #c1d0bd;
  max-width: 395px;
  line-height: 1.8;
}
.hero .btn {
  margin-top: 8px;
}
.hero-stamp {
  position: absolute;
  top: 22px;
  right: 25px;
  writing-mode: vertical-rl;
  font:
    12px JP,
    serif;
  color: #bbcaab;
  letter-spacing: 3px;
}
.sentence-art {
  position: relative;
  align-self: center;
  text-align: center;
  padding: 22px 0 0;
  z-index: 1;
}
.sentence-art .japanese {
  font:
    clamp(26px, 3vw, 43px) JP,
    serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin: 10px 0 21px;
}
.sentence-art .japanese rt {
  font-size: 10px;
  color: #b5c7ad;
}
.sentence-art .japanese mark {
  color: #eee3ad;
  background: transparent;
}
.art-components {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.art-components span {
  padding: 7px 9px;
  border-radius: 5px;
  border: 1px solid #ffffff24;
  font-size: 9px;
  color: #d6dfcb;
}
.art-components span:nth-child(2) {
  background: #b1ba8640;
}
.art-caption {
  font-size: 10px;
  letter-spacing: 0.15px;
  color: #b7c8b4;
  margin: 17px auto !important;
  text-align: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 25px 0 34px;
  background: #fffef9;
  padding: 20px 0;
}
.stat {
  padding: 0 23px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat strong {
  font-size: 27px;
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 550;
  display: inline-block;
  margin-bottom: 9px;
}
.stat strong i {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0;
}
.stat span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 17px;
  gap: 18px;
}
.section-head h2 {
  font-size: 22px;
  margin: 0;
}
.section-head a,
.text-link {
  font-size: 12px;
  color: var(--ink2);
  text-decoration: none;
  border-bottom: 1px solid #a9b9a2;
  padding-bottom: 2px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 21px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  font-size: 13px;
  color: var(--ink2);
}
.card .eyebrow {
  font-size: 9px;
}
.next-card {
  position: relative;
}
.card .line {
  height: 1px;
  background: var(--line);
  margin: 21px 0;
}
.step-path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 10px;
}
.step-path b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #bac8b2;
  border-radius: 50%;
  color: var(--green);
  font-weight: 600;
}
.step-path hr {
  width: 26px;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 43px;
  padding: 11px 19px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  line-height: 1.4;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--green);
  color: #fffef3;
}
.btn.primary:hover {
  background: #226044;
}
.btn.light {
  background: #eee4ad;
  color: #244430;
}
.btn.secondary {
  border: 1px solid #cbd6c2;
  background: transparent;
}
.btn.quiet {
  color: var(--ink2);
  padding: 10px;
}
.btn.small {
  min-height: 35px;
  padding: 8px 12px;
  font-size: 11px;
}
.btn.danger {
  color: #962e23;
  border: 1px solid #d5b2a9;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 21px;
}
.actions.between {
  justify-content: space-between;
}
.pill {
  display: inline-block;
  border: 1px solid #ccd7c1;
  color: #536c4a;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.dark {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.pill.warn {
  background: #f5e6d6;
  border-color: #e6c7aa;
  color: #865130;
}
.pill.soft {
  background: var(--soft);
  border-color: var(--soft);
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.small-text {
  font-size: 13px;
}
.arrow-circle {
  height: 29px;
  width: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.resource-card {
  display: block;
  text-decoration: none;
  position: relative;
}
.resource-card .symbol {
  font-size: 28px;
  color: var(--green);
  display: block;
  margin-bottom: 18px;
}
.resource-card .arrow-circle {
  position: absolute;
  right: 21px;
  top: 24px;
}
.resource-card p {
  margin-bottom: 0;
}
.footer {
  margin: 0 48px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.footer a {
  text-decoration: none;
}
.footer-dot {
  margin: 0 7px;
}
.page-heading {
  margin-bottom: 29px;
}
.page-heading h1 {
  font-size: 38px;
  margin: 0 0 14px;
}
.page-heading > p {
  max-width: 720px;
  color: var(--ink2);
  font-size: 14px;
}
.breadcrumbs {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.breadcrumbs a {
  text-decoration: none;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #e9eee2;
  border-radius: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 12px;
  text-decoration: none;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.tab.active {
  background: var(--white);
  box-shadow: 0 1px 5px #18382f10;
  font-weight: 650;
}
.lesson-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 25px;
}
.lesson-content .main-card {
  padding: 30px;
}
.lesson-aside {
  align-self: start;
  position: sticky;
  top: 22px;
}
.lesson-aside p {
  font-size: 12px;
}
.formula {
  padding: 20px 23px;
  background: #e9eedf;
  border-left: 3px solid #779268;
  border-radius: 0 8px 8px 0;
  margin: 25px 0;
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  letter-spacing: -0.03em;
}
.jp {
  font-family: JP, system-ui, sans-serif;
  font-size: 23px;
  line-height: 2.4;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.jp.large {
  font-size: 30px;
  line-height: 2.2;
}
ruby {
  ruby-align: center;
}
rt {
  font-size: 0.46em;
  color: #687e68;
  letter-spacing: 0;
}
body.hide-ruby rt {
  visibility: hidden;
}
.example {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 23px;
  margin: 22px 0;
}
.example .translation {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 7px;
}
.explanation {
  white-space: pre-line;
  line-height: 1.9;
  font-size: 14px;
}
.vocab {
  display: grid;
  gap: 9px;
  list-style: none;
  padding: 0;
}
.vocab li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
}
.notice {
  padding: 15px 18px;
  background: #f2eddb;
  border-radius: 8px;
  font-size: 12px;
  color: #655d3e;
  margin: 18px 0;
}
.notice.green {
  background: #e5eedf;
  color: #365235;
}
.notice.red {
  background: #f5e4df;
  color: #813e30;
}
.notice p:last-child {
  margin-bottom: 0;
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 15px 0;
  padding: 0 18px;
  background: var(--white);
}
summary {
  padding: 13px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
details .details-body {
  padding: 5px 0 18px;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.prompt {
  font-size: 18px;
  line-height: 1.75;
  margin: 10px 0 22px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 17px 0;
}
.form-field label {
  font-size: 12px;
  font-weight: 650;
}
.form-field input,
.form-field select,
.form-field textarea,
textarea.answer,
input.search {
  border: 1px solid #c7d2bf;
  background: #fffef9;
  border-radius: 7px;
  padding: 12px 14px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.form-field textarea,
textarea.answer {
  resize: vertical;
  min-height: 128px;
  line-height: 1.9;
  font-family: JP, system-ui, sans-serif;
  font-size: 16px;
}
textarea.answer::placeholder {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: #8b9485;
}
.answer-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.choice {
  display: flex;
  width: 100%;
  text-align: left;
  border: 1px solid #d2dbc9;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  font-size: 14px;
  align-items: center;
  gap: 13px;
}
.choice:hover {
  background: #f0f4e9;
}
.choice .letter {
  display: grid;
  place-items: center;
  border: 1px solid #ccd7c2;
  border-radius: 6px;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  font-size: 11px;
}
.choice.selected {
  background: #e9edda;
  border-color: #789564;
}
.choice.correct {
  border-color: #6a965d;
  background: #e6efdc;
}
.choice.incorrect {
  background: #f7e8df;
  border-color: #b47f69;
}
.feedback {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: #edf1e5;
  font-size: 13px;
}
.criteria {
  padding: 0;
  list-style: none;
}
.criteria li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.criteria label {
  display: flex;
  gap: 10px;
  align-items: start;
}
.criteria input {
  margin-top: 5px;
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.review-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 20px;
}
.review-controls button {
  border: 1px solid #cbd7bf;
  border-radius: 8px;
  padding: 13px 8px;
  font-size: 12px;
  background: #f0f3e8;
}
.review-controls button:first-child {
  background: #f5e8da;
  border-color: #e4c8ad;
}
.review-controls button:last-child {
  background: var(--green);
  color: white;
}
.list {
  display: grid;
  gap: 11px;
}
.list-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  text-decoration: none;
  min-width: 0;
}
.list-row:hover {
  border-color: #b6c7ab;
}
.list-row .row-number {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.list-row .row-text {
  flex: 1;
  min-width: 0;
}
.list-row h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.list-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.list-row .row-arrow {
  color: #829173;
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  margin: 24px 0;
}
.day {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 5px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  gap: 4px;
}
.day b {
  font-size: 22px;
  font-weight: 550;
  color: var(--green);
}
.day.selected {
  background: var(--green);
  color: #d0d9c0;
}
.day.selected b {
  color: white;
}
.day.done {
  border-color: #98b184;
}
.day-plan .day-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.day-plan h2 {
  margin-bottom: 10px;
}
.progress-line {
  height: 5px;
  background: #dfe8d6;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 14px;
}
.progress-line span {
  display: block;
  height: 100%;
  background: #638952;
}
.schedule-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.schedule-switch button {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.schedule-switch .active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.unit-card {
  text-decoration: none;
  display: block;
}
.unit-card h3 {
  margin-top: 15px;
}
.unit-card p {
  font-size: 12px;
}
.library-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.library-controls input {
  flex: 1;
}
.library-controls select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
  max-width: 180px;
}
.search-results {
  display: grid;
  gap: 10px;
}
.result {
  display: block;
  padding: 17px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.result h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.result p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.audio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.audio-card audio {
  width: 100%;
  margin: 10px 0;
}
.audio-card h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.audio-card p {
  font-size: 12px;
}
.audio-card .tagline {
  font-size: 10px;
  color: var(--muted);
}
.audio-player {
  width: 100%;
  margin: 20px 0;
}
.audio-speed {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 15px;
}
.audio-speed select {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}
.transcript {
  white-space: pre-line;
  font-family: JP, system-ui;
  font-size: 15px;
  line-height: 2.2;
}
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
  gap: 23px;
}
.lab-select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
}
.lab-output {
  background: #e7eddd;
  border: 1px solid #d2ddc6;
  border-radius: 12px;
  padding: 29px;
  position: relative;
}
.lab-output .jp {
  margin: 20px 0;
  font-size: 29px;
  line-height: 2.3;
}
.roman {
  font-size: 14px;
  color: #687a54;
  line-height: 1.8;
}
.lab-output .translation {
  font-size: 17px;
  margin-top: 17px;
}
.part-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.part {
  padding: 11px 14px;
  background: #fffef9;
  border: 1px solid #ced7c1;
  border-radius: 7px;
  flex: 1;
  min-width: 100px;
}
.part strong {
  font:
    16px JP,
    serif;
  display: block;
}
.part span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.lab-explanation {
  font-size: 12px;
  color: var(--ink2);
  margin: 14px 0;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  border: 1px dashed #c5d1ba;
  border-radius: 12px;
  background: #f3f5eb;
}
.empty .empty-glyph {
  font:
    52px JP,
    serif;
  color: #90a17e;
  display: block;
  margin-bottom: 13px;
}
.empty h3 {
  font-size: 20px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 20px;
}
.notebook-entry {
  border-left: 3px solid #95aa7d;
  margin: 15px 0;
  padding: 16px 21px;
  background: var(--white);
  border-radius: 0 8px 8px 0;
}
.notebook-entry p {
  white-space: pre-line;
  font-size: 14px;
  margin: 10px 0;
}
.note-meta {
  font-size: 10px;
  color: var(--muted);
}
.source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.source-table td,
.source-table th {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.prose {
  line-height: 1.9;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  display: block;
  overflow: auto;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
}
.prose h1 {
  font-size: 28px;
}
.prose h2 {
  font-size: 23px;
  margin-top: 26px;
}
.prose h3 {
  margin-top: 22px;
}
.prose img {
  max-width: 100%;
  max-height: 450px;
}
.prose pre {
  overflow: auto;
  background: var(--soft);
  padding: 12px;
}
.prose a {
  color: #4c713d;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 4px;
}
.back-link {
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  background: #173e30;
  color: #fffef2;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 13px;
  max-width: calc(100% - 30px);
  box-shadow: 0 8px 30px #0002;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
dialog {
  width: min(600px, calc(100vw - 30px));
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  padding: 35px;
  box-shadow: 0 25px 100px #0003;
}
dialog::backdrop {
  background: #17352ab0;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 8px;
  font-size: 25px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 10px;
  background: var(--green);
  color: white;
  z-index: 999;
}
.skip:focus {
  top: 10px;
}
#storage-warning {
  background: #f5dfcf;
  padding: 13px 30px;
  font-size: 13px;
  color: #693c28;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.missing {
  padding: 50px;
  text-align: center;
}
.break-box {
  padding: 15px 20px;
  background: #eef0df;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  align-items: center;
}
.timer {
  font-variant-numeric: tabular-nums;
}
.save-indicator {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  min-height: 17px;
}
.inline-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.inline-links a {
  font-size: 11px;
}
.screen-only {
  display: block;
}
.reader-tools {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.reader-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.review-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 13px;
}
.info-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 15px 0;
}
.info-pair > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.info-pair b {
  display: block;
  margin-bottom: 8px;
}
.locked-note {
  font-size: 11px;
  margin-top: 12px;
  color: #796240;
}
.reading-example {
  font:
    35px JP,
    serif;
  letter-spacing: 0.12em;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.unit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.unit-summary h3 {
  margin: 0;
}
.pill-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.source-disclosure pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 350px;
  overflow: auto;
}
.compact-list {
  font-size: 13px;
  line-height: 1.9;
}
.daily-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (min-width: 1500px) {
  main {
    padding-top: 50px;
  }
  .hero {
    padding: 48px 48px 42px;
  }
  .hero h1 {
    font-size: 52px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 208px;
    padding: 30px 18px;
  }
  .workspace {
    margin-left: 208px;
  }
  main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .footer {
    margin: 0 30px;
  }
  .hero {
    padding: 31px;
    grid-template-columns: 1.2fr 1fr;
  }
  .hero h1 {
    font-size: 37px;
  }
  .sentence-art .japanese {
    font-size: 30px;
  }
  .art-components {
    gap: 4px;
  }
  .art-components span {
    padding: 6px;
    font-size: 8px;
  }
  .lesson-content {
    grid-template-columns: minmax(0, 1fr) 195px;
  }
  .stat {
    padding: 0 17px;
  }
  .top-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 182px;
    padding: 26px 14px;
  }
  .brand {
    font-size: 22px;
    gap: 10px;
  }
  .seal {
    width: 39px;
    height: 46px;
    font-size: 29px;
  }
  .brand-caption {
    font-size: 6.8px;
    letter-spacing: 1.3px;
  }
  .nav-link {
    padding: 10px;
    gap: 9px;
    font-size: 12px;
  }
  .workspace {
    margin-left: 182px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 29px;
  }
  .sentence-art {
    display: none;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero p {
    max-width: 470px;
  }
  .hero:before {
    content: "話";
    position: absolute;
    right: 27px;
    bottom: 0;
    font: 160px JP;
    color: #e8e4c109;
    pointer-events: none;
  }
  .hero-stamp {
    font-size: 13px;
  }
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid3 {
    gap: 11px;
  }
  .resource-card {
    padding: 18px;
  }
  .resource-card h3 {
    font-size: 15px;
  }
  .resource-card p {
    font-size: 11px;
  }
  .lesson-content {
    grid-template-columns: 1fr;
  }
  .lesson-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .lesson-aside .card {
    padding: 19px;
  }
  .lesson-aside .card h3 {
    font-size: 14px;
  }
  .lab-layout {
    grid-template-columns: 1fr;
  }
  .lab-select .slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
  }
  .stat {
    padding: 0 11px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 9px;
  }
  .top-actions {
    gap: 12px;
  }
  .search-link span {
    display: none;
  }
  .day-grid {
    gap: 5px;
  }
  .day {
    padding: 10px 3px;
  }
  .unit-grid {
    gap: 11px;
  }
  .card {
    padding: 22px;
  }
  .footer {
    font-size: 9px;
  }
}
@media (max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    width: 244px;
    box-shadow: 5px 0 45px #0002;
    transition: transform 0.15s;
  }
  .sidebar.open {
    transform: translateX(0);
    top: 65px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
    background: #fffef8;
    position: sticky;
    top: 0;
    z-index: 25;
  }
  .top-label {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 19px;
    font-weight: 600;
  }
  .mobile-brand span {
    font-size: 16px;
    letter-spacing: -0.7px;
  }
  .top-actions {
    gap: 13px;
  }
  .avatar {
    width: 30px;
    height: 30px;
  }
  .icon-button {
    border: 0;
  }
  .search-link {
    font-size: 22px;
  }
  main {
    padding: 24px 20px 42px;
  }
  .greeting {
    margin-bottom: 20px;
    font-size: 12px;
  }
  .hero {
    border-radius: 13px;
    padding: 28px 24px;
  }
  .hero h1 {
    font-size: 37px;
    max-width: 290px;
  }
  .hero p {
    font-size: 12px;
    max-width: 270px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .hero-stamp {
    right: 15px;
    top: 19px;
    font-size: 10px;
  }
  .hero .btn {
    margin-top: 7px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin: 18px 0 28px;
  }
  .stat {
    padding: 17px 19px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat strong {
    font-size: 27px;
    margin-bottom: 7px;
  }
  .stat span {
    font-size: 10px;
  }
  .section-head {
    margin: 26px 0 15px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .section-head a {
    font-size: 10px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .resource-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 39px 1fr;
    column-gap: 13px;
  }
  .resource-card .symbol {
    grid-row: 1/4;
    align-self: center;
    margin: 0;
  }
  .resource-card h3 {
    margin: 0 20px 6px 0;
    font-size: 16px;
  }
  .resource-card p {
    font-size: 12px;
  }
  .resource-card .arrow-circle {
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
  }
  .footer {
    margin: 0 20px;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .tabs {
    gap: 2px;
  }
  .tab {
    padding: 8px 10px;
    font-size: 11px;
  }
  .card {
    padding: 22px;
  }
  .lesson-content .main-card {
    padding: 22px;
  }
  .jp.large {
    font-size: 25px;
  }
  .jp {
    font-size: 22px;
  }
  .lesson-aside {
    grid-template-columns: 1fr;
  }
  .formula {
    font-size: 18px;
    padding: 17px;
  }
  .prompt {
    font-size: 16px;
  }
  .review-controls {
    grid-template-columns: 1fr;
  }
  .review-controls button {
    padding: 14px;
  }
  .unit-grid {
    grid-template-columns: 1fr;
  }
  .unit-card h3 {
    font-size: 18px;
  }
  .day-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }
  .day {
    padding: 9px 2px;
  }
  .day b {
    font-size: 20px;
  }
  .day > span {
    font-size: 8px;
  }
  .day-plan .day-title {
    display: block;
  }
  .audio-grid {
    grid-template-columns: 1fr;
  }
  .library-controls {
    flex-direction: column;
  }
  .library-controls select {
    max-width: 100%;
  }
  .lab-select .slots {
    grid-template-columns: 1fr;
  }
  .lab-output {
    padding: 22px;
  }
  .lab-output .jp {
    font-size: 26px;
  }
  .info-pair {
    grid-template-columns: 1fr;
  }
  .list-row {
    padding: 15px;
    gap: 12px;
  }
  .list-row .pill {
    font-size: 8px;
  }
  .list-row h3 {
    font-size: 13px;
  }
  .list-row p {
    font-size: 10px;
  }
  .list-row .row-number {
    min-width: 30px;
    height: 32px;
  }
  .reader-content {
    padding: 23px;
  }
  .prose h1 {
    font-size: 24px;
  }
  .prose h2 {
    font-size: 21px;
  }
  .prose {
    font-size: 14px;
  }
  .break-box {
    display: block;
  }
  .break-box button {
    margin-top: 10px;
  }
  #toast {
    left: 50%;
    bottom: 20px;
    width: max-content;
  }
  .source-table td {
    padding: 7px 3px;
  }
  .search-link span {
    display: none;
  }
  .label-row {
    align-items: start;
  }
  .btn {
    font-size: 12px;
  }
  .actions .btn {
    flex-grow: 1;
  }
  .breadcrumbs {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .btn:hover {
    transform: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .footer,
  .tabs,
  .actions,
  #toast,
  .screen-only {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .card,
  .reader-content {
    box-shadow: none;
    border: 0;
    padding: 12px;
  }
  .lesson-content {
    display: block;
  }
  .lesson-aside {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .hero {
    background: white;
    color: black;
  }
  .hero p {
    color: black;
  }
  details {
    break-inside: avoid;
  }
  a {
    color: black;
  }
  .page-heading h1 {
    font-size: 28px;
  }
}

.hero .eyebrow,
.icon-button {
  font-family: JP, system-ui, sans-serif;
}
.sentence-piece {
  display: inline-block;
}
.lab-output .jp {
  letter-spacing: -0.025em;
}
@media (max-width: 680px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .lab-output .jp {
    font-size: 24px;
    line-height: 1.9;
  }
}
.card,
.grid2 > *,
.grid3 > *,
.lesson-content > *,
.unit-grid > * {
  min-width: 0;
}
.step-path {
  flex-wrap: wrap;
}
.section-head > * {
  min-width: 0;
}
