.active-reader {
  box-sizing: border-box;
  width: 100%;
  border-top: 1px solid #e7edf1;
  background: #fff;
  color: #24313d;
  padding: 0.28rem 1.5rem;
}

.article-post details.exercise-solution {
  margin: 1rem 0 1.5rem;
  border: 1px solid #d7e2ed;
  border-radius: 0.75rem;
  background: #f8fbff;
  padding: 0.65rem 0.9rem;
}

.article-post details.exercise-solution > summary {
  color: #155a95;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.article-post details.exercise-solution > summary:focus-visible {
  outline: 3px solid #e6a72e;
  outline-offset: 3px;
}

.article-post details.exercise-solution[open] > summary {
  margin-bottom: 0.85rem;
}

.article-post details.active-reader__code-disclosure,
.article-post .active-reader__code-card {
  margin: 1rem 0 1.5rem;
  border: 1px solid #d7e2ed;
  border-radius: 0.75rem;
  background: #f8fbff;
}

.article-post details.active-reader__code-disclosure > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #155a95;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0.65rem 0.9rem;
}

.active-reader__code-summary-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.active-reader__code-understand-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b5394;
  background: #e1effa;
  border: 1px solid #b3d7f2;
  border-radius: 9999px;
  cursor: pointer;
  text-transform: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.active-reader__code-understand-btn:hover {
  background: #cde4f7;
  border-color: #8bc2eb;
  color: #073763;
}

.active-reader__code-understand-btn:focus-visible {
  outline: 3px solid #e6a72e;
  outline-offset: 2px;
}

.article-post details.active-reader__code-disclosure[open] .active-reader__code-understand-btn {
  display: inline-flex;
}
.article-post details.active-reader__code-disclosure .active-reader__code-understand-btn[hidden] {
  display: none;
}

.article-post details.active-reader__code-disclosure > summary:focus-visible {
  outline: 3px solid #e6a72e;
  outline-offset: 3px;
}

.article-post .active-reader__code-content {
  max-height: min(65vh, 36rem);
  overflow: auto;
  border-top: 1px solid #d7e2ed;
  background: var(--code-background);
  padding: 0.8rem;
}

.article-post .active-reader__code-card--visible .active-reader__code-content {
  border-top: 0;
}

.article-post .active-reader__code-content .highlighter-rouge,
.article-post .active-reader__code-content .highlight,
.article-post .active-reader__code-content pre {
  margin: 0;
  background: transparent;
}

.article-post .active-reader__code-content pre,
.article-post .highlighter-rouge pre,
.article-post pre code {
  font-family: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-post .active-reader__code-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
}

.article-post .active-reader__code-action-btn {
  flex: 0 0 auto;
  border: 1px solid #8bc2eb;
  border-radius: 999px;
  background: #e1effa;
  color: #073763;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
}

.article-post .active-reader__code-action-btn:hover { background: #cde4f7; }
.article-post .active-reader__code-action-btn:focus-visible { outline: 3px solid #e6a72e; outline-offset: 2px; }
.article-post .active-reader__code-action-btn:disabled { opacity: 0.6; cursor: wait; }

.article-post details.active-reader__code-disclosure > summary .active-reader__code-action-btn { display: none; }
.article-post details.active-reader__code-disclosure[open] > summary .active-reader__code-action-btn { display: inline-flex; }

.active-reader__dialog.active-reader__run-dialog {
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
}
.active-reader__dialog.active-reader__run-dialog[open] { display: flex; flex-direction: column; }
.active-reader__run-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 2.65rem;
  padding: 0 0.55rem;
  border-bottom: 1px solid #d7e2ed;
  background: #f8fbff;
}
.active-reader__run-header-content {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}
.active-reader__run-header h2 { flex: 0 0 auto; margin: 0 !important; font-size: 0.88rem; }
.active-reader__run-compiler { flex: 0 0 auto; color: #52616d; font-size: 0.72rem; }
.active-reader__run-close {
  flex: 0 0 auto;
  margin-left: 0.4rem;
  border: 0;
  background: transparent;
  color: #29495d;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
}
.active-reader__run-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.active-reader__run-workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(20rem, 1fr);
  flex: 1 1 auto;
  min-height: 0;
}
.active-reader__run-source-pane,
.active-reader__run-results-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.active-reader__run-results-pane { border-left: 1px solid #d7e2ed; }
.active-reader__run-file {
  flex: 0 0 auto;
  padding-left: 0.65rem;
  border-left: 1px solid #d7e2ed;
  color: #24313d;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.75rem;
}
.active-reader__run-editor { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.active-reader__run-editor .cm-editor { height: 100%; font-size: 0.9rem; }
.active-reader__run-editor .cm-editor.cm-focused { outline: none; }
.active-reader__run-editor .cm-scroller { overflow: auto; font-family: 'JetBrains Mono', Consolas, monospace; }
.active-reader__run-editor .cm-error-line,
.active-reader__run-editor .cm-error-line.cm-activeLine { background: #eef0f2; }
.active-reader__run-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 0.3rem; }
.active-reader__run-actions button {
  border: 1px solid #226c9f;
  border-radius: 0.35rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 1.9rem;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.active-reader__run-submit { background: #226c9f; color: #fff; }
.active-reader__run-submit:hover:not(:disabled) { background: #155a95; }
.active-reader__run-copy { background: #fff; color: #155a95; }
.active-reader__run-copy:hover { background: #e9f4fc; }
.active-reader__run-assist { background: #fff; color: #155a95; }
.active-reader__run-assist:hover:not(:disabled) { background: #e9f4fc; }
.active-reader__run-actions button[hidden] { display: none; }
.active-reader__run-actions button:disabled { cursor: wait; opacity: 0.6; }
.active-reader__run-tabs { display: flex; flex: 0 0 auto; align-self: stretch; }
.active-reader__run-tab {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #52616d;
  cursor: pointer;
  font-size: 0.76rem;
  padding: 0.35rem 0.6rem;
}
.active-reader__run-tab[aria-selected="true"] { border-bottom-color: #226c9f; background: #fff; color: #155a95; font-weight: 700; }
.active-reader__run-panel { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0.9rem 1rem; }
.active-reader__run-label { display: block; color: #29495d; font-size: 0.88rem; font-weight: 700; margin: 0 0 0.4rem; }
.active-reader__run-input-instructions {
  color: #29495d;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 0.55rem;
  white-space: pre-wrap;
}
.active-reader__run-sample-note {
  color: #52616d;
  font-size: 0.75rem;
  margin: 0.3rem 0 0;
}
.active-reader__run-stdin {
  box-sizing: border-box;
  width: 100%;
  min-height: 7rem;
  border: 1px solid #b8cbd9;
  border-radius: 0.4rem;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.85rem;
  padding: 0.65rem;
  resize: vertical;
}
.active-reader__run-dialog button:focus-visible,
.active-reader__run-stdin:focus-visible { outline: 3px solid #e6a72e; outline-offset: 2px; }
.active-reader__run-status,
.active-reader__run-io-status { min-height: 1.4rem; color: #29495d; font-size: 0.85rem !important; margin: 0 0 0.75rem !important; }
.active-reader__run-io-status { margin-top: 0.75rem !important; }
.active-reader__dialog.active-reader__run-dialog h3 { font-size: 0.88rem; margin: 1rem 0 0.4rem; }
.active-reader__run-output,
.active-reader__run-stderr,
.active-reader__run-diagnostics {
  min-height: 3rem;
  overflow: auto;
  border: 1px solid #d7e2ed;
  border-radius: 0.4rem;
  background: #f6f9fb;
  color: #24313d;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.65rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.active-reader__run-diagnostics { border: 0; background: transparent; padding: 0; }
.active-reader__run-diagnostics.is-error { color: #b42318; }
.active-reader__run-stderr { color: #b42318; }

@media (max-width: 800px) {
  .active-reader__run-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(12rem, 55%) minmax(0, 1fr); }
  .active-reader__run-results-pane { border-left: 0; border-top: 1px solid #d7e2ed; }
}
@media (max-width: 600px) {
  .active-reader__run-header { padding: 0 0.35rem; }
  .active-reader__run-header-content { gap: 0.45rem; }
  .active-reader__run-actions button { padding: 0.2rem 0.45rem; }
  .active-reader__run-tab { font-size: 0.7rem; padding: 0.35rem 0.35rem; }
  .active-reader__run-close { margin-left: 0.1rem; padding: 0.15rem 0.25rem; }
  .active-reader__run-panel { padding: 0.75rem; }
}

.mediumnavigation .active-reader:not(.is-active) {
  display: none;
}

body.active-reader-enabled .mediumnavigation {
  position: fixed;
  flex-flow: row wrap !important;
  top: 0 !important;
  right: 0;
  left: 0;
  z-index: 1030;
  width: 100%;
}

body.active-reader-enabled .mediumnavigation > .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

body.active-reader-enabled .mediumnavigation > .active-reader {
  flex: 0 0 100%;
  width: 100%;
}

.mediumnavigation > .container > .navbar-brand {
  flex: 0 1 auto;
  margin-right: 0.5rem;
}

body.layout-post .site-content {
  margin-top: var(--active-reader-header-height, 57px);
  transition: none;
}

body.active-reader-enabled .article-post {
  box-sizing: border-box;
  height: var(--active-reader-pane-height, 70vh);
  min-height: 10rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  border-left: 2px solid #d5e0e9;
  padding: 0.6rem 1rem;
  touch-action: manipulation;
  font-size: var(--active-reader-font-size, 1.61rem);
}

/* screen.css fixes paragraphs and list items to 1rem, which breaks inheritance
   from the reading pane. Let prose blocks follow the selected reading size. */
body.active-reader-enabled .article-post :is(p, li, blockquote, td, th, dd, dt, figcaption) {
  font-size: inherit !important;
}

body.active-reader-enabled .article-post :is(.callout-dropdown-summary, .callout-dropdown-content) {
  font-size: inherit;
}

body.active-reader-enabled .article-post .active-reader__visual {
  display: block;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: var(--active-reader-visual-height, calc(70vh - 96px)) !important;
  margin-inline: auto;
  object-fit: contain;
}

body.active-reader-enabled .article-post:focus-visible {
  outline: 2px solid #1b6ba5;
  outline-offset: 2px;
}

.active-reader__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  width: max-content;
  max-width: none;
}

.active-reader__progress {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #50616e;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-reader__gesture-setting { margin-top: 1rem; }
.active-reader__settings-button {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  min-width: 1.9rem !important;
  padding: 0.25rem !important;
}
.active-reader__settings-button svg { width: 1rem; height: 1rem; fill: currentColor; }
.active-reader__settings-dialog { width: min(30rem, calc(100vw - 1.5rem)); }
.active-reader__settings-dialog .active-reader__dialog-header { position: sticky; top: -1.1rem; z-index: 1; align-items: center; justify-content: space-between; gap: 0.75rem; background: #fff; padding: 0.2rem 0 0.55rem; }
.active-reader__settings-close { flex: 0 0 auto; width: 2rem; height: 2rem; border: 1px solid #c5d2dc; border-radius: 50%; background: #fff; color: #304453; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.active-reader__font-setting { border: 0; margin: 0; padding: 0; }
.active-reader__font-setting legend { color: #304453; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.active-reader__font-options { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; }
.active-reader__font-options button {
  display: grid;
  flex: 1 1 0;
  place-items: center;
  min-height: 3rem;
  border: 1px solid #d7e1e8;
  border-radius: 5px;
  background: #fff;
  color: #173b58;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.35rem;
}
.active-reader__font-options button:nth-child(1) { font-size: 0.78rem; }
.active-reader__font-options button:nth-child(2) { font-size: 0.9rem; }
.active-reader__font-options button:nth-child(4) { font-size: 1.18rem; }
.active-reader__font-options button:nth-child(5) { font-size: 1.36rem; }
.active-reader__font-options button[aria-pressed="true"] { border-color: #226c9f; background: #eaf4fa; color: #185985; box-shadow: inset 0 0 0 1px #226c9f; }
.active-reader__font-options button:focus-visible { outline: 2px solid #1b6ba5; outline-offset: 2px; }
.active-reader__line-spacing-setting { margin-top: 1.1rem; }
.active-reader__line-spacing-setting label { display: block; color: #304453; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.active-reader__range-row { display: flex; align-items: center; gap: 0.8rem; }
.active-reader__range-row input { flex: 1 1 auto; accent-color: #226c9f; }
.active-reader__range-row output { min-width: 2.2rem; color: #304453; font-size: 0.9rem; font-variant-numeric: tabular-nums; text-align: right; }
.active-reader__range-row input:focus-visible { outline: 2px solid #1b6ba5; outline-offset: 3px; }
.active-reader__gesture-setting label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.active-reader__gesture-setting select {
  border: 1px solid #a8b8c3;
  border-radius: 5px;
  background: #fff;
  color: #173b58;
  font: inherit;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  width: 100%;
}
.active-reader__gesture-setting select:focus-visible {
  outline: 2px solid #1b6ba5;
  outline-offset: 2px;
}
.active-reader__resume-setting { border-top: 1px solid #d9e3e9; margin-top: 1.1rem; padding-top: 1rem; }
.active-reader__resume-setting label { display: flex; align-items: flex-start; gap: 0.55rem; color: #304453; font-size: 0.88rem; font-weight: 600; line-height: 1.4; cursor: pointer; }
.active-reader__resume-setting input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: 0.05rem 0 0; accent-color: #226c9f; }
.active-reader__resume-setting p { margin: 0.35rem 0 0; color: #8e302b; font-size: 0.78rem; text-align: left !important; }
.active-reader__resume-setting p:empty { display: none; }
.active-reader__resume-setting input:focus-visible { outline: 2px solid #1b6ba5; outline-offset: 2px; }

.active-reader button {
  flex: 0 0 auto;
  border: 1px solid #d7e1e8;
  border-radius: 4px;
  background: #fff;
  color: #173b58;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 1.7rem;
  padding: 0.22rem 0.5rem;
}

.mediumnavigation #active-reader-toggle {
  flex: 0 0 auto;
  margin-right: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #354450;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 1.9rem;
  padding: 0.3rem 0.45rem;
  white-space: nowrap;
  cursor: pointer;
}

.mediumnavigation #active-reader-toggle:hover,
.mediumnavigation #active-reader-toggle:focus-visible {
  border-color: #d7e1e8;
  background: #f2f7fa;
  color: #185985;
  outline: 2px solid #1b6ba5;
  outline-offset: 2px;
}

.mediumnavigation #active-reader-toggle[aria-pressed="true"] {
  border-color: #cfe0eb;
  background: #eaf4fa;
  color: #185985;
}

.active-reader__toggle-short { display: none; }

.active-reader button:hover:not(:disabled),
.active-reader button:focus-visible {
  border-color: #1b6ba5;
  background: #e9f4fc;
}

.active-reader button:focus-visible,
.active-reader textarea:focus-visible { outline: 2px solid #1b6ba5; outline-offset: 2px; }
.active-reader button:disabled { cursor: default; opacity: 0.55; }

.active-reader__dialog {
  box-sizing: border-box;
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid #d9e3e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(24, 43, 56, 0.24);
  color: #24313d;
  padding: 1.25rem 1.4rem;
}
.active-reader__learning-modal {
  box-sizing: border-box;
  width: calc(100vw - 1rem);
  max-width: none;
  height: calc(100dvh - 1rem);
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
  padding: 0.75rem;
}
.active-reader__learning-modal[open] {
  display: flex;
  flex-direction: column;
}
.active-reader__learning-modal .active-reader__dialog-header {
  align-items: center;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 1rem;
}
.active-reader__learning-modal-content {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.active-reader__learning-frame {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
  transform-origin: top left;
}
.active-reader__debug-modal {
  box-sizing: border-box;
  width: min(94vw, 1100px);
  max-width: 1100px;
  height: min(90vh, 760px);
  max-height: 760px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #c7d8e8;
  border-radius: 0.75rem;
  background: #ffffff;
}
.active-reader__debug-modal[open] {
  display: flex;
  flex-direction: column;
}
.active-reader__debug-modal .active-reader__dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: #f4f8fc;
  border-bottom: 1px solid #d7e2ed;
  flex: 0 0 auto;
  gap: 1rem;
}
.active-reader__debug-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.active-reader__debug-header-info h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #10385c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-reader__debug-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #155a95;
  background: #e1effa;
  border-radius: 9999px;
  white-space: nowrap;
}
.active-reader__debug-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.active-reader__debug-timer-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  border-radius: 9999px;
  transition: background-color 0.15s, color 0.15s;
}
.active-reader__debug-timer-pill.is-paused {
  color: #64748b;
  background: #f1f5f9;
}
.active-reader__debug-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #f8fbff;
}
.active-reader__debug-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #d7e2ed;
  border-radius: 0.5rem;
  overflow: hidden;
}
.active-reader__debug-pane-header {
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #526b82;
  background: #edf4fa;
  border-bottom: 1px solid #d7e2ed;
  flex: 0 0 auto;
}
.active-reader__debug-code-container {
  flex: 1 1 auto;
  overflow: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  background: #ffffff;
  padding: 0.4rem 0;
  margin: 0;
}
.active-reader__debug-code-container.highlight {
  margin-bottom: 0;
  border: 0;
}
.active-reader__debug-code-line {
  display: flex;
  align-items: flex-start;
  padding: 0.15rem 0.75rem;
  border-left: 3px solid transparent;
  transition: background 0.1s;
}
.active-reader__debug-code-line--active {
  background: #e6f2fb;
  border-left-color: #0b5394;
}
.active-reader__debug-line-num {
  width: 2.2rem;
  flex-shrink: 0;
  text-align: right;
  margin-right: 0.85rem;
  color: #94a3b8;
  font-size: 0.78rem;
  user-select: none;
}
.active-reader__debug-line-content {
  flex: 1 1 auto;
  white-space: pre;
}
.active-reader__debug-vars-container {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.6rem;
  background: #ffffff;
}
.active-reader__debug-vars-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.active-reader__debug-vars-table th {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 2px solid #cbd5e1;
  text-align: left;
}
.active-reader__debug-vars-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.active-reader__debug-vars-table td.var-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #0f172a;
}
.active-reader__debug-vars-table td.var-value {
  font-family: 'JetBrains Mono', monospace;
  color: #334155;
}
.active-reader__debug-var--changed {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.active-reader__debug-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.8rem 1.2rem;
  background: #f4f8fc;
  border-top: 1px solid #d7e2ed;
  flex: 0 0 auto;
}
.active-reader__debug-explanation-box {
  flex: 1 1 auto;
  min-width: 0;
}
.active-reader__debug-explanation-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.2rem;
}
.active-reader__debug-explanation-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #0f172a;
}
.active-reader__debug-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.active-reader__debug-nav-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #155a95;
  background: #ffffff;
  border: 1px solid #b8d7ee;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.active-reader__debug-nav-btn:hover {
  background: #eaf3fb;
  border-color: #8bc2eb;
}
.active-reader__debug-skip-btn {
  color: #92400e;
  border-color: #fde68a;
  background: #fefce8;
}
.active-reader__debug-skip-btn:hover {
  background: #fef08a;
  border-color: #facc15;
  color: #78350f;
}
.active-reader__debug-skip-btn[hidden] {
  display: none !important;
}
.active-reader__debug-close-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  cursor: pointer;
}
.active-reader__debug-close-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}
@media (max-width: 768px) {
  .active-reader__debug-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .active-reader__debug-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .active-reader__debug-footer-actions {
    justify-content: flex-end;
  }
}
.active-reader__activity-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  max-width: 100%;
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  border: 1px solid #b9ccd8;
  border-radius: 0.7rem;
  background: #f5f9fb;
  color: #24516b;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}
.active-reader__activity-launch:hover,
.active-reader__activity-launch:focus-visible {
  border-color: #7fa9bf;
  background: #eaf3f8;
  color: #173f59;
}
.active-reader__activity-launch svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.active-reader__dialog::backdrop { background: rgba(16, 29, 38, 0.48); }

.active-reader__dialog-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.active-reader__dialog h2 {
  color: #24313d;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

.active-reader__dialog h3 {
  color: #304453;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1rem 0 0.4rem;
}

.active-reader__dialog p,
.active-reader__dialog li {
  color: #4b5b67;
  font-size: 0.87rem;
  line-height: 1.55;
}

.active-reader__dialog p { margin: 0 0 0.8rem; }
.active-reader__dialog ul { margin: 0 0 0.8rem; padding-left: 1.25rem; }
.active-reader__dialog li + li { margin-top: 0.3rem; }

.active-reader__dialog kbd {
  display: inline-block;
  border: 1px solid #dce4e9;
  border-radius: 3px;
  background: #f4f7f9;
  box-shadow: none;
  color: #263f50;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.1rem 0.3rem;
}

.active-reader__dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.active-reader__dialog-actions button {
  border: 1px solid #226c9f;
  border-radius: 4px;
  background: #226c9f;
  color: #fff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
}

.active-reader__dialog-actions button:hover,
.active-reader__dialog-actions button:focus-visible {
  border-color: #185985;
  background: #185985;
}

.active-reader__dialog-actions #active-reader-help-dismiss {
  background: #fff;
  color: #185985;
}

.active-reader__dialog-actions #active-reader-help-dismiss:hover,
.active-reader__dialog-actions #active-reader-help-dismiss:focus-visible {
  background: #eaf3f8;
}

.active-reader__dialog button:focus-visible {
  outline: 2px solid #1b6ba5;
  outline-offset: 2px;
}

.active-reader__message {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: max(1rem, calc((100vw - 1140px) / 2));
  z-index: 2;
  max-width: min(28rem, calc(100vw - 2rem));
  border: 1px solid #b8cbd9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(25, 45, 60, 0.12);
  font-size: 0.78rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
}
.active-reader__message:empty { display: none; }

.active-reader__notes {
  position: fixed;
  z-index: 1050;
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(60vh, 28rem);
  overflow-y: auto;
  border: 1px solid #b8cbd9;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(25, 45, 60, 0.18);
  padding: 0.75rem;
}
.active-reader__ai-dialog {
  display: none;
  flex-direction: column;
  width: min(42rem, calc(100vw - 1.5rem));
  height: min(42rem, calc(100dvh - 2rem));
  padding: 1rem;
}
.active-reader__ai-dialog[open] { display: flex; }
.active-reader__ai-dialog .active-reader__dialog-header {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.active-reader__ai-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.active-reader__ai-beta {
  border-radius: 999px;
  background: #e8f3fb;
  color: #185985;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}
.active-reader__ai-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d7e1e8;
  border-radius: 50%;
  background: #fff;
  color: #304453;
  font-size: 1.35rem;
  line-height: 1;
}
.active-reader__ai-reference {
  overflow: hidden;
  border-left: 3px solid #8aaec5;
  color: #52616d;
  font-size: 0.78rem !important;
  max-height: 4.5rem;
  padding: 0.25rem 0 0.25rem 0.65rem;
  text-overflow: ellipsis;
}
.active-reader__ai-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 8rem;
  overflow-y: auto;
  padding: 0.6rem 0.1rem;
}
.active-reader__ai-message {
  align-self: flex-start;
  max-width: 92%;
  border: 1px solid #e0e8ed;
  border-radius: 0.75rem 0.75rem 0.75rem 0.2rem;
  background: #f6f9fb;
  color: #24313d;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 0.65rem 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left !important;
}
.active-reader__ai-message--user {
  align-self: flex-end;
  border-color: #c9dfed;
  border-radius: 0.75rem 0.75rem 0.2rem 0.75rem;
  background: #edf6fb;
}

.active-reader__ai-message:not(.active-reader__ai-message--user) {
  white-space: normal;
}

.active-reader__ai-message :is(p, ul, ol, blockquote, pre, table) {
  margin: 0 0 0.65rem;
}

.active-reader__ai-message > :last-child { margin-bottom: 0; }
.active-reader__ai-message :is(p, li, blockquote, td, th) { font-size: inherit; text-align: left !important; }
.active-reader__ai-message :is(ul, ol) { padding-left: 1.4rem; }
.active-reader__ai-message :is(h1, h2, h3, h4) { font-size: 1rem; line-height: 1.35; margin: 0.8rem 0 0.45rem; }
.active-reader__ai-message :is(h1, h2, h3, h4):first-child { margin-top: 0; }
.active-reader__ai-message blockquote { border-left: 3px solid #9db8ca; padding-left: 0.7rem; }
.active-reader__ai-message pre { max-height: 18rem; overflow: auto; border-radius: 0.45rem; background: #eaf0f4; padding: 0.65rem; }
.active-reader__ai-message pre code { white-space: pre; }
.active-reader__ai-message :not(pre) > code { border-radius: 0.25rem; background: #eaf0f4; padding: 0.1rem 0.25rem; }
.active-reader__ai-message table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.active-reader__ai-message :is(th, td) { border: 1px solid #cedce5; padding: 0.3rem 0.5rem; }
.active-reader__ai-empty,
.active-reader__ai-status { color: #667781; font-size: 0.8rem !important; margin: 0 !important; }
.active-reader__ai-status--thinking {
  animation: active-reader-thinking 1.4s ease-in-out infinite;
}
@keyframes active-reader-thinking {
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .active-reader__ai-status--thinking { animation: none; }
}
.active-reader__ai-quota { color: #667781; font-size: 0.8rem !important; margin: 0 0 0.55rem !important; }
.active-reader__ai-unavailable { border: 1px solid #c9dfed; border-radius: 0.65rem; background: #f3f8fb; color: #29495d; font-size: 0.95rem !important; line-height: 1.55 !important; margin: 0 0 0.8rem !important; padding: 0.85rem 1rem; }
.active-reader__ai-form { border-top: 1px solid #e4ebef; padding-top: 0.7rem; }
.active-reader__ai-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 4.5rem;
  border: 1px solid #b8cbd9;
  border-radius: 0.55rem;
  padding: 0.65rem;
  resize: vertical;
}
.active-reader__ai-keyboard-hint { color: #667781; font-size: 0.72rem !important; margin: 0.3rem 0 0 !important; }
.active-reader__ai-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.45rem; }
.active-reader__ai-form-footer button {
  flex: 0 0 auto;
  border: 1px solid #226c9f;
  border-radius: 0.45rem;
  background: #226c9f;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
}
.active-reader__ai-form-footer button:hover { background: #185985; }
.active-reader__ai-form-footer button:disabled { cursor: progress; opacity: 0.6; }
.active-reader__notes label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.3rem; }
.active-reader__notes textarea { border: 1px solid #9fb5c6; border-radius: 4px; box-sizing: border-box; max-width: 100%; padding: 0.5rem; width: 100%; }
.active-reader__notes p { color: #52616d; font-size: 0.75rem; margin: 0.35rem 0 0; }
.active-reader__notes > button {
  display: block;
  margin: 0.55rem 0 0 auto;
  border: 1px solid #c5d2dc;
  border-radius: 0.45rem;
  background: #f7fafc;
  color: #304453;
  padding: 0.3rem 0.65rem;
}
.active-reader__notes > button:hover { background: #eaf3f8; }
.active-reader__selection-capsule {
  position: fixed;
  z-index: 1051;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.22rem;
  border: 1px solid #8ba8ba;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 3px 8px rgba(24, 43, 56, 0.16), 0 10px 28px rgba(24, 43, 56, 0.18);
}
.active-reader__selection-capsule[hidden] { display: none !important; }
.active-reader__selection-capsule button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 0.48rem;
  background: #eef4f8;
  color: #173f59;
  cursor: pointer;
}
.active-reader__selection-capsule button:hover,
.active-reader__selection-capsule button:focus-visible {
  background: #d7eaf5;
  color: #0c4266;
}
.active-reader__selection-capsule button:focus-visible,
.active-reader__marker-action:focus-visible {
  outline: 2px solid #1b6ba5;
  outline-offset: 1px;
}
.active-reader__selection-capsule svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
body.active-reader-enabled .article-post p,
body.active-reader-enabled .article-post li { position: relative; }
body.active-reader-enabled .article-post :is(p, li).active-reader__has-interactions {
  padding-inline-end: 2.4rem;
}
.active-reader__interaction-rail {
  position: absolute;
  top: 0;
  right: 0.2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.active-reader__interaction-rail button,
.active-reader__page-indicators button {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid #91abba;
  border-radius: 0.4rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(24, 43, 56, 0.16);
  color: #173f59;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.active-reader__interaction-rail button:hover,
.active-reader__page-indicators button:hover {
  border-color: #4d829f;
  background: #dceef8;
  color: #0c4266;
}
.active-reader__interaction-rail button:focus-visible,
.active-reader__page-indicators button:focus-visible {
  outline: 2px solid #1b6ba5;
  outline-offset: 2px;
}
.active-reader__interaction-rail svg,
.active-reader__page-indicators svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.active-reader__page-indicators { display: inline-flex; flex: none; align-items: center; gap: 0.25rem; }
.active-reader__page-indicators [hidden] { display: none; }
.active-reader__interaction-rail .has-important {
  border-color: #b78329;
  background: #fff3d4;
  color: #765000;
}
::highlight(reader-important) { background: #ffe6a1; color: inherit; }
.active-reader__important-dialog { max-width: min(42rem, calc(100vw - 2rem)); max-height: 85vh; overflow: auto; }
.active-reader__important-dialog .active-reader__dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.active-reader__important-dialog .active-reader__dialog-header h2 { margin: 0; }
.active-reader__important-dialog #active-reader-important-close { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; }
.active-reader__important-dialog blockquote { margin: 0.4rem 0 1rem; padding: 0.5rem 0.75rem; border-left: 3px solid #d3ac61; white-space: pre-wrap; }
.active-reader__important-dialog section { margin: 0.75rem 0; padding-bottom: 0.75rem; border-bottom: 1px solid #d9e2e8; }
.active-reader__important-dialog h3 { font-size: 1rem; }
.active-reader__important-dialog button,
#active-reader-ai-delete,
#active-reader-note-delete { cursor: pointer; }
.active-reader [hidden],
.article-post [hidden] { display: none !important; }
.article-post [data-reader-fragment][hidden] { display: none !important; }
body.active-reader-enabled .article-post > .series-box { display: none !important; }
.article-post .active-reader__text-node { display: contents; }
body.active-reader-enabled .article-post .active-reader__text-node { display: block; }
body.active-reader-enabled .article-post .active-reader__table-bullet-row > td {
  border: 0 !important;
  background: transparent !important;
  padding: 0.25rem !important;
  text-align: center;
}
body.active-reader-enabled .article-post .active-reader__marker {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  gap: 0.12rem;
  margin-inline-start: 0.3rem;
  padding: 0.12rem 0.22rem;
  border: 1px solid #91abba;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(24, 43, 56, 0.14);
  line-height: 1;
}
body.active-reader-enabled .article-post .active-reader__bullet,
body.active-reader-enabled .article-post .active-reader__question,
body.active-reader-enabled .article-post .active-reader__marker-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  padding: 0;
  border: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  touch-action: none;
}
body.active-reader-enabled .article-post .active-reader__bullet { background: transparent; }
body.active-reader-enabled .article-post .active-reader__marker-action {
  border-radius: 0.35rem;
  background: transparent;
  color: #173f59;
  touch-action: manipulation;
}
body.active-reader-enabled .article-post .active-reader__marker-action:hover {
  background: #dceef8;
  color: #0c4266;
}
body.active-reader-enabled .article-post .active-reader__marker-action svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
body.active-reader-enabled .article-post .active-reader__question {
  border-radius: 0.35rem;
  background: transparent;
  color: #173f59;
  touch-action: manipulation;
}
body.active-reader-enabled .article-post .active-reader__question svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
body.active-reader-enabled .article-post .active-reader__question:hover {
  background: #dceef8;
  color: #0c4266;
}
body.active-reader-enabled .article-post .active-reader__question:focus-visible {
  outline: 2px solid #1b6ba5;
  outline-offset: 1px;
}
body.active-reader-enabled .article-post .active-reader__bullet::before {
  content: "●";
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border: 1px solid #91abba;
  border-radius: 50%;
  background: #eaf3f8;
  color: #173f59;
  font-size: 0.38rem;
  line-height: 1;
}
body.active-reader-enabled .article-post .active-reader__bullet:hover::before {
  border-color: #9fb1bd;
  background: #eef4f7;
}
body.active-reader-enabled .article-post .active-reader__bullet:focus-visible {
  outline: 2px solid #1b6ba5;
  outline-offset: 1px;
}
body.active-reader-enabled .article-post .active-reader__bullet.is-block {
  display: flex;
  margin: 0;
}
body.active-reader-enabled .article-post .active-reader__marker.is-block {
  display: flex;
  width: max-content;
  margin: 0.65rem auto;
}
body.active-reader-enabled .article-post .active-reader__bullet.is-inactive {
  cursor: default;
}
body.active-reader-enabled .article-post .active-reader__bullet.is-inactive::before {
  border-color: #d4dbe0;
  background: #f1f3f5;
  color: #8996a0;
}
body.active-reader-enabled .article-post .active-reader__bullet.is-flashing {
  animation: none;
}
body.active-reader-enabled .article-post .active-reader__bullet.is-flashing::before {
  animation: active-reader-bullet-flash 0.45s ease-out;
}
@keyframes active-reader-bullet-flash {
  0%, 100% { border-color: #d4dbe0; color: #8996a0; }
  40% { border-color: #c62828; background: #fff0f0; color: #c62828; }
}

@media (prefers-reduced-motion: reduce) {
  body.active-reader-enabled .article-post .active-reader__bullet.is-flashing::before {
    animation: none;
    border-color: #c62828;
    background: #fff0f0;
    color: #c62828;
  }
}

@media (max-width: 767px) {
  .active-reader { padding: 0.28rem 0.7rem; }
  body.active-reader-enabled .mediumnavigation > .container {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }
  .active-reader__controls { gap: 0.3rem; }
  .active-reader__controls { max-width: 100%; }
  .active-reader__progress { font-size: 0.7rem; }
  .active-reader__dialog { padding: 1.05rem 1.1rem; }
  .active-reader__learning-modal {
    width: calc(100vw - 0.75rem);
    height: calc(100dvh - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
    padding: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .mediumnavigation .site-brand-description { display: none; }
  .mediumnavigation > .container > .navbar-brand { margin-right: 0.2rem; }
  .mediumnavigation #active-reader-toggle {
    font-size: 0.73rem;
    margin-right: 0.2rem;
    min-height: 1.75rem;
    padding: 0.25rem 0.3rem;
  }
  .active-reader__toggle-full { display: none; }
  .active-reader__toggle-short { display: inline; }
  .active-reader #active-reader-previous,
  .active-reader #active-reader-section {
    box-sizing: border-box;
    font-size: 0;
    text-align: center;
    width: 1.8rem;
    padding: 0;
  }
  .active-reader #active-reader-previous::before { content: "←"; font-size: 1rem; }
  .active-reader #active-reader-section::before { content: "→"; font-size: 1rem; }
  .active-reader #active-reader-help-open { padding-inline: 0.35rem; }
  .active-reader__settings-button { width: 1.8rem; min-width: 1.8rem !important; }
  .active-reader__message { left: 0.7rem; }
  .active-reader__selection-capsule button { width: 2.2rem; height: 2.2rem; }
}

@media (max-width: 359.98px) {
  .mediumnavigation .site-brand-name { font-size: 0.82rem; }
  .active-reader__progress { font-size: 0.66rem; }
}

@media (max-height: 520px) {
  .active-reader__notes { max-height: 45vh; }
}

.article-post .inline-blur {
  position: relative;
  display: none;
  box-sizing: content-box;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0.18em;
  background: linear-gradient(180deg, transparent 48%, rgba(94, 151, 205, 0.12) 100%);
  box-shadow: inset 0 -0.055em 0 rgba(57, 115, 175, 0.42);
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
body.active-reader-enabled .article-post .inline-blur { display: inline-block; }
body.active-reader-enabled .article-post .inline-blur__plain { display: none; }
.article-post .inline-blur__result { display: none; }
body.active-reader-enabled .article-post .inline-blur__result { display: inline; }
.article-post .inline-blur__term {
  display: inline;
  color: #4b6d8f;
  filter: blur(0.28em);
  opacity: 0.72;
}
.article-post .inline-blur:hover {
  background: linear-gradient(180deg, transparent 30%, rgba(94, 151, 205, 0.2) 100%);
  box-shadow: inset 0 -0.075em 0 rgba(37, 99, 176, 0.7);
}
.article-post .inline-blur:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.inline-blur__menu {
  position: fixed;
  z-index: 10050;
  display: grid;
  gap: 0.25rem;
  width: min(18rem, calc(100vw - 24px));
  max-height: min(20rem, calc(100dvh - 16px));
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}
.inline-blur__menu[hidden] { display: none; }
.inline-blur__menu button {
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: #1e293b;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.inline-blur__menu button:hover,
.inline-blur__menu button:focus-visible {
  background: #eff6ff;
  outline: 2px solid #2563eb;
}
.article-post .inline-blur__result:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.article-post .inline-blur__result ins {
  color: #166534;
  font-weight: 600;
  text-decoration: none;
}
.article-post .inline-blur__result del { color: #991b1b; }

.article-post .inline-question { display: none; }
body.active-reader-enabled .article-post .inline-question {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 1.4rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #3b82f6;
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.82em;
  line-height: 1.4;
}
.article-post .inline-question fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.article-post .inline-question legend {
  width: 100%;
  margin: 0 0 0.7rem;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
}
.article-post .inline-question__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.1rem 0;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
}
.article-post .inline-question__choice:hover { background: #eff6ff; }
.article-post .inline-question__choice:focus-within { outline: 2px solid #2563eb; outline-offset: 2px; }
.article-post .inline-question__choice input { flex: none; margin: 0.35em 0 0; }
.article-post .inline-question__check,
.article-post .inline-question__close {
  margin-top: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 0.35rem;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.article-post .inline-question__check:disabled { opacity: 0.5; cursor: default; }
.article-post .inline-question__check:focus-visible,
.article-post .inline-question__close:focus-visible,
.article-post .inline-question__result summary:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 3px; }
.article-post .inline-question__close { margin-top: 0.7rem; }
.article-post .inline-question__result { margin-top: 0.75rem; }
.article-post .inline-question__result > p { margin: 0 0 0.4rem; }
.article-post .inline-question__result .is-correct { color: #166534; }
.article-post .inline-question__result .is-incorrect { color: #991b1b; }
.article-post .inline-question__result details { margin-top: 0.5rem; }
.article-post .inline-question__result details p { margin: 0.4rem 0 0 0.8rem; }
@media (max-width: 480px) {
  body.active-reader-enabled .article-post .inline-question { padding: 0.8rem; }
}

@media print {
  body.active-reader-enabled .article-post .inline-blur { display: none; }
  body.active-reader-enabled .article-post .inline-question { display: none; }
  body.active-reader-enabled .article-post .inline-blur__plain { display: inline; }
  body.active-reader-enabled .article-post .inline-blur__result { display: none; }
  .article-post .inline-blur__term { color: inherit; filter: none; opacity: 1; }
  .inline-blur__menu { display: none !important; }
}

@media print {
  body.active-reader-enabled .article-post .active-reader__visual { max-height: none !important; }
  .active-reader { display: none !important; }
  .mediumnavigation #active-reader-toggle { display: none !important; }
  .active-reader__dialog { display: none !important; }
  body.active-reader-enabled .site-content { margin-top: 0 !important; }
  body.active-reader-enabled .article-post {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    padding: 0 !important;
  }
  body.active-reader-enabled .article-post > .series-box { display: revert !important; }
  .article-post [hidden] { display: revert !important; }
  .article-post [data-reader-fragment][hidden] { display: revert !important; }
  .article-post .active-reader__marker { display: none !important; }
  .active-reader__selection-capsule { display: none !important; }
}
