@font-face {
  font-family: DM Serif Text;
  src: url('fonts/serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: DM Serif Text;
  src: url('fonts/serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Journal Han;
  src: url('fonts/han.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Journal Han',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #2e332b;
  background: #f9f8f3;
  --page: #f9f8f3;
  --paper: #fffdf7;
  --ink: #2e332b;
  --muted: #60665a;
  --line: #deded1;
  --red: #aa432c;
  --red-dark: #87321f;
  --green: #40583d;
  --serif: 'DM Serif Text', Georgia, 'Times New Roman', serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 18% 0%, #faf8ef 0%, transparent 52%), var(--page);
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #836321;
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button,
a {
  touch-action: manipulation;
}
:lang(fr) {
  hyphens: auto;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 12px;
  background: #fff;
}
#header {
  border-bottom: 1px solid #d8dacc;
  background: #fbfaf4;
}
.masthead {
  max-width: 1304px;
  padding: 0 52px;
  height: 79px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-stamp {
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  color: #fff5da;
  background: #ac462e;
  transform: rotate(-5deg);
  position: relative;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat,
    radial-gradient(circle at 0 50%, transparent 1.6px, #000 1.95px) left / 4px 6px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 1.6px, #000 1.95px) right / 4px 6px repeat-y,
    radial-gradient(circle at 50% 0, transparent 1.6px, #000 1.95px) top / 6px 4px repeat-x,
    radial-gradient(circle at 50% 100%, transparent 1.6px, #000 1.95px) bottom / 6px 4px repeat-x;
}
.brand-stamp:after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #eabca8;
}
.brand-stamp svg {
  transform: rotate(4deg);
}
.brand-type {
  display: grid;
  gap: 0;
}
.brand-type b {
  font: 400 33px/0.99 var(--serif);
  letter-spacing: -1.7px;
}
.brand-type small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  margin: 4px 0 0 2px;
}
.main-nav {
  display: flex;
  gap: 7px;
  align-items: center;
}
.main-nav a {
  min-height: 39px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
  color: #535a50;
}
.main-nav a:hover,
.profile-trigger:hover {
  background: #efeee5;
}
.main-nav a.active {
  background: #f5e8d9;
  color: #934027;
}
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 550;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 11px 4px 5px;
  background: #fffdf8;
  max-width: 184px;
}
.profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 31px;
  height: 31px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 650;
  font-size: 13px;
}
.color-0 {
  background: #e8bda4;
  color: #592f1f;
}
.color-1 {
  background: #c2d3bb;
  color: #30482e;
}
.color-2 {
  background: #bed5de;
  color: #274452;
}
.color-3 {
  background: #e7d09b;
  color: #5b451f;
}
.color-4 {
  background: #d7c4de;
  color: #493254;
}
#content {
  max-width: 1304px;
  padding: 37px 52px 0;
  margin: auto;
}
.page-heading,
.section-bar,
.small-heading,
.study-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.page-heading {
  margin: 0 0 25px;
}
.page-heading > div,
.section-bar > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}
h1 {
  font-weight: 650;
  letter-spacing: -0.9px;
  font-size: clamp(27px, 2.9vw, 40px);
  line-height: 1.4;
}
.heading-fr {
  font: 400 italic 21px/1.3 var(--serif);
  color: #737968;
}
.date-label,
.page-total {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.date-label svg {
  color: #947941;
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.72fr) minmax(230px, 1fr);
  gap: 20px;
}
.hero {
  position: relative;
  min-height: 338px;
  isolation: isolate;
  border: 1px solid #ded4bf;
  background-color: #f2e8d5;
  display: flex;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 2px 1px #6d584708;
}
.paper-grain {
  background-image:
    radial-gradient(#ad937d30 0.65px, transparent 0.75px),
    radial-gradient(ellipse at 4% 0%, #faf2e1 0%, transparent 70%);
  background-size:
    5px 6px,
    100% 100%;
  background-position:
    0 1px,
    0 0;
}
.hero::after {
  position: absolute;
  content: '';
  height: 5px;
  bottom: 0;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(
    120deg,
    #b95b45 0 16px,
    #f7ead4 16px 32px,
    #83938a 32px 48px,
    #f7ead4 48px 64px
  );
  opacity: 0.86;
  z-index: 2;
}
.hero-copy {
  width: 47%;
  padding: 28px 0 29px 32px;
  position: relative;
  z-index: 2;
  align-self: center;
}
.lesson-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #cbae86;
  border-radius: 4px;
  color: #7c492c;
  background: #f7eddb;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.6px;
}
.hero h2 {
  font: 400 clamp(48px, 4.6vw, 70px) / 0.94 var(--serif);
  letter-spacing: -2.6px;
  margin: 13px 0 13px;
  overflow-wrap: break-word;
}
.hero h2 em {
  font-weight: 400;
  color: #a74e34;
}
.hero h2.long-title {
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: 1.05;
}
.hero-lesson {
  font-size: 14px;
  font-weight: 620;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-lesson span,
.eyebrow {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 1.7px;
}
.hero-lesson span {
  color: #775e47;
  letter-spacing: 1px;
}
.hero-lesson i,
.lesson-start i {
  height: 3px;
  width: 3px;
  background: #8e8b78;
  border-radius: 50%;
}
.hero-copy > p {
  font-size: 13px;
  line-height: 1.7;
  color: #595f52;
  margin: 6px 0 16px;
}
.hero-actions,
.dialog-buttons,
.finish-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.btn {
  padding: 0 18px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn.primary {
  background: var(--red);
  color: #fffaf2;
  box-shadow: 0 2px 0 #71371c19;
}
.btn.primary:hover {
  background: var(--red-dark);
}
.btn.secondary {
  background: var(--paper);
  border-color: #cacbbd;
}
.btn.secondary:hover {
  background: #f0efe5;
}
.btn:disabled {
  background: #e6e5dc;
  color: #62675d;
  box-shadow: none;
  transform: none;
}
.hero-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #5c6055;
  white-space: nowrap;
}
.postcard-art {
  position: absolute;
  inset: 0 0 0 46%;
  z-index: 1;
}
.postcard-photo,
.photo-back {
  position: absolute;
  width: 90%;
  height: 77%;
  left: 3%;
  top: 12%;
  background: #fffdf3;
  box-shadow: 1px 5px 11px #64503c26;
  border: 1px solid #dcd3be54;
}
.photo-back {
  transform: rotate(-5.7deg) translate(-0.5%, -1%);
  background: #dfd9bc;
  box-shadow: 1px 3px 8px #64503c17;
}
.postcard-photo {
  transform: rotate(4deg);
  padding: 8px 8px 0;
  display: flex;
  flex-direction: column;
}
.postcard-photo img {
  width: 100%;
  min-height: 0;
  flex: 1;
  display: block;
  object-fit: cover;
  object-position: center 56%;
}
.postcard-photo figcaption {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6c6759;
  height: 29px;
  padding: 0 4px;
}
.postcard-photo figcaption span:first-child {
  font: italic 15px/1 var(--serif);
}
.postcard-photo figcaption span:last-child {
  font: 8px/1 var(--mono);
  letter-spacing: 1.5px;
}
.postmark {
  position: absolute;
  bottom: 5%;
  left: -12%;
  width: 111px;
  height: 68px;
  transform: rotate(-8deg);
  color: #705848;
  opacity: 0.78;
  pointer-events: none;
}
.inbox-home {
  border-radius: 15px;
  background: #e7eddf;
  border: 1px solid #ced9c5;
  padding: 25px 24px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.inbox-title {
  z-index: 1;
}
.eyebrow {
  color: #696952;
}
.inbox-title .eyebrow,
.study-card .eyebrow {
  color: #526b4f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ink-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.inbox-title h2 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin-top: 5px;
}
.mailbox-art {
  width: 51%;
  height: 52%;
  max-width: 159px;
  object-fit: contain;
  position: absolute;
  right: 6px;
  top: 16%;
  mix-blend-mode: multiply;
  z-index: -1;
  transform: rotate(6deg);
}
.due-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: auto 0 0;
}
.due-count strong {
  font: 400 clamp(52px, 5.4vw, 76px) / 1 var(--serif);
  letter-spacing: -2.5px;
  color: #364e36;
}
.due-count span {
  font-size: 12px;
  color: #45573d;
  font-weight: 550;
}
.inbox-home > p {
  font-size: 12px;
  line-height: 1.65;
  color: #505e49;
  max-width: 23em;
  margin: 9px 0 18px;
}
.inbox-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #b0bca8;
  min-height: 49px;
  font-size: 13px;
  font-weight: 650;
  color: #3d543a;
}
.inbox-link:hover {
  color: #1e381d;
}
.section-block {
  margin-top: 32px;
}
.section-bar {
  margin-bottom: 15px;
}
.section-bar h2,
.small-heading h2 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.65px;
}
.section-bar > div > span,
.small-heading > span[lang='fr'] {
  font: italic 16px/1.4 var(--serif);
  color: #636c5d;
}
.text-link,
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7e402a;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
}
.text-link:hover,
.text-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.unit-card,
.panel,
.course-group,
.lesson-banner,
.review-cover,
.review-stats,
.finish-card,
.study-card,
.single-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.unit-color-1 {
  --tint: #f0e3cb;
  --mark: #815025;
}
.unit-color-2 {
  --tint: #e1e8d8;
  --mark: #4c694c;
}
.unit-color-3 {
  --tint: #e0e7ec;
  --mark: #4c6878;
}
.unit-color-0 {
  --tint: #eee3ed;
  --mark: #785d73;
}
.unit-card {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 20px 20px 19px;
  min-height: 148px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.unit-card:hover,
.course-group .lesson-row:hover {
  border-color: #acb09c;
  background: #fffefb;
}
.unit-card:hover {
  box-shadow: 0 3px 12px #63554012;
}
.stamp {
  display: inline-block;
  flex: none;
  width: 79px;
  height: 94px;
  transform: rotate(-5deg);
  background: #e6dcc0;
  padding: 7px;
  position: relative;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat,
    radial-gradient(circle at 0 50%, transparent 2.25px, #000 2.65px) left / 4px 8px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 2.25px, #000 2.65px) right / 4px 8px repeat-y,
    radial-gradient(circle at 50% 0, transparent 2.25px, #000 2.65px) top / 8px 4px repeat-x,
    radial-gradient(circle at 50% 100%, transparent 2.25px, #000 2.65px) bottom / 8px 4px repeat-x;
}
.stamp-2 {
  transform: rotate(4deg);
  background: #d4dcc8;
}
.stamp-3 {
  transform: rotate(-4deg);
  background: #cedbe1;
}
.stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #6e735872;
}
.unit-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.unit-text .eyebrow,
.course-cover .eyebrow {
  color: var(--mark);
}
.unit-text b {
  font-size: 21px;
  font-weight: 640;
  line-height: 1.45;
  margin: 3px 0 0;
}
.unit-text i,
.course-cover i {
  font: italic 15px/1.4 var(--serif);
  color: #5e6656;
}
.unit-count {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.round-arrow {
  display: grid;
  place-items: center;
  position: absolute;
  right: 15px;
  bottom: 17px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid #dcddcf;
  color: #636e5a;
}
.lower-grid {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}
.panel {
  padding: 22px 24px;
}
.small-heading h3 {
  font-size: 17px;
  font-weight: 630;
  letter-spacing: -0.3px;
}
.small-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.daily-phrase {
  display: flex;
  align-items: center;
  gap: 17px;
}
.daily-mark {
  width: 48px;
  height: 48px;
  border: 1px solid #dfd3bd;
  border-radius: 50%;
  background: #f3ead8;
  color: #8d623c;
  display: grid;
  place-items: center;
  flex: none;
}
.daily-phrase .small-heading {
  justify-content: flex-start;
  gap: 9px;
}
.daily-phrase .small-heading span {
  font-size: 13px;
}
.daily-phrase > div:nth-child(2) {
  min-width: 0;
}
.daily-phrase p {
  font: 400 23px/1.2 var(--serif);
  margin: 8px 0 3px;
  overflow-wrap: break-word;
}
.daily-phrase small {
  color: var(--muted);
  font-size: 12px;
}
.daily-controls {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.icon-button {
  width: 37px;
  height: 37px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #606755;
  flex: none;
  padding: 0;
}
.icon-button:hover {
  background: #edeedf;
}
.audio-button {
  background: #f1f1e6;
  color: #4a6247;
}
.save-button.saved {
  color: var(--red);
  background: #f7eadf;
}
.save-button.saved svg {
  fill: #edd4c3;
}
.is-playing {
  box-shadow: inset 0 0 0 2px #63855c !important;
  background: #e0ebd6 !important;
  color: #314d31 !important;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 15px;
}
.week-day {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.week-day i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px dashed #c5cabb;
  border-radius: 50%;
  background: #f8f8ef;
}
.week-day i b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7bcad;
}
.week-day.is-today i {
  border: 1.5px solid var(--red);
  background: #fcf0df;
}
.week-day.is-today i b {
  background: var(--red);
}
.week-day.is-active i {
  background: #d8e3d0;
  color: #405b35;
  border-color: #9caf94;
}
footer {
  margin: 31px auto 0;
  border-top: 1px solid var(--line);
  padding: 17px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6c7163;
  font-size: 11px;
}
footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer i {
  font-style: normal;
  color: #a2a594;
}
footer button {
  font-size: 11px;
  color: #5e6557;
  min-height: 34px;
}
footer button:hover {
  text-decoration: underline;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: #565e50;
  padding: 6px 14px;
  font-size: 13px;
}
.filter:hover {
  background: #eeeee3;
}
.filter.selected {
  background: #e5eadb;
  border-color: #cdd5c1;
  color: #35492f;
  font-weight: 600;
}
.filter span {
  font: 11px var(--mono);
  opacity: 0.85;
}
.course-groups {
  display: grid;
  gap: 20px;
  margin-top: 21px;
}
.course-group {
  display: grid;
  grid-template-columns: minmax(230px, 31%) 1fr;
  overflow: hidden;
}
.course-cover {
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--tint);
}
.course-cover .stamp {
  width: 78px;
  height: 96px;
}
.course-cover h2 {
  font-size: 24px;
  letter-spacing: -1px;
  margin: 4px 0 1px;
}
.course-cover p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
  color: #50584d;
}
.course-list {
  padding: 6px 24px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 3px;
  min-height: 63px;
  border-bottom: 1px solid #e5e6da;
}
.lesson-row:last-child {
  border-bottom: 0;
}
.lesson-no {
  font: 14px var(--mono);
  color: #65705e;
}
.lesson-row > div,
.mini-phrase > div,
.phrase-text,
.schedule-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.lesson-row b {
  font-size: 15px;
  font-weight: 600;
}
.lesson-row div span {
  color: var(--muted);
  font: italic 14px/1.3 var(--serif);
}
.lesson-row small {
  margin-left: auto;
  font-size: 11px;
  color: #626a5c;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.complete-tag {
  color: #3b603d !important;
}
.back-link {
  font-size: 13px;
  color: #5e6859;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 14px;
}
.back-link:hover {
  text-decoration: underline;
}
.lesson-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(110deg, var(--tint), var(--paper));
  margin-bottom: 18px;
}
.lesson-banner .stamp {
  width: 86px;
  height: 104px;
}
.lesson-banner-copy {
  flex: 1;
  min-width: 0;
}
.lesson-banner h1 {
  font: 400 clamp(29px, 3vw, 44px) / 1.1 var(--serif);
  margin: 6px 0;
  letter-spacing: -1.2px;
}
.lesson-banner h2 {
  font-size: 18px;
  font-weight: 600;
}
.lesson-banner p,
.review-cover p,
.finish-card p {
  font-size: 14px;
  color: #586051;
  line-height: 1.8;
  margin-top: 5px;
}
.lesson-start {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: none;
}
.lesson-start > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.lesson-columns {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 18px;
  align-items: start;
}
.lesson-columns .small-heading h2 {
  font-size: 19px;
}
.conversation {
  margin-top: 14px;
}
.talk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 3px;
  border-radius: 6px;
}
.talk.playing-line {
  background: #edf1e4;
}
.speaker {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: italic 16px var(--serif);
}
.s-0 {
  background: #f1dfca;
  color: #82492d;
}
.s-1 {
  background: #e0e7d9;
  color: #486147;
}
.talk > div {
  flex: 1;
  min-width: 0;
}
.talk b,
.mini-phrase b,
.phrase-row b,
.schedule-row b {
  font: 400 19px/1.3 var(--serif);
  overflow-wrap: anywhere;
}
.talk p,
.mini-phrase span,
.phrase-text span,
.schedule-row > div span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 2px;
}
.talk .audio-button {
  width: 33px;
  height: 33px;
}
.tip,
.recall-note,
.next-due {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  background: #f0f1e5;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #4e5d47;
}
.tip {
  margin-top: 16px;
}
.tip > svg,
.recall-note > svg {
  margin-top: 3px;
}
.tip b {
  display: block;
  margin-bottom: 2px;
}
.mini-phrase,
.phrase-row,
.schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e2e4d8;
  padding: 14px 0;
}
.phrases-preview .small-heading {
  margin-bottom: 13px;
}
.mini-phrase > div,
.schedule-row > div,
.phrase-text {
  flex: 1;
  min-width: 0;
}
.review-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.review-cover {
  display: flex;
  align-items: center;
  gap: 23px;
  background-color: #e6edde;
  border-color: #d0d9c7;
  padding: 25px;
}
.review-cover > img {
  width: 26%;
  max-height: 170px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.review-cover > div {
  flex: 1;
  min-width: 0;
}
.review-cover h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-top: 5px;
}
.review-cover .btn {
  margin-top: 16px;
}
.review-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stats {
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  padding: 12px;
}
.review-stats > div {
  display: grid;
  gap: 2px;
  flex: 1;
}
.review-stats > div + div {
  border-left: 1px solid var(--line);
}
.review-stats b {
  font: 400 27px/1.15 var(--serif);
}
.review-stats span {
  font-size: 11px;
  color: var(--muted);
}
.schedule-list {
  padding-top: 4px;
  padding-bottom: 4px;
}
.schedule-row:first-child {
  border: 0;
}
.schedule-time {
  width: 90px;
  flex-shrink: 0;
  font-size: 12px;
  color: #4c694d;
}
.empty-state,
.quiet-empty,
.single-card,
.finish-card {
  text-align: center;
}
.quiet-empty,
.empty-state {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 38px 16px;
  gap: 9px;
  color: var(--muted);
}
.quiet-empty p,
.empty-state p {
  font-size: 14px;
  line-height: 1.7;
}
.empty-state h3 {
  font-size: 19px;
  color: var(--ink);
}
.empty-state .btn {
  margin-top: 9px;
}
.library-panel {
  padding: 0 24px;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf4;
  padding: 0 10px;
  color: #616a5d;
}
.search-box input {
  background: transparent;
  border: 0;
  width: 158px;
  color: var(--ink);
  min-height: 37px;
  font-size: 13px;
}
.search-box input:focus {
  outline-offset: 0;
}
.library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  font-size: 11px;
  color: var(--muted);
}
.phrase-symbol {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--tint);
  color: var(--mark);
  margin-right: 9px;
}
.phrase-origin {
  margin: 0 12px;
  color: #697260;
  font-size: 11px;
}
.phrase-row {
  padding: 12px 0;
}
.study-shell,
.finish-card,
.single-card {
  max-width: 760px;
  margin: auto;
}
.study-top {
  font-size: 12px;
  color: var(--muted);
  gap: 6px;
  margin-bottom: 9px;
}
.study-top .back-link {
  margin: 0;
}
.progress-line {
  height: 6px;
  background: #e1e4d8;
  border-radius: 6px;
  overflow: hidden;
}
.progress-line i {
  display: block;
  height: 100%;
  background: #788c68;
  border-radius: inherit;
}
.study-card {
  margin-top: 19px;
  padding: 24px 32px 31px;
  border-radius: 15px;
  min-height: 375px;
  box-shadow: 0 3px 10px #624d3307;
}
.study-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #d0d2c0;
  padding-bottom: 16px;
}
.study-card-top > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.method-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #f1f1e8;
  width: fit-content;
  border-radius: 7px;
  padding: 3px;
  margin: 20px auto 0;
}
.method-tabs button {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  min-height: 35px;
  padding: 5px 12px;
  color: #596350;
  font-size: 12px;
}
.method-tabs button.active {
  background: #fffdf7;
  color: #713e2a;
  box-shadow: 0 1px 3px #54573e24;
}
.cue {
  text-align: center;
  margin: 25px 0 20px;
}
.cue > span,
.answer-kicker {
  font-size: 12px;
  font-weight: 650;
  color: #875138;
  letter-spacing: 0.4px;
}
.cue h1 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.65;
  max-width: 21em;
  margin: 7px auto 0;
  letter-spacing: -0.3px;
}
.self-answer {
  text-align: center;
}
.self-answer p,
.grade-bar p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.self-answer .btn {
  margin-top: 16px;
}
.input-answer,
.tile-area,
.listen-area {
  max-width: 460px;
  margin: auto;
}
.input-answer label,
dialog form > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #4e594b;
}
.input-answer input,
dialog form > input {
  width: 100%;
  background: #fffefa;
  border: 1px solid #bdc1af;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--ink);
}
.accent-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 15px;
}
.accent-keys button {
  min-width: 26px;
  min-height: 30px;
  background: #f1f0e6;
  border-radius: 4px;
  font: 17px var(--serif);
}
.tile-answer,
.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tile-answer {
  min-height: 52px;
  border-bottom: 1px dashed #9d9f8f;
  margin-bottom: 10px;
  align-content: center;
  padding: 7px 0;
}
.tile-answer > span {
  font-size: 13px;
  color: var(--muted);
}
.word-bank {
  margin-bottom: 16px;
}
.tile,
.rating,
.listen-options button {
  border: 1px solid #c9cebc;
  border-radius: 6px;
  min-height: 38px;
  padding: 6px 11px;
  background: #fffefa;
}
.tile {
  font-family: var(--serif);
  font-size: 17px;
}
.tile.picked {
  background: #e8eddc;
}
.tile:disabled {
  opacity: 0.38;
}
.listen-area {
  display: grid;
  justify-items: center;
}
.listen-play {
  background: #e5eddf;
  color: #365534;
}
.listen-options {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 13px;
}
.listen-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 14px;
}
.listen-options button:hover,
.rating:hover,
.tile:not(:disabled):hover {
  background: #eff0e4;
}
.reference {
  text-align: center;
  margin: 22px auto 14px;
}
.reference h2 {
  font: 400 clamp(27px, 4vw, 43px) / 1.2 var(--serif);
  letter-spacing: -0.7px;
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
}
.reference p {
  font-size: 16px;
}
.sound-controls {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
}
.answer-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  color: #4e6945;
}
.comparison {
  font-size: 13px;
  text-align: center;
  color: #825139;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.recall-note {
  margin: 0 auto;
  max-width: 560px;
}
.grade-bar {
  text-align: center;
  margin-top: 18px;
}
.grade-bar > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 9px;
}
.rating {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rating.again {
  background: #f7e9dd;
  border-color: #dfc4ac;
  color: #803f2e;
}
.rating.positive {
  background: #e6eddf;
  color: #375236;
}
.finish-card,
.single-card {
  padding: 40px 26px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.finish-card > .stamp {
  width: 95px;
  height: 108px;
  margin: 6px 0 8px;
}
.finish-card > img {
  height: 100px;
  mix-blend-mode: multiply;
}
.finish-card .next-due {
  align-items: center;
}
.finish-actions {
  justify-content: center;
  margin: 10px 0;
}
dialog {
  width: min(465px, calc(100% - 30px));
  max-height: calc(100dvh - 46px);
  padding: 25px;
  border: 1px solid #cbcdbb;
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 100px #28322133;
  overflow: auto;
}
dialog.wide {
  width: min(560px, calc(100% - 30px));
}
dialog::backdrop {
  background: #292f2780;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.dialog-header h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.dialog-help,
.backup-box p,
.about-copy p,
.about-copy details {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.dialog-help {
  margin: 0 0 15px;
}
.profile-list {
  display: grid;
  gap: 6px;
  margin-top: 15px;
}
.profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  text-align: left;
}
.profile-row[aria-pressed='true'] {
  background: #eef1e5;
  border-color: #becdb5;
}
.profile-row b {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  overflow-wrap: anywhere;
}
.profile-row small {
  color: var(--muted);
  font-size: 11px;
}
.dialog-buttons {
  margin-top: 15px;
  gap: 10px;
}
.backup-box {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.backup-box > b {
  font-size: 14px;
}
.backup-box p {
  margin-top: 3px;
}
.backup-box > div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
dialog form > label {
  margin-top: 14px;
}
dialog form small {
  color: var(--muted);
  font-weight: 400;
}
.avatar-choices {
  border: 0;
  padding: 0;
  margin: 14px 0;
  display: flex;
  gap: 9px;
}
.avatar-choices legend {
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}
.avatar-choices label {
  position: relative;
  cursor: pointer;
}
.avatar-choices input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.avatar-choices .avatar {
  width: 35px;
  height: 35px;
}
.avatar-choices input:checked + .avatar,
.avatar-choices input:focus-visible + .avatar {
  outline: 2px solid #52654c;
  outline-offset: 2px;
}
.field-error {
  color: #923d27;
  font-size: 13px;
  margin: 12px 0;
}
.about-copy h3 {
  font-size: 16px;
  margin: 17px 0 3px;
}
.about-copy details {
  margin: 18px 0 1px;
}
.about-copy summary {
  cursor: pointer;
  font-weight: 600;
}
.about-copy ul {
  padding-left: 20px;
}
.about-copy a {
  color: #81452c;
  text-decoration: underline;
}
#notice {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: #384635;
  color: #fffdf1;
  box-shadow: 0 5px 15px #32442a20;
  padding: 10px 17px;
  font-size: 13px;
  line-height: 1.65;
  max-width: calc(100vw - 36px);
  width: max-content;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
#notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  #content {
    padding-top: 44px;
  }
  .hero {
    min-height: 360px;
  }
  .section-block {
    margin-top: 36px;
  }
  .unit-card {
    min-height: 156px;
  }
}
@media (max-width: 1120px) {
  .masthead {
    padding: 0 32px;
    gap: 13px;
  }
  .main-nav {
    gap: 2px;
  }
  .main-nav a {
    padding: 6px 11px;
  }
  #content {
    padding: 29px 32px 0;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 2.6fr) minmax(218px, 1fr);
    gap: 16px;
  }
  .hero {
    min-height: 325px;
  }
  .hero-copy {
    padding-left: 24px;
    width: 48%;
  }
  .hero h2 {
    font-size: 55px;
  }
  .postcard-art {
    left: 48%;
  }
  .postcard-photo,
  .photo-back {
    width: 91%;
    height: 69%;
    top: 16%;
  }
  .postmark {
    bottom: 8%;
  }
  .inbox-home {
    padding: 22px 18px 0;
  }
  .mailbox-art {
    width: 50%;
    right: 1px;
  }
  .unit-grid {
    gap: 12px;
  }
  .unit-card {
    padding: 16px 14px;
    gap: 13px;
  }
  .stamp {
    width: 65px;
    height: 83px;
  }
  .unit-text b {
    font-size: 19px;
  }
  .course-cover {
    padding: 17px;
    gap: 14px;
  }
  .course-cover .stamp {
    width: 64px;
    height: 81px;
  }
}
@media (max-width: 850px) {
  .masthead {
    height: 70px;
    padding: 0 23px;
  }
  .main-nav a {
    padding: 7px 9px;
    gap: 5px;
    font-size: 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand-type b {
    font-size: 29px;
  }
  .brand-type small {
    font-size: 9px;
  }
  .brand-stamp {
    width: 38px;
    height: 38px;
  }
  .profile-name {
    display: none;
  }
  .profile-trigger {
    border: 0;
    background: none;
    padding: 3px;
    gap: 3px;
  }
  #content {
    padding: 26px 23px 0;
  }
  .hero-copy {
    padding-left: 21px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 2.7fr) minmax(180px, 1fr);
    gap: 12px;
  }
  .hero h2 {
    font-size: 47px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-time {
    font-size: 10px;
  }
  .postcard-art {
    left: 50%;
  }
  .postcard-photo,
  .photo-back {
    height: 61%;
    top: 22%;
  }
  .inbox-home {
    padding: 19px 14px 0;
  }
  .inbox-title h2 {
    font-size: 22px;
  }
  .mailbox-art {
    width: 47%;
    height: 40%;
    top: 24%;
    right: 1px;
  }
  .inbox-home p {
    font-size: 11px;
  }
  .unit-card {
    padding: 14px 10px;
    gap: 9px;
    min-height: 130px;
  }
  .stamp {
    width: 49px;
    height: 66px;
    padding: 5px;
  }
  .unit-text b {
    font-size: 18px;
  }
  .unit-text i {
    font-size: 13px;
  }
  .round-arrow {
    right: 10px;
    bottom: 12px;
    width: 20px;
    height: 20px;
  }
  .lower-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 12px;
  }
  .panel {
    padding: 17px;
  }
  .daily-mark {
    display: none;
  }
  .daily-phrase {
    gap: 8px;
  }
  .daily-controls {
    flex-direction: column;
  }
  .daily-phrase .small-heading {
    gap: 6px;
  }
  .course-group {
    grid-template-columns: 30% 1fr;
  }
  .course-cover {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .lesson-banner {
    padding: 21px;
    gap: 16px;
  }
  .lesson-banner .stamp {
    width: 62px;
    height: 84px;
  }
  .lesson-start > span {
    display: none;
  }
  .lesson-columns {
    gap: 12px;
  }
  .review-layout {
    grid-template-columns: 1.25fr 1fr;
    gap: 12px;
  }
  .review-cover {
    padding: 19px;
    gap: 14px;
  }
  .review-cover h2 {
    font-size: 21px;
  }
  .library-toolbar {
    flex-wrap: wrap;
  }
  .library-toolbar .search-box {
    margin-left: auto;
  }
  .phrase-origin {
    margin: 0 5px;
  }
}
@media (max-width: 680px) {
  .masthead {
    height: 66px;
    padding: 0 18px;
  }
  .profile-name {
    display: inline;
  }
  .profile-trigger {
    border: 1px solid var(--line);
    background: #fffdf8;
    padding: 3px 8px 3px 4px;
    max-width: 128px;
    min-height: 38px;
  }
  .main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 5px 7px max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid #d2d5c7;
    background: #fbfaf4f7;
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }
  .main-nav a {
    min-height: 48px;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    font-size: 10px;
    border-radius: 7px;
  }
  .main-nav svg {
    width: 19px;
    height: 19px;
  }
  #content {
    padding: 22px 16px 72px;
  }
  .page-heading {
    margin-bottom: 16px;
    align-items: center;
    gap: 10px;
  }
  .page-heading > div {
    gap: 5px 9px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .heading-fr {
    font-size: 16px;
  }
  .date-label {
    font-size: 10px;
    gap: 4px;
  }
  .date-label svg {
    width: 14px;
  }
  .page-total {
    font-size: 11px;
    gap: 4px;
  }
  .feature-grid {
    display: block;
  }
  .hero {
    min-height: 277px;
    border-radius: 12px;
  }
  .hero-copy {
    padding: 19px 0 22px 17px;
    width: 50%;
  }
  .hero h2 {
    font-size: clamp(38px, 9.5vw, 56px);
    letter-spacing: -1.8px;
    margin: 13px 0 10px;
  }
  .hero h2.long-title {
    font-size: clamp(30px, 7vw, 40px);
  }
  .hero-lesson {
    gap: 5px;
    font-size: 12px;
  }
  .hero-lesson span {
    font-size: 9px;
  }
  .hero-copy > p {
    font-size: 12px;
    margin: 6px 0 13px;
  }
  .hero-actions {
    gap: 5px 8px;
  }
  .btn {
    font-size: 13px;
    min-height: 42px;
    padding: 0 13px;
  }
  .hero-time {
    font-size: 10px;
  }
  .hero-time svg {
    width: 12px;
  }
  .postcard-art {
    left: 51%;
  }
  .postcard-photo,
  .photo-back {
    height: 63%;
    top: 20%;
    width: 90%;
  }
  .postcard-photo {
    padding: 5px 5px 0;
  }
  .postcard-photo figcaption {
    height: 23px;
    padding: 0 1px;
  }
  .postcard-photo figcaption span:first-child {
    font-size: 12px;
  }
  .postcard-photo figcaption span:last-child {
    display: none;
  }
  .postmark {
    width: 72px;
    bottom: 4%;
    left: -16%;
  }
  .inbox-home {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 11px;
    min-height: 110px;
    padding: 13px 15px 13px 81px;
    border-radius: 11px;
    gap: 0 8px;
  }
  .inbox-title .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .inbox-title .ink-dot {
    width: 4px;
    height: 4px;
  }
  .inbox-title h2 {
    font-size: 18px;
    margin-top: 2px;
  }
  .mailbox-art {
    left: 7px;
    right: auto;
    top: 9%;
    width: 64px;
    height: 82%;
    transform: rotate(-3deg);
  }
  .due-count {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin: 0;
  }
  .due-count strong {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .due-count span {
    font-size: 10px;
  }
  .inbox-home > p {
    margin: 2px 0 0;
    max-width: 100%;
    line-height: 1.5;
  }
  .inbox-link {
    border: 0;
    min-height: 31px;
    gap: 5px;
    font-size: 11px;
    justify-self: end;
  }
  .inbox-link svg {
    width: 14px;
  }
  .section-block {
    margin-top: 24px;
  }
  .section-bar {
    margin-bottom: 10px;
    gap: 7px;
  }
  .section-bar > div {
    gap: 7px;
  }
  .section-bar h2 {
    font-size: 21px;
  }
  .section-bar > div > span {
    font-size: 14px;
  }
  .text-link,
  .text-action {
    font-size: 12px;
  }
  .unit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .unit-card {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 12px 9px 13px;
    min-height: 180px;
  }
  .unit-card .stamp {
    width: 52px;
    height: 63px;
    margin-left: 2px;
  }
  .unit-text .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .unit-text b {
    font-size: 16px;
  }
  .unit-text i {
    font-size: 11px;
    min-height: 16px;
  }
  .unit-count {
    font-size: 10px;
    margin-top: 9px;
  }
  .round-arrow {
    right: 7px;
    bottom: 10px;
    width: 16px;
    height: 16px;
  }
  .round-arrow svg {
    width: 10px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .daily-mark {
    display: grid;
    width: 36px;
    height: 36px;
  }
  .daily-mark svg {
    width: 19px;
  }
  .daily-phrase {
    gap: 12px;
  }
  .daily-controls {
    flex-direction: row;
    gap: 0;
  }
  .daily-phrase p {
    font-size: 21px;
  }
  .week-days {
    margin-top: 10px;
  }
  footer {
    font-size: 10px;
    margin-top: 20px;
    padding: 10px 0;
  }
  footer button {
    font-size: 10px;
  }
  .course-group {
    grid-template-columns: 1fr;
  }
  .course-cover {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    gap: 17px;
  }
  .course-cover .stamp {
    width: 53px;
    height: 65px;
  }
  .course-cover h2 {
    font-size: 21px;
  }
  .course-cover p {
    margin: 0;
    font-size: 11px;
  }
  .course-cover i {
    font-size: 14px;
  }
  .course-list {
    padding: 2px 14px;
  }
  .lesson-banner {
    position: relative;
    flex-wrap: wrap;
    gap: 13px;
    padding: 17px;
  }
  .lesson-banner-copy {
    min-width: 55%;
  }
  .lesson-banner .stamp {
    width: 49px;
    height: 67px;
  }
  .lesson-banner p {
    font-size: 13px;
  }
  .lesson-start {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .lesson-start > span {
    display: flex;
  }
  .lesson-columns,
  .review-layout {
    grid-template-columns: 1fr;
  }
  .lesson-start .btn {
    min-height: 40px;
  }
  .phrases-preview .small-heading {
    margin-bottom: 6px;
  }
  .mini-phrase {
    padding: 8px 0;
  }
  .review-cover {
    gap: 17px;
  }
  .review-cover > img {
    max-height: 130px;
  }
  .review-cover p {
    font-size: 13px;
  }
  .review-aside {
    gap: 10px;
  }
  .review-stats {
    order: -1;
  }
  .page-heading .btn {
    font-size: 12px;
    min-height: 37px;
    padding: 0 9px;
    gap: 4px;
  }
  .page-heading .btn svg {
    width: 15px;
  }
  .library-panel {
    padding: 0 13px;
  }
  .library-toolbar {
    gap: 9px;
    padding: 12px 0;
  }
  .library-toolbar .search-box {
    margin: 0;
    width: 100%;
  }
  .search-box input {
    width: 100%;
  }
  .filter {
    padding: 5px 10px;
    min-height: 34px;
    font-size: 12px;
  }
  .filters {
    gap: 3px;
  }
  .phrase-row {
    gap: 4px;
  }
  .phrase-origin {
    font-size: 10px;
  }
  .phrase-symbol {
    width: 27px;
    height: 27px;
    margin-right: 3px;
  }
  .phrase-row b,
  .schedule-row b {
    font-size: 17px;
  }
  .icon-button,
  .talk .audio-button {
    width: 40px;
    height: 40px;
  }
  .phrase-row .icon-button {
    width: 34px;
    height: 40px;
  }
  .back-link {
    margin-bottom: 8px;
  }
  .schedule-time {
    width: 70px;
    font-size: 11px;
  }
  .study-card {
    padding: 17px 14px 22px;
    min-height: 340px;
  }
  .method-tabs {
    gap: 2px;
  }
  .method-tabs button {
    padding: 5px 8px;
    font-size: 11px;
    min-height: 38px;
  }
  .method-tabs button svg {
    width: 14px;
  }
  .study-top {
    align-items: center;
    font-size: 11px;
  }
  .study-top .back-link {
    font-size: 12px;
  }
  .cue h1 {
    font-size: 20px;
  }
  .cue {
    margin: 23px 0 18px;
  }
  .accent-keys button {
    min-height: 35px;
  }
  .rating {
    padding: 6px 9px;
    font-size: 12px;
    min-height: 40px;
  }
  .finish-card,
  .single-card {
    padding: 27px 15px;
  }
  .backup-box > div {
    gap: 10px;
  }
  #notice {
    bottom: calc(73px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 380px) {
  .page-heading .heading-fr {
    font-size: 13px;
  }
  .page-heading > div {
    gap: 5px;
  }
  .hero-time {
    display: none;
  }
  .hero-copy {
    padding-left: 13px;
  }
  .hero {
    min-height: 263px;
  }
  .unit-card {
    padding: 10px 7px;
  }
  .unit-text b {
    font-size: 15px;
  }
  .round-arrow {
    display: none;
  }
  .phrase-origin {
    display: none;
  }
  .daily-mark {
    display: none;
  }
  .inbox-home {
    padding-left: 65px;
  }
  .mailbox-art {
    width: 54px;
    left: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.mailbox-art,
.review-cover > img,
.finish-card > img {
  filter: brightness(1.085);
}
.topic-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.topic-bar label {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.topic-bar select {
  color: var(--ink);
  max-width: 220px;
  border: 1px solid #c7ccb9;
  background: #fbfbf2;
  border-radius: 6px;
  min-height: 36px;
  padding: 3px 8px;
  font-size: 13px;
}
.topic-tag {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #5b6654;
  background: #ebeee3;
  border-radius: 3px;
  padding: 0 5px;
  font-size: 10px;
}
.bulk-link {
  margin-top: 8px;
}
dialog form > textarea {
  width: 100%;
  background: #fffefa;
  border: 1px solid #bdc1af;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
}
dialog form > textarea:focus-visible {
  outline: 3px solid #836321;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .topic-bar {
    gap: 5px;
  }
  .topic-bar select {
    max-width: 156px;
  }
}

.scene-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scene-controls select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fafaf2;
  color: #545e4f;
  font-size: 12px;
  padding: 4px;
  min-height: 30px;
}

.storage-banner {
  padding: 5px 12px;
  background: #f6e6c8;
  border: 1px solid #deca9b;
  border-radius: 7px;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
