:root {
  --bg: #070816;
  --bg-strong: #10142a;
  --panel: rgba(13, 18, 35, 0.78);
  --panel-strong: #12172c;
  --ink: #f4f7ff;
  --muted: #9aa7c7;
  --line: rgba(89, 240, 255, 0.18);
  --accent: #00e5ff;
  --accent-strong: #8af7ff;
  --accent-soft: rgba(0, 229, 255, 0.12);
  --mint: #ff2bd6;
  --mint-soft: rgba(255, 43, 214, 0.12);
  --green: #3cff9f;
  --difficulty-beginner: #3cff9f;
  --difficulty-intermediate: #ffd166;
  --difficulty-advanced: #ff4d6d;
  --red: #ff4d6d;
  --sun: #ffd166;
  --shadow: 0 22px 70px rgba(0, 229, 255, 0.12);
  --body-bg:
    linear-gradient(135deg, rgba(7, 8, 22, 0.96), rgba(14, 18, 42, 0.92)),
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.2), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(255, 43, 214, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 209, 102, 0.1), transparent 30%),
    var(--bg);
  --sidebar-bg: linear-gradient(180deg, rgba(12, 16, 33, 0.88), rgba(8, 10, 24, 0.78));
  --sidebar-shadow: 14px 0 48px rgba(0, 0, 0, 0.26);
  --brand-text: #050713;
  --brand-glow: 0 0 24px rgba(0, 229, 255, 0.26);
  --nav-active-bg: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(255, 43, 214, 0.1));
  --nav-active-border: rgba(0, 229, 255, 0.32);
  --surface-subtle: rgba(16, 21, 41, 0.62);
  --surface-muted: rgba(7, 10, 24, 0.5);
  --input-bg: rgba(5, 8, 22, 0.62);
  --input-border: rgba(89, 240, 255, 0.2);
  --hint-border: rgba(0, 229, 255, 0.28);
  --primary-text: #050713;
  --primary-shadow: 0 12px 30px rgba(0, 229, 255, 0.24);
  --secondary-bg: rgba(11, 15, 32, 0.72);
  --secondary-border: rgba(89, 240, 255, 0.18);
  --level-bg: rgba(11, 15, 32, 0.68);
  --answer-bg: rgba(5, 8, 22, 0.52);
  --answer-border: rgba(89, 240, 255, 0.18);
  --slot-filled-bg: rgba(0, 229, 255, 0.13);
  --word-block-bg: rgba(14, 20, 42, 0.88);
  --word-block-border: rgba(89, 240, 255, 0.18);
  --active-border: rgba(0, 229, 255, 0.32);
  --secondary-active-border: rgba(255, 43, 214, 0.3);
  --secondary-active-bg: rgba(255, 43, 214, 0.12);
  --keypoint-border: rgba(89, 240, 255, 0.16);
  --sentence-ai-border: rgba(255, 43, 214, 0.3);
  --sentence-ai-bg: rgba(255, 43, 214, 0.12);
  --sentence-ai-text: #ff8eea;
  --paragraph-ai-border: rgba(0, 229, 255, 0.32);
  --grammar-border: rgba(89, 240, 255, 0.2);
  --grammar-bg: rgba(8, 12, 28, 0.92);
  --word-hover-bg: rgba(0, 229, 255, 0.18);
}

body[data-theme="light"] {
  --bg: #fffaf3;
  --bg-strong: #fff3e2;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --ink: #20242c;
  --muted: #746d64;
  --line: rgba(211, 126, 43, 0.16);
  --accent: #f28c28;
  --accent-strong: #d96f13;
  --accent-soft: rgba(242, 140, 40, 0.11);
  --mint: #ffb84d;
  --mint-soft: rgba(255, 184, 77, 0.13);
  --green: #2f9e6d;
  --difficulty-beginner: #2f9e6d;
  --difficulty-intermediate: #d99516;
  --difficulty-advanced: #d94343;
  --red: #f05252;
  --sun: #ffd166;
  --shadow: 0 18px 45px rgba(160, 91, 32, 0.1);
  --body-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 237, 0.76)),
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.13), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(255, 209, 102, 0.14), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 184, 77, 0.1), transparent 30%),
    var(--bg);
  --sidebar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 237, 0.72));
  --sidebar-shadow: 14px 0 40px rgba(160, 91, 32, 0.05);
  --brand-text: #ffffff;
  --brand-glow: 0 12px 28px rgba(242, 140, 40, 0.18);
  --nav-active-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 232, 0.82));
  --nav-active-border: rgba(242, 140, 40, 0.24);
  --surface-subtle: rgba(255, 255, 255, 0.68);
  --surface-muted: rgba(255, 255, 255, 0.72);
  --input-bg: rgba(255, 255, 255, 0.92);
  --input-border: rgba(211, 126, 43, 0.16);
  --hint-border: rgba(242, 140, 40, 0.24);
  --primary-text: #ffffff;
  --primary-shadow: 0 12px 26px rgba(242, 140, 40, 0.2);
  --secondary-bg: rgba(255, 255, 255, 0.76);
  --secondary-border: rgba(211, 126, 43, 0.14);
  --level-bg: rgba(255, 255, 255, 0.7);
  --answer-bg: rgba(255, 255, 255, 0.75);
  --answer-border: rgba(211, 126, 43, 0.14);
  --slot-filled-bg: rgba(242, 140, 40, 0.12);
  --word-block-bg: #ffffff;
  --word-block-border: rgba(211, 126, 43, 0.12);
  --active-border: rgba(242, 140, 40, 0.26);
  --secondary-active-border: rgba(242, 140, 40, 0.28);
  --secondary-active-bg: rgba(242, 140, 40, 0.12);
  --keypoint-border: rgba(211, 126, 43, 0.14);
  --sentence-ai-border: rgba(242, 140, 40, 0.26);
  --sentence-ai-bg: rgba(242, 140, 40, 0.1);
  --sentence-ai-text: var(--accent-strong);
  --paragraph-ai-border: rgba(242, 140, 40, 0.3);
  --grammar-border: rgba(242, 140, 40, 0.18);
  --grammar-bg: rgba(255, 250, 244, 0.92);
  --word-hover-bg: rgba(242, 140, 40, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--body-bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Outfit", "Noto Sans SC", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  padding: 20px 18px;
  overflow: hidden;
  background: var(--sidebar-bg);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  box-shadow: var(--sidebar-shadow);
  scrollbar-width: thin;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 4px;
  border: 1px solid var(--nav-active-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 222, 166, 0.24), transparent 22%),
    linear-gradient(145deg, rgba(10, 18, 42, 0.96), rgba(20, 42, 70, 0.9));
  color: #d9f8ff;
  box-shadow: var(--brand-glow);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 100%;
  height: 100%;
}

.brand-logo * {
  vector-effect: non-scaling-stroke;
}

.logo-night {
  fill: rgba(14, 28, 54, 0.92);
  stroke: rgba(142, 234, 255, 0.72);
  stroke-width: 2.2;
}

.logo-moon {
  fill: #ffe8b6;
  stroke: rgba(255, 232, 182, 0.85);
  stroke-width: 1.4;
}

.logo-reader-neck,
.logo-reader-head {
  fill: #ffe8b6;
  stroke: #514638;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.logo-reader-body {
  fill: #ffe8b6;
  stroke: #fff3d4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.logo-reader-hair {
  fill: #4f4335;
  stroke: #4f4335;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.logo-reader-eye {
  fill: #514638;
}

.logo-reader-nose,
.logo-reader-mouth {
  fill: none;
  stroke: #514638;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-reader-nose {
  opacity: 0.62;
  stroke-width: 0.82;
}

.logo-reader-mouth {
  opacity: 0.76;
  stroke-width: 0.92;
}

.logo-reader-arm {
  fill: none;
  stroke: #fff3d4;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.logo-sill {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.logo-book {
  stroke: #201933;
  stroke-width: 1.6;
}

.logo-book-top {
  fill: #fff1cf;
}

.logo-book-middle {
  fill: #ffad75;
}

.logo-book-bottom {
  fill: #8eeaff;
}

.logo-book-page-line {
  fill: none;
  stroke: rgba(32, 25, 51, 0.62);
  stroke-linecap: round;
  stroke-width: 1.1;
}

.brand-title,
.brand-subtitle,
.section-label,
.meaning-title,
.muted,
.eyebrow,
.nav-item small {
  margin: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-subtle);
  color: var(--ink);
  cursor: pointer;
  transition: 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--nav-active-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
  font-weight: 700;
}

.brand-subtitle,
.muted,
.nav-item small,
.section-label,
.eyebrow {
  color: var(--muted);
}

.brand-subtitle,
.nav-item small,
.section-label,
.eyebrow {
  font-size: 0.84rem;
}

.nav {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 7px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.goal-switcher,
.difficulty-switcher {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.switcher-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.goal-tabs,
.difficulty-tabs {
  display: grid;
  gap: 6px;
}

.goal-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.difficulty-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goal-tab,
.difficulty-tab {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.goal-tab {
  padding: 8px 6px;
}

.goal-tab::after,
.difficulty-tab::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 48%, transparent 72%);
  transform: translateX(-120%);
  pointer-events: none;
}

.goal-tab:hover,
.goal-tab.is-active,
.difficulty-tab:hover,
.difficulty-tab.is-active {
  background: var(--nav-active-bg);
  border-color: var(--nav-active-border);
  color: var(--ink);
}

.difficulty-tab[data-difficulty="beginner"].is-active {
  border-color: color-mix(in srgb, var(--difficulty-beginner) 72%, transparent);
  background: color-mix(in srgb, var(--difficulty-beginner) 18%, var(--panel));
  color: var(--difficulty-beginner);
  box-shadow: inset 0 -3px 0 var(--difficulty-beginner), 0 10px 24px color-mix(in srgb, var(--difficulty-beginner) 18%, transparent);
}

.difficulty-tab[data-difficulty="intermediate"].is-active {
  border-color: color-mix(in srgb, var(--difficulty-intermediate) 72%, transparent);
  background: color-mix(in srgb, var(--difficulty-intermediate) 18%, var(--panel));
  color: var(--difficulty-intermediate);
  box-shadow: inset 0 -3px 0 var(--difficulty-intermediate), 0 10px 24px color-mix(in srgb, var(--difficulty-intermediate) 18%, transparent);
}

.difficulty-tab[data-difficulty="advanced"].is-active {
  border-color: color-mix(in srgb, var(--difficulty-advanced) 72%, transparent);
  background: color-mix(in srgb, var(--difficulty-advanced) 18%, var(--panel));
  color: var(--difficulty-advanced);
  box-shadow: inset 0 -3px 0 var(--difficulty-advanced), 0 10px 24px color-mix(in srgb, var(--difficulty-advanced) 18%, transparent);
}

.goal-tab.is-switching,
.difficulty-tab.is-switching {
  animation: difficulty-tab-pop 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.goal-tab.is-switching::after,
.difficulty-tab.is-switching::after {
  animation: difficulty-tab-shine 680ms ease;
}

.difficulty-notice {
  min-height: 0;
  margin: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px) scale(0.98);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease, padding 180ms ease;
}

.difficulty-notice.is-visible {
  max-height: 40px;
  padding: 8px 10px 2px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.difficulty-switch-pulse {
  animation: difficulty-switch-pulse 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.goal-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
}

.goal-card {
  --goal-color: var(--accent);
  --goal-text: var(--accent-strong);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

.goal-card[data-goal="cet4"] {
  --goal-color: var(--accent);
  --goal-text: var(--accent-strong);
}

.goal-card[data-goal="cet6"] {
  --goal-color: var(--green);
  --goal-text: var(--green);
}

.goal-card[data-goal="postgraduate"] {
  --goal-color: var(--sun);
  --goal-text: var(--sun);
}

.goal-card[data-goal="ielts"] {
  --goal-color: var(--mint);
  --goal-text: var(--mint);
}

.goal-card span {
  color: var(--goal-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.goal-card strong {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.goal-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.goal-card small {
  align-self: end;
  color: var(--muted);
  font-size: 0.86rem;
}

.goal-card:hover,
.goal-card.is-active {
  transform: translateY(-3px);
}

.goal-card:hover {
  border-color: color-mix(in srgb, var(--goal-color) 42%, transparent);
  background: color-mix(in srgb, var(--goal-color) 8%, var(--panel));
}

.goal-card.is-active {
  border-color: color-mix(in srgb, var(--goal-color) 78%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--goal-color) 30%, transparent), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--goal-color) 24%, var(--panel)), var(--panel));
  box-shadow: 0 18px 44px color-mix(in srgb, var(--goal-color) 24%, transparent);
}

.goal-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--goal-color);
}

.goal-card.is-active::after {
  content: "当前目标";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--goal-color) 22%, var(--panel-strong));
  color: var(--goal-text);
  font-size: 0.72rem;
  font-weight: 900;
}

.goal-card.is-active strong,
.goal-card.is-active small {
  color: var(--ink);
}

.goal-card.is-active em {
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
}

.goal-page-notice {
  min-height: 24px;
  margin: -8px 0 12px;
  color: var(--accent-strong);
  font-weight: 800;
}

.book-card.is-disabled,
.book-card:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
}

@media (max-width: 1100px) {
  .goal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .goal-card-grid {
    grid-template-columns: 1fr;
  }
}

.user-card {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-subtle);
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.is-hidden {
  display: none !important;
}

.nav-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--secondary-border);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.04rem;
}

.nav-item small {
  font-size: 0.84rem;
}

.nav-item small strong {
  display: inline;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: 900;
  color: var(--ink);
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--nav-active-bg);
  border-color: var(--nav-active-border);
  box-shadow: var(--shadow);
}

.nav-item[data-section="goals"] {
  border-color: color-mix(in srgb, var(--sun) 40%, var(--line));
  border-left: 4px solid var(--sun);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sun) 16%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)),
    var(--surface-subtle);
}

.nav-item[data-section="goals"] .nav-icon {
  border-color: color-mix(in srgb, var(--sun) 42%, var(--secondary-border));
  background: color-mix(in srgb, var(--sun) 18%, var(--surface-subtle));
  color: var(--sun);
}

.nav-item[data-section="goals"]:hover,
.nav-item[data-section="goals"].is-active {
  border-color: color-mix(in srgb, var(--sun) 62%, var(--nav-active-border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sun) 22%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)),
    var(--surface-subtle);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--sun) 14%, transparent);
}

.nav-item[data-section="words"] {
  border-left: 4px solid var(--accent);
}

.nav-item[data-section="translation"] {
  border-left: 4px solid var(--mint);
}

.nav-item[data-section="reading"] {
  border-left: 4px solid var(--sun);
}

.nav-item[data-section="profile"] {
  border-left: 4px solid var(--green);
}

.nav-submenu {
  display: grid;
  margin: 0 0 3px 49px;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: none;
  transition: max-height 260ms ease, opacity 220ms ease, padding 220ms ease;
}

.nav-submenu.is-open {
  max-height: min(360px, 42vh);
  padding: 7px 0 2px;
  opacity: 1;
  transform: none;
}

.nav-submenu.is-open .book-list {
  height: max-content;
  max-height: min(310px, 34vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
}

.nav-submenu .section-label {
  margin-bottom: 6px;
}

.vocab-books {
  display: none;
}

.book-list {
  display: grid;
  gap: 12px;
}

.nav .book-list {
  gap: 8px;
}

.book-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-subtle);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav .book-card {
  padding: 10px 12px;
  border-radius: 15px;
}

.book-card:hover {
  transform: translateY(-2px);
}

.book-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), color-mix(in srgb, var(--mint) 14%, var(--panel)));
  box-shadow: 0 16px 38px color-mix(in srgb, var(--accent) 20%, transparent);
}

.book-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--mint));
}

.book-card.is-active::after {
  content: "已选中";
  display: inline-block;
  width: fit-content;
  margin-top: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, var(--panel-strong));
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 800;
}

.book-card strong,
.book-card span {
  display: block;
}

.book-card strong {
  color: var(--ink);
}

.book-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px;
}

.auth-view {
  display: grid;
  flex: 1;
  min-height: calc(100vh - 104px);
  place-items: center;
}

.site-footer {
  flex: 0 0 auto;
  padding: 16px 12px 0;
  text-align: center;
  font-size: 0.82rem;
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.site-footer p {
  margin: 7px 0 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.consent-field input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.consent-field a,
.legal-card a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

.legal-page {
  min-height: 100vh;
  padding: 28px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(980px, 100%);
  margin: 0 auto 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.legal-brand img {
  width: 48px;
  height: 48px;
}

.legal-brand span {
  display: grid;
  gap: 2px;
}

.legal-brand strong {
  font-size: 1.08rem;
}

.legal-brand small {
  color: var(--muted);
}

.legal-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.legal-card {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
}

.legal-title {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.legal-title h1 {
  margin: 7px 0 4px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.legal-title > p:not(.eyebrow, .legal-date-text) {
  margin: 0;
  color: var(--muted);
}

.legal-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 22px 0 0;
}

.legal-dates div {
  display: flex;
  gap: 8px;
}

.legal-dates dt {
  color: var(--muted);
}

.legal-dates dd {
  margin: 0;
  font-weight: 600;
}

.legal-date-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.legal-card section {
  margin-top: 36px;
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.45;
}

.legal-card h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

.legal-card p {
  margin: 14px 0;
}

.legal-card ol,
.legal-card ul {
  margin: 12px 0;
  padding-left: 1.5rem;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  color: var(--ink);
}

.legal-contact {
  list-style: none;
  padding-left: 0 !important;
}

.legal-footer {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 24px 12px 0;
}

@media (max-width: 720px) {
  .legal-page {
    padding: 18px;
  }

  .legal-header {
    align-items: flex-start;
  }

  .legal-card {
    border-radius: 22px;
  }
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  width: min(920px, 100%);
  align-items: center;
}

.auth-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 10px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--muted);
  font-size: 0.86rem;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.panel-header h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
}

.header-meta {
  display: flex;
  gap: 14px;
}

.meta-card,
.word-card,
.mini-card,
.translate-card,
.article-card,
.article-list {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.meta-card {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 18px;
}

.meta-card-button {
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.meta-card-button:hover,
.meta-card-button.is-active {
  border-color: var(--nav-active-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-card strong {
  font-size: 1.1rem;
}

.word-stage,
.reading-layout {
  display: grid;
  gap: 20px;
}

.word-stage {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.word-card,
.translate-card,
.article-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
}

.word-immersive-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 72px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--secondary-border);
  border-radius: 14px;
  background: var(--secondary-bg);
  color: var(--accent-strong);
  cursor: pointer;
  transition: 180ms ease;
}

.word-immersive-toggle:hover {
  border-color: var(--nav-active-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.word-immersive-toggle span {
  position: absolute;
  left: 14px;
  top: 11px;
  width: 16px;
  height: 16px;
  border-color: currentColor;
  opacity: 0.95;
}

.word-immersive-toggle em {
  margin-left: 22px;
  color: currentColor;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.word-immersive-toggle span:first-child {
  border-top: 2px solid;
  border-left: 2px solid;
  transform: translate(-3px, -3px);
}

.word-immersive-toggle span:last-child {
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: translate(3px, 3px);
}

.word-card.is-immersive .word-immersive-toggle span:first-child {
  border-top: 0;
  border-left: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: translate(-4px, -4px);
}

.word-card.is-immersive .word-immersive-toggle span:last-child {
  border-right: 0;
  border-bottom: 0;
  border-top: 2px solid;
  border-left: 2px solid;
  transform: translate(4px, 4px);
}

.article-card {
  position: relative;
}

.word-topline {
  display: grid;
  gap: 14px;
  align-items: start;
}

.word-topline h2,
.article-head h2 {
  margin: 0;
}

.word-topline h2 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  letter-spacing: 0.04em;
  min-height: 1.15em;
}

.word-heading-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 92px;
}

.word-favorite-btn {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--secondary-border);
  border-radius: 50%;
  background: var(--secondary-bg);
  color: var(--muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: 160ms ease;
}

.word-favorite-btn:hover:not(:disabled),
.word-favorite-btn.is-active {
  border-color: var(--secondary-active-border);
  background: var(--secondary-active-bg);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.word-favorite-btn:disabled {
  cursor: default;
}

.phonetic {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.word-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}

.word-stats strong {
  display: block;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  line-height: 1.2;
}

.translate-card.is-immersive .translation-immersive-toggle span:first-child {
  border-top: 0;
  border-left: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: translate(-4px, -4px);
}

.translate-card.is-immersive .translation-immersive-toggle span:last-child {
  border-right: 0;
  border-bottom: 0;
  border-top: 2px solid;
  border-left: 2px solid;
  transform: translate(4px, 4px);
}

.meaning-main {
  display: block;
}

.meaning-divider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.meaning-divider::before,
.meaning-divider::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--line);
}

.meaning-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.meaning-context-card {
  display: grid;
  gap: 8px;
}

.meaning-context p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.meaning-context .en {
  color: var(--ink);
}

.level-tab.is-active,
.word-chip {
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
}

.word-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.word-display-char.correct {
  color: var(--green);
}

.confetti-piece {
  position: absolute;
  top: 220px;
  left: 50%;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: confetti-pop 760ms cubic-bezier(0.14, 0.78, 0.3, 1) var(--delay, 0ms) forwards;
}

.input-label,
.meaning-title {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.answer-slots.is-error {
  border-color: rgba(240, 82, 82, 0.45);
  animation: shake 260ms ease;
}

.typing-hint {
  margin-top: 18px;
  min-height: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.typing-hint.is-prominent {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 10px 14px;
  border: 1px solid var(--hint-border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 700;
}

.typing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.typing-row .typing-hint {
  margin-top: 0;
}

.translation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.translation-heading .translation-progress {
  margin-top: 6px;
}

.translation-key-guide {
  padding-top: 2px;
}

.translation-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.translation-favorite-btn {
  padding: 7px 11px;
  border: 1px solid var(--secondary-border);
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--muted);
  font-weight: 700;
}

.translation-favorite-btn.is-active {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.word-card.is-daily-complete > :not(.daily-completion),
.translate-card.is-daily-complete > :not(.daily-completion) {
  display: none;
}

.daily-completion {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.daily-completion::before,
.daily-completion::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.2;
}

.daily-completion::before {
  top: 8%;
  left: 10%;
  background: var(--accent);
}

.daily-completion::after {
  right: 8%;
  bottom: 4%;
  background: var(--mint);
}

.daily-completion.is-hidden {
  display: none;
}

.daily-completion-mark {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--mint) 60%, transparent);
  border-radius: 30px;
  background: color-mix(in srgb, var(--mint) 15%, var(--panel));
  color: var(--mint);
  font-family: "Outfit", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--mint) 18%, transparent);
  transform: rotate(-4deg);
}

.daily-completion-words .daily-completion-mark {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  color: var(--accent-strong);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 20%, transparent);
}

.daily-completion h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.daily-completion-summary {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.daily-completion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.word-key-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.word-key-guide span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-subtle);
}

.word-key-guide kbd {
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid var(--secondary-border);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--secondary-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.examples-block {
  margin-top: 20px;
}

@media (max-width: 760px) {
  .typing-row,
  .translation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .word-key-guide {
    justify-content: flex-start;
  }
}

.examples-list {
  display: grid;
  gap: 14px;
}

.word-list-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.word-list-head,
.delete-undo-bar,
.word-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.word-list-head h2 {
  margin: 0 0 6px;
}

.delete-undo-bar {
  padding: 12px 14px;
  border: 1px solid var(--nav-active-border);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--ink);
}

.word-list-items {
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}

.word-list-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
}

.word-list-item div {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.word-list-item strong {
  font-size: 1.08rem;
}

.word-list-item span,
.word-list-item p {
  color: var(--muted);
}

.word-list-item p {
  flex: 1;
  margin: 0;
  line-height: 1.5;
}

.danger-btn {
  padding: 9px 12px;
  border: 1px solid rgba(240, 82, 82, 0.35);
  border-radius: 12px;
  background: rgba(240, 82, 82, 0.1);
  color: #ff6b6b;
  font-weight: 700;
  cursor: pointer;
}

.card-actions .danger-btn {
  padding: 12px 18px;
  border-radius: 16px;
}

.danger-btn:hover {
  border-color: rgba(240, 82, 82, 0.6);
  background: rgba(240, 82, 82, 0.16);
}

.example-item {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-muted);
}

.example-item p {
  margin: 0;
}

.example-meaning {
  margin-bottom: 10px !important;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 700;
}

.example-item .en {
  font-size: 1.22rem;
}

.example-highlight {
  display: inline-block;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.example-item .zh {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

body.is-word-immersive {
  overflow: hidden;
}

body.is-word-immersive .word-card.is-immersive,
body.is-translation-immersive .translate-card.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: clamp(28px, 6vw, 86px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(7, 8, 22, 0.94), rgba(14, 18, 42, 0.9)),
    radial-gradient(circle at top left, var(--accent-soft), transparent 34%),
    radial-gradient(circle at bottom right, var(--mint-soft), transparent 34%),
    var(--panel-strong);
  box-shadow: none;
  overflow-y: auto;
}

body.is-translation-immersive {
  overflow: hidden;
}

body[data-theme="light"].is-word-immersive .word-card.is-immersive,
body[data-theme="light"].is-translation-immersive .translate-card.is-immersive {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 237, 0.88)),
    radial-gradient(circle at top left, var(--accent-soft), transparent 34%),
    radial-gradient(circle at bottom right, var(--mint-soft), transparent 34%),
    var(--panel-strong);
}

body.is-word-immersive .word-card.is-immersive .word-topline,
body.is-word-immersive .word-card.is-immersive .examples-block,
body.is-word-immersive .word-card.is-immersive .card-actions,
body.is-word-immersive .word-card.is-immersive .typing-hint {
  width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.is-translation-immersive .translate-card.is-immersive > :not(.translation-immersive-toggle) {
  width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.is-word-immersive .word-card.is-immersive .word-topline {
  gap: clamp(16px, 3vw, 34px);
}

body.is-word-immersive .word-card.is-immersive .word-stats strong {
  font-size: clamp(2rem, 4vw, 4rem);
}

body.is-word-immersive .word-card.is-immersive .word-topline h2 {
  font-size: clamp(4.5rem, 12vw, 10rem);
}

body.is-word-immersive .word-card.is-immersive .phonetic {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

body.is-word-immersive .word-card.is-immersive .examples-list {
  gap: 16px;
}

body.is-word-immersive .word-card.is-immersive .example-item {
  padding: clamp(16px, 2.2vw, 24px);
}

body.is-word-immersive .word-card.is-immersive .example-item .en {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

body.is-word-immersive .word-card.is-immersive .example-item .zh {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

body.is-translation-immersive .translate-card.is-immersive .section-label {
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
}

body.is-translation-immersive .translate-card.is-immersive .translation-progress {
  margin-top: 12px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

body.is-translation-immersive .translate-card.is-immersive .translation-prompt {
  margin-top: clamp(18px, 3vw, 34px);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.25;
}

body.is-translation-immersive .translate-card.is-immersive .answer-area {
  margin-top: clamp(28px, 4vw, 54px);
}

body.is-translation-immersive .translate-card.is-immersive .answer-slots {
  min-height: clamp(112px, 16vh, 190px);
  padding: clamp(20px, 3vw, 34px);
  gap: clamp(12px, 1.7vw, 18px);
}

body.is-translation-immersive .translate-card.is-immersive .slot,
body.is-translation-immersive .translate-card.is-immersive .word-block {
  padding: clamp(14px, 1.8vw, 20px) clamp(18px, 2.4vw, 28px);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

body.is-translation-immersive .translate-card.is-immersive .translate-actions,
body.is-translation-immersive .translate-card.is-immersive .block-tray {
  margin-top: clamp(24px, 3.5vw, 42px);
}

body.is-translation-immersive .translate-card.is-immersive .translation-feedback {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.card-actions,
.translate-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.card-actions.is-compact-actions {
  margin-top: 12px;
}

.word-card-undo {
  margin-top: 14px;
}

.primary-btn,
.secondary-btn,
.word-block,
.level-tab {
  border: 1px solid transparent;
  cursor: pointer;
  transition: 160ms ease;
}

.primary-btn,
.secondary-btn {
  padding: 12px 18px;
  border-radius: 16px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--mint));
  color: var(--primary-text);
  box-shadow: var(--primary-shadow);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: var(--secondary-bg);
  border-color: var(--secondary-border);
  color: var(--ink);
}

.secondary-btn.is-compact {
  justify-self: start;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.side-panel {
  display: grid;
  gap: 16px;
}

.record-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.record-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.record-card strong {
  font-size: 1.18rem;
}

.daily-goal-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.word-card .daily-goal-card,
.translate-card .daily-goal-card {
  margin-top: 20px;
}

.daily-goal-card.is-horizontal {
  grid-template-columns: minmax(160px, 0.22fr) minmax(260px, 1fr) minmax(180px, 0.28fr);
  align-items: center;
}

.daily-goal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.daily-goal-head strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

#wordDailyGoalText span,
#wordTodayStatus span,
#translationDailyGoalText span,
#translationTodayStatus span {
  display: block;
  line-height: 1.25;
}

.daily-goal-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 7px 9px;
  border: 1px solid var(--secondary-active-border);
  border-radius: 999px;
  background: var(--secondary-active-bg);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.goal-tower {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 20%,
    var(--surface-muted);
}

.daily-goal-card.is-horizontal .goal-tower {
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 10% 100%,
    var(--surface-muted);
}

.goal-tower span {
  position: absolute;
  inset: auto 0 0;
  height: 0%;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--green));
  box-shadow: 0 -12px 28px rgba(60, 255, 159, 0.22);
  transition: height 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.daily-goal-card.is-horizontal .goal-tower span {
  inset: 0 auto 0 0;
  width: 0%;
  height: 100% !important;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--sun));
  box-shadow: 12px 0 28px rgba(60, 255, 159, 0.2);
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.goal-tower.is-blocks span {
  background:
    linear-gradient(to top, rgba(7, 8, 22, 0.3) 0 2px, transparent 2px 25px),
    linear-gradient(180deg, var(--mint), var(--sun));
  background-size: 100% 27px, 100% 100%;
  box-shadow: 0 -12px 28px rgba(255, 43, 214, 0.2);
}

.daily-goal-card.is-horizontal .goal-tower.is-blocks span {
  background:
    linear-gradient(to right, rgba(7, 8, 22, 0.34) 0 2px, transparent 2px 32px),
    linear-gradient(90deg, var(--mint), var(--sun), var(--green));
  background-size: 34px 100%, 100% 100%;
  box-shadow: 12px 0 28px rgba(255, 43, 214, 0.18);
}

.goal-slider {
  display: grid;
  gap: 8px;
}

.goal-slider span {
  color: var(--muted);
  font-size: 0.86rem;
}

.goal-slider input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.daily-goal-card.is-translation .goal-slider input {
  accent-color: var(--mint);
}

@media (max-width: 900px) {
  .daily-goal-card.is-horizontal {
    grid-template-columns: 1fr;
  }
}

.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
}

.activity-panel {
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.activity-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 4px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.heat-cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--surface-muted);
}

.heat-cell.level-1 {
  background: rgba(60, 255, 159, 0.28);
}

.heat-cell.level-2 {
  background: rgba(60, 255, 159, 0.46);
}

.heat-cell.level-3 {
  background: rgba(60, 255, 159, 0.66);
}

.heat-cell.level-4 {
  background: var(--green);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-progress {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mini-card,
.article-list {
  padding: 18px;
  border-radius: 22px;
}

.mini-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.4rem;
}

.translation-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.level-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.level-tab {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--level-bg);
  border-color: var(--secondary-border);
  color: var(--ink);
}

.translation-prompt {
  margin: 10px 0 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.translation-progress {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 8px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--secondary-border);
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.answer-area {
  margin-top: 24px;
}

.answer-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 82px;
  padding: 18px;
  border: 1px solid var(--answer-border);
  border-radius: 22px;
  background: var(--answer-bg);
  transition: border-color 140ms ease;
}

.answer-tip {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.answer-slot-unit {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.answer-punctuation {
  flex: none;
  padding: 0 2px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.slot {
  min-width: 60px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--muted);
  text-align: center;
  font-size: 1.18rem;
}

.slot.filled {
  color: var(--ink);
  background: var(--slot-filled-bg);
  cursor: pointer;
}

.slot.filled:hover,
.slot.filled:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.block-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.block-tray.is-hidden {
  display: none;
}

.word-block {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--word-block-bg);
  border-color: var(--word-block-border);
  color: var(--ink);
  font-size: 1.18rem;
}

.word-block.used {
  opacity: 0.35;
  pointer-events: none;
}

.word-block.is-wrong {
  border-color: #d85c67;
  background: rgba(216, 92, 103, 0.16);
  color: inherit;
}

.translation-feedback {
  min-height: 26px;
  margin: 16px 0 0;
  font-size: 0.96rem;
}

.translation-feedback.success {
  color: var(--green);
}

.translation-feedback.error {
  color: var(--red);
}

.reading-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.article-list {
  display: grid;
  gap: 7px;
  align-self: start;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.article-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--surface-subtle);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.article-item.is-active {
  border-color: var(--active-border);
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
}

.article-index {
  display: inline-flex;
  justify-content: center;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.article-item-body {
  display: block;
  min-width: 0;
}

.article-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-width: 0;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
}

.article-item-meta span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.read-state {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.read-state.is-read {
  border-color: var(--secondary-active-border);
  background: var(--secondary-active-bg);
  color: var(--accent-strong);
}

.article-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.reading-article-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.secondary-btn.is-active {
  border-color: var(--secondary-active-border);
  background: var(--secondary-active-bg);
  color: var(--accent-strong);
}

.reading-article-actions .secondary-btn {
  border-color: color-mix(in srgb, var(--accent) 56%, transparent);
  background: linear-gradient(135deg, var(--accent), var(--mint));
  color: #071018;
  font-weight: 900;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 22%, transparent);
}

.reading-article-actions .secondary-btn:nth-child(2) {
  border-color: color-mix(in srgb, var(--sun) 58%, transparent);
  background: linear-gradient(135deg, var(--sun), var(--green));
}

.reading-article-actions .secondary-btn.is-active {
  border-color: color-mix(in srgb, var(--mint) 70%, transparent);
  background: linear-gradient(135deg, var(--mint), var(--accent));
  color: #071018;
}

.reader-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 26px;
}

.article-body {
  font-size: 1.18rem;
  line-height: 1.95;
  max-width: 640px;
}

.reading-left-column {
  max-width: 640px;
}

.article-body p {
  margin: 0 0 18px;
}

.reading-assist {
  min-width: 0;
}

.assist-block {
  padding: 0;
  border: 0;
  background: transparent;
}

.article-translation {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.95;
  font-size: 1.02rem;
}

.translation-tip {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-translation p {
  margin: 0;
}

.key-points-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.reading-keypoints {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--keypoint-border);
}

.key-point-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.48fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--keypoint-border);
  background: transparent;
}

.key-point-item strong,
.key-point-item span {
  display: block;
}

.key-point-item span {
  margin-top: 0;
  color: var(--muted);
  font-weight: 500;
}

.key-point-item p {
  display: none;
}

.key-point-item strong,
.key-point-item span {
  font-size: 1.08rem;
  line-height: 1.55;
}

.article-sentence {
  position: relative;
}

.article-sentence.is-grammar-active .sentence-text {
  line-height: 2rem;
}

.grammar-part {
  border-radius: 6px;
  padding: 2px 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  outline: 1px solid rgba(255, 255, 255, 0.08);
}

.part-subject {
  background: rgba(89, 240, 255, 0.26);
}

.part-predicate {
  background: rgba(60, 255, 159, 0.24);
}

.part-object {
  background: rgba(255, 209, 102, 0.28);
}

.part-attribute {
  background: rgba(255, 77, 203, 0.22);
}

.part-adverbial {
  background: rgba(157, 124, 255, 0.25);
}

.part-complement {
  background: rgba(255, 138, 61, 0.25);
}

.part-conjunction {
  padding: 2px 6px;
  border: 1px solid rgba(255, 138, 61, 0.75);
  border-radius: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.16);
}

.grammar-mark {
  border-radius: 0.25rem;
  padding-left: 0.125rem;
  padding-right: 0.125rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.grammar-mark.mark-predicate {
  background: rgb(254, 215, 170);
}

.grammar-mark.mark-prep-phrase {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.grammar-mark.mark-non-finite {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.grammar-mark.mark-clause {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.grammar-mark.mark-conjunction {
  border: 1px solid rgb(100, 116, 139);
  border-radius: 0.25rem;
  padding-left: 0.125rem;
  padding-right: 0.125rem;
}

.grammar-mark.mark-connector {
  border-radius: 0.25rem;
  background: rgb(224, 242, 254);
}

.grammar-note {
  margin-left: 0.125rem;
  margin-right: 0.125rem;
  border-radius: 0.25rem;
  background: rgb(255, 251, 235);
  padding: 0.125rem 0.25rem;
  color: rgb(180, 83, 9);
  font-size: 0.75rem;
  line-height: 1rem;
}

.sentence-ai-btn {
  display: none;
  margin: 0 4px;
  padding: 2px 7px;
  border: 1px solid var(--sentence-ai-border);
  border-radius: 999px;
  background: var(--sentence-ai-bg);
  color: var(--sentence-ai-text);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.sentence-ai-btn.is-visible {
  display: inline-flex;
}

.paragraph-ai-btn,
.paragraph-grammar-btn {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid var(--paragraph-ai-border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.paragraph-grammar-btn {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, rgb(255, 237, 213), rgb(254, 215, 170));
  color: rgb(146, 64, 14);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2);
}

.grammar-inline-box {
  display: block;
  margin: 8px 0 14px;
  padding: 14px;
  border: 1px solid var(--grammar-border);
  border-radius: 14px;
  background: var(--grammar-bg);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.65;
}

.paragraph-grammar-legend {
  display: block;
  margin: 10px 0 2px;
  padding: 10px 12px;
  border: 1px solid var(--grammar-border);
  border-radius: 14px;
  background: var(--grammar-bg);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
}

.grammar-title,
.grammar-notice,
.grammar-content,
.grammar-chat-log,
.grammar-chat-message {
  display: block;
}

.grammar-title {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-weight: 800;
}

.grammar-notice {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.grammar-legend {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.grammar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-chip {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 4px;
}

.legend-chip.mark-predicate {
  background: rgb(254, 215, 170);
  width: 22px;
  height: 14px;
}

.legend-chip.mark-prep-phrase {
  border-bottom: 2px dashed currentColor;
}

.legend-chip.mark-non-finite {
  border-bottom: 2px wavy currentColor;
}

.legend-chip.mark-clause {
  height: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
}

.legend-chip.mark-conjunction {
  height: 12px;
  border: 1px solid rgb(100, 116, 139);
}

.legend-chip.mark-connector {
  background: rgb(224, 242, 254);
}

.grammar-content {
  display: block;
  color: var(--ink);
}

.grammar-key-note {
  border-radius: 0.25rem;
  background: rgb(255, 251, 235);
  padding: 0.125rem 0.35rem;
  color: rgb(180, 83, 9);
  font-size: 0.78rem;
  line-height: 1.25rem;
}

.grammar-chat-log {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.grammar-chat-message {
  width: fit-content;
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--ink);
  line-height: 1.55;
}

.grammar-chat-message.user {
  justify-self: end;
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--accent-strong);
}

.grammar-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.grammar-chat-form input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
}

.article-word {
  position: relative;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
  cursor: text;
}

.article-body.is-word-picking .article-word {
  cursor: pointer;
}

.article-body.is-word-picking .article-word:hover,
.article-body.is-word-picking .article-word:focus-visible {
  background: var(--word-hover-bg);
  color: var(--accent-strong);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-4px);
  }
  70% {
    transform: translateX(4px);
  }
}

@keyframes confetti-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.4);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1);
  }
}

@keyframes difficulty-tab-pop {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  42% {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(95, 255, 214, 0.22);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
}

@keyframes difficulty-tab-shine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes difficulty-switch-pulse {
  0% {
    filter: saturate(1);
    transform: translateY(0);
  }
  36% {
    filter: saturate(1.25) brightness(1.08);
    transform: translateY(-3px);
  }
  100% {
    filter: saturate(1);
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .app-shell,
  .word-stage,
  .reading-layout,
  .translation-stage,
  .reader-workspace,
  .auth-panel,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .nav {
    flex: none;
    overflow: visible;
    padding-right: 0;
  }

  .header-meta,
  .article-head {
    flex-direction: column;
  }

  .article-body {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .content,
  .sidebar {
    padding: 18px;
  }

  .word-card,
  .translate-card,
  .article-card {
    padding: 18px;
    border-radius: 22px;
  }

  .panel-header h1 {
    font-size: 2rem;
    white-space: normal;
  }

  .key-point-item {
    grid-template-columns: 1fr;
  }

  .word-list-head,
  .delete-undo-bar,
  .word-list-item {
    align-items: stretch;
    flex-direction: column;
  }

  .key-point-item p {
    grid-column: auto;
    margin-top: 0;
  }
}


.audio-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  border: 1px solid var(--secondary-border);
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  vertical-align: middle;
}

.audio-play-btn:hover,
.audio-play-btn:focus-visible {
  border-color: var(--secondary-active-border);
  background: var(--secondary-active-bg);
  outline: none;
}

.audio-play-btn.is-playing {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft));
  color: var(--green);
  box-shadow: 0 0 0 3px rgba(60, 255, 159, 0.1);
}

.audio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
}

.example-en-line,
.translation-prompt,
.paragraph-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.example-en-line span,
.translation-prompt span {
  min-width: 0;
}

.paragraph-actions {
  display: inline-flex;
  margin-left: 8px;
  gap: 6px;
  vertical-align: middle;
}

.paragraph-actions .audio-play-btn {
  width: 28px;
  height: 28px;
  margin-left: 0;
}


.audio-play-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
