:root {
  color-scheme:light;
  --page:#fff;
  --surface:#f7f8fa;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --accent:#0066d6;
  --accent-hover:#005bbc;
  --accent-soft:#eaf3ff;
  --line:#e8eaed;
  --serif:Georgia,'Times New Roman',serif;
  --radius:18px;
  --shadow:0 4px 18px rgba(26,40,65,.045);
  --ease:cubic-bezier(.2,.7,.2,1);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;
  font-size:14px;
  color:var(--ink);
  background:#fff
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
  transition:background-color 150ms var(--ease),border-color 150ms var(--ease),box-shadow 150ms var(--ease),color 150ms var(--ease),transform 150ms var(--ease)
}
button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:none;
  touch-action:manipulation
}
button:disabled {
  cursor:not-allowed;
  opacity:.42;
  transform:none!important;
  box-shadow:none!important
}
a {
  color:var(--accent);
  text-underline-offset:3px;
  touch-action:manipulation
}
h1,h2,h3,p,figure {
  margin:0
}
h1 {
  font-size:28px;
  line-height:1.3;
  letter-spacing:-.6px;
  font-weight:650
}
h2 {
  font-size:19px;
  line-height:1.4;
  font-weight:650;
  letter-spacing:-.25px
}
h3 {
  font-size:15px;
  line-height:1.5;
  font-weight:600
}
p {
  line-height:1.7
}
svg.icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
  vertical-align:middle
}
:focus-visible {
  outline:3px solid #82b9ff;
  outline-offset:3px
}
input,select,textarea {
  border:1px solid #dce0e6;
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  padding:11px 12px;
  min-height:42px;
  min-width:0;
  max-width:100%;
  accent-color:var(--accent)
}
input::placeholder,textarea::placeholder {
  color:#85858c
}
textarea {
  resize:vertical;
  line-height:1.7
}
input:focus,textarea:focus,select:focus {
  border-color:var(--accent)
}
[hidden] {
  display:none!important
}
.subtle {
  color:var(--muted);
  font-size:13px;
  line-height:1.8
}
.icon-button {
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:var(--muted);
  flex-shrink:0
}
.btn {
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 17px;
  border:1px solid transparent;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-size:14px;
  font-weight:550;
  line-height:1.45;
  text-decoration:none
}
.btn.secondary {
  background:#fff;
  color:var(--ink);
  border-color:#dde1e7
}
.btn.light {
  background:var(--accent-soft);
  color:var(--accent)
}
.btn.small {
  min-height:38px;
  padding:8px 13px;
  font-size:13px
}
.btn.danger {
  background:#bf3438
}
.text-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:var(--accent);
  font-size:13px;
  line-height:1.5;
  padding:8px 0;
  text-decoration:none
}
.text-btn .icon {
  width:16px;
  height:16px
}
button:active:not(:disabled),a.btn:active {
  transform:scale(.98)
}
/* Shell and shared surfaces */
.sidebar {
  width:228px;
  position:fixed;
  inset:0 auto 0 0;
  border-right:1px solid var(--line);
  background:#fff;
  padding:30px 18px 20px;
  z-index:50;
  display:flex;
  flex-direction:column
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  color:var(--ink);
  padding:0 10px 34px
}
.brand img {
  width:38px;
  height:38px
}
.brand strong {
  font-size:17px;
  font-weight:650;
  letter-spacing:-.4px
}
.brand small {
  display:block;
  margin-top:5px;
  font-size:12px;
  color:var(--muted)
}
.sidebar nav {
  display:grid;
  gap:6px
}
.nav-item {
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  padding:12px 13px;
  min-height:46px;
  color:#62646a;
  border-radius:11px;
  font-size:14px
}
.nav-item.active {
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:600
}
.nav-item .badge {
  margin-left:auto;
  font-size:12px;
  background:#fff;
  border:1px solid #d6e8ff;
  border-radius:7px;
  padding:1px 6px
}
.nav-gap {
  height:13px
}
.sidebar-bottom {
  margin-top:auto;
  padding:20px 12px 0;
  border-top:1px solid var(--line)
}
.device-status {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13px;
  color:var(--muted)
}
.device-status small {
  display:block;
  font-size:12px;
  margin-top:4px
}
.workspace {
  margin-left:228px;
  min-width:0
}
.topbar {
  height:80px;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#fff
}
.crumb {
  display:flex;
  align-items:center;
  gap:13px;
  font-size:13px;
  color:var(--muted);
  white-space:nowrap
}
.crumb span {
  color:#bdc0c6
}
.crumb strong {
  color:var(--ink);
  font-weight:550
}
.top-right {
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0
}
.local-tag {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap
}
.local-tag i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent)
}
.header-search {
  display:flex;
  align-items:center;
  gap:9px;
  background:var(--surface);
  border:1px solid transparent;
  border-radius:10px;
  padding:0 12px;
  max-width:240px;
  min-width:100px
}
.header-search:focus-within {
  border-color:#b3d4ff;
  background:white
}
.header-search .icon {
  width:17px;
  height:17px;
  color:var(--muted)
}
.header-search input {
  width:175px;
  padding:10px 0;
  border:0;
  background:none;
  min-height:38px;
  font-size:13px;
  outline:none
}
.mobile-menu,.mobile-close,.nav-scrim {
  display:none
}
.main {
  padding:34px 40px 22px;
  max-width:1510px;
  margin:auto;
  min-width:0
}
.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:27px
}
.intro .subtle {
  margin-top:8px
}
.date {
  font-size:13px;
  color:var(--muted)
}
.footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:44px;
  border-top:1px solid var(--line);
  padding-top:18px;
  color:var(--muted);
  font-size:12px
}
.footer .text-btn {
  font-size:12px
}
.panel {
  padding:23px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow)
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px
}
.panel-heading>.icon {
  color:var(--muted)
}
.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:30px 0 16px
}
.section-head h2 {
  font-size:18px
}
.meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:12px;
  color:var(--muted)
}
.meta .icon {
  width:14px;
  height:14px
}
.meta>span {
  display:inline-flex;
  align-items:center;
  gap:5px
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:4px;
  border-radius:6px;
  padding:3px 7px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
  font-weight:550;
  white-space:nowrap
}
.pill.b1 {
  background:#f1effb;
  color:#69519d
}
.pill.b2,.pill.c1 { background:var(--accent-soft); color:var(--accent); }
.reading-level-note { margin:14px 0 22px; color:var(--muted); font-size:13px; line-height:1.85; }
.reading-level-note summary { cursor:pointer; color:var(--text); }
.reading-level-note p { margin:10px 0; }
.reading-level-note a { color:var(--accent); }
.reading-level-note :is(summary,a):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.pill.a1 {
  background:#f1f4f6;
  color:#516775
}
.complete-badge {
  color:var(--accent);
  font-size:12px
}
/* Home: editorial hierarchy, with real article photography */
.home-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:28px
}
.home-grid>*,.home-aside>* {
  min-width:0
}
.hero {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  min-height:305px;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow)
}
.hero-copy {
  padding:30px;
  align-self:center
}
.hero-label {
  color:var(--accent);
  font-size:13px;
  font-weight:600;
  margin-bottom:15px;
  display:flex;
  align-items:center;
  gap:7px
}
.hero h2 {
  font:600 clamp(27px,2.4vw,36px)/1.14 var(--serif);
  letter-spacing:-.7px;
  overflow-wrap:anywhere
}
.chinese-title {
  font-size:14px;
  color:var(--muted);
  margin:12px 0 18px;
  line-height:1.75
}
.hero .btn {
  margin-top:23px
}
.hero-art {
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:305px;
  max-height:390px
}
.article-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}
.article-card {
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  text-align:left;
  background:white;
  padding:0;
  display:flex;
  flex-direction:column;
  min-width:0;
  box-shadow:0 2px 8px #1e283c06
}
.card-art {
  aspect-ratio:3/2;
  overflow:hidden;
  background:var(--surface)
}
.card-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}
.card-content {
  padding:17px;
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  width:100%
}
.card-content .meta {
  gap:8px
}
.card-content h3 {
  font:600 21px/1.25 var(--serif);
  letter-spacing:-.3px;
  margin:13px 0 8px;
  overflow-wrap:anywhere
}
.card-content>p {
  font-size:13px;
  color:var(--muted);
  line-height:1.75;
  margin-bottom:20px
}
.card-footer {
  border-top:1px solid #f0f1f4;
  padding-top:12px;
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  font-size:12px;
  color:var(--muted)
}
.card-footer>span {
  display:flex;
  align-items:center;
  gap:4px
}
.card-footer .icon {
  width:15px;
  height:15px
}
.card-footer>span:last-child {
  color:var(--accent)
}
.home-aside {
  display:flex;
  flex-direction:column;
  gap:18px
}
.goal-ring {
  width:140px;
  height:140px;
  margin:23px auto;
  border-radius:50%;
  padding:8px;
  background:conic-gradient(var(--accent) var(--progress),#eff1f5 0)
}
.goal-ring>div {
  width:100%;
  height:100%;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column
}
.goal-ring strong {
  font-size:33px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  letter-spacing:-1px
}
.goal-ring small {
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}
.goal-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  margin-top:16px;
  gap:10px;
  font-variant-numeric:tabular-nums
}
.goal-line>span:first-child {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted)
}
.goal-line .icon {
  width:16px;
  height:16px
}
.review-panel {
  background:var(--surface);
  box-shadow:none
}
.review-num {
  font-size:38px;
  font-weight:600;
  margin-top:18px;
  letter-spacing:-1px
}
.review-num small {
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  margin-left:10px;
  letter-spacing:0
}
.review-panel p {
  font-size:13px;
  color:var(--muted);
  margin:8px 0 18px
}
.review-panel .btn {
  width:100%
}
.week {
  display:flex;
  justify-content:space-between;
  margin-top:22px;
  gap:4px
}
.week-day {
  text-align:center;
  font-size:12px;
  color:var(--muted)
}
.week-dot {
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  margin-top:12px;
  border-radius:50%;
  font-size:12px
}
.week-dot.today {
  border:1px solid #b8d6fd;
  color:var(--accent)
}
.week-dot.done {
  background:var(--accent);
  color:white
}
.recent-list {
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden
}
.recent-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 19px;
  border-bottom:1px solid var(--line);
  min-width:0;
  background:white
}
.recent-row:last-child {
  border:0
}
.recent-row strong {
  font-size:15px;
  overflow-wrap:anywhere
}
.recent-row small {
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  margin-top:5px
}
.collection-strip {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  border:0;
  overflow:visible
}
.collection-strip .recent-row {
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  gap:6px;
  align-items:flex-start
}
.collection-strip .recent-row strong {
  font-family:var(--serif);
  font-size:19px
}
.collection-strip .recent-row .icon-button {
  width:32px;
  height:32px
}
.empty-inline {
  padding:23px;
  background:var(--surface);
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
  display:flex;
  align-items:center;
  gap:12px;
  border-radius:14px;
  grid-column:1/-1
}
/* Search and library */
.filters {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
  flex-wrap:wrap
}
.tabs {
  display:inline-flex;
  align-items:center;
  gap:3px;
  background:#f2f4f7;
  border:1px solid #edf0f3;
  border-radius:11px;
  padding:4px;
  max-width:100%;
  flex-wrap:wrap
}
.tab {
  min-height:34px;
  padding:8px 13px;
  color:var(--muted);
  font-size:13px;
  border-radius:8px;
  white-space:nowrap
}
.tab.active {
  background:white;
  color:var(--accent);
  font-weight:600;
  box-shadow:0 1px 4px #1d293914
}
.search {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:11px;
  padding:0 13px;
  background:#fff;
  min-width:180px;
  max-width:100%
}
.search .icon {
  width:18px;
  height:18px;
  color:var(--muted)
}
.search input {
  width:240px;
  max-width:100%;
  background:none;
  border:0;
  padding:12px 0;
  outline:none
}
.search:focus-within {
  border-color:var(--accent);
  box-shadow:0 0 0 3px #eaf3ff
}
.topic-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 24px
}
.topic {
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--muted);
  font-size:13px;
  min-height:36px
}
.topic.active {
  background:var(--accent-soft);
  color:var(--accent);
  border-color:#d7e8ff
}
.library-grid {
  gap:24px
}
.library-grid .card-content h3 {
  font-size:25px
}
.library-grid .card-content {
  padding:21px
}
.library-grid .card-art {
  aspect-ratio:16/10
}
.empty {
  text-align:center;
  padding:48px 24px;
  background:var(--surface);
  border:1px dashed #d9dee6;
  border-radius:18px;
  color:var(--muted);
  line-height:1.9
}
.empty h3 {
  font-size:19px;
  color:var(--ink);
  margin-bottom:10px
}
.empty .btn {
  margin-top:24px
}
.empty>.icon {
  width:30px;
  height:30px
}
.external-links {
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:18px;
  font-size:13px
}
.progress-top {
  margin-bottom:18px
}
/* Reading canvas and audio */
.reader-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:28px;
  align-items:start
}
.reader-layout>* {
  min-width:0
}
.reading-paper {
  padding:30px 32px 28px;
  background:white;
  border:1px solid var(--line);
  border-radius:20px;
  overflow-wrap:anywhere;
  min-width:0
}
.reading-paper>.meta {
  gap:8px 12px;
  margin-bottom:19px
}
.reading-paper h1 {
  font:600 38px/1.16 var(--serif);
  letter-spacing:-.9px;
  max-width:25ch
}
.reader-title-zh {
  font-size:16px;
  color:var(--muted);
  margin:13px 0 24px;
  line-height:1.8
}
.reader-tools {
  margin:25px 0 16px;
  display:flex;
  align-items:center
}
.reader-tools .tabs {
  width:100%
}
.reader-tools .tab {
  flex:1;
  min-height:36px;
  padding:8px
}
.audio-bar {
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  background:var(--surface);
  border:1px solid #eef0f3;
  border-radius:12px;
  margin:0 0 8px;
  min-width:0
}
.audio-bar>.icon-button:first-child {
  background:var(--accent);
  color:white;
  width:36px;
  height:36px;
  border-radius:50%
}
.audio-bar .icon-button {
  width:32px;
  height:32px
}
.audio-bar .icon {
  width:17px;
  height:17px
}
.audio-bar #audio-label {
  font-size:12px;
  color:var(--muted);
  white-space:nowrap
}
.audio-bar progress {
  width:100%;
  min-width:24px;
  flex:1;
  height:4px;
  appearance:none;
  accent-color:var(--accent);
  border:0;
  border-radius:3px;
  overflow:hidden;
  background:#e2e6eb
}
.audio-bar progress::-webkit-progress-bar {
  background:#e2e6eb
}
.audio-bar progress::-webkit-progress-value {
  background:var(--accent);
  border-radius:3px
}
.audio-bar select {
  padding:4px;
  min-height:32px;
  font-size:12px;
  border:0;
  background:transparent;
  width:58px
}
.audio-help {
  color:var(--muted);
  font-size:12px;
  margin-bottom:26px;
  line-height:1.8
}
.audio-help summary {
  cursor:pointer;
  padding:4px 0
}
.audio-help p {
  padding:8px 0
}
#reading-text {
  margin-top:28px
}
.read-paragraph {
  margin-bottom:28px;
  border-radius:10px;
  scroll-margin-top:24px
}
.english {
  font:400 20px/1.95 var(--serif);
  letter-spacing:.05px;
  color:#25262a;
  max-width:70ch
}
.translation {
  font:400 15px/1.9 -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;
  color:#626770;
  margin-top:11px;
  overflow-wrap:anywhere
}
.word {
  cursor:pointer;
  border-radius:3px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  transition:background-color 120ms
}
.word.saved {
  background:#edf3fb;
  box-shadow:inset 0 -1px #bfd7fa
}
.word.is-selected {
  background:#d6e8ff;
  box-shadow:inset 0 -2px var(--accent)
}
::selection {
  background:#cfe3ff;
  color:#12365f
}
.speaking {
  background:#f5f8fe;
  box-shadow:0 0 0 10px #f5f8fe
}
.paragraph-tools {
  display:flex;
  align-items:center;
  gap:4px 14px;
  flex-wrap:wrap;
  margin-top:10px
}
.paragraph-tools button {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:32px;
  font-size:12px;
  color:#757981;
  padding:4px 0
}
.paragraph-tools .icon {
  width:15px;
  height:15px
}
.sentence-block+.sentence-block {
  margin-top:20px
}
/* Word inspector: independent scroll region and always available save action */
.reader-aside {
  position:sticky;
  top:24px;
  min-width:0
}
.word-panel {
  padding:22px;
  max-height:calc(100dvh - 210px);
  display:flex;
  flex-direction:column;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#d5dbe3 transparent
}
.word-panel:has(.word-content) {
  padding:0;
  overflow:hidden
}
.word-heading {
  padding:21px 20px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
  flex-shrink:0
}
.word-heading h2 {
  font:600 28px/1.2 var(--serif);
  overflow-wrap:anywhere;
  min-width:0;
  align-self:center
}
.word-heading .icon-button {
  width:30px;
  height:30px;
  margin-right:-5px
}
.word-content {
  overflow:auto;
  padding:12px 20px 20px;
  min-height:0;
  overscroll-behavior:contain;
  scrollbar-width:thin
}
.word-type {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  flex-wrap:wrap;
  margin-bottom:8px
}
.word-type .icon-button {
  width:30px;
  height:30px;
  color:var(--accent)
}
.definition {
  font-size:16px;
  line-height:1.8;
  font-weight:550;
  padding:4px 0 16px;
  border-bottom:1px solid var(--line);
  margin-bottom:14px
}
.field-label {
  display:block;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  margin:20px 0 8px;
  line-height:1.6
}
.example {
  font:17px/1.75 var(--serif);
  overflow-wrap:anywhere
}
.word-panel .translation {
  font-size:14px;
  line-height:1.85
}
.word-panel textarea,.word-panel input {
  width:100%;
  font-size:14px
}
.word-panel textarea {
  min-height:90px
}
.word-panel .recent-row {
  padding:13px 0;
  gap:8px
}
.word-panel .recent-row strong {
  font-size:17px;
  font-family:var(--serif);
  font-weight:500
}
.word-panel .recent-row .icon {
  width:15px;
  height:15px;
  color:#9ba3ae
}
.word-footer {
  padding:14px 20px 18px;
  border-top:1px solid var(--line);
  background:white;
  flex-shrink:0
}
.word-footer .btn {
  width:100%;
  font-size:13px
}
.hint-box {
  display:flex;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  padding:18px 8px
}
.hint-box .icon {
  width:16px;
  height:16px;
  margin-top:3px
}
.selection-tip {
  margin-top:18px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  background:var(--surface);
  border-radius:10px;
  padding:12px
}
.reader-end {
  padding-top:25px;
  border-top:1px solid var(--line);
  text-align:center
}
.quiz {
  border-top:1px solid var(--line);
  padding-top:26px;
  margin-top:32px;
  margin-bottom:30px
}
.quiz h3 {
  font-size:17px
}
.quiz-q {
  margin-top:25px
}
.quiz-q>p {
  font:18px/1.7 var(--serif);
  margin-bottom:12px
}
.quiz-option {
  display:block;
  width:100%;
  text-align:left;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 14px;
  margin:8px 0;
  font:16px/1.6 var(--serif);
  background:#fff;
  overflow-wrap:anywhere
}
.quiz-option.correct {
  border-color:#b5d7ca;
  background:#f1f8f4;
  color:#286548
}
.quiz-option.wrong {
  border-color:#efc6c6;
  background:#fdf5f5;
  color:#a13b3b
}
.quiz-feedback {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
  margin-top:12px
}
.no-audio {
  font-size:13px;
  color:var(--muted);
  padding:14px;
  background:var(--surface);
  border-radius:10px
}
.lookup-status {
  border-bottom:1px solid var(--line);
  padding:0 0 16px;
  margin-bottom:18px
}
.lookup-status .btn {
  width:100%;
  margin-top:8px
}
.lookup-status small {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:9px;
  line-height:1.7
}
.lookup-error {
  padding:12px;
  background:#fff4f3;
  border:1px solid #f2d4d2;
  border-radius:10px;
  font-size:13px;
  color:#9c3a35;
  margin-bottom:14px
}
.usage-note {
  font-size:14px;
  background:var(--surface);
  padding:12px;
  border-radius:10px;
  line-height:1.8;
  margin-bottom:16px
}
.article-management {
  border:1px solid var(--line);
  padding:12px 15px;
  border-radius:12px;
  margin:18px 0;
  background:var(--surface);
  font-size:13px
}
.article-management summary {
  cursor:pointer;
  font-weight:550;
  color:var(--muted);
  line-height:1.7
}
.article-settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:16px 0
}
.article-settings-grid label {
  font-size:12px;
  color:var(--muted);
  display:grid;
  gap:7px
}
.article-settings-grid select {
  width:100%
}
.article-terms {
  margin-top:14px
}
.article-terms p {
  font-size:13px;
  margin:8px 0
}
/* Vocabulary and review */
.vocab-list {
  display:grid;
  gap:14px
}
.vocab-row {
  display:grid;
  grid-template-columns:minmax(150px,.85fr) minmax(0,2fr) auto;
  gap:12px 24px;
  align-items:start;
  padding:23px 25px;
  border:1px solid var(--line);
  border-radius:16px;
  background:white;
  box-shadow:var(--shadow);
  min-width:0
}
.vocab-row>* {
  min-width:0
}
.vocab-row h3 {
  font:600 24px/1.25 var(--serif);
  overflow-wrap:anywhere;
  margin-bottom:8px
}
.vocab-row p {
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
  overflow-wrap:anywhere
}
.vocab-row>div:nth-child(2)>p:first-child {
  font:16px/1.8 var(--serif);
  color:#41464e
}
.vocab-row .text-btn {
  font-size:12px;
  text-align:left;
  justify-content:flex-start;
  overflow-wrap:anywhere
}
.vocab-row>div:last-child {
  grid-column:3;
  grid-row:1/3;
  display:flex;
  align-items:center;
  gap:3px
}
.vocab-row .due-label {
  grid-column:1/3;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid #f0f1f4;
  padding-top:12px
}
.due-label::before {
  content:'';
  width:5px;
  height:5px;
  background:#8bb7ef;
  border-radius:50%
}
.flash-wrap {
  max-width:760px;
  margin:32px auto
}
.flash-meta {
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:13px;
  margin-bottom:17px
}
.flashcard {
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 8px 34px #23365508;
  padding:44px 54px;
  text-align:center;
  min-height:310px;
  display:flex;
  align-items:center;
  flex-direction:column;
  justify-content:center;
  background:white
}
.eyebrow {
  font-size:12px;
  color:var(--muted);
  letter-spacing:.3px
}
.flashcard h2 {
  font:600 42px/1.2 var(--serif);
  margin:22px 0;
  overflow-wrap:anywhere;
  max-width:100%
}
.flashcard .example {
  max-width:580px;
  color:#5f6670;
  font-size:18px
}
.flashcard .btn {
  margin-top:24px
}
.flash-answer {
  width:100%;
  border-top:1px solid var(--line);
  margin-top:26px;
  padding-top:25px
}
.flash-answer h3 {
  font-size:23px;
  margin-bottom:16px;
  overflow-wrap:anywhere
}
.flash-answer .icon-button {
  margin-top:14px;
  color:var(--accent)
}
.review-input {
  margin-top:20px;
  width:100%;
  text-align:center
}
.reveal {
  width:100%;
  margin-top:20px
}
.ratings {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:20px
}
.rating {
  padding:15px 8px;
  min-height:72px;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:14px;
  background:var(--surface)
}
.rating small {
  display:block;
  font-size:12px;
  margin-top:6px;
  color:var(--muted)
}
.rating[data-rating='0'] {
  color:#ab4242;
  border-color:#efd9d9;
  background:#fff8f8
}
.rating[data-rating='1'] {
  color:#946526;
  border-color:#ece1d0;
  background:#fdfaf4
}
.rating[data-rating='2'] {
  color:var(--accent);
  border-color:#d7e7fb;
  background:#f4f8ff
}
.rating[data-rating='3'] {
  color:#3b755a;
  border-color:#d6e8df;
  background:#f4faf7
}
/* Statistics, settings, photo credits */
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:25px
}
.stat-card {
  border:1px solid var(--line);
  border-radius:16px;
  padding:23px;
  background:var(--surface)
}
.stat-card small {
  color:var(--muted);
  font-size:13px
}
.stat-card strong {
  display:block;
  font-size:36px;
  font-weight:600;
  margin-top:16px;
  letter-spacing:-1px;
  font-variant-numeric:tabular-nums
}
.stat-card strong span {
  color:var(--muted);
  font-size:13px;
  font-weight:400;
  margin-left:8px
}
.activity-grid {
  display:flex;
  align-items:flex-end;
  justify-content:space-around;
  gap:8px;
  padding-top:28px;
  min-height:180px
}
.activity-column {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:10px;
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
.activity-bar {
  width:min(28px,100%);
  border-radius:5px 5px 2px 2px;
  background:#7eb5f4;
  min-height:3px
}
.settings-block {
  margin-bottom:22px;
  max-width:980px;
  padding:25px 28px
}
.settings-block>h3 {
  font-size:17px;
  margin-bottom:8px
}
.setting-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
  font-size:14px
}
.setting-row:last-child {
  border:0;
  padding-bottom:5px
}
.setting-row>div {
  max-width:690px
}
.setting-row p {
  font-size:13px;
  color:var(--muted);
  margin-top:6px
}
.setting-row select {
  min-width:100px
}
.setting-row .btn {
  flex-shrink:0
}
.setting-row>.icon {
  color:var(--muted)
}
.photo-license-note {
  font-size:14px;
  line-height:1.9;
  color:var(--muted);
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  margin-bottom:25px
}
.photo-credit-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}
.photo-credit {
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  min-width:0
}
.photo-credit img {
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:cover;
  display:block
}
.photo-credit figcaption {
  padding:20px;
  font-size:13px;
  line-height:1.8;
  overflow-wrap:anywhere
}
.photo-credit figcaption strong {
  font-size:14px
}
.photo-credit p {
  margin:8px 0;
  color:var(--muted)
}
.photo-credit a {
  font-size:12px
}
/* Dialogs and feedback */
.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#18243655;
  padding:28px;
  overflow:auto;
  backdrop-filter:blur(4px)
}
.modal {
  width:600px;
  max-width:100%;
  max-height:calc(100dvh - 56px);
  overflow-y:auto;
  background:#fff;
  border:1px solid #ffffff80;
  box-shadow:0 24px 90px #15233f33;
  border-radius:20px;
  padding:27px;
  overscroll-behavior:contain
}
.modal-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px
}
.modal-title h2 {
  font-size:21px
}
.modal-title .icon-button {
  margin:-7px -7px -7px 0
}
.modal p {
  font-size:14px;
  line-height:1.85;
  color:var(--muted)
}
.modal input:not([type='checkbox']),.modal textarea,.modal select {
  display:block;
  width:100%;
  margin:8px 0 14px
}
.modal input[type='file'] {
  font-size:13px;
  padding:10px;
  line-height:1.8
}
.modal input::file-selector-button {
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface);
  color:var(--ink);
  padding:6px 10px;
  font:inherit;
  margin-right:12px;
  cursor:pointer
}
.modal textarea {
  min-height:145px
}
.modal label {
  font-size:13px
}
.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:25px
}
.modal-actions:empty {
  display:none
}
body:has(.modal-backdrop) {
  overflow:hidden
}
#toast {
  position:fixed;
  bottom:26px;
  left:calc(50% + 114px);
  transform:translate(-50%,12px);
  z-index:200;
  background:#252b34;
  color:#fff;
  border-radius:12px;
  padding:14px 20px;
  box-shadow:0 6px 30px #13233b20;
  max-width:min(600px,calc(100% - 36px));
  font-size:13px;
  line-height:1.7;
  opacity:0;
  pointer-events:none;
  transition:opacity 170ms var(--ease),transform 170ms var(--ease)
}
#toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
@media(hover:hover) and (pointer:fine) {
  .btn:hover:not(:disabled) {
    background:var(--accent-hover)
  }
  .btn.secondary:hover:not(:disabled) {
    background:var(--surface);
    border-color:#c8d0dc
  }
  .btn.light:hover:not(:disabled) {
    background:#dcecff
  }
  .btn.danger:hover:not(:disabled) {
    background:#a72c31
  }
  .icon-button:hover {
    background:var(--surface);
    color:var(--accent)
  }
  .nav-item:hover:not(.active) {
    background:var(--surface);
    color:var(--ink)
  }
  .text-btn:hover {
    color:var(--accent-hover);
    text-decoration:underline
  }
  .article-card:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 24px #263b6010;
    border-color:#cad8eb
  }
  .tab:not(.active):hover,.topic:not(.active):hover {
    color:var(--ink);
    background:#f7f9fc
  }
  .word:hover {
    background:var(--accent-soft)
  }
  .paragraph-tools button:hover {
    color:var(--accent)
  }
  .rating:hover {
    box-shadow:0 4px 14px #233b6010;
    transform:translateY(-2px)
  }
  .quiz-option:hover {
    border-color:#9bc4f5
  }
  .recent-row[data-keyword]:hover {
    color:var(--accent)
  }
  .vocab-row [data-delete]:hover {
    background:#fff0f0;
    color:#b23838
  }
}
@media(min-width:1600px) {
  .home-grid {
    grid-template-columns:minmax(0,1fr) 300px;
    gap:32px
  }
  .reader-layout {
    grid-template-columns:minmax(0,820px) 320px;
    justify-content:center;
    gap:32px
  }
  .reading-paper {
    padding:38px 42px
  }
  .hero-copy {
    padding:36px
  }
  .hero {
    min-height:340px
  }
}
@media(max-width:1300px) {
  .sidebar {
    width:216px;
    padding-inline:14px
  }
  .workspace {
    margin-left:216px
  }
  .main {
    padding:30px 30px 20px
  }
  .topbar {
    padding:0 30px
  }
  .home-grid {
    grid-template-columns:minmax(0,1fr) 250px;
    gap:22px
  }
  .home-aside .panel {
    padding:19px
  }
  .hero-copy {
    padding:24px
  }
  .hero h2 {
    font-size:30px
  }
  .article-grid {
    gap:14px
  }
  .card-content {
    padding:15px
  }
  .card-content h3 {
    font-size:20px
  }
  .card-footer {
    align-items:flex-start
  }
  .card-footer>span:first-child {
    flex-wrap:wrap
  }
  .reader-layout {
    grid-template-columns:minmax(0,1fr) 280px;
    gap:22px
  }
  .reading-paper {
    padding:27px
  }
  .reading-paper h1 {
    font-size:35px
  }
  .top-right {
    gap:12px
  }
  .local-tag {
    display:none
  }
  .header-search {
    max-width:225px
  }
  #toast {
    left:calc(50% + 108px)
  }
}
@media(max-width:1100px) {
  .sidebar {
    width:208px
  }
  .workspace {
    margin-left:208px
  }
  .main {
    padding:28px 24px 20px
  }
  .topbar {
    padding:0 24px;
    height:72px
  }
  .home-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .home-aside {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin-top:6px
  }
  .home-aside .panel {
    padding:18px
  }
  .goal-ring {
    width:110px;
    height:110px;
    margin:18px auto;
    padding:7px
  }
  .goal-ring strong {
    font-size:29px
  }
  .goal-line {
    gap:6px
  }
  .goal-line .icon {
    display:none
  }
  .review-num small {
    display:block;
    margin:6px 0 0
  }
  .week-dot {
    width:22px;
    height:22px
  }
  .reader-layout {
    grid-template-columns:minmax(0,1fr) 265px;
    gap:18px
  }
  .reading-paper {
    padding:23px
  }
  .audio-bar {
    gap:5px
  }
  .audio-bar #audio-label {
    display:none
  }
  .reading-paper h1 {
    font-size:32px
  }
  .library-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .vocab-row {
    grid-template-columns:minmax(120px,.8fr) minmax(0,1.8fr) auto;
    gap:12px 18px;
    padding:20px
  }
  .stats-grid {
    gap:12px
  }
  .stat-card {
    padding:20px
  }
  .crumb {
    font-size:12px
  }
  .header-search input {
    width:145px
  }
}
@media(max-width:900px) {
  .sidebar {
    width:250px;
    transform:translateX(-100%);
    transition:transform 200ms var(--ease);
    padding-top:28px;
    visibility:hidden
  }
  .sidebar.open {
    transform:translateX(0);
    visibility:visible;
    box-shadow:12px 0 50px #182f5220
  }
  .workspace {
    margin-left:0
  }
  .mobile-menu,.mobile-close {
    display:inline-flex
  }
  .mobile-close {
    position:absolute;
    top:15px;
    right:12px;
    width:32px;
    height:32px
  }
  .brand {
    padding-top:28px
  }
  .nav-scrim:not([hidden]) {
    display:block;
    position:fixed;
    inset:0;
    background:#1b2a4255;
    z-index:45;
    backdrop-filter:blur(2px)
  }
  body:has(.sidebar.open) {
    overflow:hidden
  }
  .topbar {
    height:68px;
    gap:12px
  }
  .main {
    padding:26px 24px 20px
  }
  .reader-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .reading-paper {
    padding:30px;
    max-width:800px;
    width:100%;
    margin:auto
  }
  .reading-paper h1 {
    font-size:38px
  }
  .reader-aside {
    display:none
  }
  .reader-aside.has-selection {
    display:block;
    position:fixed;
    z-index:60;
    inset:auto 20px 16px;
    max-width:600px;
    margin:auto
  }
  .reader-aside.has-selection .word-panel {
    max-height:58dvh;
    box-shadow:0 15px 65px #17294540;
    border-color:#d7dfe9
  }
  .reader-aside .hint-box {
    display:none
  }
  .word-content {
    padding-top:10px
  }
  .word-heading {
    padding:14px 20px
  }
  .word-heading h2 {
    font-size:25px
  }
  .word-footer {
    padding:11px 20px 14px
  }
  .word-panel .field-label {
    margin-top:16px
  }
  .audio-bar {
    gap:10px
  }
  .audio-bar #audio-label {
    display:inline
  }
  .home-grid {
    gap:24px
  }
  .hero {
    min-height:290px
  }
  .hero-art {
    min-height:290px
  }
  .hero-copy {
    padding:28px
  }
  .hero h2 {
    font-size:34px
  }
  .home-aside {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .goal-line .icon {
    display:inline
  }
  .header-search input {
    width:150px
  }
  #toast {
    left:50%
  }
  .photo-credit-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .vocab-row {
    grid-template-columns:minmax(145px,.8fr) minmax(0,1.8fr) auto
  }
  .stats-grid {
    gap:14px
  }
  .settings-block {
    padding:24px
  }
  .local-tag {
    display:none
  }
}
@media(max-width:600px) {
  h1 {
    font-size:26px
  }
  .main {
    padding:24px 18px 18px
  }
  .topbar {
    padding:0 15px;
    gap:8px;
    height:64px
  }
  .crumb {
    gap:8px;
    font-size:13px
  }
  .crumb .workspace-label,.crumb>.divider {
    display:none
  }
  .top-right {
    gap:4px
  }
  .header-search {
    padding:0 10px;
    width:136px;
    min-width:0
  }
  .header-search input {
    width:100%;
    font-size:12px;
    min-width:0
  }
  .header-search .icon {
    width:16px;
    height:16px
  }
  .top-right>.icon-button {
    width:32px;
    height:36px
  }
  .mobile-menu {
    width:32px;
    height:36px
  }
  .intro {
    gap:14px;
    margin-bottom:23px;
    align-items:flex-start;
    flex-wrap:wrap
  }
  .intro>.subtle {
    font-size:12px;
    margin-top:0
  }
  .date {
    font-size:12px;
    margin-top:8px
  }
  .intro .btn {
    font-size:13px;
    padding:10px 13px
  }
  .btn {
    min-height:44px
  }
  .hero {
    display:flex;
    flex-direction:column-reverse;
    min-height:0;
    border-radius:18px
  }
  .hero-art {
    height:180px;
    min-height:0;
    max-height:none;
    aspect-ratio:16/9
  }
  .hero-copy {
    padding:24px
  }
  .hero h2 {
    font-size:32px;
    max-width:20ch
  }
  .hero-label {
    margin-bottom:12px;
    font-size:12px
  }
  .hero .btn {
    margin-top:19px
  }
  .chinese-title {
    margin:12px 0 17px
  }
  .article-grid {
    grid-template-columns:1fr;
    gap:16px
  }
  .home-grid .article-grid .article-card {
    display:grid;
    grid-template-columns:112px minmax(0,1fr)
  }
  .home-grid .article-grid .card-art {
    aspect-ratio:auto;
    height:100%;
    min-height:190px
  }
  .home-grid .article-grid .card-content {
    padding:16px
  }
  .home-grid .article-grid .card-content h3 {
    font-size:23px;
    margin-top:10px
  }
  .home-grid .article-grid .card-content>p {
    font-size:13px;
    margin-bottom:12px
  }
  .home-grid .article-grid .card-footer>span:last-child {
    display:none
  }
  .home-aside {
    grid-template-columns:1fr;
    gap:16px
  }
  .home-aside .panel {
    padding:22px
  }
  .goal-ring {
    width:130px;
    height:130px
  }
  .goal-line {
    font-size:13px
  }
  .review-num small {
    display:inline;
    margin-left:12px
  }
  .week-dot {
    width:32px;
    height:32px
  }
  .collection-strip {
    grid-template-columns:1fr
  }
  .collection-strip .recent-row {
    align-items:center
  }
  .collection-strip .recent-row .icon-button {
    width:40px;
    height:40px
  }
  .section-head {
    margin:27px 0 14px
  }
  .section-head h2 {
    font-size:18px
  }
  .library-grid {
    grid-template-columns:1fr;
    gap:22px
  }
  .library-grid .card-art {
    aspect-ratio:16/9
  }
  .library-grid .card-content {
    padding:22px
  }
  .library-grid .card-content h3 {
    font-size:27px
  }
  .filters {
    gap:14px
  }
  .filters>.tabs {
    width:100%
  }
  .tab {
    min-height:36px;
    padding:9px 11px;
    font-size:13px
  }
  .filters>.tabs .tab {
    flex:1
  }
  .search {
    width:100%;
    min-width:0
  }
  .search input {
    width:100%;
    min-height:44px
  }
  .topic-row {
    gap:7px
  }
  .topic {
    padding:8px 12px;
    min-height:38px
  }
  .panel {
    padding:21px;
    border-radius:16px
  }
  .reading-paper {
    border:0;
    padding:5px 0 20px;
    border-radius:0
  }
  .reading-paper h1 {
    font-size:32px;
    line-height:1.18;
    letter-spacing:-.6px
  }
  .reading-paper>.meta {
    gap:8px;
    font-size:12px
  }
  .reader-title-zh {
    font-size:16px;
    margin-top:13px;
    margin-bottom:23px
  }
  .reader-tools {
    margin:23px 0 15px
  }
  .reader-tools .tabs {
    flex-wrap:nowrap;
    width:100%
  }
  .reader-tools .tab {
    padding:9px 6px;
    font-size:13px;
    min-width:0
  }
  .english {
    font-size:20px;
    line-height:1.95
  }
  .translation {
    font-size:15px;
    line-height:1.9;
    margin-top:10px
  }
  .read-paragraph {
    margin-bottom:27px
  }
  .paragraph-tools {
    gap:4px 15px
  }
  .paragraph-tools button {
    min-height:36px
  }
  .audio-bar {
    gap:5px;
    padding:9px 7px
  }
  .audio-bar #audio-label {
    font-size:12px
  }
  .audio-bar .icon-button {
    width:30px;
    height:32px
  }
  .audio-bar select {
    width:50px
  }
  .audio-bar progress {
    min-width:18px
  }
  .audio-help {
    margin-bottom:22px
  }
  .reader-aside.has-selection {
    inset:auto 10px 10px
  }
  .reader-aside.has-selection .word-panel {
    max-height:59dvh;
    border-radius:18px
  }
  .word-content {
    padding:10px 18px 18px
  }
  .word-heading {
    padding:13px 18px
  }
  .word-heading h2 {
    font-size:25px
  }
  .word-footer {
    padding:11px 18px 14px
  }
  .word-panel .translation {
    font-size:14px
  }
  .word-panel .example {
    font-size:16px
  }
  .word-panel .icon-button {
    width:36px;
    height:36px
  }
  .quiz {
    margin-top:28px
  }
  .quiz-option {
    padding:12px;
    font-size:16px
  }
  .reader-end .btn {
    width:100%
  }
  .flash-wrap {
    margin:24px auto
  }
  .flash-meta {
    font-size:12px
  }
  .flashcard {
    padding:32px 24px;
    min-height:340px;
    border-radius:18px
  }
  .flashcard h2 {
    font-size:36px
  }
  .flashcard .example {
    font-size:18px
  }
  .ratings {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .rating {
    min-height:74px
  }
  .vocab-row {
    grid-template-columns:minmax(0,1fr) auto;
    padding:20px;
    gap:14px
  }
  .vocab-row>div:first-child {
    grid-column:1;
    grid-row:1
  }
  .vocab-row>div:nth-child(2) {
    grid-column:1/-1;
    grid-row:2
  }
  .vocab-row>div:last-child {
    grid-column:2;
    grid-row:1
  }
  .vocab-row .due-label {
    grid-column:1/-1;
    grid-row:3
  }
  .vocab-row h3 {
    font-size:26px
  }
  .vocab-row>div:last-child .icon-button {
    width:36px
  }
  .stats-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .stat-card {
    padding:20px
  }
  .stat-card strong {
    font-size:34px
  }
  .activity-grid {
    gap:5px;
    min-height:175px
  }
  .activity-column {
    font-size:12px
  }
  .settings-block {
    padding:22px
  }
  .setting-row {
    align-items:flex-start;
    gap:16px;
    flex-wrap:wrap;
    padding:21px 0
  }
  .setting-row select {
    margin-left:auto
  }
  .setting-row>.icon {
    display:none
  }
  .setting-row>.btn {
    width:100%
  }
  .setting-row p {
    font-size:13px
  }
  .photo-credit-grid {
    grid-template-columns:1fr;
    gap:22px
  }
  .photo-credit figcaption {
    font-size:14px
  }
  .photo-license-note {
    font-size:13px
  }
  .footer {
    margin-top:34px;
    align-items:flex-start
  }
  .footer .text-btn {
    padding:0
  }
  .modal-backdrop {
    padding:12px
  }
  .modal {
    padding:23px 20px;
    max-height:calc(100dvh - 24px);
    border-radius:18px
  }
  .modal-title h2 {
    font-size:20px
  }
  .modal-actions {
    flex-wrap:wrap
  }
  .modal-actions .btn {
    flex:1;
    min-width:100px
  }
  .modal input,.modal textarea,.modal select {
    font-size:16px
  }
  .modal .tab {
    font-size:12px;
    padding:8px 7px
  }
  .modal .tabs {
    gap:2px
  }
  .empty {
    padding:36px 22px
  }
  .article-settings-grid {
    gap:12px
  }
  .article-management {
    padding:12px
  }
  .article-management .btn {
    width:100%;
    margin-top:6px
  }
  #toast {
    bottom:18px;
    width:max-content
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.reader-tools .tab .icon {
  width:16px;
  height:16px;
  margin-right:4px
}
.reader-tools .tab {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px
}
@media(max-width:600px) {
  .reader-tools .tab .icon {
    width:15px;
    height:15px;
    margin-right:1px
  }
}
/* Long saved sentences use the full content width, rather than a narrow word column. */
.vocab-row.long-expression {
  grid-template-columns:minmax(0,1fr) auto
}
.vocab-row.long-expression>div:first-child {
  grid-column:1;
  grid-row:1
}
.vocab-row.long-expression h3 {
  font-size:21px;
  line-height:1.65;
  font-weight:500
}
.vocab-row.long-expression>div:nth-child(2) {
  grid-column:1/-1;
  grid-row:2
}
.vocab-row.long-expression>div:last-child {
  grid-column:2;
  grid-row:1
}
.vocab-row.long-expression .due-label {
  grid-column:1/-1;
  grid-row:3
}
.flashcard.expression-card h2 {
  font-size:27px;
  line-height:1.6;
  text-align:left
}
.card-footer>span.reading-status {
  font-size:12px;
  color:var(--muted);
  white-space:nowrap
}
@media(max-width:600px) {
  .vocab-row.long-expression h3 {
    font-size:20px
  }
  .home-grid .article-grid .card-footer {
    flex-wrap:wrap
  }
  .home-grid .article-grid .card-footer>.reading-status {
    display:inline
  }
  .flashcard.expression-card h2 {
    font-size:23px
  }
}
.collection-strip .recent-row>div {
  min-width:0
}
.collection-strip .recent-row strong,.collection-strip .recent-row small {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden
}
.vocab-row.long-expression>div:first-child {
  grid-column:1/-1
}
.vocab-row.long-expression>div:last-child {
  grid-column:2;
  grid-row:3;
  align-self:center
}
.vocab-row.long-expression .due-label {
  grid-column:1;
  align-self:center
}
