/* Yanxi reader color palettes. Preview-only; never changes SEC table geometry. */
#page-reader .yanxi-theme-bar {
  display:flex; align-items:center; flex-wrap:wrap; gap:7px;
  margin:9px 0 13px; padding:9px 11px;
  border:1px solid #d7e4dc; border-radius:10px;
  background:#f7faf8; color:#425e54; font-size:13px;
}
#page-reader .yanxi-theme-bar .yanxi-theme-label { font-weight:650; margin-right:2px; }
#page-reader .yanxi-theme-bar button {
  min-height:34px; padding:5px 11px; border:1px solid #c7d5cd;
  border-radius:18px; font-size:13px; font-weight:600;
  color:#28483b; background:#fff; cursor:pointer;
}
#page-reader .yanxi-theme-bar button[aria-pressed="true"] {
  border-color:#2f7561; outline:2px solid #2f7561; outline-offset:0;
}
#page-reader[data-yanxi-reader-theme="warm"] {
  --yanxi-theme-bg:#f3e9d5; --yanxi-theme-alt:#ebe0c9;
  --yanxi-theme-ink:#493f32; --yanxi-theme-border:#d5c8ae;
  --yanxi-theme-link:#73542f;
}
#page-reader[data-yanxi-reader-theme="sage"] {
  --yanxi-theme-bg:#e3eee7; --yanxi-theme-alt:#d9e7df;
  --yanxi-theme-ink:#2d443b; --yanxi-theme-border:#bfd3c6;
  --yanxi-theme-link:#245f51;
}
#page-reader[data-yanxi-reader-theme="dark"] {
  --yanxi-theme-bg:#262d2f; --yanxi-theme-alt:#303a3b;
  --yanxi-theme-ink:#e4eae6; --yanxi-theme-border:#576564;
  --yanxi-theme-link:#a2dfcf;
}
#page-reader[data-yanxi-reader-theme="warm"],
#page-reader[data-yanxi-reader-theme="sage"],
#page-reader[data-yanxi-reader-theme="dark"] {
  background-color:var(--yanxi-theme-bg) !important;
  color:var(--yanxi-theme-ink) !important;
}
#page-reader:is([data-yanxi-reader-theme="warm"], [data-yanxi-reader-theme="sage"], [data-yanxi-reader-theme="dark"]) :is(.card, .sec-document, .sec-table-scroll, .sec-document table, .sec-document thead, .sec-document tbody, .sec-document th, .sec-document td) {
  background-color:var(--yanxi-theme-bg) !important;
  color:var(--yanxi-theme-ink) !important;
  border-color:var(--yanxi-theme-border) !important;
}
#page-reader:is([data-yanxi-reader-theme="warm"], [data-yanxi-reader-theme="sage"], [data-yanxi-reader-theme="dark"]) .sec-document tr:nth-child(even) > :is(td, th) {
  background-color:var(--yanxi-theme-alt) !important;
}
#page-reader:is([data-yanxi-reader-theme="warm"], [data-yanxi-reader-theme="sage"], [data-yanxi-reader-theme="dark"]) .sec-document :is(p, li, h1, h2, h3, h4, h5, h6, div, span, font, b, strong, em, i) {
  color:var(--yanxi-theme-ink) !important;
}
#page-reader:is([data-yanxi-reader-theme="warm"], [data-yanxi-reader-theme="sage"], [data-yanxi-reader-theme="dark"]) .sec-document a {
  color:var(--yanxi-theme-link) !important;
}
#page-reader:is([data-yanxi-reader-theme="warm"], [data-yanxi-reader-theme="sage"], [data-yanxi-reader-theme="dark"]) .yanxi-theme-bar {
  background-color:var(--yanxi-theme-alt) !important;
  color:var(--yanxi-theme-ink) !important;
  border-color:var(--yanxi-theme-border) !important;
}
#page-reader[data-yanxi-reader-theme="dark"] :is(.card .muted, .card .mini, .card .subtle-label, .sec-reader-feedback) {
  color:#c0d0c9 !important;
}
#page-reader[data-yanxi-reader-theme="dark"] .yanxi-theme-bar button {
  color:#e4eae6; background:#3c4748; border-color:#7c9890;
}
#page-reader[data-yanxi-reader-theme="dark"] :is(.intro, .notice, .inline-notice) {
  background-color:var(--yanxi-theme-alt) !important;
  border-color:var(--yanxi-theme-border) !important;
  color:var(--yanxi-theme-ink) !important;
}
#page-reader[data-yanxi-reader-theme="dark"] :is(.intro *, .notice *, .inline-notice *, .card h1, .card h2, .card h3, .card small, .card .muted, .card .subtle-label) {
  color:var(--yanxi-theme-ink) !important;
}
