.vocab-view-list {
  margin-bottom: 4px;
}

.module-secondary-nav .vocab-view-choice {
  position: relative;
  padding-left: 30px;
}

.module-secondary-nav .vocab-view-choice::before {
  position: absolute;
  left: 13px;
  display: block;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
  content: "";
}

.story-series-mode .frequency-choice-list {
  display: none;
}

.story-series-mode .workspace {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.story-series-mode .sidebar {
  border-right: 0;
}

.story-series-mode .vocab-panel-head,
.story-series-mode .table-pane,
.story-series-mode .detail-pane {
  display: none;
}

.story-series {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 24px 24px 0;
  background: var(--surface);
}

.story-series-head {
  display: grid;
  min-width: 0;
  grid-template-rows: 68px auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.story-series-head > h2 {
  align-self: center;
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.story-chapter-picker {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: 6px 0 10px;
}

.story-chapter-tabs {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 22px;
}

.story-chapter-tab {
  position: relative;
  display: flex;
  min-width: 0;
  height: 24px;
  align-items: center;
  gap: 7px;
  padding: 0 0 7px;
  overflow: hidden;
  border: 0;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.story-chapter-tab span:first-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.story-chapter-tab span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-chapter-tab:hover {
  color: var(--text);
}

.story-chapter-tab.active {
  color: var(--text);
  font-weight: 500;
}

.story-chapter-tab.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--text);
  content: "";
}

.story-reader {
  --story-divider-position: 50%;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.story-scroll {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.story-scroll::-webkit-scrollbar,
.story-keywords-scroll::-webkit-scrollbar {
  width: 8px;
}

.story-scroll::-webkit-scrollbar-thumb,
.story-keywords-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 9999px;
  background: var(--line-strong);
  background-clip: padding-box;
}

.story-bilingual-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 26px 24px 82px;
}

.story-illustration {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 6 / 1;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2eee6;
}

.story-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-article-title {
  min-width: 0;
  padding: 0 22px 22px;
}

.story-article-title-en,
.story-paragraph-en {
  padding-left: 0;
}

.story-article-title-zh,
.story-paragraph-zh {
  padding-right: 0;
}

.story-article-title > span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.story-article-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: 0;
}

.story-article-title-en h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.story-article-title-zh h3 {
  font-family: var(--font-serif);
}

.story-paragraph {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0 22px 24px;
  color: #2c2e32;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.66;
}

.story-paragraph-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.62;
  padding-left: 0;
}

.story-paragraph-en.story-paragraph-locked {
  color: var(--text);
  filter: blur(5px);
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

.story-paragraph-zh {
  padding-right: 0;
}

.story-paragraph strong {
  color: inherit;
  font-weight: 700;
}

.story-sentence {
  color: #777B86;
  cursor: pointer;
  transition: box-shadow 140ms ease;
}

.story-sentence.is-active {
  color: var(--text);
  box-shadow: inset 0 -5px var(--highlight);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.story-paragraph-zh .story-sentence {
  cursor: default;
}

.story-paragraph-en strong[data-story-term] {
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.story-paragraph-en strong[data-story-term]:hover,
.story-paragraph-en strong[data-story-term]:focus-visible,
.story-paragraph-en strong[data-story-term].selected {
  background: var(--surface-soft);
}

.story-paragraph-en strong[data-story-term]:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 2px;
}

.story-paragraph-zh {
  transition: filter 160ms ease, opacity 160ms ease;
}

.story-reader.chinese-hidden .story-paragraph-zh,
.story-reader.chinese-hidden .story-article-title-zh {
  opacity: 0.36;
  filter: blur(7px);
  user-select: none;
}

.story-reader.chinese-hidden .story-paragraph-zh:hover {
  opacity: 1;
  filter: none;
}

.story-term-detail {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  bottom: 58px;
  left: var(--story-divider-position);
  height: auto;
  min-width: 0;
  overflow-y: auto;
  border-left: 1px dashed var(--line-strong);
  background: var(--surface);
}

.story-term-detail[hidden] {
  display: none;
}

.story-reader.term-detail-open .story-toolbar-left [data-story-hide-chinese] {
  visibility: hidden;
}

.story-toolbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.98);
}

.story-toolbar-half {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
}

.story-toolbar-right {
  justify-content: flex-end;
}

.story-playback-error {
  max-width: 260px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.story-tool-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.story-tool-button small {
  color: var(--faint);
  font-size: 10px;
  font-weight: 400;
}

.story-tool-button:focus-visible,
.story-chapter-tab:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.story-tool-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  transition: color 140ms ease, background-color 140ms ease;
}

.story-tool-icon-svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
}

.story-tool-icon-filled {
  display: none;
}

.story-tool-button:hover .story-tool-icon {
  color: var(--text);
  background: var(--surface-soft);
}

.story-tool-button:hover .story-tool-icon-outline {
  display: none;
}

.story-tool-button:hover .story-tool-icon-filled {
  display: block;
}

.story-sentence-nav:disabled {
  color: var(--faint);
  cursor: default;
  opacity: 0.46;
}

.story-sentence-nav:disabled .story-tool-icon {
  color: var(--faint);
}

.story-pause-icon {
  display: none;
}

.story-play-button.playing .story-play-icon {
  display: none;
}

.story-play-button.playing .story-pause-icon {
  display: grid;
}

.story-keywords-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 58px;
  visibility: hidden;
  opacity: 0;
  background: var(--surface);
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.story-series.keywords-open .story-keywords-overlay {
  visibility: visible;
  opacity: 1;
  transition: opacity 140ms ease;
}

.story-keywords-scroll {
  min-height: 0;
  padding: 22px 24px 16px;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.story-keyword-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.story-keyword-column {
  min-width: 0;
  border-right: 1px dashed var(--line-strong);
  padding-right: 32px;
}

.story-keyword-column:last-child {
  border-right: 0;
  padding-right: 0;
}

.story-keyword-row {
  display: grid;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(78px, 42%);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.story-keyword-row strong {
  min-width: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.story-keyword-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.story-keywords-footer {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--surface);
}

.story-series-empty {
  display: grid;
  place-content: center;
  min-height: 0;
  padding: 48px;
  text-align: center;
}

.story-series-empty h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
}

.story-series-empty p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.story-series-skeleton-head {
  gap: 22px;
  align-content: center;
}

.story-skeleton-title {
  width: 290px;
  height: 32px;
}

.story-skeleton-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.story-skeleton-tab {
  width: 82%;
  height: 12px;
}

.story-reader-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 40px 32px;
}

.story-skeleton-column {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 0 30px;
}

.story-skeleton-column:first-child {
  padding-left: 0;
}

.story-skeleton-column:last-child {
  padding-right: 0;
  border-left: 1px dashed var(--line-strong);
}

.story-skeleton-article-title {
  width: 48%;
  height: 26px;
}

.story-skeleton-paragraph,
.story-skeleton-paragraph-short {
  height: 58px;
}

.story-skeleton-paragraph {
  width: 100%;
}

.story-skeleton-paragraph-short {
  width: 82%;
}
