:root {
  --bg: #f5f8f4;
  --paper: #ffffff;
  --text: #19231d;
  --muted: #66756d;
  --line: #dbe6dd;
  --green: #0fa66b;
  --green-dark: #08794d;
  --blue: #1e78c9;
  --soft: #eef5ef;
}

/* Grade 3 PEP key sentences */
.key-sentence-section {
  scroll-margin-top: 76px;
}

.key-sentence-list {
  display: grid;
  gap: 12px;
}

.key-sentence-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) minmax(190px, 220px);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #d9e6e1;
  border-radius: 13px;
  background: #fff;
}

.key-sentence-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f1faf6;
  color: #07865e;
  font-size: 16px;
  font-weight: 800;
}

.key-sentence-text b {
  display: block;
  color: #092e24;
  font-size: 20px;
  line-height: 1.4;
}

.key-sentence-text p,
.key-sentence-usage {
  margin: 5px 0 0;
  color: #637a73;
  line-height: 1.7;
}

.key-sentence-usage {
  padding-left: 16px;
  border-left: 1px solid #d9e6e1;
}

@media (max-width: 820px) {
  .key-sentence-section {
    scroll-margin-top: 150px;
  }

  .key-sentence-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 16px;
  }

  .key-sentence-number {
    width: 36px;
    height: 36px;
  }

  .key-sentence-text b {
    font-size: 19px;
  }

  .key-sentence-usage {
    grid-column: 2;
    margin-top: 0;
    padding: 10px 0 0;
    border-top: 1px solid #d9e6e1;
    border-left: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 230, 221, 0.78);
  background: rgba(248, 251, 247, 0.92);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-tool-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 166, 107, 0.28);
  border-radius: 999px;
  background: #eaf8f1;
  color: var(--green-dark);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-tool-link:hover {
  border-color: rgba(15, 166, 107, 0.48);
  background: #ddf4ea;
}

.page {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 60px;
  overflow-x: clip;
}

.page-actions {
  position: sticky;
  top: 63px;
  z-index: 18;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 14px;
  padding: 8px 0;
  background: rgba(245, 248, 244, 0.96);
  backdrop-filter: blur(8px);
}

.page-actions a,
.page-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.page-actions a:first-child {
  border-color: rgba(15, 166, 107, 0.28);
  color: var(--green-dark);
}

.page-actions a:hover,
.page-actions button:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.article {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.unit-hero {
  grid-template-columns: minmax(0, 1fr);
}

.list-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.list-hero-simple {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  min-height: 280px;
  align-items: center;
}

.home-shell {
  display: grid;
  gap: 18px;
}

.book-library {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.book-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-filter {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.book-filter:hover,
.book-filter.is-active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.book-cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.book-cover-card[hidden] {
  display: none;
}

.book-cover-card a {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
}

.book-cover-card a:hover {
  border-color: rgba(15, 166, 107, 0.65);
  box-shadow: 0 10px 26px rgba(31, 65, 47, 0.11);
}

.book-cover-card img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border: 1px solid #e1ebe3;
  border-radius: 6px;
  background: #f7faf7;
}

.book-cover-card strong {
  font-size: 16px;
  line-height: 1.45;
}

.book-cover-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.book-grade {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #eaf7ef;
  font-size: 12px;
  font-weight: 800;
}

.dictionary-library {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.dictionary-library .section-head h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.dictionary-cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.dictionary-cover-card a {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.dictionary-cover-card a:hover {
  border-color: rgba(15, 166, 107, 0.65);
  box-shadow: 0 10px 26px rgba(31, 65, 47, 0.11);
}

.dictionary-cover-card img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border: 1px solid #e1ebe3;
  border-radius: 6px;
  background: #f7faf7;
}

.dictionary-detail-hero {
  min-height: 240px;
}

.dictionary-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dictionary-page-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dictionary-page-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.book-list-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.unit-list-section {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.unit-list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fbfdfb;
  text-decoration: none;
}

.unit-list-card:hover {
  border-color: rgba(15, 166, 107, 0.65);
  box-shadow: 0 10px 26px rgba(31, 65, 47, 0.11);
}

.unit-list-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.unit-list-card h2 {
  margin: 10px 0;
  font-size: 24px;
}

.unit-list-card strong {
  display: block;
  margin: 10px 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.unit-list-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.unit-list-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  min-width: 0;
}

.crumb {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.title-en {
  display: block;
}

.title-cn {
  display: block;
}

.summary {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.qr-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(15, 166, 107, 0.25);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.qr-card img {
  width: min(100%, 220px);
  border-radius: 10px;
}

.qr-card strong {
  font-size: 20px;
}

.qr-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.download-cta {
  display: flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 34px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 166, 107, 0.26);
  border-radius: 8px;
  background: #f2faf5;
  box-shadow: 0 8px 28px rgba(18, 92, 58, 0.06);
}

.download-cta-bottom {
  margin: 34px 0 4px;
}

.download-cta strong,
.download-cta span {
  display: block;
}

.download-cta > div {
  min-width: 0;
}

.download-cta strong {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
}

.download-cta span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.download-button {
  min-width: 132px;
  max-width: 100%;
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 166, 107, 0.22);
}

.download-button:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 22px rgba(8, 121, 77, 0.24);
}

.modal-open {
  overflow: hidden;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 20, 0.42);
}

.download-dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 80px rgba(16, 35, 25, 0.2);
}

.download-dialog img {
  display: block;
  width: min(260px, 100%);
  margin: 0 auto 16px;
  border-radius: 8px;
}

.download-dialog h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.download-dialog p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.content-section {
  padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.content-section h2,
.bottom-qr h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 3vw, 30px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head span {
  color: var(--muted);
  font-size: 14px;
}

.unit-audio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(15, 166, 107, 0.32);
  border-radius: 999px;
  color: var(--green-dark);
  background: #f1faf4;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.unit-audio-button:hover,
.unit-audio-button.is-playing {
  border-color: rgba(15, 166, 107, 0.62);
  background: #e4f7eb;
}

.read-video-section {
  background: #fbfefc;
}

.read-video-hint {
  margin: -6px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.read-video-usage {
  display: none;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #edf8f1;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.read-video-usage.is-redeemed {
  background: #e1f5ea;
}

.read-video-list {
  display: grid;
  gap: 18px;
}

.read-video-group {
  display: grid;
  gap: 10px;
}

.read-video-group h3 {
  font-size: 17px;
  color: var(--text);
}

.read-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.read-video-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.read-video-card:hover {
  border-color: rgba(15, 166, 107, 0.38);
  background: #f4fbf6;
  transform: translateY(-1px);
}

.read-video-card:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.read-video-card span {
  font-weight: 700;
}

.read-video-card small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.read-video-modal[hidden] {
  display: none;
}

.read-video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.read-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 38, 29, 0.36);
}

.read-video-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(16, 38, 29, 0.18);
}

.read-video-player-view,
.read-video-limit-view {
  display: grid;
  gap: 14px;
}

.read-video-player-view[hidden],
.read-video-limit-view[hidden] {
  display: none !important;
}

.read-video-player-view h2,
.read-video-limit-view h2 {
  padding-right: 42px;
  font-size: clamp(20px, 4vw, 26px);
}

.read-video-player-view video {
  width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  background: #10261d;
}

.read-video-player-view p,
.read-video-limit-view p {
  color: var(--muted);
}

.read-video-limit-view img {
  width: min(280px, 70vw);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.read-video-limit-view label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.read-video-limit-view input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.read-video-primary {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.read-video-message {
  min-height: 24px;
  font-size: 14px;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag-filter,
.article-tags a,
.post-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 166, 107, 0.28);
  border-radius: 999px;
  color: var(--green-dark);
  background: #f1faf4;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tag-filter:hover,
.article-tags a:hover,
.post-tag:hover,
.tag-filter.is-active {
  border-color: rgba(15, 166, 107, 0.62);
  background: #e4f7eb;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #fbfdfb;
}

.post-card:hover {
  border-color: rgba(15, 166, 107, 0.48);
  background: #f7fcf8;
}

.post-image {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.post-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-title {
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.post-title:hover,
.post-link:hover {
  color: var(--green-dark);
}

.post-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.post-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfb;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.word-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.word-list div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #dce8e0;
  border-radius: 8px;
  background: #fbfdfb;
}

.word-list b {
  color: var(--blue);
  font-size: 18px;
}

.word-list span {
  color: var(--muted);
  line-height: 1.55;
}

.appendix-source figure {
  max-height: 620px;
  overflow: auto;
}

.sound-word-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sound-word-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #dce8e0;
  border-radius: 8px;
  background: #fbfdfb;
}

.sound-word-card b {
  display: block;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.2;
}

.sound-word-card span {
  display: block;
  margin-top: 4px;
  color: #586961;
  font-size: 15px;
  line-height: 1.3;
}

.sound-word-card p {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.sound-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sound-button:hover,
.sound-button.is-playing {
  background: var(--green-dark);
}

.note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.note b {
  color: var(--text);
}

.bottom-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 4vw, 34px);
  background: #f4fbf6;
}

.home-wechat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  border-top: 1px solid var(--line);
  background: #f4fbf6;
}

.home-wechat h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 32px);
}

.home-wechat p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.home-wechat img {
  width: 210px;
  max-width: 100%;
  border-radius: 8px;
  justify-self: end;
}

.words-shell {
  width: min(1160px, calc(100% - 28px));
}

.words-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.words-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f2fbf6 100%);
}

.words-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.words-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.words-total {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(15, 166, 107, 0.24);
  border-radius: 8px;
  background: #fff;
}

.words-total span {
  color: var(--muted);
  font-size: 13px;
}

.words-total strong {
  color: var(--green-dark);
  font-size: 30px;
  line-height: 1;
}

.word-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.word-filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.word-filters select,
.word-filters input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.word-filters select {
  padding: 0 12px;
}

.word-filters input {
  padding: 0 42px 0 12px;
}

.word-search {
  position: relative;
  grid-column: span 4;
}

.word-clear {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef5ef;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.word-clear:hover {
  color: var(--green-dark);
  background: #e0f2e8;
}

.word-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: #f8fbf8;
}

.word-result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.word-unit-audio {
  flex: 0 0 auto;
}

.word-table-wrap {
  position: relative;
  overflow-x: auto;
}

.word-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.word-table th,
.word-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.word-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f7f2;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.word-table td {
  color: #34443b;
}

.word-table tbody tr:hover {
  background: #f7fbf8;
}

.word-english-cell {
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 800;
}

.word-english-audio {
  display: flex;
  align-items: center;
  gap: 14px;
}

.word-audio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0fa66b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.word-audio-button:hover,
.word-audio-button.is-playing {
  background: #087d51;
}

.word-empty {
  margin: 0;
  padding: 32px 18px;
  color: var(--muted);
  text-align: center;
}

.bottom-qr p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.bottom-qr img {
  width: 210px;
  max-width: 100%;
  border-radius: 8px;
  justify-self: end;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding-block: 14px;
  }

  .brand {
    font-size: 19px;
  }

  .site-tool-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero,
  .list-hero,
  .book-list-hero,
  .unit-list-card,
  .home-wechat,
  .bottom-qr {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .qr-card img,
  .home-wechat img,
  .bottom-qr img {
    width: 240px;
    justify-self: center;
  }

  .book-grid,
  .word-list,
  .sound-word-list,
  .post-card {
    grid-template-columns: 1fr;
  }

  .book-cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dictionary-cover-grid,
  .dictionary-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .words-hero,
  .word-filters {
    grid-template-columns: 1fr;
  }

  .word-search {
    grid-column: auto;
  }

  .word-table-wrap {
    overflow-x: visible;
    padding: 12px;
    background: #f7fbf8;
  }

  .word-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .word-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
  }

  .word-table thead {
    display: none;
  }

  .word-table tbody {
    display: grid;
    gap: 10px;
  }

  .word-table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 65, 47, 0.06);
  }

  .word-table th,
  .word-table td {
    border-bottom: 0;
  }

  .word-table td {
    padding: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .word-table td:nth-child(5) {
    flex: 0 0 100%;
    order: 1;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .word-table .word-english-cell {
    color: var(--text) !important;
    font-size: 23px !important;
    font-weight: 850;
    line-height: 1.15;
  }

  .word-english-audio {
    gap: 18px;
  }

  .word-audio-button {
    min-width: 54px;
    min-height: 38px;
    padding: 6px 12px;
    font-size: 14px;
  }

  .word-table td:nth-child(6) {
    flex: 0 0 100%;
    order: 2;
    color: #34443b;
    font-size: 16px;
    line-height: 1.55;
  }

  .word-table td:nth-child(-n + 4) {
    display: none;
  }

  .download-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .download-button {
    min-width: 0;
    width: 100%;
  }

  .post-card img {
    aspect-ratio: 16 / 10;
  }

}

@media (max-width: 520px) {
  h1 {
    font-size: 26px;
    line-height: 1.12;
    word-break: break-all;
  }

  .summary,
  .post-copy p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero,
  .list-hero,
  .book-library,
  .home-wechat,
  .content-section,
  .bottom-qr {
    max-width: 100%;
    min-width: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-head span {
    max-width: 100%;
  }

  .book-cover-grid {
    grid-template-columns: 1fr;
  }

  .dictionary-cover-grid,
  .dictionary-page-grid {
    grid-template-columns: 1fr;
  }

  .book-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .words-total strong {
    font-size: 26px;
  }

  .word-table th,
  .word-table td {
    padding: 11px 12px;
  }
}

/* 2026-07 simplified visual system */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --text: #10261d;
  --muted: #607169;
  --line: #d8e8de;
  --green: #079766;
  --green-dark: #027a52;
  --soft: #f3faf6;
}

body {
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a,
button,
input,
select {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(7, 151, 102, 0.2);
  outline-offset: 2px;
}

.site-header {
  min-height: 64px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid #e3ece6;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.site-nav {
  align-self: stretch;
  gap: clamp(18px, 3vw, 38px);
}

.site-tool-link {
  position: relative;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #34453d;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
}

.site-tool-link:hover,
.site-tool-link[aria-current="page"] {
  color: var(--green-dark);
  background: transparent;
}

.site-tool-link[aria-current="page"] {
  font-weight: 700;
}

.site-tool-link[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
}

.page {
  width: min(1080px, calc(100% - 40px));
  padding: 34px 0 56px;
}

.home-shell {
  gap: 42px;
}

.section-head {
  align-items: center;
  margin-bottom: 20px;
}

.section-head h1,
.section-head h2 {
  color: var(--text);
  font-size: 28px;
  line-height: 1.25;
}

.section-head span {
  font-size: 14px;
}

.book-library,
.dictionary-library {
  gap: 22px;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
}

.book-filters {
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.book-filter {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.book-filter:hover,
.book-filter.is-active {
  border-color: var(--green);
  color: var(--green-dark);
  background: transparent;
}

.book-cover-grid,
.dictionary-cover-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
}

.book-cover-card a,
.dictionary-cover-card a {
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.book-cover-card a:hover,
.dictionary-cover-card a:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-3px);
}

.book-cover-card img,
.dictionary-cover-card img {
  border-color: #dce8df;
  border-radius: 4px;
}

.book-cover-card strong {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.book-cover-card em {
  font-size: 12px;
}

.book-grade {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.home-wechat {
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 36px;
  padding: 32px clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-right: 0;
  border-left: 0;
  background: #f5fbf7;
}

.home-wechat h2 {
  font-size: 26px;
}

.home-wechat img {
  width: 172px;
  border-radius: 4px;
}

.page-actions {
  position: static;
  gap: 8px 18px;
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.page-actions a,
.page-actions button {
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.page-actions a:not(:last-child)::after {
  margin-left: 18px;
  color: #a5b2aa;
  content: "/";
}

.page-actions a:first-child {
  color: var(--green-dark);
}

.page-actions a:hover,
.page-actions button:hover {
  color: var(--green-dark);
}

.book-list-hero {
  gap: 8px;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.book-list-hero h1 {
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.25;
}

.crumb {
  margin-bottom: 8px;
  font-weight: 550;
}

.summary {
  font-size: 15px;
  line-height: 1.7;
}

.content-section.unit-list-section {
  gap: 0;
  margin-top: 0;
  padding: 28px 0 0;
  border: 0;
  border-radius: 0;
}

.unit-list-card {
  grid-template-columns: 220px minmax(0, 1fr) 18px;
  gap: 26px;
  min-height: 142px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.unit-list-card::after {
  align-self: center;
  color: var(--green);
  font-size: 28px;
  font-weight: 300;
  content: "›";
}

.unit-list-card:hover {
  border-color: var(--line);
  background: #f6fbf8;
  box-shadow: none;
}

.unit-list-image img {
  aspect-ratio: 16 / 9;
  border: 1px solid #e0eae3;
  border-radius: 4px;
}

.unit-list-card > span:nth-child(2) {
  min-width: 0;
  align-self: center;
}

.unit-list-card strong {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.3;
}

.unit-list-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.unit-list-card .article-tags,
.unit-list-card .post-link {
  display: none;
}

.article {
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.hero.unit-hero {
  gap: 10px;
  padding: 0 0 26px;
  border-bottom: 0;
}

.unit-hero h1,
.dictionary-detail-hero h1 {
  max-width: none;
  margin-bottom: 7px;
  font-size: 38px;
  line-height: 1.22;
}

.unit-hero .article-tags {
  display: none;
}

.detail-nav {
  position: sticky;
  top: 64px;
  z-index: 15;
  display: flex;
  gap: 34px;
  padding: 0 0 1px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.detail-nav a {
  min-height: 45px;
  padding: 11px 0 9px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.detail-nav a:hover,
.detail-nav a.is-active {
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
}

.content-section {
  padding: 30px 0;
  border-bottom-color: var(--line);
}

.content-section h2,
.bottom-qr h2 {
  font-size: 25px;
}

.download-cta {
  gap: 16px;
  margin: 0 0 28px;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.download-cta strong {
  margin-bottom: 2px;
  font-size: 16px;
}

.download-cta span {
  font-size: 13px;
}

.download-button {
  min-width: auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.download-button:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

.book-grid {
  gap: 22px;
}

figure,
.dictionary-page-shot {
  border-color: #dce7df;
  border-radius: 4px;
}

figcaption {
  display: none;
}

.read-video-section {
  background: #fbfefc;
}

.read-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.read-video-card {
  border-radius: 5px;
}

.sound-word-list {
  gap: 10px;
}

.sound-word-card {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  min-height: 104px;
  border-radius: 5px;
  background: #fff;
}

.sound-word-card b {
  color: #1d70bd;
}

.sound-button,
.unit-audio-button {
  border-radius: 5px;
}

.dictionary-detail-hero {
  min-height: 0;
}

.dictionary-english-title {
  margin: -2px 0 6px;
  color: #33463d;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dictionary-page-grid {
  gap: 22px;
}

.words-shell {
  width: min(1080px, calc(100% - 40px));
}

.words-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.words-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.words-hero h1 {
  margin-bottom: 8px;
  font-size: 38px;
}

.words-hero p {
  font-size: 15px;
  line-height: 1.65;
}

.words-total {
  min-width: 130px;
  gap: 3px;
  padding: 10px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.words-total strong {
  font-size: 24px;
}

.word-filters {
  gap: 16px;
  padding: 24px 0;
}

.word-filters select,
.word-filters input {
  border-radius: 5px;
}

.word-result-head {
  padding: 14px 0;
  background: transparent;
}

.word-table th {
  background: #f4faf6;
}

.word-table tbody tr:hover {
  background: #f8fcf9;
}

.download-dialog {
  width: min(380px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 38, 29, 0.16);
}

.download-dialog img {
  width: min(230px, 100%);
  border-radius: 4px;
}

.download-dialog h2 {
  font-size: 22px;
}

.read-video-dialog {
  border-radius: 8px;
}

.read-video-limit-view img {
  width: min(230px, 66vw);
  border-radius: 4px;
}

.footer {
  border-top: 1px solid #edf2ee;
  font-size: 13px;
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 14px 20px 0;
  }

  .brand {
    min-height: 44px;
    font-size: 22px;
  }

  .site-nav {
    width: 100%;
    min-height: 49px;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
  }

  .site-tool-link {
    min-height: 49px;
    flex: 0 0 auto;
    font-size: 14px;
  }

  .page,
  .words-shell {
    width: min(100% - 28px, 680px);
    padding: 24px 0 44px;
  }

  .book-cover-grid,
  .dictionary-cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .book-list-hero h1,
  .unit-hero h1,
  .dictionary-detail-hero h1,
  .words-hero h1 {
    font-size: 30px;
  }

  .unit-list-card {
    grid-template-columns: 150px minmax(0, 1fr) 16px;
    gap: 18px;
    min-height: 112px;
  }

  .unit-list-card strong {
    font-size: 18px;
  }

  .detail-nav {
    top: 0;
  }

  .read-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-cta {
    align-items: center;
    flex-direction: row;
    padding: 14px 0;
  }

  .download-button {
    width: auto;
  }

  .words-hero,
  .word-filters {
    grid-template-columns: 1fr;
  }

  .words-total {
    width: fit-content;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .word-search {
    grid-column: auto;
  }

  .word-table-wrap {
    padding: 12px 0;
    background: transparent;
  }

  .word-table tr {
    border-radius: 5px;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-tool-link {
    font-size: 14px;
  }

  .page,
  .words-shell {
    width: calc(100% - 32px);
    padding-top: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }

  .section-head h1,
  .section-head h2 {
    font-size: 24px;
  }

  .book-cover-grid,
  .dictionary-cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .book-library,
  .dictionary-library,
  .home-wechat,
  .content-section,
  .bottom-qr {
    padding-right: 0;
    padding-left: 0;
  }

  .book-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .book-filter {
    flex: 0 0 auto;
    padding-inline: 12px;
    font-size: 14px;
  }

  .home-wechat {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 16px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 24px 16px;
  }

  .home-wechat h2 {
    font-size: 20px;
  }

  .home-wechat p {
    font-size: 13px;
    line-height: 1.65;
  }

  .home-wechat img {
    width: 104px;
  }

  .page-actions {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
  }

  .page-actions a,
  .page-actions button {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .page-actions a:not(:last-child)::after {
    margin-left: 12px;
  }

  .book-list-hero {
    padding-bottom: 20px;
  }

  .book-list-hero h1,
  .unit-hero h1,
  .dictionary-detail-hero h1,
  .words-hero h1 {
    margin-bottom: 6px;
    font-size: 26px;
    line-height: 1.25;
    word-break: normal;
  }

  .summary {
    font-size: 14px;
    word-break: normal;
  }

  .content-section.unit-list-section {
    padding-top: 22px;
  }

  .unit-list-card {
    grid-template-columns: 112px minmax(0, 1fr) 12px;
    gap: 12px;
    min-height: 92px;
    padding: 12px 0;
  }

  .unit-list-card strong {
    margin-bottom: 5px;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .unit-list-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .unit-list-card::after {
    font-size: 22px;
  }

  .hero.unit-hero {
    padding-bottom: 16px;
  }

  .detail-nav {
    justify-content: space-between;
    gap: 18px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 1px;
  }

  .detail-nav a {
    font-size: 14px;
  }

  .content-section {
    padding: 22px 0;
  }

  .content-section h2 {
    font-size: 22px;
  }

  .download-cta {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 22px;
  }

  .download-cta span {
    display: none;
  }

  .download-cta strong {
    margin: 0;
    font-size: 14px;
  }

  .download-button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .book-grid,
  .dictionary-page-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .read-video-grid {
    grid-template-columns: 1fr;
  }

  .sound-word-list {
    grid-template-columns: 1fr;
  }

  .sound-word-card {
    min-height: 92px;
  }

  .dictionary-english-title {
    font-size: 16px;
  }

  .words-hero {
    gap: 12px;
    padding-bottom: 20px;
  }

  .words-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0 0;
  }

  .word-filters {
    gap: 12px;
    padding: 18px 0;
  }

  .word-result-head {
    align-items: center;
    flex-direction: row;
    padding: 12px 0;
  }

  .download-modal {
    align-items: end;
    padding: 0;
  }

  .download-dialog {
    width: 100%;
    max-height: 90dvh;
    overflow: auto;
    padding: 24px 20px max(24px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 8px 8px 0 0;
  }

  .read-video-modal {
    align-items: end;
    padding: 0;
  }

  .read-video-dialog {
    width: 100%;
    max-height: 92dvh;
    padding: 22px 16px max(22px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 8px 8px 0 0;
  }

  .footer {
    gap: 7px 12px;
    padding: 22px 16px;
  }
}
