:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #202536;
  --muted: #8a90a0;
  --muted-dark: #656c7d;
  --line: #eceef4;
  --accent: #f27768;
  --accent-dark: #dc6257;
  --coral-soft: #fff0ed;
  --cream: #fff8e9;
  --cream-line: #f7e6c2;
  --lavender: #f1efff;
  --lavender-line: #e4e1ff;
  --green: #328b75;
  --green-soft: #e9f6f0;
  --purple: #8979d5;
  --shadow: 0 16px 45px rgba(42, 50, 75, 0.07);
  --shadow-soft: 0 8px 24px rgba(42, 50, 75, 0.05);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(242, 119, 104, 0.3); outline-offset: 3px; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 248px;
  padding: 30px 18px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand-lockup, .mobile-brand { display: flex; align-items: center; gap: 11px; }
.brand-lockup { padding: 0 14px 42px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--accent);
  border-radius: 11px 11px 11px 3px;
  box-shadow: 5px 5px 0 #ffe1db;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.brand-mark.small { width: 29px; height: 29px; border-radius: 9px 9px 9px 3px; font-size: 15px; box-shadow: 3px 3px 0 #ffe1db; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.brand-tagline { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }

.sidebar-label { padding: 0 14px 11px; color: #b2b6c1; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; }
.collection-label { margin-top: 37px; }
.nav-list, .collection-list { display: grid; gap: 5px; }
.nav-item, .collection-item {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.nav-item { gap: 13px; padding: 12px 14px; color: #7e8493; border-radius: 12px; font-size: 13px; font-weight: 650; transition: 180ms ease; }
.nav-item:hover { color: var(--text); background: var(--surface-soft); }
.nav-item.active { color: var(--accent-dark); background: var(--coral-soft); }
.nav-icon { display: inline-grid; place-items: center; width: 18px; color: currentColor; font-size: 19px; font-weight: 400; line-height: 1; }
.nav-badge { margin-left: auto; display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; color: var(--accent-dark); background: #fff; border-radius: 7px; font-size: 10px; }
.collection-item { gap: 10px; padding: 9px 14px; color: #7e8493; font-size: 12px; }
.collection-item:hover { color: var(--text); }
.collection-dot { width: 8px; height: 8px; border-radius: 50%; }
.collection-dot.purple { background: #a499ef; }.collection-dot.orange { background: #f6ae76; }.collection-dot.green { background: #78c19e; }
.collection-count { margin-left: auto; color: #b9bdc8; font-size: 11px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 17px; }
.streak-card { display: flex; align-items: center; gap: 9px; padding: 12px 11px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 14px; }
.streak-icon { display: grid; place-items: center; width: 27px; height: 27px; color: #cf8d2e; background: #fff0cc; border-radius: 9px; font-size: 15px; }
.streak-card strong, .streak-card span { display: block; }.streak-card strong { color: #85683c; font-size: 11px; }.streak-card div span { margin-top: 3px; color: #b19a70; font-size: 10px; }.fire-emoji { margin-left: auto; font-size: 15px; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 3px 5px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #fff; background: #6c78ba; border-radius: 50%; font-size: 13px; font-weight: 750; }.avatar.tiny { width: 28px; height: 28px; font-size: 11px; }
.user-copy { min-width: 0; }.user-copy strong, .user-copy span { display: block; }.user-copy strong { font-size: 12px; }.user-copy span { margin-top: 2px; color: var(--muted); font-size: 10px; }.user-chevron { margin-left: auto; color: #c0c4cd; font-size: 19px; }

.main-content { min-width: 0; width: calc(100% - 248px); margin-left: 248px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 0 54px; border-bottom: 1px solid rgba(236, 238, 244, 0.8); }
.mobile-brand { display: none; }.topbar-context { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }.date-label { color: var(--muted-dark); font-weight: 650; }.context-dot { width: 5px; height: 5px; background: #78c19e; border-radius: 50%; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }.icon-button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; color: #777e8f; background: transparent; border-radius: 10px; font-size: 20px; cursor: pointer; }.icon-button:hover { color: var(--text); background: var(--surface); box-shadow: var(--shadow-soft); }.notification-button { font-size: 24px; transform: rotate(45deg); }.notification-button span { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; background: var(--accent); border: 1px solid var(--bg); border-radius: 50%; }
.profile-chip { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 7px; border: 0; background: transparent; cursor: pointer; }.profile-name { color: var(--muted-dark); font-size: 12px; font-weight: 650; }.profile-caret { color: #a8adba; font-size: 17px; }

.page-wrap { width: min(1320px, calc(100% - 108px)); margin: 0 auto; padding: 45px 0 60px; }.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.17em; }.page-heading h1 { margin: 0; font-size: clamp(25px, 2.5vw, 34px); font-weight: 780; letter-spacing: -0.045em; line-height: 1.16; }.heading-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 13px; }.primary-button { display: inline-flex; align-items: center; gap: 17px; flex: 0 0 auto; padding: 13px 15px 13px 19px; border: 0; color: #fff; background: var(--accent); border-radius: 12px; box-shadow: 0 8px 18px rgba(242, 119, 104, 0.2); font-size: 12px; font-weight: 720; cursor: pointer; transition: 180ms ease; }.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 11px 22px rgba(242, 119, 104, 0.28); }.button-arrow { display: grid; place-items: center; width: 21px; height: 21px; background: rgba(255,255,255,0.22); border-radius: 7px; font-size: 14px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 22px; }.summary-card { min-height: 153px; padding: 18px 19px 16px; border: 1px solid transparent; border-radius: 17px; }.coral-card { color: #fff; background: var(--accent); box-shadow: 0 11px 22px rgba(242, 119, 104, 0.14); }.cream-card { background: var(--cream); border-color: var(--cream-line); }.lavender-card { background: var(--lavender); border-color: var(--lavender-line); }.summary-topline { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 650; }.summary-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 16px; font-weight: 400; }.coral-card .summary-icon { background: rgba(255,255,255,0.18); }.cream-card .summary-icon { color: #ce963d; background: #ffefcb; }.lavender-card .summary-icon { color: var(--purple); background: #e4e0ff; }.summary-mainline { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 11px; }.summary-mainline strong { font-size: 31px; line-height: 1; letter-spacing: -0.05em; }.summary-mainline span { font-size: 11px; font-weight: 650; opacity: 0.7; }.progress-track { height: 5px; overflow: hidden; border-radius: 6px; }.light-track { background: rgba(255,255,255,0.25); }.progress-track span { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width 300ms ease; }.summary-footnote { display: block; margin-top: 12px; font-size: 10px; opacity: 0.62; }.coral-card .summary-footnote { opacity: 0.82; }.mini-week { display: flex; gap: 7px; }.week-day { display: grid; place-items: center; width: 20px; height: 20px; color: #c3ae82; border: 1px solid #edd9ad; border-radius: 7px; font-size: 8px; }.week-day.done { color: #fff; background: #e7bb6c; border-color: #e7bb6c; }.week-day.today { color: #aa7421; border: 1px dashed #d5a75a; }.trend-line { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #a09abf; font-size: 10px; }.trend-up { color: var(--purple); font-weight: 780; }

.study-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr); gap: 22px; }.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }.study-panel { min-width: 0; padding: 27px 29px 17px; }.daily-panel { padding: 27px 24px 22px; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.compact-heading { align-items: center; }.panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -0.035em; }.section-kicker { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; }.panel-tools { display: flex; align-items: center; gap: 15px; }.queue-count, .plan-progress { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }.small-icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); color: var(--muted-dark); background: var(--surface-soft); border-radius: 9px; font-size: 19px; cursor: pointer; }.small-icon-button:hover { color: var(--accent-dark); border-color: #ffd4cd; background: var(--coral-soft); }
.flashcard-stage { padding: 20px 0 18px; perspective: 1000px; }.flashcard { position: relative; display: block; width: 100%; min-height: 316px; padding: 36px 28px; border: 0; color: var(--text); background: #fcf8f4; border-radius: 16px; text-align: center; cursor: pointer; transform-style: preserve-3d; transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }.flashcard.is-flipped { transform: rotateY(180deg); }.flashcard-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; backface-visibility: hidden; }.flashcard-back { transform: rotateY(180deg); }.word-category { display: inline-flex; align-items: center; padding: 6px 9px; color: #c57b70; background: #ffebe5; border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }.word-main { margin-top: 20px; color: #252735; font-size: clamp(36px, 5vw, 57px); font-weight: 760; letter-spacing: -0.055em; line-height: 1; }.word-phonetic { margin-top: 11px; color: #9b8f8a; font-size: 13px; letter-spacing: 0.02em; }.word-phonetic i { margin-left: 7px; color: #c0aca5; font-size: 11px; font-style: normal; }.flip-hint { position: absolute; bottom: 27px; color: #b8a9a3; font-size: 10px; }.flip-hint span { margin-left: 5px; color: var(--accent); font-size: 14px; }.card-corner { position: absolute; width: 17px; height: 17px; border-color: #f2ddd4; border-style: solid; }.top-left { top: 16px; left: 16px; border-width: 1px 0 0 1px; border-radius: 6px 0 0; }.top-right { top: 16px; right: 16px; border-width: 1px 1px 0 0; border-radius: 0 6px 0 0; }.bottom-left { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; border-radius: 0 0 0 6px; }.bottom-right { right: 16px; bottom: 16px; border-width: 0 1px 1px 0; border-radius: 0 0 6px; }.back-label { color: #c3aaa3; font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }.word-meaning { margin-top: 13px; color: #333545; font-size: 26px; font-weight: 760; letter-spacing: -0.04em; }.word-example { max-width: 480px; margin-top: 21px; color: #7d7472; font-family: Georgia, serif; font-size: 15px; font-style: italic; line-height: 1.55; }.word-translation { margin-top: 7px; color: #b09f99; font-size: 11px; }
.study-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.secondary-button { min-height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; transition: 180ms ease; }.secondary-button span { margin-right: 5px; font-size: 15px; }.secondary-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }.danger-action { color: #b9867d; }.danger-action:hover { color: var(--accent-dark); border-color: #ffd5cf; background: var(--coral-soft); }.success-action { color: var(--green); }.success-action:hover { border-color: #bfe7d8; background: var(--green-soft); }.study-footer { display: flex; justify-content: space-between; padding-top: 15px; color: #b4b7c0; font-size: 10px; }.study-footer kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-right: 4px; padding: 0 4px; color: #9d9fac; background: #f5f6f9; border: 1px solid #e7e9ee; border-radius: 4px; font-family: inherit; font-size: 9px; }

.plan-progress-track { height: 6px; margin: 20px 0 15px; overflow: hidden; background: #f0f1f5; border-radius: 6px; }.plan-progress-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 250ms ease; }.task-list { display: grid; }.task-item { position: relative; display: flex; align-items: center; gap: 9px; padding: 14px 0; border-bottom: 1px solid #f0f1f5; cursor: pointer; }.task-item:last-child { border-bottom: 0; }.task-item input { position: absolute; opacity: 0; pointer-events: none; }.task-check { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 auto; color: transparent; border: 1px solid #d9dce5; border-radius: 6px; font-size: 10px; font-weight: 800; transition: 150ms ease; }.task-item.checked .task-check { color: #fff; background: var(--accent); border-color: var(--accent); }.task-copy { min-width: 0; }.task-copy strong, .task-copy small { display: block; }.task-copy strong { color: var(--muted-dark); font-size: 11px; font-weight: 650; }.task-item.checked .task-copy strong { color: #a5a8b2; text-decoration: line-through; }.task-copy small { margin-top: 4px; color: #b3b6c0; font-size: 9px; }.task-time { margin-left: auto; flex: 0 0 auto; color: #babdc6; font-size: 9px; }.task-item.checked .task-time { color: #c5a8a3; }.text-button { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; color: var(--accent-dark); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }.text-button span { font-size: 17px; line-height: 0.5; transition: transform 150ms ease; }.text-button:hover span { transform: translateX(3px); }.daily-panel > .text-button { margin-top: 18px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr); gap: 22px; margin-top: 22px; }.recent-panel, .insight-panel { padding: 25px 27px 23px; }.muted-caption { color: var(--muted); font-size: 10px; }.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }.review-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #f0f1f5; border-radius: 11px; }.review-letter { display: grid; place-items: center; width: 28px; height: 28px; color: #b77a70; background: #fff0ed; border-radius: 8px; font-family: Georgia, serif; font-size: 14px; font-style: italic; font-weight: 700; }.review-copy { min-width: 0; }.review-copy strong, .review-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.review-copy strong { font-size: 11px; }.review-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }.review-status { margin-left: auto; color: #d6a049; font-size: 9px; white-space: nowrap; }.review-status.mastered { color: var(--green); }.chart-wrap { position: relative; display: flex; height: 115px; margin-top: 17px; padding-left: 25px; }.chart-y-labels { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 3px; color: #c1c4cd; font-size: 9px; }.bar-chart { display: flex; align-items: flex-end; justify-content: space-around; width: 100%; height: 100%; padding: 0 4px; border-bottom: 1px solid #eceef3; background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, #f2f3f6 38px); }.bar { position: relative; width: 17px; min-height: 5px; background: #dedff8; border-radius: 5px 5px 0 0; }.bar.current { background: var(--accent); }.bar:hover::after { position: absolute; bottom: calc(100% + 6px); left: 50%; content: attr(data-value); padding: 3px 5px; color: #fff; background: var(--text); border-radius: 4px; font-size: 9px; transform: translateX(-50%); }.chart-x-labels, .large-chart-labels { display: flex; justify-content: space-around; padding: 9px 0 0 25px; color: #b8bbc5; font-size: 9px; }

.library-heading { margin-bottom: 29px; }.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; margin-bottom: 20px; }.search-box { display: flex; align-items: center; gap: 9px; min-width: 260px; color: #aeb2bd; }.search-box span { font-size: 22px; transform: rotate(-15deg); }.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }.search-box input::placeholder { color: #b9bdc7; }.filter-list { display: flex; gap: 7px; }.filter-button { padding: 8px 11px; border: 0; color: var(--muted); background: transparent; border-radius: 8px; font-size: 10px; font-weight: 650; cursor: pointer; }.filter-button span { margin-left: 4px; color: #b8bbc5; }.filter-button.active { color: var(--accent-dark); background: var(--coral-soft); }.filter-button.active span { color: var(--accent); }.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.library-card { position: relative; display: flex; flex-direction: column; min-height: 176px; padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); }.library-card:hover { border-color: #ffd9d2; box-shadow: var(--shadow); }.library-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.library-word { font-size: 20px; font-weight: 760; letter-spacing: -0.04em; }.library-phonetic { margin-top: 4px; color: var(--muted); font-size: 10px; }.word-level { padding: 5px 6px; color: #a080cf; background: #f2eeff; border-radius: 6px; font-size: 8px; }.library-meaning { margin: 18px 0 0; color: var(--muted-dark); font-size: 12px; font-weight: 650; }.library-example { margin: 9px 0 0; color: #a6a7af; font-size: 10px; line-height: 1.5; }.library-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }.word-tag { color: #b0b3bc; font-size: 9px; }.mastery-pill { padding: 5px 7px; color: #c38730; background: #fff6e4; border-radius: 6px; font-size: 8px; }.mastery-pill.known { color: var(--green); background: var(--green-soft); }.empty-state { grid-column: 1 / -1; padding: 50px 20px; color: var(--muted); text-align: center; }.empty-state strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 16px; }

.date-select { display: inline-flex; align-items: center; gap: 18px; padding: 11px 13px; border: 1px solid var(--line); color: var(--muted-dark); background: var(--surface); border-radius: 10px; font-size: 11px; }.date-select span { color: #b4b8c2; font-size: 15px; }.stats-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 22px; }.big-stat-card { display: flex; flex-direction: column; min-height: 166px; padding: 20px; }.stat-symbol { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; font-size: 17px; }.stat-symbol.coral { color: var(--accent); background: var(--coral-soft); }.stat-symbol.green { color: var(--green); background: var(--green-soft); }.stat-symbol.purple { color: var(--purple); background: var(--lavender); }.stat-label { margin-top: 17px; color: var(--muted); font-size: 10px; }.big-stat-card strong { margin-top: 6px; font-size: 30px; letter-spacing: -0.06em; }.big-stat-card strong span { font-size: 13px; letter-spacing: 0; }.big-stat-card small { margin-top: auto; color: #b0b3bc; font-size: 9px; }.big-stat-card small.positive { color: var(--green); }.stats-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr); gap: 22px; }.stats-chart-card, .achievements-card { padding: 25px 27px; }.large-chart { position: relative; display: flex; align-items: flex-end; justify-content: space-around; height: 270px; margin-top: 20px; padding: 0 10px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 66px, #f1f2f6 67px); }.large-chart::before { position: absolute; top: 0; left: 0; color: #c3c6cf; content: '40'; font-size: 9px; transform: translateY(-5px); }.large-chart::after { position: absolute; bottom: 0; left: 0; color: #c3c6cf; content: '0'; font-size: 9px; transform: translateY(17px); }.large-bar { width: min(33px, 8%); min-height: 8px; background: #e2e2fa; border-radius: 8px 8px 0 0; }.large-bar.current { background: var(--accent); }.large-chart-labels { padding-left: 0; }.achievement-list { display: grid; gap: 8px; margin-top: 19px; }.achievement-item { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f0f1f5; }.achievement-item:last-child { border-bottom: 0; }.achievement-badge { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; border-radius: 11px; font-size: 16px; }.achievement-badge.sun { color: #ce9131; background: #fff0cc; }.achievement-badge.lavender { color: var(--purple); background: var(--lavender); }.achievement-badge.gray { color: #b4b7c0; background: #f0f1f4; }.achievement-item strong, .achievement-item small { display: block; }.achievement-item strong { color: var(--muted-dark); font-size: 11px; }.achievement-item small { margin-top: 4px; color: #b6b9c2; font-size: 9px; }.achievement-check { margin-left: auto; color: var(--green); font-size: 13px; }.achievement-lock { margin-left: auto; color: #c0c3cb; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(33, 38, 53, 0.35); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.quiz-modal { position: relative; width: min(500px, 100%); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 25px 80px rgba(27, 31, 47, 0.2); }.modal-close { position: absolute; top: 15px; right: 18px; width: 29px; height: 29px; padding: 0; border: 0; color: var(--muted); background: var(--surface-soft); border-radius: 9px; font-size: 20px; line-height: 1; cursor: pointer; }.quiz-header { display: flex; align-items: center; gap: 12px; }.quiz-mark { display: grid; place-items: center; width: 35px; height: 35px; color: #ca8b2d; background: #fff0cc; border-radius: 11px; }.quiz-header h2 { margin: 0; font-size: 20px; letter-spacing: -0.04em; }.quiz-question { margin: 32px 0 19px; color: var(--muted-dark); font-size: 13px; }.quiz-word { margin: 0; font-size: 34px; letter-spacing: -0.06em; }.quiz-options { display: grid; gap: 9px; }.quiz-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px; border: 1px solid var(--line); color: var(--muted-dark); background: var(--surface); border-radius: 10px; text-align: left; font-size: 12px; cursor: pointer; }.quiz-option:hover { border-color: #ffd3cc; background: var(--coral-soft); }.quiz-option.correct { color: var(--green); border-color: #b9e4d4; background: var(--green-soft); }.quiz-option.wrong { color: #bd766d; border-color: #ffd2cb; background: var(--coral-soft); }.option-index { display: grid; place-items: center; width: 22px; height: 22px; color: #a4a8b3; background: #f3f4f7; border-radius: 7px; font-size: 10px; }.quiz-progress { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; color: var(--muted); font-size: 10px; }.quiz-progress-track { width: 70%; height: 5px; overflow: hidden; background: #f0f1f5; border-radius: 5px; }.quiz-progress-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }.quiz-result { padding: 38px 10px 14px; text-align: center; }.result-score { color: var(--accent); font-size: 55px; font-weight: 800; letter-spacing: -0.08em; }.quiz-result h3 { margin: 8px 0 7px; font-size: 21px; }.quiz-result p { margin: 0 0 23px; color: var(--muted); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: calc(100vw - 48px); padding: 11px 14px; color: #fff; background: #2d3345; border-radius: 10px; box-shadow: 0 11px 28px rgba(28, 34, 51, 0.2); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: 220ms ease; }.toast.show { opacity: 1; transform: translateY(0); }

[data-theme="dark"] { --bg: #171922; --surface: #20232d; --surface-soft: #252934; --text: #f2f3f7; --muted: #969baa; --muted-dark: #c9ccd6; --line: #303440; --coral-soft: #392a2d; --cream: #332d22; --cream-line: #51432b; --lavender: #2d2b44; --lavender-line: #414064; --green-soft: #203b34; --shadow: 0 16px 45px rgba(0,0,0,0.2); --shadow-soft: 0 8px 24px rgba(0,0,0,0.14); }.dark-mode .flashcard, [data-theme="dark"] .flashcard { background: #2f2928; }.dark-mode .word-main, [data-theme="dark"] .word-main, [data-theme="dark"] .word-meaning { color: #f7f2ee; }.dark-mode .flashcard .word-category, [data-theme="dark"] .word-category { background: #49312e; }.dark-mode .light-track, [data-theme="dark"] .light-track { background: rgba(255,255,255,0.2); }.dark-mode .bar-chart, [data-theme="dark"] .bar-chart, [data-theme="dark"] .large-chart { background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, #30333d 38px); }.dark-mode .large-chart, [data-theme="dark"] .large-chart { background: repeating-linear-gradient(to bottom, transparent 0, transparent 66px, #30333d 67px); }

.speak-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid #f5d8d2; color: var(--accent-dark); background: var(--coral-soft); border-radius: 9px; font-size: 10px; font-weight: 750; cursor: pointer; transition: 180ms ease; }
.speak-button span:first-child { font-size: 13px; }
.speak-button:hover { border-color: #f0b7ae; background: #ffe7e2; transform: translateY(-1px); }
.panel-tools { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sentence-speak-button { color: var(--purple); border-color: var(--lavender-line); background: var(--lavender); }
.sentence-speak-button:hover { color: #7463c6; border-color: #cbc5f7; background: #e9e5ff; }

@media (max-width: 1100px) { .sidebar { width: 215px; }.main-content { width: calc(100% - 215px); margin-left: 215px; }.topbar { padding: 0 34px; }.page-wrap { width: calc(100% - 68px); }.study-layout { grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.9fr); }.page-heading h1 { font-size: 28px; }.summary-card { padding-left: 15px; padding-right: 15px; }.mini-week { gap: 4px; }.week-day { width: 18px; } }
@media (max-width: 820px) { .sidebar { position: fixed; top: auto; right: 0; bottom: 0; left: 0; display: block; width: 100%; height: 68px; padding: 0; border-top: 1px solid var(--line); border-right: 0; }.brand-lockup, .sidebar-label, .collection-list, .sidebar-bottom { display: none; }.nav-list { display: flex; justify-content: space-around; height: 100%; gap: 0; }.nav-item { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 95px; padding: 5px; border-radius: 0; font-size: 9px; }.nav-icon { font-size: 18px; }.nav-badge { position: absolute; top: 10px; right: 30%; min-width: 17px; height: 15px; font-size: 8px; }.main-content { width: 100%; margin-left: 0; padding-bottom: 68px; }.topbar { min-height: 68px; padding: 0 22px; }.mobile-brand { display: flex; font-size: 15px; font-weight: 800; }.topbar-context { display: none; }.profile-name, .profile-caret { display: none; }.page-wrap { width: calc(100% - 44px); padding-top: 34px; }.summary-grid { grid-template-columns: 1fr 1fr; }.summary-card:last-child { grid-column: 1 / -1; min-height: 130px; }.study-layout, .lower-grid, .stats-layout { grid-template-columns: 1fr; }.daily-panel { order: -1; }.review-list { grid-template-columns: repeat(2, 1fr); }.library-grid { grid-template-columns: repeat(2, 1fr); }.stats-highlight-grid { grid-template-columns: repeat(3, 1fr); }.big-stat-card { padding: 15px; }.big-stat-card strong { font-size: 24px; }.library-toolbar { align-items: stretch; flex-direction: column; }.search-box { min-width: 0; }.filter-list { overflow-x: auto; } }
@media (max-width: 540px) { .topbar { padding: 0 16px; }.topbar-actions { gap: 4px; }.profile-chip { padding-left: 3px; }.page-wrap { width: calc(100% - 28px); padding-top: 27px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 23px; }.page-heading h1 { font-size: 26px; }.heading-subtitle { font-size: 12px; line-height: 1.6; }.primary-button { padding: 11px 13px 11px 15px; }.summary-grid { gap: 9px; }.summary-card { min-height: 141px; padding: 14px; }.summary-card:last-child { min-height: 123px; }.summary-mainline strong { font-size: 27px; }.mini-week { gap: 3px; }.week-day { width: 16px; height: 18px; }.study-panel, .daily-panel, .recent-panel, .insight-panel, .stats-chart-card, .achievements-card { padding: 20px 16px 16px; }.study-panel > .panel-heading { flex-wrap: wrap; }.study-panel > .panel-heading .panel-tools { width: 100%; justify-content: flex-start; }.flashcard { min-height: 285px; }.flashcard-face { padding: 20px; }.word-main { font-size: 39px; }.word-meaning { font-size: 22px; }.word-example { font-size: 13px; }.study-footer { display: none; }.review-list { grid-template-columns: 1fr; }.library-grid { grid-template-columns: 1fr; }.library-heading .primary-button { align-self: stretch; justify-content: center; }.stats-highlight-grid { grid-template-columns: 1fr; gap: 9px; }.big-stat-card { min-height: 125px; }.big-stat-card strong { font-size: 27px; }.date-select { align-self: stretch; justify-content: space-between; }.large-chart { height: 210px; }.quiz-modal { padding: 22px 17px; }.quiz-header h2 { font-size: 17px; } }
