.vn-study-speaker {
  --vn-speaker-accent: #edc68c;
  box-sizing: border-box;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.vn-study-speaker > :where(.speaker, #speakerName, .name, .who) {
  font: inherit !important;
  color: inherit !important;
}
.vn-study-narrator { opacity: .58; }
.vn-study-hits { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.vn-study-hits[hidden] { display: none; }
.vn-study-hits .vn-study-word {
  position: absolute;
  display: block;
  pointer-events: auto;
  border-radius: 2px;
  cursor: pointer;
  color: transparent;
  overflow: hidden;
  user-select: none;
}
.vn-study-inline-word { cursor: pointer; }
:is(.vn-study-word,.vn-study-inline-word):hover, :is(.vn-study-word,.vn-study-inline-word):focus-visible {
  background: #edc27535;
  box-shadow: inset 0 -1px #f2bb68;
}
.vn-study-drag-sel {
  background: rgba(236, 190, 114, 0.34) !important;
  box-shadow: inset 0 -2px #f2c472 !important;
  border-radius: 3px;
}
.vn-study-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vn-study-reading-inline { font-size: 14.5px; color: #b9cde2; font-weight: 500; }
:is(.vn-study-word,.vn-study-inline-word):focus-visible { outline: 2px solid #efc98b; outline-offset: 1px; }
.vn-study-popup, .vn-study-vocabulary {
  box-sizing: border-box;
  color: #f9f1e3;
  background: #182433;
  border: 1px solid #8593a4;
  border-radius: 10px;
  box-shadow: 0 12px 36px #0007;
  font: 400 15.5px/1.5 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.vn-study-popup {
  z-index: 1400;
  position: fixed;
  padding: 15px 16px;
  width: min(340px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  overflow: auto;
}
.vn-study-popup strong { font-size: 22px; line-height: 1.25; }
.vn-study-popup p { margin: 5px 0 9px; }
.vn-study-popup small, .vn-study-vocabulary small { color: #d7cbb7; display: block; margin: 3px 0; font-size: 13.5px; }
.vn-study-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vn-study-reading { font-size: 14.5px; color: #c7d5e4; margin: 3px 0 7px !important; }
.vn-study-meaning { font-size: 17.5px; font-weight: 600; color: #fff4df; margin: 4px 0 9px !important; line-height: 1.4; }
.vn-study-particle { color: #b8d8be !important; background: rgba(135, 224, 176, 0.10); border: 1px solid rgba(135, 224, 176, 0.28); border-radius: 5px; padding: 3px 8px; margin: 4px 0 7px !important; font-size: 13.5px !important; }
.vn-study-ctx {
  font-size: 14px;
  line-height: 1.5;
  color: #ddd2bf;
  padding: 6px 9px;
  margin: 6px 0 10px !important;
  border-inline-start: 2px solid rgba(231, 183, 114, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 5px 5px 0;
}
.vn-pol-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  font: 500 11.5px/1.45 system-ui, sans-serif;
  letter-spacing: .01em;
  color: #aebcca;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.vn-pol-lv1, .vn-pol-lv2, .vn-pol-lv3, .vn-pol-lv4, .vn-pol-lv5 {
  color: #b7c4d3;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}
.vn-study-example {
  margin-top: 6px;
  padding: 6px 9px;
  border-inline-start: 2px solid rgba(231, 183, 114, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 5px 5px 0;
  font-size: 13.5px;
}
.vn-study-example p { margin: 0 0 2px !important; color: #f2e8d8; }
.vn-study-slow { min-width: 48px; padding-inline: 8px; font-size: 13px; }
.vn-study-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vn-study-button, .vn-study-book select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 4px 11px;
  border: 1px solid #8b9ba9;
  border-radius: 6px;
  background: #23384a;
  color: #fff5e9;
  color-scheme: dark;
  font: 600 13.5px/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.vn-study-book select option {
  background-color: #162230;
  color: #fff5e9;
}
.vn-study-button:hover { background: #345068; }
.vn-study-button[aria-pressed="true"] { color: #ffdf9f; border-color: #e7b772; }
.vn-study-button:focus-visible, .vn-study-book select:focus-visible { outline: 2px solid #f5cb82; outline-offset: 2px; }
.vn-study-menu-tab { margin: 4px; }
.vn-study-vocabulary {
  width: min(535px, calc(100vw - 20px));
  max-height: min(650px, calc(100dvh - 20px));
  margin: auto;
  padding: 17px;
  overflow: auto;
}
.vn-study-vocabulary::backdrop { background: #071018a0; }
.vn-study-book > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.vn-study-book > header h2 { margin: 0; color: inherit; font: 700 22px/1.3 system-ui, sans-serif; }
.vn-study-book > ul { margin: 12px 0; padding: 0; list-style: none; }
.vn-study-book > ul > li { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; padding-block: 9px; border-block-start: 1px solid #81909f47; }
.vn-study-book > ul > li p { margin: 3px 0; }
.vn-study-status { min-block-size: 1em; margin-bottom: 3px !important; color: #f6d18f; }
.vn-study-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vn-study-toolbar select { flex: 1; min-width: 140px; }
.vn-study-review-btn { border-color: rgba(230, 190, 122, .55) !important; background: rgba(230, 190, 122, .18) !important; color: #fff4dd !important; font-weight: 700 !important; }
.vn-study-review-btn:disabled { opacity: .4; cursor: not-allowed; }
.vn-study-quiz { margin: 12px 0; }
.vn-study-quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12.5px; color: rgba(255,245,233,.72); }
.vn-study-card { border-radius: 12px; border: 1px solid rgba(230,190,122,.32); background: rgba(255,255,255,.045); padding: 18px 16px; text-align: center; }
.vn-study-card-word { display: block; font-size: 26px; line-height: 1.3; color: #fff6e5; margin-bottom: 4px; }
.vn-study-card .vn-study-controls { justify-content: center; margin: 10px 0; }
.vn-study-card-ex { font-size: 13.5px; color: rgba(255,245,233,.78); line-height: 1.5; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.22); }
.vn-study-card-ans { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.vn-study-card-ans p { font-size: 18px; font-weight: 700; color: #ffd996; margin: 0 0 4px; }
.vn-study-card-ans small { font-size: 12.5px; color: rgba(255,245,233,.7); }
.vn-study-quiz-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.vn-study-done strong { font-size: 20px; color: #ffd996; display: block; margin-bottom: 6px; }

/* vn-genre-themes-v1 */
:root[data-vn-theme="court"] {
  --vn-speaker-accent: #e6be7a;
  --vn-speaker-fill: rgba(18, 22, 34, 0.92);
  --vn-speaker-stroke: rgba(230, 190, 122, 0.42);
  --vn-frame: #121622;
  --vn-light: #fff6e6;
}
:root[data-vn-theme="mystery"] {
  --vn-speaker-accent: #66c7d4;
  --vn-speaker-fill: rgba(13, 21, 28, 0.92);
  --vn-speaker-stroke: rgba(102, 199, 212, 0.42);
  --vn-frame: #0d151c;
  --vn-light: #e8f6f8;
}
:root[data-vn-theme="war"] {
  --vn-speaker-accent: #c98a5b;
  --vn-speaker-fill: rgba(20, 22, 26, 0.92);
  --vn-speaker-stroke: rgba(201, 138, 91, 0.42);
  --vn-frame: #14161a;
  --vn-light: #f5ede4;
}
:root[data-vn-theme="warm"] {
  --vn-speaker-accent: #e3a765;
  --vn-speaker-fill: rgba(28, 21, 16, 0.92);
  --vn-speaker-stroke: rgba(227, 167, 101, 0.44);
  --vn-frame: #1c1510;
  --vn-light: #fff3e2;
}
:root[data-vn-theme="modern"] {
  --vn-speaker-accent: #8cb4f5;
  --vn-speaker-fill: rgba(17, 20, 28, 0.92);
  --vn-speaker-stroke: rgba(140, 180, 245, 0.40);
  --vn-frame: #11141c;
  --vn-light: #eef3fc;
}
