:root {
  --vocab-paper: #ffffff;
  --vocab-paper-deep: #f5f6f5;
  --vocab-ink: #10231e;
  --vocab-muted: #5f6b67;
  --vocab-green: #173f35;
  --vocab-green-dark: #102f28;
  --vocab-mint: #dce9e2;
  --vocab-coral: #dd5a43;
  --vocab-coral-dark: #bf4835;
  --vocab-line: rgba(16, 35, 30, 0.14);
  --vocab-white: #ffffff;
  --vocab-cream: #fff7ec;
  --vocab-green-soft: #b9cdc6;
  --vocab-radius-control: 14px;
  --vocab-radius-card: 20px;
  --vocab-radius-feature: 28px;
  --vocab-serif: Iowan Old Style, Baskerville, "Times New Roman", "Songti SC", "STSong", serif;
  --vocab-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Phosphor";
  src: url("./assets/vendor/phosphor/fonts/Phosphor.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

.vocabulary-modern {
  min-width: 320px;
  overflow-x: clip;
  color: var(--vocab-ink);
  background: var(--vocab-paper);
  font-family: var(--vocab-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.vocabulary-modern *,
.vocabulary-modern *::before,
.vocabulary-modern *::after { box-sizing: border-box; }
.vocabulary-modern [hidden] { display: none !important; }
.vocabulary-modern a { color: inherit; text-decoration: none; }
.vocabulary-modern button,
.vocabulary-modern input,
.vocabulary-modern select { font: inherit; }
.vocabulary-modern button { color: inherit; }
.vocabulary-modern :focus-visible { outline: 3px solid rgba(221, 90, 67, 0.46); outline-offset: 3px; }
.vocabulary-modern.is-locked { overflow: hidden; }
.vocabulary-modern.multipage-site[data-page="vocabulary"] main { padding-top: 86px; background: var(--vocab-paper); }

.vocabulary-modern .ph {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Phosphor" !important;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  vertical-align: -0.125em;
}
.vocabulary-modern .ph-arrow-right::before { content: "\e06c"; }
.vocabulary-modern .ph-caret-down::before { content: "\e136"; }
.vocabulary-modern .ph-magnifying-glass::before { content: "\e30c"; }
.vocabulary-modern .ph-speaker-high::before { content: "\e44a"; }

.vocab-shell {
  width: min(1240px, calc(100% - 96px));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

/* Fixed product navigation */
.vocab-header {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.vocab-header.is-scrolled {
  border-color: var(--vocab-line);
  box-shadow: 0 12px 32px rgba(25, 38, 34, 0.07);
}
.vocab-header__inner {
  display: grid;
  min-height: 86px;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
}
.vocab-logo {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  font-size: 29px;
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}
.vocab-logo img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}
.vocab-header__nav,
.vocab-header__actions { display: flex; align-items: center; }
.vocabulary-modern .vocab-header__nav { gap: clamp(30px, 2.4vw, 36px); }
.vocab-header__actions { gap: 31px; }
.vocab-header__nav > a,
.vocab-more > a,
.vocab-sign-in,
.vocab-more > button {
  position: relative;
  padding: 10px 0;
  border: 0;
  color: var(--vocab-ink);
  cursor: pointer;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.vocab-header__nav > a::after,
.vocab-more > a::after,
.vocab-sign-in::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--vocab-coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.vocab-header__nav > a[aria-current="page"]::after,
.vocab-header__nav > a:hover::after,
.vocab-header__nav > a:focus-visible::after,
.vocab-more > a:hover::after,
.vocab-more > a:focus-visible::after,
.vocab-sign-in:hover::after,
.vocab-sign-in:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.vocab-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1px solid var(--vocab-green);
  border-radius: 999px;
  color: #fff !important;
  background: var(--vocab-green);
  box-shadow: 0 12px 26px rgba(23, 63, 53, 0.17);
  font-size: 14px;
  font-weight: 680;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.vocab-button:hover,
.vocab-button:focus-visible {
  background: var(--vocab-green-dark);
  box-shadow: 0 16px 32px rgba(23, 63, 53, 0.24);
  transform: translateY(-2px);
}
.vocab-button--header { min-height: 46px; padding-inline: 22px; }
.vocab-more { position: relative; display: flex; align-items: center; }
.vocab-more > button { display: inline-flex; width: 25px; align-items: center; justify-content: center; margin-left: 0; padding-inline: 0; }
.vocab-more > button span { font-size: 16px; transition: transform 180ms ease; }
.vocab-more > button[aria-expanded="true"] span { transform: rotate(180deg); }
.vocab-more__menu,
.vocabulary-more-actions > div {
  position: absolute;
  z-index: 100;
  display: grid;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--vocab-line);
  border-radius: 14px;
  background: var(--vocab-white);
  box-shadow: 0 24px 64px rgba(18, 37, 32, 0.16);
}
.vocab-more__menu { top: calc(100% + 9px); left: -18px; min-width: 340px; }
.vocab-more__menu a,
.vocabulary-more-actions > div a { padding: 12px 13px; border-radius: 14px; font-size: 14px; font-weight: 580; }
.vocab-more__menu a { display: grid; gap: 3px; }
.vocab-more__menu a strong { font-size: 14px; font-weight: 700; }
.vocab-more__menu a small { color: var(--vocab-muted); font-size: 11px; font-weight: 460; line-height: 1.45; }
.vocab-more__menu a:hover,
.vocab-more__menu a:focus-visible,
.vocabulary-more-actions > div a:hover,
.vocabulary-more-actions > div a:focus-visible { color: var(--vocab-green); background: #edf3ef; }
.vocab-menu,
.vocab-mobile-nav { display: none; }

/* Fixed secondary HSK navigation */
.vocab-level-dock {
  position: sticky;
  z-index: 70;
  top: 86px;
  border-block: 1px solid var(--vocab-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}
.vocab-level-dock__inner {
  display: grid;
  min-height: 54px;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 34px;
}
.vocab-level-dock__label {
  display: flex;
  align-items: center;
  color: #5f6965;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.vocabulary-level-browser {
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  align-items: stretch;
  scroll-padding-inline: 24px;
}
.vocabulary-level-browser a {
  position: relative;
  display: grid;
  min-height: 54px;
  place-items: center;
  color: #5d6864;
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}
.vocabulary-level-browser a::after {
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  content: "";
  background: transparent;
}
.vocabulary-level-browser a:hover,
.vocabulary-level-browser a:focus-visible { color: var(--vocab-green); background: rgba(217, 233, 222, 0.45); }
.vocabulary-level-browser a[aria-current="location"] { color: var(--vocab-coral-dark); }
.vocabulary-level-browser a[aria-current="location"]::after { background: var(--vocab-coral); }

/* Editorial hero */
.vocabulary-page-hero {
  position: relative;
  padding-block: clamp(72px, 8vw, 112px) 0;
}
.vocabulary-page-hero::before {
  position: absolute;
  z-index: -1;
  top: 16%;
  left: -16%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(217, 233, 222, 0.82), rgba(217, 233, 222, 0) 68%);
}
.vocabulary-breadcrumb {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.vocabulary-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(370px, 0.72fr);
  align-items: center;
  gap: clamp(64px, 9vw, 132px);
  min-width: 0;
  margin-top: 0;
  padding: 0 0 clamp(64px, 7vw, 88px);
  border: 0;
  border-bottom: 1px solid var(--vocab-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.vocabulary-page-hero__copy,
.vocabulary-progress { min-width: 0; }
.vocabulary-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vocabulary-hero-brand > img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}
.vocabulary-page-hero__copy .kicker,
.micro-label {
  color: var(--vocab-coral-dark);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.vocabulary-page-hero h1 {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--vocab-ink);
  font-family: var(--vocab-serif);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.064em;
  line-height: 0.9;
}
.vocabulary-page-hero__copy > p {
  max-width: 610px;
  margin: 27px 0 0;
  color: #4f5f5a;
  font-size: 17px;
  letter-spacing: -0.012em;
  line-height: 1.7;
}
.vocabulary-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 38px;
}
.vocabulary-hero-proof span {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #5d6965;
  font-size: 12px;
}
.vocabulary-hero-proof span + span::before {
  position: absolute;
  top: 50%;
  left: -16px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: var(--vocab-coral);
}
.vocabulary-hero-proof strong { color: var(--vocab-ink); font-size: 13px; font-weight: 740; }

.vocabulary-progress {
  position: relative;
  overflow: hidden;
  padding: 31px 32px 29px;
  border-radius: var(--vocab-radius-card);
  color: var(--vocab-cream);
  background: var(--vocab-green);
  box-shadow: 0 18px 48px rgba(23, 63, 53, 0.13);
}
.vocabulary-progress::after {
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 56px rgba(255, 255, 255, 0.025);
}
.vocabulary-progress__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--vocab-green-soft);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.vocabulary-progress__top strong {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--vocab-cream);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.vocabulary-progress__count {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 13px;
  margin-top: 27px;
}
.vocabulary-progress__count > strong {
  color: var(--vocab-cream);
  font-family: var(--vocab-serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.8;
}
.vocabulary-progress__count > span { color: #cedbd6; font-size: 13px; }
.vocabulary-progress__track {
  position: relative;
  z-index: 1;
  display: block;
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.vocabulary-progress__track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #f08b73;
  transition: width 280ms ease;
}
.vocabulary-progress__steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}
.vocabulary-progress__steps li {
  display: grid;
  min-height: 38px;
  grid-template-columns: 35px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4ece8;
  font-size: 13px;
}
.vocabulary-progress__steps li span { color: #ffad99; font-size: 10px; font-weight: 760; letter-spacing: 0.1em; }
.vocabulary-progress button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: var(--vocab-cream);
  cursor: pointer;
  background: transparent;
  font-size: 13px;
  font-weight: 670;
}
.vocabulary-progress button .ph { color: #ffad99; transition: transform 160ms ease; }
.vocabulary-progress button:hover .ph { transform: translateX(4px); }

/* Search and active learning canvas */
.vocabulary-section {
  padding: 0 0 clamp(80px, 9vw, 128px);
  background: var(--vocab-white);
}
.vocabulary-studio {
  min-width: 0;
  overflow: visible;
  padding-top: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.vocabulary-editorial-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.vocabulary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}
.vocabulary-toolbar.vocabulary-toolbar--search-only > label {
  position: relative;
  display: block;
  width: min(100%, 690px);
  min-width: 0;
  flex: 0 1 690px;
}
.vocabulary-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 21px;
  color: #5d6864;
  pointer-events: none;
  font-size: 20px;
  transform: translateY(-50%);
}
.vocabulary-toolbar input {
  width: 100%;
  min-height: 62px;
  padding: 12px 70px 12px 56px;
  border: 1px solid var(--vocab-line);
  border-radius: 999px;
  color: var(--vocab-ink);
  background: #fff;
  box-shadow: 0 12px 32px rgba(32, 53, 47, 0.06);
  font-size: 14px;
  outline: 0;
}
.vocabulary-toolbar input::placeholder { color: #7b837f; opacity: 1; }
.vocabulary-toolbar input:focus { border-color: rgba(23, 63, 53, 0.48); box-shadow: 0 0 0 5px rgba(23, 63, 53, 0.08), 0 15px 36px rgba(32, 53, 47, 0.08); }
.vocabulary-toolbar kbd {
  position: absolute;
  top: 50%;
  right: 17px;
  padding: 5px 9px;
  border: 1px solid var(--vocab-line);
  border-radius: 14px;
  color: #626d69;
  background: var(--vocab-paper);
  font-family: inherit;
  font-size: 11px;
  transform: translateY(-50%);
}
.vocabulary-toolbar__count {
  display: grid;
  min-width: 110px;
  gap: 2px;
  color: #626d69;
  text-align: right;
}
.vocabulary-toolbar__count strong { color: var(--vocab-ink); font-family: var(--vocab-serif); font-size: 30px; font-weight: 500; line-height: 1; }
.vocabulary-toolbar__count small { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.vocabulary-workspace {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 35px;
}
.vocabulary-detail {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 0;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.35fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--vocab-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(23, 52, 44, 0.075);
}
.vocabulary-modern[data-vocabulary-ready="loading"] .vocabulary-detail {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 48%, rgba(220, 233, 226, 0.9), transparent 24%),
    linear-gradient(135deg, #f7f9f7, #ffffff 54%, #fff7f2);
}
.vocabulary-modern[data-vocabulary-ready="loading"] .vocabulary-detail > * { opacity: 0; }
.vocabulary-modern[data-vocabulary-ready="loading"] .vocabulary-detail::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(320px, calc(100% - 48px));
  padding-top: 49px;
  color: var(--vocab-green);
  content: "Preparing your vocabulary workspace";
  font-family: var(--vocab-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transform: translate(-50%, -50%);
}
.vocabulary-modern[data-vocabulary-ready="loading"] .vocabulary-detail::after {
  position: absolute;
  z-index: 3;
  top: calc(50% - 34px);
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 63, 53, 0.16);
  border-top-color: var(--vocab-coral);
  border-radius: 50%;
  content: "";
  animation: vocabulary-loading-spin 760ms linear infinite;
  transform: translateX(-50%);
}
@keyframes vocabulary-loading-spin {
  from { transform: translateX(-50%) rotate(0); }
  to { transform: translateX(-50%) rotate(1turn); }
}
.vocabulary-word-card {
  position: relative;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  padding: 32px 40px 34px;
  color: #fff;
  background: var(--vocab-green);
  text-align: center;
}
.vocabulary-word-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 84px rgba(255, 255, 255, 0.018);
  transform: translate(-50%, -48%);
}
.vocabulary-detail__meta {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  color: var(--vocab-green-soft);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vocabulary-detail__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}
.vocabulary-detail__word { display: grid; place-items: center; }
.vocabulary-detail__word > strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--vocab-cream);
  font-family: "Songti SC", "STSong", var(--vocab-serif);
  font-size: clamp(104px, 10vw, 158px);
  font-weight: 500;
  letter-spacing: -0.1em;
  line-height: 0.86;
  text-shadow: 0 12px 34px rgba(5, 22, 17, 0.22);
}
.vocabulary-detail__word > strong.is-medium-word { font-size: clamp(78px, 7vw, 112px); letter-spacing: -0.08em; }
.vocabulary-detail__word > strong.is-long-word { font-size: clamp(58px, 5.4vw, 86px); letter-spacing: -0.07em; }
.vocabulary-detail__reading { display: grid; gap: 5px; margin-top: 24px; }
.vocabulary-detail__reading > span { color: var(--vocab-cream); font-size: 21px; font-weight: 580; }
.vocabulary-detail__reading small { color: #ffad99; font-size: 10px; font-weight: 760; letter-spacing: 0.14em; text-transform: uppercase; }
.vocabulary-word-card > h2 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 5px 0 0;
  color: #e4ece8;
  font-size: 17px;
  font-weight: 540;
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.vocabulary-listen {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 0 17px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--vocab-cream);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 650;
  transition: background 160ms ease, transform 160ms ease;
}
.vocabulary-listen:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.vocabulary-listen__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: var(--vocab-green); background: var(--vocab-cream); font-size: 20px; }
.vocabulary-listen:disabled { cursor: default; opacity: 0.4; }
.vocabulary-usage { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 13px; color: #c5d4cf; font-size: 11px; }
.vocabulary-usage select { max-width: 230px; min-height: 34px; padding: 5px 28px 5px 10px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; color: #fff; background: var(--vocab-green-dark); font-size: 10px; }

.vocabulary-context {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5.4vw, 72px) clamp(42px, 6vw, 82px);
  background: #fff;
}
.vocabulary-context__heading { display: flex; align-items: center; justify-content: space-between; }
.vocabulary-context__heading > span:last-child { color: #626d69; font-family: var(--vocab-serif); font-size: 14px; font-style: italic; }
.vocabulary-example { display: grid; gap: 8px; margin-top: 28px; }
.vocabulary-example > strong {
  color: var(--vocab-ink);
  font-family: "Songti SC", "STSong", var(--vocab-serif);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.16;
}
.vocabulary-target-word { padding: 0 2px 3px; color: var(--vocab-coral-dark); background: transparent; box-shadow: inset 0 -2px rgba(221, 90, 67, 0.28); }
.vocabulary-example__pinyin { color: #5f6c67; font-size: 14px; }
.vocabulary-example__translation,
.vocabulary-example__translation > span,
.vocabulary-example__translation > span:last-child { display: block; color: var(--vocab-ink); font-size: 17px; font-weight: 610; }
.vocabulary-usage-note {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 22px;
  margin-top: 29px;
  padding: 24px 0;
  border-block: 1px solid var(--vocab-line);
}
.vocabulary-usage-note > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--vocab-green);
  background: var(--vocab-mint);
  font-family: var(--vocab-serif);
  font-size: 12px;
  font-style: italic;
}
.vocabulary-usage-note h3 { margin: 0; color: var(--vocab-ink); font-size: 13px; font-weight: 720; }
.vocabulary-usage-note p { max-width: 560px; margin: 6px 0 0; color: var(--vocab-muted); font-size: 14px; line-height: 1.65; }
.vocabulary-stroke-preview {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  margin-top: 23px;
}
.vocabulary-stroke-preview > div:first-child { display: grid; gap: 2px; }
.vocabulary-stroke-preview strong { color: var(--vocab-ink); font-size: 12px; font-weight: 720; }
.vocabulary-stroke-preview span { color: #65716d; font-size: 11px; }
.vocabulary-stroke-preview__characters { display: flex; }
.vocabulary-stroke-preview__characters span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--vocab-line); border-right: 0; color: var(--vocab-ink); background: var(--vocab-paper); font-family: "Songti SC", "STSong", serif; font-size: 19px; }
.vocabulary-stroke-preview__characters span:first-child { border-radius: 14px 0 0 8px; color: #b8c0bc; }
.vocabulary-stroke-preview__characters span:last-child { border-right: 1px solid var(--vocab-line); border-radius: 0 8px 8px 0; }
.vocabulary-stroke-preview > a { grid-column: 1 / -1; display: inline-flex; width: max-content; align-items: center; gap: 8px; color: var(--vocab-coral-dark); font-size: 11px; font-weight: 700; }
.vocabulary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
.vocabulary-action--primary { min-height: 50px; }
.vocabulary-more-actions { position: relative; }
.vocabulary-more-actions > button { display: inline-flex; min-height: 50px; align-items: center; gap: 12px; padding: 0 19px; border: 1px solid var(--vocab-line); border-radius: 999px; color: var(--vocab-ink); cursor: pointer; background: #fff; font-size: 12px; font-weight: 650; }
.vocabulary-more-actions > div { top: calc(100% + 8px); left: 0; }

/* Airy vocabulary library */
.vocabulary-list { margin-top: clamp(72px, 8vw, 108px); }
.vocabulary-list__heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.vocabulary-list__heading > div { display: grid; gap: 7px; }
.vocabulary-list__heading h2 { margin: 0; color: var(--vocab-ink); font-family: var(--vocab-serif); font-size: clamp(38px, 4vw, 54px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.vocabulary-list__heading p,
.vocabulary-list__heading > strong { margin: 0; color: #5f6b67; font-size: 12px; font-weight: 520; }
.vocabulary-list__heading p strong { color: inherit; }
.vocabulary-table-head { display: none; }
.vocabulary-list [role="listbox"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vocabulary-list [role="option"] {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 124px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: baseline;
  gap: 4px 14px;
  padding: 22px 24px;
  border: 1px solid var(--vocab-line);
  border-radius: 20px;
  color: var(--vocab-ink);
  cursor: pointer;
  background: #fff;
  box-shadow: 0 9px 26px rgba(29, 50, 44, 0.025);
  text-align: left;
  transition: border-color 170ms ease, background 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}
.vocabulary-list [role="option"]:hover,
.vocabulary-list [role="option"]:focus-visible { border-color: rgba(23, 63, 53, 0.28); background: #fcfdfb; box-shadow: 0 16px 34px rgba(29, 50, 44, 0.08); transform: translateY(-3px); }
.vocabulary-list [role="option"].is-active { border-color: rgba(221, 90, 67, 0.45); background: #fff8f1; box-shadow: inset 3px 0 var(--vocab-coral), 0 12px 28px rgba(58, 48, 39, 0.045); }
.vocabulary-list [role="option"].is-active .vocabulary-row__pinyin,
.vocabulary-list [role="option"].is-active .vocabulary-row__meaning { color: var(--vocab-coral-dark); }
.vocabulary-row__word { grid-column: 1; grid-row: 1; color: var(--vocab-ink); font-family: "Songti SC", "STSong", serif; font-size: 28px; font-weight: 520; line-height: 1.1; }
.vocabulary-row__pinyin { grid-column: 2; grid-row: 1; overflow: hidden; color: #53625d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vocabulary-row__meaning { grid-column: 1 / span 2; grid-row: 2; overflow: hidden; color: #5d6965; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.vocabulary-row__pos { display: none; }
.vocabulary-row__arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--vocab-coral); font-size: 19px; transition: transform 160ms ease; }
.vocabulary-list [role="option"]:hover .vocabulary-row__arrow { transform: translateX(4px); }
.vocabulary-empty { padding: 52px 20px; border: 1px dashed var(--vocab-line); border-radius: 20px; color: var(--vocab-muted); text-align: center; }
.vocabulary-list-footer { display: flex; min-height: 78px; align-items: center; justify-content: center; }
.vocabulary-pagination { display: flex; align-items: center; gap: 12px; margin: 0 auto; }
.vocabulary-pagination span { min-width: 124px; color: #5f6b67; font-size: 12px; text-align: center; }
.vocabulary-pagination button { min-height: 40px; padding: 0 15px; border: 1px solid var(--vocab-line); border-radius: 999px; color: var(--vocab-green); cursor: pointer; background: #fff; font-size: 11px; font-weight: 680; }
.vocabulary-pagination button:hover:not(:disabled) { color: #fff; background: var(--vocab-green); }
.vocabulary-pagination button:disabled { color: #b5bdb9; cursor: default; opacity: 0.65; }
.vocabulary-facts { display: none; }

@media (max-width: 1060px) {
  .vocab-shell { width: calc(100% - 56px); }
  .vocab-header__inner { grid-template-columns: 128px 1fr auto; }
  .vocabulary-modern .vocab-header__nav { gap: 22px; }
  .vocabulary-page-hero__grid { gap: 52px; }
  .vocabulary-detail { grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.2fr); }
  .vocabulary-context { padding-inline: 42px; }
}

@media (max-width: 900px) {
  .vocab-shell,
  .vocab-mobile-nav { width: calc(100% - 40px); }
  .vocab-header__inner { min-height: 74px; grid-template-columns: 1fr auto; }
  .vocabulary-modern.multipage-site[data-page="vocabulary"] main { padding-top: 74px; }
  .vocab-header__nav,
  .vocab-sign-in,
  .vocab-button--header { display: none; }
  .vocab-header__actions { gap: 0; }
  .vocab-logo { font-size: 27px; }
  .vocab-logo img { width: 31px; height: 31px; flex-basis: 31px; }
  .vocab-header__actions .vocab-menu { display: grid; width: 48px; height: 48px; place-content: center; gap: 5px; padding: 0; border: 1px solid var(--vocab-line); border-radius: 50%; background: var(--vocab-white); }
  .vocab-menu span { display: block; width: 19px; height: 1.5px; border-radius: 2px; background: var(--vocab-ink); transition: transform 180ms ease, opacity 180ms ease; }
  .vocab-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .vocab-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .vocab-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .vocab-mobile-nav { margin: 0 auto; padding: 12px 0 24px; border-top: 1px solid var(--vocab-line); }
  .vocab-mobile-nav:not([hidden]) { display: grid; }
  .vocab-mobile-nav > a:not(.vocab-button) { padding: 13px 0; border-bottom: 1px solid var(--vocab-line); font-size: 16px; font-weight: 620; }
  .vocab-mobile-nav > a.vocab-mobile-subitem { padding-left: 18px; color: var(--vocab-coral-dark); font-size: 15px; }
  .vocab-mobile-nav .vocab-button { margin-top: 17px; }
  .vocab-level-dock { top: 74px; }
  .vocab-level-dock__inner {
    display: block;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    min-height: 52px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .vocab-level-dock__inner::-webkit-scrollbar { display: none; }
  .vocab-level-dock__label { display: none; }
  .vocabulary-level-browser { display: flex; width: max-content; min-width: 100%; }
  .vocabulary-level-browser a { width: 86px; min-height: 52px; flex: 0 0 86px; scroll-snap-align: center; }
  .vocabulary-page-hero { padding-block: 52px 68px; }
  .vocabulary-page-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .vocabulary-page-hero h1 { font-size: clamp(62px, 12vw, 88px); }
  .vocabulary-progress { max-width: 560px; }
  .vocabulary-detail { grid-template-columns: 1fr; }
  .vocabulary-word-card { min-height: 490px; }
  .vocabulary-list [role="listbox"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .vocab-shell,
  .vocab-mobile-nav { width: calc(100% - 32px); }
  .vocab-level-dock__inner {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }
  .vocabulary-page-hero { padding-block: 42px 54px; }
  .vocabulary-page-hero__grid {
    gap: 38px;
    padding: 0 0 42px;
    border-radius: 0;
  }
  .vocabulary-page-hero h1 { font-size: clamp(43px, 12.5vw, 52px); }
  .vocabulary-page-hero__copy > p { margin-top: 21px; font-size: 15px; }
  .vocabulary-hero-proof { gap: 9px 20px; margin-top: 28px; }
  .vocabulary-hero-proof span + span::before { left: -11px; }
  .vocabulary-hero-brand { gap: 10px; }
  .vocabulary-hero-brand > img { width: 44px; height: 44px; flex-basis: 44px; }
  .vocabulary-progress { width: 100%; padding: 27px 25px 25px; border-radius: var(--vocab-radius-card); }
  .vocabulary-toolbar { align-items: stretch; flex-direction: column; gap: 13px; }
  .vocabulary-toolbar.vocabulary-toolbar--search-only > label { width: 100%; flex: none; }
  .vocabulary-toolbar__count { display: none; }
  .vocabulary-toolbar kbd { display: none; }
  .vocabulary-toolbar input { min-height: 56px; padding-right: 22px; }
  .vocabulary-workspace { margin-top: 25px; }
  .vocabulary-detail { border-radius: 20px; }
  .vocabulary-word-card { min-height: 430px; padding: 27px 24px 28px; }
  .vocabulary-detail__word > strong { font-size: 114px; }
  .vocabulary-detail__word > strong.is-medium-word { font-size: 82px; }
  .vocabulary-detail__word > strong.is-long-word { font-size: 62px; }
  .vocabulary-context { padding: 38px 25px 40px; }
  .vocabulary-example { margin-top: 21px; }
  .vocabulary-example > strong { font-size: 36px; }
  .vocabulary-usage-note { grid-template-columns: 45px 1fr; gap: 15px; }
  .vocabulary-usage-note > span { width: 42px; height: 42px; }
  .vocabulary-stroke-preview { grid-template-columns: 1fr; }
  .vocabulary-stroke-preview__characters,
  .vocabulary-stroke-preview > a { grid-column: 1; }
  .vocabulary-actions { align-items: stretch; flex-direction: column; }
  .vocabulary-actions .vocab-button,
  .vocabulary-more-actions,
  .vocabulary-more-actions > button { width: 100%; }
  .vocabulary-more-actions > button { justify-content: center; }
  .vocabulary-more-actions > div { right: 0; left: 0; }
  .vocabulary-list { margin-top: 72px; }
  .vocabulary-list__heading { align-items: start; flex-direction: column; gap: 12px; }
  .vocabulary-list__heading h2 { font-size: 42px; }
  .vocabulary-list [role="listbox"] { grid-template-columns: 1fr; }
  .vocabulary-list [role="option"] { min-height: 112px; }
  .vocabulary-pagination button { width: 42px; padding: 0; overflow: hidden; font-size: 0; }
  .vocabulary-pagination button:first-child::after { content: "←"; font-size: 16px; }
  .vocabulary-pagination button:last-child::after { content: "→"; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vocabulary-modern *,
  .vocabulary-modern *::before,
  .vocabulary-modern *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .vocabulary-modern[data-vocabulary-ready="loading"] .vocabulary-detail::after { animation: none; }
}
