:root {
  --bg: #f7f7f1;
  --paper: #fffefa;
  --ink: #354137;
  --muted: #83897b;
  --green: #647a4b;
  --deep: #4e653d;
  --sage: #e8eddb;
  --line: #e7e9df;
  --orange: #bf8968;
  --peach: #f3e5dc;
  --gold: #d2b877;
  --radius: 20px;
  font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bc9c62;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
button {
  border: 0;
}
svg {
  display: block;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}
legend {
  font-weight: 600;
  margin-bottom: 12px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  flex: none;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 1px solid #dce1d3;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffefb;
  color: var(--ink);
  min-height: 42px;
  max-width: 100%;
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
label {
  cursor: pointer;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -60px;
  left: 15px;
  z-index: 300;
  background: var(--deep);
  color: white;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sidebar {
  width: 232px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: #f0f2e7;
  border-right: 1px solid #e1e5d7;
  padding: 32px 21px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: 0.03em;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #8b9479;
  line-height: 1.6;
  margin-top: 2px;
}
.brand-icon {
  width: 43px;
  height: 48px;
  flex: none;
}
.nav-caption {
  font-size: 10px;
  color: #8a927d;
  letter-spacing: 0.1em;
  margin: 36px 0 17px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border-radius: 10px;
  padding: 12px 15px;
  min-height: 46px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #77816c;
  text-align: left;
  width: 100%;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #e5e9da;
}
.nav-item.active {
  background: #dee6cc;
  color: #4a6036;
  font-weight: 700;
}
.nav-item.active .icon {
  stroke-width: 1.9;
}
.nav-count {
  margin-left: auto;
  background: #f7f8ed;
  color: var(--green);
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 20px;
}
.sidebar-note {
  margin-top: auto;
  padding: 32px 0 23px;
  text-align: center;
}
.sidebar-note svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
}
.sidebar-note p {
  font-size: 12px;
  color: #6f7f5d;
  line-height: 1.9;
  letter-spacing: 0.07em;
}
.sidebar-note > span {
  font-size: 10px;
  color: #969c89;
  display: block;
  margin-top: 8px;
}
.settings-link {
  font-size: 12px;
  border-top: 1px solid #e1e5d8;
  border-radius: 0;
  padding-top: 22px;
  margin-top: 10px;
}
.local-note {
  text-align: center;
  font-size: 9px;
  color: #969c8b;
  margin-top: 17px;
  letter-spacing: 0.03em;
}
.local-note i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #95a77a;
  border-radius: 50%;
  margin-right: 4px;
}
.workspace {
  margin-left: 232px;
  min-height: 100vh;
}
.topbar {
  height: 82px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fbfbf6;
}
.breadcrumb {
  font-size: 11px;
  color: #929787;
  letter-spacing: 0.06em;
}
.breadcrumb span {
  margin: 0 14px;
  color: #c7cbbd;
}
.breadcrumb strong {
  color: #66765b;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.date-label {
  font-size: 11px;
  color: #8c9284;
}
.profile-control {
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.avatar-mini {
  width: 32px;
  height: 32px;
}
.profile-control select {
  background: transparent;
  border: 0;
  font-size: 12px;
  padding: 4px 16px 4px 4px;
  min-height: 36px;
  max-width: 180px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: #7e8b6c;
  border-radius: 9px;
  flex: none;
}
.icon-btn:hover {
  background: var(--sage);
}
.add-profile {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
}
main {
  max-width: 1440px;
  padding: 36px 42px 24px;
  margin: 0 auto;
  min-height: calc(100vh - 145px);
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #8f9a79;
  font-weight: 650;
  margin-bottom: 9px;
}
.page-heading h1 {
  font-size: clamp(21px, 1.8vw, 29px);
  letter-spacing: 0.035em;
  line-height: 1.5;
}
.page-heading p {
  font-size: 12px;
  color: #8b9183;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  min-height: 43px;
  border-radius: 9px;
  padding: 11px 19px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn.primary {
  color: #fffef8;
  background: var(--green);
  box-shadow: 0 4px 10px #526a3820;
}
.btn.primary:hover {
  background: var(--deep);
}
.btn.soft {
  background: #fffef9;
  border-color: #dfe4d3;
  color: #72805f;
}
.btn.soft:hover {
  background: #f0f3e5;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #788764;
  font-size: 11px;
  padding: 7px 0;
  min-height: 32px;
}
.text-btn:hover {
  color: #384f29;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-btn .icon {
  width: 15px;
  height: 15px;
}
.hero {
  background: #e9eedb;
  border: 1px solid #dfe5ce;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 303px;
  display: flex;
  align-items: center;
  padding: 32px 38px;
  margin-bottom: 24px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 58%;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid #d5ddc2;
  background: #f5f7edb3;
  color: #7a8965;
  border-radius: 30px;
}
.pill .icon {
  width: 13px;
  height: 13px;
}
.hero h2 {
  font-size: clamp(28px, 3.1vw, 43px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.09em;
  margin: 13px 0 9px;
}
.hero h2 span {
  color: #9a7a4b;
}
.hero-copy > p {
  font-size: 11px;
  line-height: 1.95;
  color: #83906f;
  letter-spacing: 0.04em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 22px;
}
.hero-actions > span {
  font-size: 10px;
  color: #96a184;
}
.garden-art {
  position: absolute;
  width: 47%;
  right: 7px;
  bottom: 25px;
  max-height: 290px;
}
.hero-number {
  position: absolute;
  bottom: 14px;
  right: 25px;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: #9da88c;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 21px 18px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  flex: none;
}
.sage {
  background: #edf1e3;
  color: #7c905e;
}
.peach {
  background: #f4e9e1;
  color: #b5896b;
}
.yellow {
  background: #f6efdc;
  color: #b49e65;
}
.blue {
  background: #e8eef0;
  color: #8ba0a1;
}
.stat-icon .icon {
  width: 20px;
  height: 20px;
}
.stat-card div > span {
  font-size: 11px;
  color: #8b9281;
}
.stat-card strong {
  display: block;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.4;
  color: #4f6042;
  margin: 3px 0 2px;
}
.stat-card small {
  font-size: 10px;
  font-weight: 400;
  color: #8f9785;
  margin-left: 9px;
}
.stat-card p {
  font-size: 9px;
  color: #a0a695;
  white-space: nowrap;
}
.home-lower {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 21px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 19px;
}
.section-head h2 {
  font-size: 15px;
  letter-spacing: 0.04em;
}
.section-head h2 small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.section-kicker {
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #a8ae9e;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: transparent;
  border-top: 1px solid #eef0e7;
  padding: 17px 0;
}
.task-row:first-of-type {
  border-top: 0;
  padding-top: 5px;
}
.task-row:last-child {
  padding-bottom: 0;
}
.task-number {
  background: #eef2e6;
  border: 1px solid #e1e8d3;
  color: #94a276;
  font:
    500 12px Georgia,
    serif;
  border-radius: 10px;
  width: 37px;
  height: 41px;
  display: grid;
  place-items: center;
  flex: none;
}
.task-number.orange {
  background: #f8eee7;
  border-color: #f0e3d9;
  color: #be9678;
}
.task-number.gold {
  background: #f7f3e7;
  border-color: #ede6d4;
  color: #bead77;
}
.task-row h3 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}
.task-row p {
  font-size: 10px;
  color: #98a08c;
}
.task-row > .icon {
  margin-left: auto;
  color: #9da88c;
  width: 15px;
  height: 15px;
}
.task-row:hover h3 {
  color: var(--green);
}
.mini-tag {
  font-size: 8px;
  color: #ad886d;
  background: #f4e9df;
  border-radius: 5px;
  padding: 2px 5px;
  margin-left: 5px;
}
.weekly-chart {
  height: 153px;
  display: flex;
  gap: 9px;
  margin-top: 7px;
}
.chart-grid {
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 8px;
  color: #a7ae9b;
  padding: 18px 0 22px;
}
.chart-bars {
  display: flex;
  justify-content: space-around;
  flex: 1;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 54px,
    #edf0e5 54px,
    #edf0e5 55px
  );
  padding-top: 0;
}
.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  position: relative;
}
.chart-column > b {
  height: 19px;
  font-size: 9px;
  color: #8f9d78;
  font-weight: 400;
}
.bar-track {
  height: 107px;
  width: 18px;
  display: flex;
  align-items: flex-end;
}
.bar-track i {
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  background: #dce5c9;
  min-height: 3px;
}
.bar-track i.today {
  background: #97a977;
}
.chart-column > span {
  font-size: 9px;
  color: #98a28b;
  margin-top: 9px;
}
.week-summary {
  border-top: 1px solid #edf0e5;
  margin-top: 15px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: #99a08f;
}
.week-summary strong {
  font-weight: 500;
  color: #7c8e65;
}
.fine-print {
  font-size: 10px;
  color: #939b88;
  line-height: 1.9;
  margin-top: 13px;
}
.recent-section {
  margin-top: 27px;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.recent-word {
  text-align: left;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.word-mark {
  font-family: "BiauKai", "DFKai-SB", serif;
  font-size: 22px;
  letter-spacing: 0.15em;
}
.recent-word > span:nth-child(2) {
  font-size: 10px;
  color: #9aa18f;
}
.badge {
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f0f1eb;
  color: #9ba18e;
  width: max-content;
}
.badge.seen {
  background: #edf0e4;
  color: #8b986f;
}
.badge.learning {
  background: #e8efef;
  color: #7d9595;
}
.badge.weak {
  background: #f7e8de;
  color: #b88c6c;
}
.badge.mastered {
  background: #e4ebd5;
  color: #6c8451;
}
.empty-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 21px;
  background: #f0f3e8;
  border: 1px dashed #d9e1c7;
  border-radius: 12px;
  color: #93a07e;
  font-size: 11px;
}
.empty-inline > .icon {
  width: 19px;
  height: 19px;
}
.app-footer {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 42px;
  color: #a3aa98;
  font-size: 9px;
  letter-spacing: 0.03em;
}
.app-footer span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-footer .icon {
  width: 12px;
  height: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 10px;
}
.study-toolbar {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 27px;
}
.toolbar-top,
.toolbar-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.toolbar-top {
  padding-bottom: 13px;
  border-bottom: 1px solid #eef0e7;
}
.toolbar-label {
  font-size: 11px;
  font-weight: 600;
  color: #7d886c;
}
.grade-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e5e8dc;
  border-radius: 7px;
  background: #fffefa;
  color: #8b957e;
  padding: 6px 12px;
  font-size: 11px;
  min-height: 34px;
}
.chip.selected {
  background: #e8efdb;
  border-color: #d4dfbd;
  color: #60794b;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip:has(input:focus-visible) {
  outline: 3px solid #bc9c62;
  outline-offset: 3px;
}
.select-label {
  margin-left: auto;
  font-size: 11px;
  color: #8a947c;
  display: flex;
  gap: 9px;
  align-items: center;
}
.select-label select {
  font-size: 11px;
  padding: 5px 25px 5px 9px;
  min-height: 34px;
}
.toolbar-bottom {
  padding-top: 13px;
  font-size: 11px;
  color: #8a947b;
}
.toolbar-bottom select,
.toolbar-bottom input[type="text"],
#has-filter {
  min-height: 31px;
  padding: 4px 8px;
  font-size: 11px;
}
.toolbar-bottom > label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #7c886a;
}
.pool-count {
  margin-left: auto;
  font-size: 10px;
  color: #9aa58a;
}
.study-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.study-heading > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.study-heading small {
  font-size: 10px;
  color: #9ca48f;
  font-weight: 400;
  margin-left: 6px;
}
.study-heading > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.study-heading > .icon {
  color: #8e9f76;
}
.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
.deck-grid.count-1 {
  grid-template-columns: minmax(220px, 360px);
  justify-content: center;
}
.deck-grid.count-2 {
  grid-template-columns: repeat(2, minmax(220px, 340px));
  justify-content: center;
}
.word-card {
  position: relative;
  background: #fffef8;
  border: 1px solid #dce2ce;
  border-radius: 16px;
  min-height: 360px;
  box-shadow: 0 8px 20px #53623f08;
  display: flex;
  flex-direction: column;
  padding: 19px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.word-card:hover {
  box-shadow: 0 10px 25px #53623f12;
}
.word-card.locked {
  border-color: #c8a27d;
  background: #fffdf5;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca68d;
}
.lock-btn {
  color: #b6ad95;
}
.lock-btn.on {
  background: #f5e8d9;
  color: #b58b5e;
}
.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  width: 100%;
  padding: 12px 0;
  min-height: 240px;
}
.word-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 10px 0 27px;
}
.word-tiles > span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 76px;
  border: 1px solid #d8e0c4;
  background:
    linear-gradient(#e8eddc, #e8eddc) center/100% 1px no-repeat,
    linear-gradient(#e8eddc, #e8eddc) center/1px 100% no-repeat;
  font-family: "BiauKai", "DFKai-SB", serif;
  font-size: 43px;
  line-height: 1.4;
  color: #5d7150;
  margin-left: -1px;
}
.card-hint {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #adb39e;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0e2;
  padding-top: 10px;
  gap: 8px;
}
.card-foot .text-btn {
  font-size: 10px;
}
.definition-title {
  font-family: "BiauKai", "DFKai-SB", serif;
  font-size: 31px;
  letter-spacing: 0.15em;
  color: #60774d;
}
.zhuyin {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #94a07d;
  margin: 8px 0 17px;
}
.meaning {
  font-size: 14px;
  color: #6b785d;
  line-height: 1.9;
  margin-top: 9px;
}
.example {
  font-size: 12px;
  color: #98a087;
  display: block;
  line-height: 1.8;
  margin-top: 16px;
}
.example em {
  font-style: normal;
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #b4b99f;
  margin-bottom: 5px;
}
.face-down {
  min-height: 360px;
  background: repeating-linear-gradient(
    135deg,
    #edf1e4 0,
    #edf1e4 3px,
    #eaf0df 3px,
    #eaf0df 7px
  );
  border: 1px solid #d2ddbd;
  align-items: center;
  justify-content: center;
  outline-offset: 5px;
}
.face-down:before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #c8d5ae;
  border-radius: 10px;
}
.card-back-decor {
  width: 105px;
  position: relative;
}
.card-back-title {
  font-size: 17px;
  font-family: serif;
  letter-spacing: 0.15em;
  color: #7b8c64;
  margin-top: 17px;
}
.card-back-small {
  font-size: 9px;
  color: #a1ad8d;
  letter-spacing: 0.08em;
  margin-top: 7px;
}
.study-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}
.study-bottom p {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #9da58e;
}
.study-bottom .icon {
  width: 15px;
  height: 15px;
}
.info-note {
  font-size: 11px;
  color: #8a967c;
  line-height: 1.9;
  background: #eef2e5;
  border: 1px solid #e3e9d7;
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 20px;
}
.info-note strong {
  font-weight: 600;
  color: #7d8f65;
  margin-right: 10px;
}
.review-intro {
  text-align: center;
  padding: 40px 30px;
  min-height: 440px;
}
.review-plant {
  width: 120px;
  margin: 0 auto 20px;
}
.review-intro h2 {
  font-size: 25px;
  letter-spacing: 0.04em;
  margin: 14px 0;
}
.review-intro > p {
  color: #8e9980;
  font-size: 13px;
  line-height: 2;
}
.center-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.center-actions.left {
  justify-content: flex-start;
}
.queue-preview {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.queue-preview span {
  font-size: 11px;
  color: #859575;
  background: #edf1e5;
  border-radius: 6px;
  padding: 5px 10px;
}
.progress-track {
  height: 5px;
  background: #e9eedf;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  display: block;
  background: #91a675;
  border-radius: 10px;
  transition: width 0.25s;
}
.recall-card {
  max-width: 720px;
  margin: 28px auto;
  text-align: center;
  padding: 37px;
  min-height: 440px;
}
.recall-card > h2 {
  font-family: "BiauKai", "DFKai-SB", serif;
  font-size: 65px;
  letter-spacing: 0.2em;
  margin: 24px 0 20px;
}
.recall-card > p {
  color: #99a187;
  line-height: 2;
  font-size: 13px;
  margin: 20px 0;
}
.recall-card > .btn {
  margin-top: 12px;
}
.recall-definition > p {
  font-size: 17px;
  margin: 14px 0;
  color: #738261;
}
blockquote {
  border-left: 3px solid #ccd8b7;
  background: #f1f4e9;
  color: #8a9778;
  font-size: 13px;
  padding: 12px 17px;
  margin: 16px 0;
  line-height: 1.8;
}
.rating-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.rating-buttons button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  border: 1px solid #e6dbce;
  background: #f8f0e9;
  border-radius: 10px;
  padding: 14px 9px;
  color: #ae8d70;
}
.rating-buttons button:nth-child(2) {
  background: #f7f4e7;
  border-color: #e9e1c7;
  color: #a59562;
}
.rating-buttons button:nth-child(3) {
  background: #edf2e3;
  border-color: #d7e2c2;
  color: #7d9460;
}
.rating-buttons button:hover {
  filter: brightness(0.97);
}
.rating-buttons span {
  font-size: 9px;
  letter-spacing: 0.08em;
}
.rating-buttons strong {
  font-size: 16px;
}
.rating-buttons small {
  font-size: 10px;
  font-weight: 400;
}
.quiz-setup {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}
.quiz-setup > .panel {
  padding: 28px;
}
.quiz-setup .section-head {
  margin-bottom: 27px;
}
.quiz-setup form > fieldset {
  margin-bottom: 25px;
}
.mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-card {
  position: relative;
}
.mode-card > input {
  position: absolute;
  top: 15px;
  right: 12px;
  z-index: 1;
}
.mode-card > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 16px;
  border: 1px solid #e4e7da;
  border-radius: 10px;
  min-height: 132px;
  background: #fdfdf7;
}
.mode-card:has(input:checked) > span {
  border-color: #b8c99e;
  background: #edf2e4;
}
.mode-card .icon {
  color: #8ca26d;
}
.mode-card strong {
  font-size: 14px;
}
.mode-card small {
  font-size: 10px;
  color: #98a189;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 25px;
}
.form-grid label,
form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 18px;
  color: #7a876a;
}
.form-grid label {
  margin-bottom: 0;
}
.dimension-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.quiz-note {
  text-align: center;
  background: #f0f3e7;
}
.quiz-note > svg {
  margin: 12px auto 20px;
}
.quiz-note h3 {
  font-size: 19px;
  letter-spacing: 0.06em;
  margin: 10px 0;
}
.quiz-note > p:not(.fine-print) {
  font-size: 12px;
  color: #929e81;
  line-height: 1.95;
  margin-bottom: 25px;
}
.rule-row {
  font-size: 11px;
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 10px 0;
  border-top: 1px solid #e1e8d4;
  color: #859671;
}
.rule-row .icon {
  width: 16px;
  height: 16px;
  color: #8da374;
}
.quiz-progress {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a080;
  margin-bottom: 10px;
}
.question-panel {
  max-width: 780px;
  margin: 27px auto;
  padding: 32px 40px;
}
.question-panel h2 {
  font-size: 25px;
  line-height: 1.8;
  margin: 27px 0;
  letter-spacing: 0.05em;
}
.answer-options {
  display: grid;
  gap: 12px;
}
.answer-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fffefb;
  border: 1px solid #e1e5d6;
  border-radius: 10px;
  padding: 15px 18px;
  text-align: left;
  font-size: 15px;
  min-height: 65px;
}
.answer-option:hover:not(:disabled) {
  background: #f2f5e9;
  border-color: #b7c79a;
}
.option-letter {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #e2e7d8;
  border-radius: 7px;
  font-size: 12px;
  color: #9ba78a;
}
.answer-option > .icon {
  margin-left: auto;
}
.answer-option.correct {
  opacity: 1;
  background: #eaf1df;
  border-color: #b4c999;
  color: #637f46;
}
.answer-option.incorrect {
  opacity: 1;
  background: #f9eae2;
  border-color: #ddbaa2;
  color: #b07d5e;
}
.answer-option.dimmed {
  opacity: 0.45;
}
.hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
}
.hint-box {
  background: #f6f0df;
  border-radius: 8px;
  color: #a08d5e;
  padding: 13px 16px;
  font-size: 12px;
  margin-top: 10px;
}
.answer-feedback {
  padding: 18px 21px;
  background: #eef3e5;
  color: #7a9260;
  border-radius: 10px;
  margin: 20px 0;
}
.answer-feedback.retry {
  background: #f7eee3;
  color: #b29671;
}
.answer-feedback p {
  font-size: 12px;
  margin-top: 6px;
}
.align-right {
  text-align: right;
}
.results-summary {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 35px;
  margin-bottom: 24px;
}
.result-ring {
  width: 155px;
  height: 155px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#9bac79 var(--value), #e9efdf 0);
  padding: 12px;
}
.result-ring > div {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: #fffefa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.result-ring strong {
  font-size: 42px;
  font-weight: 500;
  color: #718857;
  line-height: 1.4;
}
.result-ring small {
  font-size: 17px;
  margin-left: 3px;
}
.result-ring span {
  font-size: 10px;
  color: #9ca78b;
}
.results-summary h2 {
  font-size: 25px;
  margin: 10px 0;
}
.results-summary p {
  font-size: 12px;
  color: #929d83;
  line-height: 2;
}
.dimension-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.dimension-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}
.dimension-stats span {
  font-size: 12px;
  color: #8d997e;
}
.dimension-stats strong {
  font-size: 23px;
  font-weight: 500;
  color: #798c64;
}
.dimension-stats small {
  font-size: 9px;
  color: #a4ac98;
}
.result-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
.result-row:last-child {
  padding-bottom: 0;
}
.result-indicator {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.result-indicator .icon {
  width: 15px;
  height: 15px;
}
.result-indicator.good {
  background: #e8efdb;
  color: #849b65;
}
.result-indicator.bad {
  background: #f5e6dc;
  color: #b88d70;
}
.result-row > div {
  flex: 1;
}
.result-row h3 {
  font-size: 13px;
  font-weight: 500;
}
.result-row p {
  font-size: 11px;
  color: #98a18b;
  margin: 5px 0;
}
.result-row > .text-btn {
  white-space: nowrap;
}
.correct-text {
  color: #6f8a52 !important;
}
.wrong-text {
  color: #b47c5c !important;
}
.history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.history-stats .panel {
  padding: 21px;
}
.history-stats span {
  font-size: 11px;
  color: #929c84;
}
.history-stats strong {
  font-weight: 500;
  font-size: 31px;
  display: block;
  color: #6f8458;
  margin-top: 7px;
}
.history-stats small {
  font-size: 11px;
  margin-left: 8px;
  font-weight: 400;
  color: #a0aa91;
}
.history-overview {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  margin-bottom: 25px;
}
.history-overview .weekly-chart {
  height: 163px;
}
.history-overview .bar-track {
  height: 117px;
}
.skill-row {
  margin: 20px 0;
}
.skill-row > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 9px;
  color: #97a28a;
}
.skill-row strong {
  font-weight: 500;
  color: #7d8f69;
}
.skill-row .progress-track {
  height: 7px;
}
.list-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 21px;
}
.list-toolbar select {
  font-size: 11px;
  min-height: 37px;
  padding: 7px 12px;
}
.search-field {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e0e4d7;
  border-radius: 9px;
  background: #fffefb;
  padding-left: 11px;
  color: #a0a991;
}
.search-field .icon {
  width: 16px;
  height: 16px;
}
.search-field input {
  border: 0 !important;
  background: transparent !important;
  font-size: 11px;
  padding: 8px !important;
  min-height: 36px !important;
  width: 170px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
  white-space: normal;
}
th {
  font-size: 10px;
  color: #98a48b;
  font-weight: 500;
  background: #f6f8ef;
  padding: 12px 11px;
}
th:first-child {
  border-radius: 7px 0 0 7px;
}
th:last-child {
  border-radius: 0 7px 7px 0;
}
td {
  padding: 16px 11px;
  color: #8e9c7e;
  border-bottom: 1px solid #eef1e5;
}
td small {
  display: block;
  font-size: 9px;
  color: #b0b8a4;
  margin-top: 4px;
}
.word-link {
  background: transparent;
  font-size: 13px;
  color: #6b8253;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: #d8e1c9;
  text-underline-offset: 4px;
}
.nowrap {
  white-space: nowrap;
}
.event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c2cfaa;
  margin-right: 8px;
  flex: none;
}
.event-dot.answer {
  background: #d3af8b;
}
.event-dot.review {
  background: #e2c97c;
}
.event-dot.reveal {
  background: #9fbdb7;
}
.event-dot.queue {
  background: #a6b6c9;
}
.load-more {
  display: flex;
  margin: 22px auto 0;
}
.empty-state {
  text-align: center;
  padding: 35px 20px;
}
.empty-state svg {
  margin: 0 auto 19px;
}
.empty-state h3 {
  font-size: 17px;
  color: #8c9b77;
}
.empty-state p {
  font-size: 12px;
  color: #a2ac95;
  margin: 12px 0 22px;
}
.vocab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.tab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vocab-count {
  font-size: 10px;
  color: #9ba68b;
  margin: 0 0 16px;
}
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.vocab-card {
  background: #fffefa;
  border: 1px solid #e1e6d6;
  border-radius: 12px;
  text-align: left;
  padding: 19px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.vocab-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px #5f6d4210;
}
.vocab-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.vocab-card > div:first-child > span:last-child {
  font-size: 8px;
  color: #a2ad91;
  white-space: nowrap;
}
.vocab-card h2 {
  font-family: "BiauKai", "DFKai-SB", serif;
  font-size: 31px;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin: 25px 0 9px;
  color: #6b8057;
}
.vocab-card > p {
  font-size: 10px;
  color: #a2ae91;
  min-height: 32px;
}
.vocab-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf0e5;
  padding-top: 12px;
  font-size: 9px;
  color: #a3ae95;
  margin-top: 10px;
}
.vocab-card-bottom .icon {
  width: 14px;
  height: 14px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.settings-grid .panel > p.muted {
  font-size: 12px;
  line-height: 2;
  margin: 15px 0;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #edf0e5;
}
.avatar-large {
  width: 45px;
  height: 45px;
  flex: none;
}
.profile-row > div {
  flex: 1;
}
.profile-row strong {
  font-weight: 600;
  font-size: 13px;
}
.profile-row p {
  font-size: 10px;
  color: #a0ab91;
  margin-top: 3px;
}
.small-btn {
  font-size: 10px;
  min-height: 32px;
  padding: 6px 12px;
}
.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.backup-actions .btn {
  font-size: 11px;
  min-height: 39px;
}
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 19px;
}
.rules-list li {
  position: relative;
  padding-left: 18px;
}
.rules-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: #a7b787;
  border-radius: 50%;
}
.rules-list strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  color: #82946f;
}
.rules-list span {
  font-size: 11px;
  color: #9ba68e;
  line-height: 1.9;
  display: block;
  margin-top: 4px;
}
dialog {
  background: #fffef9;
  border: 1px solid #d9e1cb;
  border-radius: 18px;
  width: 520px;
  max-width: calc(100% - 32px);
  max-height: 85dvh;
  padding: 0;
  box-shadow: 0 25px 80px #34412730;
  color: var(--ink);
}
dialog.wide {
  width: 670px;
}
dialog::backdrop {
  background: #34402966;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 25px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fffef9;
  z-index: 2;
}
.dialog-head h2 {
  font-size: 17px;
}
.dialog-body {
  padding: 25px;
}
.dialog-body > p {
  font-size: 13px;
  line-height: 1.9;
  color: #879775;
  margin-bottom: 17px;
}
.dialog-body fieldset {
  margin: 15px 0 22px;
}
.dialog-body form input:not([type="radio"]),
.dialog-body form select,
.dialog-body textarea {
  width: 100%;
}
.full-width {
  width: 100%;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.avatar-options label {
  position: relative;
}
.avatar-options input {
  position: absolute;
  opacity: 0;
}
.avatar-options span {
  display: block;
  background: #f8f9f0;
  border: 1px solid #e2e8d7;
  padding: 9px;
  border-radius: 10px;
}
.avatar-options input:checked + span {
  border: 2px solid #a4b985;
  background: #edf2e4;
  padding: 8px;
}
.avatar-options input:focus-visible + span {
  outline: 3px solid #c6ad7a;
  outline-offset: 3px;
}
.avatar-options b {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  display: block;
  color: #8f9d7a;
  margin-top: 5px;
}
.word-detail-top {
  display: flex;
  justify-content: space-between;
}
.detail-word {
  font-family: "BiauKai", "DFKai-SB", serif;
  font-size: 43px;
  letter-spacing: 0.15em;
  color: #6d8257;
  margin: 25px 0 5px;
}
.detail-meaning {
  font-size: 15px;
  line-height: 1.9;
  color: #7b8d67;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  margin: 25px 0 20px;
  text-align: center;
}
.detail-stats strong {
  font-size: 23px;
  font-weight: 500;
  color: #829767;
  display: block;
}
.detail-stats span {
  font-size: 9px;
  color: #a3ae93;
}
.dimension-detail {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.dimension-detail span {
  font-size: 11px;
  color: #9aaa86;
}
.dimension-detail b {
  margin-left: 9px;
  font-size: 11px;
  font-weight: 500;
  color: #82976c;
}
.detail-due {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eff3e7;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 11px;
  color: #8d9e77;
  margin-top: 20px;
}
.detail-due > .icon {
  width: 15px;
  height: 15px;
}
.detail-due > .text-btn {
  margin-left: auto;
}
.detail-log-title {
  font-size: 13px;
  margin: 24px 0 13px;
}
.detail-log-title small {
  font-size: 10px;
  color: #a8b296;
  font-weight: 400;
  margin-left: 10px;
}
.detail-timeline > div {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #8c9c78;
  padding: 11px 0;
  border-top: 1px solid #edf1e5;
}
.detail-timeline > div > span {
  flex: 1;
}
.detail-timeline time {
  font-size: 9px;
  color: #b0b99f;
}
.detail-timeline small {
  display: block;
  font-size: 10px;
  color: #acb798;
  margin-top: 4px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #50613f;
  color: #fffef8;
  box-shadow: 0 5px 25px #34412725;
  border-radius: 10px;
  padding: 13px 23px;
  font-size: 12px;
  max-width: 90vw;
  z-index: 200;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.storage-warning {
  background: #f8e8d3;
  border: 1px solid #dfbd8d;
  color: #9f7743;
  padding: 15px 20px;
  font-size: 12px;
  border-radius: 10px;
  margin-bottom: 25px;
}
.storage-warning button {
  background: transparent;
  text-decoration: underline;
  color: inherit;
}
@media (min-width: 1600px) {
  main {
    padding-top: 43px;
  }
  .hero {
    min-height: 345px;
    padding: 37px 45px;
  }
  .garden-art {
    bottom: 26px;
    max-height: 315px;
  }
  .hero h2 {
    font-size: 46px;
  }
  .stat-card {
    padding: 25px 22px;
  }
  .home-lower .panel {
    padding: 27px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px 20px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .workspace {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 27px;
  }
  main {
    padding: 30px 27px 20px;
  }
  .app-footer {
    padding: 22px 27px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat-card {
    padding: 17px 12px;
    gap: 9px;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
  }
  .stat-card p {
    font-size: 8px;
  }
  .stat-card strong {
    font-size: 27px;
  }
  .hero {
    padding: 27px;
    min-height: 295px;
  }
  .hero h2 {
    font-size: 34px;
  }
  .hero-copy > p {
    font-size: 10px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions > span {
    font-size: 9px;
  }
  .garden-art {
    width: 46%;
    bottom: 38px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .home-lower {
    gap: 16px;
    grid-template-columns: 1.3fr 1fr;
  }
  .panel {
    padding: 21px;
  }
  .section-kicker {
    display: none;
  }
  .vocab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .word-card {
    padding: 15px;
    min-height: 340px;
  }
  .word-tiles > span {
    width: 53px;
    height: 61px;
    font-size: 35px;
  }
  .study-heading small {
    display: none;
  }
  .quiz-setup {
    grid-template-columns: 1.6fr 1fr;
  }
  .quiz-note {
    padding: 23px 18px !important;
  }
  .dimension-stats > div {
    flex-wrap: wrap;
  }
  .dimension-stats small {
    width: 100%;
  }
  .dimension-options {
    gap: 12px;
  }
  .vocab-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .select-label {
    margin-left: 0;
  }
  .toolbar-top {
    gap: 12px;
  }
  .grade-chips {
    gap: 5px;
  }
  .grade-chips .chip {
    font-size: 10px;
    padding: 5px 8px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 78px;
    padding: 24px 10px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span:last-child,
  .nav-caption,
  .nav-item > span,
  .sidebar-note,
  .local-note,
  .nav-count {
    display: none;
  }
  .brand-icon {
    width: 43px;
  }
  .sidebar nav {
    margin-top: 35px;
    gap: 13px;
  }
  .nav-item {
    padding: 13px;
    justify-content: center;
  }
  .nav-item .icon {
    width: 23px;
    height: 23px;
  }
  .settings-link {
    margin-top: auto;
    padding-top: 20px;
  }
  .workspace {
    margin-left: 78px;
  }
  .topbar {
    height: 72px;
  }
  .page-heading {
    gap: 12px;
  }
  .page-heading > .btn {
    font-size: 10px;
    padding: 9px 13px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 440px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    padding: 18px;
    gap: 16px;
  }
  .stat-icon {
    width: 39px;
    height: 39px;
  }
  .stat-card p {
    font-size: 10px;
  }
  .home-lower {
    grid-template-columns: 1.25fr 1fr;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero-copy {
    width: 63%;
  }
  .hero-actions > span {
    display: none;
  }
  .hero-copy > p {
    font-size: 10px;
    max-width: 320px;
  }
  .garden-art {
    width: 45%;
    right: -22px;
    bottom: 45px;
  }
  .deck-grid {
    gap: 16px;
  }
  .word-tiles > span {
    width: 45px;
    height: 54px;
    font-size: 30px;
  }
  .card-meta {
    font-size: 9px;
  }
  .card-meta .icon-btn {
    width: 29px;
    height: 29px;
  }
  .card-foot {
    flex-wrap: wrap;
  }
  .card-content {
    min-height: 225px;
  }
  .card-hint {
    font-size: 9px;
  }
  .card-foot .text-btn {
    font-size: 9px;
  }
  .quiz-setup {
    grid-template-columns: 1fr;
  }
  .quiz-note {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-grid .panel {
    padding: 20px;
  }
  .backup-actions .btn {
    width: 100%;
  }
  .app-footer {
    font-size: 8px;
  }
  .history-stats {
    gap: 12px;
  }
  .history-stats .panel {
    padding: 17px;
  }
  .history-stats span {
    font-size: 10px;
  }
  .history-overview {
    gap: 15px;
  }
  .recent-word {
    padding: 12px;
  }
  .recent-word > span:nth-child(2) {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    width: 100%;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #dce3cf;
    background: #f6f8edfa;
    backdrop-filter: blur(10px);
  }
  .brand,
  .settings-link {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    gap: 1px;
    height: 100%;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 7px 1px;
    min-height: 56px;
    font-size: 9px;
    border-radius: 8px;
  }
  .nav-item > span {
    display: block;
    font-size: 9px;
    letter-spacing: 0;
  }
  .nav-item .icon {
    width: 20px;
    height: 20px;
  }
  .workspace {
    margin-left: 0;
    padding-bottom: 75px;
  }
  .topbar {
    height: 67px;
    padding: 0 19px;
    gap: 9px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb > span,
  .breadcrumb > strong {
    display: none;
  }
  .breadcrumb:before {
    content: "✳";
    font-size: 20px;
    color: #819765;
    vertical-align: middle;
    margin-right: 7px;
  }
  .top-actions {
    gap: 7px;
  }
  .date-label {
    display: none;
  }
  .profile-control {
    border-left: 0;
    padding-left: 0;
    gap: 2px;
  }
  .profile-control select {
    font-size: 11px;
    max-width: 145px;
  }
  .avatar-mini {
    width: 29px;
    height: 29px;
  }
  .add-profile {
    width: 26px;
    height: 26px;
  }
  main {
    padding: 24px 18px 15px;
    min-height: calc(100vh - 200px);
  }
  .page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 6px;
    letter-spacing: 0.17em;
  }
  .page-heading h1 {
    font-size: 22px;
    letter-spacing: 0.01em;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.9;
    margin-top: 7px;
  }
  .page-heading > .btn,
  .page-heading > .text-btn {
    margin-top: 14px;
  }
  .hero {
    min-height: 365px;
    padding: 25px 23px;
    align-items: flex-start;
    margin-bottom: 17px;
    border-radius: 17px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h2 {
    font-size: 30px;
    line-height: 1.55;
    letter-spacing: 0.08em;
    margin: 14px 0 9px;
  }
  .hero-copy > p {
    font-size: 10px;
    max-width: 290px;
    line-height: 1.9;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .hero-actions .btn {
    min-height: 39px;
    font-size: 11px;
    padding: 10px 14px;
    position: relative;
    z-index: 2;
  }
  .garden-art {
    width: 55%;
    bottom: 5px;
    right: -5px;
    max-height: 152px;
  }
  .hero-number {
    font-size: 5px;
    right: 17px;
    bottom: 7px;
  }
  .pill {
    font-size: 9px;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 16px 12px;
    gap: 11px;
    border-radius: 11px;
  }
  .stat-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .stat-icon .icon {
    width: 17px;
    height: 17px;
  }
  .stat-card div > span {
    font-size: 10px;
  }
  .stat-card strong {
    font-size: 27px;
  }
  .stat-card small {
    font-size: 9px;
    margin-left: 5px;
  }
  .stat-card p {
    font-size: 8px;
  }
  .home-lower {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .panel {
    padding: 21px;
    border-radius: 13px;
  }
  .section-head h2 {
    font-size: 14px;
  }
  .section-head {
    margin-bottom: 17px;
  }
  .task-row {
    gap: 13px;
    padding: 17px 0;
  }
  .task-row h3 {
    font-size: 12px;
  }
  .task-row p {
    font-size: 10px;
  }
  .weekly-panel .weekly-chart {
    height: 157px;
  }
  .weekly-panel .bar-track {
    height: 111px;
  }
  .weekly-panel .section-head {
    margin-bottom: 5px;
  }
  .recent-section {
    margin-top: 22px;
  }
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .recent-word {
    padding: 16px;
  }
  .empty-inline {
    flex-wrap: wrap;
    padding: 18px;
    font-size: 10px;
  }
  .app-footer {
    padding: 18px;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    font-size: 8px;
    text-align: center;
  }
  .study-toolbar {
    padding: 14px;
    margin-bottom: 20px;
  }
  .toolbar-top {
    gap: 11px;
  }
  .toolbar-label {
    width: 100%;
    font-size: 10px;
  }
  .grade-chips {
    gap: 5px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }
  .grade-chips .chip {
    padding: 5px 3px;
    font-size: 10px;
  }
  .select-label {
    font-size: 10px;
  }
  .toolbar-bottom {
    gap: 12px;
    font-size: 10px;
  }
  .check-label {
    font-size: 11px;
  }
  .pool-count {
    margin-left: 0;
  }
  .study-heading {
    gap: 9px;
    margin-bottom: 15px;
  }
  .study-heading > span {
    font-size: 11px;
    gap: 5px;
  }
  .study-heading .icon {
    width: 17px;
    height: 17px;
  }
  .study-heading > div {
    gap: 3px;
  }
  .study-heading .btn {
    font-size: 11px;
    padding: 9px 12px;
    gap: 6px;
    min-height: 37px;
  }
  .study-heading .icon-btn {
    width: 31px;
    height: 31px;
  }
  .deck-grid,
  .deck-grid.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .deck-grid.count-1 {
    grid-template-columns: minmax(200px, 300px);
  }
  .word-card {
    min-height: 280px;
    border-radius: 12px;
    padding: 12px;
  }
  .card-content {
    min-height: 190px;
    padding: 7px 0;
  }
  .card-meta {
    font-size: 8px;
  }
  .card-meta .icon-btn {
    width: 26px;
    height: 26px;
  }
  .card-meta .icon {
    width: 15px;
    height: 15px;
  }
  .word-tiles > span {
    width: 42px;
    height: 50px;
    font-size: 28px;
  }
  .word-tiles {
    margin: 8px 0 15px;
  }
  .card-hint {
    font-size: 8px;
    line-height: 1.8;
    max-width: 105px;
  }
  .card-foot {
    justify-content: space-between;
    gap: 3px;
    align-items: center;
    flex-direction: column;
    padding-top: 9px;
  }
  .card-foot .text-btn {
    font-size: 9px;
    min-height: 34px;
  }
  .card-foot .badge {
    font-size: 8px;
  }
  .meaning {
    font-size: 11px;
    line-height: 1.8;
  }
  .example {
    font-size: 10px;
    margin-top: 8px;
  }
  .definition-title {
    font-size: 25px;
  }
  .card-content .zhuyin {
    font-size: 9px;
    margin: 6px 0 7px;
  }
  .face-down {
    min-height: 280px;
  }
  .face-down:before {
    inset: 9px;
  }
  .card-back-decor {
    width: 74px;
  }
  .card-back-title {
    font-size: 12px;
    letter-spacing: 0.09em;
  }
  .card-back-small {
    font-size: 7px;
    max-width: 100px;
    line-height: 1.9;
  }
  .study-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 19px 0;
  }
  .study-bottom p {
    font-size: 9px;
    line-height: 1.8;
  }
  .study-bottom .btn {
    width: 100%;
    font-size: 11px;
  }
  .info-note {
    font-size: 10px;
    padding: 14px 16px;
  }
  .review-intro {
    padding: 30px 19px;
    min-height: 400px;
  }
  .review-intro h2 {
    font-size: 21px;
  }
  .review-intro > p {
    font-size: 11px;
  }
  .review-intro .btn {
    font-size: 11px;
  }
  .review-plant {
    width: 100px;
  }
  .center-actions {
    gap: 9px;
  }
  .recall-card {
    padding: 26px 18px;
    margin: 20px auto;
  }
  .recall-card > h2 {
    font-size: 54px;
  }
  .recall-definition > p {
    font-size: 15px;
  }
  .rating-buttons {
    gap: 7px;
  }
  .rating-buttons button {
    padding: 13px 6px;
  }
  .rating-buttons strong {
    font-size: 15px;
  }
  .rating-buttons span {
    font-size: 8px;
  }
  .quiz-setup > .panel {
    padding: 21px 17px;
  }
  .mode-options {
    gap: 9px;
  }
  .mode-card > span {
    padding: 16px 12px;
    gap: 6px;
    min-height: 133px;
  }
  .mode-card > input {
    top: 13px;
    right: 9px;
  }
  .mode-card strong {
    font-size: 13px;
  }
  .mode-card small {
    font-size: 10px;
    line-height: 1.8;
  }
  .form-grid {
    gap: 12px;
  }
  .form-grid label,
  form > label {
    font-size: 11px;
  }
  .form-grid select {
    font-size: 11px;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .form-footer .btn {
    width: 100%;
  }
  .dimension-options {
    gap: 12px;
  }
  .dimension-options .check-label {
    font-size: 11px;
  }
  .question-panel {
    padding: 24px 17px;
    margin: 20px auto;
  }
  .question-panel h2 {
    font-size: 21px;
    margin: 23px 0;
    line-height: 1.9;
  }
  .answer-option {
    font-size: 13px;
    padding: 13px;
    gap: 11px;
    line-height: 1.8;
    min-height: 64px;
  }
  .option-letter {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }
  .hint-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .answer-feedback {
    font-size: 12px;
    padding: 15px;
  }
  .answer-feedback p {
    font-size: 11px;
    line-height: 1.9;
  }
  .results-summary {
    flex-direction: column;
    gap: 22px;
    padding: 28px 21px;
    text-align: center;
  }
  .results-summary h2 {
    font-size: 21px;
  }
  .results-summary p {
    font-size: 11px;
  }
  .center-actions.left {
    justify-content: center;
  }
  .dimension-stats {
    gap: 9px;
    margin-bottom: 20px;
  }
  .dimension-stats .panel {
    padding: 15px 12px;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .dimension-stats strong {
    font-size: 20px;
  }
  .dimension-stats small {
    font-size: 8px;
  }
  .result-row {
    gap: 9px;
  }
  .result-row > .text-btn {
    font-size: 9px;
  }
  .result-row h3 {
    font-size: 12px;
  }
  .result-row p {
    font-size: 10px;
    line-height: 1.9;
  }
  .result-indicator {
    width: 23px;
    height: 23px;
  }
  .results-summary .btn {
    font-size: 11px;
  }
  .history-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-bottom: 19px;
  }
  .history-stats .panel {
    padding: 17px;
  }
  .history-stats strong {
    font-size: 28px;
  }
  .history-overview {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 20px;
  }
  .history-log {
    padding: 20px 14px;
  }
  .history-log .section-head {
    flex-wrap: wrap;
    gap: 5px;
  }
  .list-toolbar {
    gap: 9px;
  }
  .list-toolbar .search-field {
    width: 100%;
  }
  .list-toolbar .search-field input {
    width: 100%;
  }
  .list-toolbar select {
    flex: 1;
    min-width: 0;
    font-size: 10px;
  }
  table {
    min-width: 620px;
  }
  th {
    font-size: 9px;
  }
  td {
    font-size: 10px;
  }
  .vocab-toolbar {
    gap: 15px;
  }
  .tab-chips {
    gap: 5px;
  }
  .tab-chips .chip {
    font-size: 10px;
    padding: 5px 9px;
  }
  .vocab-toolbar .search-field {
    width: 100%;
  }
  .vocab-toolbar .search-field input {
    width: 100%;
  }
  .vocab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .vocab-card {
    padding: 14px 12px;
  }
  .vocab-card > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .vocab-card h2 {
    font-size: 28px;
    margin: 20px 0 7px;
  }
  .vocab-card > p {
    font-size: 9px;
    line-height: 1.9;
  }
  .vocab-card-bottom {
    font-size: 8px;
    gap: 3px;
  }
  .vocab-card-bottom .icon {
    width: 12px;
    height: 12px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .profile-row p {
    font-size: 9px;
  }
  .settings-grid .panel {
    padding: 21px;
  }
  .settings-grid .section-head h2 {
    font-size: 14px;
  }
  .settings-grid .section-head .text-btn {
    font-size: 10px;
  }
  dialog {
    max-width: calc(100% - 24px);
    max-height: 90dvh;
    border-radius: 14px;
  }
  .dialog-head {
    padding: 16px 19px;
  }
  .dialog-head h2 {
    font-size: 15px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-body .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .avatar-options {
    gap: 7px;
  }
  .avatar-options span {
    padding: 7px;
  }
  .avatar-options input:checked + span {
    padding: 6px;
  }
  .detail-word {
    font-size: 37px;
  }
  .detail-meaning {
    font-size: 13px;
  }
  .detail-stats strong {
    font-size: 22px;
  }
  .detail-stats span {
    font-size: 8px;
  }
  .dimension-detail {
    flex-wrap: wrap;
    gap: 12px;
  }
  .dimension-detail span,
  .dimension-detail b {
    font-size: 10px;
  }
  .detail-due {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .detail-due > .text-btn {
    font-size: 10px;
  }
  .detail-timeline > div {
    font-size: 10px;
  }
  .detail-timeline time {
    font-size: 8px;
  }
  .detail-timeline .event-dot {
    margin-right: 3px;
  }
  .storage-warning {
    padding: 12px;
    font-size: 11px;
  }
  #toast {
    bottom: 90px;
    min-width: 230px;
    text-align: center;
    font-size: 11px;
  }
}
@media (max-width: 365px) {
  main {
    padding: 20px 12px;
  }
  .topbar {
    padding: 0 12px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .hero {
    padding: 22px 17px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .stat-card {
    padding: 14px 10px;
    gap: 7px;
  }
  .stat-icon {
    width: 27px;
    height: 27px;
  }
  .stat-card div > span {
    font-size: 9px;
  }
  .stat-card p {
    font-size: 7px;
  }
  .word-tiles > span {
    width: 36px;
    height: 45px;
    font-size: 25px;
  }
  .word-card {
    padding: 10px;
  }
  .nav-item > span {
    font-size: 8px;
  }
  .grade-chips .chip {
    font-size: 9px;
  }
  .study-heading > span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* 閱讀優先：教學介面的說明字保持清晰，不用裝飾色承載必要資訊。 */
.page-heading p,
.hero-copy > p,
.task-row p,
.stat-card p,
.fine-print,
.settings-grid .panel > p.muted,
.muted {
  color: #748266;
}
.page-heading p,
.hero-copy > p {
  font-size: 13px;
}
.task-row h3 {
  font-size: 14px;
}
.task-row p {
  font-size: 12px;
}
.stat-card div > span {
  font-size: 12px;
}
.stat-card p {
  font-size: 10px;
}
.card-hint {
  font-size: 12px;
  color: #7f8f6a;
}
.card-foot .text-btn {
  font-size: 12px;
}
.meaning {
  color: #526546;
}
.example {
  color: #778766;
}
.study-bottom p,
.info-note {
  color: #738460;
}
.quiz-note > p:not(.fine-print),
.rules-list span,
.settings-grid .panel > p.muted {
  font-size: 13px;
  color: #78876a;
}
.vocab-card > p {
  color: #80916b;
}
.vocab-card-bottom {
  color: #7f906b;
}
@media (max-width: 1200px) {
  .hero-copy > p,
  .page-heading p {
    font-size: 12px;
  }
  .task-row p {
    font-size: 11px;
  }
  .stat-card p {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .sidebar .settings-link {
    display: none;
  }
  .page-heading p,
  .hero-copy > p {
    font-size: 12px;
  }
  .hero {
    min-height: 388px;
  }
  .hero-copy > p {
    max-width: 290px;
  }
  .stat-card div > span {
    font-size: 11px;
  }
  .stat-card p {
    font-size: 9px;
    white-space: normal;
  }
  .task-row h3 {
    font-size: 13px;
  }
  .task-row p {
    font-size: 11px;
  }
  .card-hint {
    font-size: 10px;
  }
  .card-foot .text-btn {
    font-size: 11px;
  }
  .meaning {
    font-size: 12px;
  }
  .example {
    font-size: 11px;
  }
  .quiz-note > p:not(.fine-print),
  .rules-list span,
  .settings-grid .panel > p.muted {
    font-size: 12px;
  }
}
