:root {
  --brand: #95ca00;
  --brand-dark: #6f9600;
  --brand-soft: rgba(149, 202, 0, 0.14);
  --brand-pale: #f7faef;
  --bg: #f8faf2;
  --surface: #ffffff;
  --surface-soft: #f3f5ee;
  --text: #27313b;
  --text-strong: #111827;
  --muted: #667085;
  --border: #dce3d4;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.12);
  --overlay: rgba(15, 23, 42, 0.36);
  --danger: #b42318;
  --nav-height: 76px;
  --page-gutter: 1rem;
  --radius: 20px;
  --radius-lg: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(149, 202, 0, 0.16);
  touch-action: manipulation;
  overflow-x: hidden;
}

::selection {
  background: var(--brand-soft);
  color: var(--text-strong);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

#app,
.app,
.app-shell,
.app-root,
[data-app] {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main,
.main-content,
.main,
.content,
.page,
.pages,
[data-page] {
  width: 100%;
  flex: 1 1 auto;
}

.main-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem var(--page-gutter) calc(var(--nav-height) + env(safe-area-inset-bottom) + 1.25rem);
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.topbar,
header.topbar {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem var(--page-gutter) 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.topbar-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-logo {
  width: min(100%, 18rem);
  height: auto;
  margin-bottom: 0.45rem;
}

.back-button:not(.is-hidden) + .topbar-copy .topbar-logo {
  width: min(100%, 12rem);
}

.topbar-eyebrow,
.section-kicker,
.reader-kicker,
.modal-kicker {
  margin: 0 0 0.25rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.35rem;
  line-height: 1.2;
}

.topbar-meta {
  align-self: center;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.back-button,
.icon-button {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 700;
  white-space: nowrap;
}

.back-button.is-hidden {
  display: none;
}

.section-heading {
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-card,
.card,
.summary-card,
.reader-card,
.article-card,
.vocab-item,
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card,
.card,
.summary-card,
.reader-card,
.article-card,
.vocab-item {
  padding: 1rem;
}

.hero-header,
.card-meta-row,
.reader-meta,
.vocab-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-title,
.card-title,
.reader-title,
.vocab-word,
.modal-word {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.25;
}

.hero-title {
  font-size: 1.35rem;
}

.hero-subtitle,
.card-subtitle,
.reader-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.summary-grid,
.stats-grid,
.card-list,
.vocab-list,
.word-list,
.saved-words {
  display: grid;
  gap: 0.75rem;
}

.stats-strip {
  margin-bottom: 0.85rem;
}

.summary-grid {
  margin-top: 0.85rem;
}

.summary-block {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
}

.summary-title {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daily-reading-quote {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(149, 202, 0, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(149, 202, 0, 0.14), rgba(248, 250, 242, 0.92));
}

.daily-reading-quote .section-kicker {
  margin-bottom: 0.3rem;
}

.daily-reading-quote-text {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.daily-reading-quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tag-row,
.meta-chips,
.cta-row,
.vocab-actions,
.reader-info-row,
.filter-bar,
.filters,
.tag-group,
.chip-group,
.tag-filter-bar,
.card-footer,
.reader-actions,
.toolbar-actions,
.sheet-actions,
.modal-actions,
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-row,
.meta-chips {
  align-items: center;
}

.meta-chip,
.tag-chip,
.filter-chip,
.source-chip,
.difficulty-chip,
.status-chip,
.chip,
.tag,
.pill,
.badge,
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.9rem;
  padding: 0.22rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.meta-chip.is-highlight,
.filter-chip.is-active,
.chip.is-active,
.tag.is-active,
.pill.is-active,
.badge.is-active,
.topic-chip.is-active,
.difficulty-chip.is-active,
.source-chip.is-active,
.status-chip.is-active,
.nav-item.is-active,
.nav-item[aria-current="page"] {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-dark);
}

.card-note,
.muted,
.meta,
.subtle,
.caption {
  color: var(--muted);
}

.card-note {
  font-size: 0.88rem;
}

.card-footer,
.cta-row {
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.card-footer {
  gap: 0.75rem;
}

.card-meta-row {
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.06rem;
}

.card-subtitle {
  margin-top: 0.35rem;
}

.reader-card {
  padding: 1rem;
}

.reader-meta {
  flex-direction: column;
}

.reader-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reader-info-row {
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  margin: 0.9rem 0 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reader-info-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.reader-timer {
  color: var(--brand-dark);
  font-weight: 700;
}

.reader-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

.reading-paragraph {
  margin: 0 0 1rem;
}

.word-token {
  display: inline-block;
  margin: 0 0.04rem;
  padding: 0 0.08rem;
  border-radius: 0.3rem;
  color: inherit;
  border-bottom: 1px solid transparent;
}

.word-token:hover,
.word-token:focus-visible {
  background: var(--brand-soft);
  color: var(--text-strong);
}

.word-token.is-core {
  color: var(--brand-dark);
  font-weight: 700;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-item {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}

.stat-value {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.vocab-meaning,
.vocab-meta,
.vocab-detail,
.word-detail,
.saved-word-detail {
  margin: 0.35rem 0 0;
  color: var(--text);
  line-height: 1.7;
}

.vocab-meaning strong,
.vocab-meta strong,
.word-detail strong,
.saved-word-detail strong {
  color: var(--text-strong);
}

.vocab-actions {
  margin-top: 0.85rem;
  align-items: center;
}

.familiarity-select {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.daily-review-card {
  padding: 1rem;
  border: 1px solid rgba(149, 202, 0, 0.34);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(247, 250, 239, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow);
}

.daily-review-card.is-complete {
  background: linear-gradient(145deg, rgba(149, 202, 0, 0.17), rgba(255, 255, 255, 0.98));
}

.daily-review-title {
  margin: 0 0 0.45rem;
  color: var(--text-strong);
  font-size: 1.18rem;
  line-height: 1.35;
}

.daily-review-progress-row,
.daily-review-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.daily-review-progress-row {
  color: var(--muted);
  font-size: 0.85rem;
}

.daily-review-progress-row strong {
  color: var(--brand-dark);
}

.daily-review-progress {
  width: 100%;
  height: 0.55rem;
  margin: 0.45rem 0 1rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand);
  accent-color: var(--brand);
}

.daily-review-progress::-webkit-progress-bar {
  background: var(--surface-soft);
  border-radius: 999px;
}

.daily-review-progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 999px;
}

.daily-review-word {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.7rem, 8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.daily-review-context,
.daily-review-answer {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 16px;
}

.daily-review-context {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.daily-review-answer {
  border: 1px solid rgba(149, 202, 0, 0.3);
  background: var(--brand-pale);
}

.daily-review-rating {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.daily-review-rating legend {
  margin-bottom: 0.55rem;
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.daily-review-rating-buttons,
.daily-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.daily-review-rating-buttons button {
  width: 100%;
  padding-inline: 0.55rem;
}

.daily-review-summary {
  margin-top: 1rem;
}

.daily-review-summary-item {
  padding: 0.8rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.daily-review-summary-item strong,
.daily-review-summary-item span {
  display: block;
}

.daily-review-summary-item strong {
  color: var(--text-strong);
  font-size: 1.25rem;
}

.daily-review-summary-item span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.daily-review-actions {
  justify-content: flex-start;
}

.daily-review-exit-row {
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.empty-state,
.empty,
.blank-state,
.no-data {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

.empty-title {
  margin: 0 0 0.4rem;
  color: var(--text-strong);
  font-size: 1rem;
}

.empty-text {
  margin: 0;
  color: var(--muted);
}

.empty-actions button {
  min-width: 136px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.primary-button {
  background: var(--brand);
  color: var(--text-strong);
  box-shadow: var(--shadow);
}

.secondary-button,
.ghost-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-strong);
}

.danger-button {
  background: var(--surface);
  border: 1px solid rgba(180, 35, 24, 0.24);
  color: var(--danger);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover,
.back-button:hover,
.nav-item:hover,
.filter-chip:hover,
.chip:hover,
.tag:hover,
.pill:hover,
.badge:hover,
.topic-chip:hover,
.difficulty-chip:hover,
.source-chip:hover,
.status-chip:hover {
  background-color: var(--surface-soft);
}

.primary-button:hover {
  background: #8fbe00;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active,
.icon-button:active,
.back-button:active,
.nav-item:active,
.filter-chip:active,
.chip:active,
.tag:active,
.pill:active,
.badge:active,
.topic-chip:active,
.difficulty-chip:active,
.source-chip:active,
.status-chip:active {
  opacity: 0.96;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.6rem var(--page-gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.nav-item {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: 14px;
  color: var(--muted);
}

.nav-label {
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-item .icon {
  font-size: 1.05rem;
  line-height: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.modal.is-hidden {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(84dvh, 720px);
  margin: 0 auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 24px 24px 0 0;
  border-bottom: 0;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.modal-word {
  font-size: 1.2rem;
}

.modal-hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.has-daily-poster {
  overflow: hidden;
}

.daily-poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.daily-poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  cursor: default;
}

.daily-poster-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(94dvh, 900px);
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.daily-poster-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.daily-poster-sheet-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.2rem;
  line-height: 1.25;
}

.daily-poster-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.daily-poster-preview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 17, 24, 0.58), rgba(9, 17, 24, 0.12) 42%, rgba(9, 17, 24, 0.82));
}

.daily-poster-preview-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem;
}

.daily-poster-brand,
.daily-poster-date,
.daily-poster-source,
.daily-poster-zh {
  margin: 0;
}

.daily-poster-brand {
  color: #d9f38d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.daily-poster-date {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.daily-poster-preview blockquote {
  margin: auto 0 0.65rem;
  max-width: 94%;
  color: #fff;
  font-size: clamp(1.35rem, 4.7vw, 2rem);
  font-weight: 800;
  line-height: 1.22;
}

.daily-poster-zh {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.9rem, 3vw, 1.08rem);
  line-height: 1.55;
}

.daily-poster-source {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.daily-poster-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.daily-poster-footer > div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.daily-poster-footer strong {
  font-size: 0.9rem;
}

.daily-poster-footer span {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.65rem;
  line-height: 1.35;
}

.daily-poster-footer img {
  flex: 0 0 auto;
  width: 4.3rem;
  height: 4.3rem;
  padding: 0.25rem;
  border-radius: 0.4rem;
  background: #fff;
}

.daily-poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.daily-poster-actions > button {
  flex: 1 1 9rem;
}

.daily-poster-note {
  margin: 0.75rem 0 0;
  text-align: center;
}

.definition-block {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.definition-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.definition-text {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.definition-sentence {
  color: var(--text-strong);
}

.toast {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 0.75rem);
  z-index: 60;
  display: none;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--text-strong);
  color: var(--surface);
  box-shadow: var(--shadow-strong);
}

.toast.is-visible {
  display: block;
}

.toast.is-success {
  background: var(--brand-dark);
}

.toast.is-error {
  background: var(--danger);
}

.is-hidden,
[hidden] {
  display: none !important;
}

mark {
  background: var(--brand-soft);
  color: var(--text-strong);
  border-radius: 0.35rem;
  padding: 0 0.2rem;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 0.35rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
}

.reader-toolbar,
.topbar,
.section-heading,
.reader-info-row,
.vocab-item-head,
.card-meta-row,
.hero-header {
  width: 100%;
}

@media (max-width: 479px) {
  .topbar-logo {
    width: min(100%, 13rem);
  }

  .back-button:not(.is-hidden) + .topbar-copy .topbar-logo {
    width: min(100%, 9.5rem);
  }

  .topbar-meta {
    font-size: 0.76rem;
  }

  .hero-header,
  .card-list .card-meta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-header > :first-child,
  .card-list .card-meta-row > :first-child {
    width: 100%;
    min-width: 0;
  }

  .hero-header > .meta-chips {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-header .meta-chip {
    max-width: 100%;
    line-height: 1.3;
    white-space: normal;
  }

  .card-list .card-meta-row > .meta-chip {
    align-self: flex-start;
    white-space: nowrap;
  }

  .daily-review-prompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-review-actions > button {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (min-width: 640px) {
  :root {
    --page-gutter: 1.2rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-content,
  .topbar {
    max-width: 760px;
  }

  .modal-card {
    width: min(100%, 760px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.reading-completion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reading-completion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.article-references {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0;
}

.references-note {
  margin: 0;
  line-height: 1.55;
}

.reference-list {
  display: grid;
  gap: 0.75rem;
}

.reference-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.reference-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reference-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.98rem;
  line-height: 1.45;
}

.reference-source {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.reference-usage {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.reference-link {
  align-self: flex-start;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.reference-link:focus-visible,
.reference-link:hover {
  text-decoration: underline;
}

.reflection-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reflection-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-strong);
}

.reflection-input {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  padding: 0.875rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.reflection-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
