/* [next]/internal/font/google/manrope_9e067a5b.module.css [app-client] (css) */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../media/ffc7b595a48b6846-s.3q9gh2jvntrwt.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../media/276a8f4fe816cb6b-s.2v2sz4qlut9s1.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../media/82b67ad56d243b47-s.09bkcrcuv-0po.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../media/33ee198db9637ef4-s.23qr8woi9ij9e.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../media/fbb7028efdf70529-s.1_0gbi-gsbqmd.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../media/82450a180bcad83c-s.p.0p-wng2nn8o-p.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope Fallback;
  src: local(Arial);
  ascent-override: 103.31%;
  descent-override: 29.07%;
  line-gap-override: 0.0%;
  size-adjust: 103.19%;
}

.manrope_9e067a5b-module__vT7MWq__className {
  font-family: Manrope, Manrope Fallback;
  font-style: normal;
}

.manrope_9e067a5b-module__vT7MWq__variable {
  --font-manrope: "Manrope", "Manrope Fallback";
}

/* [next]/internal/font/google/inter_2fe1ab3d.module.css [app-client] (css) */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/46a9e2f250689b4a-s.0-dom-5bn10r2.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/76b70a1dbe058eb5-s.1y4-pdgsjb-pw.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2fb76073e23fd9e4-s.3lvt2whj97whp.woff2") format("woff2");
  unicode-range: U+1F??;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6131cbbf5549afa2-s.2uwcyprjm3xu3.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/45462fd7b7c12654-s.0k62hbripvv8p.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/ba63f6a0e436df8e-s.3-6t-g6q0vh0a.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/07c7676b89ed2778-s.p.2bn3s6zvc0dyp.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter Fallback;
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.0%;
  size-adjust: 107.12%;
}

.inter_2fe1ab3d-module__-T-KAq__className {
  font-family: Inter, Inter Fallback;
  font-style: normal;
}

.inter_2fe1ab3d-module__-T-KAq__variable {
  --font-inter: "Inter", "Inter Fallback";
}

/* [project]/styles/globals.css [app-client] (css) */
:root {
  --bg: #f9f9ff;
  --panel: #fff;
  --text: #191c21;
  --muted: #191c2175;
  --line: #191c2114;
  --brand: #005ab5;
  --brand-soft: #005ab51a;
  --danger: #b00020;
  --reader-tts-accent: #138a61;
  --reader-tts-accent-soft: #daf3e8;
  --reader-tts-panel-max-height: clamp(180px, 30vh, 320px);
  --reader-tts-segment-active-bg: #138a611f;
  --reader-tts-highlight-fill: #138a612b;
  --reader-tts-highlight-stroke: #0c6848d1;
  --page-frame: #eceef3;
  --reader-shell: #f9f9ff;
  --reader-toolbar-bg: #fff;
  --reader-toolbar-height: auto;
  --reader-rail-bg: #fff;
  --reader-rail-subtle: #191c210a;
  --reader-control-surface: #191c210e;
  --reader-control-surface-hover: #191c2116;
  --reader-control-fg: #191c21b8;
  --reader-control-muted: #191c2175;
  --reader-card: #fff;
  --reader-shadow: 0 12px 40px -4px #191c1d0f;
  --app-shell-rail-bg: #f9f9fff5;
  --app-shell-rail-border: #191c210d;
  --app-shell-rail-shadow: 0 12px 30px #191c210a;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-serif: "Inter", "Georgia", serif;
  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --touch-min: 2.75rem;
}

html[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --bg: #131313;
  --panel: #131313;
  --text: #f9f9ff;
  --muted: #ffffff75;
  --line: #ffffff1a;
  --brand: #005ab5;
  --brand-soft: #005ab524;
  --reader-tts-accent: #41c695;
  --reader-tts-accent-soft: #41c69524;
  --reader-tts-segment-active-bg: #41c6952e;
  --reader-tts-highlight-fill: #41c69533;
  --reader-tts-highlight-stroke: #64e6aad9;
  --page-frame: #191c21;
  --reader-shell: #131313;
  --reader-toolbar-bg: #131313;
  --reader-rail-bg: #131313;
  --reader-rail-subtle: #ffffff0d;
  --reader-control-surface: #ffffff0f;
  --reader-control-surface-hover: #ffffff1a;
  --reader-control-fg: #ffffffc7;
  --reader-control-muted: #ffffff75;
  --reader-card: #ffffff0d;
  --reader-shadow: none;
  --app-shell-rail-bg: #131313fa;
  --app-shell-rail-border: #ffffff0d;
  --app-shell-rail-shadow: none;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  transition: background-color .18s, color .18s;
}

html[data-theme="dark"] body {
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

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

.settings-select {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

.settings-select option {
  background: var(--panel);
  color: var(--text);
}

html[data-theme="dark"] .settings-select {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  padding: .35rem .65rem;
}

button:hover {
  border-color: var(--brand);
}

.reader-sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.login-page, .library-page, .unit-page {
  min-height: 100vh;
  padding: 1.2rem;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  width: min(100%, 26.25rem);
  margin: 7vh auto;
  padding: 1rem;
  box-shadow: 0 8px 24px #0000000f;
}

.auth-card form {
  gap: .6rem;
  display: grid;
}

.auth-card input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: var(--touch-min);
  padding: .5rem;
}

.auth-card button {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.auth-hint {
  color: var(--muted);
  font-size: .9rem;
}

.auth-redirecting {
  padding: 1rem;
}

.library-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  display: flex;
}

.library-user-row {
  align-items: center;
  gap: .6rem;
  display: flex;
}

.library-upload-card, .reader-error-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  margin-top: 1rem;
  padding: .9rem;
}

.library-upload-form {
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  display: grid;
}

.library-upload-card, .library-upload-form label {
  min-width: 0;
}

.library-upload-form input, .library-upload-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.library-upload-form input[type="file"] {
  text-overflow: ellipsis;
  overflow: hidden;
}

.library-upload-feedback {
  margin-top: .8rem;
}

.library-upload-form label, .reader-selection-annotation-form label {
  gap: .35rem;
  display: grid;
}

.library-upload-form input, .library-upload-form select, .reader-selection-annotation-form textarea, .reader-annotation-editor textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: var(--touch-min);
  background: var(--panel);
  color: var(--text);
  padding: .5rem;
}

.library-inline-error, .reader-inline-warning {
  color: var(--danger);
  margin-top: .7rem;
}

.reader-inline-status, .library-inline-status {
  color: var(--muted);
  margin-top: .7rem;
}

.library-upload-selected-file, .library-upload-success {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  margin-top: .4rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .library-upload-selected-file, .library-upload-success {
    background: color-mix(in srgb, var(--panel) 88%, transparent);
  }
}

.library-upload-selected-file, .library-upload-success {
  padding: .75rem;
}

.library-upload-selected-file {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.library-upload-selected-file > div {
  flex: 12rem;
  min-width: 0;
}

.library-upload-selected-file > button {
  flex-shrink: 0;
}

.library-upload-filename {
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}

.library-upload-success p {
  overflow-wrap: anywhere;
}

.library-upload-selected-file p, .library-upload-success p {
  margin: .2rem 0 0;
}

.library-upload-success-actions {
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .7rem;
  display: flex;
}

.library-upload-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.library-upload-progress {
  background: var(--line);
  border-radius: 999px;
  height: .5rem;
  margin-top: .7rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .library-upload-progress {
    background: color-mix(in srgb, var(--line) 60%, transparent);
  }
}

.library-upload-progress {
  overflow: hidden;
}

.library-upload-progress-bar {
  border-radius: inherit;
  background: var(--accent, var(--text));
  width: 0;
  height: 100%;
  transition: width .2s;
}

.library-upload-progress-bar--indeterminate {
  width: 40%;
  animation: 1.1s ease-in-out infinite library-upload-progress-slide;
}

@keyframes library-upload-progress-slide {
  0% {
    margin-left: -40%;
  }

  100% {
    margin-left: 100%;
  }
}

.unit-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.unit-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: .8rem;
}

.unit-card-highlighted {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px #1e4f9126;
}

.unit-card-badge {
  color: var(--brand);
  background: #1e4f911a;
  border-radius: 999px;
  margin: .25rem 0 .5rem;
  padding: .2rem .55rem;
  font-size: .82rem;
  font-weight: 600;
  display: inline-block;
}

.unit-page-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
  display: flex;
}

.reader-root {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}

.reader-root--active-pane {
  position: relative;
}

.reader-root--active-pane:after {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  border: 1.5px solid #005ab54d;
  position: absolute;
  inset: 0;
}

.reader-toolbar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, #eef3ff 0%, #fafcff 100%);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  display: flex;
}

.toolbar-title {
  font-size: 1rem;
  font-weight: 600;
}

.toolbar-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .4rem;
  display: flex;
}

.toolbar-control {
  align-items: center;
  gap: .3rem;
  display: inline-flex;
}

.toolbar-zoom-controls {
  align-items: center;
  gap: .32rem;
  display: inline-flex;
}

.toolbar-zoom-title {
  color: var(--muted);
  margin-right: .1rem;
  font-size: .86rem;
}

.toolbar-zoom-value {
  text-align: center;
  min-width: 4.25rem;
}

.toolbar-controls input, .toolbar-controls select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .3rem .5rem;
}

.reader-tts-trigger {
  align-items: center;
  gap: .45rem;
  display: inline-flex;
}

.reader-tts-trigger--ready, .reader-tts-trigger--generating {
  border-color: var(--reader-tts-accent);
}

.reader-tts-status {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .02em;
  background: #eef2f8;
  border-radius: 999px;
  align-items: center;
  padding: .12rem .45rem;
  font-size: .76rem;
  font-weight: 600;
  display: inline-flex;
}

.reader-tts-status--ready {
  background: var(--reader-tts-accent-soft);
  color: var(--reader-tts-accent);
}

.reader-tts-status--generating {
  color: #9a5b00;
  background: #fff1d5;
}

.reader-tts-status--failed, .reader-tts-status--unavailable {
  color: #a03333;
  background: #ffe2e1;
}

.zoom-osd {
  opacity: 0;
  pointer-events: none;
  z-index: 86;
  transition: opacity .15s, transform .15s;
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translate(-50%, -10px) scale(.98);
}

.zoom-osd.is-visible {
  opacity: 1;
  transform: translate(-50%) scale(1);
}

.zoom-osd-inner {
  color: #f7f9ff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #0f182ce0;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  align-items: center;
  gap: .5rem;
  min-width: 14.5rem;
  padding: .5rem .75rem;
  display: flex;
  box-shadow: 0 12px 28px #00000047;
}

.zoom-osd-icon {
  opacity: .95;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.zoom-osd-bar {
  background: #ffffff38;
  border-radius: 999px;
  flex: 1;
  height: .375rem;
  position: relative;
  overflow: hidden;
}

.zoom-osd-bar-fill {
  background: linear-gradient(90deg, #6ea6ff 0%, #9cc8ff 100%);
  border-radius: 999px;
  width: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.zoom-osd-label {
  text-align: right;
  min-width: 3rem;
  font-size: .88rem;
  font-weight: 600;
}

.reader-main-grid {
  grid-template-columns: clamp(15rem, 28vw, 22rem) 1fr;
  height: calc(100dvh - 8.125rem);
  display: grid;
}

.reader-left-rail {
  border-right: 1px solid var(--line);
  flex-direction: column;
  gap: 0;
  min-height: 0;
  display: flex;
}

.toc-header {
  gap: .5rem;
  display: grid;
}

.toc-header h2 {
  margin: 0;
  font-size: .98rem;
}

.toc-header input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .35rem .45rem;
}

.toc-expand-btn {
  padding: 0;
}

.toc-title-btn {
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  width: 100%;
  padding: .15rem .2rem;
}

.toc-pages-list button {
  text-align: left;
  width: 100%;
}

.toc-pages-list button.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.toc-empty {
  color: var(--muted);
  margin-top: .8rem;
}

.reader-tts-panel {
  border-top: 1px solid var(--line);
  background: #fbfefc;
}

.reader-tts-panel-toggle {
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: 0;
  display: flex;
}

.reader-tts-panel-body {
  max-height: var(--reader-tts-panel-max-height);
  gap: .75rem;
  padding: 0 .75rem .75rem;
  display: grid;
  overflow: auto;
}

.reader-tts-summary p, .reader-tts-section h3, .reader-tts-segment-title, .reader-tts-voice-label {
  margin: 0;
}

.reader-tts-section {
  gap: .45rem;
  display: grid;
}

.audio-manager__player {
  flex-basis: 100%;
  width: 100%;
  height: 36px;
  margin-top: .4rem;
}

.audio-manager__row {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.audio-manager__title, .audio-manager__segment-title {
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
}

.audio-manager__title {
  flex: auto;
  gap: .15rem;
  min-width: 0;
  padding: 0;
  display: grid;
}

.audio-manager__sync-status {
  vertical-align: middle;
  color: var(--reader-accent, #60a5fa);
  margin-left: .5rem;
  display: inline-flex;
}

.audio-manager__sync-status svg {
  width: 1rem;
  height: 1rem;
}

.audio-manager__sync-status--cloud {
  color: #22a06b;
}

.audio-manager__sync-status--not_synced {
  color: #d99b32;
}

.audio-manager__sync-status.is-syncing svg {
  animation: 1.2s linear infinite audio-sync-spin;
}

@keyframes audio-sync-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-manager__sync-status.is-syncing svg {
    animation: none;
  }
}

.audio-manager__segment-title {
  padding: 0;
  font-weight: 600;
}

.audio-manager__segment-title:enabled {
  cursor: pointer;
}

.audio-manager__play {
  flex: none;
}

.audio-manager__format-button, .audio-manager__download-button, .audio-manager__segment-download {
  justify-content: center;
  align-items: center;
  gap: .35rem;
  display: inline-flex;
}

.audio-manager__format-button svg, .audio-manager__download-button svg, .audio-manager__segment-download svg {
  width: .95rem;
  height: .95rem;
}

.audio-manager__player-wrap {
  gap: .25rem;
  margin-top: .4rem;
  display: grid;
}

.audio-manager__player-meta {
  opacity: .75;
  font-size: .8rem;
}

.reader-tts-section-header h3 {
  font-size: .94rem;
}

.reader-tts-control {
  gap: .3rem;
  display: grid;
}

.reader-tts-player-controls, .reader-tts-follow-toggle {
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  display: flex;
}

.reader-tts-progress input {
  width: 100%;
}

.reader-tts-segment-title {
  color: var(--text);
  font-weight: 600;
}

.reader-tts-segments li button {
  text-align: left;
  background: #fff;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  width: 100%;
  display: flex;
}

.reader-annotation-editor, .reader-selection-annotation-form {
  gap: .5rem;
  margin-top: .6rem;
  display: grid;
}

.reader-selection-annotation-form textarea, .reader-annotation-editor textarea {
  resize: vertical;
  min-height: 84px;
}

.reader-annotation-actions {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.reader-loading, .reader-error {
  margin-bottom: .8rem;
}

.reader-error {
  color: var(--danger);
}

.reader-notice {
  color: #0f5f38;
  margin-bottom: .8rem;
}

.reader-render-debug {
  background: #f8fbff;
  border: 1px solid #c8d6ff;
  border-radius: 10px;
  margin: .75rem 1rem 0;
  padding: .65rem;
}

.reader-render-debug h2 {
  margin: 0 0 .45rem;
  font-size: .95rem;
}

.reader-render-debug-pages {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .45rem;
  display: grid;
}

.reader-render-debug-previews {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .45rem;
  margin-top: .45rem;
  display: grid;
}

.reader-render-debug-card {
  background: #fff;
  border: 1px solid #d6e3ff;
  border-radius: 8px;
  padding: .45rem .5rem;
}

.reader-render-debug-card h3 {
  margin: 0 0 .25rem;
  font-size: .9rem;
}

.reader-render-debug-card p {
  color: #29476a;
  margin: .15rem 0;
  font-size: .8rem;
}

.reader-render-debug-card.is-low-ratio {
  border-color: #d94545;
}

.reader-render-debug-warning {
  font-weight: 600;
  color: #b91c1c !important;
}

.pdf-page-shell {
  isolation: isolate;
  box-sizing: content-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin: 0 auto 1rem;
  transition: background-color .16s;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 14px #00000012;
}

.pdf-page-stack {
  border-radius: inherit;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pdf-page-canvas, .pdf-page-dimmer, .pdf-page-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.pdf-page-canvas {
  z-index: 0;
  filter: none;
  transition: filter .16s;
}

.pdf-page-dimmer {
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: none;
}

.pdf-page-overlay {
  z-index: 2;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-touch-callout: none;
}

.pdf-page-translation-marker {
  z-index: 3;
  background: var(--annotation-color, var(--brand));
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -.6rem;
  display: inline-flex;
  position: absolute;
  left: -1.5rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .pdf-page-translation-marker {
    background: color-mix(in srgb, var(--annotation-color, var(--brand)) 88%, white);
  }
}

.pdf-page-translation-marker {
  color: #fff;
  pointer-events: none;
  box-shadow: 0 4px 12px #0f14232e;
}

.pdf-page-translation-marker svg {
  width: .68rem;
  height: .68rem;
}

.pdf-page-action {
  z-index: 4;
  position: absolute;
  top: .5rem;
  right: .5rem;
}

.pdf-page-ocr {
  opacity: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  transition: opacity .12s;
  display: flex;
  position: relative;
}

.pdf-page-ocr.is-pinned, .pdf-page-ocr.is-busy, .pdf-page-ocr.is-open, .pdf-page-shell:hover .pdf-page-ocr, .pdf-page-ocr:focus-within {
  opacity: 1;
}

.pdf-page-ocr-chip {
  border: 1px solid var(--line);
  background: var(--reader-rail-bg);
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  font-size: .76rem;
  line-height: 1.2;
  display: inline-flex;
  box-shadow: 0 4px 12px #0f142324;
}

.pdf-page-ocr.is-busy .pdf-page-ocr-chip {
  cursor: default;
}

.pdf-page-ocr-chip:hover, .pdf-page-ocr-chip:focus-visible {
  border-color: var(--brand);
}

.pdf-page-ocr-icon {
  width: .9rem;
  height: .9rem;
}

.pdf-page-ocr-icon.is-spinning {
  animation: 1s linear infinite audio-sync-spin;
}

@media (prefers-reduced-motion: reduce) {
  .pdf-page-ocr-icon.is-spinning {
    animation: none;
  }

  .pdf-page-ocr {
    transition: none;
  }
}

.pdf-page-ocr-menu {
  border: 1px solid var(--line);
  background: var(--reader-rail-bg);
  min-width: 12rem;
  max-width: 18rem;
  color: var(--text);
  border-radius: 12px;
  padding: .35rem;
  font-size: .8rem;
  box-shadow: 0 10px 28px #0f14232e;
}

.pdf-page-ocr-menu-item {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: .5rem .65rem;
  display: block;
}

.pdf-page-ocr-menu-item:hover, .pdf-page-ocr-menu-item:focus-visible {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .pdf-page-ocr-menu-item:hover, .pdf-page-ocr-menu-item:focus-visible {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
}

.pdf-page-ocr-menu-item.is-primary {
  color: var(--brand);
  font-weight: 600;
}

.pdf-page-ocr-confirm {
  padding: .65rem;
}

.pdf-page-ocr-confirm p {
  color: var(--muted);
  margin: .35rem 0 .5rem;
}

.pdf-page-ocr-confirm-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem;
  display: flex;
}

.pdf-page-ocr-confirm-actions .pdf-page-ocr-menu-item {
  width: auto;
}

.pdf-page-blend-overlay {
  pointer-events: none;
  mix-blend-mode: multiply;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.pdf-page-shell[data-night-dimming="1"] .pdf-page-dimmer {
  background: #ffad4f1a;
}

.pdf-page-shell[data-night-dimming="2"] .pdf-page-dimmer {
  background: #ffad4f2e;
}

.pdf-page-shell[data-night-dimming="3"] .pdf-page-dimmer {
  background: #ffad4f42;
}

.pdf-page-shell[data-night-dimming="4"] .pdf-page-dimmer {
  background: #ffad4f57;
}

.pdf-page-shell[data-night-dimming="5"] .pdf-page-dimmer {
  background: #ffad4f6b;
}

.pdf-page-shell[data-night-dimming="6"] .pdf-page-dimmer {
  background: #ffad4f80;
}

.pdf-page-shell[data-paper-dark="true"] {
  background: #1b1b1b;
}

.pdf-page-shell[data-paper-dark="true"] .pdf-page-canvas {
  filter: invert(88.8%) hue-rotate(180deg);
}

.pdf-page-shell[data-paper-dark="true"] .pdf-page-dimmer {
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  .pdf-page-shell, .pdf-page-canvas {
    transition: none;
  }
}

.pdf-page-placeholder {
  background: repeating-linear-gradient(45deg, #f7f9ff, #f7f9ff 8px, #f1f4fa 8px 16px);
  width: 100%;
  height: 100%;
}

.selection-popover {
  z-index: 120;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  width: min(20rem, 100vw - 2rem);
  padding: .7rem;
  position: fixed;
  box-shadow: 0 10px 24px #00000024;
}

.selection-popover--toolbar {
  color: #fff;
  background: #16181d;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  width: auto;
  max-width: min(600px, 100vw - 16px);
  padding: .32rem;
  box-shadow: 0 24px 56px #00000052;
}

.selection-popover--translation {
  color: #f5f7fb;
  background: #15181d;
  border: 1px solid #ffffff14;
  border-radius: 18px;
  width: min(28rem, 100vw - 2rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  overflow: auto;
  box-shadow: 0 24px 56px #00000057;
}

.selection-popover--translation-setup {
  width: min(20rem, 100vw - 2rem);
}

.selection-popover--link-choice {
  width: max-content;
  max-width: min(28rem, 100vw - 1rem);
}

.selection-popover-content h3 {
  margin: 0 0 .45rem;
}

.selection-popover-content p {
  margin: .4rem 0;
}

.link-choice-popover-content {
  min-width: min(17rem, 100vw - 4rem);
  padding-right: 2.3rem;
  position: relative;
}

.link-choice-popover-content > p:first-of-type {
  overflow-wrap: anywhere;
  max-width: min(24rem, 100vw - 5rem);
  margin-top: 0;
  padding-right: .15rem;
}

.link-choice-close {
  width: 1.85rem;
  height: 1.85rem;
  color: inherit;
  cursor: pointer;
  background: #ffffff14;
  border: 1px solid #ffffff1f;
  border-radius: .55rem;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  position: absolute;
  top: -.15rem;
  right: -.15rem;
}

.link-choice-close:hover, .link-choice-close:focus-visible {
  background: #ffffff29;
}

.link-choice-close svg {
  stroke-width: 2.2px;
  width: 1rem;
  height: 1rem;
}

.link-choice-note {
  color: var(--danger);
  margin-top: .35rem;
}

.reader-root.viewer-open .reader-main-grid {
  pointer-events: none;
}

.reader-tts-audio {
  display: none;
}

.reader-tts-highlight {
  pointer-events: none;
}

.popover-actions {
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
  display: flex;
}

.link-choice-popover-content .popover-actions {
  flex-wrap: nowrap;
}

.link-choice-popover-content .popover-actions button {
  white-space: nowrap;
}

.selection-toolbar-content {
  color: #fff;
  flex-direction: column;
  gap: .35rem;
  display: flex;
}

.translation-lookup-popover {
  display: grid;
}

.translate-mode-setup-popover {
  padding: 1rem;
}

.translation-lookup-popover__header, .translation-lookup-popover__provider {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.translation-lookup-popover__header {
  border-bottom: 1px solid #ffffff14;
  padding: .9rem 1rem .8rem;
}

.translation-lookup-popover__title, .translation-lookup-popover__actions {
  align-items: center;
  gap: .55rem;
  display: inline-flex;
}

.translation-lookup-popover__title {
  color: #9fd1ff;
  font-size: .95rem;
  font-weight: 800;
}

.translation-lookup-popover__title-icon, .translation-lookup-popover__action-icon {
  width: 1rem;
  height: 1rem;
}

.translation-lookup-popover__close {
  color: #ffffffeb;
  width: 2.25rem;
  height: 2.25rem;
  box-shadow: none;
  background: none;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.translation-lookup-popover__close:hover, .translation-lookup-popover__close:focus-visible {
  background: #ffffff14;
}

.translation-lookup-popover__content {
  gap: .95rem;
  padding: 1rem;
  display: grid;
}

.translation-lookup-popover__section, .translation-lookup-popover__selectors {
  gap: .45rem;
  display: grid;
}

.translation-lookup-popover__label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffffff8f;
  font-size: .68rem;
  font-weight: 700;
}

.translation-lookup-popover__source, .translation-lookup-popover__translated, .translation-lookup-popover__status {
  margin: 0;
  line-height: 1.45;
}

.translation-lookup-popover__text-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  display: grid;
}

.translation-lookup-popover__tts {
  color: #9fd1ff;
  background: #9fd1ff14;
  border-color: #9fd1ff3d;
  width: 2rem;
  height: 2rem;
}

.translation-lookup-popover__tts:hover, .translation-lookup-popover__tts:focus-visible, .translation-lookup-popover__tts.is-active {
  color: #fff;
  background: #9fd1ff29;
  border-color: #9fd1ff73;
}

.translation-lookup-popover__tts svg {
  width: .95rem;
  height: .95rem;
}

.translation-lookup-popover__source {
  color: #ffffffe0;
  font-size: .96rem;
  font-weight: 600;
}

.translation-lookup-popover__translated {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.translation-lookup-popover__status {
  color: #ffffffbd;
  font-size: .92rem;
}

.translation-lookup-popover__status--warning {
  color: #ffd56a;
}

.translation-lookup-popover__status--error {
  color: #ff9f92;
}

.translation-lookup-popover__alternatives {
  flex-wrap: wrap;
  gap: .55rem;
  display: flex;
}

.translation-lookup-popover__alternative {
  color: #ffffffeb;
  min-height: 2.2rem;
  box-shadow: none;
  background: #ffffff0d;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  font-size: .86rem;
  font-weight: 700;
  display: inline-flex;
}

.translation-lookup-popover__alternative:hover, .translation-lookup-popover__alternative:focus-visible {
  background: #ffffff1a;
}

.translation-lookup-popover__alternative.is-active {
  color: #fff;
  background: #1a6cc957;
  border-color: #53a5ffb8;
}

.translation-lookup-popover__alternative.is-preferred {
  border-color: #ffd56a66;
}

.translation-lookup-popover__alternative-badge {
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #ffd56a;
  font-size: .66rem;
  font-weight: 800;
}

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

.translation-lookup-popover__select-wrap {
  gap: .35rem;
  display: grid;
}

.translation-lookup-popover__select {
  color: #fff;
  background: #ffffff0a;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  min-height: 2.5rem;
  font-size: .88rem;
  font-weight: 700;
}

.translation-lookup-popover__provider {
  color: #ffffff9e;
  border-top: 1px solid #ffffff14;
  gap: .8rem;
  padding-top: .1rem;
  font-size: .78rem;
}

.translation-lookup-popover__provider-select {
  color: #f5f7fb;
  max-width: min(15rem, 68%);
  min-height: 2rem;
  font: inherit;
  background: #ffffff0d;
  border: 1px solid #ffffff1f;
  border-radius: 9px;
  padding: .25rem 1.8rem .25rem .65rem;
  font-size: .78rem;
  font-weight: 700;
}

.translation-lookup-popover__provider-select:hover, .translation-lookup-popover__provider-select:focus-visible {
  background: #9fd1ff1a;
  border-color: #9fd1ff73;
}

.translation-lookup-popover__provider-select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.selection-toolbar-palette {
  align-items: center;
  gap: .25rem;
  display: flex;
}

.selection-toolbar-actions {
  flex-direction: column;
  order: 1;
  gap: .35rem;
  width: max-content;
  max-width: 100%;
  display: flex;
}

.selection-toolbar-tts-control {
  border-radius: var(--radius-md);
  background: #ffffff0f;
  flex: 0 0 4.85rem;
  align-items: center;
  width: 4.85rem;
  height: 2.3rem;
  display: inline-flex;
  overflow: hidden;
}

.selection-toolbar-tts-control .selection-toolbar-icon-button {
  flex: 0 0 2.3rem;
}

.selection-toolbar-tts-control--single {
  flex-basis: 2.3rem;
  width: 2.3rem;
}

.selection-toolbar-live-narration-indicator {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  cursor: help;
  border-right: 1px solid #ffffff1f;
}

.selection-toolbar-live-narration .selection-toolbar-icon-button:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.selection-toolbar-actions-row, .selection-toolbar-annotation-row {
  flex-wrap: nowrap;
  align-items: center;
  gap: .25rem;
  display: flex;
}

.selection-toolbar-annotation-row {
  justify-content: flex-start;
  gap: .55rem;
}

.selection-toolbar-generation-control {
  flex: 0 0 4.85rem;
  gap: .25rem;
  width: 4.85rem;
  height: 2.3rem;
  margin-left: .5rem;
  display: inline-flex;
}

.selection-toolbar-generation-control + .selection-toolbar-settings-button {
  margin-left: 0;
}

.selection-toolbar-generation-control .selection-toolbar-icon-button {
  flex: 0 0 2.3rem;
}

.selection-page-generation {
  border-top: 1px solid #ffffff1f;
  flex-direction: column;
  gap: .6rem;
  margin-top: .45rem;
  padding: .65rem .4rem .3rem;
  display: flex;
}

.selection-page-generation-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  display: grid;
}

.selection-page-generation-fields label {
  flex-direction: column;
  gap: .3rem;
  font-size: .75rem;
  display: flex;
}

.selection-page-generation-fields input {
  border-radius: var(--radius-md);
  width: 100%;
  min-width: 0;
  height: 2rem;
  color: inherit;
  background: #ffffff0f;
  border: 1px solid #ffffff26;
  padding: .3rem .5rem;
}

.selection-page-generation-actions {
  flex-wrap: wrap;
  gap: .4rem;
  display: flex;
}

.selection-page-generation-actions button {
  border-radius: var(--radius-md);
  min-height: 2rem;
  color: inherit;
  background: #ffffff0f;
  border: 0;
  padding: .3rem .55rem;
  font-size: .75rem;
}

.selection-page-generation-actions .selection-page-generation-submit {
  color: #fff;
  background: #005ab5;
}

.selection-page-generation p {
  color: #fca5a5;
  margin: 0;
  font-size: .75rem;
}

.selection-toolbar-icon-button {
  border-radius: var(--radius-md);
  color: #ffffffe0;
  width: 2.3rem;
  min-width: 2.3rem;
  height: 2.3rem;
  box-shadow: none;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.selection-toolbar-icon-button:hover, .selection-toolbar-icon-button:focus-visible {
  color: #fff;
  background: #ffffff1a;
}

.selection-toolbar-icon-button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.selection-toolbar-icon-button:disabled:hover, .selection-toolbar-icon-button:disabled:focus-visible {
  color: #ffffffe0;
  background: none;
}

.selection-toolbar-icon {
  width: 1rem;
  height: 1rem;
}

.selection-toolbar-audio-save-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
}

.selection-toolbar-ai-label {
  letter-spacing: 0;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}

.selection-toolbar-divider {
  background: #ffffff29;
  width: 1px;
  height: 1rem;
  margin: 0 .25rem;
}

.selection-toolbar-swatch {
  width: 1.7rem;
  height: 1.7rem;
  box-shadow: none;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  padding: 0;
  transition: transform .14s, border-color .14s;
}

.selection-toolbar-swatch:hover, .selection-toolbar-swatch:focus-visible {
  transform: scale(1.08);
}

.selection-toolbar-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #ffffff2e;
}

.selection-toolbar-style-divider {
  background: #ffffff38;
  align-self: stretch;
  width: 1px;
  min-height: 2.1rem;
  margin: 0 .1rem;
}

.selection-toolbar-settings-button {
  margin-left: auto;
}

.selection-toolbar-palette-settings {
  flex-direction: column;
  gap: .5rem;
  width: min(280px, 100vw - 2rem);
  display: flex;
}

.selection-toolbar-palette-tabs {
  align-items: center;
  gap: .25rem;
  display: flex;
}

.selection-toolbar-palette-tab.is-active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px #ffffff40;
}

.selection-toolbar-slot-editor {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.selection-toolbar-slot-picker {
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
}

.selection-toolbar-slot-picker::-webkit-color-swatch-wrapper {
  border-radius: calc(var(--radius-md) - 2px);
  padding: 0;
}

.selection-toolbar-slot-picker::-webkit-color-swatch {
  border-radius: calc(var(--radius-md) - 2px);
  border: none;
}

.selection-toolbar-slot-picker::-moz-color-swatch {
  border-radius: calc(var(--radius-md) - 2px);
  border: none;
}

.selection-toolbar-setting-row {
  cursor: default;
  border-top: 1px solid #ffffff1a;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding-top: .25rem;
  display: flex;
}

.selection-toolbar-setting-label {
  color: #ffffffc7;
  flex: 1;
  font-size: .78rem;
  font-weight: 600;
}

.selection-toolbar-segment {
  border-radius: var(--radius-sm);
  background: #ffffff1a;
  flex-shrink: 0;
  gap: .125rem;
  padding: .125rem;
  display: flex;
}

.selection-toolbar-segment-btn {
  border-radius: calc(var(--radius-sm) - 2px);
  color: #fff9;
  cursor: pointer;
  min-width: 1.9rem;
  min-height: 1.55rem;
  box-shadow: none;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: .16rem .3rem;
  transition: background .14s, color .14s;
  display: inline-flex;
}

.selection-toolbar-segment-btn.is-active {
  color: #fff;
  background: #ffffff38;
}

.selection-toolbar-inline-color {
  width: 1.45rem;
  height: 1.45rem;
  margin-left: .05rem;
}

.selection-toolbar-save-btn {
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  width: 100%;
  box-shadow: none;
  background: #005ab5;
  border: 0;
  padding: .6rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  transition: background .14s;
}

.selection-toolbar-save-btn:hover, .selection-toolbar-save-btn:focus-visible {
  background: #0d67c1;
}

.selection-toolbar-settings {
  flex-direction: column;
  order: 2;
  gap: .8rem;
  width: min(340px, 100vw - 2rem);
  display: flex;
}

.selection-toolbar-settings--audio {
  width: min(480px, 100vw - 2rem);
}

.selection-toolbar-settings-header {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.selection-toolbar-settings-tabs {
  border-radius: var(--radius-md);
  background: #ffffff14;
  flex: 1;
  min-width: 0;
  padding: .16rem;
  display: inline-flex;
}

.selection-toolbar-settings-tab {
  border-radius: calc(var(--radius-md) - 3px);
  color: #ffffffb3;
  min-width: 0;
  box-shadow: none;
  background: none;
  border: 0;
  flex: 1;
  padding: .48rem .6rem;
  font-size: .78rem;
  font-weight: 700;
}

.selection-toolbar-settings-tab:hover, .selection-toolbar-settings-tab:focus-visible, .selection-toolbar-settings-tab.is-active {
  color: #fff;
  background: #ffffff29;
}

.selection-toolbar-audio-settings, .selection-toolbar-audio-settings fieldset {
  gap: .5rem;
  display: grid;
}

.selection-toolbar-audio-settings fieldset {
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
}

.selection-toolbar-audio-field {
  gap: .2rem;
  display: grid;
}

.selection-toolbar-audio-field > span {
  color: #ffffffb3;
  font-size: .68rem;
  font-weight: 700;
}

.selection-toolbar-audio-field select {
  border-radius: var(--radius-md);
  color: #fff;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  background: #ffffff14;
  border: 1px solid #ffffff24;
  min-width: 0;
  min-height: 2rem;
  padding: 0 .5rem;
  font-size: .88rem;
}

.selection-toolbar-audio-field select option {
  color: #fff;
  background: #1b2029;
}

.selection-toolbar-audio-field select option:disabled {
  color: #ffffff9e;
}

.selection-toolbar-audio-field select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.selection-toolbar-audio-settings .selection-toolbar-save-btn {
  min-height: 2.25rem;
  padding: .45rem .85rem;
}

@media (max-width: 520px) {
  .selection-toolbar-settings--audio {
    width: min(340px, 100vw - 2rem);
  }

  .selection-toolbar-audio-settings fieldset {
    grid-template-columns: 1fr;
  }
}

.selection-toolbar-settings-message {
  color: #ffffffad;
  margin: 0;
  font-size: .76rem;
  line-height: 1.35;
}

.selection-toolbar-settings-message.is-error {
  color: #ffacb8;
}

.selection-toolbar-settings-button.is-active {
  color: #fff;
  background: #ffffff29;
}

.selection-toolbar-slot-hex {
  border-radius: var(--radius-md);
  color: #fff;
  text-align: center;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  width: 5.5rem;
  height: 2.75rem;
  padding: 0 .5rem;
  font-family: monospace;
  font-size: .8rem;
  font-weight: 600;
}

.selection-toolbar-slot-hex:focus {
  outline-offset: 1px;
  outline: 2px solid #fff6;
}

.selection-toolbar-slot-hex::placeholder {
  color: #ffffff59;
}

.selection-toolbar-note {
  width: min(320px, 100vw - 32px);
  margin-top: 0;
}

.selection-toolbar-note-header {
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.selection-toolbar-palette--inline, .selection-toolbar-palette--actions {
  gap: .35rem;
}

.selection-toolbar-palette--actions .selection-toolbar-swatch {
  width: 1.6rem;
  height: 1.6rem;
}

.selection-toolbar-note-field textarea {
  color: #fff;
  resize: vertical;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  min-height: 90px;
  padding: .7rem .8rem;
}

.selection-toolbar-note-field textarea::placeholder {
  color: #ffffff6b;
}

.selection-toolbar-native-color {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
}

.selection-toolbar-annotation-edit {
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  padding: 8px;
  display: flex;
}

.selection-toolbar-note-actions {
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}

.selection-toolbar-translate-language {
  flex-direction: column;
  gap: .85rem;
  width: min(280px, 100vw - 32px);
  display: flex;
}

.selection-toolbar-translate-copy {
  gap: .18rem;
  display: grid;
}

.selection-toolbar-translate-copy strong {
  color: #fff;
  font-size: .84rem;
}

.selection-toolbar-translate-copy span {
  color: #ffffffb8;
  font-size: .76rem;
}

.selection-toolbar-translate-select-wrap {
  gap: .38rem;
  display: grid;
}

.selection-toolbar-translate-label {
  color: #ffffffd1;
  letter-spacing: .01em;
  font-size: .72rem;
  font-weight: 600;
}

.selection-toolbar-translate-select {
  color: #fff;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  outline: none;
  width: 100%;
  padding: .7rem .8rem;
}

.selection-toolbar-translate-select option {
  color: #111827;
}

.selection-toolbar-translate-validation {
  color: #fca5a5;
  background: #f871711f;
  border-radius: 12px;
  padding: .65rem .8rem;
  font-size: .76rem;
  line-height: 1.35;
}

.selection-toolbar-danger-action {
  color: #dc2626;
  cursor: pointer;
  background: none;
  border: 1px solid #dc262659;
  border-radius: 12px;
  align-items: center;
  gap: 4px;
  padding: .7rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s;
  display: inline-flex;
}

.selection-toolbar-danger-action:hover, .selection-toolbar-danger-action:focus-visible {
  background: #dc262614;
}

.selection-toolbar-primary-action {
  color: #fff;
  box-shadow: none;
  background: #005ab5;
  border: 0;
  border-radius: 12px;
  padding: .7rem .95rem;
  font-size: .8rem;
  font-weight: 800;
}

.selection-toolbar-primary-action:hover, .selection-toolbar-primary-action:focus-visible {
  background: #0d67c1;
}

.hover-preview-panel {
  z-index: 70;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  opacity: 0;
  background: #fff;
  transition: opacity .16s, transform .16s;
  position: fixed;
  overflow: hidden;
  transform: translateY(6px);
  box-shadow: 0 14px 32px #0000002e;
}

.hover-preview-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.hover-preview-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, #f6f9ff 0%, #fff 100%);
  padding: .5rem .6rem;
}

.hover-preview-header h3 {
  margin: 0;
  font-size: .92rem;
}

.hover-preview-body {
  min-height: 110px;
  max-height: min(45vh, 360px);
  padding: .5rem;
  overflow: auto;
}

.browser-model-offer {
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
  min-width: 0;
  display: flex;
}

.browser-model-offer-text {
  flex: 12rem;
  gap: .1rem;
  min-width: 0;
  display: grid;
}

.browser-model-offer-title {
  font-size: .78rem;
  font-weight: 700;
}

.browser-model-offer-size {
  opacity: .75;
  font-weight: 600;
}

.browser-model-offer-description {
  opacity: .78;
  font-size: .72rem;
  line-height: 1.3;
}

.browser-model-offer-button, .browser-model-offer-status {
  flex: 0 auto;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  font-weight: 650;
  display: inline-flex;
}

.browser-model-offer-button {
  white-space: nowrap;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 0;
  min-height: 2rem;
  padding: 0 .7rem;
}

.browser-model-offer-button svg, .browser-model-offer-status svg {
  width: .95rem;
  height: .95rem;
}

.browser-model-offer-status.is-ready svg {
  color: #2f9e44;
}

.browser-model-offer-spinner {
  animation: .9s linear infinite audio-sync-spin;
}

@media (prefers-reduced-motion: reduce) {
  .browser-model-offer-spinner {
    animation: none;
  }
}

.browser-model-offer--toolbar {
  border-radius: var(--radius-md);
  color: #ffffffeb;
  background: #ffffff0f;
  max-width: 22rem;
  padding: .45rem .55rem;
}

.browser-model-offer--toolbar .browser-model-offer-button {
  color: #fff;
  background: #ffffff29;
}

.browser-model-offer--toolbar .browser-model-offer-button:hover {
  background: #ffffff3d;
}

.browser-model-offer--settings {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: .55rem .65rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .browser-model-offer--settings {
    background: color-mix(in srgb, var(--surface) 82%, var(--panel));
  }
}

.browser-model-offer--settings .browser-model-offer-description, .browser-model-offer--settings .browser-model-offer-status {
  color: var(--muted);
}

.browser-model-offer--settings .browser-model-offer-button {
  background: var(--brand, #3b82f6);
  color: #fff;
}

.document-settings-section--narration .browser-model-offer {
  grid-column: 1 / -1;
}

.hover-preview-image {
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  height: auto;
  display: block;
}

.hover-preview-note {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
}

.hover-preview-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  padding: .45rem .5rem;
  display: flex;
}

.image-viewer-backdrop {
  z-index: 90;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  background: #0f142338;
  transition: opacity .28s;
  position: fixed;
  inset: 0;
}

.image-viewer-backdrop.is-open {
  opacity: 1;
}

.image-viewer-backdrop.is-closing {
  opacity: 0;
}

.image-viewer-frame {
  z-index: 92;
  border-radius: var(--radius-md);
  -webkit-user-select: none;
  user-select: none;
  cursor: zoom-out;
  background: #fff;
  border: 1px solid #ffffff8c;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 16px 36px #0000003d;
}

.image-viewer-image, .image-viewer-dimmer {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.image-viewer-image {
  z-index: 0;
  object-fit: contain;
  filter: none;
  transition: filter .16s;
}

.image-viewer-dimmer {
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: none;
}

.image-viewer-backdrop[data-night-dimming="1"] .image-viewer-dimmer {
  background: #ffad4f1a;
}

.image-viewer-backdrop[data-night-dimming="2"] .image-viewer-dimmer {
  background: #ffad4f2e;
}

.image-viewer-backdrop[data-night-dimming="3"] .image-viewer-dimmer {
  background: #ffad4f42;
}

.image-viewer-backdrop[data-night-dimming="4"] .image-viewer-dimmer {
  background: #ffad4f57;
}

.image-viewer-backdrop[data-night-dimming="5"] .image-viewer-dimmer {
  background: #ffad4f6b;
}

.image-viewer-backdrop[data-night-dimming="6"] .image-viewer-dimmer {
  background: #ffad4f80;
}

.image-viewer-backdrop[data-paper-dark="true"] .image-viewer-frame {
  background: #1b1b1b;
}

.image-viewer-backdrop[data-paper-dark="true"] .image-viewer-image {
  filter: invert(88.8%) hue-rotate(180deg);
}

.image-viewer-backdrop[data-paper-dark="true"] .image-viewer-dimmer {
  background: none;
}

.image-viewer-toolbar {
  z-index: 94;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: .25rem;
  max-width: min(37.5rem, 100vw - 1.5rem);
  transition: left .28s, top .28s, opacity .18s;
  display: flex;
  position: fixed;
}

.image-viewer-formula {
  z-index: 93;
  border-radius: var(--radius-md);
  background: var(--surface, #fff);
  max-width: min(46rem, 100vw - 1.5rem);
  max-height: 30vh;
  color: var(--text, #111);
  padding: .5rem 1rem;
  transition: left .28s, top .28s;
  position: fixed;
  overflow: auto;
  transform: translateX(-50%);
  box-shadow: 0 12px 28px #00000038;
}

.image-viewer-toolbar .selection-toolbar-provider-main {
  gap: .35rem;
}

html.reader-side-search-active:not(.rss-side-left) .image-viewer-backdrop {
  right: var(--reader-side-search-width, 0px);
}

html.reader-side-search-active.rss-side-left .image-viewer-backdrop {
  left: var(--reader-side-search-width, 0px);
}

@media (max-width: 760px) {
  .image-viewer-toolbar {
    max-width: calc(100vw - 1rem);
    overflow-x: auto;
  }
}

[data-ui="v2"] .library-upload-card {
  background: #ffffffeb;
  border-color: #0000000f;
  border-radius: 2rem;
  margin-top: 0;
  padding: 1.5rem;
  box-shadow: 0 16px 40px #191c2114;
}

[data-ui="v2"] .library-upload-card h2 {
  font-family: var(--font-serif);
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  line-height: 1.1;
}

[data-ui="v2"] .library-upload-form {
  gap: .95rem;
}

[data-ui="v2"] .library-upload-form label span {
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

[data-ui="v2"] .library-upload-form input, [data-ui="v2"] .library-upload-form select {
  border-radius: var(--radius-lg);
  background: #f8f9fd;
  border-color: #00000014;
  min-height: 3rem;
}

[data-ui="v2"] .library-upload-form input[type="file"] {
  background: #f4f6fb;
  padding: .7rem;
}

[data-ui="v2"] .library-upload-selected-file, [data-ui="v2"] .library-upload-success {
  background: #f8fafc;
  border-color: #0000000f;
  border-radius: 1.2rem;
  margin-top: .2rem;
}

[data-ui="v2"] .library-upload-form button[type="submit"], [data-ui="v2"] .library-upload-success-actions button:first-child {
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #005ab5 0%, #3174d0 100%);
  border: 0;
  min-height: 3rem;
  font-weight: 700;
}

[data-ui="v2"] .library-upload-form button[type="submit"]:disabled {
  opacity: .6;
  cursor: not-allowed;
}

[data-ui="v2"] .library-upload-success-actions button:last-child {
  border-radius: 1rem;
}

.library-featured-grid {
  gap: .75rem;
  display: grid;
}

.library-featured-card {
  border-radius: 1rem;
  align-items: stretch;
  gap: .75rem;
  min-width: 0;
  min-height: 8.75rem;
  padding: .75rem;
  display: flex;
}

.library-featured-thumbnail {
  border-radius: .75rem;
  width: 4.75rem;
  height: 6.5rem;
}

.library-collection-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .75rem;
  display: grid;
}

.library-collection-card {
  border-radius: 1rem;
  align-items: stretch;
  gap: .75rem;
  min-width: 0;
  min-height: 6.25rem;
  padding: .625rem;
  display: flex;
}

.library-collection-thumbnail {
  border-radius: .75rem;
  width: 4.25rem;
  height: 5.25rem;
}

.library-collection-hover-panel {
  z-index: 10;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(#0f111614, #0f1116d6);
  flex-direction: column;
  gap: .35rem;
  padding: .45rem;
  transition: opacity .16s, transform .16s;
  display: flex;
  position: absolute;
  inset: auto 0 0;
  transform: translateY(.35rem);
}

.library-collection-card:hover .library-collection-hover-panel, .library-collection-card:focus .library-collection-hover-panel, .library-collection-card:focus-within .library-collection-hover-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.library-collection-open-button {
  color: #191c21;
  background: #ffffffeb;
  border: 0;
  border-radius: .45rem;
  justify-content: center;
  align-items: center;
  gap: .3rem;
  min-height: 1.55rem;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
}

.library-collection-open-button:hover, .library-collection-open-button:focus-visible {
  color: var(--brand);
  background: #fff;
}

@media (min-width: 860px) {
  .library-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .library-featured-card {
    gap: .875rem;
    min-height: 9rem;
    padding: .875rem;
  }

  .library-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1180px) {
  .library-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .library-featured-card {
    gap: .625rem;
    min-height: 8rem;
    padding: .625rem;
  }

  .library-featured-thumbnail {
    width: 4rem;
    height: 5.5rem;
  }

  .library-collection-card {
    gap: .625rem;
    min-height: 5.75rem;
  }

  .library-collection-thumbnail {
    width: 3.75rem;
    height: 4.85rem;
  }
}

[data-ui="v2"] .v2-reader-surface .reader-root {
  background: none;
  border: 0;
  border-radius: 2rem;
  overflow: visible;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar {
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: #ffffffdb;
  border-bottom: 0;
  border-radius: 1.75rem 1.75rem 0 0;
  padding: clamp(.25rem, .8vh, .5rem) clamp(.5rem, 1vw, .8rem);
  box-shadow: 0 18px 40px #191c2114;
}

[data-ui="v2"] .v2-reader-surface .toolbar-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 800;
}

[data-ui="v2"] .v2-reader-surface .toolbar-controls {
  gap: .55rem;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar input, [data-ui="v2"] .v2-reader-surface .reader-toolbar select, [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button, [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-menu summary, [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-secondary-button {
  min-height: var(--touch-min);
  background: #f8fafdf5;
  border-color: #00000014;
  border-radius: 999px;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-primary-button {
  min-height: var(--touch-min);
  border-radius: 999px;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar input {
  min-width: 180px;
}

[data-ui="v2"] .v2-reader-surface .reader-tts-trigger {
  padding-inline: .85rem;
}

[data-ui="v2"] .v2-reader-surface .reader-main-grid {
  border: 1px solid var(--line);
  background: #ffffffb8;
  border-radius: 0 0 1.75rem 1.75rem;
  min-height: calc(100vh - 19rem);
  overflow: hidden;
  box-shadow: 0 24px 48px #191c2114;
}

[data-ui="v2"] .v2-reader-surface .reader-left-rail {
  background: #ffffffad;
}

[data-ui="v2"] .v2-reader-surface .reader-toc-panel, [data-ui="v2"] .v2-reader-surface .reader-annotations-panel, [data-ui="v2"] .v2-reader-surface .reader-tts-panel {
  background: #ffffffb8;
}

[data-ui="v2"] .v2-reader-surface .reader-annotations-panel {
  padding: 1rem;
}

[data-ui="v2"] .v2-reader-surface .toc-header h2, [data-ui="v2"] .v2-reader-surface .reader-annotations-header h2 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

[data-ui="v2"] .v2-reader-surface .toc-header input, [data-ui="v2"] .v2-reader-surface .reader-tts-control select, [data-ui="v2"] .v2-reader-surface .reader-annotation-editor textarea, [data-ui="v2"] .v2-reader-surface .reader-selection-annotation-form textarea {
  background: #f8f9fd;
  border-radius: 1rem;
}

[data-ui="v2"] .v2-reader-surface .toc-row, [data-ui="v2"] .v2-reader-surface .reader-annotations-list li, [data-ui="v2"] .v2-reader-surface .reader-annotation-card, [data-ui="v2"] .v2-reader-surface .reader-tts-segments li button {
  border-radius: 1rem;
}

[data-ui="v2"] .v2-reader-surface .reader-annotations-list li, [data-ui="v2"] .v2-reader-surface .reader-annotation-card, [data-ui="v2"] .v2-reader-surface .reader-tts-segments li button {
  background: #ffffffe6;
}

[data-ui="v2"] .v2-reader-surface .pdf-page-shell {
  border-color: #00000014;
  border-radius: 1rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 12px 30px #191c211f;
}

[data-ui="v2"] .v2-reader-surface .selection-popover, [data-ui="v2"] .v2-reader-surface .hover-preview-panel {
  border-color: #00000014;
  border-radius: 1rem;
  box-shadow: 0 18px 36px #191c212e;
}

html[data-theme="dark"] [data-ui="v2"] .library-upload-card, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-main-grid, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-left-rail, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toc-panel, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-annotations-panel, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-tts-panel {
  background: #151a21d6;
}

html[data-theme="dark"] [data-ui="v2"] .library-upload-form input, html[data-theme="dark"] [data-ui="v2"] .library-upload-form select, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar input, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar select, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .toc-header input, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-tts-control select, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-annotation-editor textarea, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-selection-annotation-form textarea, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-menu summary, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-secondary-button {
  color: var(--text);
  background: #ffffff14;
  border-color: #ffffff1a;
}

html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active:focus-visible {
  background: #d97706;
}

@supports (color: color-mix(in lab, red, red)) {
  html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active:focus-visible {
    background: color-mix(in srgb, #d97706 16%, var(--reader-control-surface));
  }
}

html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-icon-button--night.is-active:focus-visible {
  color: #f59e0b;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button {
  background: var(--brand);
  color: #fff;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:hover, [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:focus-visible {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:hover, [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:focus-visible {
    background: color-mix(in srgb, var(--brand) 88%, #000);
  }
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:hover, [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:focus-visible {
  color: #fff;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:disabled, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:disabled {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:disabled, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:disabled {
    background: color-mix(in srgb, var(--brand) 36%, var(--reader-control-surface));
  }
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:disabled, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-play-button:disabled {
  color: #ffffffb8;
}

html[data-theme="dark"] [data-ui="v2"] .library-upload-selected-file, html[data-theme="dark"] [data-ui="v2"] .library-upload-success, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-annotations-list li, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-tts-segments li button, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .selection-popover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .hover-preview-panel {
  background: #171d25f0;
  border-color: #ffffff14;
}

html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-annotation-card {
  background: #171d25f0;
  border-top-color: #ffffff14;
  border-bottom-color: #ffffff14;
  border-right-color: #ffffff14;
}

html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .selection-popover--toolbar {
  background: #16181d;
}

@media (max-width: 768px) {
  .reader-main-grid {
    grid-template-columns: 1fr;
    height: calc(100dvh - 9.375rem);
  }

  .reader-main-grid.toc-hidden {
    grid-template-columns: 1fr;
  }

  .reader-left-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reader-toc-panel, .reader-notification-body, .reader-tts-panel-body, .reader-annotations-panel {
    max-height: min(15rem, 35dvh);
  }
}

.reader-toolbar {
  --touch-min: clamp(2.25rem, 5.75vh, 2.6rem);
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: var(--reader-toolbar-bg);
  padding: clamp(.25rem, .8vh, .5rem) clamp(.5rem, 1vw, .8rem);
  display: block;
  position: relative;
}

.toolbar-main-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.35rem, 1vw, .75rem);
  display: grid;
}

.toolbar-title {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.toolbar-group {
  align-items: center;
  gap: clamp(.35rem, .8vw, .6rem);
  min-width: 0;
  display: flex;
}

.toolbar-group--center {
  justify-content: center;
}

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

.toolbar-divider {
  background: var(--line);
  width: 1px;
  height: 1.625rem;
}

.toolbar-pill {
  border-radius: var(--radius-md);
  background: var(--reader-control-surface);
  box-shadow: none;
  border: 0;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  display: inline-flex;
}

.toolbar-tts-controls {
  background: var(--reader-control-surface);
  gap: .1rem;
  position: relative;
}

.toolbar-tts-controls.is-settings-fallback, .toolbar-tts-controls.is-settings-fallback button {
  cursor: pointer;
}

.toolbar-tts-controls.is-settings-fallback:hover {
  background: var(--reader-control-surface-hover);
}

.toolbar-tts-play-button {
  background: var(--brand);
  color: #fff;
}

.toolbar-tts-play-button:hover, .toolbar-tts-play-button:focus-visible {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-tts-play-button:hover, .toolbar-tts-play-button:focus-visible {
    background: color-mix(in srgb, var(--brand) 88%, #000);
  }
}

.toolbar-tts-play-button:hover, .toolbar-tts-play-button:focus-visible {
  color: #fff;
}

.toolbar-tts-play-button:disabled {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-tts-play-button:disabled {
    background: color-mix(in srgb, var(--brand) 36%, var(--reader-control-surface));
  }
}

.toolbar-tts-play-button:disabled {
  color: #ffffffb8;
}

.toolbar-tts-speed {
  display: inline-flex;
  position: relative;
}

.toolbar-tts-speed-button {
  width: 2.75rem;
  min-width: 2.75rem;
  height: var(--touch-min);
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--reader-control-fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  box-shadow: none;
  background: none;
  border: 0;
  padding: 0 .45rem;
  font-size: .76rem;
  font-weight: 850;
}

.toolbar-tts-speed-button:hover, .toolbar-tts-speed-button:focus-visible {
  background: var(--reader-control-surface-hover);
  color: var(--text);
}

.toolbar-tts-speed-button:disabled {
  cursor: not-allowed;
  color: var(--reader-control-muted);
}

.toolbar-layout-anchor {
  display: inline-flex;
  position: relative;
}

.toolbar-layout-popover {
  z-index: 130;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--reader-card);
  border-radius: 12px;
  gap: .45rem;
  padding: .55rem .625rem;
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  box-shadow: 0 16px 32px #0f142333;
}

html[data-theme="dark"] .toolbar-layout-popover {
  background: #232a33;
  border-color: #fff3;
  box-shadow: 0 16px 32px #0000007a;
}

.toolbar-layout-row {
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: .9rem;
  display: grid;
}

.toolbar-layout-row-label {
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: .66rem;
  font-weight: 800;
}

.toolbar-layout-segments {
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: .125rem;
  padding: .125rem;
  display: inline-flex;
}

html[data-theme="dark"] .toolbar-layout-segments {
  border-color: #ffffff2e;
}

.toolbar-layout-segment {
  min-width: 2.1rem;
  min-height: 1.9rem;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  padding: 0 .3rem;
  display: inline-flex;
}

.toolbar-layout-segment:hover {
  background: #7f7f7f29;
}

.toolbar-layout-segment.is-active {
  background: var(--brand);
  color: #fff;
}

.toolbar-menu-layout {
  gap: .3rem;
  padding: .4rem .5rem .55rem;
  display: grid;
}

.toolbar-menu-layout-label {
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 800;
}

.toolbar-menu-layout .toolbar-layout-popover {
  box-shadow: none;
  background: none;
  border: 0;
  padding: 0;
  position: static;
}

.toolbar-tts-speed-popover {
  z-index: 130;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--reader-card);
  border-radius: 12px;
  flex-direction: column;
  gap: .35rem;
  width: 10.75rem;
  height: auto;
  min-height: 0;
  padding: .5rem .625rem .45rem;
  display: flex;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  box-shadow: 0 16px 32px #0f142333;
}

html[data-theme="dark"] .toolbar-tts-speed-popover {
  background: #232a33;
  border-color: #fff3;
  box-shadow: 0 16px 32px #0000007a;
}

.toolbar-tts-speed-popover-value {
  font-variant-numeric: tabular-nums;
  min-height: 0;
  color: var(--color-scholar-primary);
  text-align: center;
  letter-spacing: -.01em;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15rem;
}

html[data-theme="dark"] .toolbar-tts-speed-popover-value {
  color: #8bc1ff;
}

.toolbar-tts-speed-slider {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: .9rem;
  min-height: 0;
  accent-color: var(--color-scholar-primary);
  cursor: pointer;
  margin: 0;
  display: block;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-tts-speed-slider {
  background: none;
  border: 0;
  border-radius: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: .9rem;
  min-height: 0;
  padding: 0;
}

html[data-theme="dark"] .toolbar-tts-speed-slider {
  accent-color: #8bc1ff;
}

.toolbar-tts-speed-divisions {
  justify-content: space-between;
  height: 1.15rem;
  margin: 0;
  padding: 0 .35rem;
  display: flex;
}

.toolbar-tts-speed-notch {
  flex-direction: column;
  flex: 0 0 0;
  align-items: center;
  gap: .08rem;
  min-width: 0;
  display: flex;
}

.toolbar-tts-speed-notch-tick {
  background: var(--text);
  border-radius: 1px;
  width: 1.5px;
  display: block;
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-tts-speed-notch-tick {
    background: color-mix(in srgb, var(--text) 20%, transparent);
  }
}

.toolbar-tts-speed-notch-tick {
  transition: background .12s, height .12s;
}

.toolbar-tts-speed-notch.is-minor .toolbar-tts-speed-notch-tick {
  height: 4px;
}

.toolbar-tts-speed-notch.is-major .toolbar-tts-speed-notch-tick {
  background: var(--text);
  height: 7px;
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-tts-speed-notch.is-major .toolbar-tts-speed-notch-tick {
    background: color-mix(in srgb, var(--text) 35%, transparent);
  }
}

.toolbar-tts-speed-notch.is-active .toolbar-tts-speed-notch-tick {
  background: var(--color-scholar-primary);
  height: 9px;
}

.toolbar-tts-speed-notch-label {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: .6rem;
  font-weight: 600;
  line-height: .65rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-tts-speed-notch-label {
    color: color-mix(in srgb, var(--text) 40%, transparent);
  }
}

.toolbar-tts-speed-notch-label {
  white-space: nowrap;
  transition: color .12s, font-weight .12s;
}

html[data-theme="dark"] .toolbar-tts-speed-notch-label {
  color: #ffffffc2;
}

html[data-theme="dark"] .toolbar-tts-speed-notch.is-active .toolbar-tts-speed-notch-tick {
  background: #8bc1ff;
}

html[data-theme="dark"] .toolbar-tts-speed-notch.is-active .toolbar-tts-speed-notch-label {
  color: #8bc1ff;
}

.toolbar-tts-speed-notch.is-active .toolbar-tts-speed-notch-label {
  color: var(--color-scholar-primary);
  font-weight: 750;
}

.toolbar-icon-button {
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: var(--radius-md);
  color: var(--reader-control-fg);
  box-shadow: none;
  background: none;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.toolbar-icon-button--night {
  position: relative;
}

.toolbar-icon-button:hover, .toolbar-icon-button:focus-visible, .toolbar-menu summary:hover, .toolbar-menu summary:focus-visible {
  background: var(--reader-control-surface-hover);
  color: var(--text);
  border-color: #0000;
}

.image-text-layer {
  z-index: 2;
  cursor: text;
  touch-action: none;
  position: absolute;
  inset: 0;
}

.image-text-layer-box {
  position: absolute;
}

.image-text-word {
  white-space: pre;
  color: #0000;
  -webkit-user-select: text;
  user-select: text;
  border-radius: 2px;
  line-height: 1;
  position: absolute;
  overflow: hidden;
}

.image-text-word::selection {
  background: none;
}

.image-text-highlight {
  background: var(--brand);
  border-radius: 2px;
  position: absolute;
}

@supports (color: color-mix(in lab, red, red)) {
  .image-text-highlight {
    background: color-mix(in srgb, var(--brand) 32%, transparent);
  }
}

.image-text-highlight {
  box-shadow: 0 0 0 2px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .image-text-highlight {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 32%, transparent);
  }
}

.image-text-highlight {
  pointer-events: none;
}

.image-text-layer:not(.has-selection):hover .image-text-word {
  box-shadow: inset 0 -1px 0 var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .image-text-layer:not(.has-selection):hover .image-text-word {
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--brand) 45%, transparent);
  }
}

.image-viewer-ocr-spinner {
  animation: 1s linear infinite audio-sync-spin;
}

@media (prefers-reduced-motion: reduce) {
  .image-viewer-ocr-spinner {
    animation: none;
  }
}

.reader-ocr-panel {
  box-sizing: border-box;
  width: min(28rem, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  color: var(--text, #172032);
  background: var(--panel, #fff);
  border: 1px solid var(--line, #d7dde6);
  border-radius: 1rem;
  padding: 1.25rem;
  overflow: auto;
}

.reader-ocr-panel::backdrop {
  background: #090f1a80;
}

.reader-ocr-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.reader-ocr-panel form, .reader-ocr-panel fieldset, .reader-ocr-panel-status {
  gap: .7rem;
  display: grid;
}

.reader-ocr-panel fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.reader-ocr-panel legend {
  margin-bottom: .35rem;
  padding: 0;
  font-weight: 650;
}

.reader-ocr-options {
  flex-wrap: wrap;
  gap: .45rem;
  display: flex;
}

.reader-ocr-options label {
  border: 1px solid var(--line, #d7dde6);
  cursor: pointer;
  border-radius: .55rem;
  padding: .4rem .65rem;
}

.reader-ocr-options label:has(:checked) {
  border-color: var(--brand, #3459d4);
}

.reader-ocr-options label:has(:disabled) {
  cursor: default;
  color: var(--muted, #596475);
}

.reader-ocr-options input {
  accent-color: var(--brand, #3459d4);
  margin-inline: 0 .4em;
}

.reader-ocr-engines label {
  flex: 8rem;
}

.reader-ocr-options small {
  margin-top: .25rem;
  display: block;
}

.reader-ocr-panel select, .reader-ocr-panel button {
  border: 1px solid var(--line, #d7dde6);
  color: inherit;
  background: var(--panel, #fff);
  font: inherit;
  border-radius: .45rem;
  padding: .5rem .7rem;
}

.reader-ocr-panel button:disabled {
  opacity: .6;
}

.reader-ocr-panel .reader-ocr-primary {
  color: #fff;
  background: var(--brand, #3459d4);
  border-color: #0000;
}

.reader-ocr-panel footer {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  margin-top: .6rem;
  display: flex;
}

.reader-ocr-panel p {
  margin: 0;
  font-size: .875rem;
}

.reader-ocr-help {
  color: var(--text, #172032);
  opacity: .84;
}

.reader-ocr-warning {
  border-inline-start: 3px solid var(--brand, #3459d4);
  padding-inline-start: .6rem;
}

.reader-ocr-panel progress {
  width: 100%;
}

.pdf-page-context-menu {
  z-index: 1000;
  box-sizing: border-box;
  width: min(13.5rem, 100vw - 16px);
  max-height: calc(100dvh - 16px);
  color: var(--text, #172032);
  background: var(--panel, #fff);
  border: 1px solid var(--line, #d7dde6);
  border-radius: .55rem;
  padding: .2rem;
  display: grid;
  position: fixed;
  top: 0;
  left: 0;
  overflow: auto;
  box-shadow: 0 5px 18px #00000024;
}

.pdf-page-context-menu button {
  text-align: start;
  min-height: 2rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: .35rem;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: center;
  gap: .15rem .45rem;
  padding: .3rem .45rem;
  font-size: .8125rem;
  line-height: 1.3;
  display: grid;
}

.pdf-page-context-menu button:hover, .pdf-page-context-menu button:focus-visible {
  background: var(--reader-control-surface-hover, #eef1f7);
}

.pdf-page-context-menu button[aria-disabled="true"] {
  cursor: default;
}

.pdf-page-menu-icon {
  opacity: .75;
  width: .9rem;
  height: .9rem;
}

.pdf-page-context-menu small {
  opacity: .8;
  grid-column: 2;
  font-size: .6875rem;
}

.pdf-page-chat-draft {
  border: 1px solid var(--line);
  border-radius: .45rem;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin: .5rem;
  padding: .4rem .55rem;
  font-size: .8rem;
  display: flex;
}

.pdf-page-chat-draft button {
  flex-shrink: 0;
}

.toolbar-icon-button.is-active {
  color: var(--brand);
  background: #005ab51a;
}

.toolbar-icon-button--night:hover, .toolbar-icon-button--night:focus-visible {
  color: #d97706;
}

.toolbar-icon-button--night.is-active, .toolbar-icon-button--night.is-active:hover, .toolbar-icon-button--night.is-active:focus-visible {
  background: #d97706;
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-icon-button--night.is-active, .toolbar-icon-button--night.is-active:hover, .toolbar-icon-button--night.is-active:focus-visible {
    background: color-mix(in srgb, #d97706 12%, var(--reader-control-surface));
  }
}

.toolbar-icon-button--night.is-active, .toolbar-icon-button--night.is-active:hover, .toolbar-icon-button--night.is-active:focus-visible {
  color: #d97706;
  box-shadow: 0 10px 22px #d9770629;
}

.toolbar-icon-button--night.is-active:hover, .toolbar-icon-button--night.is-active:focus-visible {
  background: #d97706;
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-icon-button--night.is-active:hover, .toolbar-icon-button--night.is-active:focus-visible {
    background: color-mix(in srgb, #d97706 18%, var(--reader-control-surface));
  }
}

.toolbar-icon-button--night.is-active .toolbar-control-badge {
  color: #1f1300;
  background: #f59e0b;
}

.toolbar-icon-button--borderless {
  width: var(--touch-min);
  height: var(--touch-min);
  border: 0;
}

.toolbar-icon {
  width: calc(var(--touch-min) * .455);
  height: calc(var(--touch-min) * .455);
  display: block;
}

.toolbar-icon--small {
  width: calc(var(--touch-min) * .364);
  height: calc(var(--touch-min) * .364);
}

.toolbar-icon-button--document-layout .toolbar-icon {
  width: calc(var(--touch-min) * .7);
  height: calc(var(--touch-min) * .7);
  flex-shrink: 0;
}

.toolbar-primary-button--immersive .toolbar-icon--small {
  width: calc(var(--touch-min) * .455);
  height: calc(var(--touch-min) * .455);
}

.toolbar-control-badge {
  background: var(--brand);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 .2rem;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1.125rem;
  position: absolute;
  bottom: .125rem;
  right: .125rem;
  box-shadow: 0 0 0 2px #ffffffeb;
}

.toolbar-zoom-controls {
  gap: .15rem;
}

.toolbar-zoom-menu {
  display: inline-flex;
  position: relative;
}

.toolbar-zoom-menu-toggle {
  background: var(--reader-control-surface);
}

.toolbar-zoom-menu-toggle:hover, .toolbar-zoom-menu-toggle:focus-visible, .toolbar-zoom-menu-toggle[aria-expanded="true"] {
  background: var(--reader-control-surface-hover);
  color: var(--text);
}

.toolbar-zoom-popover {
  z-index: 130;
  border: 1px solid var(--line);
  background: var(--reader-card);
  border-radius: 999px;
  align-items: center;
  gap: .1rem;
  padding: .25rem;
  display: inline-flex;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 16px 32px #0f142333;
}

.toolbar-zoom-popover .toolbar-icon-button {
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
}

.toolbar-zoom-popover .toolbar-zoom-value {
  border-radius: 999px;
  min-width: 3.2rem;
  height: 2rem;
  min-height: 2rem;
  font-size: .76rem;
}

.toolbar-zoom-value {
  min-width: 4rem;
  color: var(--text);
  letter-spacing: .02em;
  box-shadow: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: .82rem;
  font-weight: 800;
}

.toolbar-page-controls {
  gap: .15rem;
}

.toolbar-page-indicator, .toolbar-page-jump {
  text-align: center;
  min-width: 2.95rem;
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
}

.toolbar-page-jump {
  height: var(--touch-min);
  justify-content: center;
  align-items: center;
  gap: .12rem;
  display: inline-flex;
}

.toolbar-page-jump input {
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.8rem;
  min-height: 0;
  color: var(--text);
  font: inherit;
  text-align: center;
  box-shadow: none;
  appearance: textfield;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-page-jump input {
  background: none;
  border-color: #0000;
  width: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.8rem;
}

.toolbar-page-jump input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.toolbar-page-jump input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.toolbar-page-jump input:hover, .toolbar-page-jump input:focus {
  background: var(--reader-control-surface-hover);
  outline: none;
}

.toolbar-page-jump input:disabled {
  color: var(--reader-control-muted);
  cursor: default;
}

.toolbar-page-indicator small, .toolbar-page-total {
  color: var(--reader-control-muted);
  font-size: .72rem;
}

.reader-toolbar.is-dense-controls .toolbar-zoom-controls, .reader-toolbar.is-dense-controls .toolbar-page-controls {
  border-radius: 999px;
  gap: .05rem;
  padding: .12rem;
}

.reader-toolbar.is-dense-controls .toolbar-group {
  gap: .3rem;
}

.reader-toolbar.is-dense-controls .toolbar-divider {
  display: none;
}

.reader-toolbar.is-dense-controls .toolbar-zoom-controls .toolbar-icon-button, .reader-toolbar.is-dense-controls .toolbar-page-controls .toolbar-icon-button {
  border-radius: 999px;
  width: 1.85rem;
  height: 1.85rem;
  min-height: 1.85rem;
}

.reader-toolbar.is-dense-controls .toolbar-zoom-value {
  border-radius: 999px;
  min-width: 2.5rem;
  height: 1.85rem;
  min-height: 1.85rem;
  padding-inline: .2rem;
  font-size: .72rem;
}

.reader-toolbar.is-dense-controls .toolbar-page-indicator, .reader-toolbar.is-dense-controls .toolbar-page-jump {
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: .05rem;
  min-width: 2.35rem;
  height: 1.85rem;
  font-size: .72rem;
  display: inline-flex;
}

.reader-toolbar.is-dense-controls .toolbar-page-jump input {
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.55rem;
  font-size: .72rem;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-page-jump input {
  width: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.55rem;
}

.reader-toolbar.is-dense-controls .toolbar-page-indicator small, .reader-toolbar.is-dense-controls .toolbar-page-total {
  font-size: .62rem;
}

.reader-toolbar.is-dense-controls .toolbar-tts-controls {
  gap: .03rem;
  padding: .12rem;
}

.reader-toolbar.is-dense-controls .toolbar-tts-controls .toolbar-icon-button {
  width: 1.95rem;
  height: 1.95rem;
  min-height: 1.95rem;
}

.reader-toolbar.is-dense-controls .toolbar-tts-speed-button {
  width: 2rem;
  min-width: 2rem;
  height: 1.95rem;
  min-height: 1.95rem;
  padding-inline: .15rem;
  font-size: .68rem;
}

.toolbar-search {
  width: clamp(11.25rem, 20vw, 17.5rem);
  min-width: 0;
  display: block;
  position: relative;
}

.toolbar-search input {
  width: 100%;
  min-height: var(--touch-min);
  border-radius: var(--radius-md);
  background: var(--reader-control-surface);
  color: var(--text);
  border: 0;
  padding: .65rem .95rem .65rem 2.45rem;
  font-size: .82rem;
  font-weight: 600;
}

.toolbar-search input::placeholder {
  color: var(--reader-control-muted);
}

.toolbar-search-icon {
  width: 1rem;
  height: 1rem;
  color: var(--reader-control-muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: .9rem;
  transform: translateY(-50%);
}

.toolbar-search-toggle, .toolbar-search-close {
  flex: 0 0 var(--touch-min);
}

.toolbar-search-panel {
  grid-template-columns: minmax(0, 1fr) var(--touch-min);
  align-items: center;
  gap: .45rem;
  margin-top: .55rem;
  display: grid;
}

.toolbar-search--panel {
  width: 100%;
}

.toolbar-primary-button, .toolbar-secondary-button, .toolbar-immersive-button {
  min-height: var(--touch-min);
  border-radius: var(--radius-md);
  letter-spacing: .02em;
  box-shadow: none;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  padding: 0 clamp(.65rem, 1vw, .85rem);
  font-size: .78rem;
  font-weight: 800;
  display: inline-flex;
}

.toolbar-button-label {
  color: inherit;
  opacity: 1;
}

.toolbar-primary-button, .toolbar-immersive-button {
  color: #fff;
  background: linear-gradient(135deg, #005ab5 0%, #3174d0 100%);
  box-shadow: 0 12px 24px #005ab538;
}

.toolbar-secondary-button {
  background: var(--reader-control-surface);
  color: var(--reader-control-fg);
  transition: background-color .14s, color .14s, box-shadow .14s, transform .14s;
}

.toolbar-secondary-button.toolbar-translate-button {
  color: #7d889b;
  background: #6f778929;
}

.toolbar-secondary-button.is-active {
  color: var(--brand);
  background: #005ab51a;
}

.toolbar-primary-button:hover, .toolbar-primary-button:focus-visible, .toolbar-immersive-button:hover, .toolbar-immersive-button:focus-visible {
  color: #fff;
  border-color: #0000;
}

.toolbar-secondary-button:hover, .toolbar-secondary-button:focus-visible {
  background: var(--reader-control-surface-hover);
  color: var(--text);
}

.toolbar-secondary-button.toolbar-translate-button:hover, .toolbar-secondary-button.toolbar-translate-button:focus-visible {
  color: #a7b2c4;
  background: #6f77893d;
}

.toolbar-icon-button:disabled, .toolbar-zoom-value:disabled, .toolbar-primary-button:disabled, .toolbar-secondary-button:disabled {
  cursor: not-allowed;
}

.toolbar-icon-button:disabled, .toolbar-zoom-value:disabled {
  opacity: 1;
  color: var(--reader-control-muted);
}

.toolbar-primary-button:disabled, .toolbar-secondary-button:disabled {
  opacity: 1;
  box-shadow: none;
}

.toolbar-primary-button:disabled {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-primary-button:disabled {
    background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  }
}

.toolbar-primary-button:disabled {
  color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-primary-button:disabled {
    color: color-mix(in srgb, var(--brand) 74%, var(--text));
  }
}

.toolbar-secondary-button:disabled {
  background: var(--reader-control-surface);
  color: var(--reader-control-muted);
}

.toolbar-menu {
  z-index: 1;
  position: relative;
}

.toolbar-menu[open] {
  z-index: 120;
}

.toolbar-menu summary {
  list-style: none;
}

.toolbar-menu summary::-webkit-details-marker {
  display: none;
}

.toolbar-menu-popover {
  z-index: 120;
  border: 1px solid var(--line);
  background: var(--reader-card);
  border-radius: 16px;
  min-width: 220px;
  padding: .45rem;
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  box-shadow: 0 16px 32px #0f142329;
}

.toolbar-menu[open] .toolbar-menu-popover {
  gap: .2rem;
  display: grid;
}

.toolbar-menu-section {
  gap: .2rem;
  padding: .2rem 0;
  display: grid;
}

.toolbar-menu-section + .toolbar-menu-section {
  border-top: 1px solid var(--line);
  padding-top: .45rem;
}

.toolbar-menu-action {
  color: var(--text);
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 12px;
  justify-content: flex-start;
  align-items: center;
  gap: .55rem;
  padding: .65rem .8rem;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
}

.toolbar-menu-action.is-active {
  color: var(--brand);
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-menu-action.is-active {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
}

.toolbar-menu-action--night:hover, .toolbar-menu-action--night:focus-visible, .toolbar-menu-action--night.is-active {
  color: #d97706;
  background: #d977061f;
}

.toolbar-menu-action:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.toolbar-menu-action:has(.toolbar-menu-action-hint) {
  flex-wrap: wrap;
}

.toolbar-menu-action-hint {
  color: var(--muted);
  text-align: left;
  flex-basis: 100%;
  padding-left: 1.55rem;
  font-size: .72rem;
}

.toolbar-menu-action:hover, .toolbar-menu-action:focus-visible {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .toolbar-menu-action:hover, .toolbar-menu-action:focus-visible {
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }
}

.reader-main-grid {
  background: var(--page-frame);
  grid-template-columns: clamp(15rem, 28vw, 22rem) minmax(0, 1fr);
  height: calc(100dvh - 8.125rem);
  display: grid;
}

.reader-main-grid.toc-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.reader-main-grid.annotations-visible {
  grid-template-columns: clamp(15rem, 28vw, 22rem) minmax(0, 1fr) clamp(15rem, 28vw, 22rem);
}

.reader-main-grid.toc-hidden.annotations-visible {
  grid-template-columns: minmax(0, 1fr) clamp(15rem, 28vw, 22rem);
}

.reader-left-rail, .reader-right-rail {
  background: var(--reader-rail-bg);
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.reader-left-rail {
  border-right: 1px solid var(--line);
}

.reader-right-rail {
  border-left: 1px solid var(--line);
}

.reader-workspace-rail-host {
  flex-direction: column;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.reader-workspace-rail-host > * {
  flex: auto;
  min-width: 0;
  min-height: 0;
}

.reader-rail-resizer {
  cursor: col-resize;
  touch-action: none;
  background: none;
  min-width: .5rem;
  min-height: 0;
  position: relative;
}

@media (hover: none) {
  .reader-rail-resizer {
    min-width: .75rem;
  }
}

.reader-rail-resizer:before {
  content: "";
  background: var(--line);
  width: 1px;
  transition: width .14s, background-color .14s, opacity .14s;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.reader-rail-resizer:hover:before, .reader-main-grid.is-resizing-left .reader-rail-resizer--left:before, .reader-main-grid.is-resizing-right .reader-rail-resizer--right:before {
  background: var(--text);
  width: 2px;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-rail-resizer:hover:before, .reader-main-grid.is-resizing-left .reader-rail-resizer--left:before, .reader-main-grid.is-resizing-right .reader-rail-resizer--right:before {
    background: color-mix(in srgb, var(--text) 18%, transparent);
  }
}

.reader-toc-panel {
  background: var(--reader-rail-bg);
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.toc-panel-body {
  background: var(--reader-rail-subtle);
  flex: 1;
  min-height: 0;
  padding: .625rem .75rem;
  overflow: hidden auto;
}

.toc-thumbnail-grid, .toc-search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-thumbnail-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
  gap: .85rem;
  display: grid;
}

.toc-thumbnail-card {
  text-align: left;
  width: 100%;
  box-shadow: none;
  background: none;
  border: 0;
  gap: .45rem;
  padding: 0;
  display: grid;
}

.toc-thumbnail-sheet {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: radial-gradient(circle at top, #dae4f39e, #0000 54%), linear-gradient(#fffffffa, #f1f5fbfa);
  border-radius: 14px;
  padding: .7rem;
  display: block;
  box-shadow: 0 10px 20px #0f14230f;
}

.toc-thumbnail-card.is-active .toc-thumbnail-sheet {
  border-color: #005ab54d;
  box-shadow: 0 0 0 2px #005ab524, 0 14px 24px #0f142314;
}

.toc-thumbnail-preview {
  background: linear-gradient(#e8eef7e6, #f8fafdeb), #f7f9fc;
  border-radius: 10px;
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
  position: relative;
  overflow: hidden;
}

.toc-thumbnail-preview:after {
  content: "";
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: none;
  position: absolute;
  inset: 0;
}

.toc-thumbnail-image {
  z-index: 0;
  object-fit: contain;
  opacity: 0;
  filter: none;
  width: 100%;
  height: 100%;
  transition: opacity .14s, filter .16s;
  position: relative;
}

.toc-thumbnail-image.is-loaded {
  opacity: 1;
}

.toc-thumbnail-fallback {
  z-index: 0;
  color: #2d4567c7;
  place-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}

.toc-thumbnail-sheet[data-night-dimming="1"] .toc-thumbnail-preview:after {
  background: #ffad4f1a;
}

.toc-thumbnail-sheet[data-night-dimming="2"] .toc-thumbnail-preview:after {
  background: #ffad4f2e;
}

.toc-thumbnail-sheet[data-night-dimming="3"] .toc-thumbnail-preview:after {
  background: #ffad4f42;
}

.toc-thumbnail-sheet[data-night-dimming="4"] .toc-thumbnail-preview:after {
  background: #ffad4f57;
}

.toc-thumbnail-sheet[data-night-dimming="5"] .toc-thumbnail-preview:after {
  background: #ffad4f6b;
}

.toc-thumbnail-sheet[data-night-dimming="6"] .toc-thumbnail-preview:after {
  background: #ffad4f80;
}

.toc-thumbnail-sheet[data-paper-dark="true"], .toc-thumbnail-sheet[data-paper-dark="true"] .toc-thumbnail-preview {
  background: #1b1b1b;
}

.toc-thumbnail-sheet[data-paper-dark="true"] .toc-thumbnail-image {
  filter: invert(88.8%) hue-rotate(180deg);
}

.toc-thumbnail-sheet[data-paper-dark="true"] .toc-thumbnail-preview:after {
  background: none;
}

.toc-thumbnail-fallback-icon {
  width: 2.35rem;
  height: 2.35rem;
}

.toc-thumbnail-page {
  color: var(--muted);
  padding-left: .15rem;
  font-size: .72rem;
  font-weight: 700;
}

.toc-inline-search {
  margin-bottom: .625rem;
  display: block;
  position: relative;
}

.toc-inline-search input {
  width: 100%;
  min-height: var(--touch-min);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: #ffffffe6;
  padding: .7rem .9rem .7rem 2.55rem;
  font-size: .82rem;
  font-weight: 600;
}

.toc-inline-search-icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: .9rem;
  transform: translateY(-50%);
}

.toc-expand-all-row {
  justify-content: flex-end;
  margin-bottom: .35rem;
  display: flex;
}

.toc-expand-all-btn {
  color: var(--brand);
  letter-spacing: .03em;
  box-shadow: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: .1rem 0;
  font-size: .7rem;
  font-weight: 700;
}

.toc-expand-all-btn:hover {
  opacity: .75;
}

.toc-tree, .toc-pages-list {
  gap: .05rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.toc-row {
  border-radius: var(--radius-md);
  align-items: center;
  gap: .125rem;
  display: flex;
}

.toc-row.is-active {
  background: #005ab514;
}

.toc-expand-btn, .toc-expand-spacer {
  width: 1rem;
  min-width: 1rem;
  height: 1.75rem;
}

.toc-expand-btn {
  color: var(--muted);
  box-shadow: none;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.toc-expand-spacer {
  display: inline-block;
}

.toc-title-btn {
  text-align: left;
  width: 100%;
  min-height: 1.75rem;
  color: var(--text);
  box-shadow: none;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .3rem .5rem .3rem 0;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
}

.toc-title-btn:hover, .toc-title-btn:focus-visible {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .toc-title-btn:hover, .toc-title-btn:focus-visible {
    background: color-mix(in srgb, var(--text) 5%, transparent);
  }
}

.toc-title-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: auto;
  min-width: 0;
  overflow: hidden;
}

.toc-page-number {
  color: var(--muted);
  letter-spacing: .02em;
  opacity: .75;
  flex: none;
  margin-right: 0;
  font-size: .69rem;
  font-weight: 600;
}

.toc-expand-chevron {
  width: .75rem;
  height: .75rem;
  color: var(--muted);
  transition: transform .14s;
  transform: rotate(-90deg);
}

.toc-expand-chevron.is-open {
  transform: rotate(0);
}

.toc-search-results {
  min-height: 100%;
}

.toc-search-list {
  gap: .7rem;
  display: grid;
}

.toc-search-list button {
  text-align: left;
  background: #fffffff0;
  border: 1px solid #0000000f;
  border-radius: 16px;
  justify-items: start;
  gap: .55rem;
  width: 100%;
  padding: .9rem 1rem;
  display: grid;
  box-shadow: 0 10px 22px #0f14230d;
}

.toc-search-badge {
  color: var(--brand);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #005ab51a;
  border-radius: 999px;
  align-items: center;
  padding: .18rem .55rem;
  font-size: .64rem;
  font-weight: 800;
  display: inline-flex;
}

.toc-search-snippet {
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
}

.toc-highlight {
  color: inherit;
  background: #ffc80059;
  border-radius: 2px;
  padding: 0 1px;
}

html[data-theme="dark"] .toc-highlight {
  background: #ffc80040;
}

.toc-empty {
  color: var(--muted);
  margin: .25rem 0 0;
  font-size: .84rem;
}

.reader-notification-center {
  border-top: 1px solid var(--line);
  background: var(--reader-rail-bg);
  flex-direction: column;
  flex: none;
  min-height: 0;
  display: flex;
}

.reader-notification-header {
  padding: 0;
}

.reader-notification-toggle {
  width: 100%;
  min-height: var(--touch-min);
  color: var(--text);
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  display: flex;
}

.reader-notification-toggle:hover, .reader-notification-toggle:focus-visible {
  background: var(--reader-control-surface-hover);
}

.reader-notification-toggle-label, .reader-notification-toggle-meta {
  align-items: center;
  gap: .5rem;
  min-width: 0;
  display: inline-flex;
}

.reader-notification-toggle-label {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 800;
}

.reader-notification-toggle-icon, .reader-notification-chevron {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
  flex: none;
}

.reader-notification-chevron {
  transition: transform .16s;
}

.reader-notification-chevron:not(.is-open) {
  transform: rotate(-90deg);
}

.reader-notification-count {
  border: 1px solid var(--line);
  background: var(--reader-rail-subtle);
  min-width: 1.25rem;
  height: 1.25rem;
  color: var(--text);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 .35rem;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
}

.reader-notification-body {
  max-height: clamp(8rem, 24vh, 18rem);
  padding: 0 1rem 1rem;
  overflow: auto;
}

.reader-notification-list {
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.reader-notification-item {
  border: 1px solid var(--line);
  background: var(--reader-card);
  border-radius: 8px;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  gap: .55rem;
  padding: .7rem;
  display: grid;
}

.reader-notification-item.is-success {
  border-color: #16a34a;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-notification-item.is-success {
    border-color: color-mix(in srgb, #16a34a 35%, var(--line));
  }
}

.reader-notification-item.is-error {
  border-color: #dc2626;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-notification-item.is-error {
    border-color: color-mix(in srgb, #dc2626 42%, var(--line));
  }
}

.reader-notification-item.is-info {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-notification-item.is-info {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  }
}

.reader-notification-item-progress {
  background: var(--line);
  border-radius: 999px;
  height: 5px;
  margin-top: .35rem;
  display: block;
  overflow: hidden;
}

.reader-notification-item-progress__fill {
  border-radius: inherit;
  background: var(--brand);
  height: 100%;
  transition: width .15s ease-out;
  display: block;
}

.reader-notification-item-icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
  margin-top: .1rem;
}

.reader-notification-item.is-success .reader-notification-item-icon {
  color: #16a34a;
}

.reader-notification-item.is-error .reader-notification-item-icon {
  color: #dc2626;
}

.reader-notification-item-copy {
  gap: .2rem;
  min-width: 0;
  display: grid;
}

.reader-notification-item-title {
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
}

.reader-notification-item-message, .reader-notification-empty {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
}

.reader-notification-empty {
  margin: 0;
}

.reader-tts-panel {
  border-top: 1px solid var(--line);
  background: var(--reader-rail-bg);
  flex-direction: column;
  flex: none;
  min-height: 0;
  display: flex;
}

.reader-tts-panel-header {
  padding: 0;
}

.reader-tts-panel-toggle {
  width: 100%;
  min-height: var(--touch-min);
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  display: flex;
}

.reader-tts-panel-toggle > span:first-child {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 800;
}

.reader-tts-panel-body {
  gap: .85rem;
  max-height: clamp(260px, 40vh, 480px);
  padding: 0 1rem 1rem;
  display: grid;
  overflow: auto;
}

.reader-scroll {
  background: var(--page-frame);
  padding: 3rem;
  overflow: auto;
}

.reader-tts-panel-toggle-label, .reader-tts-panel-toggle-meta {
  align-items: center;
  gap: .5rem;
  display: inline-flex;
}

.reader-tts-panel-toggle-label {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 800;
}

.reader-tts-panel-toggle-icon, .reader-tts-panel-chevron {
  width: 1rem;
  height: 1rem;
}

.reader-tts-panel-toggle-icon {
  color: var(--brand);
}

.reader-tts-panel-chevron {
  color: var(--muted);
}

.reader-tts-player-card, .reader-tts-detail-card {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.reader-tts-player-card {
  gap: .9rem;
  display: grid;
}

.reader-tts-section-title {
  color: var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
}

.reader-tts-live-status, .reader-tts-alert-stack {
  gap: .35rem;
  display: grid;
}

.reader-tts-live-status p, .reader-tts-alert-stack p {
  margin-bottom: 0;
}

.reader-tts-mini-player {
  gap: .65rem;
  padding: 0 1rem 1rem;
  display: grid;
}

.reader-tts-mini-copy {
  gap: .15rem;
  min-width: 0;
  display: grid;
}

.reader-tts-mini-copy strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 800;
  overflow: hidden;
}

.reader-tts-mini-copy span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.reader-tts-mini-controls {
  justify-content: center;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.reader-tts-mini-button {
  background: var(--reader-rail-subtle);
  width: 2.5rem;
  height: 2.5rem;
  color: var(--reader-control-fg);
  box-shadow: none;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.reader-tts-mini-button--primary, .reader-tts-mini-button--primary:hover, .reader-tts-mini-button--primary:focus-visible {
  background: var(--brand);
  color: #fff;
}

.reader-tts-mini-button:disabled, .reader-tts-mini-button--primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.reader-tts-mini-icon {
  width: 1rem;
  height: 1rem;
}

.reader-tts-mini-progress input {
  width: 100%;
  accent-color: var(--brand);
}

.reader-tts-transport {
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: .2rem;
  display: flex;
}

.reader-tts-transport-button {
  width: var(--touch-min);
  height: var(--touch-min);
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-tts-transport-button {
    color: color-mix(in srgb, var(--text) 55%, transparent);
  }
}

.reader-tts-transport-button {
  box-shadow: none;
}

.reader-tts-transport-button:hover, .reader-tts-transport-button:focus-visible {
  color: var(--brand);
  background: #0000000d;
}

.reader-tts-transport-button--primary {
  background: var(--brand);
  color: #fff;
  width: 3.5rem;
  height: 3.5rem;
  box-shadow: 0 6px 16px #005ab538;
}

.reader-tts-transport-button--primary:hover, .reader-tts-transport-button--primary:focus-visible {
  background: var(--brand);
  color: #fff;
  transform: scale(1.04);
}

.reader-tts-transport-button:disabled, .reader-tts-transport-button--primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.reader-tts-transport-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.reader-tts-transport-icon--play {
  margin-left: .125rem;
}

.reader-tts-progress {
  gap: .4rem;
  display: grid;
}

.reader-tts-progress input {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
  height: 1.5rem;
}

.reader-tts-progress input:focus-visible, .reader-tts-mini-progress input:focus-visible {
  outline-offset: 3px;
  outline: 2px solid #005ab57a;
}

.reader-tts-progress span {
  color: var(--muted);
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
}

.reader-tts-segment-title {
  color: var(--text);
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
}

.reader-tts-setting-list {
  gap: .6rem;
  display: grid;
}

.reader-tts-setting-list--playback {
  border-top: 1px solid var(--line);
  padding-top: .65rem;
}

.reader-tts-setting-row {
  color: var(--text);
  min-height: var(--touch-min);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  display: flex;
}

.reader-tts-setting-row > span:first-child {
  color: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-tts-setting-row > span:first-child {
    color: color-mix(in srgb, var(--text) 62%, transparent);
  }
}

.reader-tts-setting-row > span:first-child {
  font-weight: 600;
}

.reader-tts-setting-row strong {
  font-size: .77rem;
  font-weight: 700;
}

.reader-tts-setting-row select, .reader-tts-setting-row input[type="number"] {
  min-height: var(--touch-min);
  border-radius: var(--radius-md);
  background: var(--reader-rail-subtle);
  min-width: 7rem;
  color: var(--text);
  border: 0;
  outline: none;
  padding: .375rem .625rem;
  font-size: .82rem;
  font-weight: 600;
}

.reader-tts-setting-row select:focus, .reader-tts-setting-row input[type="number"]:focus {
  outline-offset: 1px;
  outline: 2px solid #005ab566;
}

.reader-tts-setting-row--range {
  flex: 1;
}

.reader-tts-range-row {
  gap: .5rem;
  display: flex;
}

.reader-tts-toggle-wrap {
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.reader-tts-toggle-wrap input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.reader-tts-toggle-wrap input:focus-visible {
  outline-offset: 4px;
  outline: 2px solid #005ab57a;
}

.reader-tts-setup {
  border-top: 1px solid var(--line);
  gap: .75rem;
  padding-top: .8rem;
  display: grid;
}

.reader-tts-setup-toggle {
  width: 100%;
  min-height: var(--touch-min);
  border-radius: var(--radius-md);
  background: var(--reader-rail-subtle);
  color: var(--text);
  text-align: left;
  box-shadow: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: .75rem .875rem;
  display: flex;
}

.reader-tts-setup-toggle > span {
  gap: .16rem;
  min-width: 0;
  display: grid;
}

.reader-tts-setup-toggle strong {
  color: var(--text);
  font-size: .82rem;
  font-weight: 800;
}

.reader-tts-setup-toggle small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 700;
  overflow: hidden;
}

.reader-tts-setup-toggle:hover, .reader-tts-setup-toggle:focus-visible, .reader-tts-mini-button:hover, .reader-tts-mini-button:focus-visible {
  background: var(--reader-control-surface-hover);
}

.reader-tts-setup-body {
  gap: .8rem;
  display: grid;
}

.reader-tts-action-stack {
  gap: .55rem;
  display: grid;
}

.reader-tts-primary-action, .reader-tts-secondary-action {
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: none;
  border: 0;
  padding: .78rem .9rem;
  font-size: .82rem;
  font-weight: 800;
}

.reader-tts-primary-action {
  background: var(--brand);
  color: #fff;
}

.reader-tts-secondary-action {
  background: var(--reader-rail-subtle);
  color: var(--text);
}

.reader-tts-primary-action:disabled, .reader-tts-secondary-action:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.reader-tts-panel button:focus-visible, .reader-tts-primary-action:focus-visible, .reader-tts-secondary-action:focus-visible, .reader-tts-segments li button:focus-visible {
  outline-offset: 3px;
  outline: 2px solid #005ab57a;
}

.reader-tts-detail-grid {
  gap: .75rem;
  display: grid;
}

.reader-tts-detail-card {
  gap: .55rem;
  display: grid;
}

.reader-tts-detail-card--segments {
  border-top: 1px solid var(--line);
  max-height: clamp(180px, 30vh, 320px);
  padding-top: .8rem;
  overflow: auto;
}

.reader-tts-section-header {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.reader-tts-section-header h3 {
  color: var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
}

.reader-tts-section-header span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.reader-tts-summary {
  color: var(--muted);
  gap: .24rem;
  font-size: .8rem;
  display: grid;
}

.reader-tts-summary p, .reader-tts-section h3 {
  margin: 0;
}

.reader-tts-segments {
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.reader-tts-segments li button {
  border-radius: var(--radius-md);
  background: var(--reader-rail-subtle);
  width: 100%;
  min-height: var(--touch-min);
  text-align: left;
  box-shadow: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: .75rem .875rem;
  display: flex;
}

.reader-tts-segments li button strong {
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
}

.reader-tts-segments li button span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.reader-tts-segments li button.is-active {
  background: var(--reader-tts-segment-active-bg);
  border-color: var(--reader-tts-accent);
}

.reader-tts-segments li button.is-active strong:after {
  content: " •";
  color: var(--reader-tts-accent);
}

.reader-tts-panel .reader-inline-warning, .reader-tts-panel .reader-inline-status {
  margin-top: 0;
  font-size: .78rem;
}

html[data-theme="dark"] .reader-toolbar {
  background: var(--reader-toolbar-bg);
}

html[data-theme="dark"] .toolbar-pill, html[data-theme="dark"] .toolbar-search input, html[data-theme="dark"] .toc-inline-search input, html[data-theme="dark"] .toolbar-menu-popover, html[data-theme="dark"] .reader-left-rail, html[data-theme="dark"] .reader-right-rail, html[data-theme="dark"] .reader-toc-panel, html[data-theme="dark"] .reader-notification-center, html[data-theme="dark"] .reader-tts-panel {
  background: var(--reader-rail-bg);
  border-color: var(--line);
}

html[data-theme="dark"] .reader-notification-item {
  background: var(--reader-card);
}

html[data-theme="dark"] .toc-search-list button {
  background: var(--reader-card);
  border-color: var(--line);
  box-shadow: none;
}

html[data-theme="dark"] .reader-annotations-list li {
  background: var(--reader-card);
  border-top-color: var(--line);
  border-right-color: var(--line);
  border-bottom-color: var(--line);
  box-shadow: none;
}

html[data-theme="dark"] .toolbar-icon-button, html[data-theme="dark"] .toolbar-menu summary, html[data-theme="dark"] .toc-expand-btn, html[data-theme="dark"] .toolbar-search-icon, html[data-theme="dark"] .toc-inline-search-icon, html[data-theme="dark"] .toolbar-page-indicator small, html[data-theme="dark"] .toc-thumbnail-page, html[data-theme="dark"] .reader-annotations-header span, html[data-theme="dark"] .toc-empty {
  color: var(--muted);
}

html[data-theme="dark"] .toolbar-icon-button:hover, html[data-theme="dark"] .toolbar-icon-button:focus-visible, html[data-theme="dark"] .toolbar-menu summary:hover, html[data-theme="dark"] .toolbar-menu summary:focus-visible, html[data-theme="dark"] .toc-title-btn:hover, html[data-theme="dark"] .toc-title-btn:focus-visible, html[data-theme="dark"] .toolbar-menu-action:hover, html[data-theme="dark"] .toolbar-menu-action:focus-visible {
  color: var(--text);
  background: #ffffff14;
}

html[data-theme="dark"] .toolbar-icon-button--night:hover, html[data-theme="dark"] .toolbar-icon-button--night:focus-visible, html[data-theme="dark"] .toolbar-icon-button--night.is-active, html[data-theme="dark"] .toolbar-icon-button--night.is-active:hover, html[data-theme="dark"] .toolbar-icon-button--night.is-active:focus-visible {
  background: #d97706;
}

@supports (color: color-mix(in lab, red, red)) {
  html[data-theme="dark"] .toolbar-icon-button--night:hover, html[data-theme="dark"] .toolbar-icon-button--night:focus-visible, html[data-theme="dark"] .toolbar-icon-button--night.is-active, html[data-theme="dark"] .toolbar-icon-button--night.is-active:hover, html[data-theme="dark"] .toolbar-icon-button--night.is-active:focus-visible {
    background: color-mix(in srgb, #d97706 16%, var(--reader-control-surface));
  }
}

html[data-theme="dark"] .toolbar-icon-button--night:hover, html[data-theme="dark"] .toolbar-icon-button--night:focus-visible, html[data-theme="dark"] .toolbar-icon-button--night.is-active, html[data-theme="dark"] .toolbar-icon-button--night.is-active:hover, html[data-theme="dark"] .toolbar-icon-button--night.is-active:focus-visible {
  color: #f59e0b;
}

html[data-theme="dark"] .toolbar-icon-button--night.is-active .toolbar-control-badge {
  color: #1f1300;
  background: #f59e0b;
}

html[data-theme="dark"] .toolbar-menu-action--night:hover, html[data-theme="dark"] .toolbar-menu-action--night:focus-visible, html[data-theme="dark"] .toolbar-menu-action--night.is-active {
  color: #f59e0b;
  background: #d9770624;
}

html[data-theme="dark"] .toc-thumbnail-sheet {
  background: radial-gradient(circle at top, #6c84ad47, #0000 56%), linear-gradient(#f7f9fcfa, #e4eaf3fa);
  border-color: #ffffff1f;
}

html[data-theme="dark"] .toc-thumbnail-preview {
  background: linear-gradient(#dee5effa, #f4f7fbfa), #edf2f8;
}

html[data-theme="dark"] .toc-thumbnail-sheet[data-paper-dark="true"], html[data-theme="dark"] .toc-thumbnail-sheet[data-paper-dark="true"] .toc-thumbnail-preview {
  background: #1b1b1b;
}

html[data-theme="dark"] .toc-thumbnail-fallback {
  color: #2b4363cc;
}

html[data-theme="dark"] .toc-thumbnail-sheet[data-paper-dark="true"] .toc-thumbnail-fallback {
  color: #e2e8f0b3;
}

html[data-theme="dark"] .reader-tts-player-card, html[data-theme="dark"] .reader-tts-detail-card:not(.reader-panel), html[data-theme="dark"] .reader-tts-segments li button {
  border-color: var(--line);
  background: none;
}

html[data-theme="dark"] .reader-tts-setting-row select, html[data-theme="dark"] .reader-tts-setting-row input[type="number"], html[data-theme="dark"] .reader-tts-secondary-action {
  background: var(--reader-rail-subtle);
  color: var(--text);
}

html[data-theme="dark"] .reader-tts-setting-row select {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

html[data-theme="dark"] .reader-tts-setting-row select option {
  color: #fff;
  background: #1b2029;
}

html[data-theme="dark"] .reader-tts-setting-row select option:disabled {
  color: #ffffff9e;
}

html[data-theme="dark"] .reader-tts-transport-button:hover, html[data-theme="dark"] .reader-tts-transport-button:focus-visible {
  background: #ffffff14;
}

html[data-theme="dark"] .reader-scroll {
  background: var(--page-frame);
}

[data-ui="v2"] .v2-reader-view, [data-ui="v2"] .v2-reader-surface {
  height: 100%;
}

.app-shell-mobile-nav {
  display: none;
}

[data-ui="v2"] .v2-reader-surface .reader-root {
  background: none;
  border: 0;
  border-radius: 0;
  flex-direction: column;
  height: 100%;
  display: flex;
  position: relative;
  overflow: visible;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar {
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid #00000014;
  border-radius: 0;
  margin-bottom: 0;
}

[data-ui="v2"] .v2-reader-surface .reader-main-grid {
  height: auto;
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  flex: 1;
  overflow: hidden;
}

[data-ui="v2"] .v2-reader-surface .reader-left-rail, [data-ui="v2"] .v2-reader-surface .reader-right-rail, [data-ui="v2"] .v2-reader-surface .reader-toc-panel, [data-ui="v2"] .v2-reader-surface .reader-tts-panel {
  background: var(--reader-rail-bg);
}

[data-ui="v2"] .v2-reader-surface .reader-scroll {
  background: var(--page-frame);
  padding: 2.25rem 3rem 2.75rem;
}

[data-ui="v2"] .v2-reader-surface .pdf-page-shell {
  box-shadow: var(--reader-shadow);
  border-color: #0000000d;
  border-radius: 4px;
  margin-bottom: 2rem;
}

html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-main-grid, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-left-rail, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-right-rail, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toc-panel, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-tts-panel {
  background: var(--reader-rail-bg);
  border-color: var(--line);
}

html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-scroll {
  background: var(--page-frame);
}

html[data-theme="dark"] .toolbar-control-badge {
  box-shadow: 0 0 0 2px var(--reader-toolbar-bg);
}

html[data-theme="dark"] .toolbar-primary-button:disabled {
  color: #ffffff9e;
  background: #ffffff14;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .app-shell-rail {
    display: none !important;
  }

  .app-shell-main {
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-bottom: var(--mobile-nav-obstruction-height, calc(4.25rem + env(safe-area-inset-bottom))) !important;
  }

  .app-shell-mobile-nav {
    z-index: 60;
    padding: .45rem .6rem max(.45rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--app-shell-rail-border);
    background: var(--app-shell-rail-bg);
    -webkit-backdrop-filter: blur(16px);
    justify-content: center;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -12px 32px #0000002e;
  }

  .app-shell-mobile-nav__inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .2rem;
    width: min(100%, 32rem);
    display: grid;
  }

  .app-shell-mobile-nav__item {
    min-width: 0;
    color: var(--text);
    border-radius: 12px;
    justify-items: center;
    gap: .18rem;
    padding: .38rem .2rem;
    display: grid;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .app-shell-mobile-nav__item {
      color: color-mix(in srgb, var(--text) 52%, transparent);
    }
  }

  .app-shell-mobile-nav__item {
    text-decoration: none;
  }

  .app-shell-mobile-nav__item svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .app-shell-mobile-nav__item span {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-size: .58rem;
    font-weight: 750;
    line-height: 1;
    overflow: hidden;
  }

  .app-shell-mobile-nav__item.is-active {
    background: var(--brand);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .app-shell-mobile-nav__item.is-active {
      background: color-mix(in srgb, var(--brand) 14%, transparent);
    }
  }

  .app-shell-mobile-nav__item.is-active {
    color: var(--brand);
  }

  .app-shell-mobile-nav__item.is-disabled {
    opacity: .4;
  }
}

[data-ui="v2"] .v2-reader-surface .reader-root.immersive-open {
  overflow: hidden;
}

[data-ui="v2"] .v2-reader-surface .reader-root.immersive-open .reader-main-grid, [data-ui="v2"] .v2-reader-surface .reader-root.immersive-open .reader-render-debug {
  -webkit-user-select: none;
  user-select: none;
}

.reader-toolbar.is-immersive-active {
  display: none !important;
}

.reader-immersive {
  --immersive-bg: #f9f9ff;
  --immersive-surface: #ffffffd1;
  --immersive-card: #ffffffe6;
  --immersive-line: #191c2114;
  --immersive-muted: #191c2180;
  --immersive-copy: #191c21e0;
  --immersive-glow-a: #005ab51f;
  --immersive-glow-b: #3174d014;
  z-index: 24;
  background: var(--immersive-bg);
  color: var(--text);
  flex-direction: column;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.reader-immersive-backdrop {
  pointer-events: none;
  background: radial-gradient(circle at 14% 12%, var(--immersive-glow-a) 0%, #005ab500 34%), radial-gradient(circle at 88% 82%, var(--immersive-glow-b) 0%, #844cff00 36%), linear-gradient(180deg, #f9f9fff5 0%, #f9f9ff 100%);
  position: absolute;
  inset: 0;
}

.reader-immersive-notice {
  z-index: 2;
  border: 1px solid var(--immersive-line);
  background: var(--immersive-surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  text-align: center;
  min-width: 220px;
  max-width: min(560px, 100vw - 2rem);
  color: var(--immersive-copy);
  border-radius: 999px;
  padding: .6rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  position: absolute;
  top: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 18px 40px #0f14231a;
}

.reader-immersive-header, .reader-immersive-footer {
  z-index: 1;
  align-items: center;
  padding: 0 1.5rem;
  display: grid;
  position: relative;
}

.reader-immersive-header {
  z-index: 4;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(36rem, 50vw)) minmax(0, 1fr);
  min-height: 80px;
}

.reader-immersive-exit, .reader-immersive-icon-button {
  border: 1px solid var(--immersive-line);
  background: var(--immersive-surface);
  min-height: 40px;
  color: var(--immersive-copy);
  box-shadow: none;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: 0 .9rem;
  display: inline-flex;
}

.reader-immersive-exit {
  z-index: 1;
  justify-self: start;
  font-size: .8rem;
  font-weight: 800;
  position: relative;
}

.reader-immersive-exit:hover, .reader-immersive-exit:focus-visible, .reader-immersive-icon-button:hover, .reader-immersive-icon-button:focus-visible {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-immersive-exit:hover, .reader-immersive-exit:focus-visible, .reader-immersive-icon-button:hover, .reader-immersive-icon-button:focus-visible {
    background: color-mix(in srgb, var(--text) 6%, var(--immersive-surface));
  }
}

.reader-immersive-exit:hover, .reader-immersive-exit:focus-visible, .reader-immersive-icon-button:hover, .reader-immersive-icon-button:focus-visible {
  color: var(--text);
}

.reader-immersive-icon-button {
  width: 40px;
  padding: 0;
}

.reader-immersive-icon-button.is-active {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-immersive-icon-button.is-active {
    border-color: color-mix(in srgb, var(--brand) 42%, var(--immersive-line));
  }
}

.reader-immersive-icon-button.is-active {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-immersive-icon-button.is-active {
    background: color-mix(in srgb, var(--brand) 12%, var(--immersive-surface));
  }
}

.reader-immersive-icon-button.is-active {
  color: var(--brand);
}

.reader-immersive-icon-button:disabled, .reader-immersive-exit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.reader-immersive-title-wrap {
  text-align: center;
  justify-items: center;
  gap: .3rem;
  width: 100%;
  min-width: 0;
  display: grid;
}

.reader-immersive-title-wrap h2 {
  max-width: 100%;
  color: var(--text);
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: clamp(1.05rem, 1vw + .8rem, 1.35rem);
  font-weight: 800;
  overflow: hidden;
}

.reader-immersive-title-wrap p {
  color: var(--immersive-muted);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0;
  font-size: .62rem;
  font-weight: 800;
}

.reader-immersive-header-actions {
  z-index: 1;
  justify-self: end;
  align-items: center;
  gap: .75rem;
  display: inline-flex;
  position: relative;
}

.reader-immersive-header-actions .reader-immersive-icon-button {
  width: 46px;
  min-height: 46px;
}

.reader-immersive-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.reader-immersive-menu {
  position: relative;
}

.reader-immersive-menu-popover {
  z-index: 5;
  border: 1px solid var(--immersive-line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #fffffff0;
  border-radius: 18px;
  min-width: 220px;
  padding: .45rem;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  box-shadow: 0 24px 60px #0f142324;
}

.reader-immersive-menu-popover button {
  width: 100%;
  min-height: 52px;
  color: var(--text);
  text-align: left;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 12px;
  grid-template-columns: 1.1rem minmax(0, 1fr) 1.1rem;
  align-items: center;
  gap: .7rem;
  padding: .8rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  display: grid;
}

.reader-immersive-menu-popover button:hover, .reader-immersive-menu-popover button:focus-visible {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-immersive-menu-popover button:hover, .reader-immersive-menu-popover button:focus-visible {
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }
}

.reader-immersive-menu-icon, .reader-immersive-menu-check svg {
  width: 1rem;
  height: 1rem;
}

.reader-immersive-menu-check {
  color: var(--brand);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.reader-immersive-main {
  z-index: 1;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 0 1.5rem;
  display: flex;
  position: relative;
}

.reader-immersive-text-scroll {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: auto;
}

.reader-immersive-article {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.reader-immersive-spacer {
  pointer-events: none;
  width: 100%;
}

.reader-immersive-page {
  margin-bottom: 3rem;
}

.reader-immersive-page-marker {
  color: var(--immersive-muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
}

.reader-immersive-page-marker:after {
  content: "";
  background: var(--immersive-line);
  flex: 1;
  height: 1px;
}

.reader-immersive-paragraph {
  color: var(--immersive-copy);
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
  font-size: clamp(1.22rem, .45vw + 1.08rem, 1.5rem);
  line-height: 1.9;
}

.reader-immersive-paragraph--quote {
  background: var(--immersive-card);
  border: 1px solid #0000000d;
  border-radius: 32px;
  margin: 2.25rem 0;
  padding: 2rem 2.2rem;
  position: relative;
  box-shadow: 0 24px 60px #0f142314;
}

.reader-immersive-paragraph--quote:before {
  content: "";
  filter: blur(54px);
  pointer-events: none;
  background: #005ab51a;
  border-radius: 999px;
  width: 140px;
  height: 140px;
  position: absolute;
  top: -20px;
  right: 8%;
}

.reader-immersive-highlight {
  background: var(--annotation-color);
  border-radius: .28em;
  margin: 0 -.04em;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-immersive-highlight {
    background: color-mix(in srgb, var(--annotation-color) 24%, transparent);
  }
}

.reader-immersive-highlight {
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: inset 0 -.08em 0 var(--annotation-color);
  padding: .05em .1em;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-immersive-highlight {
    box-shadow: inset 0 -.08em 0 color-mix(in srgb, var(--annotation-color) 36%, transparent);
  }
}

.reader-immersive-audio-stage {
  --immersive-audio-hero-size: clamp(9rem, 24dvh, 13rem);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--immersive-audio-hero-size) minmax(0, 1fr) 8.75rem;
  text-align: center;
  align-self: stretch;
  align-items: center;
  row-gap: clamp(.5rem, 1.5dvh, 1rem);
  width: min(100%, 940px);
  height: 100%;
  min-height: 0;
  padding: .75rem 0 1rem;
  display: grid;
}

.reader-immersive-hero {
  width: var(--immersive-audio-hero-size);
  height: var(--immersive-audio-hero-size);
  grid-row: 1;
  justify-self: center;
  position: relative;
}

.reader-immersive-hero:before, .reader-immersive-hero:after {
  content: "";
  opacity: 0;
  border: 1px solid #005ab52e;
  border-radius: 999px;
  position: absolute;
  inset: 0;
}

.reader-immersive-hero.is-playing:before {
  animation: 3s ease-out infinite immersivePulse;
}

.reader-immersive-hero.is-playing:after {
  animation: 3s ease-out 1s infinite immersivePulse;
}

.reader-immersive-hero-frame {
  background: linear-gradient(135deg, #005ab5 0%, #6a6af8 52%, #ff5e90 100%);
  border-radius: 999px;
  width: 100%;
  height: 100%;
  padding: 4px;
  position: relative;
  box-shadow: 0 0 90px #005ab538;
}

.reader-immersive-hero-frame:after {
  content: "";
  background: var(--immersive-bg);
  z-index: 0;
  border-radius: 999px;
  position: absolute;
  inset: 4px;
}

.reader-immersive-hero-image, .reader-immersive-hero-fallback {
  z-index: 1;
  border-radius: 999px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  position: absolute;
  inset: 12px;
}

.reader-immersive-hero-image {
  object-fit: cover;
  opacity: .34;
}

.reader-immersive-hero-fallback {
  background: radial-gradient(circle at 30% 30%, #ffffff29 0%, #fff0 38%), linear-gradient(135deg, #005ab566, #6a6af847, #ff5e9033);
}

.reader-immersive-audio-copy {
  scrollbar-width: none;
  grid-row: 2;
  place-self: center;
  width: min(100%, 52rem);
  min-height: 0;
  max-height: 100%;
  padding: .25rem 1rem;
  display: grid;
  overflow-y: auto;
}

.reader-immersive-audio-copy::-webkit-scrollbar {
  display: none;
}

.reader-immersive-audio-text {
  color: var(--text);
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

.reader-immersive-audio-text--short {
  font-size: clamp(1.55rem, 3.8dvh, 2.2rem);
}

.reader-immersive-audio-text--medium {
  font-size: clamp(1.35rem, 3.25dvh, 1.9rem);
}

.reader-immersive-audio-text--long {
  font-size: clamp(1.15rem, 2.75dvh, 1.55rem);
}

.reader-immersive-audio-meta {
  color: var(--immersive-muted);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
}

.reader-immersive-audio-transport {
  grid-row: 3;
  place-self: center;
  gap: .65rem;
  display: grid;
}

.reader-immersive-audio-controls {
  justify-content: center;
  align-items: center;
  gap: 2rem;
  display: flex;
}

.reader-immersive-audio-button {
  width: 56px;
  height: 56px;
  color: var(--immersive-muted);
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.reader-immersive-audio-button:hover, .reader-immersive-audio-button:focus-visible {
  color: var(--text);
  background: #0000000a;
}

.reader-immersive-audio-button--primary {
  background: var(--text);
  width: 92px;
  height: 92px;
  color: var(--immersive-bg);
  box-shadow: 0 18px 44px #0f142333;
}

.reader-immersive-audio-button--primary:hover, .reader-immersive-audio-button--primary:focus-visible {
  background: var(--text);
  color: var(--immersive-bg);
  transform: scale(1.04);
}

.reader-immersive-audio-icon {
  width: 26px;
  height: 26px;
}

.reader-immersive-audio-primary-icon {
  width: 34px;
  height: 34px;
}

.reader-immersive-audio-primary-icon--play {
  margin-left: 4px;
}

.reader-immersive-audio-empty {
  border: 1px solid var(--immersive-line);
  background: var(--immersive-surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  width: min(100%, 540px);
  color: var(--immersive-copy);
  border-radius: 28px;
  grid-row: 2;
  place-self: center;
  padding: 1.35rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 22px 56px #0f142314;
}

.reader-immersive-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  min-height: 92px;
}

.reader-immersive-progress {
  align-items: center;
  display: flex;
}

.reader-immersive-progress input {
  width: 100%;
  accent-color: var(--brand);
}

.reader-immersive-footer-actions {
  align-items: center;
  gap: .85rem;
  display: inline-flex;
}

html[data-theme="dark"] .reader-immersive {
  --immersive-bg: #131313;
  --immersive-surface: #ffffff0d;
  --immersive-card: #ffffff0d;
  --immersive-line: #ffffff1a;
  --immersive-muted: #ffffff7a;
  --immersive-copy: #ffffffe0;
  --immersive-glow-a: #005ab533;
  --immersive-glow-b: #8a4eff29;
}

html[data-theme="dark"] .reader-immersive-backdrop {
  background: radial-gradient(circle at 14% 12%, var(--immersive-glow-a) 0%, #005ab500 34%), radial-gradient(circle at 88% 82%, var(--immersive-glow-b) 0%, #844cff00 36%), linear-gradient(180deg, #131313fa 0%, #131313 100%);
}

html[data-theme="dark"] .reader-immersive-exit:hover, html[data-theme="dark"] .reader-immersive-exit:focus-visible, html[data-theme="dark"] .reader-immersive-icon-button:hover, html[data-theme="dark"] .reader-immersive-icon-button:focus-visible, html[data-theme="dark"] .reader-immersive-audio-button:hover, html[data-theme="dark"] .reader-immersive-audio-button:focus-visible {
  background: #ffffff14;
}

html[data-theme="dark"] .reader-immersive-menu-popover {
  background: #131313f0;
}

html[data-theme="dark"] .reader-immersive-paragraph--quote {
  border-color: #ffffff14;
}

html[data-theme="dark"] .reader-immersive-audio-button--primary, html[data-theme="dark"] .reader-immersive-audio-button--primary:hover, html[data-theme="dark"] .reader-immersive-audio-button--primary:focus-visible {
  color: #131313;
  background: #fff;
}

@keyframes immersivePulse {
  0% {
    opacity: .34;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

@media (max-width: 768px) {
  .reader-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-group--center {
    justify-content: flex-start;
  }

  .toolbar-search {
    width: 100%;
    max-width: none;
  }

  .reader-main-grid, .reader-main-grid.annotations-visible, .reader-main-grid.toc-hidden.annotations-visible {
    height: calc(100dvh - 9.375rem);
    position: relative;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .reader-left-rail, .reader-right-rail {
    z-index: 10;
    border-bottom: 0;
    width: min(17.5rem, 100vw - 4.75rem);
    max-width: calc(100vw - 4.75rem);
    position: absolute;
    top: 0;
    bottom: 0;
    box-shadow: 0 24px 56px #0f142329;
  }

  .reader-left-rail {
    border-right: 1px solid var(--line);
    border-left: 0;
    left: 0;
  }

  .reader-right-rail {
    border-top: 0;
    border-left: 1px solid var(--line);
    left: auto;
    right: 0;
  }

  .reader-tts-panel-body, .toc-panel-body, .reader-annotations-panel {
    max-height: 240px;
  }

  .reader-rail-resizer {
    display: none;
  }

  .reader-scroll {
    padding: 1rem .85rem 1.25rem;
  }

  .reader-immersive-header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: .75rem;
    padding: 1rem 1rem 0;
  }

  .reader-immersive-title-wrap, .reader-immersive-header-actions, .reader-immersive-exit {
    justify-self: start;
  }

  .reader-immersive-main {
    padding: 0 1rem;
  }

  .reader-immersive-article {
    width: 100%;
    padding-top: 1.25rem;
  }

  .reader-immersive-paragraph {
    font-size: 1.06rem;
    line-height: 1.82;
  }

  .reader-immersive-audio-stage {
    --immersive-audio-hero-size: clamp(7rem, 20dvh, 10rem);
    grid-template-rows: var(--immersive-audio-hero-size) minmax(0, 1fr) 6.75rem;
    padding: .5rem 0 1rem;
  }

  .reader-immersive-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem 1rem;
  }

  .reader-immersive-footer-actions {
    justify-content: flex-end;
  }
}

[data-ui="v2"] .library-upload-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

[data-ui="v2"] .library-upload-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

[data-ui="v2"] .library-upload-form input, [data-ui="v2"] .library-upload-form select, [data-ui="v2"] .library-upload-form button[type="submit"], [data-ui="v2"] .library-upload-success-actions button {
  min-height: var(--touch-min);
}

.reader-scroll, [data-ui="v2"] .v2-reader-surface .reader-scroll {
  padding: clamp(1rem, 2.8vw, 3rem);
}

.reader-scroll--spread, [data-ui="v2"] .v2-reader-surface .reader-scroll--spread {
  flex-wrap: wrap;
  place-content: flex-start center;
  gap: clamp(.35rem, .9vw, 1rem);
  display: flex;
}

.reader-scroll--flow-horizontal, [data-ui="v2"] .v2-reader-surface .reader-scroll--flow-horizontal {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  display: flex;
}

.reader-scroll--flow-horizontal .pdf-page-shell, [data-ui="v2"] .v2-reader-surface .reader-scroll--flow-horizontal .pdf-page-shell {
  flex: none;
  min-width: 0;
  max-width: none;
  margin: 0 clamp(.5rem, 1.4vw, 1.25rem);
}

.reader-scroll--pages-double .pdf-page-shell[data-spread-slot="left"] {
  margin-right: 0;
}

.reader-scroll--pages-double .pdf-page-shell[data-spread-slot="right"] {
  margin-left: 0;
}

.reader-scroll--single, [data-ui="v2"] .v2-reader-surface .reader-scroll--single {
  position: relative;
}

.reader-scroll--flow-paged, [data-ui="v2"] .v2-reader-surface .reader-scroll--flow-paged {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  display: flex;
}

.reader-scroll--flow-paged .pdf-page-shell, [data-ui="v2"] .v2-reader-surface .reader-scroll--flow-paged .pdf-page-shell {
  flex: none;
  max-width: none;
  margin-bottom: 0;
}

.pdf-page-shell[data-offscreen="true"] {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

.reader-scroll--spread .pdf-page-shell, [data-ui="v2"] .v2-reader-surface .reader-scroll--spread .pdf-page-shell {
  flex: none;
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .reader-scroll--spread, [data-ui="v2"] .v2-reader-surface .reader-scroll--spread {
    flex-direction: column;
    align-items: center;
  }

  .reader-scroll--spread .pdf-page-shell, [data-ui="v2"] .v2-reader-surface .reader-scroll--spread .pdf-page-shell {
    max-width: none;
  }
}

.selection-popover--toolbar {
  max-width: min(37.5rem, 100vw - 1.5rem);
}

.selection-toolbar-actions, .selection-toolbar-palette, .reader-immersive-footer-actions {
  flex-wrap: wrap;
}

@media (max-width: 1280px) {
  .reader-toolbar, [data-ui="v2"] .v2-reader-surface .reader-toolbar {
    padding: .55rem .7rem;
  }

  .toolbar-main-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
    min-width: 0;
    display: grid;
  }

  .toolbar-group {
    flex: none;
    gap: .45rem;
  }

  .toolbar-group--center {
    min-width: auto;
  }

  .toolbar-group--right {
    margin-left: auto;
  }

  .toolbar-search--panel {
    min-width: 0;
  }

  .toolbar-page-indicator {
    min-width: 52px;
  }

  .toolbar-primary-button, .toolbar-secondary-button {
    flex: 0 0 var(--touch-min);
    width: var(--touch-min);
    min-width: var(--touch-min);
    gap: 0;
    padding-inline: 0;
  }

  .toolbar-secondary-button--tts {
    min-width: var(--touch-min);
    padding-inline: 0;
  }

  .toolbar-button-label, .toolbar-secondary-button--tts .toolbar-button-label {
    display: none;
  }
}

@media (max-width: 960px) {
  .toolbar-primary-button--immersive {
    min-width: var(--touch-min);
    padding-inline: 0;
  }
}

@media (max-width: 1280px) {
  [data-ui="v2"] .v2-reader-surface .reader-scroll {
    padding: clamp(1rem, 2.4vw, 2rem);
  }

  [data-ui="v2"] .v2-reader-surface .reader-scroll--spread {
    padding: clamp(.85rem, 1.6vw, 1.5rem) clamp(.6rem, 1vw, 1rem) clamp(1rem, 2.4vw, 2rem);
  }
}

@media (max-width: 768px) {
  [data-ui="v2"] .v2-reader-view {
    height: 100%;
    min-height: 0;
  }

  [data-ui="v2"] .v2-reader-surface .reader-root {
    min-height: inherit;
  }

  .reader-main-grid, .reader-main-grid.annotations-visible, .reader-main-grid.toc-hidden.annotations-visible {
    min-height: 0;
    height: auto !important;
  }

  .reader-toc-panel, .reader-annotations-panel {
    width: 100%;
  }

  .toc-panel-body, .reader-annotations-panel {
    max-height: min(42dvh, 360px);
  }

  .reader-annotations-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .reader-immersive-notice {
    top: .9rem;
  }

  .reader-toolbar, [data-ui="v2"] .v2-reader-surface .reader-toolbar {
    padding: .45rem .5rem;
  }

  .toolbar-main-row {
    gap: .35rem;
  }

  .toolbar-group {
    flex-wrap: nowrap;
    gap: .35rem;
  }

  .toolbar-group--left, .toolbar-group--center, .toolbar-group--right {
    justify-content: flex-start;
    width: auto;
  }

  .toolbar-group--center {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .toolbar-group--right {
    justify-content: flex-end;
    align-items: center;
  }

  .toolbar-search {
    width: 100%;
    min-width: 0;
  }

  .toolbar-primary-button, .toolbar-secondary-button {
    flex: 0 0 var(--touch-min);
    width: var(--touch-min);
    min-width: var(--touch-min);
    padding-inline: 0;
  }

  .toolbar-menu-popover {
    max-width: min(280px, 100vw - 2rem);
    left: auto;
    right: 0;
  }

  .reader-scroll, [data-ui="v2"] .v2-reader-surface .reader-scroll {
    padding: 1rem .85rem 1.25rem;
  }

  .pdf-page-shell, [data-ui="v2"] .v2-reader-surface .pdf-page-shell {
    margin-bottom: 1rem;
  }

  .toc-thumbnail-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .reader-annotation-editor, .reader-selection-annotation-form {
    gap: .75rem;
  }

  .reader-annotation-actions {
    flex-wrap: wrap;
  }

  .selection-popover {
    width: min(340px, 100vw - 24px);
  }

  .selection-toolbar-note {
    width: min(340px, 100vw - 32px);
  }

  .reader-immersive-header {
    padding: 1rem 1rem 0;
  }

  .reader-immersive-title-wrap h2 {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  .reader-immersive-title-wrap p {
    font-size: .68rem;
  }

  .reader-immersive-audio-controls {
    gap: 1rem;
  }

  .reader-immersive-audio-button {
    width: 48px;
    height: 48px;
  }

  .reader-immersive-audio-button--primary {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .reader-toolbar, [data-ui="v2"] .v2-reader-surface .reader-toolbar {
    --touch-min: 2.5rem;
    padding: .35rem .45rem;
  }

  .toolbar-group--center {
    justify-content: center;
  }

  .toolbar-group--right {
    justify-content: flex-end;
    margin-left: 0;
  }

  .toolbar-group--left {
    gap: .25rem;
  }

  .toolbar-divider {
    display: none;
  }

  .toolbar-pill {
    justify-content: center;
    width: auto;
    padding: .16rem;
  }

  .toolbar-tts-controls {
    gap: 0;
    padding: .12rem;
  }

  .toolbar-tts-controls .toolbar-icon-button--borderless, .toolbar-tts-speed-button {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
  }

  .toolbar-tts-speed-button {
    padding-inline: .2rem;
    font-size: .68rem;
  }

  .toolbar-zoom-controls {
    gap: .05rem;
  }

  .toolbar-zoom-value {
    min-width: 3rem;
    font-size: .72rem;
  }

  .toolbar-page-controls {
    width: fit-content;
  }

  .toolbar-page-indicator {
    min-width: 2.75rem;
    font-size: .72rem;
  }

  .toolbar-page-indicator small {
    font-size: .66rem;
  }

  .toolbar-primary-button, .toolbar-secondary-button {
    flex-basis: var(--touch-min);
  }

  .toc-panel-body, .reader-annotations-panel {
    padding: .85rem;
  }

  .reader-annotations-list {
    grid-template-columns: 1fr;
  }

  .reader-immersive-main {
    padding: 0 .85rem;
  }

  .reader-immersive-page {
    margin-bottom: 2.25rem;
  }

  .reader-immersive-paragraph {
    font-size: 1rem;
    line-height: 1.78;
  }

  .reader-immersive-paragraph--quote {
    border-radius: 24px;
    padding: 1.35rem 1.2rem;
  }
}

@media (max-width: 768px) {
  .reader-left-rail .reader-toc-panel, .reader-left-rail .toc-panel-body, .reader-right-rail .reader-annotations-panel {
    height: 100%;
    max-height: none;
  }
}

.reader-toolbar.is-compact-actions .toolbar-primary-button, .reader-toolbar.is-compact-actions .toolbar-secondary-button {
  flex: 0 0 var(--touch-min);
  width: var(--touch-min);
  min-width: var(--touch-min);
  gap: 0;
  padding-inline: 0;
}

.reader-toolbar.is-compact-actions .toolbar-secondary-button--icon-ring {
  border: 1px solid var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-toolbar.is-compact-actions .toolbar-secondary-button--icon-ring {
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  }
}

.reader-toolbar.is-compact-actions .toolbar-secondary-button--icon-ring {
  border-radius: 999px;
}

.reader-toolbar.is-compact-actions .toolbar-secondary-button--icon-ring.is-active {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-toolbar.is-compact-actions .toolbar-secondary-button--icon-ring.is-active {
    border-color: color-mix(in srgb, var(--brand) 62%, transparent);
  }
}

html[data-theme="dark"] .reader-toolbar.is-compact-actions .toolbar-secondary-button--icon-ring {
  border-color: #ffffff38;
}

html[data-theme="dark"] .reader-toolbar.is-compact-actions .toolbar-secondary-button--icon-ring.is-active {
  border-color: #8bc1ffad;
}

.reader-toolbar.is-compact-actions .toolbar-primary-button .toolbar-button-label, .reader-toolbar.is-compact-actions .toolbar-secondary-button .toolbar-button-label {
  display: none;
}

.reader-toolbar.is-dense-controls .toolbar-page-controls {
  gap: 0;
  padding: .08rem;
}

.reader-toolbar.is-dense-controls .toolbar-page-controls .toolbar-icon-button {
  width: 1.7rem;
  min-width: 1.7rem;
  height: 1.7rem;
  min-height: 1.7rem;
}

.reader-toolbar.is-dense-controls .toolbar-page-jump {
  min-width: 2.1rem;
  height: 1.7rem;
  font-size: .7rem;
}

.reader-toolbar.is-dense-controls .toolbar-icon-button--toc, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items {
  width: var(--touch-min);
  min-width: var(--touch-min);
  height: var(--touch-min);
  min-height: var(--touch-min);
  color: var(--text);
  background: #f8fafdf5;
  border: 1px solid #00000014;
  border-radius: 999px;
  padding: 0;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-toolbar.is-dense-controls .toolbar-icon-button--toc, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items {
    color: color-mix(in srgb, var(--text) 40%, transparent);
  }
}

.reader-toolbar.is-dense-controls .toolbar-icon-button--toc, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items {
  box-shadow: none;
  overflow: visible;
}

.reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible {
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }
}

.reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible {
  color: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible {
    color: color-mix(in srgb, var(--text) 70%, transparent);
  }
}

.reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active {
  color: var(--text);
  background: #f8fafdf5;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active {
    color: color-mix(in srgb, var(--text) 40%, transparent);
  }
}

.reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active:before, .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active:before {
  content: none;
}

.reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items .toolbar-icon {
  width: calc(var(--touch-min) * .455);
  height: calc(var(--touch-min) * .455);
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items {
  background: #f8fafdf5;
  border: 1px solid #00000014;
  border-radius: 999px;
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc:focus-visible, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:hover, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items:focus-visible {
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }
}

[data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active {
  color: var(--text);
  background: #f8fafdf5;
}

@supports (color: color-mix(in lab, red, red)) {
  [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active {
    color: color-mix(in srgb, var(--text) 40%, transparent);
  }
}

html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active {
  color: var(--text);
  background: #ffffff14;
  border-color: #ffffff1a;
}

@supports (color: color-mix(in lab, red, red)) {
  html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-icon-button--toc.is-active, html[data-theme="dark"] [data-ui="v2"] .v2-reader-surface .reader-toolbar.is-dense-controls .toolbar-secondary-button--reader-items.is-active {
    color: color-mix(in srgb, var(--text) 40%, transparent);
  }
}

.selection-toolbar-search-split {
  align-items: center;
  display: flex;
}

.selection-toolbar-search-split .selection-toolbar-icon-button:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.selection-toolbar-engine-toggle {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 1px solid #ffffff1a;
  gap: .2rem;
  padding: 0 .4rem;
  width: auto !important;
}

.selection-toolbar-engine-label {
  color: #ffffffb3;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 5.5rem;
  font-size: .7rem;
  font-weight: 500;
  overflow: hidden;
}

.selection-toolbar-engine-toggle:hover .selection-toolbar-engine-label, .selection-toolbar-engine-toggle:focus-visible .selection-toolbar-engine-label {
  color: #fff;
}

.selection-toolbar-engine-chevron {
  opacity: .65;
  flex-shrink: 0;
  width: .65rem;
  height: .65rem;
}

.selection-toolbar-engine-toggle:hover .selection-toolbar-engine-chevron, .selection-toolbar-engine-toggle:focus-visible .selection-toolbar-engine-chevron {
  opacity: 1;
}

.selection-toolbar-providers {
  flex: none;
  align-items: center;
  gap: .25rem;
  max-width: 100%;
  display: inline-flex;
}

.selection-toolbar-provider-split {
  min-height: var(--touch-min);
  border-radius: var(--radius-md);
  background: #ffffff0f;
  align-items: stretch;
  display: inline-flex;
  position: relative;
  overflow: visible;
}

.selection-toolbar-provider-main, .selection-toolbar-provider-menu {
  min-height: var(--touch-min);
  color: #ffffffe0;
  box-shadow: none;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.selection-toolbar-provider-main {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  min-width: 4.75rem;
  max-width: 6.8rem;
  padding: 0 .6rem;
}

.selection-toolbar-provider-menu {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 1px solid #ffffff1f;
  width: 2rem;
  padding: 0;
}

.selection-toolbar-provider-main:hover, .selection-toolbar-provider-main:focus-visible, .selection-toolbar-provider-menu:hover, .selection-toolbar-provider-menu:focus-visible {
  color: #fff;
  background: #ffffff1a;
}

.selection-toolbar-provider-main .selection-toolbar-engine-label {
  max-width: 6.2rem;
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
}

.selection-toolbar-engine-list {
  flex-direction: column;
  gap: .1rem;
  width: min(190px, 100vw - 2rem);
  padding: .25rem;
  display: flex;
}

.selection-toolbar-engine-list--dropdown {
  z-index: 6;
  border-radius: var(--radius-md);
  background: #16191f;
  border: 1px solid #ffffff1a;
  width: max-content;
  min-width: 11rem;
  max-width: min(16rem, 100vw - 2rem);
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  box-shadow: 0 18px 42px #00000052;
}

.selection-toolbar-engine-option {
  border-radius: calc(var(--radius-md) - 1px);
  color: #ffffffc7;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  width: 100%;
  padding: .42rem .6rem;
  font-size: .84rem;
  display: flex;
}

.selection-toolbar-engine-option:hover, .selection-toolbar-engine-option:focus-visible {
  color: #fff;
  background: #ffffff1a;
}

.selection-toolbar-engine-option.is-active {
  color: #fff;
  font-weight: 600;
}

.selection-toolbar-engine-list-footer {
  border-top: 1px solid #ffffff1a;
  margin-top: .2rem;
  padding-top: .25rem;
  display: flex;
}

@media (max-width: 760px) {
  .selection-popover--toolbar {
    box-sizing: border-box;
    width: max-content;
    max-width: min(37.5rem, 100vw - 1.5rem);
  }

  .selection-toolbar-content, .selection-toolbar-actions {
    width: 100%;
    max-width: 100%;
  }

  .selection-toolbar-actions-row, .selection-toolbar-annotation-row {
    flex-wrap: wrap;
    row-gap: .35rem;
    width: 100%;
  }

  .selection-toolbar-provider-split {
    flex: calc(50% - .25rem);
    min-width: min(8rem, 100%);
    min-height: 2.3rem;
  }

  .selection-toolbar-provider-main {
    flex: auto;
    min-width: 0;
    max-width: none;
  }

  .selection-toolbar-providers .selection-toolbar-provider-split {
    flex: none;
    min-width: 0;
  }

  .selection-toolbar-providers .selection-toolbar-provider-main {
    flex: 0 auto;
    min-width: 4.75rem;
    max-width: 6.8rem;
  }

  .selection-toolbar-provider-menu {
    flex: 0 0 1.85rem;
    width: 1.85rem;
  }

  .selection-toolbar-settings-button {
    margin-left: 0;
  }
}

.dictionary-page, .dictionary-page h1, .dictionary-page strong, .dictionary-page th, .dictionary-page td, .dictionary-page button, .dictionary-page input, .dictionary-page select {
  color: var(--text);
}

.dictionary-page header p, .dictionary-page [class*="tw:text-scholar-ink/70"], .dictionary-page [class*="tw:text-scholar-ink/60"], .dictionary-page [class*="tw:text-scholar-ink/55"], .dictionary-page [class*="tw:text-scholar-ink/50"], .dictionary-page [class*="tw:text-scholar-ink/45"], .dictionary-page [class*="tw:text-scholar-ink/40"], .dictionary-page [class*="tw:text-scholar-ink/35"], .dictionary-page [class*="tw:text-white/60"], .dictionary-page [class*="tw:text-white/50"], .dictionary-page [class*="tw:text-white/45"], .dictionary-page [class*="tw:text-white/40"], .dictionary-page [class*="tw:text-white/35"], .dictionary-page [class*="tw:text-white/30"] {
  color: var(--muted);
}

.dictionary-page [class*="tw:border-black/10"], .dictionary-page [class*="tw:border-white/10"], .dictionary-page tbody tr {
  border-color: var(--line);
}

.dictionary-page [class*="tw:bg-white"], .dictionary-page [class*="tw:bg-white/5"], .dictionary-page [class*="tw:bg-white/[0.04]"], .dictionary-page [class*="tw:bg-white/[0.03]"] {
  background: var(--reader-card);
}

.dictionary-page [class*="tw:bg-black/[0.03]"], .dictionary-page [class*="tw:bg-black/[0.02]"], .dictionary-page [class*="tw:bg-black/[0.05]"], .dictionary-page [class*="tw:bg-black/[0.06]"], .dictionary-page thead, .dictionary-page tbody tr:hover {
  background: var(--reader-control-surface);
}

.dictionary-page input:not([type="checkbox"]):not([type="range"]), .dictionary-page select {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.dictionary-page input::placeholder {
  color: var(--muted);
}

.dictionary-page select option {
  background: var(--panel);
  color: var(--text);
}

.dictionary-page input[type="checkbox"], .dictionary-page input[type="range"] {
  accent-color: var(--brand);
}

.dictionary-page .dictionary-column-resizer, .dictionary-page .dictionary-column-resizer:hover, .dictionary-page .dictionary-column-resizer:focus {
  min-width: 0;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.dictionary-page .dictionary-column-resizer-line {
  background: var(--text);
  width: 1px;
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
}

@supports (color: color-mix(in lab, red, red)) {
  .dictionary-page .dictionary-column-resizer-line {
    background: color-mix(in srgb, var(--text) 32%, transparent);
  }
}

.dictionary-page .dictionary-column-resizer-line {
  pointer-events: none;
}

html[data-theme="dark"] .dictionary-page .dictionary-column-resizer-line {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  html[data-theme="dark"] .dictionary-page .dictionary-column-resizer-line {
    background: color-mix(in srgb, var(--text) 44%, transparent);
  }
}

.dictionary-page .dictionary-column-resizer:hover .dictionary-column-resizer-line, .dictionary-page .dictionary-column-resizer:focus .dictionary-column-resizer-line {
  background: var(--brand);
}

.dictionary-word-editor {
  align-items: center;
  gap: .25rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  position: relative;
}

.dictionary-page .dictionary-word-input:not([type="checkbox"]):not([type="range"]) {
  width: 100%;
  min-width: 2.5rem;
  color: var(--text);
  font: inherit;
  text-overflow: ellipsis;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: .18rem 1.2rem .18rem .25rem;
  font-weight: 800;
  line-height: 1.15;
}

.dictionary-page .dictionary-word-input:hover, .dictionary-page .dictionary-word-input:focus {
  border-color: var(--brand);
  background: var(--reader-control-surface);
}

.dictionary-word-editor__spinner {
  width: .8rem;
  height: .8rem;
  color: var(--brand);
  pointer-events: none;
  animation: .8s linear infinite reader-spin;
  position: absolute;
  right: 1.95rem;
}

.dictionary-page .dictionary-inline-tts {
  border: 1px solid var(--brand);
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .dictionary-page .dictionary-inline-tts {
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  }
}

.dictionary-page .dictionary-inline-tts {
  background: var(--brand-soft);
  color: var(--brand);
}

.dictionary-page .dictionary-inline-tts svg {
  width: .78rem;
  height: .78rem;
}

.dictionary-page .dictionary-alternative-button {
  border-radius: var(--radius-sm);
  flex: 0 0 1.55rem;
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0;
}

.dictionary-page .dictionary-alternative-button svg {
  width: .95rem;
  height: .95rem;
}

.dictionary-page .dictionary-provider-button {
  border-radius: var(--radius-sm);
  flex: 0 0 1.55rem;
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.55rem;
  overflow: hidden;
}

.dictionary-page .dictionary-provider-button svg {
  width: .85rem;
  height: .85rem;
}

.dictionary-page .dictionary-provider-select {
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.dictionary-page .dictionary-provider-select:disabled {
  cursor: not-allowed;
}

.dictionary-lang-badge {
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  align-items: center;
  gap: .18rem;
  padding: .22rem .35rem;
  font-weight: 800;
  display: inline-flex;
}

.dictionary-lang-badge__language {
  flex-direction: column;
  align-items: center;
  gap: .08rem;
  min-width: 1.15rem;
  line-height: 1;
  display: inline-flex;
}

.dictionary-lang-badge__code {
  text-transform: lowercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .68rem;
}

.dictionary-lang-badge__flag {
  font-family: system-ui, sans-serif;
  font-size: .66rem;
  line-height: 1;
}

.dictionary-lang-badge__arrow {
  opacity: .72;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .65rem;
  line-height: 1;
}

.dictionary-page .dictionary-tag-editor {
  min-width: 0;
}

.dictionary-page .dictionary-tag-editor .reader-item-tag-field {
  min-height: 2rem;
  padding: .1rem .2rem;
}

.dictionary-page .dictionary-tag-editor .reader-item-tag-field input:not([type="checkbox"]):not([type="range"]) {
  background: none;
  border: 0;
  padding: .1rem .2rem;
}

.dictionary-page svg {
  color: currentColor;
}

.dictionary-page a, .dictionary-page [class*="tw:text-scholar-primary"] {
  color: var(--brand);
}

.dictionary-page [class*="tw:bg-scholar-primary"], .dictionary-page button[class*="tw:bg-scholar-primary"] {
  background: var(--brand);
  color: #fff;
}

.dictionary-page [class*="tw:bg-scholar-primary/15"], .dictionary-page [class*="tw:bg-scholar-primary/20"], .dictionary-page [class*="tw:bg-scholar-primary/5"], .dictionary-page [class*="tw:bg-scholar-primary/[0.03]"], .dictionary-page [class*="tw:bg-scholar-primary/[0.06]"] {
  background: var(--brand-soft);
}

.dictionary-page [class*="tw:text-white"] {
  color: var(--text);
}

.dictionary-page [class*="tw:text-red"] {
  color: #dc2626;
}

html[data-theme="dark"] .dictionary-page [class*="tw:text-red"] {
  color: #f87171;
}

.dictionary-page [class~="tw:bg-scholar-primary"], .dictionary-page button[class~="tw:bg-scholar-primary"] {
  background: var(--brand);
  color: #fff;
}

.audio-builder-columns {
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  min-width: 0;
  max-width: 100%;
  display: grid;
}

.audio-builder-workspace-column, .audio-builder-palette-row, .audio-builder-voice-grid, .audio-builder-action-layout {
  min-width: 0;
  max-width: 100%;
}

.audio-builder-voice-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.dictionary-page .audio-builder-voice-picker, .dictionary-page .audio-builder-sequence-summary {
  background: #f6f7f9;
}

html[data-theme="dark"] .dictionary-page .audio-builder-voice-picker {
  background: var(--reader-card);
}

html[data-theme="dark"] .dictionary-page .audio-builder-sequence-summary {
  background: none;
}

.audio-builder-palette-row [data-testid="audio-builder-palette"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}

.audio-builder-sequence-scroll {
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.dictionary-page .audio-builder-block-chip {
  color: var(--text);
  background: #fff;
}

html[data-theme="dark"] .dictionary-page .audio-builder-block-chip {
  background: #1f1f1f;
}

.dictionary-page .audio-builder-accent-word {
  border-color: #20a65a;
}

.dictionary-page .audio-builder-accent-translation {
  border-color: #00c8d8;
}

.dictionary-page .audio-builder-accent-context {
  border-color: #1954ec;
}

.dictionary-page .audio-builder-accent-pause {
  border-color: #f47300;
}

.dictionary-page .audio-builder-accent-repeat {
  border-color: #ee413b;
}

html[data-theme="dark"] .dictionary-page .audio-builder-accent-word {
  border-color: #aee800;
}

html[data-theme="dark"] .dictionary-page .audio-builder-accent-translation {
  border-color: #00c8d8;
}

html[data-theme="dark"] .dictionary-page .audio-builder-accent-context {
  border-color: #1954ec;
}

html[data-theme="dark"] .dictionary-page .audio-builder-accent-pause {
  border-color: #f47300;
}

html[data-theme="dark"] .dictionary-page .audio-builder-accent-repeat {
  border-color: #ee413b;
}

.dictionary-page .audio-builder-help-button {
  transform-origin: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  transform: scale(.9);
}

.dictionary-page .audio-builder-help-button > svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.dictionary-page .audio-builder-sequence-delete-button {
  transform-origin: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  transform: scale(.9);
}

.dictionary-page .audio-builder-sequence-delete-button > svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.dictionary-page .audio-builder-block-remove-button {
  transform-origin: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  transform: scale(.9);
}

.dictionary-page .audio-builder-block-remove-button > svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.dictionary-page .audio-builder-inspector-close-button {
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
}

.dictionary-page .audio-builder-inspector-close-button > svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.dictionary-page .dictionary-manage-columns-menu {
  background: var(--panel);
  box-shadow: 0 14px 32px #00000047;
}

.audio-builder-columns > .audio-builder-inspector-column > * {
  width: 100%;
}

.audio-builder-action-layout {
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  flex-wrap: nowrap;
  align-items: center;
  gap: .5rem;
  padding-bottom: .25rem;
  display: flex;
  overflow-x: auto;
}

.audio-builder-preview-actions {
  display: contents;
}

.audio-builder-action-layout button {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .audio-builder-columns[data-has-inspector="true"] {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }
}

.theme-sync-page, .theme-sync-page h1, .theme-sync-page h2, .theme-sync-page h3, .theme-sync-page strong, .theme-sync-page th, .theme-sync-page td, .theme-sync-page button, .theme-sync-page input, .theme-sync-page select, .theme-sync-page .audio-manager__title {
  color: var(--text);
}

.theme-sync-page header p, .theme-sync-page .reader-inline-status, .theme-sync-page .audio-manager__description, .theme-sync-page .audio-manager__meta, .theme-sync-page .audio-manager__doc, .theme-sync-page .audio-manager__file-meta, .theme-sync-page [class*="tw:text-scholar-ink/80"], .theme-sync-page [class*="tw:text-scholar-ink/70"], .theme-sync-page [class*="tw:text-scholar-ink/60"], .theme-sync-page [class*="tw:text-scholar-ink/55"], .theme-sync-page [class*="tw:text-scholar-ink/50"], .theme-sync-page [class*="tw:text-scholar-ink/45"], .theme-sync-page [class*="tw:text-scholar-ink/40"], .theme-sync-page [class*="tw:text-scholar-ink/35"], .theme-sync-page [class*="tw:text-scholar-ink/30"], .theme-sync-page [class*="tw:text-scholar-ink/20"], .theme-sync-page [class*="tw:text-white/70"], .theme-sync-page [class*="tw:text-white/60"], .theme-sync-page [class*="tw:text-white/50"], .theme-sync-page [class*="tw:text-white/45"], .theme-sync-page [class*="tw:text-white/40"], .theme-sync-page [class*="tw:text-white/35"], .theme-sync-page [class*="tw:text-white/30"], .theme-sync-page [class*="tw:text-white/25"], .theme-sync-page [class*="tw:text-white/15"] {
  color: var(--muted);
}

.theme-sync-page [class*="tw:border-black/10"], .theme-sync-page [class*="tw:border-white/10"], .theme-sync-page .reader-tts-detail-card, .theme-sync-page .audio-manager__item, .theme-sync-page .audio-manager__file, .theme-sync-page .audio-manager__segment {
  border-color: var(--line);
}

.theme-sync-page [class*="tw:bg-white"], .theme-sync-page [class*="tw:bg-white/5"], .theme-sync-page [class*="tw:bg-white/[0.04]"], .theme-sync-page [class*="tw:bg-white/[0.03]"], .theme-sync-page .reader-tts-detail-card, .theme-sync-page .audio-manager__item {
  background: var(--reader-card);
}

.theme-sync-page [class*="tw:bg-black/[0.03]"], .theme-sync-page [class*="tw:bg-black/[0.02]"], .theme-sync-page [class*="tw:bg-black/[0.05]"], .theme-sync-page [class*="tw:bg-black/[0.06]"], .theme-sync-page .audio-manager__body, .theme-sync-page .audio-manager__file, .theme-sync-page .audio-manager__segment, .theme-sync-page .audio-manager__confirm, .theme-sync-page .audio-manager__rename {
  background: var(--reader-control-surface);
}

.theme-sync-page input:not([type="checkbox"]):not([type="range"]), .theme-sync-page select, .theme-sync-page .audio-manager__rename input {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.theme-sync-page input::placeholder {
  color: var(--muted);
}

.theme-sync-page select option {
  background: var(--panel);
  color: var(--text);
}

.theme-sync-page input[type="checkbox"], .theme-sync-page input[type="range"] {
  accent-color: var(--brand);
}

.theme-sync-page svg {
  color: currentColor;
}

.theme-sync-page a, .theme-sync-page [class*="tw:text-scholar-primary"] {
  color: var(--brand);
}

.theme-sync-page [class*="tw:bg-scholar-primary/15"], .theme-sync-page [class*="tw:bg-scholar-primary/20"], .theme-sync-page [class*="tw:bg-scholar-primary/5"], .theme-sync-page [class*="tw:bg-scholar-primary/[0.03]"], .theme-sync-page [class*="tw:bg-scholar-primary/[0.06]"] {
  background: var(--brand-soft);
}

.theme-sync-page [class*="tw:text-white"] {
  color: var(--text);
}

.theme-sync-page [class*="tw:text-red"], .theme-sync-page .audio-manager__danger {
  color: #dc2626;
}

html[data-theme="dark"] .theme-sync-page [class*="tw:text-red"], html[data-theme="dark"] .theme-sync-page .audio-manager__danger {
  color: #f87171;
}

.theme-sync-page [class~="tw:bg-scholar-primary"], .theme-sync-page button[class~="tw:bg-scholar-primary"], .theme-sync-page .audio-manager__play {
  background: var(--brand);
  color: #fff;
}

.audio-manager {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.reader-audio-rail-panel {
  flex-direction: column;
  flex: auto;
  min-height: 0;
  padding: 0;
  animation: .18s cubic-bezier(.2, .75, .25, 1) both reader-audio-panel-enter;
  display: flex;
  overflow: hidden;
}

@keyframes reader-audio-panel-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audio-manager__loading {
  gap: .45rem;
  display: grid;
}

.audio-manager__skeleton-card {
  border: 1px solid var(--line);
  background: var(--reader-card);
  border-radius: 8px;
  gap: .45rem;
  min-height: 6.25rem;
  padding: .65rem;
  display: grid;
  position: relative;
  overflow: hidden;
}

.audio-manager__skeleton-card:after {
  background: linear-gradient(100deg, transparent 20%, var(--text) 48%, transparent 76%);
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__skeleton-card:after {
    background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--text) 7%, transparent) 48%, transparent 76%);
  }
}

.audio-manager__skeleton-card:after {
  content: "";
  animation: 1.15s ease-in-out infinite audio-manager-skeleton-shimmer;
  transform: translateX(-100%);
}

.audio-manager__skeleton-line, .audio-manager__skeleton-controls {
  background: var(--text);
  border-radius: 5px;
  display: block;
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__skeleton-line, .audio-manager__skeleton-controls {
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }
}

.audio-manager__skeleton-line--title {
  width: 48%;
  height: .75rem;
}

.audio-manager__skeleton-line--meta {
  width: 72%;
  height: .55rem;
}

.audio-manager__skeleton-controls {
  align-self: end;
  width: 100%;
  height: 2rem;
}

.audio-manager__player-loading {
  grid-template-columns: 1.3rem 1.9rem 1.3rem minmax(2.5rem, 1fr) 4.7rem;
  align-items: center;
  gap: .22rem;
  min-height: 1.9rem;
  display: grid;
}

.audio-manager__player-loading-button, .audio-manager__player-loading-track, .audio-manager__player-loading-time {
  background: var(--text);
  display: block;
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__player-loading-button, .audio-manager__player-loading-track, .audio-manager__player-loading-time {
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }
}

.audio-manager__player-loading-button {
  border-radius: 50%;
  width: 1.3rem;
  height: 1.3rem;
}

.audio-manager__player-loading-button--primary {
  background: var(--brand);
  width: 1.9rem;
  height: 1.9rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__player-loading-button--primary {
    background: color-mix(in srgb, var(--brand) 18%, transparent);
  }
}

.audio-manager__player-loading-track {
  border-radius: 999px;
  width: 100%;
  height: .22rem;
}

.audio-manager__player-loading-time {
  border-radius: 4px;
  width: 4.2rem;
  height: .55rem;
}

@keyframes audio-manager-skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-audio-rail-panel, .audio-manager__skeleton-card:after {
    animation: none;
  }
}

.audio-manager__list, .audio-manager__files, .audio-manager__segments ul {
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.audio-manager__item {
  border: 1px solid var(--line);
  background: var(--reader-card);
  border-radius: 8px;
  gap: .55rem;
  padding: .68rem .75rem;
  display: grid;
}

.audio-manager__section-header {
  align-items: center;
  gap: .5rem;
}

.audio-manager__section-header h3 {
  letter-spacing: .12em;
  font-size: .8rem;
  line-height: 1.15;
}

.audio-manager__card-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .55rem;
  display: grid;
}

.audio-manager__title {
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  gap: .22rem;
  min-width: 0;
  padding: 0;
  display: grid;
}

.audio-manager__title-group {
  gap: .22rem;
  min-width: 0;
  display: grid;
}

.audio-manager__title strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.15;
  overflow: hidden;
}

.audio-manager__meta, .audio-manager__doc, .audio-manager__file-meta {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
  line-height: 1.25;
  overflow: hidden;
}

.audio-manager__card-header .audio-manager__doc-link {
  color: var(--brand);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--brand);
  text-decoration-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__card-header .audio-manager__doc-link {
    -webkit-text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
    text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
  }
}

.audio-manager__card-header .audio-manager__doc-link {
  text-underline-offset: .15em;
}

.audio-manager__card-header .audio-manager__doc-link:hover {
  text-decoration-color: currentColor;
}

.audio-manager__format-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem;
  display: flex;
}

.audio-manager__header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .55rem;
  display: flex;
}

.audio-manager__action-divider {
  background: var(--line);
  align-self: stretch;
  width: 1px;
  min-height: 1.5rem;
}

.audio-manager__divider {
  background: var(--line);
  width: 100%;
  height: 1px;
}

.audio-manager__playback-strip {
  min-width: 0;
  display: block;
}

.audio-manager__advanced {
  border-top: 1px solid var(--line);
  gap: .45rem;
  padding-top: .55rem;
  display: grid;
}

.audio-manager__manage, .audio-manager__rename, .audio-manager__confirm, .audio-manager__file, .audio-manager__segment {
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  display: flex;
}

.audio-manager__edit-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  padding: .45rem;
  display: grid;
}

.audio-manager__edit-panel > input {
  width: 100%;
  min-width: 0;
  height: 1.85rem;
}

.audio-manager__edit-panel > span {
  min-width: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.3;
}

.audio-manager__edit-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: .3rem;
  display: flex;
}

.audio-manager__edit-actions button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--reader-control-surface);
  min-height: 1.75rem;
  color: var(--text);
  padding: 0 .5rem;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1;
}

.audio-manager__file, .audio-manager__segment {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--reader-control-surface);
  justify-content: space-between;
  padding: .42rem .5rem;
}

.audio-manager__format-button, .audio-manager__header-action, .audio-manager__download-button, .audio-manager__details-toggle, .audio-manager__segment-play, .audio-manager__segment-download {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  justify-content: center;
  align-items: center;
  gap: .25rem;
  min-height: 1.75rem;
  padding: 0 .45rem;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
}

.audio-manager__format-button {
  background: var(--reader-control-surface);
  min-width: 2.85rem;
  min-height: 1.85rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.audio-manager__manage .audio-manager__header-action {
  background: var(--reader-control-surface);
  min-height: 1.85rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.audio-manager__header-action-icon {
  width: .85rem;
  height: .85rem;
  display: none;
}

.audio-manager__manage .audio-manager__header-action.audio-manager__danger {
  color: #dc2626;
}

html[data-theme="dark"] .audio-manager__manage .audio-manager__header-action.audio-manager__danger {
  color: #f87171;
}

.audio-manager__format-button.is-ready {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__format-button.is-ready {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  }
}

.audio-manager__format-button.is-ready {
  background: var(--brand-soft);
  color: var(--brand);
}

.audio-manager__segment-play, .audio-manager__segment-download {
  width: 1.75rem;
  padding: 0;
}

.audio-manager__segment-play {
  color: var(--brand);
}

.audio-manager__segment-play.is-playing {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__segment-play.is-playing {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  }
}

.audio-manager__segment-play.is-playing {
  background: var(--brand-soft);
  color: var(--brand);
}

.audio-manager__segment.is-focused {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__segment.is-focused {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  }
}

.audio-manager__segment.is-focused {
  background: var(--brand-soft);
}

.audio-manager__player-wrap {
  background: none;
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.audio-manager__compact-player-row {
  grid-template-columns: 1.65rem 2.35rem 1.65rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .42rem;
  display: grid;
}

.audio-manager .reader-tts-transport-button, .audio-manager .reader-tts-transport-button--primary {
  width: 2.35rem;
  height: 2.35rem;
}

.audio-manager .reader-tts-transport-button--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 7px 14px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager .reader-tts-transport-button--primary {
    box-shadow: 0 7px 14px color-mix(in srgb, var(--brand) 20%, transparent);
  }
}

.audio-manager .audio-manager__transport-button {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--muted);
}

.audio-manager .reader-tts-transport-icon {
  width: .95rem;
  height: .95rem;
}

.audio-manager .reader-tts-progress {
  min-width: 0;
  display: block;
}

.audio-manager .reader-tts-progress input {
  cursor: pointer;
  width: 100%;
  min-width: 0;
  height: .95rem;
}

.audio-manager__time {
  min-width: 5.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  font-size: .72rem;
}

.audio-manager__speed select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--reader-control-surface);
  min-width: 3.25rem;
  height: 1.85rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
  font-weight: 750;
}

.audio-manager--compact .audio-manager__list {
  gap: .4rem;
}

.audio-manager--compact .audio-manager__item {
  gap: .42rem;
  padding: .5rem .55rem;
}

.audio-manager--compact .audio-manager__card-header {
  grid-template-columns: minmax(0, 1fr);
  gap: .38rem;
}

.audio-manager--compact .audio-manager__title strong {
  font-size: .82rem;
}

.audio-manager--compact .audio-manager__meta, .audio-manager--compact .audio-manager__doc {
  font-size: .64rem;
}

.audio-manager--compact .audio-manager__header-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: .3rem;
}

.audio-manager--compact .audio-manager__format-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: .2rem;
}

.audio-manager--compact .audio-manager__format-button {
  gap: .12rem;
  min-width: 0;
  min-height: 1.5rem;
  padding: 0 .28rem;
  font-size: .58rem;
}

.audio-manager--compact .audio-manager__format-button svg {
  width: .68rem;
  height: .68rem;
}

.audio-manager--compact .audio-manager__action-divider {
  min-height: 1.5rem;
}

.audio-manager--compact .audio-manager__manage {
  flex-wrap: nowrap;
  gap: .2rem;
}

.audio-manager--compact .audio-manager__manage .audio-manager__header-action {
  width: 1.5rem;
  min-height: 1.5rem;
  padding: 0;
}

.audio-manager--compact .audio-manager__header-action-icon {
  width: .72rem;
  height: .72rem;
  display: block;
}

.audio-manager--compact .audio-manager__header-action-label {
  display: none;
}

.audio-manager--compact .audio-manager__edit-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem;
  padding: .38rem;
}

.audio-manager--compact .audio-manager__edit-panel > input {
  height: 1.6rem;
  font-size: .68rem;
}

.audio-manager--compact .audio-manager__edit-panel > span {
  font-size: .66rem;
  line-height: 1.25;
}

.audio-manager--compact .audio-manager__edit-actions button {
  min-height: 1.55rem;
  padding: 0 .42rem;
  font-size: .62rem;
}

.audio-manager--compact .audio-manager__compact-player-row {
  grid-template-columns: 1.3rem 1.9rem 1.3rem minmax(2.5rem, 1fr) auto auto;
  gap: .22rem;
}

.audio-manager--compact .reader-tts-transport-button, .audio-manager--compact .reader-tts-transport-button--primary {
  width: 1.9rem;
  height: 1.9rem;
}

.audio-manager--compact .audio-manager__transport-button {
  width: 1.3rem;
  height: 1.3rem;
}

.audio-manager--compact .reader-tts-transport-icon {
  width: .75rem;
  height: .75rem;
}

.audio-manager--compact .reader-tts-progress input {
  height: .75rem;
}

.audio-manager--compact .audio-manager__time {
  min-width: 4.7rem;
  font-size: .62rem;
}

.audio-manager--compact .audio-manager__speed select {
  min-width: 2.75rem;
  height: 1.5rem;
  padding: 0 .15rem;
  font-size: .62rem;
}

.audio-manager--compact .audio-manager__card-footer {
  min-height: 1rem;
}

.audio-manager--compact .audio-manager__updated {
  font-size: .62rem;
}

.audio-manager__card-footer {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.audio-manager__details-toggle {
  width: 1.45rem;
  min-height: 1.45rem;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
}

.audio-manager__details-toggle svg {
  width: .85rem;
  height: .85rem;
  transition: transform .14s;
}

.audio-manager__item.is-expanded .audio-manager__details-toggle svg {
  transform: rotate(180deg);
}

.audio-manager__updated {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
}

.audio-manager__segments {
  gap: .45rem;
  display: grid;
}

.audio-manager__segments-header {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.audio-manager__segments-header h4 {
  color: var(--text);
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
}

.audio-manager__segments-header span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.audio-manager__segments ul {
  max-height: 15rem;
  padding-right: .15rem;
  overflow: auto;
}

.audio-manager__segment {
  grid-template-columns: 2rem minmax(0, 1fr) auto auto 2rem;
  display: grid;
}

.audio-manager__segment > span {
  color: var(--muted);
  white-space: nowrap;
  font-size: .74rem;
  font-weight: 700;
}

.audio-manager__segment-page {
  text-align: right;
  min-width: 3.25rem;
}

.audio-manager__segment-title {
  min-width: 0;
  color: var(--text);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.25;
  display: block;
  overflow: hidden;
}

.audio-manager__segment-title:hover, .audio-manager__segment-title:focus-visible {
  color: var(--brand);
  background: none;
}

.audio-manager__segment-play svg, .audio-manager__segment-download svg, .audio-manager__format-button svg, .audio-manager__download-button svg {
  width: .95rem;
  height: .95rem;
}

.audio-manager__manage button, .audio-manager__file button, .audio-manager__segment button {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.audio-manager__manage .audio-manager__header-action:hover, .audio-manager__manage .audio-manager__header-action:focus-visible, .audio-manager__manage button:hover, .audio-manager__file button:hover, .audio-manager__segment button:hover, .audio-manager__format-button:hover, .audio-manager__format-button:focus-visible, .audio-manager__details-toggle:hover, .audio-manager__details-toggle:focus-visible {
  background: var(--reader-control-surface-hover);
}

.audio-manager__format-button.is-ready:hover, .audio-manager__format-button.is-ready:focus-visible {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .audio-manager__format-button.is-ready:hover, .audio-manager__format-button.is-ready:focus-visible {
    background: color-mix(in srgb, var(--brand) 18%, var(--panel));
  }
}

.audio-manager__format-button.is-ready:hover, .audio-manager__format-button.is-ready:focus-visible {
  color: var(--brand);
}

.audio-manager__format-button:disabled, .audio-manager__segment button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.audio-manager__segment .audio-manager__segment-title, .audio-manager__segment .audio-manager__segment-title:hover, .audio-manager__segment .audio-manager__segment-title:focus-visible {
  background: none;
  border: 0;
}

.text-document-page {
  --text-document-paper: var(--panel);
  --text-document-chrome: var(--reader-toolbar-bg);
  --text-document-accent: var(--brand);
  max-width: 1472px;
  min-height: calc(100vh - 2rem);
  color: var(--text);
  flex-direction: column;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
}

html[data-theme="dark"] .text-document-page {
  --text-document-paper: var(--page-frame);
  --text-document-chrome: var(--page-frame);
}

@supports (color: color-mix(in lab, red, red)) {
  html[data-theme="dark"] .text-document-page {
    --text-document-chrome: color-mix(in srgb, var(--page-frame) 70%, var(--reader-shell));
  }
}

html[data-theme="dark"] .text-document-page {
  --text-document-accent: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  html[data-theme="dark"] .text-document-page {
    --text-document-accent: color-mix(in srgb, var(--brand) 60%, var(--text));
  }
}

.text-document-header {
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  display: flex;
}

.text-document-title-group {
  flex: auto;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  display: flex;
}

.text-document-header-actions {
  flex-shrink: 0;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.text-document-translation-toggle {
  border: 1px solid var(--line);
  background: var(--reader-control-surface);
  height: 2.25rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .45rem;
  padding: 0 .9rem;
  font-size: .82rem;
  font-weight: 700;
  transition: background-color .14s, border-color .14s, color .14s;
  display: inline-flex;
}

.text-document-translation-toggle:hover {
  background: var(--reader-control-surface-hover);
}

.text-document-translation-toggle:focus-visible {
  outline: 2px solid var(--text-document-accent);
  outline-offset: 2px;
}

.text-document-translation-toggle[aria-pressed="true"] {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-translation-toggle[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  }
}

.text-document-translation-toggle[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--text-document-accent);
}

.text-document-sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.text-document-title-input {
  width: 100%;
  min-width: 0;
  font-family: var(--font-serif, inherit);
  color: var(--text);
  background: none;
  border: 1px solid #0000;
  border-radius: .875rem;
  margin: -.2rem -.5rem;
  padding: .2rem .5rem;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.12;
}

.text-document-title-input:hover {
  border-color: var(--line);
}

.text-document-title-input:focus {
  border-color: var(--brand);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-title-input:focus {
    border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  }
}

.text-document-title-input:focus {
  background: var(--reader-control-surface);
  box-shadow: 0 0 0 4px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-title-input:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
  }
}

.text-document-save-status {
  background: var(--reader-control-surface);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  flex-shrink: 0;
  padding: .15rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}

.text-document-save-status--error {
  background: var(--danger, #b00020);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-save-status--error {
    background: color-mix(in srgb, var(--danger, #b00020) 14%, transparent);
  }
}

.text-document-save-status--error {
  color: var(--danger, #b00020);
}

.text-document-editor {
  background: var(--text-document-paper);
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.text-document-toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--text-document-chrome);
  box-shadow: none;
  border-radius: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: .35rem .65rem;
  display: flex;
}

html[data-theme="dark"] .text-document-toolbar {
  background: var(--text-document-chrome);
}

.text-document-toolbar .toolbar-icon-button, html[data-theme="dark"] .text-document-toolbar .toolbar-icon-button {
  color: var(--reader-control-fg);
}

.text-document-toolbar .toolbar-icon-button:hover, .text-document-toolbar .toolbar-icon-button:focus-visible, html[data-theme="dark"] .text-document-toolbar .toolbar-icon-button:hover, html[data-theme="dark"] .text-document-toolbar .toolbar-icon-button:focus-visible {
  color: var(--text);
}

.text-document-toolbar .toolbar-icon-button.is-active, html[data-theme="dark"] .text-document-toolbar .toolbar-icon-button.is-active {
  background: var(--brand-soft);
  color: var(--text-document-accent);
}

.text-document-image-input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.text-document-content {
  outline: none;
  min-height: 100%;
  padding: 1.25rem;
  font-size: 1rem;
  line-height: 1.72;
  position: relative;
}

.text-document-text-underline {
  text-decoration: underline;
}

.text-document-text-strikethrough {
  text-decoration: line-through;
}

.text-document-text-underline-strikethrough {
  text-decoration: underline line-through;
}

.text-document-content p {
  margin: 0 0 .85rem;
}

.text-document-content p:last-child {
  margin-bottom: 0;
}

.text-document-content h1, .text-document-content h2 {
  color: var(--text);
  letter-spacing: 0;
}

.text-document-content h1 {
  margin: 1.8rem 0 .8rem;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 850;
  line-height: 1.12;
}

.text-document-content h2 {
  margin: 1.45rem 0 .65rem;
  font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.22;
}

.text-document-content h1:first-child, .text-document-content h2:first-child {
  margin-top: 0;
}

.text-document-content ul, .text-document-content ol {
  margin: .85rem 0 1rem;
  padding-left: 1.55rem;
}

.text-document-content ul {
  list-style: outside;
}

.text-document-content ol {
  list-style: decimal;
}

.text-document-content li {
  margin: .35rem 0;
  padding-left: .2rem;
}

.text-document-content blockquote {
  border-left: 4px solid var(--brand);
  background: var(--reader-control-surface);
  color: var(--muted);
  border-radius: .8rem;
  margin: 1rem 0;
  padding: .85rem 1rem;
  font-style: italic;
}

.text-document-content strong {
  font-weight: 800;
}

.text-document-content em {
  font-style: italic;
}

.text-document-content u {
  text-underline-offset: .16em;
  text-decoration-thickness: .08em;
}

.text-document-content s {
  text-decoration-thickness: .08em;
}

.text-document-content code {
  background: var(--reader-control-surface);
  border-radius: .35rem;
  padding: .1rem .32rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: .9em;
}

.text-document-content pre {
  border: 1px solid var(--line);
  background: var(--reader-control-surface);
  border-radius: .9rem;
  margin: 1rem 0;
  padding: .9rem 1rem;
  overflow-x: auto;
}

.text-document-content pre code {
  background: none;
  border-radius: 0;
  padding: 0;
}

.text-document-image-node {
  vertical-align: middle;
  max-width: min(100%, 42rem);
  margin: .5rem .15rem .85rem;
  display: inline-flex;
}

.text-document-image {
  border: 1px solid var(--line);
  border-radius: .85rem;
  max-width: 100%;
  height: auto;
  max-height: 30rem;
  display: block;
  box-shadow: 0 16px 40px -28px #0f172a8c;
}

.text-document-placeholder {
  color: var(--muted);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
}

.text-document-back-link {
  border: 1px solid var(--line);
  background: var(--reader-control-surface);
  width: 2.25rem;
  height: 2.25rem;
  color: var(--muted);
  border-radius: .75rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: background-color .14s, color .14s;
  display: inline-flex;
}

.text-document-back-link:hover, .text-document-back-link:focus-visible {
  background: var(--reader-control-surface-hover);
  color: var(--text);
}

.text-document-load-error {
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

.text-document-back-text-link {
  color: var(--brand);
  font-size: .875rem;
  font-weight: 700;
}

.text-document-editor-inner {
  flex: auto;
  min-height: 0;
  position: relative;
  overflow: auto;
}

.text-document-drag-handle {
  border-radius: var(--radius-sm, .375rem);
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted);
  cursor: grab;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.text-document-drag-handle:hover {
  background: var(--reader-control-surface-hover);
  color: var(--text);
}

.text-document-drag-handle-icon {
  width: 1rem;
  height: 1rem;
}

.text-document-drag-target-line {
  background: var(--brand);
  pointer-events: none;
  opacity: 0;
  border-radius: .125rem;
  height: .25rem;
  position: absolute;
  top: 0;
  left: 0;
}

.text-document-toolbar-divider {
  background: var(--line);
  align-self: stretch;
  width: 1px;
  margin: .25rem .35rem;
}

.text-document-toolbar-hint {
  color: var(--muted);
  white-space: nowrap;
  font-size: .75rem;
}

.text-document-spin {
  animation: .8s linear infinite text-document-spin;
}

@keyframes text-document-spin {
  to {
    transform: rotate(360deg);
  }
}

.text-document-notice {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--reader-control-surface);
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .65rem .85rem;
  font-size: .85rem;
  display: flex;
}

.text-document-notice-error {
  border-color: var(--brand);
  color: var(--brand);
}

.text-document-notice-dismiss {
  color: var(--brand);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 700;
}

.text-document-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.text-document-translate-controls {
  border: 1px solid var(--line);
  background: var(--text-document-chrome);
  border-radius: 1rem;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .5rem;
  animation: .16s ease-out text-document-reveal;
  display: flex;
}

@keyframes text-document-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-document-translate-controls {
    animation: none;
  }
}

.text-document-translate-langs {
  flex: 2 20rem;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  display: flex;
}

.text-document-translate-langs .text-document-translate-select {
  flex: 1 1 0;
  min-width: 0;
}

.text-document-translate-provider {
  flex: 12rem;
  min-width: 0;
  display: flex;
}

.text-document-translate-provider .text-document-translate-select {
  width: 100%;
  min-width: 0;
}

.text-document-translate-actions {
  flex-shrink: 0;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  display: flex;
}

.text-document-translate-hint {
  color: var(--danger, #b00020);
  flex: 1 0 100%;
  margin: 0;
  padding: 0 .35rem .1rem;
  font-size: .78rem;
}

.text-document-direction-icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  flex-shrink: 0;
}

.text-document-translate-select {
  background: var(--reader-control-surface);
  height: 2.25rem;
  color: var(--text);
  border: 1px solid #0000;
  border-radius: .65rem;
  padding: 0 .7rem;
  font-size: .85rem;
  font-weight: 500;
}

.text-document-translate-select:hover:not(:disabled) {
  background: var(--reader-control-surface-hover);
}

.text-document-translate-select:focus-visible {
  outline: 2px solid var(--text-document-accent);
  outline-offset: 2px;
}

.text-document-translate-select option {
  background: var(--text-document-chrome);
  color: var(--text);
}

.text-document-translate-button {
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  height: 2.25rem;
  box-shadow: none;
  border: 1px solid #0000;
  border-radius: .65rem;
  align-items: center;
  gap: .45rem;
  padding: 0 1rem;
  font-size: .85rem;
  font-weight: 700;
  display: inline-flex;
}

.text-document-translate-button:hover, .text-document-translate-button:focus-visible {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-translate-button:hover, .text-document-translate-button:focus-visible {
    background: color-mix(in srgb, var(--brand) 85%, #000);
  }
}

.text-document-translate-button:focus-visible {
  outline: 2px solid var(--text-document-accent);
  outline-offset: 2px;
}

.text-document-translate-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.text-document-open-reader-button {
  border: 1px solid var(--line);
  background: var(--panel);
  height: 2.5rem;
  color: var(--text);
  cursor: pointer;
  border-radius: .85rem;
  align-items: center;
  gap: .45rem;
  padding: 0 1rem;
  font-size: .85rem;
  font-weight: 800;
  display: inline-flex;
}

.text-document-open-reader-button:hover, .text-document-open-reader-button:focus-visible {
  background: var(--reader-control-surface-hover);
}

.text-document-open-reader-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.text-document-save-pdf-prompt {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: .85rem;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem .25rem 1rem;
  font-size: .85rem;
  display: inline-flex;
}

.text-document-save-pdf-prompt-text {
  color: var(--text-secondary, var(--text));
  white-space: nowrap;
  font-weight: 600;
}

.toolbar-pill--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 700;
}

.toolbar-pill--primary:hover, .toolbar-pill--primary:focus-visible {
  filter: brightness(1.08);
}

.text-document-two-pane-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 2.5rem;
  color: var(--text);
  cursor: pointer;
  border-radius: .85rem;
  align-items: center;
  gap: .5rem;
  padding: 0 .85rem;
  font-size: .85rem;
  font-weight: 800;
  transition: border-color .16s, background .16s, box-shadow .16s;
  display: inline-flex;
}

.text-document-two-pane-toggle:hover, .text-document-two-pane-toggle:focus-within {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-two-pane-toggle:hover, .text-document-two-pane-toggle:focus-within {
    border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  }
}

.text-document-two-pane-toggle:hover, .text-document-two-pane-toggle:focus-within {
  box-shadow: 0 10px 24px -20px #0f172a66;
}

.text-document-two-pane-toggle input {
  width: .95rem;
  height: .95rem;
  accent-color: var(--brand);
}

.text-document-action-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.text-document-experimental-tag {
  background: var(--brand);
  border-radius: 999px;
  padding: .1rem .42rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-experimental-tag {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
}

.text-document-experimental-tag {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .62rem;
}

.text-document-two-pane {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.text-document-single-pane, .text-document-page--single > .text-document-header, .text-document-page--single > .text-document-translate-controls, .text-document-page--single > .text-document-notice {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}

.text-document-pane-column {
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  display: flex;
}

.text-document-text-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--text-document-paper);
  flex-direction: column;
  min-width: 0;
  height: clamp(360px, 48vh, 520px);
  display: flex;
  overflow: hidden;
}

.text-document-card-header {
  border-bottom: 1px solid var(--line);
  background: var(--text-document-chrome);
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  display: flex;
}

.text-document-card-header h2 {
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
  display: flex;
}

.text-document-pane-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  display: flex;
}

.text-document-labeled-button {
  white-space: nowrap;
  gap: .35rem;
  width: auto;
  padding-inline: .5rem;
  font-size: .75rem;
}

.text-document-readonly-strip {
  border-bottom: 1px solid var(--line);
  background: var(--text-document-chrome);
  min-height: 52px;
  color: var(--muted);
  align-items: center;
  padding: .65rem 1.25rem;
  font-size: .75rem;
  display: flex;
}

.text-document-inspector {
  margin-top: 1.5rem;
}

@media (max-width: 999px) {
  .text-document-two-pane {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .text-document-page {
    padding-inline: .75rem;
  }

  .text-document-header {
    gap: .5rem;
  }

  .text-document-translation-toggle {
    justify-content: center;
    width: 2.25rem;
    padding: 0;
  }

  .text-document-translation-toggle span {
    display: none;
  }

  .text-document-translate-actions {
    width: 100%;
    margin-left: 0;
  }

  .text-document-translate-button {
    flex: auto;
    justify-content: center;
  }
}

.text-document-translation-pane {
  border: 1px solid #10b981;
  min-height: min(62vh, 44rem);
  position: relative;
  overflow: auto;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-translation-pane {
    border: 1px solid color-mix(in srgb, #10b981 24%, var(--line));
  }
}

.text-document-translation-pane {
  background: #ecfdf5;
  border-radius: 1.25rem;
  padding: 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-translation-pane {
    background: color-mix(in srgb, #ecfdf5 72%, var(--panel));
  }
}

.text-document-translation-pane {
  box-shadow: 0 18px 55px -32px #065f4670;
}

html[data-theme="dark"] .text-document-translation-pane:not(.text-document-translation-pane--embedded) {
  background: #052e23;
  border-color: #10b9813d;
}

@supports (color: color-mix(in lab, red, red)) {
  html[data-theme="dark"] .text-document-translation-pane:not(.text-document-translation-pane--embedded) {
    background: color-mix(in srgb, #052e23 38%, var(--panel));
  }
}

.text-document-translation-pane.text-document-translation-pane--embedded {
  background: var(--text-document-paper);
  min-height: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  flex: 1;
  padding: 1.25rem;
}

.text-document-translation-header {
  color: #047857;
  background: #10b98114;
  border-radius: .85rem;
  align-items: center;
  gap: .45rem;
  margin: -.45rem -.45rem 1rem;
  padding: .45rem;
  font-size: .82rem;
  font-weight: 850;
  display: flex;
}

html[data-theme="dark"] .text-document-translation-header {
  color: #6ee7b7;
}

.text-document-translation-header-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.text-document-translation-status {
  color: var(--muted);
  margin: 0;
}

.text-document-translation-segment {
  margin: 0 0 .85rem;
}

.text-document-translation-segment:last-child {
  margin-bottom: 0;
}

.text-document-translation-empty-segment {
  color: var(--muted);
}

.text-document-translation-sentence {
  cursor: grab;
  border-radius: .2rem;
}

.text-document-translation-sentence:hover {
  background: #10b98124;
}

.text-document-translation-segment p {
  margin: 0;
}

.text-document-translation-segment h1, .text-document-translation-segment h2 {
  color: var(--text);
  letter-spacing: 0;
  margin: 0;
}

.text-document-translation-segment h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 850;
  line-height: 1.12;
}

.text-document-translation-segment h2 {
  font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.22;
}

.text-document-translation-segment ul, .text-document-translation-segment ol {
  margin: 0;
  padding-left: 1.55rem;
}

.text-document-translation-segment ul {
  list-style: outside;
}

.text-document-translation-segment ol {
  list-style: decimal;
}

.text-document-translation-segment li {
  margin: .35rem 0;
  padding-left: .2rem;
}

.text-document-translation-segment blockquote {
  border-left: 4px solid var(--brand);
  background: var(--reader-control-surface);
  color: var(--muted);
  border-radius: .8rem;
  margin: 0;
  padding: .85rem 1rem;
  font-style: italic;
}

.text-document-translation-image {
  border: 1px solid var(--line);
  border-radius: .85rem;
  max-width: 100%;
  height: auto;
  max-height: 30rem;
  display: block;
  box-shadow: 0 16px 40px -28px #0f172a8c;
}

.text-document-translation-empty-line {
  min-height: 1.7em;
  margin: 0;
}

.text-document-translation-lang {
  letter-spacing: .08em;
  color: #047857;
  text-align: right;
  background: #10b9811f;
  border-radius: 999px;
  width: max-content;
  margin: 1rem 0 0 auto;
  padding: .2rem .5rem;
  font-size: .7rem;
  position: sticky;
  bottom: 0;
  right: 0;
}

html[data-theme="dark"] .text-document-translation-lang {
  color: #6ee7b7;
}

.text-document-visually-hidden {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.text-document-mode-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: inline-flex;
  overflow: hidden;
}

.text-document-mode-button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
}

.text-document-mode-button.is-active {
  background: var(--brand);
  color: #fff;
}

.text-document-audio-actions {
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
  display: flex;
}

.text-document-audio-actions .toolbar-pill {
  height: var(--touch-min);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: .4rem;
  padding: 0 .9rem;
  font-size: .85rem;
  font-weight: 700;
  display: inline-flex;
}

.text-document-audio-actions .toolbar-pill:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.text-document-audio-layout {
  grid-template-columns: 1fr 22rem;
  align-items: start;
  gap: 1rem;
  display: grid;
}

@media (max-width: 60rem) {
  .text-document-audio-layout {
    grid-template-columns: 1fr;
  }
}

.text-document-blocks-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--reader-control-surface);
  max-height: 70vh;
  padding: .85rem;
  overflow-y: auto;
}

.text-document-blocks-panel-header {
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  font-weight: 700;
  display: flex;
}

.text-document-blocks-count {
  background: var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: .05rem .45rem;
  font-size: .75rem;
}

.text-document-blocks-empty {
  color: var(--muted);
  margin: 0;
  font-size: .85rem;
}

.text-document-blocks-list {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.text-document-block-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--reader-control-surface);
  padding: .6rem .7rem;
}

.text-document-block-card-head {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  display: flex;
}

.text-document-block-label {
  color: var(--text);
  font-weight: 700;
}

.text-document-block-snippet {
  color: var(--text);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: .35rem 0 .5rem;
  font-size: .85rem;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}

.text-document-block-card-foot {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.text-document-block-status {
  border-radius: 999px;
  align-items: center;
  gap: .3rem;
  padding: .1rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
}

.text-document-block-status:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: .45rem;
  height: .45rem;
}

.text-document-block-status.is-synced {
  color: #047857;
  background: #10b9811f;
}

.text-document-block-status.is-outdated {
  color: #b45309;
  background: #f59e0b24;
}

.text-document-block-status.is-generating {
  color: #6d28d9;
  background: #8b5cf624;
}

.text-document-block-status.is-failed {
  color: #b91c1c;
  background: #ef444424;
}

.text-document-block-status.is-draft {
  color: var(--muted);
  background: var(--line);
}

.text-document-block-actions {
  align-items: center;
  gap: .15rem;
  display: inline-flex;
}

.text-document-block-settings {
  position: relative;
}

.text-document-block-settings > summary {
  list-style: none;
}

.text-document-block-settings > summary::-webkit-details-marker {
  display: none;
}

.text-document-block-settings-popover {
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--reader-control-surface);
  flex-direction: column;
  gap: .5rem;
  width: 12rem;
  margin-top: .35rem;
  padding: .6rem;
  display: flex;
  position: absolute;
  right: 0;
  box-shadow: 0 8px 24px #00000029;
}

.text-document-block-settings-popover label {
  color: var(--muted);
  flex-direction: column;
  gap: .2rem;
  font-size: .72rem;
  display: flex;
}

.text-document-block-settings-popover select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, .375rem);
  background: var(--reader-control-surface);
  height: 2rem;
  color: var(--text);
  font-size: .8rem;
}

.text-document-global-player {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--reader-control-surface);
  align-items: center;
  gap: .85rem;
  margin-top: 1rem;
  padding: .6rem .9rem;
  display: flex;
  position: sticky;
  bottom: 0;
}

.text-document-global-player-toggle {
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
}

.text-document-global-player-toggle:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.text-document-global-player-label {
  font-weight: 700;
}

.text-document-global-player-duration {
  color: var(--muted);
  margin-left: auto;
  font-size: .85rem;
}

.text-document-global-player-speed select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, .375rem);
  background: var(--reader-control-surface);
  height: 2rem;
  color: var(--text);
  font-size: .8rem;
}

.text-document-source-card {
  container: text-document-source / inline-size;
}

.text-document-close-translation {
  flex: none;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 4px;
}

.text-document-source-card-header {
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: .75rem;
  overflow-x: auto;
}

.text-document-source-card-header h2 {
  white-space: nowrap;
  flex: none;
}

.text-document-source-heading {
  flex: none;
  align-items: center;
  gap: .75rem;
  min-height: 34px;
  display: flex;
}

.text-document-source-heading h2 {
  border-right: 1px solid var(--line);
  min-height: 34px;
  padding-right: .75rem;
}

.text-document-source-label-short {
  display: none;
}

.text-document-source-heading .compact-text-switch-option.is-selected span {
  box-shadow: inset 0 0 0 1px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-source-heading .compact-text-switch-option.is-selected span {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 65%, transparent);
  }
}

.text-document-source-heading .compact-text-switch-option.is-selected span {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-document-source-heading .compact-text-switch-option.is-selected span {
    background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  }
}

.text-document-source-card-header .text-preparation-header-host {
  border-left: 1px solid var(--line);
  flex: none;
  padding-left: .75rem;
}

.text-document-source-card-header .text-preparation-controls > button.text-preparation-action {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--text);
  background: var(--reader-control-surface);
  box-shadow: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: 4px 8px;
  font-size: .75rem;
  display: inline-flex;
}

.text-document-source-card-header .text-preparation-controls > button.text-preparation-action:disabled {
  color: var(--muted);
}

.text-preparation-icon--prepare {
  color: #38a8eb;
}

.text-preparation-icon--verbalize {
  color: #a779ee;
}

.text-preparation-icon--stress {
  color: #e2a12c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.text-document-source-card-header .text-document-pane-actions {
  border-left: 1px solid var(--line);
  flex-wrap: nowrap;
  flex: none;
  min-height: 34px;
  margin-left: auto;
  padding-left: .75rem;
}

.text-document-source-card-header .text-document-pane-actions .text-document-labeled-button {
  height: 34px;
  min-height: 34px;
}

@container text-document-source (max-width: 950px) {
  .text-document-source-card-header {
    gap: .35rem;
    padding: .5rem;
  }

  .text-document-source-heading {
    gap: .35rem;
    min-height: 28px;
  }

  .text-document-source-heading h2 {
    gap: .3rem;
    min-height: 28px;
    padding-right: .35rem;
    font-size: .75rem;
  }

  .text-document-source-heading h2 svg {
    width: 14px;
    height: 14px;
  }

  .text-document-source-label-full {
    display: none;
  }

  .text-document-source-label-short {
    display: inline;
  }

  .text-document-source-heading .compact-text-switch {
    padding: 2px;
  }

  .text-document-source-heading .compact-text-switch-option {
    font-size: .65rem;
  }

  .text-document-source-heading .compact-text-switch-option span {
    min-height: 22px;
    padding: 3px 6px;
  }

  .text-document-source-card-header .text-preparation-header-host, .text-document-source-card-header .text-document-pane-actions {
    padding-left: .35rem;
  }

  .text-document-source-card-header .text-preparation-controls {
    gap: 3px;
  }

  .text-document-source-card-header .text-preparation-controls > button.text-preparation-action, .text-document-source-card-header .text-document-pane-actions .text-document-labeled-button {
    gap: 0;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 4px;
  }

  .text-document-source-card-header .text-preparation-action-label, .text-document-source-card-header .text-document-labeled-button > span {
    display: none;
  }

  .text-document-source-card-header .text-document-pane-actions {
    gap: 3px;
    min-height: 28px;
  }

  .text-document-source-card-header .text-document-action-icon {
    width: 16px;
    height: 16px;
  }
}

.text-document-source-editor-host:not([hidden]) {
  flex: auto;
  min-height: 0;
  display: flex;
}

.text-document-source-editor-host > .text-document-editor {
  flex: auto;
}

.text-document-pdf-export-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl, 1rem);
  width: min(420px, 100vw - 32px);
  max-width: none;
  color: var(--text);
  background: var(--panel, Canvas);
  margin: auto;
  padding: 1.1rem;
  box-shadow: 0 24px 80px #0005;
}

.text-document-pdf-export-dialog::backdrop {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #07101dcc;
}

.text-document-pdf-export-dialog header, .text-document-pdf-export-dialog footer {
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.text-document-pdf-export-dialog header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.text-document-pdf-export-dialog label {
  color: var(--muted);
  gap: .45rem;
  margin: 1.2rem 0;
  font-size: .85rem;
  display: grid;
}

.text-document-pdf-export-dialog select {
  border: 1px solid var(--line);
  min-height: 2.5rem;
  color: var(--text);
  background: var(--reader-control-surface);
  font: inherit;
  border-radius: .55rem;
  padding: .4rem .65rem;
}

.text-document-pdf-export-dialog button {
  border: 1px solid var(--line);
  min-height: 2.35rem;
  color: var(--text);
  background: var(--reader-control-surface);
  font: inherit;
  cursor: pointer;
  border-radius: .55rem;
  padding: .4rem .8rem;
}

.text-document-pdf-export-dialog footer button:last-child {
  border-color: var(--brand, #2563eb);
  color: #fff;
  background: var(--brand, #2563eb);
  font-weight: 650;
}

.text-document-pdf-export-dialog button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

html.reader-side-search-active {
  overflow-x: hidden;
}

html.reader-side-search-active body {
  width: calc(100% - var(--reader-side-search-width, 0px)) !important;
  overflow: hidden !important;
}

html.reader-side-search-active.rss-side-left body {
  margin-left: var(--reader-side-search-width, 0px) !important;
}

.language-select-trigger {
  cursor: pointer;
  text-align: left;
  align-items: center;
  gap: .5rem;
  display: inline-flex;
}

.language-select-trigger:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.language-select-readonly {
  align-items: center;
  gap: .5rem;
  display: inline-flex;
}

.language-select-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: auto;
  min-width: 0;
  overflow: hidden;
}

.language-select-flag {
  border-radius: 2px;
  flex: none;
  width: 1.25rem;
  height: auto;
  box-shadow: 0 0 0 1px #00000014;
}

.language-select-chevron {
  opacity: .6;
  flex: none;
  width: 1rem;
  height: 1rem;
}

.language-select-menu {
  z-index: 1000;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  max-height: min(60vh, 20rem);
  color: var(--text);
  outline: none;
  padding: .25rem;
  overflow-y: auto;
  box-shadow: 0 12px 40px -4px #00000040;
}

.language-select-option {
  border-radius: calc(var(--radius-md) - .25rem);
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  display: flex;
}

.language-select-option.is-active {
  background: var(--brand-soft);
}

.language-select-option[aria-selected="true"] {
  font-weight: 700;
}

.library-all-documents {
  gap: .875rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.library-all-documents--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: .875rem;
}

.library-all-documents > li {
  min-width: 0;
}

.library-document-entry {
  border: 1px solid;
  border-radius: .875rem;
  gap: 1rem;
  min-width: 0;
  height: 100%;
  padding: 1rem;
  display: grid;
}

.library-document-identity {
  align-items: center;
  gap: .875rem;
  min-width: 0;
  display: flex;
}

.library-document-thumbnail {
  border-radius: .375rem;
  flex-shrink: 0;
  width: 3.25rem;
  height: 4.25rem;
  overflow: hidden;
}

.library-document-details {
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  gap: .625rem 1.25rem;
  margin: 0;
  font-size: .75rem;
  display: flex;
}

.library-document-details dt {
  opacity: .55;
  margin-bottom: .25rem;
}

.library-document-details dd {
  margin: 0;
}

.library-document-actions {
  flex-wrap: wrap;
  align-self: end;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.library-document-entry--grid {
  border-radius: 1rem;
  gap: .875rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.library-document-entry--grid .library-document-identity {
  grid-template-columns: clamp(6.5rem, 32%, 9rem) minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  display: grid;
}

.library-document-entry--grid .library-document-thumbnail {
  aspect-ratio: 3 / 4;
  border: 1px solid;
  width: 100%;
  height: auto;
}

@supports (color: color-mix(in lab, red, red)) {
  .library-document-entry--grid .library-document-thumbnail {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  }
}

.library-document-entry--grid .library-document-thumbnail {
  border-radius: .625rem;
}

.library-document-entry--grid .library-document-copy {
  align-self: start;
  padding-top: .125rem;
}

.library-document-entry--grid .library-document-copy h3 {
  font-size: 1.125rem;
  line-height: 1.25;
}

.library-document-entry--grid .library-document-type {
  margin-top: .5rem;
  font-size: .75rem;
}

.library-document-entry--grid [data-testid^="library-offline-status-"] {
  gap: .375rem;
  margin-top: .625rem;
  font-size: .75rem;
}

.library-document-entry--grid [data-testid^="library-offline-status-"] svg {
  width: 1rem;
  height: 1rem;
}

.library-document-entry--grid .library-document-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  font-size: .75rem;
  display: grid;
}

.library-document-entry--grid .library-document-details > div {
  min-width: 0;
}

.library-document-entry--grid .library-document-details > div + div {
  border-left: 1px solid;
  padding-left: .5rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .library-document-entry--grid .library-document-details > div + div {
    border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  }
}

.library-document-entry--grid .library-document-details dd {
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
}

.library-document-entry--grid .library-document-actions {
  border-top: 1px solid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  padding-top: .875rem;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .library-document-entry--grid .library-document-actions {
    border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
}

.library-document-entry--grid .library-document-actions > [role="group"] {
  display: contents;
}

.library-document-entry--grid .library-document-actions button, .library-document-entry--grid .library-document-actions > p {
  text-align: center;
  border-radius: .625rem;
  width: 100%;
  min-height: 2.75rem;
  padding-inline: .375rem;
  font-size: .75rem;
  line-height: 1.2;
}

.library-document-entry--grid .library-document-actions > :only-child {
  grid-column: 1 / -1;
}

.library-document-entry--grid .library-document-actions svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 639px) {
  .library-document-entry--grid .library-document-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .library-document-entry--grid {
    grid-template-rows: auto auto auto;
    grid-template-columns: clamp(6.5rem, 32%, 9rem) minmax(0, 1fr);
  }

  .library-document-entry--grid .library-document-identity {
    display: contents;
  }

  .library-document-entry--grid .library-document-identity > input {
    z-index: 2;
    margin: .75rem;
    position: absolute;
  }

  .library-document-entry--grid .library-document-thumbnail {
    grid-area: 1 / 1;
    align-self: start;
  }

  .library-document-entry--grid .library-document-copy {
    grid-area: 1 / 2;
  }

  .library-document-entry--grid .library-document-details {
    grid-area: 2 / 1 / auto / -1;
  }

  .library-document-entry--grid .library-document-actions {
    grid-area: 3 / 1 / auto / -1;
  }
}

.library-all-filters {
  flex: 34rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
  min-width: min(100%, 34rem);
  display: grid;
}

.library-all-filters > label {
  min-width: 0;
}

.library-all-search {
  grid-column: 1 / -1;
}

.library-all-filters .library-sort-control {
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .library-all-filters {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .library-all-search {
    grid-column: auto;
  }
}

.library-sort-control {
  min-height: 2.5rem;
  color: inherit;
  background: none;
  border: 1px solid;
  padding: .5rem 2rem .5rem .75rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .library-sort-control {
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  }
}

.library-sort-control {
  font: inherit;
  border-radius: .5rem;
  font-size: .875rem;
}

.library-sort-control option {
  color: #202623;
  background: #faf9f6;
}

@media (min-width: 960px) {
  .library-document-entry--list {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, auto);
    align-items: center;
    min-height: 12rem;
    padding-left: 8.75rem;
    position: relative;
  }

  .library-document-entry--list .library-document-thumbnail {
    border-radius: .5rem;
    width: 6.75rem;
    height: auto;
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .library-document-entry--list .library-document-actions {
    grid-column: 1 / -1;
  }
}

.library-view-button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.library-view-button[aria-pressed="false"] {
  background: var(--panel);
  color: var(--text);
}

.text-audio-pane {
  --audio-accent: var(--reader-tts-accent);
  --audio-accent-soft: var(--reader-tts-accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--text-document-chrome, var(--reader-rail-bg));
  padding: 0 1rem 1rem;
}

.text-audio-pane--translation {
  --audio-accent: var(--reader-tts-accent);
  --audio-accent-soft: var(--reader-tts-accent-soft);
}

.text-audio-header {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--reader-control-surface);
  align-items: center;
  gap: .5rem;
  margin: 0 -1rem 1rem;
  padding: .85rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
  display: flex;
}

.text-audio-header svg {
  color: var(--audio-accent);
  flex-shrink: 0;
}

.text-audio-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 .75rem;
  display: grid;
}

.text-audio-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: .75rem 0;
  display: flex;
}

.text-audio-settings label, .text-audio-settings .text-audio-language {
  min-width: 0;
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  display: flex;
}

.text-audio-settings select, .text-audio-language .language-select-trigger {
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  color: var(--text);
  background: var(--reader-control-surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 .5rem;
  font-size: .8rem;
}

.text-audio-settings select:hover:not(:disabled), .text-audio-language .language-select-trigger:hover:not(:disabled) {
  background: var(--reader-control-surface-hover);
}

.text-audio-settings select:focus-visible, .text-audio-language .language-select-trigger:focus-visible {
  outline: 2px solid var(--audio-accent);
  outline-offset: 2px;
}

.text-audio-settings select option {
  background: var(--text-document-chrome, var(--reader-rail-bg));
  color: var(--text);
}

.text-audio-language .language-select-trigger {
  width: 100%;
}

.text-audio-pane > small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  display: block;
}

.text-audio-actions .text-audio-icon-button svg {
  color: var(--audio-accent);
}

.text-audio-actions .text-audio-icon-button {
  background: var(--audio-accent-soft);
}

.text-audio-actions .text-audio-icon-button:hover:not(:disabled) {
  background: var(--audio-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-audio-actions .text-audio-icon-button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--audio-accent) 20%, var(--panel));
  }
}

@media (max-width: 480px) {
  .text-audio-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .text-audio-language {
    grid-column: 1 / -1;
  }
}

.text-audio-pane button:not(.toolbar-icon-button, .text-audio-recording-label, .language-select-trigger) {
  border: 1px solid var(--border-color, #ddd);
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 10px;
}

.text-audio-pane button:disabled {
  opacity: .45;
  cursor: default;
}

.text-audio-recordings {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.text-audio-recordings:empty {
  display: none;
}

.text-audio-recordings li {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding-top: 8px;
  display: flex;
}

.text-audio-recordings li:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.text-audio-recording-preview {
  display: inline-flex;
  position: relative;
}

.text-audio-pane .text-audio-recording-label {
  cursor: help;
}

.text-audio-pane .text-audio-icon-button {
  width: var(--touch-min, 36px);
  height: var(--touch-min, 36px);
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  position: relative;
}

.text-audio-pane .text-audio-icon-button--labeled {
  white-space: nowrap;
  gap: .4rem;
  width: auto;
  padding-inline: .65rem;
  font-size: .75rem;
}

.text-audio-icon-button svg {
  width: 18px;
  height: 18px;
}

.text-audio-icon-button:has(.text-audio-format) svg {
  transform: translateY(-4px);
}

.text-audio-format {
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  position: absolute;
  bottom: 2px;
}

.text-audio-text-preview {
  top: 100%;
  z-index: 40;
  border: 1px solid var(--line, #ddd);
  background: var(--panel, #fff);
  width: min(420px, 100vw - 64px);
  max-height: 240px;
  color: var(--text, #222);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: absolute;
  inset-inline-start: 0;
  overflow: auto;
  box-shadow: 0 4px 20px #0003;
}

.text-audio-text-preview[hidden] {
  display: none;
}

.text-audio-recordings small {
  opacity: .7;
}

.saved-text-audio-library {
  gap: 16px;
  margin-bottom: 16px;
  display: grid;
}

.saved-text-audio-label {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 20px;
}

.text-audio-pane {
  container: text-audio / inline-size;
}

.text-audio-header {
  flex-wrap: wrap;
  gap: .65rem;
}

.text-audio-header h2 {
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: 1rem;
  display: flex;
}

.text-audio-header-source {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
}

.text-audio-pane .text-audio-generate {
  background: var(--audio-accent);
  width: auto;
  height: auto;
  min-height: 36px;
  color: var(--reader-tts-accent-contrast, #08271e);
  white-space: nowrap;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-inline-start: auto;
  padding: .6rem .85rem;
  font-size: .8rem;
  font-weight: 650;
  display: inline-flex;
}

.text-audio-generate svg {
  color: inherit;
}

.text-audio-pane .text-audio-expand {
  white-space: nowrap;
  width: auto;
  height: auto;
  min-height: 36px;
  color: var(--muted);
  align-items: center;
  gap: .4rem;
  margin: 0 0 .75rem auto;
  padding: .35rem .5rem;
  font-size: .75rem;
  display: flex;
}

.text-audio-recordings .text-audio-track {
  border: 1px solid var(--line);
  background: var(--reader-control-surface);
  border-radius: 12px;
  grid-template-columns: 44px minmax(120px, 1.5fr) auto minmax(140px, 1fr) auto;
  gap: .75rem;
  margin: .6rem 0 0;
  padding: .85rem;
  display: grid;
}

.text-audio-recordings .text-audio-track:first-child {
  border: 1px solid var(--line);
  padding: .85rem;
}

.text-audio-recordings .text-audio-track[hidden] {
  display: none;
}

.text-audio-pane .text-audio-track-play {
  width: 44px;
  height: 44px;
  color: var(--reader-tts-accent-contrast, #08271e);
  background: var(--audio-accent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
}

.text-audio-track-description {
  min-width: 0;
}

.text-audio-track-description strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.6;
  display: block;
  overflow: hidden;
}

.text-audio-track-description small {
  color: var(--muted);
  font-size: .72rem;
  display: block;
}

.text-audio-track-badges {
  min-width: 0;
  max-width: 230px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .7rem;
  display: flex;
}

.text-audio-track-badges > span {
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  border-radius: 7px;
  padding: .35rem .5rem;
}

.text-audio-track-clock {
  min-width: 0;
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: .65rem;
  font-size: .72rem;
  display: flex;
}

.text-audio-track-clock input {
  width: 100%;
  min-width: 40px;
  accent-color: var(--audio-accent);
  cursor: pointer;
}

.text-audio-track-clock input:disabled {
  cursor: default;
  opacity: .5;
}

.text-audio-track-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  display: flex;
}

.text-audio-track-controls > small {
  flex-basis: 100%;
  font-size: .7rem;
}

.text-audio-track-saved {
  border: 1px solid var(--audio-accent);
  align-items: center;
  gap: .3rem;
  padding: .45rem .6rem;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-audio-track-saved {
    border: 1px solid color-mix(in srgb, var(--audio-accent) 35%, transparent);
  }
}

.text-audio-track-saved {
  color: var(--audio-accent);
  background: var(--audio-accent-soft);
  border-radius: 7px;
  font-size: .75rem;
}

.text-audio-track .text-audio-icon-button--labeled {
  color: var(--audio-accent);
  border: 1px solid var(--audio-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-audio-track .text-audio-icon-button--labeled {
    border: 1px solid color-mix(in srgb, var(--audio-accent) 35%, transparent);
  }
}

.text-audio-track .text-audio-icon-button--labeled {
  border-radius: 7px;
}

@container text-audio (max-width: 1050px) {
  .text-audio-recordings .text-audio-track {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .text-audio-track-badges {
    grid-column: 2;
    max-width: none;
  }

  .text-audio-track-clock {
    grid-column: 2;
  }

  .text-audio-track-controls {
    grid-area: 1 / 3 / 4;
    max-width: 240px;
  }

  .text-audio-track-play {
    grid-row: 1 / 4;
  }
}

@container text-audio (max-width: 600px) {
  .text-audio-header-source {
    display: none;
  }

  .text-audio-header h2 {
    font-size: .9rem;
  }

  .text-audio-pane .text-audio-generate {
    padding: .5rem .6rem;
    font-size: .72rem;
  }

  .text-audio-recordings .text-audio-track {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: .5rem;
    padding: .65rem;
  }

  .text-audio-recordings .text-audio-track:first-child {
    padding: .65rem;
  }

  .text-audio-track-play {
    grid-row: 1 / 3;
  }

  .text-audio-track-badges, .text-audio-track-clock {
    grid-column: 2;
  }

  .text-audio-track-controls {
    grid-area: auto / 1 / auto / -1;
    justify-content: flex-start;
    max-width: none;
  }

  .text-audio-track-controls > small {
    flex-basis: auto;
    margin-inline-end: auto;
  }

  .text-audio-track-description strong {
    font-size: .8rem;
  }
}

.text-audio-track-controls {
  max-width: 300px;
}

@container text-audio (max-width: 600px) {
  .text-audio-track-controls {
    max-width: none;
  }
}

.text-audio-expand svg {
  flex-shrink: 0;
}

@container text-audio (min-width: 1051px) {
  .text-audio-track-controls {
    max-width: 360px;
  }
}

.text-audio-header-text-source {
  gap: .4rem;
  font-weight: 400;
}

.text-audio-header-text-source .text-preparation-switch-label {
  white-space: nowrap;
  font-size: .72rem;
}

@container text-audio (max-width: 600px) {
  .text-audio-header-text-source {
    flex-basis: 100%;
    order: 1;
  }
}

.saved-text-audio-card {
  min-width: 0;
  container: saved-text-audio / inline-size;
}

.saved-text-audio-card .audio-manager__title {
  cursor: default;
  margin: 0;
}

.saved-text-audio-player {
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  display: grid;
}

.saved-text-audio-preview summary {
  cursor: pointer;
  width: auto;
  max-width: 100%;
  color: var(--muted);
  list-style: none;
}

.saved-text-audio-preview summary::-webkit-details-marker {
  display: none;
}

.saved-text-audio-preview summary span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.saved-text-audio-preview[open] summary svg {
  transform: rotate(180deg);
}

.saved-text-audio-preview .saved-text-audio-label {
  margin: .65rem 0 0;
  font-size: .8rem;
  line-height: 1.6;
}

@container saved-text-audio (max-width: 560px) {
  .saved-text-audio-card .audio-manager__card-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .saved-text-audio-card .audio-manager__header-actions {
    justify-content: flex-start;
  }

  .saved-text-audio-player {
    gap: .4rem;
  }

  .saved-text-audio-player .audio-manager__time {
    font-size: .68rem;
  }
}

.reader-canvas-workspace {
  background: var(--page-frame);
  min-width: 0;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.reader-canvas-workspace--loading {
  min-height: 12rem;
}

.reader-canvas-workspace > .reader-scroll {
  height: 100%;
}

.reader-root--native {
  height: 100%;
  min-height: 0;
  font-family: var(--font-sans);
  color: var(--text);
  flex-direction: column;
  display: flex;
}

.reader-root--native .reader-main-grid {
  flex: 1;
  grid-template-rows: minmax(0, 1fr);
  height: auto;
  min-height: 0;
  position: relative;
}

.reader-root--native-compact .reader-main-grid > :is(.reader-left-rail, .reader-right-rail) {
  z-index: 10;
  width: min(17.5rem, 100vw - 4.75rem);
  box-shadow: var(--reader-shadow);
  position: absolute;
  inset-block: 0;
}

.reader-root--native-compact .reader-main-grid > .reader-left-rail {
  inset-inline-start: 0;
}

.reader-root--native-compact .reader-main-grid > .reader-right-rail {
  inset-inline-end: 0;
}

.reader-native-canvas {
  flex-direction: column;
  display: flex;
}

.reader-native-canvas[data-reader-surface="native-pages"] {
  padding: clamp(.75rem, 3vw, 2.25rem) clamp(.75rem, 3vw, 3rem);
}

.reader-native-canvas[data-reader-surface="native-pages"] > .aloudreader-native-viewport {
  width: min(100%, 52rem);
  margin-inline: auto;
}

.reader-root--native .reader-native-canvas[data-reader-surface="native-pages"] .aloudreader-scroll[data-reader-view] {
  background: var(--reader-surface-paper, var(--reader-paper));
  color: var(--reader-surface-ink, #22252b);
  border: 1px solid var(--line);
  box-shadow: var(--reader-shadow);
  border-radius: 4px;
}

.reader-root--native .reader-native-canvas[data-reader-surface="reflow"] .aloudreader-scroll[data-reader-view="reflow"] {
  background: var(--reader-surface-paper, var(--reader-paper));
  color: var(--reader-surface-ink, #22252b);
}

.reader-root--native .reader-native-canvas .aloudreader-page:after {
  content: "";
  background: var(--reader-night-tint, transparent);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.reader-root--native .reader-native-canvas[data-paper-dark="true"] .aloudreader-page {
  background: #1b1b1b;
}

.reader-root--native .reader-native-canvas[data-paper-dark="true"] .aloudreader-page > canvas {
  filter: invert(88.8%) hue-rotate(180deg);
}

.aloudreader .reader-native-canvas .aloudreader-selection-tools {
  display: none;
}

.selection-toolbar-note {
  margin-top: .375rem;
  font-size: .8125rem;
}

.selection-toolbar-note form {
  align-items: center;
  gap: .375rem;
  margin-top: .375rem;
  display: flex;
}

.selection-toolbar-note input {
  flex: 1;
  min-width: 0;
}

.selection-toolbar-status {
  max-width: 32rem;
  margin-top: .375rem;
  font-size: .8125rem;
  display: block;
}

.reader-native-chat:not([hidden]) {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.reader-progress-preview {
  z-index: 45;
  width: min(340px, 100vw - 24px);
  position: fixed;
}

.reader-progress-preview[data-placement="center"] {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.reader-status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--reader-toolbar-bg);
  color: var(--text);
  box-shadow: var(--reader-shadow);
  padding: 8px 10px;
}

.reader-status-card-heading {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  display: grid;
}

.reader-status-card-icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.reader-status-card-icon.is-spinning {
  animation: 1.1s linear infinite reader-status-spin;
}

.reader-status-card.is-warning .reader-status-card-icon {
  color: #b45309;
}

.reader-status-card.is-error .reader-status-card-icon {
  color: var(--danger);
}

.reader-status-card.is-success .reader-status-card-icon {
  color: var(--reader-tts-accent);
}

html[data-theme="dark"] .reader-status-card.is-warning .reader-status-card-icon {
  color: #fbbf24;
}

html[data-theme="dark"] .reader-status-card.is-error .reader-status-card-icon {
  color: #f87171;
}

html[data-theme="dark"] .reader-status-card-icon.is-spinning {
  color: #60a5fa;
}

html[data-theme="dark"] .reader-status-card-progress > span {
  background: #60a5fa;
}

.reader-status-card-copy {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.reader-status-card-copy strong {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.reader-status-card-copy > span {
  color: var(--reader-control-muted);
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.3;
}

.reader-progress-preview .reader-status-card-copy > * {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.reader-status-card-progress-row {
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  display: flex;
}

.reader-status-card-action {
  border: 1px solid var(--line);
  background: var(--reader-control-surface);
  color: var(--reader-control-fg);
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 11px;
}

.reader-status-card-progress {
  background: var(--reader-control-surface-hover);
  border-radius: 99px;
  flex: 1;
  min-width: 0;
  height: 4px;
  overflow: hidden;
}

.reader-status-card-progress > span {
  background: var(--brand);
  border-radius: inherit;
  height: 100%;
  transition: width .15s;
  display: block;
}

.reader-status-card-progress.is-indeterminate > span {
  width: 30%;
  animation: 1.4s ease-in-out infinite reader-status-indeterminate;
}

.reader-status-card-percent {
  min-width: 26px;
  color: var(--reader-control-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 11px;
  line-height: 1.3;
}

.reader-progress-preview-actions {
  opacity: 0;
  gap: 4px;
  transition: opacity .12s;
  display: flex;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
}

.reader-progress-preview:hover .reader-progress-preview-actions, .reader-progress-preview:focus-within .reader-progress-preview-actions {
  opacity: 1;
}

.reader-progress-preview-actions button, .reader-notification-panel-header button {
  width: 30px;
  height: 30px;
  color: var(--reader-control-fg);
  background: var(--reader-toolbar-bg);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.reader-progress-preview-actions svg, .reader-notification-panel-header svg {
  width: 15px;
  height: 15px;
}

.reader-notification-panel {
  z-index: 45;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--reader-toolbar-bg);
  width: min(380px, 100vw - 24px);
  max-height: calc(100dvh - 24px);
  box-shadow: var(--reader-shadow);
  flex-direction: column;
  display: flex;
  position: fixed;
  overflow: hidden;
}

.reader-notification-panel-header {
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.reader-notification-panel-header strong {
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.reader-notification-panel-body {
  min-height: 0;
  padding: 8px;
  overflow: auto;
}

.reader-offline-indicator {
  z-index: 26;
  border: 1px solid #d97706;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  display: inline-flex;
  position: absolute;
  top: 12px;
  right: 12px;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-offline-indicator {
    border: 1px solid color-mix(in srgb, #d97706 25%, var(--line));
  }
}

.reader-offline-indicator {
  background: var(--reader-toolbar-bg);
  color: #b45309;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.reader-offline-indicator svg {
  width: 14px;
  height: 14px;
}

html[data-theme="dark"] .reader-offline-indicator {
  color: #fbbf24;
}

.reader-notification-rail-badge {
  background: var(--brand);
  color: #fff;
  border-radius: 99px;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  position: absolute;
  top: 2px;
  right: 2px;
}

.reader-notification-rail-badge.is-busy {
  box-shadow: 0 0 0 3px var(--brand-soft);
}

@keyframes reader-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes reader-status-indeterminate {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(435%);
  }
}

@media (hover: none) {
  .reader-progress-preview-actions {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-status-card-icon.is-spinning, .reader-status-card-progress.is-indeterminate > span {
    animation: none;
  }

  .reader-status-card-progress > span {
    transition: none;
  }
}

.hover-preview-panel .hover-preview-text {
  white-space: pre-line;
  max-height: 12rem;
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  overflow: auto;
}

.text-preparation {
  padding: 12px 0;
}

.text-preparation:empty {
  display: none;
}

.text-preparation-controls {
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  display: flex;
}

.text-preparation-actions {
  flex-direction: column;
  gap: 5px;
  min-width: max-content;
  display: flex;
}

.text-preparation-actions .text-preparation-selection-notice, .text-preparation-toolbar .text-preparation-selection-notice {
  color: var(--brand, #2563eb);
  margin: 0;
  font-size: .72rem;
  line-height: 1.3;
}

.text-preparation-header-host {
  flex: 0 auto;
  min-width: 0;
}

.compact-text-switch {
  border: 1px solid var(--text);
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .compact-text-switch {
    border: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  }
}

.compact-text-switch {
  background: var(--text);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .compact-text-switch {
    background: color-mix(in srgb, var(--text) 4%, var(--panel));
  }
}

.compact-text-switch-option {
  color: var(--muted, GrayText);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  font-size: .74rem;
  line-height: 1.2;
  display: inline-flex;
  position: relative;
}

.compact-text-switch-option input {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: inherit;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.compact-text-switch-option span {
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  transition: color .15s, background-color .15s, box-shadow .15s;
  display: inline-flex;
}

.compact-text-switch-option:hover:not(.is-disabled) span {
  color: var(--text);
}

.compact-text-switch-option.is-selected span {
  color: var(--text);
  background: var(--panel, Canvas);
  box-shadow: 0 1px 3px var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .compact-text-switch-option.is-selected span {
    box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 16%, transparent);
  }
}

.compact-text-switch-option.is-selected span {
  font-weight: 650;
}

.compact-text-switch-option input:focus-visible + span {
  outline: 2px solid var(--brand, #7658d6);
}

@supports (color: color-mix(in lab, red, red)) {
  .compact-text-switch-option input:focus-visible + span {
    outline: 2px solid color-mix(in srgb, var(--brand, #7658d6) 75%, transparent);
  }
}

.compact-text-switch-option input:focus-visible + span {
  outline-offset: 2px;
}

.compact-text-switch-option.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.text-preparation-switch-label {
  color: var(--muted, GrayText);
  white-space: nowrap;
  font-size: .76rem;
}

.text-preparation-controls .compact-text-switch-option {
  font-size: .68rem;
}

.text-preparation-controls .compact-text-switch-option span {
  min-height: 24px;
  padding: 3px 8px;
}

.text-preparation-controls > button {
  white-space: nowrap;
  flex: none;
  min-height: 28px;
  padding: 3px 7px;
  font-size: .7rem;
}

.text-preparation-controls > button.text-preparation-action {
  border: 1px solid var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-controls > button.text-preparation-action {
    border: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  }
}

.text-preparation-controls > button.text-preparation-action {
  background: var(--panel, Canvas);
  box-shadow: 0 1px 3px var(--text);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-controls > button.text-preparation-action {
    box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 16%, transparent);
  }
}

.text-preparation-controls > button.text-preparation-action {
  font-weight: 650;
}

.text-preparation-controls > button.text-preparation-action--ready {
  color: #fff;
  background: linear-gradient(#2563eb 0%, #1643ad 100%);
  border-color: #1d4ed8;
  box-shadow: inset 0 1px #ffffff38, 0 1px 3px #0003;
}

.text-preparation-controls > button.text-preparation-action--ready:hover:not(:disabled) {
  filter: brightness(1.08);
}

.text-preparation-controls > button.text-preparation-action--ready:disabled {
  color: #fff;
}

.text-preparation p {
  margin: 8px 0;
  font-size: .875rem;
}

.text-preparation-dialog {
  border: 1px solid var(--text);
  flex-direction: column;
  width: auto;
  max-width: 1480px;
  height: auto;
  max-height: none;
  margin: auto;
  padding: 0;
  display: flex;
  position: fixed;
  inset: 16px;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-dialog {
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  }
}

.text-preparation-dialog {
  border-radius: var(--radius-xl, 1.25rem);
  color: var(--text, CanvasText);
  background: var(--panel, Canvas);
  box-shadow: 0 28px 100px #0005;
}

.text-preparation-dialog:not([open]) {
  display: none;
}

.text-preparation-dialog::backdrop {
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  background: #07101dcc;
}

.text-preparation-dialog button {
  color: inherit;
}

.text-preparation-dialog-header {
  border-bottom: 1px solid var(--text);
  flex: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 0;
  padding: 22px 28px 17px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-dialog-header {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  }
}

.text-preparation-dialog-header {
  background: var(--panel, Canvas);
}

.text-preparation-dialog-header h2 {
  letter-spacing: -.025em;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.text-preparation-dialog-header p {
  color: var(--muted, GrayText);
  margin: 7px 0 0;
  font-size: .92rem;
}

.text-preparation-sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.text-preparation-icon-close {
  border: 1px solid var(--text);
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-icon-close {
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  }
}

.text-preparation-icon-close {
  background: var(--text);
  border-radius: 50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-icon-close {
    background: color-mix(in srgb, var(--text) 4%, var(--panel));
  }
}

.text-preparation-icon-close {
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.text-preparation-icon-close:hover {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-icon-close:hover {
    background: color-mix(in srgb, var(--text) 9%, var(--panel));
  }
}

.text-preparation-views {
  border-bottom: 1px solid var(--text);
  flex: none;
  gap: 4px;
  padding: 12px 28px 0;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-views {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  }
}

.text-preparation-views {
  overflow-x: auto;
}

.text-preparation-views button {
  color: var(--muted, GrayText);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px 8px 0 0;
  flex: none;
  padding: 9px 13px 11px;
  font-size: .84rem;
  position: relative;
}

.text-preparation-views button:hover {
  color: var(--text);
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-views button:hover {
    background: color-mix(in srgb, var(--text) 5%, transparent);
  }
}

.text-preparation-views button.is-active {
  color: var(--text);
  font-weight: 650;
}

.text-preparation-views button.is-active:after {
  background: var(--brand, #7658d6);
  content: "";
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
}

.text-preparation-toolbar {
  border-bottom: 1px solid var(--text);
  flex-direction: column;
  flex: none;
  gap: 10px;
  padding: 12px 28px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-toolbar {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  }
}

.text-preparation-dialog > p[role="status"], .text-preparation-dialog > p[role="alert"] {
  flex: none;
  margin: 6px 28px;
}

.text-preparation-process-controls, .text-preparation-compare-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.text-preparation-process-controls button, .text-preparation-compare-controls button, .text-preparation-pane-tools button {
  border: 1px solid var(--text);
  min-height: 33px;
  padding: 6px 11px;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-process-controls button, .text-preparation-compare-controls button, .text-preparation-pane-tools button {
    border: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  }
}

.text-preparation-process-controls button, .text-preparation-compare-controls button, .text-preparation-pane-tools button {
  background: var(--text);
  border-radius: 8px;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-process-controls button, .text-preparation-compare-controls button, .text-preparation-pane-tools button {
    background: color-mix(in srgb, var(--text) 3%, var(--panel));
  }
}

.text-preparation-process-controls button, .text-preparation-compare-controls button, .text-preparation-pane-tools button {
  font: inherit;
  cursor: pointer;
  font-size: .79rem;
}

.text-preparation-process-controls button:hover:not(:disabled), .text-preparation-compare-controls button:hover:not(:disabled), .text-preparation-pane-tools button:hover {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-process-controls button:hover:not(:disabled), .text-preparation-compare-controls button:hover:not(:disabled), .text-preparation-pane-tools button:hover {
    background: color-mix(in srgb, var(--text) 8%, var(--panel));
  }
}

.text-preparation-process-controls button:disabled, .text-preparation-compare-controls button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.text-preparation-process-controls label {
  color: var(--muted, GrayText);
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  display: flex;
}

.text-preparation-compare-controls {
  color: var(--muted, GrayText);
  font-size: .78rem;
}

.text-preparation-compare-controls > span:first-child {
  font-weight: 650;
}

.text-preparation-compare-controls label {
  cursor: pointer;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.text-preparation-compare-controls input, .text-preparation-pane-tools input {
  accent-color: var(--brand, #7658d6);
}

.text-preparation-compare-controls span:last-child {
  margin-inline-start: auto;
}

.text-preparation-pane-tools {
  color: var(--muted, GrayText);
  flex: none;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 8px 28px;
  font-size: .78rem;
  display: flex;
}

.text-preparation-pane-tools label {
  cursor: pointer;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.text-preparation-passages {
  background: var(--text);
  flex: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-passages {
    background: color-mix(in srgb, var(--text) 10%, transparent);
  }
}

.text-preparation-passages--original, .text-preparation-passages--tts {
  grid-template-columns: minmax(0, 1fr);
}

.text-preparation-column {
  background: var(--panel, Canvas);
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.text-preparation-column[hidden] {
  display: none;
}

.text-preparation-column > header {
  border-bottom: 1px solid var(--text);
  flex: none;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 22px 12px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-column > header {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  }
}

.text-preparation-column h3 {
  letter-spacing: .015em;
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

.text-preparation-column > header small {
  color: var(--muted, GrayText);
  font-size: .72rem;
}

.text-preparation-column-scroll {
  overscroll-behavior: contain;
  min-height: 0;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-gutter: stable;
  flex: auto;
  padding: 18px 22px 28px;
  font-size: .95rem;
  line-height: 1.85;
  overflow: auto;
}

.text-preparation-flow-segment {
  white-space: pre-wrap;
  min-width: 0;
  display: block;
}

.text-preparation-flow-segment + .text-preparation-flow-segment {
  margin-top: 0;
}

.prepared-token {
  color: inherit;
  border-radius: 3px;
  transition: background-color .12s;
}

.prepared-token:hover {
  background: var(--brand, #7658d6);
}

@supports (color: color-mix(in lab, red, red)) {
  .prepared-token:hover {
    background: color-mix(in srgb, var(--brand, #7658d6) 11%, transparent);
  }
}

.prepared-token[role="button"] {
  cursor: pointer;
}

.prepared-token[role="button"]:focus-visible {
  outline: 2px solid var(--brand, #7658d6);
}

@supports (color: color-mix(in lab, red, red)) {
  .prepared-token[role="button"]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand, #7658d6) 70%, transparent);
  }
}

.prepared-token[role="button"]:focus-visible {
  outline-offset: 2px;
}

.prepared-token--verbalization {
  color: #2563eb;
  text-underline-offset: 3px;
  -webkit-text-decoration: underline #2563eba6;
  text-decoration: underline #2563eba6;
  text-decoration-thickness: 1px;
}

.prepared-token--insertion {
  color: #42a86b;
  text-underline-offset: 3px;
  -webkit-text-decoration: underline #42a86ba6;
  text-decoration: underline #42a86ba6;
  text-decoration-thickness: 1px;
}

.prepared-token--stress {
  color: #e28a18;
  text-underline-offset: 3px;
  -webkit-text-decoration: underline #e28a18a6;
  text-decoration: underline #e28a18a6;
  text-decoration-thickness: 1px;
}

.prepared-token.is-muted {
  color: inherit;
  text-decoration: none;
}

.text-preparation-passages .is-source-referenced {
  z-index: 0;
  color: inherit;
  background-color: #facc156b;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 0 0 2px #facc1594;
}

.text-preparation-original .is-deleted-reference {
  -webkit-text-decoration: line-through dashed #d64e53;
  text-decoration: line-through dashed #d64e53;
  text-decoration-thickness: 1px;
}

.text-preparation-passages [data-prepared-change-index]:focus {
  outline: 2px solid var(--brand, #7658d6);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-passages [data-prepared-change-index]:focus {
    outline: 2px solid color-mix(in srgb, var(--brand, #7658d6) 75%, transparent);
  }
}

.text-preparation-passages [data-prepared-change-index]:focus {
  outline-offset: 3px;
  border-radius: 3px;
}

.text-preparation-prepared textarea {
  resize: none;
  vertical-align: baseline;
  width: 100%;
  height: auto;
  min-height: 1.85em;
  color: var(--text);
  font: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  margin: 0;
  padding: 0;
  display: inline;
  overflow: hidden;
}

.text-preparation-prepared textarea:focus-visible {
  outline: 2px solid var(--brand, #7658d6);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-prepared textarea:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand, #7658d6) 65%, transparent);
  }
}

.text-preparation-prepared textarea:focus-visible {
  outline-offset: 3px;
  border-radius: 3px;
}

.text-preparation-legend {
  color: var(--muted, GrayText);
  flex-wrap: wrap;
  flex: none;
  gap: 16px;
  padding: 8px 28px 12px;
  font-size: .72rem;
  display: flex;
}

.text-preparation-legend span {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.text-preparation-legend i {
  border-radius: 3px;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.text-preparation-legend .is-verbalization {
  background: #2563eb;
}

.text-preparation-legend .is-stress {
  background: #e28a18;
}

.text-preparation-legend .is-insertion {
  background: #42a86b;
}

.text-preparation-legend .is-deletion {
  border-top: 2px dashed #df5555;
  width: 12px;
  height: 0;
}

.selection-popover.text-preparation-stress-popover {
  box-sizing: border-box;
  border-color: var(--text);
  width: min(20rem, 100vw - 4rem);
}

@supports (color: color-mix(in lab, red, red)) {
  .selection-popover.text-preparation-stress-popover {
    border-color: color-mix(in srgb, var(--text) 15%, transparent);
  }
}

.selection-popover.text-preparation-stress-popover {
  color: var(--text);
  background: var(--panel, Canvas);
}

.text-preparation-word {
  border: 0;
  border-radius: 8px;
  min-width: 0;
  padding: 8px 10px;
}

.text-preparation-word > header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.text-preparation-word > header button {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  place-items: center;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 1.2rem;
  display: grid;
}

.text-preparation-word > header button:hover {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-word > header button:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }
}

.text-preparation-word > span {
  color: var(--muted, GrayText);
  margin: 7px 0 5px;
  font-size: .8rem;
  display: block;
}

.text-preparation-word > div {
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  display: flex;
}

.text-preparation-word button:not(:first-child) {
  min-width: 32px;
  min-height: 34px;
  margin: 2px;
}

.text-preparation-dialog-footer {
  z-index: 3;
  border-top: 1px solid var(--text);
  flex: none;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 12px 28px;
  display: flex;
  position: sticky;
  bottom: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-dialog-footer {
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  }
}

.text-preparation-dialog-footer {
  background: var(--panel, Canvas);
}

.text-preparation-footer-status {
  color: var(--muted, GrayText);
  flex: 1;
  font-size: .78rem;
}

.text-preparation-footer-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.text-preparation-dialog-footer button {
  border: 1px solid var(--text);
  min-height: 39px;
  padding: 8px 13px;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-dialog-footer button {
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  }
}

.text-preparation-dialog-footer button {
  background: var(--text);
  border-radius: 9px;
}

@supports (color: color-mix(in lab, red, red)) {
  .text-preparation-dialog-footer button {
    background: color-mix(in srgb, var(--text) 3%, var(--panel));
  }
}

.text-preparation-dialog-footer button {
  font: inherit;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
}

.text-preparation-dialog-footer button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.text-preparation-dialog-footer .text-preparation-cancel {
  background: none;
  border-color: #0000;
}

.text-preparation-dialog-footer .text-preparation-save:not(:disabled) {
  border-color: var(--brand, #5b6de2);
  color: #fff;
  background: var(--brand, #5b6de2);
}

.text-preparation-dialog-footer .text-preparation-save:hover:not(:disabled) {
  filter: brightness(1.08);
}

@media (max-width: 760px) {
  .text-preparation-dialog {
    border-radius: 14px;
    inset: 8px;
  }

  .text-preparation-dialog-header, .text-preparation-toolbar {
    padding-inline: 16px;
  }

  .text-preparation-views {
    padding-inline: 12px;
  }

  .text-preparation-pane-tools {
    padding-inline: 16px;
  }

  .text-preparation-passages {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .text-preparation-column {
    min-height: 32vh;
  }

  .text-preparation-column-scroll {
    flex: auto;
  }

  .text-preparation-legend {
    gap: 10px;
    padding-inline: 16px;
  }

  .selection-popover.text-preparation-stress-popover {
    width: min(20rem, 100vw - 4rem);
  }

  .text-preparation-dialog-footer {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .text-preparation-footer-status {
    flex: 1 0 100%;
    order: 3;
  }

  .text-preparation-footer-actions {
    flex: auto;
  }

  .text-preparation-dialog-footer button {
    padding-inline: 9px;
    font-size: .75rem;
  }
}

@media (max-width: 440px) {
  .text-preparation-dialog {
    border-radius: 0;
    inset: 0;
  }

  .text-preparation-dialog-header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .text-preparation-controls {
    gap: 5px;
  }

  .text-preparation-controls > button {
    padding-inline: 7px;
  }

  .text-preparation-dialog-footer {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .text-preparation-cancel {
    text-align: start;
    width: 100%;
  }
}

:root {
  --onboarding-surface: #fff;
}

html[data-theme="dark"] {
  --onboarding-surface: #1c1f26;
}

.onboarding-tour {
  z-index: 1100;
  pointer-events: auto;
  position: fixed;
  inset: 0;
}

.onboarding-tour__scrim {
  background: #0a0e1680;
  position: absolute;
  inset: 0;
}

.onboarding-tour__scrim.has-spotlight {
  background: none;
}

.onboarding-tour__spotlight {
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px #0a0e1680, 0 0 0 2px var(--brand);
  pointer-events: none;
  transition: left .18s, top .18s, width .18s, height .18s;
  position: fixed;
}

.onboarding-tour__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--onboarding-surface);
  width: min(340px, 100vw - 24px);
  color: var(--text);
  font-family: var(--font-sans);
  padding: 1rem 1rem .875rem;
  animation: .16s ease-out onboarding-pop;
  position: fixed;
  box-shadow: 0 18px 48px -8px #0a0e1659;
}

.onboarding-tour__header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .25rem;
  display: flex;
}

.onboarding-tour__count {
  letter-spacing: .02em;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.onboarding-tour__close, .onboarding-checklist__icon-button {
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.onboarding-tour__close:hover, .onboarding-checklist__icon-button:hover {
  background: var(--reader-control-surface);
  color: var(--text);
}

.onboarding-tour__close svg, .onboarding-checklist__icon-button svg {
  width: 1rem;
  height: 1rem;
}

.onboarding-tour__title {
  margin: 0 0 .375rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.onboarding-tour__body {
  color: var(--reader-control-fg, var(--text));
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
}

.onboarding-tour__progress {
  gap: .25rem;
  margin: .875rem 0 .75rem;
  display: flex;
}

.onboarding-tour__progress span {
  background: var(--line);
  border-radius: 999px;
  flex: 1;
  height: 3px;
}

.onboarding-tour__progress span.is-done {
  background: var(--brand-soft);
}

.onboarding-tour__progress span.is-active {
  background: var(--brand);
}

.onboarding-tour__actions {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.onboarding-tour__nav {
  gap: .5rem;
  display: flex;
}

.onboarding-tour__button {
  border: 1px solid var(--line);
  min-height: 2.25rem;
  color: var(--text);
  cursor: pointer;
  background: none;
  border-radius: 999px;
  padding: 0 .875rem;
  font-size: .8125rem;
  font-weight: 600;
}

.onboarding-tour__button:hover {
  background: var(--reader-control-surface);
}

.onboarding-tour__button.is-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.onboarding-tour__button.is-primary:hover {
  filter: brightness(1.08);
}

.onboarding-tour__link, .onboarding-checklist__link {
  color: var(--brand);
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: .25rem;
  padding: .25rem 0;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

html[data-theme="dark"] .onboarding-tour__link, html[data-theme="dark"] .onboarding-checklist__link {
  color: #7fb2ff;
}

.onboarding-tour__link, .onboarding-checklist__link.is-muted {
  color: var(--muted);
}

.onboarding-tour__link:hover, .onboarding-checklist__link:hover {
  text-decoration: underline;
}

.onboarding-checklist__link svg {
  width: .875rem;
  height: .875rem;
}

:where(.onboarding-tour, .onboarding-checklist) button:focus-visible, :where(.onboarding-tour, .onboarding-checklist) a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.onboarding-checklist {
  right: 1rem;
  bottom: calc(var(--root-bottom-obstruction-height, 0px) + 1rem + env(safe-area-inset-bottom, 0px));
  z-index: 115;
  font-family: var(--font-sans);
  pointer-events: none;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  display: flex;
  position: fixed;
}

.onboarding-checklist > * {
  pointer-events: auto;
}

.onboarding-checklist__launcher {
  min-height: var(--touch-min);
  border: 1px solid var(--line);
  background: var(--onboarding-surface);
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .5rem;
  padding: 0 .875rem 0 .75rem;
  font-size: .8125rem;
  font-weight: 700;
  display: inline-flex;
  box-shadow: 0 10px 30px -8px #0a0e1647;
}

.onboarding-checklist__launcher svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
}

.onboarding-checklist__launcher-count {
  background: var(--brand-soft);
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  padding: .125rem .5rem;
}

html[data-theme="dark"] .onboarding-checklist__launcher svg, html[data-theme="dark"] .onboarding-checklist__launcher-count {
  color: #7fb2ff;
}

.onboarding-checklist__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--onboarding-surface);
  width: min(340px, 100vw - 2rem);
  max-height: min(70vh, 520px);
  color: var(--text);
  padding: 1rem;
  animation: .16s ease-out onboarding-pop;
  overflow: auto;
  box-shadow: 0 18px 48px -8px #0a0e164d;
}

.onboarding-checklist__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  display: flex;
}

.onboarding-checklist__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.onboarding-checklist__progress-label {
  color: var(--muted);
  margin: .125rem 0 0;
  font-size: .75rem;
}

.onboarding-checklist__bar {
  background: var(--line);
  border-radius: 999px;
  height: 4px;
  margin: .75rem 0;
  overflow: hidden;
}

.onboarding-checklist__bar span {
  border-radius: inherit;
  background: var(--reader-tts-accent);
  height: 100%;
  transition: width .24s;
  display: block;
}

.onboarding-checklist__done {
  color: var(--reader-tts-accent);
  margin: 0 0 .5rem;
  font-size: .8125rem;
  font-weight: 600;
}

.onboarding-checklist__tasks {
  gap: .125rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.onboarding-checklist__task {
  border-radius: var(--radius-sm);
  grid-template-columns: 1.25rem 1fr;
  align-items: start;
  column-gap: .625rem;
  padding: .5rem .25rem;
  display: grid;
}

.onboarding-checklist__check {
  border: 1.5px solid var(--line);
  color: #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .0625rem;
  display: inline-flex;
}

.onboarding-checklist__task.is-done .onboarding-checklist__check {
  border-color: var(--reader-tts-accent);
  background: var(--reader-tts-accent);
}

.onboarding-checklist__check svg {
  width: .75rem;
  height: .75rem;
}

.onboarding-checklist__task-label {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}

.onboarding-checklist__task.is-done .onboarding-checklist__task-label {
  color: var(--muted);
  font-weight: 500;
  text-decoration: line-through;
}

.onboarding-checklist__task-actions {
  grid-column: 2;
  gap: .875rem;
  display: flex;
}

.onboarding-checklist__footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin-top: .5rem;
  padding-top: .5rem;
  display: flex;
}

@media (max-width: 767px) {
  .onboarding-checklist {
    right: .75rem;
  }

  .onboarding-checklist__launcher-label {
    display: none;
  }
}

@keyframes onboarding-pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-tour__spotlight, .onboarding-checklist__bar span {
    transition: none;
  }

  .onboarding-tour__card, .onboarding-checklist__panel {
    animation: none;
  }
}

/* [project]/styles/reader/annotations.css [app-client] (css) */
.reader-right-rail .reader-annotations-panel {
  background: none;
  border-top: 0;
  height: 100%;
  max-height: none;
}

.reader-annotations-panel {
  padding: 1rem;
}

.reader-right-rail .reader-annotations-panel.reader-items-panel {
  flex-direction: column;
  min-height: 0;
  padding: .9rem .45rem 1rem .65rem;
  display: flex;
  overflow: hidden;
}

.reader-annotations-header {
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
  display: flex;
}

.reader-annotations-header h2 {
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0;
  font-size: .74rem;
  font-weight: 800;
}

.reader-annotations-header span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.reader-items-header-actions {
  align-items: center;
  gap: .55rem;
  display: inline-flex;
}

.reader-items-search-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 1.95rem;
  height: 1.95rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.reader-items-search-toggle:hover, .reader-items-search-toggle:focus-visible, .reader-items-search-toggle.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.reader-items-search-toggle svg {
  width: .9rem;
  height: .9rem;
}

.reader-annotations-list {
  flex-direction: column;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.reader-annotations-list > .reader-annotation-card {
  box-sizing: border-box;
  width: 100%;
}

.reader-annotations-empty {
  color: var(--muted);
  margin: 0;
  font-size: .85rem;
}

.reader-dictionary-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin: 0 1rem .75rem;
  padding: .65rem .75rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-dictionary-toggle {
    background: color-mix(in srgb, var(--surface) 90%, transparent);
  }
}

.reader-dictionary-toggle {
  font-size: .82rem;
  font-weight: 650;
}

.reader-dictionary-toggle button, .reader-items-tabs button, .reader-item-delete-btn, .reader-item-edit-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.reader-dictionary-toggle button {
  min-width: 3.25rem;
  padding: .35rem .55rem;
}

.reader-dictionary-toggle button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.reader-items-content-shell {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  flex: auto;
  grid-template-columns: minmax(0, 1fr) 2.05rem;
  align-items: start;
  gap: .28rem;
  min-height: 0;
  padding-right: .18rem;
  display: grid;
  overflow-y: auto;
}

.reader-items-main {
  min-width: 0;
}

.reader-items-toolbar {
  justify-items: center;
  gap: .28rem;
  display: grid;
  position: sticky;
  top: 0;
}

.reader-items-tabs {
  gap: .24rem;
  display: grid;
}

.reader-items-tabs button {
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  width: 1.95rem;
  min-width: 0;
  height: 1.95rem;
  padding: 0;
  display: flex;
  position: relative;
}

.reader-items-tabs button.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.reader-items-tabs button svg {
  width: .9rem;
  height: .9rem;
}

.reader-items-tab-count {
  background: var(--surface);
  min-width: .82rem;
  height: .82rem;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 0 0 1px var(--border);
  border-radius: 999px;
  padding: 0 .14rem;
  font-size: .5rem;
  font-weight: 800;
  line-height: .82rem;
  position: absolute;
  top: -.18rem;
  right: -.05rem;
}

.reader-items-tabs button.is-active .reader-items-tab-count, .reader-items-search-toggle.is-active {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-items-tabs button.is-active .reader-items-tab-count, .reader-items-search-toggle.is-active {
    background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  }
}

.reader-items-filters {
  gap: .45rem;
  margin-bottom: .75rem;
  display: grid;
}

.reader-items-filters label, .reader-items-filter-row {
  align-items: center;
  gap: .4rem;
  display: flex;
}

.reader-items-filters label svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.reader-items-filters input, .reader-items-filters select {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: inherit;
  border-radius: 6px;
  padding: .45rem .5rem;
  font-size: .78rem;
}

.reader-items-filter-row > * {
  flex: 1;
}

.reader-item-card {
  position: relative;
}

.reader-items-list > .reader-item-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem .55rem;
  padding: .7rem .7rem .65rem .85rem;
}

.reader-items-list .reader-annotation-card-body {
  grid-column: 1;
}

:is(.reader-items-list .reader-item-card:has(.reader-item-delete-btn) .reader-annotation-card-body, .reader-items-list .reader-item-card:has(.reader-item-edit-btn) .reader-annotation-card-body) {
  grid-column: 1 / -1;
}

.reader-items-list .reader-annotation-card-body .reader-annotation-note {
  -webkit-line-clamp: 4;
}

.reader-items-list .reader-annotation-card-body small {
  -webkit-line-clamp: 3;
}

.reader-annotation-card-heading svg {
  vertical-align: -.15rem;
  width: .95rem;
  height: .95rem;
}

.reader-item-tags {
  color: var(--brand);
}

.reader-item-tags-editor {
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 0;
  display: grid;
  position: relative;
}

.reader-tag-filter {
  min-width: 0;
  position: relative;
}

.reader-tag-filter > input {
  width: 100%;
}

.reader-tag-suggestions {
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  flex-wrap: wrap;
  align-content: flex-start;
  gap: .35rem;
  width: max-content;
  min-width: min(11rem, 100vw - 2rem);
  max-width: min(24rem, 100vw - 2rem);
  max-height: 13rem;
  padding: .5rem;
  display: flex;
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  overflow-y: auto;
  box-shadow: 0 .5rem 1.2rem #0000002e;
}

.reader-tag-suggestions button {
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  flex: 0 auto;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-tag-suggestions button {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
}

.reader-tag-suggestions button {
  color: var(--text);
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  padding: .35rem .45rem;
  font-size: .75rem;
}

.reader-tag-suggestions button:hover, .reader-tag-suggestions button.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.search-result-tag-editor .reader-tag-suggestions, .search-result-tag-editor .reader-tag-color-popover {
  left: auto;
  right: 0;
}

.search-result-tag-editor .reader-item-tag-field {
  border: 0;
  border-radius: 0;
  justify-content: flex-end;
  gap: .3rem;
  padding: 0;
}

.search-result-tag-editor .reader-item-tag-field:focus-within {
  box-shadow: none;
}

.search-result-tag-editor .reader-item-tag-field input {
  border: 1px solid var(--line);
  background: none;
  border-radius: .35rem;
  flex: 0 0 4.5rem;
  width: 4.5rem;
  min-width: 0;
  height: 1.6rem;
  margin-left: calc(100% - 4.5rem);
  padding: .25rem .45rem;
}

.search-result-tag-editor .reader-item-tag-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .search-result-tag-editor .reader-item-tag-field input:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent);
  }
}

.reader-tag-save-error {
  color: #dc2626;
  margin: .2rem 0 0;
  font-size: .68rem;
}

.reader-item-card-footer {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .35rem;
  margin-top: .05rem;
  display: grid;
}

.reader-item-card-actions {
  justify-content: flex-end;
  align-items: center;
  gap: .25rem;
  display: inline-flex;
}

.reader-items-panel {
  --reader-item-source-accent: var(--brand);
  --reader-item-target-accent: var(--brand);
}

.reader-item-tag-field {
  background: none;
  border: 1px solid #0000;
  border-radius: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: .18rem;
  width: 100%;
  min-width: 0;
  min-height: 1.45rem;
  padding: .05rem .1rem;
  display: flex;
}

.reader-item-tag-field:focus-within {
  box-shadow: none;
  border-color: #0000;
}

.reader-item-tags-editor.is-saving .reader-item-tag-field {
  opacity: .72;
}

.reader-item-tag-field input {
  width: auto;
  min-width: 3rem;
  max-width: 5rem;
  color: var(--text);
  font: inherit;
  background: none;
  border: 1px solid #0000;
  border-radius: .35rem;
  outline: 0;
  flex: 3.2rem;
  padding: .1rem .2rem;
  font-size: .68rem;
  line-height: 1.1;
}

.reader-item-tag-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tag-field input:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent);
  }
}

.reader-item-tag-field input::placeholder {
  color: var(--muted);
}

.reader-item-tag-chip {
  background: var(--brand);
  border-radius: 999px;
  align-items: center;
  gap: .15rem;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tag-chip {
    background: color-mix(in srgb, var(--brand) 14%, transparent);
  }
}

.reader-item-tag-chip {
  color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tag-chip {
    color: color-mix(in srgb, var(--brand) 78%, var(--text));
  }
}

.reader-item-tag-chip {
  padding: .14rem .2rem .14rem .42rem;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
}

.reader-item-tag-chip > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.reader-item-tag-color-trigger {
  width: auto;
  min-width: 0;
  height: auto;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.reader-item-tag-color-trigger:focus-visible {
  outline-offset: 2px;
  outline: 2px solid;
}

.reader-item-tag-chip button {
  color: currentColor;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: .95rem;
  height: .95rem;
  padding: 0;
  display: inline-flex;
}

.reader-item-tag-chip button:hover, .reader-item-tag-chip button:focus-visible {
  background: currentColor;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tag-chip button:hover, .reader-item-tag-chip button:focus-visible {
    background: color-mix(in srgb, currentColor 14%, transparent);
  }
}

.reader-item-tag-chip button:disabled {
  cursor: default;
  opacity: .55;
}

.reader-item-tag-chip .reader-item-tag-color-trigger {
  border-radius: 0;
  width: auto;
  height: auto;
}

.reader-tag-color-popover {
  z-index: 31;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  min-width: 12rem;
  padding: .5rem;
  display: flex;
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  box-shadow: 0 .5rem 1.2rem #0000002e;
}

.reader-tag-color-presets {
  grid-template-columns: repeat(8, 1rem);
  gap: .3rem;
  display: grid;
}

.reader-tag-color-presets button {
  border: 1px solid #0000;
  border-radius: 999px;
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.reader-tag-color-presets button.is-selected, .reader-tag-color-presets button:focus-visible {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px currentColor;
}

.reader-tag-custom-color {
  color: var(--muted);
  align-items: center;
  gap: .25rem;
  font-size: .68rem;
  display: inline-flex;
}

.reader-tag-custom-color input {
  background: none;
  border: 0;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
}

.reader-tag-color-default {
  color: var(--brand);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-size: .68rem;
}

.reader-item-tag-chip svg {
  width: .62rem;
  height: .62rem;
}

.reader-item-delete-btn, .reader-item-edit-btn, .reader-item-tts-btn {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--muted);
  cursor: pointer;
  justify-content: center;
  place-self: end;
  align-items: center;
  padding: 0;
  transition: border-color .12s, color .12s, background .12s;
  display: flex;
}

.reader-item-delete-btn:hover, .reader-item-delete-btn:focus-visible {
  border-color: var(--danger, #dc2626);
  color: var(--danger, #dc2626);
}

.reader-item-edit-btn:hover, .reader-item-edit-btn:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.reader-item-tts-btn {
  background: var(--brand);
  border: 1px solid #0000;
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tts-btn {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
}

.reader-item-tts-btn {
  color: var(--brand);
}

.reader-item-tts-btn:hover, .reader-item-tts-btn:focus-visible, .reader-item-tts-btn.is-active {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tts-btn:hover, .reader-item-tts-btn:focus-visible, .reader-item-tts-btn.is-active {
    border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  }
}

.reader-item-tts-btn:hover, .reader-item-tts-btn:focus-visible, .reader-item-tts-btn.is-active {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tts-btn:hover, .reader-item-tts-btn:focus-visible, .reader-item-tts-btn.is-active {
    background: color-mix(in srgb, var(--brand) 16%, transparent);
  }
}

.reader-item-tts-btn:hover, .reader-item-tts-btn:focus-visible, .reader-item-tts-btn.is-active {
  color: var(--brand);
}

.reader-item-tts-btn--target {
  background: var(--reader-item-target-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tts-btn--target {
    background: color-mix(in srgb, var(--reader-item-target-accent) 12%, transparent);
  }
}

.reader-item-tts-btn--target {
  color: var(--reader-item-target-accent);
}

.reader-item-tts-btn--target:hover, .reader-item-tts-btn--target:focus-visible, .reader-item-tts-btn--target.is-active {
  border-color: var(--reader-item-target-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tts-btn--target:hover, .reader-item-tts-btn--target:focus-visible, .reader-item-tts-btn--target.is-active {
    border-color: color-mix(in srgb, var(--reader-item-target-accent) 38%, transparent);
  }
}

.reader-item-tts-btn--target:hover, .reader-item-tts-btn--target:focus-visible, .reader-item-tts-btn--target.is-active {
  background: var(--reader-item-target-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-tts-btn--target:hover, .reader-item-tts-btn--target:focus-visible, .reader-item-tts-btn--target.is-active {
    background: color-mix(in srgb, var(--reader-item-target-accent) 18%, transparent);
  }
}

.reader-item-tts-btn--target:hover, .reader-item-tts-btn--target:focus-visible, .reader-item-tts-btn--target.is-active {
  color: var(--reader-item-target-accent);
}

.reader-item-tts-btn:disabled {
  cursor: default;
  opacity: .48;
}

.reader-item-tts-btn > span {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.reader-item-language-pair {
  min-width: 0;
  color: var(--reader-item-source-accent);
  align-items: center;
  gap: .28rem;
  display: inline-flex;
}

.reader-item-language-pair__source {
  color: var(--reader-item-source-accent);
}

.reader-item-language-pair__arrow {
  color: var(--reader-item-source-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-item-language-pair__arrow {
    color: color-mix(in srgb, var(--reader-item-source-accent) 55%, var(--reader-item-target-accent));
  }
}

.reader-item-language-pair__target {
  color: var(--reader-item-target-accent);
}

.reader-item-delete-btn svg, .reader-item-edit-btn svg, .reader-item-tts-btn svg {
  width: .9rem;
  height: .9rem;
}

.reader-item-tts-btn__spinner {
  animation: .8s linear infinite reader-spin;
}

.annotation-modal-tags {
  border-top: 1px solid var(--line, #0000000f);
  padding: .5rem 1.1rem .55rem;
}

.annotation-modal-tags-editor {
  max-width: 100%;
  display: block;
}

.annotation-modal-tags-editor .reader-tag-suggestions, .annotation-modal-tags-editor .reader-tag-color-popover {
  top: auto;
  bottom: calc(100% + .25rem);
}

.document-settings-overlay {
  --surface: #f4f5f9;
  --border: #191c2124;
  z-index: 9000;
  -webkit-backdrop-filter: blur(3px);
  background: #0000008f;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

html[data-theme="dark"] .document-settings-overlay {
  --surface: #ffffff12;
  --border: #ffffff29;
}

.document-settings-popover {
  border: 1px solid var(--border);
  background: var(--panel, var(--surface));
  width: min(37rem, 100vw - 1.5rem);
  max-height: min(38rem, 100dvh - 1.5rem);
  color: var(--text);
  border-radius: 10px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
  box-shadow: 0 28px 90px #0000006b;
}

.document-settings-body {
  flex: auto;
  min-height: 0;
  overflow: auto;
}

.document-settings-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .55rem .7rem .4rem;
  display: flex;
}

.document-settings-title {
  color: var(--brand);
  letter-spacing: .12em;
  text-transform: uppercase;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
}

.document-settings-title svg, .document-settings-close svg {
  width: 1rem;
  height: 1rem;
}

.document-settings-close {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 1.75rem;
  height: 1.75rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.document-settings-tabs {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  margin: 0 .7rem .4rem;
  padding: .2rem;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .document-settings-tabs {
    background: color-mix(in srgb, var(--surface) 78%, transparent);
  }
}

.document-settings-tabs button {
  min-height: 2rem;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 800;
}

.document-settings-tabs button.is-active {
  background: var(--brand);
  color: #fff;
}

.document-settings-section {
  border: 0;
  border-bottom: 1px solid var(--border);
  gap: .55rem .7rem;
  margin: 0;
  padding: .75rem .8rem;
  display: grid;
}

.document-settings-section--narration, .document-settings-section--document {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-settings-section--document legend, .document-settings-section--document label:first-of-type, .document-settings-section--document .document-settings-meta {
  grid-column: 1 / -1;
}

.document-settings-section--reader-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-settings-section--reader-items legend, .document-settings-section--narration legend, .document-settings-section--narration .document-settings-status-strip, .document-settings-section--narration .document-settings-note, .document-settings-section--narration .document-settings-optgroup, .document-settings-section--narration .document-settings-meta, .document-settings-section--narration .document-settings-meta-list, .document-settings-section--narration .document-settings-action-row, .document-settings-section--narration .document-settings-inline-fields {
  grid-column: 1 / -1;
}

.document-settings-section--narration .document-settings-meta-list:empty {
  display: none;
}

.document-settings-section--narration .document-settings-scope-summary {
  grid-column: auto;
  align-self: end;
  padding-bottom: .5rem;
}

.document-settings-section legend {
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0;
  font-size: .72rem;
  font-weight: 800;
}

.document-settings-section label, .document-settings-toggle {
  color: var(--muted);
  gap: .25rem;
  font-size: .76rem;
  font-weight: 700;
  display: grid;
}

.document-settings-section input, .document-settings-section select {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: .45rem .55rem;
  font-size: .82rem;
}

.document-settings-section--narration select {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

.document-settings-section--narration select option {
  color: #fff;
  background: #1b2029;
}

.document-settings-section--narration select option:disabled {
  color: #ffffff9e;
}

.document-settings-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.document-settings-toggle button {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 3.25rem;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: .45rem .65rem;
}

.document-settings-toggle button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.document-settings-meta, .document-settings-error {
  color: var(--muted);
  margin: 0;
  padding: 0 .8rem;
  font-size: .74rem;
  font-weight: 650;
}

.document-settings-section .document-settings-meta {
  padding: 0;
}

.document-settings-status-grid {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: .25rem .65rem;
  padding: .55rem .6rem;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .document-settings-status-grid {
    background: color-mix(in srgb, var(--surface) 82%, var(--panel));
  }
}

.document-settings-status-grid {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.document-settings-status-grid strong {
  color: var(--text);
  font-weight: 800;
}

.document-settings-status-strip {
  flex-wrap: wrap;
  gap: .35rem;
  display: flex;
}

.document-settings-status-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  align-items: baseline;
  gap: .35rem;
  min-width: 0;
  padding: .3rem .55rem;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .document-settings-status-chip {
    background: color-mix(in srgb, var(--surface) 82%, var(--panel));
  }
}

.document-settings-status-chip {
  font-size: .72rem;
}

.document-settings-status-chip em {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .64rem;
  font-style: normal;
  font-weight: 700;
}

.document-settings-status-chip strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  font-weight: 800;
}

.document-settings-note {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  margin: 0;
  padding: .4rem .55rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .document-settings-note {
    background: color-mix(in srgb, var(--surface) 82%, var(--panel));
  }
}

.document-settings-note {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 650;
}

.document-settings-optgroup {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  gap: .45rem;
  padding: .55rem .6rem .6rem;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .document-settings-optgroup {
    background: color-mix(in srgb, var(--surface) 60%, transparent);
  }
}

.document-settings-optgroup__label {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

.document-settings-chip-row {
  flex-wrap: wrap;
  gap: .35rem;
  display: flex;
}

.document-settings-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 2rem;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem .3rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
}

.document-settings-chip:before {
  content: "✓";
  border: 1.5px solid var(--border);
  background: var(--panel, transparent);
  color: #0000;
  border-radius: 5px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 1.05rem;
  height: 1.05rem;
  font-size: .72rem;
  line-height: 1;
  display: inline-flex;
}

.document-settings-chip:hover {
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .document-settings-chip:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  }
}

.document-settings-chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.document-settings-chip.is-active:before {
  color: var(--brand);
  background: #fff;
  border-color: #fff;
}

.document-settings-chip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.document-settings-chip:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.document-settings-readonly-row {
  color: var(--muted);
  gap: .25rem;
  font-size: .76rem;
  font-weight: 700;
  display: grid;
}

.document-settings-readonly-row strong {
  overflow-wrap: anywhere;
  min-width: 0;
  color: var(--text);
  font-size: .82rem;
  font-weight: 800;
}

.document-settings-inline-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: .55rem;
  display: grid;
}

.document-settings-meta-list {
  color: var(--muted);
  gap: .2rem;
  font-size: .72rem;
  font-weight: 650;
  display: grid;
}

.document-settings-meta-list__error {
  color: #ef4444;
  font-weight: 750;
}

.document-settings-prepared-text {
  margin-top: .65rem;
  font-size: .78rem;
}

.document-settings-prepared-text summary {
  cursor: pointer;
  font-weight: 700;
}

.document-settings-prepared-text p {
  overflow-wrap: anywhere;
  margin: .4rem 0 0;
}

.document-settings-download-progress {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  display: block;
  overflow: hidden;
}

.document-settings-download-progress__fill {
  border-radius: inherit;
  background: var(--brand, #3b82f6);
  height: 100%;
  transition: width .15s ease-out;
  display: block;
}

.document-settings-action-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.document-settings-secondary-action {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 2.05rem;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: .45rem .65rem;
  font-size: .78rem;
  font-weight: 800;
}

.document-settings-secondary-action:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.document-settings-error {
  color: #ef4444;
}

.document-settings-footer {
  border-top: 1px solid var(--border);
  background: var(--panel, var(--surface));
  flex: none;
  justify-content: flex-end;
  gap: .5rem;
  padding: .6rem .8rem;
  display: flex;
}

.document-settings-body > .document-settings-section:last-child {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .document-settings-section--document, .document-settings-section--reader-items, .document-settings-section--narration, .document-settings-inline-fields, .document-settings-status-grid {
    grid-template-columns: 1fr;
  }

  .document-settings-inline-fields {
    align-items: stretch;
  }
}

.reader-annotation-card {
  border: 1px solid #0000000f;
  border-left: 4px solid var(--annotation-color, var(--brand));
  background: var(--reader-card);
  border-radius: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .25rem;
  padding: .75rem .5rem .75rem .85rem;
  transition: box-shadow .14s;
  display: grid;
  position: relative;
  box-shadow: 0 6px 18px #0f14230d;
}

.reader-annotation-card:hover {
  box-shadow: 0 8px 24px #0f142317;
}

.reader-annotation-card-body {
  text-align: left;
  width: 100%;
  min-width: 0;
  box-shadow: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  display: block;
}

.reader-annotation-card-body > * + * {
  margin-top: .3rem;
}

.reader-annotation-card-body strong {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--annotation-color, var(--brand));
  font-size: .66rem;
  font-weight: 800;
}

.reader-annotation-card-heading {
  white-space: nowrap;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: .5rem;
  width: 100%;
  display: grid;
}

.reader-annotation-card-heading > span:first-child {
  text-overflow: ellipsis;
  min-width: 0;
  overflow: hidden;
}

.reader-annotation-card-heading > small:last-child {
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

.reader-annotation-author {
  color: var(--muted, #888);
  font-weight: 500;
}

.reader-annotation-badge {
  background: var(--annotation-color, var(--brand));
  border-radius: 999px;
  align-items: center;
  gap: .28rem;
  padding: .18rem .42rem;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .reader-annotation-badge {
    background: color-mix(in srgb, var(--annotation-color, var(--brand)) 12%, transparent);
  }
}

.reader-annotation-badge {
  color: var(--annotation-color, var(--brand));
  letter-spacing: .04em;
  font-size: .58rem;
}

.reader-annotation-badge svg {
  width: .68rem;
  height: .68rem;
}

.reader-annotation-card-body .reader-annotation-note {
  color: var(--text);
  word-break: break-word;
  -webkit-line-clamp: 3;
  box-sizing: border-box;
  -webkit-box-orient: vertical;
  width: 100%;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}

.reader-annotation-card-body .reader-annotation-image-preview {
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: .65rem;
  width: 100%;
  max-height: 11rem;
  display: block;
}

.reader-annotation-card-body small {
  color: var(--muted);
  -webkit-line-clamp: 2;
  box-sizing: border-box;
  word-break: break-word;
  -webkit-box-orient: vertical;
  width: 100%;
  font-size: .75rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.reader-annotation-excerpt {
  font-weight: 600;
  color: var(--text) !important;
  font-size: .82rem !important;
}

.reader-annotation-edit-btn {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
  opacity: 0;
  background: none;
  border: 0;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-top: -.1rem;
  padding: 0;
  transition: background .12s, color .12s;
  display: flex;
}

.reader-annotation-card:hover .reader-annotation-edit-btn, .reader-annotation-edit-btn:focus-visible {
  opacity: 1;
}

.reader-annotation-edit-btn:hover, .reader-annotation-edit-btn:focus-visible {
  color: var(--text);
  background: #0000000f;
}

.reader-annotation-edit-btn svg {
  width: .85rem;
  height: .85rem;
}

.annotation-modal-overlay {
  z-index: 9000;
  -webkit-backdrop-filter: blur(6px);
  background: #0000007a;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

html.reader-side-search-active:not(.rss-side-left) .annotation-modal-overlay {
  right: var(--reader-side-search-width, 0px);
}

html.reader-side-search-active.rss-side-left .annotation-modal-overlay {
  left: var(--reader-side-search-width, 0px);
}

html.reader-side-search-active .annotation-modal {
  width: min(660px, calc(100vw - var(--reader-side-search-width, 0px) - 2rem));
}

.annotation-modal {
  background: var(--panel, #fff);
  border-radius: 1.25rem;
  flex-direction: column;
  width: min(660px, 100vw - 2rem);
  max-height: calc(100dvh - 4rem);
  animation: .18s cubic-bezier(.22, 1, .36, 1) both annotation-modal-in;
  display: flex;
  overflow: hidden;
  box-shadow: 0 32px 72px #00000042;
}

@keyframes annotation-modal-in {
  from {
    opacity: 0;
    transform: scale(.97) translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.annotation-modal-header {
  border-bottom: 1px solid var(--line, #00000012);
  align-items: flex-start;
  gap: .75rem;
  padding: 1.1rem 1.1rem .8rem;
  display: flex;
}

.annotation-modal-meta {
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  display: flex;
}

.annotation-modal-name-input {
  min-width: 0;
  color: var(--text);
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  outline: none;
  flex: 1;
  padding: .3rem .5rem;
  font-size: .92rem;
  font-weight: 700;
  transition: border-color .12s, background .12s;
}

.annotation-modal-name-input:hover, .annotation-modal-name-input:focus {
  border-color: var(--line, #0000001f);
  background: var(--hover, #00000008);
}

.annotation-modal-color-dot {
  border: 1.5px solid #0000001f;
  border-radius: 999px;
  flex-shrink: 0;
  width: .85rem;
  height: .85rem;
  transition: background-color .12s;
}

.annotation-modal-page {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand, #3b82f6);
  font-size: .68rem;
  font-weight: 800;
}

.annotation-modal-author {
  color: var(--muted, #888);
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 600;
}

.annotation-modal-text-preview {
  color: var(--muted, #888);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: .78rem;
  font-style: italic;
  overflow: hidden;
}

.annotation-modal-close {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 999px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background .12s;
  display: flex;
}

.annotation-modal-close:hover {
  background: var(--hover, #0000000f);
  color: var(--text);
}

.annotation-modal-close svg {
  width: 1rem;
  height: 1rem;
}

.annotation-modal-tabs {
  gap: .35rem;
  padding: .7rem 1.1rem 0;
  display: flex;
}

.annotation-modal-tab {
  border: 1px solid var(--line, #00000014);
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
  background: none;
  border-radius: 999px;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
}

.annotation-modal-tab.is-active {
  color: var(--brand, #005ab5);
  background: #005ab514;
  border-color: #005ab52e;
}

.annotation-modal-tab svg {
  width: .82rem;
  height: .82rem;
}

.annotation-modal-toolbar {
  border-bottom: 1px solid var(--line, #0000000f);
  background: #00000005;
  align-items: center;
  gap: .2rem;
  padding: .45rem 1.1rem;
  display: flex;
}

.annotation-modal-fmt-btn {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background .12s, color .12s;
  display: flex;
}

.annotation-modal-fmt-btn svg {
  width: .88rem;
  height: .88rem;
}

.annotation-modal-fmt-btn:hover, .annotation-modal-fmt-btn:focus-visible {
  color: var(--text);
  background: #0000000f;
}

.annotation-modal-fmt-btn.is-active {
  color: var(--brand, #3b82f6);
  background: #3b82f61f;
}

.annotation-modal-fmt-divider {
  background: var(--line, #0000001a);
  flex-shrink: 0;
  width: 1px;
  height: 1.15rem;
  margin: 0 .2rem;
}

.annotation-rich-editor {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.annotation-rich-toolbar {
  flex-wrap: wrap;
}

.annotation-rich-editor-inner {
  flex: 1;
  min-height: 160px;
  position: relative;
}

.annotation-modal-editor {
  min-height: 160px;
  max-height: 340px;
  color: var(--text);
  outline: none;
  flex: 1;
  padding: 1rem 1.1rem;
  font-size: .93rem;
  line-height: 1.65;
  overflow-y: auto;
}

.annotation-rich-editor-content.text-document-content {
  min-height: 160px;
  max-height: 340px;
  padding: 1rem 1.1rem;
  font-size: .93rem;
  line-height: 1.65;
}

.annotation-rich-editor-content.text-document-content h1 {
  margin: .8rem 0 .45rem;
  font-size: 1.25rem;
}

.annotation-rich-editor-content.text-document-content h2 {
  margin: .7rem 0 .4rem;
  font-size: 1.08rem;
}

.annotation-rich-editor-content.text-document-content blockquote {
  border-radius: .65rem;
  margin: .65rem 0;
  padding: .6rem .8rem;
}

.annotation-rich-editor-content.text-document-content .text-document-image {
  border-radius: .65rem;
  max-height: 18rem;
}

.annotation-rich-editor-placeholder {
  color: var(--muted);
  pointer-events: none;
  position: absolute;
  top: 1rem;
  left: 1.1rem;
}

.annotation-modal-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

.annotation-modal-editor p {
  margin: 0 0 .5em;
}

.annotation-modal-editor ul, .annotation-modal-editor ol {
  margin: .25rem 0;
  padding-left: 1.5rem;
}

.annotation-modal-editor li {
  margin: .15rem 0;
}

.annotation-modal-editor b, .annotation-modal-editor strong {
  font-weight: 700;
}

.annotation-modal-translation-panel {
  gap: .9rem;
  padding: 1rem 1.1rem;
  display: grid;
}

.annotation-modal-translation-block {
  background: #00000008;
  border-radius: 16px;
  gap: .35rem;
  padding: .9rem 1rem;
  display: grid;
}

.annotation-modal-translation-block p {
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

.annotation-modal-translation-label {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 800;
}

.annotation-modal-translation-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  display: grid;
}

.annotation-modal-translation-meta div {
  background: #00000008;
  border-radius: 14px;
  padding: .75rem .85rem;
}

.annotation-modal-translation-meta dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .25rem;
  font-size: .68rem;
  font-weight: 700;
}

.annotation-modal-translation-meta dd {
  color: var(--text);
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
}

.annotation-modal-options {
  border-top: 1px solid var(--line, #0000000f);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.1rem;
  display: flex;
}

.annotation-modal-palette {
  align-items: center;
  gap: .3rem;
  display: flex;
}

.annotation-modal-swatch {
  cursor: pointer;
  border: 2px solid #0000;
  border-radius: 999px;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  transition: transform .12s, border-color .12s;
  box-shadow: 0 1px 3px #0000001f;
}

.annotation-modal-swatch:hover {
  transform: scale(1.1);
}

.annotation-modal-swatch.is-active {
  border-color: var(--text, #1a1a2e);
  transform: scale(1.08);
}

.annotation-modal-custom-color {
  width: 1.55rem;
  height: 1.55rem;
}

.annotation-modal-blendmode {
  background: #0000000f;
  border-radius: 8px;
  gap: .1rem;
  padding: .15rem;
  display: flex;
}

.annotation-modal-blend-btn {
  min-width: 2.05rem;
  min-height: 1.65rem;
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: .18rem .32rem;
  transition: background .12s, color .12s;
  display: inline-flex;
}

.annotation-modal-blend-btn.is-active {
  background: var(--panel, #fff);
  color: var(--text);
  box-shadow: 0 1px 3px #0000001a;
}

.annotation-highlight-mode-control {
  --annotation-preview-color: #facc15;
}

.annotation-highlight-mode-icon {
  border-radius: .25rem;
  justify-content: center;
  align-items: center;
  width: 1.45rem;
  height: 1rem;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.annotation-highlight-mode-icon:before {
  background: var(--annotation-preview-color);
  content: "";
  opacity: .76;
  border-radius: .2rem;
  position: absolute;
  inset: .38rem .05rem .1rem;
}

.annotation-highlight-mode-icon span {
  color: #101827;
  letter-spacing: 0;
  font-size: .52rem;
  font-weight: 900;
  line-height: 1;
  position: relative;
}

.annotation-highlight-mode-icon--clear:before {
  opacity: .3;
  inset: .3rem .03rem .08rem;
}

.annotation-highlight-mode-icon--invert {
  background: var(--annotation-preview-color);
}

.annotation-highlight-mode-icon--invert:before {
  display: none;
}

.annotation-highlight-mode-icon--invert span {
  color: #111827;
}

.annotation-custom-color-button {
  --annotation-custom-color: #facc15;
  cursor: pointer;
  border-radius: 999px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  position: relative;
  box-shadow: 0 1px 3px #0f172a2e;
}

.annotation-custom-color-button:before {
  border: 2px solid var(--annotation-custom-color);
  border-radius: inherit;
  content: "";
  opacity: .9;
  position: absolute;
  inset: -.12rem;
}

.annotation-custom-color-button__wheel {
  border: 2px solid var(--panel, #fff);
  border-radius: inherit;
  background: conic-gradient(#ef4444, #f97316, #facc15, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  width: 1.18rem;
  height: 1.18rem;
}

.annotation-custom-color-button input {
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.annotation-modal-footer {
  border-top: 1px solid var(--line, #00000012);
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  display: flex;
}

.annotation-modal-footer-end {
  gap: .5rem;
  margin-left: auto;
  display: flex;
}

.annotation-modal-delete-btn {
  color: #dc2626;
  cursor: pointer;
  box-shadow: none;
  background: none;
  border: 1px solid #dc26264d;
  border-radius: 8px;
  align-items: center;
  gap: .35rem;
  padding: .42rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  transition: background .12s;
  display: inline-flex;
}

.annotation-modal-delete-btn:hover {
  background: #dc26260f;
}

.annotation-modal-delete-btn svg {
  width: .85rem;
  height: .85rem;
}

.annotation-modal-cancel-btn {
  border: 1px solid var(--line, #0000001a);
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  background: none;
  border-radius: 8px;
  padding: .42rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  transition: background .12s;
}

.annotation-modal-cancel-btn:hover {
  background: #0000000a;
}

.annotation-modal-save-btn {
  background: var(--brand, #3b82f6);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  border: 0;
  border-radius: 8px;
  padding: .42rem 1.2rem;
  font-size: .8rem;
  font-weight: 700;
  transition: background .12s;
}

.annotation-modal-save-btn:hover {
  filter: brightness(1.08);
}

.annotation-modal-delete-btn:disabled, .annotation-modal-cancel-btn:disabled, .annotation-modal-save-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.holos-consent-modal {
  background: var(--panel, #fff);
  border-radius: 1.25rem;
  flex-direction: column;
  gap: .75rem;
  width: min(420px, 100vw - 2rem);
  padding: 1.25rem 1.5rem 1.5rem;
  animation: .18s cubic-bezier(.22, 1, .36, 1) both annotation-modal-in;
  display: flex;
  box-shadow: 0 32px 72px #00000042;
}

.holos-consent-modal-header {
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
}

.holos-consent-modal-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand, #3b82f6);
}

.holos-consent-modal-title {
  color: var(--text);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
}

.holos-consent-modal-body {
  color: var(--muted);
  margin: 0;
  font-size: .85rem;
  line-height: 1.45;
}

.holos-consent-modal-footer {
  margin-top: .25rem;
}

.browser-model-offer--consent .browser-model-offer-title {
  font-size: 1rem;
  line-height: 1.5;
}

.browser-model-offer--consent .browser-model-offer-description {
  font-size: .875rem;
  line-height: 1.45;
}

html[data-theme="dark"] .annotation-modal, html[data-theme="dark"] .holos-consent-modal {
  background: #151a21f7;
  box-shadow: 0 32px 72px #0000008c;
}

html[data-theme="dark"] .annotation-modal-toolbar {
  background: #ffffff0a;
}

html[data-theme="dark"] .annotation-modal-blend-btn.is-active {
  background: #ffffff1f;
}

html[data-theme="dark"] .annotation-modal-blendmode {
  background: #ffffff14;
}

html[data-theme="dark"] .reader-annotation-card {
  background: #171d25f0;
  border-top-color: #ffffff14;
  border-bottom-color: #ffffff14;
  border-right-color: #ffffff14;
}

/* [project]/styles/tailwind.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
      --tw-outline-style: solid;
    }
  }
}

:root, :host {
  --tw-font-sans: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
  --tw-font-serif: var(--font-inter), ui-serif, Georgia, serif;
  --tw-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  --tw-color-red-50: #fef2f2;
  --tw-color-red-100: #ffe2e2;
  --tw-color-red-200: #ffcaca;
  --tw-color-red-300: #ffa3a3;
  --tw-color-red-400: #ff6568;
  --tw-color-red-500: #fb2c36;
  --tw-color-red-600: #e40014;
  --tw-color-red-700: #bf000f;
  --tw-color-red-800: #9f0712;
  --tw-color-red-900: #82181a;
  --tw-color-amber-50: #fffbeb;
  --tw-color-amber-100: #fef3c6;
  --tw-color-amber-200: #fee685;
  --tw-color-amber-300: #ffd236;
  --tw-color-amber-400: #fcbb00;
  --tw-color-amber-500: #f99c00;
  --tw-color-amber-600: #dd7400;
  --tw-color-amber-700: #b75000;
  --tw-color-amber-800: #953d00;
  --tw-color-amber-900: #7b3306;
  --tw-color-yellow-100: #fef9c2;
  --tw-color-yellow-950: #432004;
  --tw-color-green-100: #dcfce7;
  --tw-color-green-200: #b9f8cf;
  --tw-color-green-500: #00c758;
  --tw-color-green-800: #016630;
  --tw-color-emerald-100: #d0fae5;
  --tw-color-emerald-300: #5ee9b5;
  --tw-color-emerald-400: #00d294;
  --tw-color-emerald-500: #00bb7f;
  --tw-color-emerald-600: #009767;
  --tw-color-emerald-700: #007956;
  --tw-color-blue-100: #dbeafe;
  --tw-color-blue-400: #54a2ff;
  --tw-color-blue-700: #1447e6;
  --tw-color-purple-100: #f3e8ff;
  --tw-color-purple-400: #c07eff;
  --tw-color-purple-700: #8200da;
  --tw-color-rose-100: #ffe4e6;
  --tw-color-rose-400: #ff667f;
  --tw-color-rose-700: #c20039;
  --tw-color-black: #000;
  --tw-color-white: #fff;
  --tw-spacing: .25rem;
  --tw-container-xs: 20rem;
  --tw-container-sm: 24rem;
  --tw-container-md: 28rem;
  --tw-container-lg: 32rem;
  --tw-container-xl: 36rem;
  --tw-container-2xl: 42rem;
  --tw-container-3xl: 48rem;
  --tw-container-4xl: 56rem;
  --tw-container-5xl: 64rem;
  --tw-container-6xl: 72rem;
  --tw-container-7xl: 80rem;
  --tw-text-xs: .75rem;
  --tw-text-xs--line-height: calc(1 / .75);
  --tw-text-sm: .875rem;
  --tw-text-sm--line-height: calc(1.25 / .875);
  --tw-text-base: 1rem;
  --tw-text-base--line-height: calc(1.5 / 1);
  --tw-text-lg: 1.125rem;
  --tw-text-lg--line-height: calc(1.75 / 1.125);
  --tw-text-xl: 1.25rem;
  --tw-text-xl--line-height: calc(1.75 / 1.25);
  --tw-text-2xl: 1.5rem;
  --tw-text-2xl--line-height: calc(2 / 1.5);
  --tw-text-3xl: 1.875rem;
  --tw-text-3xl--line-height: calc(2.25 / 1.875);
  --tw-font-weight-normal: 400;
  --tw-font-weight-medium: 500;
  --tw-font-weight-semibold: 600;
  --tw-font-weight-bold: 700;
  --tw-font-weight-extrabold: 800;
  --tw-font-weight-black: 900;
  --tw-tracking-tight: -.025em;
  --tw-tracking-wide: .025em;
  --tw-tracking-wider: .05em;
  --tw-tracking-widest: .1em;
  --tw-leading-tight: 1.25;
  --tw-leading-snug: 1.375;
  --tw-leading-relaxed: 1.625;
  --tw-radius-sm: .25rem;
  --tw-radius-md: .375rem;
  --tw-radius-lg: .5rem;
  --tw-radius-xl: .75rem;
  --tw-radius-2xl: 1rem;
  --tw-radius-3xl: 1.5rem;
  --tw-animate-spin: spin 1s linear infinite;
  --tw-animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
  --tw-blur-sm: 8px;
  --tw-blur-xl: 24px;
  --tw-blur-3xl: 64px;
  --tw-default-transition-duration: .15s;
  --tw-default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  --tw-color-scholar-primary: #005ab5;
  --tw-color-scholar-primary-soft: #dbe8ff;
  --tw-color-scholar-dark: #131313;
  --tw-color-scholar-paper: #f9f9ff;
  --tw-color-scholar-ink: #191c21;
  --tw-color-scholar-mist: #e8edf5;
  --tw-color-scholar-line: #d7deea;
}

@supports (color: lab(0% 0 0)) {
  :root, :host {
    --tw-color-red-50: lab(96.5005% 4.18508 1.52328);
    --tw-color-red-100: lab(92.243% 10.2865 3.83865);
    --tw-color-red-200: lab(86.017% 19.8815 7.75869);
    --tw-color-red-300: lab(76.5514% 36.422 15.5335);
    --tw-color-red-400: lab(63.7053% 60.745 31.3109);
    --tw-color-red-500: lab(55.4814% 75.0732 48.8528);
    --tw-color-red-600: lab(48.4493% 77.4328 61.5452);
    --tw-color-red-700: lab(40.4273% 67.2623 53.7441);
    --tw-color-red-800: lab(33.7174% 55.8993 41.0293);
    --tw-color-red-900: lab(28.5139% 44.5539 29.0463);
    --tw-color-amber-50: lab(98.6252% -.635922 8.42309);
    --tw-color-amber-100: lab(95.916% -1.21653 23.111);
    --tw-color-amber-200: lab(91.7203% -.505269 49.9084);
    --tw-color-amber-300: lab(86.4156% 6.13147 78.3961);
    --tw-color-amber-400: lab(80.1641% 16.6016 99.2089);
    --tw-color-amber-500: lab(72.7183% 31.8672 97.9407);
    --tw-color-amber-600: lab(60.3514% 40.5624 87.1228);
    --tw-color-amber-700: lab(47.2709% 42.9082 69.2966);
    --tw-color-amber-800: lab(37.8822% 37.1699 52.2718);
    --tw-color-amber-900: lab(31.2288% 30.2627 40.0378);
    --tw-color-yellow-100: lab(97.3564% -4.51407 27.344);
    --tw-color-yellow-950: lab(16.8146% 15.7422 23.1133);
    --tw-color-green-100: lab(96.1861% -13.8464 6.52365);
    --tw-color-green-200: lab(92.4222% -26.4702 12.9427);
    --tw-color-green-500: lab(70.5521% -66.5147 45.8073);
    --tw-color-green-800: lab(37.4616% -36.7971 22.9692);
    --tw-color-emerald-100: lab(94.9004% -17.0769 5.63836);
    --tw-color-emerald-300: lab(83.9203% -48.7124 13.8849);
    --tw-color-emerald-400: lab(75.0771% -60.7313 19.4147);
    --tw-color-emerald-500: lab(66.9756% -58.27 19.5419);
    --tw-color-emerald-600: lab(55.0481% -49.9246 15.93);
    --tw-color-emerald-700: lab(44.4871% -41.0396 11.0361);
    --tw-color-blue-100: lab(92.0301% -2.24757 -11.6453);
    --tw-color-blue-400: lab(65.0361% -1.42065 -56.9802);
    --tw-color-blue-700: lab(36.9089% 35.0961 -85.6872);
    --tw-color-purple-100: lab(93.3333% 6.97437 -9.83434);
    --tw-color-purple-400: lab(63.6946% 47.6127 -59.2066);
    --tw-color-purple-700: lab(36.1758% 69.8525 -80.0381);
    --tw-color-rose-100: lab(92.8221% 9.86832 2.60075);
    --tw-color-rose-400: lab(64.4125% 63.0291 19.2068);
    --tw-color-rose-700: lab(41.1651% 71.6251 30.3087);
  }
}

.scholar-gradient {
  background: linear-gradient(135deg, #005ab5 0%, #3174d0 100%);
}

.dark-scholar-gradient {
  background: linear-gradient(135deg, #630ed4 0%, #7c3aed 100%);
}

.parchment-shadow {
  box-shadow: 0 12px 40px -4px #191c1d0f;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: none;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #c2c6d4;
  border-radius: 999px;
}

.tw\:pointer-events-none {
  pointer-events: none;
}

.tw\:invisible {
  visibility: hidden;
}

.tw\:visible {
  visibility: visible;
}

.tw\:sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.tw\:absolute {
  position: absolute;
}

.tw\:fixed {
  position: fixed;
}

.tw\:relative {
  position: relative;
}

.tw\:inset-0 {
  inset: calc(var(--tw-spacing) * 0);
}

.tw\:inset-x-1 {
  inset-inline: calc(var(--tw-spacing) * 1);
}

.tw\:inset-y-0 {
  inset-block: calc(var(--tw-spacing) * 0);
}

.tw\:inset-y-2 {
  inset-block: calc(var(--tw-spacing) * 2);
}

.tw\:-top-1\.5 {
  top: calc(var(--tw-spacing) * -1.5);
}

.tw\:-top-8 {
  top: calc(var(--tw-spacing) * -8);
}

.tw\:top-0 {
  top: calc(var(--tw-spacing) * 0);
}

.tw\:top-1 {
  top: calc(var(--tw-spacing) * 1);
}

.tw\:top-1\.5 {
  top: calc(var(--tw-spacing) * 1.5);
}

.tw\:top-1\/2 {
  top: 50%;
}

.tw\:top-3 {
  top: calc(var(--tw-spacing) * 3);
}

.tw\:top-4 {
  top: calc(var(--tw-spacing) * 4);
}

.tw\:top-full {
  top: 100%;
}

.tw\:-right-1 {
  right: calc(var(--tw-spacing) * -1);
}

.tw\:-right-1\.5 {
  right: calc(var(--tw-spacing) * -1.5);
}

.tw\:-right-8 {
  right: calc(var(--tw-spacing) * -8);
}

.tw\:right-0 {
  right: calc(var(--tw-spacing) * 0);
}

.tw\:right-1 {
  right: calc(var(--tw-spacing) * 1);
}

.tw\:right-1\.5 {
  right: calc(var(--tw-spacing) * 1.5);
}

.tw\:right-3 {
  right: calc(var(--tw-spacing) * 3);
}

.tw\:right-4 {
  right: calc(var(--tw-spacing) * 4);
}

.tw\:right-8 {
  right: calc(var(--tw-spacing) * 8);
}

.tw\:bottom-0 {
  bottom: calc(var(--tw-spacing) * 0);
}

.tw\:bottom-1 {
  bottom: calc(var(--tw-spacing) * 1);
}

.tw\:bottom-5 {
  bottom: calc(var(--tw-spacing) * 5);
}

.tw\:bottom-8 {
  bottom: calc(var(--tw-spacing) * 8);
}

.tw\:bottom-full {
  bottom: 100%;
}

.tw\:left-0 {
  left: calc(var(--tw-spacing) * 0);
}

.tw\:left-1 {
  left: calc(var(--tw-spacing) * 1);
}

.tw\:left-1\/2 {
  left: 50%;
}

.tw\:left-3 {
  left: calc(var(--tw-spacing) * 3);
}

.tw\:left-4 {
  left: calc(var(--tw-spacing) * 4);
}

.tw\:z-10 {
  z-index: 10;
}

.tw\:z-20 {
  z-index: 20;
}

.tw\:z-30 {
  z-index: 30;
}

.tw\:z-40 {
  z-index: 40;
}

.tw\:z-50 {
  z-index: 50;
}

.tw\:z-\[110\] {
  z-index: 110;
}

.tw\:col-span-2 {
  grid-column: span 2 / span 2;
}

.tw\:-m-2 {
  margin: calc(var(--tw-spacing) * -2);
}

.tw\:m-0 {
  margin: calc(var(--tw-spacing) * 0);
}

.tw\:mx-auto {
  margin-inline: auto;
}

.tw\:my-1 {
  margin-block: calc(var(--tw-spacing) * 1);
}

.tw\:my-2 {
  margin-block: calc(var(--tw-spacing) * 2);
}

.tw\:my-3 {
  margin-block: calc(var(--tw-spacing) * 3);
}

.tw\:my-4 {
  margin-block: calc(var(--tw-spacing) * 4);
}

.tw\:mt-0\.5 {
  margin-top: calc(var(--tw-spacing) * .5);
}

.tw\:mt-1 {
  margin-top: calc(var(--tw-spacing) * 1);
}

.tw\:mt-1\.5 {
  margin-top: calc(var(--tw-spacing) * 1.5);
}

.tw\:mt-2 {
  margin-top: calc(var(--tw-spacing) * 2);
}

.tw\:mt-3 {
  margin-top: calc(var(--tw-spacing) * 3);
}

.tw\:mt-4 {
  margin-top: calc(var(--tw-spacing) * 4);
}

.tw\:mt-5 {
  margin-top: calc(var(--tw-spacing) * 5);
}

.tw\:mt-6 {
  margin-top: calc(var(--tw-spacing) * 6);
}

.tw\:mt-7 {
  margin-top: calc(var(--tw-spacing) * 7);
}

.tw\:mt-8 {
  margin-top: calc(var(--tw-spacing) * 8);
}

.tw\:mt-auto {
  margin-top: auto;
}

.tw\:mb-0\.5 {
  margin-bottom: calc(var(--tw-spacing) * .5);
}

.tw\:mb-1 {
  margin-bottom: calc(var(--tw-spacing) * 1);
}

.tw\:mb-1\.5 {
  margin-bottom: calc(var(--tw-spacing) * 1.5);
}

.tw\:mb-2 {
  margin-bottom: calc(var(--tw-spacing) * 2);
}

.tw\:mb-2\.5 {
  margin-bottom: calc(var(--tw-spacing) * 2.5);
}

.tw\:mb-3 {
  margin-bottom: calc(var(--tw-spacing) * 3);
}

.tw\:mb-4 {
  margin-bottom: calc(var(--tw-spacing) * 4);
}

.tw\:mb-5 {
  margin-bottom: calc(var(--tw-spacing) * 5);
}

.tw\:mb-6 {
  margin-bottom: calc(var(--tw-spacing) * 6);
}

.tw\:mb-8 {
  margin-bottom: calc(var(--tw-spacing) * 8);
}

.tw\:mb-\[calc\(var\(--app-shell-gap\)\*1\.45\)\] {
  margin-bottom: calc(var(--app-shell-gap) * 1.45);
}

.tw\:-ml-1\.5 {
  margin-left: calc(var(--tw-spacing) * -1.5);
}

.tw\:ml-0\.5 {
  margin-left: calc(var(--tw-spacing) * .5);
}

.tw\:ml-2 {
  margin-left: calc(var(--tw-spacing) * 2);
}

.tw\:ml-4 {
  margin-left: calc(var(--tw-spacing) * 4);
}

.tw\:ml-auto {
  margin-left: auto;
}

.tw\:line-clamp-1 {
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.tw\:line-clamp-2 {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.tw\:block {
  display: block;
}

.tw\:contents {
  display: contents;
}

.tw\:flex {
  display: flex;
}

.tw\:grid {
  display: grid;
}

.tw\:hidden {
  display: none;
}

.tw\:inline-block {
  display: inline-block;
}

.tw\:inline-flex {
  display: inline-flex;
}

.tw\:aspect-\[3\/4\] {
  aspect-ratio: 3 / 4;
}

.tw\:h-0\.5 {
  height: calc(var(--tw-spacing) * .5);
}

.tw\:h-1 {
  height: calc(var(--tw-spacing) * 1);
}

.tw\:h-1\.5 {
  height: calc(var(--tw-spacing) * 1.5);
}

.tw\:h-2 {
  height: calc(var(--tw-spacing) * 2);
}

.tw\:h-2\.5 {
  height: calc(var(--tw-spacing) * 2.5);
}

.tw\:h-3 {
  height: calc(var(--tw-spacing) * 3);
}

.tw\:h-3\.5 {
  height: calc(var(--tw-spacing) * 3.5);
}

.tw\:h-4 {
  height: calc(var(--tw-spacing) * 4);
}

.tw\:h-5 {
  height: calc(var(--tw-spacing) * 5);
}

.tw\:h-6 {
  height: calc(var(--tw-spacing) * 6);
}

.tw\:h-7 {
  height: calc(var(--tw-spacing) * 7);
}

.tw\:h-8 {
  height: calc(var(--tw-spacing) * 8);
}

.tw\:h-9 {
  height: calc(var(--tw-spacing) * 9);
}

.tw\:h-10 {
  height: calc(var(--tw-spacing) * 10);
}

.tw\:h-11 {
  height: calc(var(--tw-spacing) * 11);
}

.tw\:h-12 {
  height: calc(var(--tw-spacing) * 12);
}

.tw\:h-14 {
  height: calc(var(--tw-spacing) * 14);
}

.tw\:h-20 {
  height: calc(var(--tw-spacing) * 20);
}

.tw\:h-32 {
  height: calc(var(--tw-spacing) * 32);
}

.tw\:h-40 {
  height: calc(var(--tw-spacing) * 40);
}

.tw\:h-\[15px\] {
  height: 15px;
}

.tw\:h-\[94vh\] {
  height: 94vh;
}

.tw\:h-\[var\(--app-shell-control-size\)\] {
  height: var(--app-shell-control-size);
}

.tw\:h-\[var\(--app-shell-icon-size\)\] {
  height: var(--app-shell-icon-size);
}

.tw\:h-\[var\(--app-shell-logo-size\)\] {
  height: var(--app-shell-logo-size);
}

.tw\:h-auto {
  height: auto;
}

.tw\:h-dvh {
  height: 100dvh;
}

.tw\:h-full {
  height: 100%;
}

.tw\:h-px {
  height: 1px;
}

.tw\:max-h-32 {
  max-height: calc(var(--tw-spacing) * 32);
}

.tw\:max-h-40 {
  max-height: calc(var(--tw-spacing) * 40);
}

.tw\:max-h-56 {
  max-height: calc(var(--tw-spacing) * 56);
}

.tw\:max-h-72 {
  max-height: calc(var(--tw-spacing) * 72);
}

.tw\:max-h-96 {
  max-height: calc(var(--tw-spacing) * 96);
}

.tw\:max-h-\[80vh\] {
  max-height: 80vh;
}

.tw\:max-h-\[88\%\] {
  max-height: 88%;
}

.tw\:max-h-\[calc\(100dvh-4rem\)\] {
  max-height: calc(100dvh - 4rem);
}

.tw\:max-h-\[min\(42rem\,calc\(100dvh-3rem\)\)\] {
  max-height: min(42rem, 100dvh - 3rem);
}

.tw\:max-h-\[min\(760px\,calc\(100vh-2rem\)\)\] {
  max-height: min(760px, 100vh - 2rem);
}

.tw\:min-h-0 {
  min-height: calc(var(--tw-spacing) * 0);
}

.tw\:min-h-5 {
  min-height: calc(var(--tw-spacing) * 5);
}

.tw\:min-h-7 {
  min-height: calc(var(--tw-spacing) * 7);
}

.tw\:min-h-8 {
  min-height: calc(var(--tw-spacing) * 8);
}

.tw\:min-h-9 {
  min-height: calc(var(--tw-spacing) * 9);
}

.tw\:min-h-10 {
  min-height: calc(var(--tw-spacing) * 10);
}

.tw\:min-h-11 {
  min-height: calc(var(--tw-spacing) * 11);
}

.tw\:min-h-12 {
  min-height: calc(var(--tw-spacing) * 12);
}

.tw\:min-h-40 {
  min-height: calc(var(--tw-spacing) * 40);
}

.tw\:min-h-\[1\.5rem\] {
  min-height: 1.5rem;
}

.tw\:min-h-\[30rem\] {
  min-height: 30rem;
}

.tw\:min-h-\[34rem\] {
  min-height: 34rem;
}

.tw\:min-h-dvh {
  min-height: 100dvh;
}

.tw\:min-h-full {
  min-height: 100%;
}

.tw\:w-0\.5 {
  width: calc(var(--tw-spacing) * .5);
}

.tw\:w-1 {
  width: calc(var(--tw-spacing) * 1);
}

.tw\:w-1\.5 {
  width: calc(var(--tw-spacing) * 1.5);
}

.tw\:w-1\/2 {
  width: 50%;
}

.tw\:w-1\/3 {
  width: 33.3333%;
}

.tw\:w-2 {
  width: calc(var(--tw-spacing) * 2);
}

.tw\:w-2\.5 {
  width: calc(var(--tw-spacing) * 2.5);
}

.tw\:w-3 {
  width: calc(var(--tw-spacing) * 3);
}

.tw\:w-3\.5 {
  width: calc(var(--tw-spacing) * 3.5);
}

.tw\:w-3\/4 {
  width: 75%;
}

.tw\:w-4 {
  width: calc(var(--tw-spacing) * 4);
}

.tw\:w-4\/5 {
  width: 80%;
}

.tw\:w-5 {
  width: calc(var(--tw-spacing) * 5);
}

.tw\:w-6 {
  width: calc(var(--tw-spacing) * 6);
}

.tw\:w-7 {
  width: calc(var(--tw-spacing) * 7);
}

.tw\:w-8 {
  width: calc(var(--tw-spacing) * 8);
}

.tw\:w-9 {
  width: calc(var(--tw-spacing) * 9);
}

.tw\:w-10 {
  width: calc(var(--tw-spacing) * 10);
}

.tw\:w-11 {
  width: calc(var(--tw-spacing) * 11);
}

.tw\:w-14 {
  width: calc(var(--tw-spacing) * 14);
}

.tw\:w-20 {
  width: calc(var(--tw-spacing) * 20);
}

.tw\:w-28 {
  width: calc(var(--tw-spacing) * 28);
}

.tw\:w-32 {
  width: calc(var(--tw-spacing) * 32);
}

.tw\:w-36 {
  width: calc(var(--tw-spacing) * 36);
}

.tw\:w-44 {
  width: calc(var(--tw-spacing) * 44);
}

.tw\:w-48 {
  width: calc(var(--tw-spacing) * 48);
}

.tw\:w-52 {
  width: calc(var(--tw-spacing) * 52);
}

.tw\:w-56 {
  width: calc(var(--tw-spacing) * 56);
}

.tw\:w-64 {
  width: calc(var(--tw-spacing) * 64);
}

.tw\:w-72 {
  width: calc(var(--tw-spacing) * 72);
}

.tw\:w-80 {
  width: calc(var(--tw-spacing) * 80);
}

.tw\:w-\[15px\] {
  width: 15px;
}

.tw\:w-\[97vw\] {
  width: 97vw;
}

.tw\:w-\[124px\] {
  width: 124px;
}

.tw\:w-\[min\(34rem\,calc\(100vw-2rem\)\)\] {
  width: min(34rem, 100vw - 2rem);
}

.tw\:w-\[var\(--app-shell-control-size\)\] {
  width: var(--app-shell-control-size);
}

.tw\:w-\[var\(--app-shell-icon-size\)\] {
  width: var(--app-shell-icon-size);
}

.tw\:w-\[var\(--app-shell-logo-size\)\] {
  width: var(--app-shell-logo-size);
}

.tw\:w-\[var\(--app-shell-rail-width\)\] {
  width: var(--app-shell-rail-width);
}

.tw\:w-fit {
  width: fit-content;
}

.tw\:w-full {
  width: 100%;
}

.tw\:w-px {
  width: 1px;
}

.tw\:max-w-2xl {
  max-width: var(--tw-container-2xl);
}

.tw\:max-w-3xl {
  max-width: var(--tw-container-3xl);
}

.tw\:max-w-4xl {
  max-width: var(--tw-container-4xl);
}

.tw\:max-w-5xl {
  max-width: var(--tw-container-5xl);
}

.tw\:max-w-6xl {
  max-width: var(--tw-container-6xl);
}

.tw\:max-w-7xl {
  max-width: var(--tw-container-7xl);
}

.tw\:max-w-24 {
  max-width: calc(var(--tw-spacing) * 24);
}

.tw\:max-w-52 {
  max-width: calc(var(--tw-spacing) * 52);
}

.tw\:max-w-\[12rem\] {
  max-width: 12rem;
}

.tw\:max-w-\[80vw\] {
  max-width: 80vw;
}

.tw\:max-w-\[86\%\] {
  max-width: 86%;
}

.tw\:max-w-\[88\%\] {
  max-width: 88%;
}

.tw\:max-w-\[96\%\] {
  max-width: 96%;
}

.tw\:max-w-\[1600px\] {
  max-width: 1600px;
}

.tw\:max-w-full {
  max-width: 100%;
}

.tw\:max-w-lg {
  max-width: var(--tw-container-lg);
}

.tw\:max-w-md {
  max-width: var(--tw-container-md);
}

.tw\:max-w-sm {
  max-width: var(--tw-container-sm);
}

.tw\:max-w-xl {
  max-width: var(--tw-container-xl);
}

.tw\:max-w-xs {
  max-width: var(--tw-container-xs);
}

.tw\:min-w-0 {
  min-width: calc(var(--tw-spacing) * 0);
}

.tw\:min-w-10 {
  min-width: calc(var(--tw-spacing) * 10);
}

.tw\:min-w-11 {
  min-width: calc(var(--tw-spacing) * 11);
}

.tw\:min-w-36 {
  min-width: calc(var(--tw-spacing) * 36);
}

.tw\:min-w-40 {
  min-width: calc(var(--tw-spacing) * 40);
}

.tw\:min-w-56 {
  min-width: calc(var(--tw-spacing) * 56);
}

.tw\:min-w-72 {
  min-width: calc(var(--tw-spacing) * 72);
}

.tw\:min-w-\[9\.5rem\] {
  min-width: 9.5rem;
}

.tw\:min-w-\[1060px\] {
  min-width: 1060px;
}

.tw\:min-w-max {
  min-width: max-content;
}

.tw\:flex-1 {
  flex: 1;
}

.tw\:flex-\[1_1_7rem\] {
  flex: 7rem;
}

.tw\:flex-shrink {
  flex-shrink: 1;
}

.tw\:flex-shrink-0, .tw\:shrink-0 {
  flex-shrink: 0;
}

.tw\:flex-grow {
  flex-grow: 1;
}

.tw\:basis-48 {
  flex-basis: calc(var(--tw-spacing) * 48);
}

.tw\:basis-56 {
  flex-basis: calc(var(--tw-spacing) * 56);
}

.tw\:table-fixed {
  table-layout: fixed;
}

.tw\:border-collapse {
  border-collapse: collapse;
}

.tw\:-translate-x-1\/2 {
  --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
  translate: var(--tw-translate-x) var(--tw-translate-y);
}

.tw\:translate-x-px {
  --tw-translate-x: 1px;
  translate: var(--tw-translate-x) var(--tw-translate-y);
}

.tw\:-translate-y-1\/2 {
  --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
  translate: var(--tw-translate-x) var(--tw-translate-y);
}

.tw\:scale-\[1\.4\] {
  scale: 1.4;
}

.tw\:scale-\[1\.24\] {
  scale: 1.24;
}

.tw\:rotate-180 {
  rotate: 180deg;
}

.tw\:transform-gpu {
  transform: translateZ(0) var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
}

.tw\:animate-pulse {
  animation: var(--tw-animate-pulse);
}

.tw\:animate-spin {
  animation: var(--tw-animate-spin);
}

.tw\:cursor-col-resize {
  cursor: col-resize;
}

.tw\:cursor-ew-resize {
  cursor: ew-resize;
}

.tw\:cursor-grab {
  cursor: grab;
}

.tw\:cursor-not-allowed {
  cursor: not-allowed;
}

.tw\:cursor-pointer {
  cursor: pointer;
}

.tw\:touch-none {
  touch-action: none;
}

.tw\:resize-none {
  resize: none;
}

.tw\:list-decimal {
  list-style-type: decimal;
}

.tw\:list-disc {
  list-style-type: disc;
}

.tw\:list-none {
  list-style-type: none;
}

.tw\:grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.tw\:grid-cols-\[repeat\(auto-fit\,minmax\(min\(100\%\,13rem\)\,1fr\)\)\] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.tw\:flex-col {
  flex-direction: column;
}

.tw\:flex-nowrap {
  flex-wrap: nowrap;
}

.tw\:flex-wrap {
  flex-wrap: wrap;
}

.tw\:content-start {
  align-content: flex-start;
}

.tw\:items-baseline {
  align-items: baseline;
}

.tw\:items-center {
  align-items: center;
}

.tw\:items-end {
  align-items: flex-end;
}

.tw\:items-start {
  align-items: flex-start;
}

.tw\:justify-between {
  justify-content: space-between;
}

.tw\:justify-center {
  justify-content: center;
}

.tw\:justify-end {
  justify-content: flex-end;
}

.tw\:gap-0\.5 {
  gap: calc(var(--tw-spacing) * .5);
}

.tw\:gap-1 {
  gap: calc(var(--tw-spacing) * 1);
}

.tw\:gap-1\.5 {
  gap: calc(var(--tw-spacing) * 1.5);
}

.tw\:gap-2 {
  gap: calc(var(--tw-spacing) * 2);
}

.tw\:gap-2\.5 {
  gap: calc(var(--tw-spacing) * 2.5);
}

.tw\:gap-3 {
  gap: calc(var(--tw-spacing) * 3);
}

.tw\:gap-3\.5 {
  gap: calc(var(--tw-spacing) * 3.5);
}

.tw\:gap-4 {
  gap: calc(var(--tw-spacing) * 4);
}

.tw\:gap-5 {
  gap: calc(var(--tw-spacing) * 5);
}

.tw\:gap-8 {
  gap: calc(var(--tw-spacing) * 8);
}

.tw\:gap-\[2px\] {
  gap: 2px;
}

.tw\:gap-\[var\(--app-shell-bottom-gap\)\] {
  gap: var(--app-shell-bottom-gap);
}

.tw\:gap-\[var\(--app-shell-gap\)\] {
  gap: var(--app-shell-gap);
}

.tw\:gap-\[var\(--app-shell-top-gap\)\] {
  gap: var(--app-shell-top-gap);
}

:where(.tw\:space-y-0\.5 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * .5) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * .5) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-1 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 1) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-1\.5 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 1.5) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-2 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 2) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-3 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 3) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-4 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 4) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-5 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 5) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 5) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-6 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 6) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
}

:where(.tw\:space-y-8 > :not(:last-child)) {
  --tw-space-y-reverse: 0;
  margin-block-start: calc(calc(var(--tw-spacing) * 8) * var(--tw-space-y-reverse));
  margin-block-end: calc(calc(var(--tw-spacing) * 8) * calc(1 - var(--tw-space-y-reverse)));
}

.tw\:gap-x-2 {
  column-gap: calc(var(--tw-spacing) * 2);
}

.tw\:gap-x-3 {
  column-gap: calc(var(--tw-spacing) * 3);
}

.tw\:gap-y-1 {
  row-gap: calc(var(--tw-spacing) * 1);
}

.tw\:gap-y-2 {
  row-gap: calc(var(--tw-spacing) * 2);
}

.tw\:self-center {
  align-self: center;
}

.tw\:self-end {
  align-self: flex-end;
}

.tw\:self-start {
  align-self: flex-start;
}

.tw\:truncate {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.tw\:overflow-hidden {
  overflow: hidden;
}

.tw\:overflow-x-auto {
  overflow-x: auto;
}

.tw\:overflow-x-hidden {
  overflow-x: hidden;
}

.tw\:overflow-y-auto {
  overflow-y: auto;
}

.tw\:rounded {
  border-radius: .25rem;
}

.tw\:rounded-2xl {
  border-radius: var(--tw-radius-2xl);
}

.tw\:rounded-3xl {
  border-radius: var(--tw-radius-3xl);
}

.tw\:rounded-\[0\.9rem\] {
  border-radius: .9rem;
}

.tw\:rounded-\[0\.95rem\] {
  border-radius: .95rem;
}

.tw\:rounded-\[1\.2rem\] {
  border-radius: 1.2rem;
}

.tw\:rounded-\[1\.5rem\] {
  border-radius: 1.5rem;
}

.tw\:rounded-\[1\.6rem\] {
  border-radius: 1.6rem;
}

.tw\:rounded-\[1\.25rem\] {
  border-radius: 1.25rem;
}

.tw\:rounded-\[1\.75rem\] {
  border-radius: 1.75rem;
}

.tw\:rounded-\[1rem\] {
  border-radius: 1rem;
}

.tw\:rounded-\[2rem\] {
  border-radius: 2rem;
}

.tw\:rounded-\[3px\] {
  border-radius: 3px;
}

.tw\:rounded-full {
  border-radius: 3.40282e38px;
}

.tw\:rounded-lg {
  border-radius: var(--tw-radius-lg);
}

.tw\:rounded-md {
  border-radius: var(--tw-radius-md);
}

.tw\:rounded-none {
  border-radius: 0;
}

.tw\:rounded-sm {
  border-radius: var(--tw-radius-sm);
}

.tw\:rounded-xl {
  border-radius: var(--tw-radius-xl);
}

.tw\:rounded-l-lg {
  border-top-left-radius: var(--tw-radius-lg);
  border-bottom-left-radius: var(--tw-radius-lg);
}

.tw\:rounded-r-lg {
  border-top-right-radius: var(--tw-radius-lg);
  border-bottom-right-radius: var(--tw-radius-lg);
}

.tw\:border {
  border-style: var(--tw-border-style);
  border-width: 1px;
}

.tw\:border-0 {
  border-style: var(--tw-border-style);
  border-width: 0;
}

.tw\:border-2 {
  border-style: var(--tw-border-style);
  border-width: 2px;
}

.tw\:border-x {
  border-inline-style: var(--tw-border-style);
  border-inline-width: 1px;
}

.tw\:border-y-\[3px\] {
  border-block-style: var(--tw-border-style);
  border-block-width: 3px;
}

.tw\:border-t {
  border-top-style: var(--tw-border-style);
  border-top-width: 1px;
}

.tw\:border-r {
  border-right-style: var(--tw-border-style);
  border-right-width: 1px;
}

.tw\:border-b {
  border-bottom-style: var(--tw-border-style);
  border-bottom-width: 1px;
}

.tw\:border-l-4 {
  border-left-style: var(--tw-border-style);
  border-left-width: 4px;
}

.tw\:border-dashed {
  --tw-border-style: dashed;
  border-style: dashed;
}

.tw\:border-\[var\(--line\)\] {
  border-color: var(--line);
}

.tw\:border-amber-200 {
  border-color: var(--tw-color-amber-200);
}

.tw\:border-amber-300\/60 {
  border-color: var(--tw-color-amber-300);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-amber-300\/60 {
    border-color: color-mix(in oklab, var(--tw-color-amber-300) 60%, transparent);
  }
}

.tw\:border-amber-400\/25 {
  border-color: var(--tw-color-amber-400);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-amber-400\/25 {
    border-color: color-mix(in oklab, var(--tw-color-amber-400) 25%, transparent);
  }
}

.tw\:border-amber-500\/20 {
  border-color: var(--tw-color-amber-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-amber-500\/20 {
    border-color: color-mix(in oklab, var(--tw-color-amber-500) 20%, transparent);
  }
}

.tw\:border-amber-500\/25 {
  border-color: var(--tw-color-amber-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-amber-500\/25 {
    border-color: color-mix(in oklab, var(--tw-color-amber-500) 25%, transparent);
  }
}

.tw\:border-amber-500\/30 {
  border-color: var(--tw-color-amber-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-amber-500\/30 {
    border-color: color-mix(in oklab, var(--tw-color-amber-500) 30%, transparent);
  }
}

.tw\:border-amber-700\/30 {
  border-color: var(--tw-color-amber-700);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-amber-700\/30 {
    border-color: color-mix(in oklab, var(--tw-color-amber-700) 30%, transparent);
  }
}

.tw\:border-black\/5 {
  border-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-black\/5 {
    border-color: color-mix(in oklab, var(--tw-color-black) 5%, transparent);
  }
}

.tw\:border-black\/6 {
  border-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-black\/6 {
    border-color: color-mix(in oklab, var(--tw-color-black) 6%, transparent);
  }
}

.tw\:border-black\/7 {
  border-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-black\/7 {
    border-color: color-mix(in oklab, var(--tw-color-black) 7%, transparent);
  }
}

.tw\:border-black\/8 {
  border-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-black\/8 {
    border-color: color-mix(in oklab, var(--tw-color-black) 8%, transparent);
  }
}

.tw\:border-black\/10 {
  border-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-black\/10 {
    border-color: color-mix(in oklab, var(--tw-color-black) 10%, transparent);
  }
}

.tw\:border-black\/15 {
  border-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-black\/15 {
    border-color: color-mix(in oklab, var(--tw-color-black) 15%, transparent);
  }
}

.tw\:border-current\/10 {
  border-color: currentColor;
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-current\/10 {
    border-color: color-mix(in oklab, currentcolor 10%, transparent);
  }
}

.tw\:border-red-200 {
  border-color: var(--tw-color-red-200);
}

.tw\:border-red-400\/25 {
  border-color: var(--tw-color-red-400);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-red-400\/25 {
    border-color: color-mix(in oklab, var(--tw-color-red-400) 25%, transparent);
  }
}

.tw\:border-red-500\/20 {
  border-color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-red-500\/20 {
    border-color: color-mix(in oklab, var(--tw-color-red-500) 20%, transparent);
  }
}

.tw\:border-red-500\/25 {
  border-color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-red-500\/25 {
    border-color: color-mix(in oklab, var(--tw-color-red-500) 25%, transparent);
  }
}

.tw\:border-red-500\/30 {
  border-color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-red-500\/30 {
    border-color: color-mix(in oklab, var(--tw-color-red-500) 30%, transparent);
  }
}

.tw\:border-scholar-ink {
  border-color: var(--tw-color-scholar-ink);
}

.tw\:border-scholar-line {
  border-color: var(--tw-color-scholar-line);
}

.tw\:border-scholar-primary {
  border-color: var(--tw-color-scholar-primary);
}

.tw\:border-scholar-primary\/20 {
  border-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-scholar-primary\/20 {
    border-color: color-mix(in oklab, var(--tw-color-scholar-primary) 20%, transparent);
  }
}

.tw\:border-scholar-primary\/25 {
  border-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-scholar-primary\/25 {
    border-color: color-mix(in oklab, var(--tw-color-scholar-primary) 25%, transparent);
  }
}

.tw\:border-scholar-primary\/40 {
  border-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-scholar-primary\/40 {
    border-color: color-mix(in oklab, var(--tw-color-scholar-primary) 40%, transparent);
  }
}

.tw\:border-scholar-primary\/50 {
  border-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-scholar-primary\/50 {
    border-color: color-mix(in oklab, var(--tw-color-scholar-primary) 50%, transparent);
  }
}

.tw\:border-transparent {
  border-color: #0000;
}

.tw\:border-white {
  border-color: var(--tw-color-white);
}

.tw\:border-white\/8 {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-white\/8 {
    border-color: color-mix(in oklab, var(--tw-color-white) 8%, transparent);
  }
}

.tw\:border-white\/10 {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-white\/10 {
    border-color: color-mix(in oklab, var(--tw-color-white) 10%, transparent);
  }
}

.tw\:border-white\/12 {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-white\/12 {
    border-color: color-mix(in oklab, var(--tw-color-white) 12%, transparent);
  }
}

.tw\:border-white\/15 {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-white\/15 {
    border-color: color-mix(in oklab, var(--tw-color-white) 15%, transparent);
  }
}

.tw\:border-white\/20 {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:border-white\/20 {
    border-color: color-mix(in oklab, var(--tw-color-white) 20%, transparent);
  }
}

.tw\:bg-\[\#0b70d1\]\/20 {
  background-color: #0b70d133;
  background-color: lab(46.3855% 3.00965 -58.3567 / .2);
}

.tw\:bg-\[\#1c1c1c\] {
  background-color: #1c1c1c;
}

.tw\:bg-\[\#131313\] {
  background-color: #131313;
}

.tw\:bg-\[\#161616\] {
  background-color: #161616;
}

.tw\:bg-\[\#282828\] {
  background-color: #282828;
}

.tw\:bg-\[\#f7f8fc\] {
  background-color: #f7f8fc;
}

.tw\:bg-\[var\(--app-shell-rail-border\,rgba\(0\,0\,0\,0\.1\)\)\] {
  background-color: var(--app-shell-rail-border, #0000001a);
}

.tw\:bg-\[var\(--bg\)\] {
  background-color: var(--bg);
}

.tw\:bg-\[var\(--reader-shell\)\] {
  background-color: var(--reader-shell);
}

.tw\:bg-\[var\(--reader-tts-accent-soft\)\] {
  background-color: var(--reader-tts-accent-soft);
}

.tw\:bg-amber-50 {
  background-color: var(--tw-color-amber-50);
}

.tw\:bg-amber-100 {
  background-color: var(--tw-color-amber-100);
}

.tw\:bg-amber-400 {
  background-color: var(--tw-color-amber-400);
}

.tw\:bg-amber-400\/10 {
  background-color: var(--tw-color-amber-400);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-amber-400\/10 {
    background-color: color-mix(in oklab, var(--tw-color-amber-400) 10%, transparent);
  }
}

.tw\:bg-amber-500 {
  background-color: var(--tw-color-amber-500);
}

.tw\:bg-amber-500\/10 {
  background-color: var(--tw-color-amber-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-amber-500\/10 {
    background-color: color-mix(in oklab, var(--tw-color-amber-500) 10%, transparent);
  }
}

.tw\:bg-amber-500\/20 {
  background-color: var(--tw-color-amber-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-amber-500\/20 {
    background-color: color-mix(in oklab, var(--tw-color-amber-500) 20%, transparent);
  }
}

.tw\:bg-black\/5 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/5 {
    background-color: color-mix(in oklab, var(--tw-color-black) 5%, transparent);
  }
}

.tw\:bg-black\/8 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/8 {
    background-color: color-mix(in oklab, var(--tw-color-black) 8%, transparent);
  }
}

.tw\:bg-black\/10 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/10 {
    background-color: color-mix(in oklab, var(--tw-color-black) 10%, transparent);
  }
}

.tw\:bg-black\/20 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/20 {
    background-color: color-mix(in oklab, var(--tw-color-black) 20%, transparent);
  }
}

.tw\:bg-black\/35 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/35 {
    background-color: color-mix(in oklab, var(--tw-color-black) 35%, transparent);
  }
}

.tw\:bg-black\/40 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/40 {
    background-color: color-mix(in oklab, var(--tw-color-black) 40%, transparent);
  }
}

.tw\:bg-black\/45 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/45 {
    background-color: color-mix(in oklab, var(--tw-color-black) 45%, transparent);
  }
}

.tw\:bg-black\/65 {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/65 {
    background-color: color-mix(in oklab, var(--tw-color-black) 65%, transparent);
  }
}

.tw\:bg-black\/\[0\.02\] {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/\[0\.02\] {
    background-color: color-mix(in oklab, var(--tw-color-black) 2%, transparent);
  }
}

.tw\:bg-black\/\[0\.03\] {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/\[0\.03\] {
    background-color: color-mix(in oklab, var(--tw-color-black) 3%, transparent);
  }
}

.tw\:bg-black\/\[0\.05\] {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/\[0\.05\] {
    background-color: color-mix(in oklab, var(--tw-color-black) 5%, transparent);
  }
}

.tw\:bg-black\/\[0\.06\] {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/\[0\.06\] {
    background-color: color-mix(in oklab, var(--tw-color-black) 6%, transparent);
  }
}

.tw\:bg-black\/\[0\.08\] {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/\[0\.08\] {
    background-color: color-mix(in oklab, var(--tw-color-black) 8%, transparent);
  }
}

.tw\:bg-black\/\[0\.015\] {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-black\/\[0\.015\] {
    background-color: color-mix(in oklab, var(--tw-color-black) 1.5%, transparent);
  }
}

.tw\:bg-blue-100 {
  background-color: var(--tw-color-blue-100);
}

.tw\:bg-blue-400 {
  background-color: var(--tw-color-blue-400);
}

.tw\:bg-current\/10 {
  background-color: currentColor;
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-current\/10 {
    background-color: color-mix(in oklab, currentcolor 10%, transparent);
  }
}

.tw\:bg-emerald-100 {
  background-color: var(--tw-color-emerald-100);
}

.tw\:bg-emerald-400 {
  background-color: var(--tw-color-emerald-400);
}

.tw\:bg-green-100 {
  background-color: var(--tw-color-green-100);
}

.tw\:bg-green-500\/20 {
  background-color: var(--tw-color-green-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-green-500\/20 {
    background-color: color-mix(in oklab, var(--tw-color-green-500) 20%, transparent);
  }
}

.tw\:bg-purple-100 {
  background-color: var(--tw-color-purple-100);
}

.tw\:bg-purple-400 {
  background-color: var(--tw-color-purple-400);
}

.tw\:bg-red-50 {
  background-color: var(--tw-color-red-50);
}

.tw\:bg-red-100 {
  background-color: var(--tw-color-red-100);
}

.tw\:bg-red-500 {
  background-color: var(--tw-color-red-500);
}

.tw\:bg-red-500\/10 {
  background-color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-red-500\/10 {
    background-color: color-mix(in oklab, var(--tw-color-red-500) 10%, transparent);
  }
}

.tw\:bg-red-500\/16 {
  background-color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-red-500\/16 {
    background-color: color-mix(in oklab, var(--tw-color-red-500) 16%, transparent);
  }
}

.tw\:bg-red-500\/20 {
  background-color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-red-500\/20 {
    background-color: color-mix(in oklab, var(--tw-color-red-500) 20%, transparent);
  }
}

.tw\:bg-red-600 {
  background-color: var(--tw-color-red-600);
}

.tw\:bg-red-900\/40 {
  background-color: var(--tw-color-red-900);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-red-900\/40 {
    background-color: color-mix(in oklab, var(--tw-color-red-900) 40%, transparent);
  }
}

.tw\:bg-rose-100 {
  background-color: var(--tw-color-rose-100);
}

.tw\:bg-rose-400 {
  background-color: var(--tw-color-rose-400);
}

.tw\:bg-scholar-dark {
  background-color: var(--tw-color-scholar-dark);
}

.tw\:bg-scholar-ink {
  background-color: var(--tw-color-scholar-ink);
}

.tw\:bg-scholar-ink\/15 {
  background-color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-ink\/15 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-ink) 15%, transparent);
  }
}

.tw\:bg-scholar-line {
  background-color: var(--tw-color-scholar-line);
}

.tw\:bg-scholar-mist {
  background-color: var(--tw-color-scholar-mist);
}

.tw\:bg-scholar-paper {
  background-color: var(--tw-color-scholar-paper);
}

.tw\:bg-scholar-paper\/35 {
  background-color: var(--tw-color-scholar-paper);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-paper\/35 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-paper) 35%, transparent);
  }
}

.tw\:bg-scholar-paper\/45 {
  background-color: var(--tw-color-scholar-paper);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-paper\/45 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-paper) 45%, transparent);
  }
}

.tw\:bg-scholar-paper\/60 {
  background-color: var(--tw-color-scholar-paper);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-paper\/60 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-paper) 60%, transparent);
  }
}

.tw\:bg-scholar-primary {
  background-color: var(--tw-color-scholar-primary);
}

.tw\:bg-scholar-primary-soft {
  background-color: var(--tw-color-scholar-primary-soft);
}

.tw\:bg-scholar-primary-soft\/50 {
  background-color: var(--tw-color-scholar-primary-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary-soft\/50 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary-soft) 50%, transparent);
  }
}

.tw\:bg-scholar-primary\/5 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/5 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 5%, transparent);
  }
}

.tw\:bg-scholar-primary\/7 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/7 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 7%, transparent);
  }
}

.tw\:bg-scholar-primary\/10 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/10 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 10%, transparent);
  }
}

.tw\:bg-scholar-primary\/12 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/12 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 12%, transparent);
  }
}

.tw\:bg-scholar-primary\/14 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/14 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 14%, transparent);
  }
}

.tw\:bg-scholar-primary\/15 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/15 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 15%, transparent);
  }
}

.tw\:bg-scholar-primary\/20 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/20 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 20%, transparent);
  }
}

.tw\:bg-scholar-primary\/60 {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/60 {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 60%, transparent);
  }
}

.tw\:bg-scholar-primary\/\[0\.03\] {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/\[0\.03\] {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 3%, transparent);
  }
}

.tw\:bg-scholar-primary\/\[0\.04\] {
  background-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-scholar-primary\/\[0\.04\] {
    background-color: color-mix(in oklab, var(--tw-color-scholar-primary) 4%, transparent);
  }
}

.tw\:bg-transparent {
  background-color: #0000;
}

.tw\:bg-white {
  background-color: var(--tw-color-white);
}

.tw\:bg-white\/5 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/5 {
    background-color: color-mix(in oklab, var(--tw-color-white) 5%, transparent);
  }
}

.tw\:bg-white\/8 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/8 {
    background-color: color-mix(in oklab, var(--tw-color-white) 8%, transparent);
  }
}

.tw\:bg-white\/10 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/10 {
    background-color: color-mix(in oklab, var(--tw-color-white) 10%, transparent);
  }
}

.tw\:bg-white\/12 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/12 {
    background-color: color-mix(in oklab, var(--tw-color-white) 12%, transparent);
  }
}

.tw\:bg-white\/14 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/14 {
    background-color: color-mix(in oklab, var(--tw-color-white) 14%, transparent);
  }
}

.tw\:bg-white\/15 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/15 {
    background-color: color-mix(in oklab, var(--tw-color-white) 15%, transparent);
  }
}

.tw\:bg-white\/20 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/20 {
    background-color: color-mix(in oklab, var(--tw-color-white) 20%, transparent);
  }
}

.tw\:bg-white\/25 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/25 {
    background-color: color-mix(in oklab, var(--tw-color-white) 25%, transparent);
  }
}

.tw\:bg-white\/70 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/70 {
    background-color: color-mix(in oklab, var(--tw-color-white) 70%, transparent);
  }
}

.tw\:bg-white\/75 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/75 {
    background-color: color-mix(in oklab, var(--tw-color-white) 75%, transparent);
  }
}

.tw\:bg-white\/76 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/76 {
    background-color: color-mix(in oklab, var(--tw-color-white) 76%, transparent);
  }
}

.tw\:bg-white\/85 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/85 {
    background-color: color-mix(in oklab, var(--tw-color-white) 85%, transparent);
  }
}

.tw\:bg-white\/88 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/88 {
    background-color: color-mix(in oklab, var(--tw-color-white) 88%, transparent);
  }
}

.tw\:bg-white\/92 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/92 {
    background-color: color-mix(in oklab, var(--tw-color-white) 92%, transparent);
  }
}

.tw\:bg-white\/94 {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/94 {
    background-color: color-mix(in oklab, var(--tw-color-white) 94%, transparent);
  }
}

.tw\:bg-white\/\[0\.04\] {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/\[0\.04\] {
    background-color: color-mix(in oklab, var(--tw-color-white) 4%, transparent);
  }
}

.tw\:bg-white\/\[0\.025\] {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/\[0\.025\] {
    background-color: color-mix(in oklab, var(--tw-color-white) 2.5%, transparent);
  }
}

.tw\:bg-white\/\[0\.035\] {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:bg-white\/\[0\.035\] {
    background-color: color-mix(in oklab, var(--tw-color-white) 3.5%, transparent);
  }
}

.tw\:bg-yellow-100 {
  background-color: var(--tw-color-yellow-100);
}

.tw\:bg-\[linear-gradient\(135deg\,\#005ab5_0\%\,\#8b5cf6_100\%\)\] {
  background-image: linear-gradient(135deg, #005ab5 0%, #8b5cf6 100%);
}

.tw\:bg-\[radial-gradient\(circle_at_top_left\,_rgba\(0\,90\,181\,0\.16\)\,_transparent_30\%\)\,radial-gradient\(circle_at_bottom_right\,_rgba\(0\,90\,181\,0\.08\)\,_transparent_28\%\)\] {
  background-image: radial-gradient(circle at 0 0, #005ab529, #0000 30%), radial-gradient(circle at 100% 100%, #005ab514, #0000 28%);
}

.tw\:fill-current {
  fill: currentColor;
}

.tw\:object-contain {
  object-fit: contain;
}

.tw\:object-cover {
  object-fit: cover;
}

.tw\:p-0 {
  padding: calc(var(--tw-spacing) * 0);
}

.tw\:p-1 {
  padding: calc(var(--tw-spacing) * 1);
}

.tw\:p-1\.5 {
  padding: calc(var(--tw-spacing) * 1.5);
}

.tw\:p-2 {
  padding: calc(var(--tw-spacing) * 2);
}

.tw\:p-2\.5 {
  padding: calc(var(--tw-spacing) * 2.5);
}

.tw\:p-3 {
  padding: calc(var(--tw-spacing) * 3);
}

.tw\:p-3\.5 {
  padding: calc(var(--tw-spacing) * 3.5);
}

.tw\:p-4 {
  padding: calc(var(--tw-spacing) * 4);
}

.tw\:p-5 {
  padding: calc(var(--tw-spacing) * 5);
}

.tw\:p-6 {
  padding: calc(var(--tw-spacing) * 6);
}

.tw\:p-8 {
  padding: calc(var(--tw-spacing) * 8);
}

.tw\:p-10 {
  padding: calc(var(--tw-spacing) * 10);
}

.tw\:p-\[2px\] {
  padding: 2px;
}

.tw\:px-0\.5 {
  padding-inline: calc(var(--tw-spacing) * .5);
}

.tw\:px-1 {
  padding-inline: calc(var(--tw-spacing) * 1);
}

.tw\:px-1\.5 {
  padding-inline: calc(var(--tw-spacing) * 1.5);
}

.tw\:px-2 {
  padding-inline: calc(var(--tw-spacing) * 2);
}

.tw\:px-2\.5 {
  padding-inline: calc(var(--tw-spacing) * 2.5);
}

.tw\:px-3 {
  padding-inline: calc(var(--tw-spacing) * 3);
}

.tw\:px-3\.5 {
  padding-inline: calc(var(--tw-spacing) * 3.5);
}

.tw\:px-4 {
  padding-inline: calc(var(--tw-spacing) * 4);
}

.tw\:px-5 {
  padding-inline: calc(var(--tw-spacing) * 5);
}

.tw\:px-6 {
  padding-inline: calc(var(--tw-spacing) * 6);
}

.tw\:px-\[var\(--app-shell-rail-padding-x\)\] {
  padding-inline: var(--app-shell-rail-padding-x);
}

.tw\:py-0 {
  padding-block: calc(var(--tw-spacing) * 0);
}

.tw\:py-0\.5 {
  padding-block: calc(var(--tw-spacing) * .5);
}

.tw\:py-1 {
  padding-block: calc(var(--tw-spacing) * 1);
}

.tw\:py-1\.5 {
  padding-block: calc(var(--tw-spacing) * 1.5);
}

.tw\:py-2 {
  padding-block: calc(var(--tw-spacing) * 2);
}

.tw\:py-2\.5 {
  padding-block: calc(var(--tw-spacing) * 2.5);
}

.tw\:py-3 {
  padding-block: calc(var(--tw-spacing) * 3);
}

.tw\:py-3\.5 {
  padding-block: calc(var(--tw-spacing) * 3.5);
}

.tw\:py-4 {
  padding-block: calc(var(--tw-spacing) * 4);
}

.tw\:py-5 {
  padding-block: calc(var(--tw-spacing) * 5);
}

.tw\:py-6 {
  padding-block: calc(var(--tw-spacing) * 6);
}

.tw\:py-8 {
  padding-block: calc(var(--tw-spacing) * 8);
}

.tw\:py-10 {
  padding-block: calc(var(--tw-spacing) * 10);
}

.tw\:py-12 {
  padding-block: calc(var(--tw-spacing) * 12);
}

.tw\:py-16 {
  padding-block: calc(var(--tw-spacing) * 16);
}

.tw\:py-20 {
  padding-block: calc(var(--tw-spacing) * 20);
}

.tw\:py-\[var\(--app-shell-rail-padding-y\)\] {
  padding-block: var(--app-shell-rail-padding-y);
}

.tw\:pt-2\.5 {
  padding-top: calc(var(--tw-spacing) * 2.5);
}

.tw\:pt-3 {
  padding-top: calc(var(--tw-spacing) * 3);
}

.tw\:pt-4 {
  padding-top: calc(var(--tw-spacing) * 4);
}

.tw\:pt-6 {
  padding-top: calc(var(--tw-spacing) * 6);
}

.tw\:pr-3 {
  padding-right: calc(var(--tw-spacing) * 3);
}

.tw\:pr-14 {
  padding-right: calc(var(--tw-spacing) * 14);
}

.tw\:pb-2 {
  padding-bottom: calc(var(--tw-spacing) * 2);
}

.tw\:pb-3 {
  padding-bottom: calc(var(--tw-spacing) * 3);
}

.tw\:pb-5 {
  padding-bottom: calc(var(--tw-spacing) * 5);
}

.tw\:pl-2 {
  padding-left: calc(var(--tw-spacing) * 2);
}

.tw\:pl-5 {
  padding-left: calc(var(--tw-spacing) * 5);
}

.tw\:pl-9 {
  padding-left: calc(var(--tw-spacing) * 9);
}

.tw\:pl-12 {
  padding-left: calc(var(--tw-spacing) * 12);
}

.tw\:pl-\[var\(--app-shell-rail-width\)\] {
  padding-left: var(--app-shell-rail-width);
}

.tw\:text-center {
  text-align: center;
}

.tw\:text-left {
  text-align: left;
}

.tw\:text-right {
  text-align: right;
}

.tw\:align-baseline {
  vertical-align: baseline;
}

.tw\:font-mono {
  font-family: var(--tw-font-mono);
}

.tw\:font-sans {
  font-family: var(--tw-font-sans);
}

.tw\:font-serif {
  font-family: var(--tw-font-serif);
}

.tw\:text-2xl {
  font-size: var(--tw-text-2xl);
  line-height: var(--tw-leading, var(--tw-text-2xl--line-height));
}

.tw\:text-3xl {
  font-size: var(--tw-text-3xl);
  line-height: var(--tw-leading, var(--tw-text-3xl--line-height));
}

.tw\:text-base {
  font-size: var(--tw-text-base);
  line-height: var(--tw-leading, var(--tw-text-base--line-height));
}

.tw\:text-lg {
  font-size: var(--tw-text-lg);
  line-height: var(--tw-leading, var(--tw-text-lg--line-height));
}

.tw\:text-sm {
  font-size: var(--tw-text-sm);
  line-height: var(--tw-leading, var(--tw-text-sm--line-height));
}

.tw\:text-xl {
  font-size: var(--tw-text-xl);
  line-height: var(--tw-leading, var(--tw-text-xl--line-height));
}

.tw\:text-xs {
  font-size: var(--tw-text-xs);
  line-height: var(--tw-leading, var(--tw-text-xs--line-height));
}

.tw\:text-\[0\.6rem\] {
  font-size: .6rem;
}

.tw\:text-\[0\.8rem\] {
  font-size: .8rem;
}

.tw\:text-\[0\.66rem\] {
  font-size: .66rem;
}

.tw\:text-\[0\.72rem\] {
  font-size: .72rem;
}

.tw\:text-\[0\.75rem\] {
  font-size: .75rem;
}

.tw\:text-\[0\.82rem\] {
  font-size: .82rem;
}

.tw\:text-\[0\.83rem\] {
  font-size: .83rem;
}

.tw\:text-\[0\.84rem\] {
  font-size: .84rem;
}

.tw\:text-\[0\.85em\] {
  font-size: .85em;
}

.tw\:text-\[0\.85rem\] {
  font-size: .85rem;
}

.tw\:text-\[0\.88rem\] {
  font-size: .88rem;
}

.tw\:text-\[0\.95rem\] {
  font-size: .95rem;
}

.tw\:text-\[0\.98rem\] {
  font-size: .98rem;
}

.tw\:text-\[4\.5rem\] {
  font-size: 4.5rem;
}

.tw\:text-\[8px\] {
  font-size: 8px;
}

.tw\:text-\[9px\] {
  font-size: 9px;
}

.tw\:text-\[10px\] {
  font-size: 10px;
}

.tw\:text-\[11px\] {
  font-size: 11px;
}

.tw\:text-\[15px\] {
  font-size: 15px;
}

.tw\:text-\[120px\] {
  font-size: 120px;
}

.tw\:text-\[clamp\(1\.5rem\,3vw\,2\.5rem\)\] {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.tw\:text-\[clamp\(1\.9rem\,3\.4vw\,2\.8rem\)\] {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.tw\:text-\[clamp\(1\.75rem\,3\.2vw\,2\.5rem\)\] {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.tw\:text-\[clamp\(2\.1rem\,5vw\,3\.4rem\)\] {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.tw\:text-\[clamp\(2rem\,4vw\,3rem\)\] {
  font-size: clamp(2rem, 4vw, 3rem);
}

.tw\:leading-3 {
  --tw-leading: calc(var(--tw-spacing) * 3);
  line-height: calc(var(--tw-spacing) * 3);
}

.tw\:leading-4 {
  --tw-leading: calc(var(--tw-spacing) * 4);
  line-height: calc(var(--tw-spacing) * 4);
}

.tw\:leading-5 {
  --tw-leading: calc(var(--tw-spacing) * 5);
  line-height: calc(var(--tw-spacing) * 5);
}

.tw\:leading-6 {
  --tw-leading: calc(var(--tw-spacing) * 6);
  line-height: calc(var(--tw-spacing) * 6);
}

.tw\:leading-7 {
  --tw-leading: calc(var(--tw-spacing) * 7);
  line-height: calc(var(--tw-spacing) * 7);
}

.tw\:leading-none {
  --tw-leading: 1;
  line-height: 1;
}

.tw\:leading-relaxed {
  --tw-leading: var(--tw-leading-relaxed);
  line-height: var(--tw-leading-relaxed);
}

.tw\:leading-snug {
  --tw-leading: var(--tw-leading-snug);
  line-height: var(--tw-leading-snug);
}

.tw\:leading-tight {
  --tw-leading: var(--tw-leading-tight);
  line-height: var(--tw-leading-tight);
}

.tw\:font-black {
  --tw-font-weight: var(--tw-font-weight-black);
  font-weight: var(--tw-font-weight-black);
}

.tw\:font-bold {
  --tw-font-weight: var(--tw-font-weight-bold);
  font-weight: var(--tw-font-weight-bold);
}

.tw\:font-extrabold {
  --tw-font-weight: var(--tw-font-weight-extrabold);
  font-weight: var(--tw-font-weight-extrabold);
}

.tw\:font-medium {
  --tw-font-weight: var(--tw-font-weight-medium);
  font-weight: var(--tw-font-weight-medium);
}

.tw\:font-normal {
  --tw-font-weight: var(--tw-font-weight-normal);
  font-weight: var(--tw-font-weight-normal);
}

.tw\:font-semibold {
  --tw-font-weight: var(--tw-font-weight-semibold);
  font-weight: var(--tw-font-weight-semibold);
}

.tw\:tracking-\[0\.2em\] {
  --tw-tracking: .2em;
  letter-spacing: .2em;
}

.tw\:tracking-\[0\.08em\] {
  --tw-tracking: .08em;
  letter-spacing: .08em;
}

.tw\:tracking-\[0\.14em\] {
  --tw-tracking: .14em;
  letter-spacing: .14em;
}

.tw\:tracking-\[0\.16em\] {
  --tw-tracking: .16em;
  letter-spacing: .16em;
}

.tw\:tracking-\[0\.18em\] {
  --tw-tracking: .18em;
  letter-spacing: .18em;
}

.tw\:tracking-\[0\.24em\] {
  --tw-tracking: .24em;
  letter-spacing: .24em;
}

.tw\:tracking-\[0\.28em\] {
  --tw-tracking: .28em;
  letter-spacing: .28em;
}

.tw\:tracking-\[0\.32em\] {
  --tw-tracking: .32em;
  letter-spacing: .32em;
}

.tw\:tracking-tight {
  --tw-tracking: var(--tw-tracking-tight);
  letter-spacing: var(--tw-tracking-tight);
}

.tw\:tracking-wide {
  --tw-tracking: var(--tw-tracking-wide);
  letter-spacing: var(--tw-tracking-wide);
}

.tw\:tracking-wider {
  --tw-tracking: var(--tw-tracking-wider);
  letter-spacing: var(--tw-tracking-wider);
}

.tw\:tracking-widest {
  --tw-tracking: var(--tw-tracking-widest);
  letter-spacing: var(--tw-tracking-widest);
}

.tw\:break-words {
  overflow-wrap: break-word;
}

.tw\:whitespace-nowrap {
  white-space: nowrap;
}

.tw\:text-\[\#8bc1ff\] {
  color: #8bc1ff;
}

.tw\:text-\[var\(--reader-control-muted\)\] {
  color: var(--reader-control-muted);
}

.tw\:text-\[var\(--reader-tts-accent\)\] {
  color: var(--reader-tts-accent);
}

.tw\:text-\[var\(--text\)\] {
  color: var(--text);
}

.tw\:text-amber-200 {
  color: var(--tw-color-amber-200);
}

.tw\:text-amber-200\/90 {
  color: var(--tw-color-amber-200);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-amber-200\/90 {
    color: color-mix(in oklab, var(--tw-color-amber-200) 90%, transparent);
  }
}

.tw\:text-amber-500 {
  color: var(--tw-color-amber-500);
}

.tw\:text-amber-600 {
  color: var(--tw-color-amber-600);
}

.tw\:text-amber-700 {
  color: var(--tw-color-amber-700);
}

.tw\:text-amber-800 {
  color: var(--tw-color-amber-800);
}

.tw\:text-amber-900 {
  color: var(--tw-color-amber-900);
}

.tw\:text-black\/60 {
  color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-black\/60 {
    color: color-mix(in oklab, var(--tw-color-black) 60%, transparent);
  }
}

.tw\:text-black\/70 {
  color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-black\/70 {
    color: color-mix(in oklab, var(--tw-color-black) 70%, transparent);
  }
}

.tw\:text-blue-700 {
  color: var(--tw-color-blue-700);
}

.tw\:text-emerald-300 {
  color: var(--tw-color-emerald-300);
}

.tw\:text-emerald-400 {
  color: var(--tw-color-emerald-400);
}

.tw\:text-emerald-500 {
  color: var(--tw-color-emerald-500);
}

.tw\:text-emerald-600 {
  color: var(--tw-color-emerald-600);
}

.tw\:text-emerald-700 {
  color: var(--tw-color-emerald-700);
}

.tw\:text-green-200 {
  color: var(--tw-color-green-200);
}

.tw\:text-green-500 {
  color: var(--tw-color-green-500);
}

.tw\:text-green-800 {
  color: var(--tw-color-green-800);
}

.tw\:text-purple-700 {
  color: var(--tw-color-purple-700);
}

.tw\:text-red-100 {
  color: var(--tw-color-red-100);
}

.tw\:text-red-200 {
  color: var(--tw-color-red-200);
}

.tw\:text-red-200\/70 {
  color: var(--tw-color-red-200);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-red-200\/70 {
    color: color-mix(in oklab, var(--tw-color-red-200) 70%, transparent);
  }
}

.tw\:text-red-300 {
  color: var(--tw-color-red-300);
}

.tw\:text-red-300\/80 {
  color: var(--tw-color-red-300);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-red-300\/80 {
    color: color-mix(in oklab, var(--tw-color-red-300) 80%, transparent);
  }
}

.tw\:text-red-400 {
  color: var(--tw-color-red-400);
}

.tw\:text-red-500 {
  color: var(--tw-color-red-500);
}

.tw\:text-red-500\/60 {
  color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-red-500\/60 {
    color: color-mix(in oklab, var(--tw-color-red-500) 60%, transparent);
  }
}

.tw\:text-red-500\/70 {
  color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-red-500\/70 {
    color: color-mix(in oklab, var(--tw-color-red-500) 70%, transparent);
  }
}

.tw\:text-red-600 {
  color: var(--tw-color-red-600);
}

.tw\:text-red-600\/80 {
  color: var(--tw-color-red-600);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-red-600\/80 {
    color: color-mix(in oklab, var(--tw-color-red-600) 80%, transparent);
  }
}

.tw\:text-red-700 {
  color: var(--tw-color-red-700);
}

.tw\:text-red-700\/70 {
  color: var(--tw-color-red-700);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-red-700\/70 {
    color: color-mix(in oklab, var(--tw-color-red-700) 70%, transparent);
  }
}

.tw\:text-red-800 {
  color: var(--tw-color-red-800);
}

.tw\:text-rose-700 {
  color: var(--tw-color-rose-700);
}

.tw\:text-scholar-dark {
  color: var(--tw-color-scholar-dark);
}

.tw\:text-scholar-ink {
  color: var(--tw-color-scholar-ink);
}

.tw\:text-scholar-ink\/5 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/5 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 5%, transparent);
  }
}

.tw\:text-scholar-ink\/20 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/20 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 20%, transparent);
  }
}

.tw\:text-scholar-ink\/25 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/25 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 25%, transparent);
  }
}

.tw\:text-scholar-ink\/30 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/30 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 30%, transparent);
  }
}

.tw\:text-scholar-ink\/32 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/32 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 32%, transparent);
  }
}

.tw\:text-scholar-ink\/35 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/35 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 35%, transparent);
  }
}

.tw\:text-scholar-ink\/38 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/38 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 38%, transparent);
  }
}

.tw\:text-scholar-ink\/40 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/40 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 40%, transparent);
  }
}

.tw\:text-scholar-ink\/45 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/45 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 45%, transparent);
  }
}

.tw\:text-scholar-ink\/48 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/48 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 48%, transparent);
  }
}

.tw\:text-scholar-ink\/50 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/50 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 50%, transparent);
  }
}

.tw\:text-scholar-ink\/54 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/54 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 54%, transparent);
  }
}

.tw\:text-scholar-ink\/55 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/55 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 55%, transparent);
  }
}

.tw\:text-scholar-ink\/60 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/60 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 60%, transparent);
  }
}

.tw\:text-scholar-ink\/65 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/65 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 65%, transparent);
  }
}

.tw\:text-scholar-ink\/68 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/68 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 68%, transparent);
  }
}

.tw\:text-scholar-ink\/70 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/70 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 70%, transparent);
  }
}

.tw\:text-scholar-ink\/72 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/72 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 72%, transparent);
  }
}

.tw\:text-scholar-ink\/75 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/75 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 75%, transparent);
  }
}

.tw\:text-scholar-ink\/80 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/80 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 80%, transparent);
  }
}

.tw\:text-scholar-ink\/85 {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/85 {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 85%, transparent);
  }
}

.tw\:text-scholar-ink\/\[0\.03\] {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-scholar-ink\/\[0\.03\] {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 3%, transparent);
  }
}

.tw\:text-scholar-primary {
  color: var(--tw-color-scholar-primary);
}

.tw\:text-white {
  color: var(--tw-color-white);
}

.tw\:text-white\/5 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/5 {
    color: color-mix(in oklab, var(--tw-color-white) 5%, transparent);
  }
}

.tw\:text-white\/20 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/20 {
    color: color-mix(in oklab, var(--tw-color-white) 20%, transparent);
  }
}

.tw\:text-white\/25 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/25 {
    color: color-mix(in oklab, var(--tw-color-white) 25%, transparent);
  }
}

.tw\:text-white\/30 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/30 {
    color: color-mix(in oklab, var(--tw-color-white) 30%, transparent);
  }
}

.tw\:text-white\/32 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/32 {
    color: color-mix(in oklab, var(--tw-color-white) 32%, transparent);
  }
}

.tw\:text-white\/35 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/35 {
    color: color-mix(in oklab, var(--tw-color-white) 35%, transparent);
  }
}

.tw\:text-white\/38 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/38 {
    color: color-mix(in oklab, var(--tw-color-white) 38%, transparent);
  }
}

.tw\:text-white\/40 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/40 {
    color: color-mix(in oklab, var(--tw-color-white) 40%, transparent);
  }
}

.tw\:text-white\/45 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/45 {
    color: color-mix(in oklab, var(--tw-color-white) 45%, transparent);
  }
}

.tw\:text-white\/48 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/48 {
    color: color-mix(in oklab, var(--tw-color-white) 48%, transparent);
  }
}

.tw\:text-white\/50 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/50 {
    color: color-mix(in oklab, var(--tw-color-white) 50%, transparent);
  }
}

.tw\:text-white\/55 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/55 {
    color: color-mix(in oklab, var(--tw-color-white) 55%, transparent);
  }
}

.tw\:text-white\/60 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/60 {
    color: color-mix(in oklab, var(--tw-color-white) 60%, transparent);
  }
}

.tw\:text-white\/65 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/65 {
    color: color-mix(in oklab, var(--tw-color-white) 65%, transparent);
  }
}

.tw\:text-white\/68 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/68 {
    color: color-mix(in oklab, var(--tw-color-white) 68%, transparent);
  }
}

.tw\:text-white\/70 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/70 {
    color: color-mix(in oklab, var(--tw-color-white) 70%, transparent);
  }
}

.tw\:text-white\/74 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/74 {
    color: color-mix(in oklab, var(--tw-color-white) 74%, transparent);
  }
}

.tw\:text-white\/75 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/75 {
    color: color-mix(in oklab, var(--tw-color-white) 75%, transparent);
  }
}

.tw\:text-white\/80 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/80 {
    color: color-mix(in oklab, var(--tw-color-white) 80%, transparent);
  }
}

.tw\:text-white\/85 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/85 {
    color: color-mix(in oklab, var(--tw-color-white) 85%, transparent);
  }
}

.tw\:text-white\/90 {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/90 {
    color: color-mix(in oklab, var(--tw-color-white) 90%, transparent);
  }
}

.tw\:text-white\/\[0\.04\] {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:text-white\/\[0\.04\] {
    color: color-mix(in oklab, var(--tw-color-white) 4%, transparent);
  }
}

.tw\:text-yellow-950 {
  color: var(--tw-color-yellow-950);
}

.tw\:uppercase {
  text-transform: uppercase;
}

.tw\:italic {
  font-style: italic;
}

.tw\:tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
}

.tw\:underline {
  text-decoration-line: underline;
}

.tw\:accent-\[var\(--color-scholar-primary\)\] {
  accent-color: var(--color-scholar-primary);
}

.tw\:accent-red-600 {
  accent-color: var(--tw-color-red-600);
}

.tw\:accent-scholar-primary {
  accent-color: var(--tw-color-scholar-primary);
}

.tw\:opacity-0 {
  opacity: 0;
}

.tw\:opacity-20 {
  opacity: .2;
}

.tw\:opacity-40 {
  opacity: .4;
}

.tw\:opacity-45 {
  opacity: .45;
}

.tw\:opacity-50 {
  opacity: .5;
}

.tw\:opacity-55 {
  opacity: .55;
}

.tw\:opacity-60 {
  opacity: .6;
}

.tw\:opacity-70 {
  opacity: .7;
}

.tw\:opacity-75 {
  opacity: .75;
}

.tw\:opacity-80 {
  opacity: .8;
}

.tw\:opacity-100 {
  opacity: 1;
}

.tw\:shadow {
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-2xl {
  --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, #00000040);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-\[0_2px_8px_rgba\(0\,0\,0\,0\.06\)\] {
  --tw-shadow: 0 2px 8px var(--tw-shadow-color, #0000000f);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-\[0_8px_24px_-8px_rgba\(0\,90\,181\,0\.5\)\] {
  --tw-shadow: 0 8px 24px -8px var(--tw-shadow-color, #005ab580);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-\[0_24px_70px_rgba\(25\,28\,33\,0\.12\)\] {
  --tw-shadow: 0 24px 70px var(--tw-shadow-color, #191c211f);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-lg {
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-md {
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, #0000001a), 0 2px 4px -2px var(--tw-shadow-color, #0000001a);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-none {
  --tw-shadow: 0 0 #0000;
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:shadow-sm {
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:ring-1 {
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:ring-2 {
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:ring-8 {
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:ring-red-600\/15 {
  --tw-ring-color: var(--tw-color-red-600);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:ring-red-600\/15 {
    --tw-ring-color: color-mix(in oklab, var(--tw-color-red-600) 15%, transparent);
  }
}

.tw\:ring-scholar-primary {
  --tw-ring-color: var(--tw-color-scholar-primary);
}

.tw\:ring-scholar-primary\/15 {
  --tw-ring-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:ring-scholar-primary\/15 {
    --tw-ring-color: color-mix(in oklab, var(--tw-color-scholar-primary) 15%, transparent);
  }
}

.tw\:ring-scholar-primary\/50 {
  --tw-ring-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:ring-scholar-primary\/50 {
    --tw-ring-color: color-mix(in oklab, var(--tw-color-scholar-primary) 50%, transparent);
  }
}

.tw\:ring-scholar-primary\/60 {
  --tw-ring-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:ring-scholar-primary\/60 {
    --tw-ring-color: color-mix(in oklab, var(--tw-color-scholar-primary) 60%, transparent);
  }
}

.tw\:ring-offset-1 {
  --tw-ring-offset-width: 1px;
  --tw-ring-offset-shadow: var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
}

.tw\:blur-3xl {
  --tw-blur: blur(var(--tw-blur-3xl));
  filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
}

.tw\:brightness-95 {
  --tw-brightness: brightness(95%);
  filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
}

.tw\:saturate-150 {
  --tw-saturate: saturate(150%);
  filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
}

.tw\:backdrop-blur-\[2px\] {
  --tw-backdrop-blur: blur(2px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
}

.tw\:backdrop-blur-sm {
  --tw-backdrop-blur: blur(var(--tw-blur-sm));
  -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
}

.tw\:backdrop-blur-xl {
  --tw-backdrop-blur: blur(var(--tw-blur-xl));
  -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
}

.tw\:transition {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-\[color\,background-color\,border-color\,transform\] {
  transition-property: color, background-color, border-color, transform;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-\[color\,background-color\,transform\] {
  transition-property: color, background-color, transform;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-\[filter\] {
  transition-property: filter;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-\[width\] {
  transition-property: width;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-all {
  transition-property: all;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-colors {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-opacity {
  transition-property: opacity;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:transition-transform {
  transition-property: transform, translate, scale, rotate;
  transition-timing-function: var(--tw-ease, var(--tw-default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--tw-default-transition-duration));
}

.tw\:duration-300 {
  --tw-duration: .3s;
  transition-duration: .3s;
}

.tw\:outline-none {
  --tw-outline-style: none;
  outline-style: none;
}

.tw\:select-none {
  -webkit-user-select: none;
  user-select: none;
}

.tw\:group-focus-visible\:ring-4:is(:where(.tw\:group):focus-visible *) {
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.tw\:group-focus-visible\:ring-scholar-primary\/35:is(:where(.tw\:group):focus-visible *) {
  --tw-ring-color: var(--tw-color-scholar-primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:group-focus-visible\:ring-scholar-primary\/35:is(:where(.tw\:group):focus-visible *) {
    --tw-ring-color: color-mix(in oklab, var(--tw-color-scholar-primary) 35%, transparent);
  }
}

.tw\:placeholder\:text-scholar-ink\/50::placeholder {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:placeholder\:text-scholar-ink\/50::placeholder {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 50%, transparent);
  }
}

.tw\:placeholder\:text-white\/40::placeholder {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:placeholder\:text-white\/40::placeholder {
    color: color-mix(in oklab, var(--tw-color-white) 40%, transparent);
  }
}

@media (hover: hover) {
  .tw\:hover\:bg-black\/5:hover {
    background-color: var(--tw-color-black);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .tw\:hover\:bg-black\/5:hover {
      background-color: color-mix(in oklab, var(--tw-color-black) 5%, transparent);
    }
  }
}

@media (hover: hover) {
  .tw\:hover\:bg-red-50:hover {
    background-color: var(--tw-color-red-50);
  }
}

@media (hover: hover) {
  .tw\:hover\:bg-scholar-paper:hover {
    background-color: var(--tw-color-scholar-paper);
  }
}

@media (hover: hover) {
  .tw\:hover\:text-scholar-ink:hover {
    color: var(--tw-color-scholar-ink);
  }
}

@media (hover: hover) {
  .tw\:hover\:brightness-110:hover {
    --tw-brightness: brightness(110%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

.tw\:focus\:not-sr-only:focus {
  clip-path: none;
  white-space: normal;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  position: static;
  overflow: visible;
}

.tw\:focus-visible\:outline:focus-visible {
  outline-style: var(--tw-outline-style);
  outline-width: 1px;
}

.tw\:focus-visible\:outline-2:focus-visible {
  outline-style: var(--tw-outline-style);
  outline-width: 2px;
}

.tw\:focus-visible\:outline-offset-2:focus-visible {
  outline-offset: 2px;
}

.tw\:focus-visible\:outline-scholar-primary:focus-visible {
  outline-color: var(--tw-color-scholar-primary);
}

.tw\:active\:cursor-grabbing:active {
  cursor: grabbing;
}

.tw\:disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.tw\:disabled\:bg-black\/10:disabled {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:disabled\:bg-black\/10:disabled {
    background-color: color-mix(in oklab, var(--tw-color-black) 10%, transparent);
  }
}

.tw\:disabled\:text-scholar-ink\/40:disabled {
  color: var(--tw-color-scholar-ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:disabled\:text-scholar-ink\/40:disabled {
    color: color-mix(in oklab, var(--tw-color-scholar-ink) 40%, transparent);
  }
}

.tw\:disabled\:opacity-40:disabled {
  opacity: .4;
}

.tw\:disabled\:opacity-50:disabled {
  opacity: .5;
}

.tw\:disabled\:opacity-60:disabled {
  opacity: .6;
}

@media (min-width: 40rem) {
  .tw\:sm\:mb-6 {
    margin-bottom: calc(var(--tw-spacing) * 6);
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:w-64 {
    width: calc(var(--tw-spacing) * 64);
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:w-auto {
    width: auto;
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:w-fit {
    width: fit-content;
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:grid-cols-\[minmax\(0\,1fr\)_auto\] {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:justify-end {
    justify-content: flex-end;
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:p-5 {
    padding: calc(var(--tw-spacing) * 5);
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:px-4 {
    padding-inline: calc(var(--tw-spacing) * 4);
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:px-6 {
    padding-inline: calc(var(--tw-spacing) * 6);
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:py-6 {
    padding-block: calc(var(--tw-spacing) * 6);
  }
}

@media (min-width: 40rem) {
  .tw\:sm\:text-\[0\.95rem\] {
    font-size: .95rem;
  }
}

@media (min-width: 48rem) {
  .tw\:md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .tw\:md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .tw\:md\:px-8 {
    padding-inline: calc(var(--tw-spacing) * 8);
  }
}

@media (min-width: 48rem) {
  .tw\:md\:pt-8 {
    padding-top: calc(var(--tw-spacing) * 8);
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:sticky {
    position: sticky;
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:top-4 {
    top: calc(var(--tw-spacing) * 4);
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,22rem\)\] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(18rem\,0\.75fr\)\] {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, .75fr);
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:px-8 {
    padding-inline: calc(var(--tw-spacing) * 8);
  }
}

@media (min-width: 64rem) {
  .tw\:lg\:py-8 {
    padding-block: calc(var(--tw-spacing) * 8);
  }
}

.tw\:dark\:border-amber-300\/25:is(.dark, .dark *) {
  border-color: var(--tw-color-amber-300);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-amber-300\/25:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-amber-300) 25%, transparent);
  }
}

.tw\:dark\:border-red-300\/25:is(.dark, .dark *) {
  border-color: var(--tw-color-red-300);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-red-300\/25:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-red-300) 25%, transparent);
  }
}

.tw\:dark\:border-red-300\/30:is(.dark, .dark *) {
  border-color: var(--tw-color-red-300);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-red-300\/30:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-red-300) 30%, transparent);
  }
}

.tw\:dark\:border-white:is(.dark, .dark *) {
  border-color: var(--tw-color-white);
}

.tw\:dark\:border-white\/10:is(.dark, .dark *) {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-white\/10:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-white) 10%, transparent);
  }
}

.tw\:dark\:border-white\/12:is(.dark, .dark *) {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-white\/12:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-white) 12%, transparent);
  }
}

.tw\:dark\:border-white\/15:is(.dark, .dark *) {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-white\/15:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-white) 15%, transparent);
  }
}

.tw\:dark\:border-white\/50:is(.dark, .dark *) {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-white\/50:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-white) 50%, transparent);
  }
}

.tw\:dark\:border-white\/60:is(.dark, .dark *) {
  border-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:border-white\/60:is(.dark, .dark *) {
    border-color: color-mix(in oklab, var(--tw-color-white) 60%, transparent);
  }
}

.tw\:dark\:bg-amber-400\/10:is(.dark, .dark *) {
  background-color: var(--tw-color-amber-400);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-amber-400\/10:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-amber-400) 10%, transparent);
  }
}

.tw\:dark\:bg-amber-400\/15:is(.dark, .dark *) {
  background-color: var(--tw-color-amber-400);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-amber-400\/15:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-amber-400) 15%, transparent);
  }
}

.tw\:dark\:bg-black\/60:is(.dark, .dark *) {
  background-color: var(--tw-color-black);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-black\/60:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-black) 60%, transparent);
  }
}

.tw\:dark\:bg-red-500\/10:is(.dark, .dark *) {
  background-color: var(--tw-color-red-500);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-red-500\/10:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-red-500) 10%, transparent);
  }
}

.tw\:dark\:bg-scholar-dark\/70:is(.dark, .dark *) {
  background-color: var(--tw-color-scholar-dark);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-scholar-dark\/70:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-scholar-dark) 70%, transparent);
  }
}

.tw\:dark\:bg-transparent:is(.dark, .dark *) {
  background-color: #0000;
}

.tw\:dark\:bg-white:is(.dark, .dark *) {
  background-color: var(--tw-color-white);
}

.tw\:dark\:bg-white\/5:is(.dark, .dark *) {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-white\/5:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-white) 5%, transparent);
  }
}

.tw\:dark\:bg-white\/8:is(.dark, .dark *) {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-white\/8:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-white) 8%, transparent);
  }
}

.tw\:dark\:bg-white\/10:is(.dark, .dark *) {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-white\/10:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-white) 10%, transparent);
  }
}

.tw\:dark\:bg-white\/15:is(.dark, .dark *) {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-white\/15:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-white) 15%, transparent);
  }
}

.tw\:dark\:bg-white\/80:is(.dark, .dark *) {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:bg-white\/80:is(.dark, .dark *) {
    background-color: color-mix(in oklab, var(--tw-color-white) 80%, transparent);
  }
}

.tw\:dark\:text-amber-100:is(.dark, .dark *) {
  color: var(--tw-color-amber-100);
}

.tw\:dark\:text-amber-200:is(.dark, .dark *) {
  color: var(--tw-color-amber-200);
}

.tw\:dark\:text-amber-300:is(.dark, .dark *) {
  color: var(--tw-color-amber-300);
}

.tw\:dark\:text-red-200:is(.dark, .dark *) {
  color: var(--tw-color-red-200);
}

.tw\:dark\:text-red-300:is(.dark, .dark *) {
  color: var(--tw-color-red-300);
}

.tw\:dark\:text-red-400:is(.dark, .dark *) {
  color: var(--tw-color-red-400);
}

.tw\:dark\:text-scholar-dark:is(.dark, .dark *) {
  color: var(--tw-color-scholar-dark);
}

.tw\:dark\:text-white:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

.tw\:dark\:text-white\/45:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/45:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 45%, transparent);
  }
}

.tw\:dark\:text-white\/50:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/50:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 50%, transparent);
  }
}

.tw\:dark\:text-white\/55:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/55:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 55%, transparent);
  }
}

.tw\:dark\:text-white\/60:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/60:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 60%, transparent);
  }
}

.tw\:dark\:text-white\/65:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/65:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 65%, transparent);
  }
}

.tw\:dark\:text-white\/70:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/70:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 70%, transparent);
  }
}

.tw\:dark\:text-white\/75:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/75:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 75%, transparent);
  }
}

.tw\:dark\:text-white\/80:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/80:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 80%, transparent);
  }
}

.tw\:dark\:text-white\/85:is(.dark, .dark *) {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:text-white\/85:is(.dark, .dark *) {
    color: color-mix(in oklab, var(--tw-color-white) 85%, transparent);
  }
}

@media (hover: hover) {
  .tw\:dark\:hover\:bg-red-500\/15:is(.dark, .dark *):hover {
    background-color: var(--tw-color-red-500);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .tw\:dark\:hover\:bg-red-500\/15:is(.dark, .dark *):hover {
      background-color: color-mix(in oklab, var(--tw-color-red-500) 15%, transparent);
    }
  }
}

@media (hover: hover) {
  .tw\:dark\:hover\:bg-white\/5:is(.dark, .dark *):hover {
    background-color: var(--tw-color-white);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .tw\:dark\:hover\:bg-white\/5:is(.dark, .dark *):hover {
      background-color: color-mix(in oklab, var(--tw-color-white) 5%, transparent);
    }
  }
}

@media (hover: hover) {
  .tw\:dark\:hover\:bg-white\/10:is(.dark, .dark *):hover {
    background-color: var(--tw-color-white);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .tw\:dark\:hover\:bg-white\/10:is(.dark, .dark *):hover {
      background-color: color-mix(in oklab, var(--tw-color-white) 10%, transparent);
    }
  }
}

@media (hover: hover) {
  .tw\:dark\:hover\:text-white:is(.dark, .dark *):hover {
    color: var(--tw-color-white);
  }
}

.tw\:dark\:disabled\:bg-white\/10:is(.dark, .dark *):disabled {
  background-color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:disabled\:bg-white\/10:is(.dark, .dark *):disabled {
    background-color: color-mix(in oklab, var(--tw-color-white) 10%, transparent);
  }
}

.tw\:dark\:disabled\:text-white\/40:is(.dark, .dark *):disabled {
  color: var(--tw-color-white);
}

@supports (color: color-mix(in lab, red, red)) {
  .tw\:dark\:disabled\:text-white\/40:is(.dark, .dark *):disabled {
    color: color-mix(in oklab, var(--tw-color-white) 40%, transparent);
  }
}

@media (pointer: fine) {
  .tw\:pointer-fine\:min-h-9 {
    min-height: calc(var(--tw-spacing) * 9);
  }
}

@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-leading {
  syntax: "*";
  inherits: false
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-tracking {
  syntax: "*";
  inherits: false
}

@property --tw-ordinal {
  syntax: "*";
  inherits: false
}

@property --tw-slashed-zero {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-figure {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-duration {
  syntax: "*";
  inherits: false
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

/* [project]/node_modules/katex/dist/katex.min.css [app-client] (css) */
@font-face {
  font-display: block;
  font-family: KaTeX_AMS;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_AMS-Regular.25ieegmnh38ts.woff2") format("woff2"), url("../media/KaTeX_AMS-Regular.10y3kupq4t663.woff") format("woff"), url("../media/KaTeX_AMS-Regular.418dr7cz3fo2x.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 700;
  src: url("../media/KaTeX_Caligraphic-Bold.06b-ya9t43ioz.woff2") format("woff2"), url("../media/KaTeX_Caligraphic-Bold.2vmk2hva4ctha.woff") format("woff"), url("../media/KaTeX_Caligraphic-Bold.40ltxhe834pns.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Caligraphic-Regular.2eph4dlhid_m9.woff2") format("woff2"), url("../media/KaTeX_Caligraphic-Regular.3gxeetazf831f.woff") format("woff"), url("../media/KaTeX_Caligraphic-Regular.07-7u27-nhn_r.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 700;
  src: url("../media/KaTeX_Fraktur-Bold.2sasz-d-jtw8y.woff2") format("woff2"), url("../media/KaTeX_Fraktur-Bold.1alcy76__wdj2.woff") format("woff"), url("../media/KaTeX_Fraktur-Bold.19yqa_tc9d_gx.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Fraktur-Regular.2d10y4xmjvzlf.woff2") format("woff2"), url("../media/KaTeX_Fraktur-Regular.110oo81prr9n5.woff") format("woff"), url("../media/KaTeX_Fraktur-Regular.2qhy34r6a05dn.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 700;
  src: url("../media/KaTeX_Main-Bold.3-rowy8o6_4ky.woff2") format("woff2"), url("../media/KaTeX_Main-Bold.0v1esh257kqpe.woff") format("woff"), url("../media/KaTeX_Main-Bold.0us_n0tnxlxu7.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 700;
  src: url("../media/KaTeX_Main-BoldItalic.14r2naom8mrec.woff2") format("woff2"), url("../media/KaTeX_Main-BoldItalic.13355ck5zr48q.woff") format("woff"), url("../media/KaTeX_Main-BoldItalic.3x_u9cepaced0.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 400;
  src: url("../media/KaTeX_Main-Italic.0lig0v9j0700p.woff2") format("woff2"), url("../media/KaTeX_Main-Italic.0afv392dj4w59.woff") format("woff"), url("../media/KaTeX_Main-Italic.2hkw3230mfwcv.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Main-Regular.1ryvsdzh2w1_e.woff2") format("woff2"), url("../media/KaTeX_Main-Regular.15u8r3b2y7fv4.woff") format("woff"), url("../media/KaTeX_Main-Regular.0symfa7dqj6jd.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 700;
  src: url("../media/KaTeX_Math-BoldItalic.1oopuu636h4il.woff2") format("woff2"), url("../media/KaTeX_Math-BoldItalic.12pl58orkw9rg.woff") format("woff"), url("../media/KaTeX_Math-BoldItalic.0y5w36a5aq__2.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 400;
  src: url("../media/KaTeX_Math-Italic.32405s1aq8vas.woff2") format("woff2"), url("../media/KaTeX_Math-Italic.0w0b1ugh62cfr.woff") format("woff"), url("../media/KaTeX_Math-Italic.2vkekfblmz5nb.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_SansSerif;
  font-style: normal;
  font-weight: 700;
  src: url("../media/KaTeX_SansSerif-Bold.0h3wi2z_eouyg.woff2") format("woff2"), url("../media/KaTeX_SansSerif-Bold.1ovw5p-yjp56g.woff") format("woff"), url("../media/KaTeX_SansSerif-Bold.2d03q85pwxpti.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_SansSerif;
  font-style: italic;
  font-weight: 400;
  src: url("../media/KaTeX_SansSerif-Italic.0wkjc4dm2kcit.woff2") format("woff2"), url("../media/KaTeX_SansSerif-Italic.1qavw__2zz8gk.woff") format("woff"), url("../media/KaTeX_SansSerif-Italic.3i-q087b23-m8.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_SansSerif;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_SansSerif-Regular.2peiewu59z3d-.woff2") format("woff2"), url("../media/KaTeX_SansSerif-Regular.1i4afx8nk8n4r.woff") format("woff"), url("../media/KaTeX_SansSerif-Regular.31pbu25feko_c.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Script;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Script-Regular.11h14300o9pd0.woff2") format("woff2"), url("../media/KaTeX_Script-Regular.3110jb9c-bxna.woff") format("woff"), url("../media/KaTeX_Script-Regular.28p_x7iz71ofe.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Size1;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Size1-Regular.03lhvx36ekcou.woff2") format("woff2"), url("../media/KaTeX_Size1-Regular.1slf4bh0hc6vm.woff") format("woff"), url("../media/KaTeX_Size1-Regular.1y57-ck23ey8c.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Size2;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Size2-Regular.14s5gg-puz6h-.woff2") format("woff2"), url("../media/KaTeX_Size2-Regular.0-kwyvx03omo8.woff") format("woff"), url("../media/KaTeX_Size2-Regular.2u0s-b07k2o9m.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Size3;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Size3-Regular.1n1rgzz84z8r9.woff2") format("woff2"), url("../media/KaTeX_Size3-Regular.04o9a_02gu_e8.woff") format("woff"), url("../media/KaTeX_Size3-Regular.1pkn-dge4q0fv.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Size4;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Size4-Regular.2sgotkdv3dcyv.woff2") format("woff2"), url("../media/KaTeX_Size4-Regular.3p2r1l7xmebxv.woff") format("woff"), url("../media/KaTeX_Size4-Regular.2uelkfk2yna5e.ttf") format("truetype");
}

@font-face {
  font-display: block;
  font-family: KaTeX_Typewriter;
  font-style: normal;
  font-weight: 400;
  src: url("../media/KaTeX_Typewriter-Regular.11gr2d2wuwz77.woff2") format("woff2"), url("../media/KaTeX_Typewriter-Regular.12f8myjij3617.woff") format("woff"), url("../media/KaTeX_Typewriter-Regular.3nee9kjfy6nm8.ttf") format("truetype");
}

.katex {
  text-indent: 0;
  text-rendering: auto;
  font: 1.21em / 1.2 KaTeX_Main, Times New Roman, serif;
  position: relative;
}

.katex * {
  border-color: currentColor;
  -ms-high-contrast-adjust: none !important;
}

.katex .katex-version:after {
  content: "0.18.5";
}

.katex .katex-mathml {
  clip-path: inset(50%);
  border: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.katex .katex-html > .katex-newline {
  display: block;
}

.katex .katex-base {
  white-space: nowrap;
  width: min-content;
  position: relative;
}

.katex .katex-base, .katex .katex-strut {
  display: inline-block;
}

.katex .textbf {
  font-weight: 700;
}

.katex .textit {
  font-style: italic;
}

.katex .textrm {
  font-family: KaTeX_Main;
}

.katex .textsf {
  font-family: KaTeX_SansSerif;
}

.katex .texttt {
  font-family: KaTeX_Typewriter;
}

.katex .mathnormal {
  font-family: KaTeX_Math;
  font-style: italic;
}

.katex .mathit {
  font-family: KaTeX_Main;
  font-style: italic;
}

.katex .mathrm {
  font-style: normal;
}

.katex .mathbf {
  font-family: KaTeX_Main;
  font-weight: 700;
}

.katex .boldsymbol {
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 700;
}

.katex .amsrm, .katex .mathbb, .katex .textbb {
  font-family: KaTeX_AMS;
}

.katex .mathcal {
  font-family: KaTeX_Caligraphic;
}

.katex .mathfrak, .katex .textfrak {
  font-family: KaTeX_Fraktur;
}

.katex .mathboldfrak, .katex .textboldfrak {
  font-family: KaTeX_Fraktur;
  font-weight: 700;
}

.katex .mathtt {
  font-family: KaTeX_Typewriter;
}

.katex .mathscr, .katex .textscr {
  font-family: KaTeX_Script;
}

.katex .mathsf, .katex .textsf {
  font-family: KaTeX_SansSerif;
}

.katex .mathboldsf, .katex .textboldsf {
  font-family: KaTeX_SansSerif;
  font-weight: 700;
}

.katex .mathitsf, .katex .mathsfit, .katex .textitsf {
  font-family: KaTeX_SansSerif;
  font-style: italic;
}

.katex .mainrm {
  font-family: KaTeX_Main;
  font-style: normal;
}

.katex .vlist-t {
  border-collapse: collapse;
  table-layout: fixed;
  display: inline-table;
}

.katex .vlist-r {
  display: table-row;
}

.katex .vlist {
  vertical-align: bottom;
  display: table-cell;
  position: relative;
}

.katex .vlist > span {
  height: 0;
  display: block;
  position: relative;
}

.katex .vlist > span > span {
  display: inline-block;
}

.katex .vlist > span > .pstrut {
  width: 0;
  overflow: hidden;
}

.katex .vlist-t2 {
  margin-right: -2px;
}

.katex .vlist-s {
  vertical-align: bottom;
  width: 2px;
  min-width: 2px;
  font-size: 1px;
  display: table-cell;
}

.katex .katex-vbox {
  flex-direction: column;
  align-items: baseline;
  display: inline-flex;
}

.katex .katex-thinbox {
  flex-direction: row;
  width: 0;
  max-width: 0;
  display: inline-flex;
}

.katex .msupsub {
  text-align: left;
}

.katex .mfrac > span > span {
  text-align: center;
}

.katex .mfrac .frac-line {
  border-bottom-style: solid;
  width: 100%;
  display: inline-block;
}

.katex .katex-hdashline, .katex .katex-hline, .katex .katex-overline .overline-line, .katex .katex-rule, .katex .katex-underline .underline-line, .katex .mfrac .frac-line {
  min-height: 1px;
}

.katex .mspace {
  display: inline-block;
}

.katex .katex-smash {
  line-height: 0;
  display: inline;
}

.katex .clap, .katex .llap, .katex .rlap {
  width: 0;
  position: relative;
}

.katex .clap > .katex-inner, .katex .llap > .katex-inner, .katex .rlap > .katex-inner {
  position: absolute;
}

.katex .clap > .katex-fix, .katex .llap > .katex-fix, .katex .rlap > .katex-fix {
  display: inline-block;
}

.katex .llap > .katex-inner {
  right: 0;
}

.katex .clap > .katex-inner, .katex .rlap > .katex-inner {
  left: 0;
}

.katex .clap > .katex-inner > span {
  margin-left: -50%;
  margin-right: 50%;
}

.katex .katex-rule {
  border: 0 solid;
  display: inline-block;
  position: relative;
}

.katex .katex-hline, .katex .katex-overline .overline-line, .katex .katex-underline .underline-line {
  border-bottom-style: solid;
  width: 100%;
  display: inline-block;
}

.katex .katex-hdashline {
  border-bottom-style: dashed;
  width: 100%;
  display: inline-block;
}

.katex .sqrt > .katex-root {
  margin-left: .277778em;
  margin-right: -.555556em;
}

.katex .fontsize-ensurer.reset-size1.size1, .katex .katex-sizing.reset-size1.size1 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size1.size2, .katex .katex-sizing.reset-size1.size2 {
  font-size: 1.2em;
}

.katex .fontsize-ensurer.reset-size1.size3, .katex .katex-sizing.reset-size1.size3 {
  font-size: 1.4em;
}

.katex .fontsize-ensurer.reset-size1.size4, .katex .katex-sizing.reset-size1.size4 {
  font-size: 1.6em;
}

.katex .fontsize-ensurer.reset-size1.size5, .katex .katex-sizing.reset-size1.size5 {
  font-size: 1.8em;
}

.katex .fontsize-ensurer.reset-size1.size6, .katex .katex-sizing.reset-size1.size6 {
  font-size: 2em;
}

.katex .fontsize-ensurer.reset-size1.size7, .katex .katex-sizing.reset-size1.size7 {
  font-size: 2.4em;
}

.katex .fontsize-ensurer.reset-size1.size8, .katex .katex-sizing.reset-size1.size8 {
  font-size: 2.88em;
}

.katex .fontsize-ensurer.reset-size1.size9, .katex .katex-sizing.reset-size1.size9 {
  font-size: 3.456em;
}

.katex .fontsize-ensurer.reset-size1.size10, .katex .katex-sizing.reset-size1.size10 {
  font-size: 4.148em;
}

.katex .fontsize-ensurer.reset-size1.size11, .katex .katex-sizing.reset-size1.size11 {
  font-size: 4.976em;
}

.katex .fontsize-ensurer.reset-size2.size1, .katex .katex-sizing.reset-size2.size1 {
  font-size: .833333em;
}

.katex .fontsize-ensurer.reset-size2.size2, .katex .katex-sizing.reset-size2.size2 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size2.size3, .katex .katex-sizing.reset-size2.size3 {
  font-size: 1.16667em;
}

.katex .fontsize-ensurer.reset-size2.size4, .katex .katex-sizing.reset-size2.size4 {
  font-size: 1.33333em;
}

.katex .fontsize-ensurer.reset-size2.size5, .katex .katex-sizing.reset-size2.size5 {
  font-size: 1.5em;
}

.katex .fontsize-ensurer.reset-size2.size6, .katex .katex-sizing.reset-size2.size6 {
  font-size: 1.66667em;
}

.katex .fontsize-ensurer.reset-size2.size7, .katex .katex-sizing.reset-size2.size7 {
  font-size: 2em;
}

.katex .fontsize-ensurer.reset-size2.size8, .katex .katex-sizing.reset-size2.size8 {
  font-size: 2.4em;
}

.katex .fontsize-ensurer.reset-size2.size9, .katex .katex-sizing.reset-size2.size9 {
  font-size: 2.88em;
}

.katex .fontsize-ensurer.reset-size2.size10, .katex .katex-sizing.reset-size2.size10 {
  font-size: 3.45667em;
}

.katex .fontsize-ensurer.reset-size2.size11, .katex .katex-sizing.reset-size2.size11 {
  font-size: 4.14667em;
}

.katex .fontsize-ensurer.reset-size3.size1, .katex .katex-sizing.reset-size3.size1 {
  font-size: .714286em;
}

.katex .fontsize-ensurer.reset-size3.size2, .katex .katex-sizing.reset-size3.size2 {
  font-size: .857143em;
}

.katex .fontsize-ensurer.reset-size3.size3, .katex .katex-sizing.reset-size3.size3 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size3.size4, .katex .katex-sizing.reset-size3.size4 {
  font-size: 1.14286em;
}

.katex .fontsize-ensurer.reset-size3.size5, .katex .katex-sizing.reset-size3.size5 {
  font-size: 1.28571em;
}

.katex .fontsize-ensurer.reset-size3.size6, .katex .katex-sizing.reset-size3.size6 {
  font-size: 1.42857em;
}

.katex .fontsize-ensurer.reset-size3.size7, .katex .katex-sizing.reset-size3.size7 {
  font-size: 1.71429em;
}

.katex .fontsize-ensurer.reset-size3.size8, .katex .katex-sizing.reset-size3.size8 {
  font-size: 2.05714em;
}

.katex .fontsize-ensurer.reset-size3.size9, .katex .katex-sizing.reset-size3.size9 {
  font-size: 2.46857em;
}

.katex .fontsize-ensurer.reset-size3.size10, .katex .katex-sizing.reset-size3.size10 {
  font-size: 2.96286em;
}

.katex .fontsize-ensurer.reset-size3.size11, .katex .katex-sizing.reset-size3.size11 {
  font-size: 3.55429em;
}

.katex .fontsize-ensurer.reset-size4.size1, .katex .katex-sizing.reset-size4.size1 {
  font-size: .625em;
}

.katex .fontsize-ensurer.reset-size4.size2, .katex .katex-sizing.reset-size4.size2 {
  font-size: .75em;
}

.katex .fontsize-ensurer.reset-size4.size3, .katex .katex-sizing.reset-size4.size3 {
  font-size: .875em;
}

.katex .fontsize-ensurer.reset-size4.size4, .katex .katex-sizing.reset-size4.size4 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size4.size5, .katex .katex-sizing.reset-size4.size5 {
  font-size: 1.125em;
}

.katex .fontsize-ensurer.reset-size4.size6, .katex .katex-sizing.reset-size4.size6 {
  font-size: 1.25em;
}

.katex .fontsize-ensurer.reset-size4.size7, .katex .katex-sizing.reset-size4.size7 {
  font-size: 1.5em;
}

.katex .fontsize-ensurer.reset-size4.size8, .katex .katex-sizing.reset-size4.size8 {
  font-size: 1.8em;
}

.katex .fontsize-ensurer.reset-size4.size9, .katex .katex-sizing.reset-size4.size9 {
  font-size: 2.16em;
}

.katex .fontsize-ensurer.reset-size4.size10, .katex .katex-sizing.reset-size4.size10 {
  font-size: 2.5925em;
}

.katex .fontsize-ensurer.reset-size4.size11, .katex .katex-sizing.reset-size4.size11 {
  font-size: 3.11em;
}

.katex .fontsize-ensurer.reset-size5.size1, .katex .katex-sizing.reset-size5.size1 {
  font-size: .555556em;
}

.katex .fontsize-ensurer.reset-size5.size2, .katex .katex-sizing.reset-size5.size2 {
  font-size: .666667em;
}

.katex .fontsize-ensurer.reset-size5.size3, .katex .katex-sizing.reset-size5.size3 {
  font-size: .777778em;
}

.katex .fontsize-ensurer.reset-size5.size4, .katex .katex-sizing.reset-size5.size4 {
  font-size: .888889em;
}

.katex .fontsize-ensurer.reset-size5.size5, .katex .katex-sizing.reset-size5.size5 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size5.size6, .katex .katex-sizing.reset-size5.size6 {
  font-size: 1.11111em;
}

.katex .fontsize-ensurer.reset-size5.size7, .katex .katex-sizing.reset-size5.size7 {
  font-size: 1.33333em;
}

.katex .fontsize-ensurer.reset-size5.size8, .katex .katex-sizing.reset-size5.size8 {
  font-size: 1.6em;
}

.katex .fontsize-ensurer.reset-size5.size9, .katex .katex-sizing.reset-size5.size9 {
  font-size: 1.92em;
}

.katex .fontsize-ensurer.reset-size5.size10, .katex .katex-sizing.reset-size5.size10 {
  font-size: 2.30444em;
}

.katex .fontsize-ensurer.reset-size5.size11, .katex .katex-sizing.reset-size5.size11 {
  font-size: 2.76444em;
}

.katex .fontsize-ensurer.reset-size6.size1, .katex .katex-sizing.reset-size6.size1 {
  font-size: .5em;
}

.katex .fontsize-ensurer.reset-size6.size2, .katex .katex-sizing.reset-size6.size2 {
  font-size: .6em;
}

.katex .fontsize-ensurer.reset-size6.size3, .katex .katex-sizing.reset-size6.size3 {
  font-size: .7em;
}

.katex .fontsize-ensurer.reset-size6.size4, .katex .katex-sizing.reset-size6.size4 {
  font-size: .8em;
}

.katex .fontsize-ensurer.reset-size6.size5, .katex .katex-sizing.reset-size6.size5 {
  font-size: .9em;
}

.katex .fontsize-ensurer.reset-size6.size6, .katex .katex-sizing.reset-size6.size6 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size6.size7, .katex .katex-sizing.reset-size6.size7 {
  font-size: 1.2em;
}

.katex .fontsize-ensurer.reset-size6.size8, .katex .katex-sizing.reset-size6.size8 {
  font-size: 1.44em;
}

.katex .fontsize-ensurer.reset-size6.size9, .katex .katex-sizing.reset-size6.size9 {
  font-size: 1.728em;
}

.katex .fontsize-ensurer.reset-size6.size10, .katex .katex-sizing.reset-size6.size10 {
  font-size: 2.074em;
}

.katex .fontsize-ensurer.reset-size6.size11, .katex .katex-sizing.reset-size6.size11 {
  font-size: 2.488em;
}

.katex .fontsize-ensurer.reset-size7.size1, .katex .katex-sizing.reset-size7.size1 {
  font-size: .416667em;
}

.katex .fontsize-ensurer.reset-size7.size2, .katex .katex-sizing.reset-size7.size2 {
  font-size: .5em;
}

.katex .fontsize-ensurer.reset-size7.size3, .katex .katex-sizing.reset-size7.size3 {
  font-size: .583333em;
}

.katex .fontsize-ensurer.reset-size7.size4, .katex .katex-sizing.reset-size7.size4 {
  font-size: .666667em;
}

.katex .fontsize-ensurer.reset-size7.size5, .katex .katex-sizing.reset-size7.size5 {
  font-size: .75em;
}

.katex .fontsize-ensurer.reset-size7.size6, .katex .katex-sizing.reset-size7.size6 {
  font-size: .833333em;
}

.katex .fontsize-ensurer.reset-size7.size7, .katex .katex-sizing.reset-size7.size7 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size7.size8, .katex .katex-sizing.reset-size7.size8 {
  font-size: 1.2em;
}

.katex .fontsize-ensurer.reset-size7.size9, .katex .katex-sizing.reset-size7.size9 {
  font-size: 1.44em;
}

.katex .fontsize-ensurer.reset-size7.size10, .katex .katex-sizing.reset-size7.size10 {
  font-size: 1.72833em;
}

.katex .fontsize-ensurer.reset-size7.size11, .katex .katex-sizing.reset-size7.size11 {
  font-size: 2.07333em;
}

.katex .fontsize-ensurer.reset-size8.size1, .katex .katex-sizing.reset-size8.size1 {
  font-size: .347222em;
}

.katex .fontsize-ensurer.reset-size8.size2, .katex .katex-sizing.reset-size8.size2 {
  font-size: .416667em;
}

.katex .fontsize-ensurer.reset-size8.size3, .katex .katex-sizing.reset-size8.size3 {
  font-size: .486111em;
}

.katex .fontsize-ensurer.reset-size8.size4, .katex .katex-sizing.reset-size8.size4 {
  font-size: .555556em;
}

.katex .fontsize-ensurer.reset-size8.size5, .katex .katex-sizing.reset-size8.size5 {
  font-size: .625em;
}

.katex .fontsize-ensurer.reset-size8.size6, .katex .katex-sizing.reset-size8.size6 {
  font-size: .694444em;
}

.katex .fontsize-ensurer.reset-size8.size7, .katex .katex-sizing.reset-size8.size7 {
  font-size: .833333em;
}

.katex .fontsize-ensurer.reset-size8.size8, .katex .katex-sizing.reset-size8.size8 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size8.size9, .katex .katex-sizing.reset-size8.size9 {
  font-size: 1.2em;
}

.katex .fontsize-ensurer.reset-size8.size10, .katex .katex-sizing.reset-size8.size10 {
  font-size: 1.44028em;
}

.katex .fontsize-ensurer.reset-size8.size11, .katex .katex-sizing.reset-size8.size11 {
  font-size: 1.72778em;
}

.katex .fontsize-ensurer.reset-size9.size1, .katex .katex-sizing.reset-size9.size1 {
  font-size: .289352em;
}

.katex .fontsize-ensurer.reset-size9.size2, .katex .katex-sizing.reset-size9.size2 {
  font-size: .347222em;
}

.katex .fontsize-ensurer.reset-size9.size3, .katex .katex-sizing.reset-size9.size3 {
  font-size: .405093em;
}

.katex .fontsize-ensurer.reset-size9.size4, .katex .katex-sizing.reset-size9.size4 {
  font-size: .462963em;
}

.katex .fontsize-ensurer.reset-size9.size5, .katex .katex-sizing.reset-size9.size5 {
  font-size: .520833em;
}

.katex .fontsize-ensurer.reset-size9.size6, .katex .katex-sizing.reset-size9.size6 {
  font-size: .578704em;
}

.katex .fontsize-ensurer.reset-size9.size7, .katex .katex-sizing.reset-size9.size7 {
  font-size: .694444em;
}

.katex .fontsize-ensurer.reset-size9.size8, .katex .katex-sizing.reset-size9.size8 {
  font-size: .833333em;
}

.katex .fontsize-ensurer.reset-size9.size9, .katex .katex-sizing.reset-size9.size9 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size9.size10, .katex .katex-sizing.reset-size9.size10 {
  font-size: 1.20023em;
}

.katex .fontsize-ensurer.reset-size9.size11, .katex .katex-sizing.reset-size9.size11 {
  font-size: 1.43981em;
}

.katex .fontsize-ensurer.reset-size10.size1, .katex .katex-sizing.reset-size10.size1 {
  font-size: .24108em;
}

.katex .fontsize-ensurer.reset-size10.size2, .katex .katex-sizing.reset-size10.size2 {
  font-size: .289296em;
}

.katex .fontsize-ensurer.reset-size10.size3, .katex .katex-sizing.reset-size10.size3 {
  font-size: .337512em;
}

.katex .fontsize-ensurer.reset-size10.size4, .katex .katex-sizing.reset-size10.size4 {
  font-size: .385728em;
}

.katex .fontsize-ensurer.reset-size10.size5, .katex .katex-sizing.reset-size10.size5 {
  font-size: .433944em;
}

.katex .fontsize-ensurer.reset-size10.size6, .katex .katex-sizing.reset-size10.size6 {
  font-size: .48216em;
}

.katex .fontsize-ensurer.reset-size10.size7, .katex .katex-sizing.reset-size10.size7 {
  font-size: .578592em;
}

.katex .fontsize-ensurer.reset-size10.size8, .katex .katex-sizing.reset-size10.size8 {
  font-size: .694311em;
}

.katex .fontsize-ensurer.reset-size10.size9, .katex .katex-sizing.reset-size10.size9 {
  font-size: .833173em;
}

.katex .fontsize-ensurer.reset-size10.size10, .katex .katex-sizing.reset-size10.size10 {
  font-size: 1em;
}

.katex .fontsize-ensurer.reset-size10.size11, .katex .katex-sizing.reset-size10.size11 {
  font-size: 1.19961em;
}

.katex .fontsize-ensurer.reset-size11.size1, .katex .katex-sizing.reset-size11.size1 {
  font-size: .200965em;
}

.katex .fontsize-ensurer.reset-size11.size2, .katex .katex-sizing.reset-size11.size2 {
  font-size: .241158em;
}

.katex .fontsize-ensurer.reset-size11.size3, .katex .katex-sizing.reset-size11.size3 {
  font-size: .281351em;
}

.katex .fontsize-ensurer.reset-size11.size4, .katex .katex-sizing.reset-size11.size4 {
  font-size: .321543em;
}

.katex .fontsize-ensurer.reset-size11.size5, .katex .katex-sizing.reset-size11.size5 {
  font-size: .361736em;
}

.katex .fontsize-ensurer.reset-size11.size6, .katex .katex-sizing.reset-size11.size6 {
  font-size: .401929em;
}

.katex .fontsize-ensurer.reset-size11.size7, .katex .katex-sizing.reset-size11.size7 {
  font-size: .482315em;
}

.katex .fontsize-ensurer.reset-size11.size8, .katex .katex-sizing.reset-size11.size8 {
  font-size: .578778em;
}

.katex .fontsize-ensurer.reset-size11.size9, .katex .katex-sizing.reset-size11.size9 {
  font-size: .694534em;
}

.katex .fontsize-ensurer.reset-size11.size10, .katex .katex-sizing.reset-size11.size10 {
  font-size: .833601em;
}

.katex .fontsize-ensurer.reset-size11.size11, .katex .katex-sizing.reset-size11.size11 {
  font-size: 1em;
}

.katex .delimsizing.size1 {
  font-family: KaTeX_Size1;
}

.katex .delimsizing.size2 {
  font-family: KaTeX_Size2;
}

.katex .delimsizing.size3 {
  font-family: KaTeX_Size3;
}

.katex .delimsizing.size4 {
  font-family: KaTeX_Size4;
}

.katex .delimsizing.mult .delim-size1 > span {
  font-family: KaTeX_Size1;
}

.katex .delimsizing.mult .delim-size4 > span {
  font-family: KaTeX_Size4;
}

.katex .nulldelimiter {
  width: .12em;
  display: inline-block;
}

.katex .delimcenter, .katex .op-symbol {
  position: relative;
}

.katex .op-symbol.small-op {
  font-family: KaTeX_Size1;
}

.katex .op-symbol.large-op {
  font-family: KaTeX_Size2;
}

.katex .katex-accent > .vlist-t, .katex .op-limits > .vlist-t {
  text-align: center;
}

.katex .katex-accent .accent-body {
  position: relative;
}

.katex .katex-accent .accent-body:not(.accent-full) {
  width: 0;
}

.katex .katex-overlay {
  display: block;
}

.katex .mtable .vertical-separator {
  min-width: 1px;
  display: inline-block;
}

.katex .mtable .arraycolsep {
  display: inline-block;
}

.katex .mtable .col-align-c > .vlist-t {
  text-align: center;
}

.katex .mtable .col-align-l > .vlist-t {
  text-align: left;
}

.katex .mtable .col-align-r > .vlist-t {
  text-align: right;
}

.katex .svg-align {
  text-align: left;
}

.katex svg {
  fill: currentColor;
  stroke: currentColor;
  height: inherit;
  width: 100%;
  display: block;
  position: absolute;
}

.katex svg path {
  stroke: none;
}

.katex svg {
  fill-rule: nonzero;
  fill-opacity: 1;
  stroke-width: 1px;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  stroke-opacity: 1;
}

.katex img {
  border-style: none;
  min-width: 0;
  max-width: none;
  min-height: 0;
  max-height: none;
}

.katex .katex-stretchy {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

.katex .katex-stretchy:after, .katex .katex-stretchy:before {
  content: "";
}

.katex .hide-tail {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.katex .halfarrow-left {
  width: 50.2%;
  position: absolute;
  left: 0;
  overflow: hidden;
}

.katex .halfarrow-right {
  width: 50.2%;
  position: absolute;
  right: 0;
  overflow: hidden;
}

.katex .brace-left {
  width: 25.1%;
  position: absolute;
  left: 0;
  overflow: hidden;
}

.katex .brace-center {
  width: 50%;
  position: absolute;
  left: 25%;
  overflow: hidden;
}

.katex .brace-right {
  width: 25.1%;
  position: absolute;
  right: 0;
  overflow: hidden;
}

.katex .x-arrow-pad {
  padding: 0 .5em;
}

.katex .cd-arrow-pad {
  padding: 0 .55556em 0 .27778em;
}

.katex .mover, .katex .munder, .katex .x-arrow {
  text-align: center;
}

.katex .boxpad {
  padding: 0 .3em;
}

.katex .fbox, .katex .fcolorbox {
  box-sizing: border-box;
  border: .04em solid;
}

.katex .cancel-pad {
  padding: 0 .2em;
}

.katex .cancel-lap {
  margin-left: -.2em;
  margin-right: -.2em;
}

.katex .katex-sout {
  border-bottom-style: solid;
  border-bottom-width: .08em;
}

.katex .angl {
  box-sizing: border-box;
  border-top: .049em solid;
  border-right: .049em solid;
  margin-right: .03889em;
}

.katex .anglpad {
  padding: 0 .03889em;
}

.katex .eqn-num:before {
  content: "(" counter(katexEqnNo) ")";
  counter-increment: katexEqnNo;
}

.katex .mml-eqn-num:before {
  content: "(" counter(mmlEqnNo) ")";
  counter-increment: mmlEqnNo;
}

.katex .mtr-glue {
  width: 50%;
}

.katex .cd-vert-arrow {
  display: inline-block;
  position: relative;
}

.katex .cd-label-left {
  text-align: left;
  display: inline-block;
  position: absolute;
  right: calc(50% + .3em);
}

.katex .cd-label-right {
  text-align: right;
  display: inline-block;
  position: absolute;
  left: calc(50% + .3em);
}

.katex-display {
  text-align: center;
  margin: 1em 0;
  display: block;
}

.katex-display > .katex {
  text-align: center;
  white-space: nowrap;
  display: block;
}

.katex-display > .katex > .katex-html {
  display: block;
  position: relative;
}

.katex-display > .katex > .katex-html > .katex-tag {
  position: absolute;
  right: 0;
}

.katex-display.leqno > .katex > .katex-html > .katex-tag {
  left: 0;
  right: auto;
}

.katex-display.fleqn > .katex {
  text-align: left;
  padding-left: 2em;
}

body {
  counter-reset: katexEqnNo mmlEqnNo;
}

/* [project]/styles/reader/configurable-chrome.css [app-client] (css) */
.toolbar-customizer-backdrop {
  z-index: 300;
  background: #0000009e;
  place-items: center;
  padding: 1rem;
  display: grid;
  position: fixed;
  inset: 0;
}

.toolbar-customizer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--reader-shell);
  width: min(88rem, 100%);
  height: min(56rem, 100dvh - 2rem);
  max-height: calc(100dvh - 2rem);
  color: var(--text);
  box-shadow: var(--reader-shadow);
  flex-direction: column;
  gap: .875rem;
  padding: 1.125rem;
  display: flex;
  overflow: hidden;
}

.toolbar-customizer__header, .toolbar-customizer__footer, .toolbar-customizer__tabs, .toolbar-customizer__notice {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.toolbar-customizer__header, .toolbar-customizer__notice, .toolbar-customizer__commandbar, .toolbar-customizer__footer {
  flex-shrink: 0;
}

.toolbar-customizer__header {
  justify-content: space-between;
}

.toolbar-customizer__header h2, .toolbar-customizer__header p {
  margin: 0;
}

.toolbar-customizer__header h2 {
  letter-spacing: -.035em;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
}

.toolbar-customizer__header p {
  max-width: 62ch;
  color: var(--muted);
  text-wrap: pretty;
  margin-top: .35rem;
}

.toolbar-customizer__notice {
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  flex-wrap: wrap;
  padding: .75rem;
}

.toolbar-customizer__commandbar {
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding-bottom: .125rem;
  display: flex;
}

.toolbar-customizer__tabs, .toolbar-customizer__preview-controls {
  border-radius: var(--radius-md);
  background: var(--reader-card);
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  display: flex;
}

.toolbar-customizer__commandbar button, .toolbar-customizer__notice button, .toolbar-customizer__footer button, .toolbar-customizer__inspector button, .toolbar-customizer__inspector select {
  border-radius: var(--radius-sm);
  min-height: 2.5rem;
  color: inherit;
  background: none;
  border: 1px solid #0000;
  transition: background .16s, border-color .16s, transform .12s;
}

.toolbar-customizer__commandbar button:hover, .toolbar-customizer__footer button:hover:not(:disabled), .toolbar-customizer__inspector button:hover {
  background: var(--brand-soft);
}

.toolbar-customizer__commandbar button:active, .toolbar-customizer__footer button:active:not(:disabled), .toolbar-customizer__inspector button:active {
  transform: translateY(1px);
}

.toolbar-customizer__tabs button.is-active, .toolbar-customizer__preview-controls button.is-active, .toolbar-customizer__priority-options button.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.toolbar-customizer__viewport-readout {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.toolbar-customizer__workbench {
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem);
  gap: .875rem;
  min-height: 0;
  display: grid;
}

.toolbar-customizer__canvas {
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--reader-card) 72%, var(--reader-shell));
  min-height: 0;
  padding: .875rem;
  overflow: auto;
}

.toolbar-customizer__screen-label {
  color: var(--muted);
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .625rem;
  font-size: .78rem;
  display: flex;
}

.toolbar-customizer__screen-label span:first-child {
  color: var(--text);
  font-weight: 650;
}

.toolbar-customizer__result {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--reader-shell);
  min-width: 0;
  margin-bottom: 1rem;
  padding: .7rem;
}

.toolbar-customizer__result > header {
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
  margin-bottom: .5rem;
  font-size: .78rem;
  display: flex;
}

.toolbar-customizer__result > header > span {
  color: var(--muted);
}

.toolbar-customizer__result > header > .is-dropping {
  color: var(--brand);
  font-weight: 650;
}

.toolbar-customizer__mini-viewport {
  padding-bottom: .35rem;
  overflow-x: auto;
}

.toolbar-customizer__mini-frame {
  height: 39.2px;
  margin-inline: auto;
}

.toolbar-customizer__mini-toolbar {
  transform-origin: 0 0;
  background: var(--reader-toolbar-bg);
  border-radius: var(--radius-sm);
  height: 56px;
  position: relative;
}

.toolbar-customizer__mini-zone {
  align-items: center;
  gap: 6px;
  display: flex;
  position: absolute;
  top: 6px;
}

.toolbar-customizer__mini-zone--left {
  left: 12px;
}

.toolbar-customizer__mini-zone--right {
  right: 12px;
}

.toolbar-customizer__mini-node {
  background: var(--reader-control-surface);
  height: 44px;
  color: var(--reader-control-fg);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.toolbar-customizer__mini-node.is-group {
  border-radius: var(--radius-md);
}

.toolbar-customizer__mini-node.is-moving {
  outline: 2px dashed var(--brand);
  outline-offset: 2px;
}

.toolbar-customizer__mini-control {
  white-space: nowrap;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: 36px;
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
}

.toolbar-customizer__mini-control svg {
  width: 22px;
  height: 22px;
}

.toolbar-customizer__mini-control.is-play {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  max-width: 36px;
}

.toolbar-customizer__mini-more {
  max-height: 3.75rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .35rem;
  font-size: .7rem;
  display: flex;
  overflow: auto;
}

.toolbar-customizer__mini-more > span {
  border-radius: var(--radius-sm);
  background: var(--reader-control-surface);
  padding: .2rem .4rem;
}

.toolbar-customizer__mini-more > span:first-child {
  color: var(--text);
  background: none;
  font-weight: 650;
}

.toolbar-customizer__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--reader-shell);
  min-height: 5.5rem;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent), 0 .6rem 1.8rem color-mix(in srgb, var(--reader-shell) 68%, transparent);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  display: grid;
}

.toolbar-customizer__dropzone {
  align-items: center;
  min-width: 0;
  padding: 1.55rem .5rem .45rem;
  transition: background .16s, box-shadow .16s;
  display: flex;
  position: relative;
}

.toolbar-customizer__dropzone--center {
  border-inline: 1px solid var(--line);
}

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

.toolbar-customizer__dropzone.is-drop-target, .toolbar-customizer__more-tray.is-drop-target {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.toolbar-customizer__zone-label {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .67rem;
  font-weight: 700;
  position: absolute;
  top: .38rem;
  left: .55rem;
}

.toolbar-customizer__dropzone ol, .toolbar-customizer__more-tray ol {
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

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

.toolbar-customizer__empty {
  min-width: 5rem;
  color: var(--muted);
  text-align: center;
  padding: .65rem;
  font-size: .75rem;
}

.toolbar-customizer__tile {
  border: 1px solid var(--line);
  background: var(--reader-card);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  border-radius: .75rem;
  align-items: center;
  gap: .35rem;
  min-width: 3rem;
  max-width: 13rem;
  min-height: 3rem;
  padding: .35rem .6rem .35rem .35rem;
  transition: border-color .15s, background .15s, box-shadow .15s, opacity .15s, transform .12s;
  display: inline-flex;
  position: relative;
}

.toolbar-customizer__tile:hover {
  border-color: color-mix(in srgb, var(--brand) 56%, var(--line));
  transform: translateY(-1px);
}

.toolbar-customizer__tile:active, .toolbar-customizer__tile.is-grabbed {
  cursor: grabbing;
  transform: scale(.98);
}

.toolbar-customizer__tile.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent);
}

.toolbar-customizer__tile.is-selected {
  background: var(--brand-soft);
}

.toolbar-customizer__tile.is-unavailable {
  opacity: .55;
}

.toolbar-customizer__tile.is-drop-target:before {
  content: "";
  inset-block: -.2rem;
  background: var(--brand);
  width: 4px;
  box-shadow: 0 0 0 2px var(--reader-shell);
  pointer-events: none;
  border-radius: 99px;
  position: absolute;
  left: -.3rem;
}

.toolbar-customizer__tile.is-drop-target[data-drop-edge="after"]:before {
  left: auto;
  right: -.3rem;
}

.toolbar-customizer__tile.is-drop-target:after {
  content: attr(data-drop-label);
  z-index: 2;
  background: var(--brand);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  border-radius: .3rem;
  padding: .2rem .4rem;
  font-size: .65rem;
  font-weight: 650;
  position: absolute;
  bottom: calc(100% + .25rem);
  left: -.3rem;
}

.toolbar-customizer__tile.is-drop-target[data-drop-edge="after"]:after {
  left: auto;
  right: -.3rem;
}

.toolbar-customizer__drop-placeholder {
  border: 2px dashed var(--brand);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  max-width: 13rem;
  min-height: 3rem;
  color: var(--brand);
  pointer-events: none;
  align-content: center;
  gap: .15rem;
  padding: .35rem .6rem;
  display: grid;
}

.toolbar-customizer__drop-placeholder span {
  font-size: .65rem;
}

.toolbar-customizer__drop-placeholder strong {
  overflow-wrap: anywhere;
  font-size: .78rem;
}

.toolbar-customizer__tile.is-compact .toolbar-customizer__tile-label {
  display: none;
}

.toolbar-customizer__tile-grip {
  width: 1.2rem;
  height: 2rem;
  color: var(--muted);
  touch-action: none;
  cursor: grab;
  flex: none;
  place-items: center;
  display: grid;
}

.toolbar-customizer__tile-grip svg {
  width: .85rem;
  height: 1.1rem;
}

.toolbar-customizer__tile-icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}

.toolbar-customizer__tile-icons {
  padding-left: .15rem;
  display: inline-flex;
}

.toolbar-customizer__tile-icons svg {
  background: var(--reader-card);
  border-radius: .25rem;
  width: 1rem;
  height: 1rem;
  margin-left: -.18rem;
  padding: .08rem;
}

.toolbar-customizer__tile-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: .8rem;
  font-weight: 620;
  overflow: hidden;
}

.toolbar-customizer__tile-select {
  cursor: pointer;
  flex: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: .1rem;
  display: grid;
}

.toolbar-customizer__tile-select input {
  width: .9rem;
  height: .9rem;
  accent-color: var(--brand);
}

.toolbar-customizer__availability {
  background: var(--muted);
  width: 1rem;
  height: 1rem;
  color: var(--reader-card);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
  display: grid;
}

.toolbar-customizer__more-tray {
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--muted));
  border-radius: var(--radius-lg);
  gap: .65rem;
  min-height: 7rem;
  margin-top: .875rem;
  padding: .75rem;
  transition: background .16s, box-shadow .16s;
  display: grid;
}

.toolbar-customizer__more-tray > header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  display: grid;
}

.toolbar-customizer__more-tray > header > svg {
  width: 1.25rem;
  height: 1.25rem;
}

.toolbar-customizer__more-tray h3, .toolbar-customizer__more-tray p {
  margin: 0;
}

.toolbar-customizer__more-tray p {
  color: var(--muted);
  font-size: .75rem;
}

.toolbar-customizer__more-tray > header > span {
  background: var(--reader-card);
  font-variant-numeric: tabular-nums;
  border-radius: 99px;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  display: grid;
}

.toolbar-customizer__inspector {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--reader-card);
  min-height: 0;
  padding: .9rem;
  overflow: auto;
}

.toolbar-customizer__inspector > h3 {
  overflow-wrap: anywhere;
  margin: 0 0 .75rem;
}

.toolbar-customizer__inspector > p {
  color: var(--muted);
  line-height: 1.45;
}

.toolbar-customizer__inspector-location, .toolbar-customizer__priority-label {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  display: grid;
}

.toolbar-customizer__inspector-location span {
  background: var(--brand-soft);
  color: var(--muted);
  border-radius: .35rem;
  padding: .3rem .45rem;
  font-size: .72rem;
}

.toolbar-customizer__priority-label {
  margin-top: 1rem;
}

.toolbar-customizer__priority-label output {
  font-variant-numeric: tabular-nums;
}

.toolbar-customizer__priority-label input {
  width: 100%;
  accent-color: var(--brand);
  grid-column: 1 / -1;
}

.toolbar-customizer__priority-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  margin-top: .45rem;
  display: grid;
}

.toolbar-customizer__group-members {
  gap: .35rem;
  margin-top: .75rem;
  display: grid;
}

.toolbar-customizer__group-members span {
  color: var(--muted);
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  display: flex;
}

.toolbar-customizer__group-members svg {
  width: 1rem;
  height: 1rem;
}

.toolbar-customizer__ungroup {
  width: 100%;
  margin-top: .75rem;
  border-color: var(--line) !important;
}

.toolbar-customizer__unavailable-note {
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  padding: .6rem;
  font-size: .78rem;
}

.toolbar-customizer__settings {
  border-top: 1px solid var(--line);
  gap: .7rem;
  margin-top: 1rem;
  padding-top: 1rem;
  display: grid;
}

.toolbar-customizer__settings label {
  color: var(--muted);
  gap: .35rem;
  font-size: .78rem;
  display: grid;
}

.toolbar-customizer__settings select {
  border-color: var(--line);
  background: var(--reader-shell);
  width: 100%;
  padding-inline: .55rem;
}

.toolbar-customizer__footer {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  padding-top: .75rem;
}

.toolbar-customizer__footer button {
  border-color: var(--line);
  background: var(--reader-card);
  padding-inline: .75rem;
}

.toolbar-customizer__footer button:last-child {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.toolbar-customizer__spacer {
  flex: 1;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .toolbar-customizer-backdrop {
    align-items: end;
    padding: 0;
  }

  .toolbar-customizer {
    width: 100%;
    height: calc(100dvh - env(safe-area-inset-top));
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: .875rem .75rem calc(.75rem + env(safe-area-inset-bottom));
  }

  .toolbar-customizer__header p {
    display: none;
  }

  .toolbar-customizer__commandbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .toolbar-customizer__preview-controls {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .toolbar-customizer__preview-controls button {
    flex: 1 0 auto;
  }

  .toolbar-customizer__viewport-readout {
    align-self: center;
  }

  .toolbar-customizer__workbench {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .toolbar-customizer__canvas {
    padding: .6rem;
    overflow: visible;
  }

  .toolbar-customizer__panel {
    grid-template-columns: 1fr;
  }

  .toolbar-customizer__dropzone {
    border-inline: 0;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
    min-height: 5rem;
  }

  .toolbar-customizer__dropzone:last-child {
    border-bottom: 0;
  }

  .toolbar-customizer__dropzone--right ol {
    justify-content: flex-start;
  }

  .toolbar-customizer__inspector {
    overflow: visible;
  }

  .toolbar-customizer__commandbar button, .toolbar-customizer__inspector button, .toolbar-customizer__inspector select, .toolbar-customizer__footer button, .toolbar-customizer__tabs button {
    min-height: 3rem;
  }

  .toolbar-customizer__footer {
    bottom: calc(-.75rem - env(safe-area-inset-bottom));
    z-index: 2;
    padding: .65rem 0 calc(.65rem + env(safe-area-inset-bottom));
    background: var(--reader-shell);
    flex-wrap: wrap;
    position: sticky;
  }

  .toolbar-customizer__footer .toolbar-customizer__spacer {
    display: none;
  }
}

.floating-tts-player {
  box-sizing: border-box;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  width: min(25rem, 100vw - 2rem);
  max-width: calc(100vw - 1rem);
  min-height: 3.5rem;
  color: var(--text);
  box-shadow: var(--reader-shadow);
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  display: flex;
  position: fixed;
}

.floating-tts-player--left .floating-tts-player__transport {
  order: -1;
}

.floating-tts-player__identity {
  min-width: 0;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  flex: 1;
  display: grid;
}

.floating-tts-player__identity strong, .floating-tts-player__identity span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.floating-tts-player__identity span {
  color: var(--muted);
  font-size: .78rem;
}

.floating-tts-player__transport {
  display: flex;
}

.floating-tts-player__transport button, .app-shell-mobile-more button, .app-shell-mobile-more a {
  min-width: 3rem;
  min-height: 3rem;
}

.floating-tts-player__transport button {
  color: inherit;
  background: none;
  border: 0;
  place-items: center;
  display: grid;
}

.floating-tts-player__transport svg {
  width: 1.2rem;
  height: 1.2rem;
}

.floating-tts-player__transport {
  flex: none;
}

.floating-tts-player__elapsed {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: .75rem;
}

.floating-tts-footer {
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-width: 0;
  display: flex;
}

.app-shell-mobile-more .modal-sheet__footer {
  display: block;
}

.modal-sheet-backdrop {
  z-index: 100;
  background: #00000080;
  justify-content: center;
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-sheet {
  width: min(40rem, 100%);
  max-height: calc(var(--visual-viewport-height, 100dvh) - max(env(safe-area-inset-top), 1rem));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--reader-shadow);
  flex-direction: column;
  transition: height .16s, transform .12s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.modal-sheet--half {
  height: min(50dvh, calc(var(--visual-viewport-height, 100dvh) * .5));
}

.modal-sheet--expanded {
  height: calc(var(--visual-viewport-height, 100dvh) - max(env(safe-area-inset-top), 1rem));
}

.modal-sheet__handle {
  touch-action: none;
  cursor: ns-resize;
  background: none;
  border: 0;
  flex: 0 0 2rem;
  place-items: center;
  display: grid;
  min-height: 2rem !important;
}

.modal-sheet__handle span {
  background: var(--line);
  border-radius: 999px;
  width: 2.75rem;
  height: .25rem;
}

.modal-sheet__header, .modal-sheet__footer {
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem 1rem;
  display: flex;
}

.modal-sheet__header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.modal-sheet__header > button {
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 50%;
  flex: 0 0 3rem;
  place-items: center;
  display: grid;
}

.modal-sheet__content {
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 0 1rem 1rem;
  overflow: auto;
}

.modal-sheet__footer {
  padding-top: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.reader-tool-sheet .modal-sheet__content {
  flex-direction: column;
  min-height: 0;
  display: flex;
}

.reader-tool-sheet__portal, .reader-tool-sheet-content {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.reader-tool-sheet-content > .reader-left-rail, .reader-tool-sheet-content > .reader-right-rail {
  height: 100%;
  min-height: 0;
  box-shadow: none;
  border: 0;
  width: 100% !important;
  max-width: none !important;
  position: static !important;
  inset: auto !important;
}

.reader-tool-sheet-content--search .toolbar-search {
  width: 100%;
  max-width: none;
}

.reader-tool-sheet .document-settings-popover--embedded {
  --surface: var(--panel);
  --border: var(--line);
  width: 100%;
  min-height: 0;
  max-height: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  flex: 1;
}

.app-shell-mobile-more-backdrop {
  display: none;
}

.toolbar-configured-control {
  align-items: center;
  min-width: 0;
  display: inline-flex;
}

.toolbar-menu-section .toolbar-configured-control {
  display: contents;
}

.toolbar-custom-group {
  align-items: center;
  gap: .2rem;
  display: inline-flex;
}

.toolbar-menu-inline-control {
  align-items: center;
  min-height: 3rem;
  display: flex;
}

.toolbar-menu-inline-control .toolbar-search {
  width: min(20rem, 100vw - 3rem);
}

.toolbar-main-row, .toolbar-group {
  flex-wrap: nowrap;
}

.reader-toolbar .toolbar-group--right {
  justify-self: end;
  width: max-content;
  margin-left: 0;
}

.toolbar-measurement-probes {
  contain: layout style;
  gap: .5rem;
  z-index: -1 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: max-content !important;
  max-width: none !important;
  height: auto !important;
  display: flex !important;
  position: fixed !important;
  inset: auto auto -10000px -10000px !important;
  overflow: visible !important;
}

.toolbar-search-panel {
  top: calc(100% + .5rem);
  right: max(.5rem, env(safe-area-inset-right));
  z-index: 130;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--reader-card);
  width: min(28rem, 100vw - 1rem);
  max-height: calc(100dvh - 5rem);
  box-shadow: var(--reader-shadow);
  margin-top: 0;
  padding: .45rem;
  position: absolute;
  overflow: auto;
}

.toolbar-menu-popover, .toolbar-layout-popover, .toolbar-tts-speed-popover, .toolbar-zoom-popover {
  overscroll-behavior: contain;
  max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 5rem);
  overflow: auto;
}

.reader-split-divider {
  touch-action: none;
}

.reader-split-divider:before {
  content: "";
  position: absolute;
  inset: 0 calc(-24px + .1875rem);
}

.reader-split-divider:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.reader-mobile-split-tools {
  display: none;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .app-shell-rail {
    display: none !important;
  }

  .app-shell-main {
    scroll-padding-bottom: var(--root-bottom-obstruction-height, calc(4.75rem + env(safe-area-inset-bottom)));
    padding-left: 0 !important;
    padding-bottom: var(--root-bottom-obstruction-height, calc(4.75rem + env(safe-area-inset-bottom))) !important;
  }

  .app-shell-mobile-nav {
    display: flex;
  }

  .app-shell-mobile-nav__item {
    min-height: 3rem;
    font: inherit;
    background: none;
    border: 0;
  }

  .app-shell-mobile-more-backdrop {
    display: flex;
  }

  .app-shell-mobile-more {
    width: 100%;
  }

  .app-shell-mobile-more header {
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .app-shell-mobile-more header h2 {
    margin: 0;
  }

  .app-shell-mobile-more header button {
    color: inherit;
    background: none;
    border: 0;
    place-items: center;
    display: grid;
  }

  .app-shell-mobile-more__links {
    gap: .5rem;
    margin-top: 1rem;
    display: grid;
  }

  .app-shell-mobile-more__links a, .app-shell-mobile-more__links button {
    border-radius: var(--radius-md);
    color: inherit;
    font: inherit;
    text-align: left;
    background: var(--reader-shell);
    border: 0;
    align-items: center;
    gap: .75rem;
    padding: 0 .75rem;
    text-decoration: none;
    display: flex;
  }

  .app-shell-mobile-more__links svg, .app-shell-mobile-more__avatar {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
  }

  .app-shell-mobile-more__avatar {
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    place-items: center;
    font-size: .6rem;
    display: grid;
  }

  .floating-tts-player {
    right: max(.5rem, env(safe-area-inset-right));
    bottom: var(--mobile-nav-obstruction-height, calc(4.75rem + env(safe-area-inset-bottom)));
    width: min(25rem, 100vw - 1rem);
    left: auto;
  }

  .floating-tts-player--left .floating-tts-player__transport {
    order: -1;
  }

  .reader-toolbar button, .reader-toolbar summary, .reader-toolbar input, .reader-toolbar select {
    min-height: 3rem;
  }

  .reader-toolbar button, .reader-toolbar summary {
    min-width: 3rem;
  }

  .reader-mobile-split-tools {
    padding: .5rem max(.5rem, env(safe-area-inset-right)) .5rem max(.5rem, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--reader-toolbar-bg);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    display: grid;
  }

  .reader-mobile-split-tools__documents {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    display: grid;
  }

  .reader-mobile-split-tools button {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--reader-control-surface);
    min-width: 3rem;
    min-height: 3rem;
    color: inherit;
    font: inherit;
  }

  .reader-mobile-split-tools__documents button {
    text-align: left;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
    padding-inline: .7rem;
    display: grid;
  }

  .reader-mobile-split-tools__documents button > span:last-child {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .reader-mobile-split-tools__documents button.is-active {
    border-color: var(--brand);
    color: var(--brand);
  }

  .reader-mobile-split-tools__ratio {
    gap: .15rem;
    min-width: 0;
    font-size: .75rem;
    display: grid;
  }

  .reader-mobile-split-tools__ratio input {
    width: 100%;
    min-height: 3rem;
    margin: 0;
  }

  .reader-mobile-split-tools__reset {
    padding-inline: .75rem;
  }

  .reader-toolbar .toolbar-main-row, [data-ui="v2"] .v2-reader-surface .reader-toolbar .toolbar-main-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: none;
    row-gap: 0;
    min-height: 4rem;
    display: grid;
  }

  .reader-toolbar .toolbar-group--left, .reader-toolbar .toolbar-group--center, .reader-toolbar .toolbar-group--right {
    grid-area: auto;
    min-width: 0;
  }
}

#root-overlay-host {
  display: contents;
}

.floating-tts-player[data-size] {
  --player-blue: #317dff;
  --player-soft: color-mix(in srgb, var(--player-blue) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: var(--panel, #fff);
  width: min(29.75rem, 100vw - 1rem);
  max-width: calc(100vw - 1rem);
  min-height: 95px;
  max-height: calc(100dvh - 2rem);
  box-shadow: 0 10px 36px color-mix(in srgb, var(--text, #172134) 14%, transparent), 0 2px 6px color-mix(in srgb, var(--text, #172134) 4%, transparent);
  font-variant-numeric: tabular-nums;
  isolation: isolate;
  border-radius: 1.15rem;
  padding: 7px 10px;
  display: block;
}

.floating-tts-player[data-size] button {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.floating-tts-player[data-size] button:hover:not(:disabled) {
  background-color: var(--player-soft);
}

.floating-tts-player[data-size] :is(button, input):focus-visible {
  outline: 2px solid var(--player-blue);
  outline-offset: 3px;
}

.floating-tts-player[data-size] :is(button, input):disabled {
  opacity: .4;
  cursor: default;
}

.floating-tts-player[data-size] svg {
  stroke-width: 1.7px;
  flex: none;
  width: 19px;
  height: 19px;
}

.floating-tts-player__top {
  align-items: center;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.floating-tts-player__artwork {
  width: 36px;
  height: 49px;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 10%, var(--panel));
  border-radius: 5px;
  flex: 0 0 36px;
  place-content: center;
  justify-items: center;
  display: grid;
  overflow: hidden;
}

.floating-tts-player__artwork img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.floating-tts-player__artwork span {
  letter-spacing: .05em;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
}

.floating-tts-player__document {
  flex: 1;
  gap: 4px;
  min-width: 0;
  padding-inline: 8px;
  display: grid;
}

.floating-tts-player__document strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  line-height: 1.4;
  overflow: hidden;
}

.floating-tts-player__document > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
  overflow: hidden;
}

.floating-tts-player[data-size] .floating-tts-player__transport {
  flex: none;
  order: 0;
  gap: 0;
  display: flex;
}

.floating-tts-player[data-size] .floating-tts-player__play {
  color: #fff;
  background: var(--player-blue);
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  box-shadow: 0 3px 10px #317dff22;
}

.floating-tts-player[data-size] .floating-tts-player__play:hover {
  background: #246ce4;
}

.floating-tts-player__timeline {
  gap: 0;
  margin: 2px 0 0 36px;
  display: grid;
}

.floating-tts-player__timeline input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  accent-color: var(--player-blue);
  cursor: pointer;
  margin: -10px 0 -18px;
}

.floating-tts-player__times {
  color: var(--muted);
  justify-content: space-between;
  gap: 8px;
  font-size: .65rem;
  display: flex;
}

.floating-tts-player[data-size="compact"] {
  border-radius: 999px;
  width: min(15rem, 100vw - 1rem);
  min-height: 52px;
  padding: 3px 8px;
}

.floating-tts-player[data-size="compact"] .floating-tts-player__top {
  justify-content: space-between;
  gap: 0;
}

.floating-tts-player[data-size="compact"] .floating-tts-player__elapsed {
  color: inherit;
  font-size: inherit;
  letter-spacing: -.04em;
}

.app-shell-player-toggle {
  --app-shell-player-accent: var(--brand);
  cursor: pointer;
}

html[data-theme="dark"] .app-shell-player-toggle {
  --app-shell-player-accent: color-mix(in srgb, var(--brand) 65%, white);
}

.app-shell-player-toggle--rail {
  box-sizing: border-box;
  width: var(--app-shell-control-size);
  height: var(--app-shell-control-size);
  border-radius: var(--radius-lg);
  color: color-mix(in srgb, var(--text) 55%, transparent);
  background: none;
  border: 0;
  flex: none;
  align-self: center;
  place-items: center;
  padding: 0;
  transition: background-color .3s, color .3s;
  display: grid;
}

.app-shell-player-toggle--rail > svg {
  width: var(--app-shell-icon-size);
  height: var(--app-shell-icon-size);
}

.app-shell-player-toggle:disabled {
  color: var(--text);
  opacity: .4;
  cursor: default;
}

.app-shell-player-toggle--rail:hover:where(:not(:disabled)) {
  background: color-mix(in srgb, var(--text) 5%, transparent);
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.app-shell-player-toggle--rail[aria-expanded="true"] {
  color: var(--app-shell-player-accent);
  background: color-mix(in srgb, var(--app-shell-player-accent) 12%, transparent);
}

.app-shell-player-toggle.app-shell-mobile-nav__item.is-active {
  color: var(--app-shell-player-accent);
}

.app-shell-player-toggle:focus-visible {
  outline: 2px solid var(--app-shell-player-accent);
  outline-offset: 2px;
}

.floating-tts-player[data-size="expanded"] {
  overscroll-behavior: contain;
  border-radius: 26px;
  width: min(36rem, 100vw - 1rem);
  min-height: min(336px, 100dvh - 2rem);
  padding: 20px 19px 17px;
  overflow: auto;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__top {
  align-items: flex-start;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__artwork {
  border-radius: 8px;
  flex-basis: 51px;
  width: 51px;
  height: 66px;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__artwork svg {
  width: 28px;
  height: 28px;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__document {
  gap: 8px;
  padding: 6px 12px;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__document strong {
  font-size: 1rem;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__document > span {
  font-size: .75rem;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__timeline {
  margin: 16px 0 0;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__times {
  font-size: .75rem;
}

.floating-tts-player__expanded-transport {
  justify-content: center;
  align-items: center;
  gap: 19px;
  padding-block: 14px 16px;
  display: flex;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__play {
  flex-basis: 61px;
  width: 61px;
  height: 61px;
}

.floating-tts-player[data-size="expanded"] .floating-tts-player__play svg {
  fill: currentColor;
  stroke-width: 1px;
  width: 30px;
  height: 30px;
}

.floating-tts-player__skip {
  position: relative;
}

.floating-tts-player[data-size] .floating-tts-player__skip svg {
  width: 34px;
  height: 34px;
}

.floating-tts-player__skip span {
  font-size: 10px;
  font-weight: 700;
  position: absolute;
}

.floating-tts-player__tools {
  grid-template-columns: .75fr 1fr 1fr 1.6fr 1.5fr;
  align-items: stretch;
  display: grid;
}

.floating-tts-player__tool {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
  min-height: 64px !important;
  font-size: .78rem !important;
}

.floating-tts-player[data-size] .floating-tts-player__tool {
  border-left: 1px solid var(--line);
  text-align: center;
  border-radius: 0;
  padding-inline: 8px;
}

.floating-tts-player__tool:first-child {
  border-left: 0 !important;
}

.floating-tts-player__tool > span:last-child {
  color: var(--muted);
  font-size: .72rem;
}

.floating-tts-player__voice > span {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow: hidden;
}

.floating-tts-player__volume-row {
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 28px;
  display: flex;
}

.floating-tts-player__volume input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  accent-color: var(--player-blue);
}

.floating-tts-player[data-size] .floating-tts-player__return {
  color: var(--player-blue);
  background: var(--player-soft);
  border-radius: 10px;
  gap: 6px;
  padding-inline: 8px;
}

.floating-tts-player__return > span {
  align-items: center;
  gap: 5px;
  display: flex;
  color: inherit !important;
}

.floating-tts-player__return small {
  color: var(--muted);
  font-size: .65rem;
}

.floating-tts-player__voice-note {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: .67rem;
  line-height: 1.5;
}

.floating-tts-player__error {
  color: var(--danger, #b42318);
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  font-size: .78rem;
}

.floating-tts-player__status {
  color: var(--muted);
  margin-top: 4px;
  font-size: .7rem;
  display: block;
}

.floating-tts-player[data-size="compact"] .floating-tts-player__status, .floating-tts-player[data-size="compact"] .floating-tts-player__error {
  text-align: center;
  max-width: 260px;
  margin: 4px auto;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .floating-tts-player[data-size] {
    bottom: calc(var(--mobile-nav-obstruction-height, 76px) + 8px);
    max-height: calc(100dvh - var(--mobile-nav-obstruction-height, 76px) - 24px);
  }

  .floating-tts-player[data-size="expanded"] {
    min-height: min(336px, calc(100dvh - var(--mobile-nav-obstruction-height, 76px) - 24px));
  }
}

@media (max-width: 580px) {
  .floating-tts-player[data-size="large"] .floating-tts-player__top {
    flex-wrap: wrap;
  }

  .floating-tts-player[data-size="large"] .floating-tts-player__document {
    flex-basis: calc(100% - 94px);
    padding-right: 4px;
  }

  .floating-tts-player[data-size="large"] .floating-tts-player__artwork {
    order: -1;
  }

  .floating-tts-player[data-size="large"] .floating-tts-player__transport {
    margin-left: auto;
    margin-right: auto;
  }

  .floating-tts-player[data-size="large"] .floating-tts-player__timeline {
    margin-left: 0;
  }

  .floating-tts-player[data-size="expanded"] {
    border-radius: 20px;
    padding: 16px 12px;
  }

  .floating-tts-player[data-size="expanded"] .floating-tts-player__artwork {
    flex-basis: 40px;
    width: 40px;
    height: 58px;
  }

  .floating-tts-player[data-size="expanded"] .floating-tts-player__document {
    gap: 5px;
    padding: 5px 8px;
  }

  .floating-tts-player[data-size="expanded"] .floating-tts-player__document strong {
    font-size: .9rem;
  }

  .floating-tts-player[data-size="expanded"] .floating-tts-player__document > span {
    font-size: .72rem;
  }

  .floating-tts-player__expanded-transport {
    justify-content: space-between;
    gap: 4px;
    padding-block: 18px;
  }

  .floating-tts-player[data-size="expanded"] .floating-tts-player__play {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .floating-tts-player__tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 15px;
  }

  .floating-tts-player__volume {
    grid-column: span 2;
    border-left: 0 !important;
  }

  .floating-tts-player__volume-row {
    max-width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-tts-player[data-size], .floating-tts-player[data-size] * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}

.floating-tts-player[data-size="large"] .floating-tts-player__document {
  text-align: left;
  border-radius: 8px;
  place-content: center stretch;
  padding: 5px 20px 5px 8px;
  display: grid;
  position: relative;
}

.floating-tts-player[data-size] input[type="range"] {
  appearance: none;
  background: none;
}

.floating-tts-player[data-size] input[type="range"]::-webkit-slider-runnable-track {
  background: color-mix(in srgb, var(--muted) 22%, var(--panel));
  border: 0;
  border-radius: 4px;
  height: 4px;
}

.floating-tts-player[data-size] input[type="range"]::-moz-range-track {
  background: color-mix(in srgb, var(--muted) 22%, var(--panel));
  border: 0;
  border-radius: 4px;
  height: 4px;
}

.floating-tts-player[data-size] input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  border: 2px solid var(--panel, #fff);
  background: var(--player-blue);
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 1px var(--player-blue);
  border-radius: 50%;
  margin-top: -4.5px;
}

.floating-tts-player[data-size] input[type="range"]::-moz-range-thumb {
  border: 2px solid var(--panel, #fff);
  background: var(--player-blue);
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 1px var(--player-blue);
  border-radius: 50%;
}

.floating-tts-player[data-size] .floating-tts-player__timeline input::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--player-blue) 0 var(--playback-progress), color-mix(in srgb, var(--muted) 22%, var(--panel)) var(--playback-progress) 100%);
}

.floating-tts-player[data-size] .floating-tts-player__timeline input::-moz-range-progress {
  background: var(--player-blue);
  border-radius: 4px;
  height: 4px;
}

@media (min-width: 581px) {
  .floating-tts-player--left[data-size="large"] .floating-tts-player__transport {
    order: -1;
  }
}

.floating-tts-player[data-size] {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.floating-tts-player[data-player-scrollable="true"] {
  touch-action: pan-y;
}

.floating-tts-player[data-size] .floating-tts-player__top {
  touch-action: none;
}

.floating-tts-player[data-size] .floating-tts-player__document {
  cursor: grab;
  padding-right: 8px;
}

.floating-tts-player[data-size] .floating-tts-player__size-cycle {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  position: relative;
}

.floating-tts-player[data-size] .floating-tts-player__speed-trigger {
  justify-content: center;
  align-items: center;
  gap: 1px;
  min-width: 44px;
  min-height: 44px;
  font-size: .78rem;
  font-weight: 650;
  display: inline-flex;
}

.floating-tts-player__speed-trigger > svg {
  width: 10px !important;
  height: 10px !important;
}

.floating-tts-player[data-size] .floating-tts-player__chapters-trigger {
  border-radius: 0;
}

.floating-player-popup {
  --player-blue: #317dff;
  --player-soft: color-mix(in srgb, var(--player-blue) 14%, var(--panel, #fff));
  z-index: 95;
  pointer-events: auto;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--panel, #fff);
  width: 164px;
  color: var(--text, #172134);
  overscroll-behavior: contain;
  font-variant-numeric: tabular-nums;
  border-radius: 12px;
  padding: 5px;
  position: absolute;
  overflow: auto;
  box-shadow: 0 8px 28px #0003;
}

.floating-player-popup--chapters {
  width: 290px;
}

.floating-player-popup button {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  color: var(--text, #172134);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  font-size: .85rem;
  display: flex;
}

.floating-player-popup button:hover:not(:disabled) {
  background: var(--player-soft);
}

.floating-player-popup button[aria-selected="true"], .floating-player-popup button[aria-current="true"] {
  background: var(--player-soft);
  color: var(--player-blue);
  font-weight: 650;
}

.floating-player-popup button:focus-visible {
  outline: 2px solid var(--player-blue);
  outline-offset: -2px;
}

.floating-player-popup button:disabled {
  opacity: .4;
  cursor: default;
}

.floating-player-popup button > span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.floating-player-popup small {
  color: var(--muted);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .floating-player-popup * {
    transition: none;
  }
}

.floating-tts-player[data-size]:focus-visible {
  outline: 2px solid var(--player-blue);
  outline-offset: 3px;
}

.floating-tts-player__elapsed {
  text-align: center;
  min-width: 44px;
  font-size: .78rem;
  font-weight: 650;
}

/* [project]/styles/reader/panels.css [app-client] (css) */
.reader-panel, .reader-panel-surface, .reader-rail-tabs {
  background: var(--reader-rail-bg);
  color: var(--text);
}

.reader-panel {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.reader-rail-tabs {
  border-color: var(--line);
}

.audio-manager--compact.reader-panel {
  box-shadow: none;
  background: var(--reader-rail-bg);
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 12px;
  overflow-y: auto;
}

.reader-panel-empty {
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px 12px;
  display: flex;
}

.reader-panel-empty-icon {
  background: var(--reader-control-surface);
  width: 36px;
  height: 36px;
  color: var(--reader-control-fg);
  border-radius: 10px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.reader-panel-empty-icon svg {
  width: 20px;
  height: 20px;
}

.reader-panel-empty strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.reader-panel-empty p {
  max-width: 250px;
  color: var(--reader-control-muted);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.reader-panel-control, .reader-panel-input {
  border: 1px solid var(--line);
  background: var(--reader-control-surface);
  color: var(--reader-control-fg);
  border-radius: 8px;
}

.reader-panel-control:hover {
  background: var(--reader-control-surface-hover);
}

/* [project]/packages/react/src/reader.css [app-client] (css) */
.aloudreader {
  --reader-paper: #fff;
  --reader-background: #f0f1f3;
  --reader-foreground: #22252b;
  --reader-line: #a9adb7;
  --reader-selection: #2872d040;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  color: var(--reader-foreground);
  background: var(--reader-background);
  text-align: start;
  flex-direction: column;
  font: 1rem / 1.35 system-ui, sans-serif;
  display: flex;
}

.aloudreader-mount {
  height: 100%;
  min-height: 0;
}

.aloudreader[data-theme="dark"] {
  --reader-background: #171a20;
  --reader-foreground: #f1f3f6;
  --reader-line: #818691;
}

.aloudreader .aloudreader-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .5rem;
  display: flex;
}

.aloudreader .aloudreader-selection-tools {
  box-sizing: border-box;
  flex-wrap: nowrap;
  flex-shrink: 0;
  height: 3rem;
}

.aloudreader .aloudreader-selection-tools > output:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.aloudreader .aloudreader-toolbar output {
  overflow-wrap: anywhere;
}

.aloudreader .aloudreader-toolbar button {
  appearance: none;
  border: 1px solid var(--reader-line);
  background: var(--reader-background);
  min-height: 2rem;
  color: var(--reader-foreground);
  font: inherit;
  border-radius: .25rem;
  padding: .25rem .625rem;
}

.aloudreader button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid;
}

.aloudreader .aloudreader-scroll {
  flex: 1;
  overflow: auto;
}

.aloudreader .aloudreader-page {
  isolation: isolate;
  background: var(--reader-paper);
  margin: 0 auto;
  position: relative;
}

.aloudreader .aloudreader-page canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.aloudreader .aloudreader-text {
  position: absolute;
  inset: 0;
}

.aloudreader .aloudreader-text span {
  color: #0000;
  -webkit-user-select: none;
  user-select: none;
  white-space: pre;
  cursor: text;
  position: absolute;
}

.aloudreader .aloudreader-text [data-selected] {
  background: var(--reader-selection);
}

.aloudreader .aloudreader-link {
  appearance: none;
  cursor: pointer;
  color: #163267;
  background: none;
  border: none;
  padding: 0;
  position: absolute;
}

.aloudreader .aloudreader-link:hover, .aloudreader .aloudreader-link:focus-visible {
  background: var(--reader-selection);
}

.aloudreader {
  position: relative;
  container-type: inline-size;
}

.aloudreader .aloudreader-lookup {
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid var(--reader-line);
  background: var(--reader-background);
  overflow-wrap: anywhere;
  width: min(23rem, 100%);
  padding: 1rem;
  position: absolute;
  inset-block-start: 6rem;
  inset-inline-end: 0;
}

.aloudreader .aloudreader-lookup h2 {
  margin: 0 0 .5rem;
  font-size: 1.125rem;
}

.aloudreader-workspace {
  gap: 1rem;
  height: 100%;
  min-height: 0;
  display: flex;
}

.aloudreader-workspace > .aloudreader-mount {
  flex: 1;
  min-width: 0;
}

@container (max-width: 35rem) {
  .aloudreader .aloudreader-lookup {
    width: 100%;
    inset-block: auto 0;
  }
}

.aloudreader .aloudreader-reflow {
  box-sizing: border-box;
  overflow-wrap: anywhere;
  max-width: 45rem;
  margin: 0 auto;
  padding: 1.5rem;
  line-height: 1.6;
  position: relative;
}

.aloudreader .aloudreader-text-block {
  white-space: pre-wrap;
}

.aloudreader .aloudreader-reflow-highlights {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.aloudreader .aloudreader-reflow-highlights span {
  background: var(--reader-selection);
  position: absolute;
}

.aloudreader .aloudreader-surface {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.aloudreader .aloudreader-open-canvases {
  position: absolute;
  inset-block-start: .75rem;
  inset-inline-end: .75rem;
}

.aloudreader:has(.aloudreader-drawing-panel) {
  flex-direction: row;
}

.aloudreader .aloudreader-drawing-panel {
  border-inline-start: 1px solid var(--reader-line);
  flex-direction: column;
  flex: 0 0 min(58%, 48rem);
  min-width: 0;
  min-height: 0;
  display: flex;
}

.aloudreader .aloudreader-drawing-panel h2 {
  margin: 0 auto 0 0;
  font-size: 1rem;
}

.aloudreader .aloudreader-drawing-content {
  flex: 1;
  overflow: auto;
}

.aloudreader .aloudreader-drawing-surface {
  background: var(--reader-paper);
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  display: block;
}

.aloudreader .aloudreader-drawing-surface [data-selected] {
  filter: drop-shadow(0 0 2px #3e8a69);
}

.aloudreader .aloudreader-compact-source {
  display: none;
}

@container (max-width: 42rem) {
  .aloudreader .aloudreader-drawing-panel {
    border-inline-start: none;
    flex: 1;
  }

  .aloudreader .aloudreader-compact-source {
    display: inline-block;
  }

  .aloudreader .aloudreader-surface:has( + .aloudreader-drawing-panel[data-show-source="false"]) {
    display: none;
  }

  .aloudreader .aloudreader-drawing-panel[data-show-source="true"] {
    z-index: 3;
    background: var(--reader-background);
    flex: none;
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
  }

  .aloudreader .aloudreader-drawing-panel[data-show-source="true"] .aloudreader-drawing-content {
    display: none;
  }
}

.aloudreader .aloudreader-drawing-panel input[type="file"] {
  max-width: 12rem;
}

.aloudreader .aloudreader-drawing-panel input[type="number"] {
  width: 5rem;
}

.aloudreader .aloudreader-page-drawing {
  z-index: 1;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.aloudreader .aloudreader-page-drawing-controls {
  z-index: 2;
  pointer-events: auto;
  flex-wrap: wrap;
  gap: .25rem;
  max-width: calc(100% - .5rem);
  display: flex;
  position: absolute;
  inset-block-start: .25rem;
  inset-inline-end: .25rem;
}

.aloudreader .aloudreader-page-drawing-controls form {
  background: var(--reader-background);
  color: var(--reader-foreground);
  gap: .25rem;
  padding: .5rem;
  display: grid;
}

.aloudreader .aloudreader-page-drawing-controls textarea {
  max-width: 100%;
  display: block;
}

.aloudreader .aloudreader-page-drawing .aloudreader-drawing-surface {
  background: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.aloudreader .aloudreader-page-drawing .aloudreader-drawing-editor[data-enabled="true"] > svg {
  pointer-events: auto;
}

.aloudreader .aloudreader-page-drawing .aloudreader-drawing-editor {
  flex-direction: column;
  justify-content: flex-end;
  display: flex;
  position: absolute;
  inset: 0;
}

.aloudreader .aloudreader-page-drawing .aloudreader-toolbar {
  z-index: 1;
  background: var(--reader-background);
  pointer-events: auto;
  width: fit-content;
  padding: .25rem;
  position: relative;
}

.aloudreader .aloudreader-page-drawing .aloudreader-toolbar:empty {
  display: none;
}

.aloudreader.aloudreader-app-page-drawing {
  z-index: 3;
  pointer-events: none;
  background: none;
  position: absolute;
  inset: 0;
}

.aloudreader-app-page-drawing .aloudreader-page-drawing-controls {
  inset-inline-end: 2.75rem;
}

.aloudreader .aloudreader-outlined {
  max-height: 5.5rem;
  overflow: auto;
}

.aloudreader .aloudreader-book-search {
  padding-inline: .5rem;
}

.aloudreader .aloudreader-book-search > ul {
  max-height: 8rem;
  margin: .25rem 0;
  padding-inline-start: 1.25rem;
  overflow: auto;
}

.aloudreader .aloudreader-book-image {
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  display: block;
}

.aloudreader .aloudreader-book-link {
  color: inherit;
  text-underline-offset: .15em;
  cursor: pointer;
  text-decoration: underline;
}

.aloudreader .aloudreader-book-link[data-mark="note-ref"] {
  color: var(--reader-accent, inherit);
  text-decoration: none;
}

.aloudreader .aloudreader-reflow p.aloudreader-text-block {
  text-indent: 0;
  margin-block: 0 .6em;
}

.aloudreader .aloudreader-reflow :is(h2, h3, h4, h5, h6).aloudreader-text-block {
  break-after: avoid;
  margin-block: 1.2em .5em;
  line-height: 1.25;
}

.aloudreader .aloudreader-reflow h3.aloudreader-text-block {
  font-size: 1.3em;
}

.aloudreader .aloudreader-reflow h4.aloudreader-text-block {
  font-size: 1.15em;
}

.aloudreader .aloudreader-reflow :is(h5, h6).aloudreader-text-block {
  font-size: 1em;
}

.aloudreader .aloudreader-reflow .aloudreader-text-block[data-kind="verse"] {
  white-space: pre-line;
  margin-inline-start: 2em;
}

.aloudreader .aloudreader-reflow .aloudreader-text-block :is(sup, sub) {
  font-size: .7em;
  line-height: 0;
}

.aloudreader .aloudreader-reflow .aloudreader-text-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

.aloudreader .aloudreader-book-center {
  text-align: center;
}

.aloudreader .aloudreader-book-end {
  text-align: end;
}

.aloudreader .aloudreader-book-quote {
  border-inline-start: 3px solid var(--reader-line, currentColor);
  margin-inline: 1.5em;
  padding-inline-start: .75em;
  font-style: italic;
}

.aloudreader .aloudreader-book-list-item {
  margin-block: 0 .25em;
  padding-inline-start: 1.5em;
  position: relative;
}

.aloudreader .aloudreader-book-list-item[data-list-depth="2"] {
  margin-inline-start: 1.5em;
}

.aloudreader .aloudreader-book-list-item[data-list-depth="3"] {
  margin-inline-start: 3em;
}

.aloudreader .aloudreader-book-list-item:is([data-list-depth="4"], [data-list-depth="5"], [data-list-depth="6"]) {
  margin-inline-start: 4.5em;
}

.aloudreader .aloudreader-book-list-item[data-marker]:before {
  content: attr(data-marker);
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  inset-inline-start: 0;
}

.aloudreader .aloudreader-book-table {
  border-block-start: 1px solid var(--reader-line, currentColor);
  break-inside: avoid;
  margin-block: .75em;
  display: grid;
}

.aloudreader .aloudreader-book-table > .aloudreader-book-cell {
  border-block-end: 1px solid var(--reader-line, currentColor);
  margin: 0;
  padding: .25em .75em .25em 0;
}

.aloudreader .aloudreader-book-figure {
  max-width: 100%;
  margin-block: .75em;
  margin-inline: auto;
}

.aloudreader .aloudreader-drawing-fields {
  border: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.aloudreader .aloudreader-drawing-fields[data-saving="true"] svg {
  pointer-events: none;
}

.reader-with-drawing-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  position: relative;
}

.reader-with-drawing-panel > .reader-canvas-workspace {
  flex: 1;
  min-width: 0;
}

.reader-with-drawing-panel > .aloudreader-app-drawings {
  background: none;
  width: 0;
  height: 100%;
  position: static;
}

.reader-with-drawing-panel > .aloudreader-app-drawings:has(.aloudreader-drawing-panel) {
  width: min(52%, 46rem);
}

.aloudreader-app-drawings .aloudreader-open-canvases {
  z-index: 4;
}

.aloudreader-app-drawings .aloudreader-drawing-panel {
  background: var(--reader-background);
  flex: 1;
  position: relative;
  container-type: inline-size;
}

@media (max-width: 760px) {
  .reader-with-drawing-panel > .aloudreader-app-drawings:has(.aloudreader-drawing-panel) {
    z-index: 4;
    pointer-events: none;
    width: 100%;
    position: absolute;
    inset: 0;
  }

  .aloudreader-app-drawings .aloudreader-drawing-panel {
    pointer-events: auto;
  }
}

.aloudreader .aloudreader-book-figure {
  background: none;
  border: 0;
  padding: 0;
  display: block;
}

.aloudreader .aloudreader-book-figure[aria-pressed="true"] {
  outline: 2px solid var(--reader-line);
}

.aloudreader .aloudreader-scroll[data-reader-view="native-pages"] {
  overscroll-behavior: contain;
  background: var(--reader-paper);
  min-height: 0;
  overflow-y: hidden;
}

.aloudreader .aloudreader-page-stage {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.aloudreader .aloudreader-page-stage[data-sheet="paper"] {
  align-items: safe center;
  overflow: auto;
}

.aloudreader .aloudreader-page-stage[data-sheet="paper"] > .aloudreader-scroll {
  box-shadow: 0 1px 3px #0000002e, 0 8px 24px #00000014;
}

.aloudreader[data-theme="dark"] .aloudreader-scroll[data-reader-view="native-pages"] {
  background: var(--reader-background);
}

.aloudreader .aloudreader-scroll[data-reader-view="native-pages"] .aloudreader-reflow {
  column-count: 1;
  column-fill: auto;
  column-gap: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding-block: 1rem;
  padding-inline: 0;
}

.aloudreader .aloudreader-scroll[data-reader-view="native-pages"] .aloudreader-reflow section {
  padding-inline: max(1.25rem, 50% - 22.5rem);
}

.aloudreader .aloudreader-page-stage[data-sheet="paper"] .aloudreader-reflow {
  padding-block: 2.5em;
}

.aloudreader .aloudreader-page-stage[data-sheet="paper"] .aloudreader-reflow section {
  padding-inline: 2.25em;
}

.aloudreader .aloudreader-scroll[data-reader-view="native-pages"] .aloudreader-book-figure {
  break-inside: avoid;
}

.aloudreader .aloudreader-native-viewport {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__0jqlsm0nrte_d._.css.map*/