:root {
  font-family:
    Arial,
    "Helvetica Neue",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #182c46;
  background: #e3effc;
  font-synthesis: none;
  --blue: #1677ff;
  --muted: #647b96;
  --line: #dceafa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#app { flex: 1; }
.site-footer { padding: 18px 20px 24px; text-align: center; font-size: 12px; color: var(--muted); }
.site-footer a:hover { text-decoration: underline; }
body:has(.sidebar) .site-footer { margin-left: 224px; }
@media (max-width: 760px) {
  body:has(.sidebar) .site-footer { margin-left: 0; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.8;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #8b95a5;
  text-transform: uppercase;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 56px;
}
.brand img {
  flex-shrink: 0;
  width: 39px;
  height: 39px;
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8b95a5;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  margin-bottom: 8px;
  color: #778092;
  font-size: 14px;
  border-radius: 12px;
}
.nav-link.active {
  background: #eff5ff;
  color: #3273db;
  font-weight: 600;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  padding: 12px 8px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf3fe;
  color: #5886c8;
  display: grid;
  place-items: center;
}
.shell {
  margin-left: 224px;
}
.topbar {
  height: 78px;
  padding: 0 48px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #e3effc;
  font-size: 12px;
  color: #86909f;
}
.sync {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
}
.synced .dot {
  background: #4fa987;
}
.failed .dot {
  background: #d98375;
}
.syncing .dot,
.pending .dot {
  background: #d7ae61;
}
.content {
  max-width: 1200px;
  margin: auto;
  padding: 43px 48px 70px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.heading p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.pill {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 11px;
  background: #fff;
  color: #647b96;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #e3f2ff, #f5fcff);
  border: 1px solid #cce5ff;
  border-radius: 20px;
  padding: 35px 38px;
  margin-bottom: 26px;
  min-height: 185px;
}
.hero h2 {
  font-size: 27px;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.hero p {
  font-size: 13px;
  color: #7a8ca4;
  margin: 0;
}
.hero .eyebrow {
  color: #7898c0;
  margin-bottom: 14px;
}
.hero-art {
  position: absolute;
  right: 57px;
  top: 25px;
  width: 170px;
  height: 145px;
  transform: rotate(-9deg);
}
.book {
  position: absolute;
  width: 112px;
  height: 131px;
  right: 9px;
  top: 5px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 5px 12px 12px 5px;
  box-shadow: 7px 8px 0 #dce7f7;
  padding: 24px 17px;
}
.book:before {
  content: "Aa";
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 38px;
  color: #6088c5;
}
.book:after {
  content: "";
  display: block;
  height: 3px;
  background: #dce7f7;
  width: 57px;
  margin-top: 13px;
  box-shadow: 0 9px #e9eff8;
}
.leaf {
  position: absolute;
  width: 40px;
  height: 65px;
  background: #91d7f5;
  border-radius: 0 80% 0 80%;
  left: 9px;
  bottom: 6px;
  transform: rotate(-30deg);
}
.import-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 39px;
}
.import-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
  padding: 24px 23px;
  transition:
    transform 0.2s,
    border-color 0.2s;
  min-height: 166px;
}
.import-card:hover {
  border-color: #a8c8f4;
  transform: translateY(-3px);
}
.tile-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  border-radius: 12px;
  color: #648ad0;
  margin-bottom: 18px;
}
.tile-icon.purple {
  background: #e5f1ff;
  color: #287cdb;
}
.tile-icon.green {
  background: #e1f7ff;
  color: #098cc4;
}
.import-card h3 {
  margin: 0 0 9px;
  font-size: 15px;
}
.import-card p {
  font-size: 11px;
  color: #939baa;
  margin: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px;
}
.section-title h2 {
  margin: 0;
  font-size: 17px;
}
.link {
  color: #5984bd;
  font-size: 12px;
  padding: 6px;
}
.article-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 14px;
  cursor: pointer;
}
.article-cover {
  width: 75px;
  height: 91px;
  flex-shrink: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5f3ff;
  color: #3189dc;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 42px;
}
.article-card:nth-child(2n) .article-cover {
  background: #edf1f9;
  color: #9eafd0;
}
.article-info {
  flex: 1;
  min-width: 0;
}
.article-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 9px 0;
  line-height: 1.4;
}
.article-info p {
  font-size: 11px;
  color: #929aa8;
  margin: 0;
}
.tag {
  font-size: 10px;
  color: #246eb2;
  background: #e7f3ff;
  border-radius: 4px;
  padding: 3px 7px;
}
.progress {
  width: 95px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  color: #8a95a4;
}
.track {
  height: 4px;
  background: #eef1f6;
  border-radius: 99px;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #1684f5;
}
.tip {
  margin-top: 28px;
  border: 1px dashed #dce3ed;
  border-radius: 13px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: #8793a4;
}
.footer-note {
  text-align: center;
  font-size: 10px;
  color: #a6afbc;
  margin-top: 38px;
  letter-spacing: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 17px;
  border-radius: 9px;
  border: 1px solid #e3e8ef;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.danger {
  color: #c15b52;
  background: #fff5f4;
  border-color: #f4dcd9;
}
.btn.soft {
  background: #eef4ff;
  color: #527fbd;
  border-color: #e4edfc;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 20px;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-size: 12px;
  color: #718097;
  margin-bottom: 9px;
}
input,
textarea,
select {
  border: 1px solid #e2e7ef;
  border-radius: 9px;
  background: #fff;
  padding: 12px 14px;
  color: #34445b;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #83aff0;
  box-shadow: 0 0 0 3px #eff5ff;
}
input.full,
textarea {
  width: 100%;
}
textarea {
  min-height: 250px;
  line-height: 1.85;
  resize: vertical;
  font-size: 15px;
}
.search {
  min-width: 250px;
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  align-items: center;
  margin-bottom: 22px;
  padding: 4px 0;
}
.tab {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 12px;
  color: #8490a1;
  border: 1px solid transparent;
}
.tab.active {
  color: #3779d6;
  background: #edf4ff;
  border-color: #dceafe;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  color: #93a0b3;
}
.empty .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 17px;
}
.empty h3 {
  color: #64758b;
  font-weight: 500;
}
.empty p {
  font-size: 13px;
}
.notice {
  border-radius: 9px;
  background: #fff8e9;
  color: #a08654;
  font-size: 12px;
  padding: 13px 16px;
  margin-bottom: 18px;
  line-height: 1.8;
}
.notice.info {
  background: #edf4ff;
  color: #708bab;
}
.reader-wrap {
  max-width: 840px;
  margin: auto;
}
.reading-tools {
  position: sticky;
  top: 0;
  background: #e3effcef;
  backdrop-filter: blur(10px);
  z-index: 3;
  padding: 15px 0;
  margin-bottom: 5px;
}
.toggle {
  font-size: 12px;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 9px;
  color: #69788d;
}
.toggle.on {
  background: #edf4ff;
  color: #1677ff;
  border-color: #cbdffb;
}
.paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px 46px;
}
.paper h1 {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 31px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.article-meta {
  font-size: 11px;
  color: #929eaf;
  display: flex;
  gap: 14px;
  margin: 18px 0 30px;
  padding-bottom: 24px;

}
.sentence {
  position: relative;
  border-radius: 5px;
  margin: 0 0 6px;
  scroll-margin-top: 100px;
  transition: background 0.2s;
}
.sentence.paragraph {
  margin-top: 14px;
}
.sentence.playing,
.sentence.target {
  background: #eef5ff;
}
.english {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 22px;
  line-height: 1.65;
  letter-spacing: 0;
  color: #303b49;
  cursor: text;
}
.token {
  padding: 2px 0;
  border-radius: 2px;
  cursor: pointer;
}
.token:hover {
  color: #3679d2;
  background: #eff5ff;
}
.token.word {
  text-decoration: underline;
  text-decoration-color: #1677ff;
  text-underline-offset: 5px;
}
.token.phrase {
  background: transparent;
  text-decoration: underline;
  text-decoration-color: #1677ff;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.token.saved {
  background: #fff0a8;
}
.translation {
  font-size: 14px;
  color: #7c8798;
  line-height: 1.9;
  margin: 7px 0 16px;
}
.sentence-action {
  font-size: 10px;
  color: #bcc4ce;
  position: absolute;
  right: -29px;
  top: 6px;
  padding: 5px;
}
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: #8492a5;
  font-size: 12px;
}
.play-btn {
  background: #1677ff;
  color: white;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.play-btn .icon {
  width: 15px;
  height: 15px;
}
.vocab-row {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: center;
}
.vocab-row:last-child {
  border: 0;
}
.vocab-word {
  min-width: 170px;
  flex: 1;
}
.vocab-word strong {
  font-size: 17px;
  font-weight: 550;
}
.vocab-word small {
  display: block;
  margin-top: 6px;
  color: #99a3b0;
  font-size: 11px;
}
.vocab-meaning {
  font-size: 13px;
  color: #79879a;
  flex: 1;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 19px;
  border-radius: 12px;
}
.stat strong {
  font-size: 25px;
  font-weight: 550;
  display: block;
  margin-bottom: 9px;
}
.stat span {
  font-size: 11px;
  color: #93a0b1;
}
.context {
  border-left: 2px solid #d8e6fa;
  padding: 0 0 0 20px;
  margin: 25px 0;
}
.context p {
  font-size: 15px;
}
.context .muted {
  font-size: 13px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #23304455;
  backdrop-filter: blur(3px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: #fff;
  border-radius: 20px;
  padding: 29px;
  max-width: 590px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 18px 80px #263a5b22;
}
.modal.wide {
  max-width: 790px;
}
.modal h2 {
  font-size: 23px;
}
.modal-close {
  float: right;
  color: #9ba5b4;
  font-size: 22px;
}
.definition-word {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 32px;
  margin: 12px 0;
}
.definition-meaning {
  font-size: 18px;
  margin: 18px 0;
}
.example {
  padding: 18px;
  background: #f0f8ff;
  border-radius: 10px;
  margin: 19px 0;
  font-size: 15px;
}
.example small {
  display: block;
  font-size: 12px;
  color: #8b97a8;
  margin-top: 9px;
  line-height: 1.7;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.images {
  display: flex;
  gap: 12px;
  overflow: auto;
  margin-bottom: 20px;
}
.image-item {
  width: 150px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.image-item img {
  width: 132px;
  height: 130px;
  object-fit: contain;
}
.image-item button {
  font-size: 11px;
  color: #6780a1;
  padding: 6px;
}
.crop-preview {
  max-height: 320px;
  max-width: 100%;
  display: block;
  margin: auto;
}
.qr {
  display: block;
  width: 230px;
  margin: 20px auto;
}
.loader {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #d6e5fa;
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 23px;
  background: #283a50;
  color: white;
  border-radius: 10px;
  z-index: 50;
  display: none;
  font-size: 13px;
  max-width: 90%;
  line-height: 1.6;
}
.review-bar {
  position: fixed;
  bottom: 20px;
  left: calc(50% + 112px);
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 8px 40px #233c6222;
  border: 1px solid #e1e9f3;
  padding: 13px 20px;
  border-radius: 14px;
  z-index: 10;
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
}
.settings-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.settings-line p {
  margin: 5px 0 0;
  color: #8b98aa;
  font-size: 12px;
}
.settings-line strong {
  font-size: 14px;
  font-weight: 500;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 55px;
  }
  .hero {
    min-height: 205px;
    padding-top: 42px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 180px;
    padding: 30px 16px;
  }
  .shell {
    margin-left: 180px;
  }
  .content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .hero-art {
    right: 20px;
  }
  .hero h2 {
    font-size: 24px;
  }
  .review-bar {
    left: calc(50% + 90px);
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 100%;
    height: 67px;
    top: auto;
    bottom: 0;
    flex-direction: row;
    padding: 5px 15px;
    justify-content: space-around;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }
  .nav-link {
    flex-direction: column;
    gap: 4px;
    padding: 5px 27px;
    font-size: 10px;
    margin: 0;
  }
  .shell {
    margin-left: 0;
    padding-bottom: 60px;
  }
  .topbar {
    height: 62px;
    padding: 0 22px;
  }
  .content {
    padding: 28px 19px 50px;
  }
  .heading {
    margin-bottom: 22px;
  }
  .heading h1 {
    font-size: 24px;
  }
  .heading .pill {
    display: none;
  }
  .hero {
    padding: 25px;
    min-height: 181px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero p {
    font-size: 11px;
    max-width: 200px;
  }
  .hero-art {
    right: -8px;
    top: 28px;
    transform: scale(0.74) rotate(-9deg);
    opacity: 0.8;
  }
  .import-grid {
    gap: 9px;
    margin-bottom: 29px;
  }
  .import-card {
    padding: 17px 12px;
    min-height: 143px;
  }
  .import-card h3 {
    font-size: 13px;
  }
  .import-card p {
    font-size: 10px;
    line-height: 1.5;
  }
  .tile-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 15px;
  }
  .article-card {
    padding: 17px;
    gap: 13px;
  }
  .article-cover {
    width: 49px;
    height: 70px;
    font-size: 32px;
  }
  .article-info h3 {
    font-size: 14px;
  }
  .progress {
    width: 52px;
    font-size: 10px;
  }
  .paper {
    padding: 28px 23px;
  }
  .paper h1 {
    font-size: 25px;
  }
  .english {
    font-size: 20px;
  }
  .sentence-action {
    right: -20px;
  }
  .toggle {
    padding: 9px 11px;
    font-size: 11px;
  }
  .stat-grid {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 16px;
  }
  .vocab-row {
    flex-wrap: wrap;
  }
  .vocab-word {
    min-width: 130px;
  }
  .vocab-meaning {
    flex-basis: 100%;
    order: 3;
  }
  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }
  .modal {
    max-height: 89vh;
    padding: 23px;
    border-radius: 19px;
  }
  .review-bar {
    left: 50%;
    bottom: 78px;
    max-width: 96%;
    white-space: nowrap;
    gap: 10px;
    padding: 10px;
  }
  .search {
    width: 100%;
    min-width: 0;
  }
  .topbar .eyebrow {
    font-size: 9px;
  }
  .heading .row {
    gap: 5px;
  }
  .btn {
    font-size: 12px;
    padding: 10px 13px;
  }
  .panel {
    padding: 20px;
  }
  .settings-line {
    align-items: flex-start;
  }
  .mobile-brand {
    display: block;
  }
}

.corner-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 23px;
  height: 23px;
  border: 2px solid #fff;
  background: #1677ff;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.import-editor{padding:30px}.main-title-input{font-size:22px;font-weight:600;height:60px}.draft-section{border-top:1px solid var(--line);padding:28px 0 20px;margin-top:24px}.section-label{font-size:13px;color:#718097;margin-bottom:12px}.section-foot{margin-top:9px;gap:10px;flex-wrap:wrap}.section-foot .btn{font-size:12px}.add-block{width:100%;border-style:dashed;background:#f9fbff;color:#5482bf;margin:12px 0 25px;padding:16px}.editor-footer{border-top:1px solid var(--line);padding-top:25px;gap:18px;flex-wrap:wrap}.reading-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 21px;padding-bottom:12px;border-bottom:1px solid var(--line)}.reading-section-heading h2{font-size:22px;line-height:1.5;margin:0}.reading-section-heading button{flex-shrink:0}.import-editor textarea{min-height:240px}@media(max-width:760px){.import-editor{padding:20px}.reading-section-heading h2{font-size:19px}.reading-section-heading .btn{font-size:11px;padding:9px}.editor-footer>.row{width:100%;justify-content:flex-end}}

/* Blue and white reading theme. */
::selection { background: #bce5ff; color: #123764; }
.brand strong, .stat strong { color: #176bd2; }
.hero h2 { color: #124f9d; }
.hero p, .hero .eyebrow { color: #507ba8; }
.paper { box-shadow: 0 12px 40px #1677ff08; }
.paper h1 { font-weight: 600; letter-spacing: 0; }
.token.word, .token.phrase, .token.saved { font-weight: 600; }
.token.saved { box-shadow: none; }
.btn.primary:hover, .play-btn:hover { background: #0862d9; }
.btn.soft, .link, .nav-link.active { color: #1467c9; }
.btn.soft, .nav-link.active { background: #e6f2ff; }

.reader-font { display:flex; align-items:center; gap:10px; margin:0 0 0 auto; font-size:12px; color:#647b96; white-space:nowrap; }
.reader-font select { padding:6px 10px; }
.token[title]:focus-visible { outline:2px solid #1677ff; outline-offset:3px; }
.player { flex-wrap:wrap; }

.saved-fragment { background:#fff0a8; border-radius:2px; }

#selection-tools { position:fixed; bottom:86px; left:50%; transform:translateX(-50%); z-index:15; width:max-content; max-width:calc(100vw - 24px); background:white; border:1px solid #c9e0ff; box-shadow:0 8px 36px #17477a26; border-radius:14px; padding:14px; }
.selection-text { display:block; max-width:460px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; margin-bottom:10px; color:#21466c; }
#selection-tools button:disabled { cursor:default; }

/* Two aligned rows: audio first, reading preferences second. */
.reading-tools { padding:16px 0 20px; margin-bottom:0; }
.reading-tools .player { padding:0 0 14px; margin-bottom:14px; border-bottom:1px solid #dceafa; gap:14px; }
.reading-tools .player select { padding:8px 12px; }
.reading-preferences { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.reading-preferences > .row { flex-wrap:nowrap; gap:8px; }
.reading-preferences .toggle { white-space:nowrap; }
@media(max-width:480px) {
  .reading-preferences { gap:8px; }
  .reading-preferences > .row { gap:5px; }
  .reading-preferences .toggle { padding:9px 6px; font-size:11px; }
  .reading-preferences .reader-font { gap:5px; font-size:11px; }
  .reading-preferences .reader-font select { padding:7px 3px; }
  .reading-tools .player { gap:8px; font-size:11px; }
  .reading-tools .player .link { padding:4px; font-size:11px; }
}

/* Playback order stays beside the heading, above the mode buttons. */
.review-settings { margin-top:16px; padding:16px 20px; }
.review-settings-header { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.review-settings strong { font-size:14px; white-space:nowrap; }
.review-settings-row { display:flex; align-items:center; }
.review-modes { display:flex; flex-wrap:wrap; gap:8px; }
.review-modes .toggle { white-space:nowrap; }
.review-order { display:flex; flex:none; gap:10px; align-items:center; margin-left:auto; font-size:12px; color:#647b96; white-space:nowrap; }
.review-order select { padding:9px; }
@media(max-width:760px) {
  .review-settings { padding:14px 16px; }
  .review-settings-header { gap:8px; }
  .review-order { gap:6px; }
  .review-order select { padding:8px 4px; }
  .review-modes .toggle { padding:9px 8px; font-size:12px; }
  .review-modes { gap:6px; }
  .review-bar { white-space:normal; flex-wrap:wrap; justify-content:center; width:max-content; }
}

.vocab-group-summary { margin-top:8px; gap:8px; }
.vocab-disclosure { color:#1467c9; border:0; padding:8px 10px; background:transparent; }

.promotion-banner { position:relative; display:block; border-radius:20px; overflow:hidden; margin-bottom:26px; background:#fff; }
.promotion-banner img { display:block; width:100%; aspect-ratio:5/2; object-fit:contain; }
.promotion-label { position:absolute; right:10px; bottom:8px; font-size:10px; color:#fff; background:#233a5680; border-radius:4px; padding:2px 6px; }

.reading-section-heading.module-boundary { border-top:1px solid var(--line); padding-top:28px; margin-top:28px; }

.reading-section-heading { border-bottom:0; }
.license-manager { max-width:1100px; margin:auto; padding:32px 24px; }
.license-manager .panel { margin:24px 0; }
.license-manager label { display:block; margin-bottom:18px; }
.license-manager input,.license-manager select { margin-top:8px; }
.license-manager .settings-line { flex-wrap:wrap; gap:14px; }
.license-manager #issued { margin-top:24px; }
.license-manager textarea { min-height:80px; }

.license-request-code { padding:20px; border-radius:12px; background:#e6f2ff; letter-spacing:2px; word-break:break-all; }

.license-manager [hidden] { display: none !important; }

.license-manager label { display:flex; flex-direction:column; align-items:stretch; gap:4px; max-width:560px; }
.license-manager input,.license-manager select { width:100%; }
.license-manager .row.wrap label { min-width:150px; }
.license-manager #accounts .settings-line > div:first-child { flex:1; min-width:220px; overflow-wrap:anywhere; }

.edit-module { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.edit-add-module { width:100%; margin-top:22px; border-style:dashed; color:#1467c9; background:#f7fbff; }
