@charset "utf-8";
/* =====================================================================
   \bd81 \cf54 \c2a4 \baa8 \c2a4  \c694 \c57d \bcf8  \bdf0 \c5b4  (\c0c8  \bdf0 \c5b4  \d14c \c2a4 \d2b8 \d310 ) - \acf5 \c6a9  \c2a4 \d0c0 \c77c 
   - \d3f0 (<768) / \d0dc \be14 \b9bf (768~1179) / PC(>=1180) \d55c  \bc8c 
   - \d14c \b9c8 : light / sepia / dark / black / auto(\c2dc \c2a4 \d15c )
   ===================================================================== */

:root {
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", "Noto Serif CJK KR", serif;
  --read-font: var(--sans);
  --fs: 17px;
  --lh: 1.8;
  --measure: 35em;
  --align: justify;
  --top-h: 56px;
  --dock-h: 0px;
  --toc-w: 300px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --bg: #fcfbf9;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --fg: #1d2127;
  --fg-2: #464c56;
  --muted: #737983;
  --line: #e7e4de;
  --accent: #2d5bd2;
  --accent-ink: #ffffff;
  --accent-soft: rgba(45, 91, 210, .09);
  --chrome: rgba(252, 251, 249, .92);
  --reading: rgba(45, 91, 210, .14);
  --hover: rgba(29, 33, 39, .06);
  --scrim: rgba(16, 18, 22, .38);
  --shadow: 0 14px 36px -10px rgba(29, 33, 39, .22), 0 2px 6px rgba(29, 33, 39, .06);
  --hl-y: rgba(255, 205, 41, .42);
  --hl-g: rgba(88, 196, 112, .32);
  --hl-p: rgba(244, 114, 160, .30);
  --sr: rgba(255, 168, 0, .30);
  --sr-cur: rgba(255, 138, 0, .62);
  --sk1: rgba(29, 33, 39, .06);
  --sk2: rgba(29, 33, 39, .11);
  --cover-a: #2c4a78;
  --cover-b: #182c4d;
  color-scheme: light;
}
html[data-theme="sepia"] {
  --bg: #f5eddc;
  --surface: #fbf6ea;
  --surface-2: #ece2cb;
  --fg: #3b3024;
  --fg-2: #5b4d3c;
  --muted: #86775f;
  --line: #e1d3b8;
  --accent: #9a5a26;
  --accent-ink: #fffaf0;
  --accent-soft: rgba(154, 90, 38, .10);
  --chrome: rgba(245, 237, 220, .93);
  --reading: rgba(154, 90, 38, .15);
  --hover: rgba(59, 48, 36, .07);
  --sk1: rgba(59, 48, 36, .07);
  --sk2: rgba(59, 48, 36, .12);
}
html[data-theme="gray"] {
  --bg: #ebebea;
  --surface: #f6f6f5;
  --surface-2: #e0e0de;
  --fg: #232323;
  --fg-2: #4a4a47;
  --muted: #73726d;
  --line: #d6d5d1;
  --chrome: rgba(235, 235, 234, .93);
  --hover: rgba(35, 35, 35, .06);
  --sk1: rgba(35, 35, 35, .07);
  --sk2: rgba(35, 35, 35, .12);
}
html[data-theme="dark"] {
  --bg: #17181b;
  --surface: #1f2024;
  --surface-2: #2a2b30;
  --fg: #dcd8d0;
  --fg-2: #b8b4ac;
  --muted: #8d8a84;
  --line: #2f3136;
  --accent: #87a7ff;
  --accent-ink: #0f1320;
  --accent-soft: rgba(135, 167, 255, .13);
  --chrome: rgba(23, 24, 27, .92);
  --reading: rgba(135, 167, 255, .20);
  --hover: rgba(255, 255, 255, .06);
  --scrim: rgba(0, 0, 0, .55);
  --shadow: 0 14px 36px -10px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .3);
  --hl-y: rgba(255, 205, 41, .24);
  --hl-g: rgba(88, 196, 112, .24);
  --hl-p: rgba(244, 114, 160, .24);
  --sr: rgba(255, 168, 0, .24);
  --sr-cur: rgba(255, 138, 0, .50);
  --sk1: rgba(255, 255, 255, .05);
  --sk2: rgba(255, 255, 255, .10);
  color-scheme: dark;
}
html[data-theme="black"] {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1e1e21;
  --fg: #cdc9c1;
  --fg-2: #aaa69f;
  --muted: #84817c;
  --line: #232326;
  --accent: #87a7ff;
  --accent-ink: #0f1320;
  --accent-soft: rgba(135, 167, 255, .12);
  --chrome: rgba(11, 11, 12, .94);
  --reading: rgba(135, 167, 255, .18);
  --hover: rgba(255, 255, 255, .06);
  --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 14px 36px -10px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .4);
  --hl-y: rgba(255, 205, 41, .22);
  --hl-g: rgba(88, 196, 112, .22);
  --hl-p: rgba(244, 114, 160, .22);
  --sr: rgba(255, 168, 0, .22);
  --sr-cur: rgba(255, 138, 0, .48);
  --sk1: rgba(255, 255, 255, .05);
  --sk2: rgba(255, 255, 255, .09);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #17181b;
    --surface: #1f2024;
    --surface-2: #2a2b30;
    --fg: #dcd8d0;
    --fg-2: #b8b4ac;
    --muted: #8d8a84;
    --line: #2f3136;
    --accent: #87a7ff;
    --accent-ink: #0f1320;
    --accent-soft: rgba(135, 167, 255, .13);
    --chrome: rgba(23, 24, 27, .92);
    --reading: rgba(135, 167, 255, .20);
    --hover: rgba(255, 255, 255, .06);
    --scrim: rgba(0, 0, 0, .55);
    --shadow: 0 14px 36px -10px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .3);
    --hl-y: rgba(255, 205, 41, .24);
    --hl-g: rgba(88, 196, 112, .24);
    --hl-p: rgba(244, 114, 160, .24);
    --sr: rgba(255, 168, 0, .24);
    --sr-cur: rgba(255, 138, 0, .50);
    --sk1: rgba(255, 255, 255, .05);
    --sk2: rgba(255, 255, 255, .10);
    color-scheme: dark;
  }
}
html[data-font="serif"] { --read-font: var(--serif); }
html[data-align="justify"] { --align: justify; } html[data-align="left"] { --align: left; }

/* ---------- \ae30 \bcf8  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + var(--safe-t) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s ease, color .25s ease;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.br-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.br-skip:focus { top: calc(var(--safe-t) + 8px); }
.ic { width: 22px; height: 22px; flex: none; display: block; }
.aa { font-weight: 700; font-size: 17px; letter-spacing: -0.04em; line-height: 1; display: inline-flex; align-items: baseline; }
.aa small { font-size: 12px; font-weight: 700; margin-left: 1px; }

/* \c544 \c774 \cf58  \bc84 \d2bc  */
.ib {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--fg-2);
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
.ib:active { transform: scale(.94); }
.ib.on, .ib[aria-pressed="true"] { color: var(--accent); }
.ib.on .ic, .ib[aria-pressed="true"] .ic.fillable { fill: currentColor; }
.ib.sm { width: 34px; height: 34px; border-radius: 9px; }
.ib.sm .ic { width: 19px; height: 19px; }
@media (hover: hover) { .ib:hover { background: var(--hover); color: var(--fg); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  font-size: 14.5px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.sm { min-height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; }
@media (hover: hover) {
  .btn:hover { background: var(--surface-2); }
  .btn.pri:hover { background: var(--accent); filter: brightness(1.06); }
}

/* ---------- \c9c4 \d589  \b9c9 \b300  ---------- */
.br-progress { position: fixed; z-index: 32; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.br-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear; }

/* ---------- \c0c1 \b2e8  \bc14  ---------- */
.br-top {
  position: fixed; z-index: 30; left: 0; right: 0; top: 0;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 8px 0;
  display: flex; align-items: center; gap: 2px;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .28s var(--ease), background-color .25s ease;
}
.br-ttl { flex: 1; min-width: 0; padding: 0 6px; display: flex; flex-direction: column; justify-content: center; }
.br-ttl b { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-ttl span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; }
.br-ttl span:empty { display: none; }
.br-test { font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }
body.chrome-off .br-top { transform: translateY(-100%); }

/* ---------- \bcf8 \bb38  \ac80 \c0c9  \bc14  ---------- */
.br-search {
  position: fixed; z-index: 33; left: 0; right: 0; top: 0;
  padding: calc(var(--safe-t) + 8px) 10px 8px;
  background: var(--chrome);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.br-search-in { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px 0 12px; border-radius: 11px; background: var(--surface-2); }
.br-search-in .ic { width: 18px; height: 18px; color: var(--muted); }
.br-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 6px; font-size: 16px; }
.br-search input::-webkit-search-cancel-button { display: none; }
.br-qn { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; }
@media (min-width: 768px) {
  .br-search { left: auto; right: 16px; top: calc(var(--top-h) + var(--safe-t) + 10px); width: 440px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
}

/* ---------- \bcf8 \bb38  \c601 \c5ed  ---------- */
.br-main {
  padding: calc(var(--top-h) + var(--safe-t) + 26px) 0 calc(var(--dock-h) + var(--safe-b) + 72px);
  transition: margin-left .28s var(--ease), padding-bottom .25s ease;
}
body.player-on .br-main { padding-bottom: calc(var(--dock-h) + var(--safe-b) + 190px); }
.br-article { max-width: calc(var(--measure) + 44px); margin: 0 auto; padding: 0 22px; font-size: var(--fs); }
@media (min-width: 768px) {
  .br-main { padding-top: calc(var(--top-h) + var(--safe-t) + 44px); }
  .br-article { max-width: calc(var(--measure) + 64px); padding: 0 32px; }
}

/* \b3c4 \c11c  \ce74 \b4dc  */
.br-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: end; padding: 4px 0 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); font-size: 15px; }
.br-cover {
  width: 88px; aspect-ratio: 7 / 10; border-radius: 6px; overflow: hidden; position: relative;
  background: linear-gradient(155deg, var(--cover-a), var(--cover-b));
  box-shadow: 0 12px 26px -8px rgba(18, 28, 48, .45), 0 0 0 1px rgba(0, 0, 0, .05);
}
.br-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.br-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0) 9%, rgba(0,0,0,.06) 12%, rgba(0,0,0,0) 16%); pointer-events: none; }
.br-card h1 { margin: 0; font-size: 22px; line-height: 1.32; font-weight: 750; letter-spacing: -0.025em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.br-by { margin-top: 6px; color: var(--fg-2); font-size: 14px; word-break: keep-all; }
.br-meta-x { margin-top: 3px; color: var(--muted); font-size: 12.5px; word-break: keep-all; }
.br-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 7px;
  border: 0; background: var(--surface-2); color: var(--fg-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.chip .ic { width: 15px; height: 15px; }
button.chip { transition: background-color .18s ease, color .18s ease; }
button.chip.ai { background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) { button.chip:hover { filter: brightness(.97); } }
.br-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.br-langs .lbl { display: inline-flex; color: var(--muted); margin-right: 2px; }
.br-langs .lbl .ic { width: 18px; height: 18px; }
.br-langs button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); font-size: 13px; font-weight: 600; }
.br-langs button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.br-study { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; margin-left: auto; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.br-study .ic { width: 15px; height: 15px; }
@media (max-width: 767.98px) { .br-study { margin-left: 0; } }
@media (min-width: 768px) {
  .br-card { gap: 26px; padding-bottom: 32px; margin-bottom: 40px; }
  .br-cover { width: 116px; }
  .br-card h1 { font-size: 27px; }
}
.br-note-preview {
  display: flex; gap: 10px; align-items: flex-start; margin: -12px 0 30px; padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--fg-2); font-size: 13.5px; line-height: 1.55;
}
.br-note-preview .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.br-note-preview a { font-weight: 700; }

/* \bcf8 \bb38  \d0c0 \c774 \d3ec \adf8 \b798 \d53c  */
.br-content {
  font-family: var(--read-font); font-size: var(--fs); line-height: var(--lh);
  color: var(--fg); letter-spacing: var(--ls, -0.003em);
  word-break: keep-all; overflow-wrap: break-word;
  font-kerning: normal;
}
.br-content:focus { outline: none; }
.br-content p { margin: 0 0 calc(var(--lh) * .62em); text-align: var(--align); text-wrap: pretty; }
.br-content h2, .br-content h3 { font-family: var(--sans); color: var(--fg); scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 18px); text-wrap: balance; }
.br-content h2 {
  font-size: 1.28em; line-height: 1.42; font-weight: 750; letter-spacing: -0.022em;
  margin: 2.5em 0 1.05em; padding-top: 1.5em; border-top: 1px solid var(--line);
}
.br-content h3 { font-size: 1.07em; line-height: 1.5; font-weight: 700; letter-spacing: -0.012em; margin: 2em 0 .75em; }
.br-content h3::before { content: ""; display: inline-block; width: 4px; height: .9em; margin-right: .55em; border-radius: 2px; background: var(--accent); vertical-align: -0.08em; }
.br-content > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.br-content .s { border-radius: 3px; transition: background-color .25s ease; }
.br-content .s.reading { background: var(--reading); box-shadow: 0 0 0 2px var(--reading); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.player-on .br-content .s { cursor: pointer; }
@media (hover: hover) { body.player-on .br-content .s:hover { background: var(--hover); } body.player-on .br-content .s.reading:hover { background: var(--reading); } }
.br-content mark { color: inherit; background: none; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.br-content mark.hl { cursor: pointer; }
.br-content mark.hl.y { background: var(--hl-y); }
.br-content mark.hl.g { background: var(--hl-g); }
.br-content mark.hl.p { background: var(--hl-p); }
.br-content mark.hl.has-note { text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.br-content mark.sr { background: var(--sr); }
.br-content mark.sr.cur { background: var(--sr-cur); box-shadow: 0 0 0 2px var(--sr-cur); }
.br-content .flash { animation: brflash 1.4s ease; }
@keyframes brflash { 0%, 30% { background: var(--reading); box-shadow: 0 0 0 4px var(--reading); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
html.no-select .br-content, html.no-select .br-st { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* \c2a4 \cf08 \b808 \d1a4  / \c0c1 \d0dc  */
.sk { display: block; height: 14px; margin: 0 0 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sk1) 25%, var(--sk2) 37%, var(--sk1) 63%); background-size: 400% 100%; animation: brsk 1.4s ease infinite; }
.sk.t { height: 24px; width: 70%; margin-bottom: 12px; }
.sk.c { width: 88px; aspect-ratio: 7 / 10; height: auto; border-radius: 6px; margin: 0; }
@media (min-width: 768px) { .sk.c { width: 116px; } }
@keyframes brsk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.br-state { text-align: center; padding: 48px 8px 24px; font-size: 15px; color: var(--fg-2); }
.br-state .ic { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--muted); }
.br-state h2 { font-size: 18px; margin: 0 0 8px; color: var(--fg); letter-spacing: -0.02em; }
.br-state p { margin: 0 0 20px; line-height: 1.6; }
.br-state .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* \bbf8 \b9ac \bcf4 \ae30  \c548 \b0b4  / \b05d  */
.br-cta {
  margin: 40px 0 8px; padding: 30px 22px 26px; border-radius: 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px;
}
.br-cta .ic { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--accent); }
.br-cta h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.025em; }
.br-cta p { margin: 0 auto 18px; max-width: 26em; color: var(--fg-2); line-height: 1.6; word-break: keep-all; }
.br-cta .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.br-cta .sub { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.br-fade { position: relative; }
.br-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(rgba(0,0,0,0), var(--bg)); pointer-events: none; }
.br-end { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.br-end b { display: block; font-size: 16px; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.02em; }
.br-end p { margin: 0 auto 18px; max-width: 30em; line-height: 1.65; word-break: keep-all; }
.br-end .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- \baa9 \cc28  ---------- */
.br-toc {
  position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(86vw, 340px);
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
  padding-top: var(--safe-t);
  transform: translateX(-103%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
body.toc-open .br-toc { transform: none; visibility: visible; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.br-toc-head { display: flex; align-items: center; gap: 6px; padding: 12px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.br-toc-head div { flex: 1; min-width: 0; }
.br-toc-head h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.br-toc-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.br-toc-list { flex: 1; overflow: auto; padding: 8px 8px calc(var(--safe-b) + 24px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.br-ti {
  display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left;
  padding: 9px 10px; margin: 1px 0; border: 0; border-radius: 9px; background: transparent;
  color: var(--fg-2); font-size: 14.5px; line-height: 1.45; word-break: keep-all;
  transition: background-color .15s ease, color .15s ease;
}
.br-ti span { flex: 1; min-width: 0; }
.br-ti.c { color: var(--fg); font-weight: 650; }
.br-ti.s { padding-left: 24px; font-size: 13.8px; }
.br-ti.on { background: var(--accent-soft); color: var(--accent); }
.br-ti.locked { color: var(--muted); }
.br-ti .lk { width: 15px; height: 15px; margin-top: 2px; color: var(--muted); }
.br-ti-row { display: flex; align-items: flex-start; gap: 2px; }
.br-ti-row .br-ti { flex: 1; min-width: 0; }
.ti-play { flex: none; width: 32px; height: 36px; margin: 1px 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; opacity: .55; transition: opacity .15s ease, background-color .15s ease, color .15s ease; }
.ti-play .ic { width: 14px; height: 14px; }
.br-ti-row:hover .ti-play, .ti-play:focus-visible { opacity: 1; }
@media (hover: hover) { .ti-play:hover { background: var(--accent-soft); color: var(--accent); } }
@media (hover: none) { .ti-play { opacity: .8; } }
@media (hover: hover) { .br-ti:hover { background: var(--hover); } .br-ti.on:hover { background: var(--accent-soft); } }
.br-toc-empty { padding: 20px 12px; color: var(--muted); font-size: 14px; }
@media (min-width: 1180px) {
  body.toc-pinned .br-toc { top: calc(var(--top-h) + var(--safe-t)); width: var(--toc-w); transform: none; visibility: visible; box-shadow: none; z-index: 20; padding-top: 0; transition: transform .3s var(--ease); background: var(--bg); }
  body.toc-pinned .br-main { margin-left: var(--toc-w); }
  body.toc-pinned .br-toc .x-close { display: none; }
}
@media (max-width: 1179.98px) { .br-toc .x-pin { display: none; } }

/* ---------- \c2a4 \d06c \b9bc  / \c2dc \d2b8  ---------- */
.br-scrim { position: fixed; inset: 0; z-index: 38; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
body.scrim-on .br-scrim { opacity: 1; pointer-events: auto; }
body.scrim-on.scrim-clear .br-scrim { opacity: 0; }
.br-sheet {
  position: fixed; z-index: 42; left: 0; right: 0; bottom: 0;
  max-height: 84vh; max-height: 84dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--fg);
  border-radius: 18px 18px 0 0; box-shadow: var(--shadow);
  padding: 8px 18px calc(var(--safe-b) + 18px);
  transform: translateY(104%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.br-sheet.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.br-sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 10px; }
.br-sheet h2 { margin: 4px 0 14px; font-size: 16.5px; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (min-width: 768px) {
  .br-sheet .grab { display: none; }
  .br-sheet[data-pc="pop"] {
    left: auto; right: 12px; bottom: auto; top: calc(var(--top-h) + var(--safe-t) + 8px); width: 360px;
    max-height: calc(100vh - var(--top-h) - 32px); border-radius: 16px; border: 1px solid var(--line);
    padding: 14px 18px 18px; transform: translateY(-6px) scale(.98); opacity: 0; transform-origin: 90% 0;
    transition: transform .2s var(--ease), opacity .2s ease, visibility 0s linear .2s;
  }
  .br-sheet[data-pc="pop"].open { transform: none; opacity: 1; transition: transform .2s var(--ease), opacity .2s ease; }
  .br-sheet[data-pc="side"] {
    left: auto; top: 0; right: 0; bottom: 0; width: 400px; max-height: none; border-radius: 0; border-left: 1px solid var(--line);
    padding: calc(var(--safe-t) + 16px) 20px 20px; transform: translateX(104%);
  }
  .br-sheet[data-pc="side"].open { transform: none; }
  .br-sheet[data-pc="dialog"] {
    left: 50%; right: auto; top: 50%; bottom: auto; width: min(460px, calc(100vw - 32px)); border-radius: 16px; border: 1px solid var(--line);
    padding: 18px 20px 20px; transform: translate(-50%, -46%) scale(.98); opacity: 0;
    transition: transform .2s var(--ease), opacity .2s ease, visibility 0s linear .2s;
  }
  .br-sheet[data-pc="dialog"].open { transform: translate(-50%, -50%); opacity: 1; transition: transform .2s var(--ease), opacity .2s ease; }
}

/* \bcf4 \ae30  \c124 \c815  */
.set-row { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0; }
.set-row > label, .set-row > span.k { font-size: 13.5px; color: var(--fg-2); font-weight: 600; }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 11px; background: var(--surface-2); }
.seg button { flex: 1; min-width: 0; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
html[data-theme="dark"] .seg button[aria-pressed="true"], html[data-theme="black"] .seg button[aria-pressed="true"] { background: var(--line); }
.size { display: flex; align-items: center; gap: 8px; }
.size button { width: 46px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--fg); }
.size button:disabled { opacity: .35; cursor: default; }
.size output { flex: 1; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--fg-2); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font-size: 11.5px; color: var(--muted); }
.sw i { width: 36px; height: 36px; border-radius: 50%; display: block; border: 1px solid rgba(0, 0, 0, .12); box-shadow: inset 0 0 0 3px var(--surface); }
.sw[aria-pressed="true"] i { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw[aria-pressed="true"] { color: var(--fg); font-weight: 600; }
.sw .t-light { background: #fcfbf9; }
.sw .t-sepia { background: #f5eddc; }
.sw .t-gray { background: #ebebea; }
.sw .t-dark { background: #1f2024; }
.sw .t-black { background: #0b0b0c; }
.sw .t-auto { background: linear-gradient(135deg, #fcfbf9 50%, #1f2024 50%); }
.set-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 2px; font-size: 14px; color: var(--fg-2); }
.tg { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; border: 0; background: var(--line); transition: background-color .2s ease; }
.tg::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.tg[aria-pressed="true"] { background: var(--accent); }
.tg[aria-pressed="true"]::after { transform: translateX(18px); }
.set-help { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.set-help kbd { font-family: var(--sans); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-2); }
@media (max-width: 767.98px) { .only-wide-set { display: none; } }

/* \b354 \bcf4 \ae30  \ba54 \b274  */
.menu-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; border-radius: 10px;
  background: transparent; text-align: left; color: var(--fg); font-size: 14.5px; text-decoration: none;
}
.menu-list .ic { width: 20px; height: 20px; color: var(--fg-2); }
.menu-list small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
@media (hover: hover) { .menu-list a:hover, .menu-list button:hover { background: var(--hover); } }
.menu-foot { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }

/* \b0b4  \ae30 \b85d  */
.rec-tabs { margin-bottom: 12px; }
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec { display: flex; gap: 4px; align-items: flex-start; border-radius: 12px; background: var(--surface-2); }
.rec > button:first-child { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 12px 4px 12px 14px; color: var(--fg); }
.rec .ch { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rec .ex { display: block; font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.rec .ex.y { box-shadow: inset 3px 0 0 #f2c230; padding-left: 9px; }
.rec .ex.g { box-shadow: inset 3px 0 0 #4fb866; padding-left: 9px; }
.rec .ex.p { box-shadow: inset 3px 0 0 #ec6f9b; padding-left: 9px; }
.rec .nt { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface); font-size: 13.5px; color: var(--fg-2); line-height: 1.55; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.rec .ib { margin: 6px 6px 0 0; }
.rec-empty { padding: 26px 8px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.rec-empty.sm { padding: 8px 4px 4px; text-align: left; font-size: 13px; }
.rec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 4px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.rec-list > .rec-h:first-child { margin-top: 2px; }
.rec.book { align-items: center; }
.rec.book a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 4px 10px 12px; color: var(--fg); text-decoration: none; }
.rec.book img { width: 36px; aspect-ratio: 7 / 10; object-fit: cover; border-radius: 4px; flex: none; background: var(--line); }
.rec.book .ex { font-size: 14px; font-weight: 600; }
.rec.book .ch { margin: 2px 0 0; }
.rec.book .ib { margin: 0 6px 0 0; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* \ba54 \baa8  \d3b8 \c9d1  */
.note-q { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; line-height: 1.6; color: var(--fg-2); max-height: 7.5em; overflow: auto; word-break: keep-all; }
.note-ta { width: 100%; min-height: 120px; resize: vertical; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; line-height: 1.6; }
.note-ta:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.note-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.note-row .grow { flex: 1; }
.book-note { min-height: 240px; }

/* \c120 \d0dd  \ba54 \b274  */
.br-sel {
  position: absolute; z-index: 45; display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 12px; background: #24272d; color: #f3f1ec; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  font-size: 13px; white-space: nowrap;
  animation: brpop .14s var(--ease);
}
@keyframes brpop { from { opacity: 0; transform: translateY(4px) scale(.97); } to { opacity: 1; transform: none; } }
.br-sel button { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-weight: 600; }
.br-sel button .ic { width: 17px; height: 17px; }
.br-sel .dot { width: 34px; padding: 0; justify-content: center; }
.br-sel .dot i { width: 18px; height: 18px; border-radius: 50%; display: block; border: 2px solid rgba(255, 255, 255, .85); }
.br-sel .dot.y i { background: #f2c230; }
.br-sel .dot.g i { background: #4fb866; }
.br-sel .dot.p i { background: #ec6f9b; }
.br-sel .dot[aria-pressed="true"] i { box-shadow: 0 0 0 2px #24272d, 0 0 0 4px #fff; }
.br-sel .sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .18); margin: 0 3px; }
@media (hover: hover) { .br-sel button:hover { background: rgba(255, 255, 255, .1); } }
@media (max-width: 359.98px) { .br-sel button span { display: none; } .br-sel button { padding: 0 9px; } }

/* ---------- \d558 \b2e8  \d0ed (\d3f0 ) ---------- */
.br-dock {
  position: fixed; z-index: 29; left: 0; right: 0; bottom: 0;
  height: calc(58px + var(--safe-b)); padding-bottom: var(--safe-b);
  display: none; grid-template-columns: repeat(5, 1fr);
  background: var(--chrome); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-top: 1px solid var(--line);
  transition: transform .28s var(--ease);
}
.br-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--fg-2); font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
.br-dock button .ic { width: 22px; height: 22px; }
.br-dock button .aa { height: 22px; align-items: center; }
.br-dock button.on { color: var(--accent); }
.br-dock button:active { transform: scale(.95); }
@media (max-width: 767.98px) {
  :root { --dock-h: 58px; }
  .br-dock { display: grid; }
  .only-tab { display: none !important; }
  body.chrome-off .br-dock { transform: translateY(100%); }
  body.chrome-off { --dock-h: 0px; }
}

/* ---------- \d50c \b808 \c774 \c5b4  ---------- */
.br-player {
  position: fixed; z-index: 28; left: 0; right: 0; bottom: calc(var(--dock-h) + var(--safe-b));
  padding: 10px 14px 12px; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35);
  transform: translateY(calc(100% + var(--dock-h) + var(--safe-b) + 10px)); visibility: hidden;
  transition: transform .3s var(--ease), bottom .28s var(--ease), visibility 0s linear .3s;
}
body.player-on .br-player { transform: none; visibility: visible; transition: transform .3s var(--ease), bottom .28s var(--ease); }
.pl-top { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.pl-mode { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; border: 0; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pl-mode .ic { width: 14px; height: 14px; }
.pl-mode .ic + .ic, .pl-mode .ic:last-child:not(:first-child) { opacity: .7; }
.pl-mode.can { cursor: pointer; }
.pl-st { flex: 1; min-width: 0; font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-seek { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.pl-t { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; }
.pl-t:last-child { text-align: right; }
.pl-bar { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.pl-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: var(--line); }
.pl-bar i { position: absolute; left: 0; top: 11px; height: 4px; border-radius: 4px; background: var(--accent); width: 0; }
.pl-bar u { position: absolute; top: 11px; height: 4px; right: 0; background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px); opacity: .45; border-radius: 0 4px 4px 0; text-decoration: none; }
.pl-bar b { position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); left: 0; transition: transform .12s ease; }
.pl-bar:active b, .pl-bar.drag b { transform: scale(1.25); }
.pl-ctl { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pl-ctl .mid { display: flex; align-items: center; gap: 6px; }
.pl-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px var(--accent);
  transition: transform .12s ease, filter .15s ease;
}
.pl-play .ic { width: 24px; height: 24px; }
.pl-play:active { transform: scale(.94); }
.pl-play.wait .ic { animation: brspin 1s linear infinite; }
@keyframes brspin { to { transform: rotate(360deg); } }
.pl-rate { min-width: 52px; height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 700; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pl-sel { position: relative; display: inline-flex; align-items: center; max-width: 34vw; }
.pl-sel select {
  -webkit-appearance: none; appearance: none; height: 34px; max-width: 100%; padding: 0 26px 0 10px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--fg-2); font-size: 13px; font-weight: 600; text-overflow: ellipsis;
}
.pl-sel .ic { position: absolute; right: 6px; width: 15px; height: 15px; pointer-events: none; color: var(--muted); }
.pl-side { display: flex; align-items: center; gap: 4px; }
@media (min-width: 768px) {
  .br-player {
    left: 50%; right: auto; bottom: calc(16px + var(--safe-b)); width: min(780px, calc(100% - 32px));
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 18px 14px;
    transform: translate(-50%, calc(100% + 40px));
  }
  body.player-on .br-player { transform: translate(-50%, 0); }
  .pl-sel { max-width: 220px; }
}
@media (min-width: 1180px) {
  body.toc-pinned .br-player { left: calc(50% + var(--toc-w) / 2); width: min(780px, calc(100% - var(--toc-w) - 48px)); }
}
.br-return {
  position: fixed; z-index: 27; left: 50%; bottom: calc(var(--dock-h) + var(--safe-b) + 150px);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s var(--ease);
}
.br-return .ic { width: 16px; height: 16px; }
.br-return.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (min-width: 768px) { .br-return { bottom: calc(var(--safe-b) + 150px); } }

/* ---------- \d1a0 \c2a4 \d2b8  ---------- */
.br-toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--dock-h) + var(--safe-b) + 20px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 11px 14px 11px 16px; border-radius: 12px; background: #24272d; color: #f3f1ec;
  font-size: 14px; line-height: 1.45; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: opacity .22s ease, transform .22s var(--ease);
}
.br-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.br-toast button { flex: none; border: 0; background: none; color: #9db7ff; font-weight: 700; padding: 4px 2px; }
body.player-on .br-toast { bottom: calc(var(--dock-h) + var(--safe-b) + 170px); }

/* ---------- \b9cc \b8cc  / \c624 \b958  \b2e8 \b3c5  \d398 \c774 \c9c0  ---------- */
.br-solo { max-width: 460px; margin: 0 auto; padding: 18vh 24px 40px; text-align: center; }
.br-solo h1 { font-size: 21px; letter-spacing: -0.025em; margin: 0 0 10px; }
.br-solo p { color: var(--fg-2); line-height: 1.65; margin: 0 0 22px; word-break: keep-all; }
.br-solo .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- \baa8 \c158  \c904 \c774 \ae30  ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- \c778 \c1c4  ---------- */
@media print {
  .br-top, .br-dock, .br-player, .br-toc, .br-sheet, .br-scrim, .br-progress, .br-toast, .br-sel, .br-search, .br-return, .br-skip, .br-langs, .br-chips, .br-note-preview, .br-cta, .br-end .row { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .br-main { padding: 0 !important; margin: 0 !important; }
  .br-article { max-width: none; padding: 0; }
  .br-content { color: #000; font-size: 11pt; }
  .br-content .s.reading, .br-content mark { background: none !important; box-shadow: none !important; }
  .br-content h2 { break-after: avoid; }
}

/* ---------- \d398 \c774 \c9c0  \b118 \ae40  \bcf4 \ae30  ---------- */
.br-pg-end { height: 1px; }
.br-pg-head, .br-pg-foot, .br-pg-nav { display: none; }
html.pg, html.pg body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.pg .br-main {
  position: fixed; z-index: 1; left: 0; right: 0;
  top: calc(var(--top-h) + var(--safe-t) + 20px); bottom: calc(48px + var(--pg-pl, 0px));
  padding: 0; margin: 0; overflow: hidden; transition: none;
  touch-action: pan-y pinch-zoom;
}
html.pg.pg-touch .br-main { top: calc(var(--safe-t) + 38px); bottom: calc(var(--safe-b) + 40px + var(--pg-pl, 0px)); }
html.pg .br-clip { height: 100%; width: var(--pg-w, 100%); margin: 0 auto; overflow: hidden; }
html.pg .br-article {
  height: 100%; width: 100%; max-width: none; margin: 0; padding: 0;
  column-count: var(--pg-cols, 1); column-gap: var(--pg-gap, 40px); column-fill: auto;
  transition: none; /* [BC 20261103] no page-turn animation */
}
html.pg.pg-spread .br-article { column-rule: 1px solid var(--line); }
html.pg .br-article.noanim { transition: none; }
html.pg .br-card { break-inside: avoid; padding-top: 0; }
html.pg .br-note-preview, html.pg .br-cta, html.pg .br-end, html.pg .br-state { break-inside: avoid; }
html.pg .br-content h2, html.pg .br-content h3 { break-after: avoid; break-inside: avoid; }
html.pg .br-content h2 { margin-top: 1.4em; }
html.pg .br-content p { orphans: 2; widows: 2; }
html.pg .br-fade::after { display: none; }
html.pg .br-cta { box-shadow: none; margin-top: 24px; }
html.pg .br-pg-foot {
  display: block; position: fixed; z-index: 2; left: 0; right: 0; bottom: calc(15px + var(--pg-pl, 0px));
  text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none;
}
html.pg.pg-touch .br-pg-foot { bottom: calc(var(--safe-b) + 12px + var(--pg-pl, 0px)); }
html.pg.pg-touch .br-pg-head {
  display: block; position: fixed; z-index: 2; left: 56px; right: 56px; top: calc(var(--safe-t) + 12px);
  text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
html.pg:not(.pg-touch) .br-pg-nav {
  display: flex; position: fixed; z-index: 3; top: 50%; width: 44px; height: 88px; margin-top: -44px;
  align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  opacity: .6; transition: opacity .15s ease, background-color .15s ease;
}
html.pg .br-pg-nav.prev { left: 10px; }
html.pg .br-pg-nav.next { right: 10px; }
html.pg .br-pg-nav .ic { width: 28px; height: 28px; }
html.pg .br-pg-nav:disabled { opacity: .15; cursor: default; }
@media (hover: hover) { html.pg .br-pg-nav:not(:disabled):hover { opacity: 1; background: var(--hover); } }
@media (min-width: 1180px) {
  html.pg body.toc-pinned .br-main { left: var(--toc-w); margin-left: 0; }
  html.pg body.toc-pinned .br-pg-foot { left: var(--toc-w); }
  html.pg body.toc-pinned .br-pg-nav.prev { left: calc(var(--toc-w) + 10px); }
}
@media print {
  html.pg, html.pg body { height: auto; overflow: visible; }
  html.pg .br-main { position: static; }
  html.pg .br-clip { width: auto; height: auto; overflow: visible; }
  html.pg .br-article { column-count: auto; height: auto; transform: none !important; }
  .br-pg-head, .br-pg-foot, .br-pg-nav { display: none !important; }
}

/* ---------- \cc98 \c74c  \c4f0 \b294  \bd84  \c0ac \c6a9 \bc95  \c548 \b0b4  ---------- */
.br-tour { position: fixed; inset: 0; z-index: 70; touch-action: none; }
.br-tour-dim { position: fixed; display: block; background: rgba(10, 12, 16, .58); }
.br-tour-spot { position: fixed; border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 0 0 6px rgba(255, 255, 255, .18); }
.br-tour-card {
  position: fixed; z-index: 71; padding: 16px 18px 14px; border-radius: 16px;
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.6; animation: brpop .18s var(--ease);
}
.br-tour-card .k { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.br-tour-card h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -0.02em; }
.br-tour-card p { margin: 0; color: var(--fg-2); word-break: keep-all; }
.br-tour-card .row { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.br-tour-card .grow { flex: 1; }
.br-tour-card .lnk { border: 0; background: none; padding: 6px 2px; color: var(--muted); font-size: 13px; }
@media print { .br-tour { display: none !important; } }

/* ---------- \c5b4 \d559 \d559 \c2b5  ---------- */
button.br-study { border: 0; cursor: pointer; font-family: inherit; }
html.study .br-langs, html.study .br-chips [data-act="listen"] { display: none; }
.br-st { margin-top: 4px; }
.st-bar {
  position: sticky; z-index: 6; top: calc(var(--top-h) + var(--safe-t));
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 0 -10px; padding: 10px; background: var(--bg); border-bottom: 1px solid var(--line);
  transition: top .28s var(--ease);
}
body.chrome-off .st-bar { top: var(--safe-t); }
.st-ttl { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 15px; letter-spacing: -0.02em; }
.st-ttl .ic { width: 18px; height: 18px; color: var(--accent); }
.st-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.st-sel select { height: 34px; max-width: 9.5em; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 13.5px; font-weight: 600; }
.st-bar .grow { flex: 1; }
.st-tip { margin: 12px 0 6px; font-size: 13px; color: var(--muted); word-break: keep-all; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-cell { position: relative; padding: 8px 10px 10px 48px; border-radius: 12px; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.st-cell.b { background: var(--surface-2); }
.st-cell.reading { background: var(--reading); box-shadow: inset 0 0 0 1.5px var(--accent); }
.st-cell.missing { cursor: default; background: none; }
.st-ctl { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.st-play, .st-replay {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px var(--line);
}
.st-replay { color: var(--muted); }
.st-play .ic, .st-replay .ic { width: 14px; height: 14px; }
.st-lang { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.st-t {
  margin: 0; font-family: var(--read-font); font-size: var(--fs); line-height: var(--lh); color: var(--fg);
  letter-spacing: var(--ls, -0.003em); word-break: keep-all; overflow-wrap: break-word; text-align: var(--align);
}
.st-t.h2, .st-t.h3 { font-family: var(--sans); font-weight: 700; text-align: left; }
.st-t.h2 { font-size: 1.15em; letter-spacing: -0.02em; }
.st-t.none { font-size: .9em; color: var(--muted); }
.st-cell:lang(ja) .st-t, .st-cell:lang(zh) .st-t { word-break: normal; line-break: strict; }
@media (hover: hover) {
  .st-cell:not(.missing):not(.reading):hover { box-shadow: inset 0 0 0 1px var(--line); }
  .st-play:hover, .st-replay:hover { filter: brightness(.96); }
}
@media (min-width: 900px) {
  html.study .br-article { max-width: min(calc(64em + 64px), 100%); }
  .st-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
}
/* \c77c \bcf8 \c5b4 \b7 \c911 \ad6d \c5b4  \bcf8 \bb38 \c740  \ae00 \c790  \c0ac \c774 \c5d0 \c11c \b3c4  \c904 \c744  \bc14 \afd4 \c57c  \d55c \b2e4 (keep-all \c774 \ba74  \c904 \c774  \b118 \ce5c \b2e4 ) */
html:lang(ja) .br-content, html:lang(zh) .br-content { word-break: normal; line-break: strict; }
@media print { .st-bar, .st-ctl, .st-tip { display: none !important; } }

/* ---------- \ae00 \af34  \baa9 \b85d  \ace0 \b974 \ae30 (\b300 \d559  \ae30 \c874  \ae00 \af34 ) \b7  \c774 \c804  \bdf0 \c5b4  \b178 \d2b8  ---------- */
.set-sel { position: relative; display: flex; align-items: center; min-width: 0; }
.set-sel select {
  -webkit-appearance: none; appearance: none; width: 100%; height: 40px; padding: 0 34px 0 12px; border-radius: 11px;
  border: 0; background: var(--surface-2); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.set-sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-sel .ic { position: absolute; right: 10px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.rec .lnote { flex: 1; min-width: 0; margin: 0; padding: 12px 4px 12px 14px; font-size: 14px; line-height: 1.6; color: var(--fg); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.rec.book .ph { width: 36px; aspect-ratio: 7 / 10; flex: none; border-radius: 4px; background: var(--line); }
/* [BC 20261103] protect: no printing of the text */
@media print { html.br-protect .br-content, html.br-protect .br-st { display: none !important; } }
/* [BC 20261103] source-document emphasis (classic world literature) */
.br-content mark.br-em { font-weight: 800; background: rgba(255, 214, 102, .38); text-decoration: underline; text-decoration-color: #b7791f; text-underline-offset: .2em; }
