/* Two views: the library (a shelf of covers) and the reader (one column of text, a sticky top bar, a fixed player bar).
   Themes by data-theme on <html>: auto (follows the system), light, sepia, dark, contrast. Text size: --fs. */
/* The design system "Бяла коректура" (docs/agents/design.md): paper, ink and one blue pencil. --paper the page, --raised a
   sheet (cards, the reader's page), --ink text and the rules that divide function, --line the quiet rules, --accent the
   blue pencil (the one filled button of a screen, the bracket), --mark the tint under the sentence being read. */
:root { --paper:#f7f8fa; --raised:#fff; --ink:#14171f; --muted:#4a5263; --line:#c9cfda; --accent:#1d3e8a; --on-accent:#fff; --mark:#d3e0ff; --bad:#a3262a;
  --display:"Old Standard TT",Georgia,serif; --serif:"Literata",Georgia,serif; --sans:"Golos Text",system-ui,sans-serif; --fs:19px; --col:36rem; --r:2px; }
:root[data-theme="sepia"] { --paper:#ede4d0; --raised:#f3ecdd; --ink:#2a2418; --muted:#5c5340; --line:#c9bfa6; --accent:#1d3e8a; --mark:#e2d6b4; }
:root[data-theme="dark"] { --paper:#1b2029; --raised:#14171f; --ink:#e6e9f0; --muted:#a9b1c2; --line:#39414f; --accent:#9db7ff; --on-accent:#14171f; --mark:#26365e; --bad:#ff9b8f; color-scheme:dark; }
/* High contrast, for weak sight (docs/agents/accessibility.md): white on black and one yellow. The quiet rules are grey, so
   a yellow bar is told from its track. The sentence being read is turned over, black on yellow: a tint cannot be seen here. */
:root[data-theme="contrast"] { --paper:#000; --raised:#000; --ink:#fff; --muted:#fff; --line:#767676; --accent:#ffe14d; --on-accent:#000; --mark:#ffe14d; --bad:#ff8f85; color-scheme:dark; }
:root[data-theme="contrast"] :is(.s.on, .ds.on, #toclist button[aria-current="true"], #toclist button[aria-current="true"] small, .demo-go:hover .play) { color:#000; }
:root[data-theme="contrast"] :focus-visible { outline-width:3px; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --paper:#1b2029; --raised:#14171f; --ink:#e6e9f0; --muted:#a9b1c2; --line:#39414f; --accent:#9db7ff; --on-accent:#14171f; --mark:#26365e; --bad:#ff9b8f; color-scheme:dark; } }

* { box-sizing:border-box; } [hidden] { display:none !important; }
.nb { white-space:nowrap; }  /* the name BG-Reader is not broken at its hyphen */
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.5 var(--sans); }
button, select, input { font:inherit; color:inherit; }
button { cursor:pointer; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--r); }
.btn { font-weight:500; min-height:44px; padding:10px 20px; border-radius:var(--r); background:var(--raised); border:1px solid var(--ink); }
.btn:hover { border-color:var(--accent); }
.btn.pri { background:var(--accent); color:var(--on-accent); border-color:var(--accent); font-weight:600; }
.icon { width:44px; height:44px; display:inline-grid; place-items:center; background:none; border:0; border-radius:var(--r); color:var(--ink); font-size:1.5rem; line-height:1; }
.icon:hover { background:color-mix(in srgb, var(--ink) 8%, transparent); }
.icon svg { width:24px; height:24px; }
select { background:var(--raised); border:1px solid var(--ink); border-radius:var(--r); padding:6px 10px; }

/* library */
/* Made for a phone first (docs/agents/mobile.md): a thin bar (name, account), "Продължи" with the book opened last, the
   shelf, and the two ways to add a book under the thumb. Wider screens get the same parts with more room. */
#library { max-width:68rem; margin:0 auto; padding:max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 80px max(20px, env(safe-area-inset-left)); }
.lede { font:400 1.15rem/1.55 var(--serif); max-width:34rem; margin:0 0 1.4em; color:var(--ink); }
.lib-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; min-height:48px; padding-bottom:12px; border-bottom:1px solid var(--ink); }
.lib-brand { margin:0 auto 0 0; }
.lib-actions { display:flex; align-items:center; gap:10px; }
.lib-actions .btn, #resumego, #bsgo { display:inline-flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
.lib-actions svg, #resumego svg, #bsgo svg { width:18px; height:18px; flex:none; }
.formats { color:var(--muted); font-size:.9rem; }
/* the account: a square button with a person in it, on every screen: the same sheet, rule and corners as the buttons
   beside it, and as tall (a circle is kept for play / pause alone). Not the e-mail: a long one did not fit beside the
   name. The button's text is still the e-mail (font-size:0): tests and screen readers read it, and it is its title. */
.acct { flex:none; width:46px; height:46px; padding:0; font-size:0; display:inline-flex; align-items:center; justify-content:center; }
.acct::before { content:""; width:24px; height:24px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20.5c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20.5c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.notes { margin-top:12px; display:grid; gap:8px; }
/* "Продължи": the book opened last */
.resume { margin-top:clamp(16px, 3vw, 32px); max-width:36rem; }
.resume h2, .lib-h { font:700 1.5rem/1.2 var(--display); margin:0 0 10px; }
.lib-h { margin-top:clamp(26px, 5vw, 44px); }
.resume-card { display:grid; grid-template-columns:clamp(88px, 25vw, 116px) minmax(0, 1fr); gap:16px; padding:14px; background:var(--raised); border:1px solid var(--ink); border-radius:var(--r); }
.resume-info { display:flex; flex-direction:column; min-width:0; }
.resume-info b { font:700 1.3rem/1.2 var(--display); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.resume-info > span { color:var(--muted); font-size:.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.resume .bar { height:4px; background:var(--line); border-radius:2px; margin:10px 0 5px; overflow:hidden; } .resume .bar i { display:block; height:100%; background:var(--accent); }
#resumeleft { font-variant-numeric:tabular-nums; white-space:normal; }
#resumego { margin-top:auto; padding:12px 18px; } .resume-info #resumeleft { margin-bottom:12px; }
.note { display:flex; gap:12px; align-items:center; justify-content:space-between; background:var(--raised); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:var(--r); padding:9px 12px; font-size:.93rem; }
.note.err { border-left-color:var(--bad); }
.note button { flex:none; min-width:44px; min-height:44px; margin:-10px -10px -10px 0; background:none; border:0; border-radius:var(--r); color:var(--muted); font-size:1.2rem; padding:0 4px; }
.shelf { display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:30px 22px; }
.book { position:relative; min-width:0; display:flex; flex-direction:column; }
.cover { display:block; width:100%; aspect-ratio:2/3; padding:0; border:1px solid var(--ink); border-radius:0; overflow:hidden; background:var(--raised); }
.cover:hover { border-color:var(--accent); }
.cover img { width:100%; height:100%; object-fit:cover; display:block; }
/* a book without a cover picture gets a typographic one: a sheet, the title in the heading face over one blue rule */
.gen { display:flex; flex-direction:column; justify-content:space-between; height:100%; padding:12% 10% 9%; text-align:left; background:var(--raised); color:var(--ink); }
.gen b { font:700 clamp(.95rem, 1.1vw + .6rem, 1.2rem)/1.15 var(--display); padding-bottom:.5em; border-bottom:2px solid var(--accent); overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
.gen i { font:400 .74rem/1.25 var(--sans); font-style:normal; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.book .meta { flex:1; display:flex; flex-direction:column; margin-top:10px; font-size:.88rem; line-height:1.3; }
.book .meta b { display:block; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.book .meta span { display:block; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.book .row { display:flex; align-items:center; gap:4px; margin-top:auto; padding-top:3px; }  /* at the foot of the card: the bars of a row of books line up */
.book .bar { flex:1; height:3px; background:var(--line); border-radius:2px; overflow:hidden; } .book .bar i { display:block; height:100%; background:var(--accent); }
/* "⋯": the sheet of the book (listen, delete). 44 px to tap, drawn small: the margins take the extra back */
.book .more { flex:none; width:44px; height:44px; margin:-8px -12px -12px 0; border:0; border-radius:var(--r); background:none; color:var(--muted); font-size:1.35rem; line-height:1; }
.book .more:hover { color:var(--ink); background:color-mix(in srgb, var(--ink) 8%, transparent); }
.book .tag { position:absolute; left:6px; top:6px; padding:2px 8px; border-radius:var(--r); background:rgb(20 26 26 / .72); color:#fff; font:normal .72rem/1.5 var(--sans); pointer-events:none; }
.empty { margin-top:clamp(24px, 6vw, 48px); max-width:34rem; } .empty .lede { margin-bottom:1em; } .empty .formats { margin:18px 0 0; }
.lib-help { margin:48px 0 0; padding-top:16px; border-top:1px solid var(--line); max-width:40rem; font-size:.93rem; color:var(--muted); } .lib-help a { color:var(--accent); text-underline-offset:2px; }
/* a phone: the account is a round button with a letter, the shelf has three books in a row, "Добави книга" and
   "Постави текст" stay at the bottom of the screen */
@media (max-width:640px) {
  #library { padding-bottom:calc(104px + env(safe-area-inset-bottom)); }
  .lib-actions { position:fixed; left:0; right:0; bottom:0; z-index:4; padding:10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background:var(--paper); border-top:1px solid var(--ink); }
  .lib-actions .btn { flex:1; padding:13px 12px; } .lib-actions #add { flex:1.5; }
  .shelf { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px 12px; }
  .book .meta { margin-top:7px; font-size:.8rem; }
  .book .meta b { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; }
  .gen b { font-size:.86rem; -webkit-line-clamp:4; } .gen i { font-size:.66rem; }
  .book .tag { left:4px; top:4px; padding:1px 6px; font-size:.62rem; }
}
/* the sheet of one book: low, from the bottom on a phone, a small box in the middle elsewhere */
.sheet.low { height:fit-content; max-height:88dvh; width:min(26rem, calc(100vw - 32px)); margin:auto; border:1px solid var(--ink); border-radius:var(--r); }
.sheet.low .sheet-head { border-radius:0; } .sheet.low .sheet-head h2 { overflow-wrap:anywhere; }
.sheet.low .set-body { padding-bottom:22px; } .sheet.low .who { margin:14px 0 2px; } .sheet.low .hint { margin:6px 0 14px; }
#booksheet .btn { width:100%; margin-top:10px; padding:13px 18px; } #bsask p { margin:14px 0 4px; }
@media (max-width:640px) { .sheet.low { width:100vw; margin:auto 0 0; border-radius:0; } .sheet.low .set-body { padding-bottom:calc(22px + env(safe-area-inset-bottom)); } }
.drop { position:fixed; inset:0; z-index:50; display:grid; place-items:center; background:color-mix(in srgb, var(--paper) 88%, transparent); }
.drop div { font:500 1.6rem var(--serif); padding:40px 56px; border:2px dashed var(--accent); border-radius:var(--r); }

/* reader */
.topbar { position:sticky; top:0; z-index:5; display:grid; grid-template-columns:44px 1fr 44px 44px; align-items:center; gap:6px; padding:6px max(8px, env(safe-area-inset-left)); padding-top:max(6px, env(safe-area-inset-top));
  background:var(--paper); border-bottom:1px solid var(--ink); }
#reader { background:var(--raised); min-height:100dvh; }
.where { min-width:0; background:none; border:0; border-radius:var(--r); padding:3px 10px; text-align:center; line-height:1.25; }
.where:hover { background:color-mix(in srgb, var(--ink) 8%, transparent); }
.where span, .where b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.where span { font-size:.78rem; color:var(--muted); } .where b { font-weight:500; font-size:.95rem; }
.aa { font:700 1.15rem var(--display); }
.txt { max-width:calc(var(--col) + 40px); margin:0 auto; padding:clamp(24px, 6vw, 56px) 20px calc(190px + env(safe-area-inset-bottom));
  font:400 var(--fs)/1.72 var(--serif); hyphens:auto; overflow-wrap:break-word; font-variant-numeric:oldstyle-nums; }
.txt p { margin:0; text-indent:1.5em; }
.txt h2 + p, .txt h3 + p, .txt h4 + p, .txt hr + p, .txt figure + p, .txt p:first-child, .txt p.v { text-indent:0; }
.txt p.v { padding-left:1.5em; } .txt p.v + p:not(.v), .txt p:not(.v) + p.v { margin-top:.9em; }
.txt h2, .txt h3, .txt h4 { font-family:var(--display); font-weight:700; line-height:1.2; text-wrap:balance; hyphens:manual; margin:1.8em 0 .8em; }
.txt h2 { font-size:1.6em; } .txt h3 { font-size:1.22em; } .txt h4 { font-size:1.05em; }
.txt > :first-child { margin-top:0; }
.txt hr { border:0; margin:1.4em auto; width:4em; border-top:1px solid var(--muted); opacity:.6; }
.txt figure { margin:1.4em 0; text-align:center; } .txt figure img { max-width:100%; max-height:80vh; border-radius:var(--r); }
.txt .quiet { color:var(--muted); font-size:.9em; }
.s, .ds { border-radius:var(--r); padding:.12em 0; -webkit-box-decoration-break:clone; box-decoration-break:clone; cursor:pointer; transition:background-color .18s; }
@media (hover:hover) { .s:hover, .ds:hover { background:color-mix(in srgb, var(--mark) 45%, transparent); } }
/* The sentence being read: a tint, and the proofreader's bracket: a bar in the left margin as tall as the sentence (seen
   without colour too). The bar is drawn here from --mk-top / --mk-h, which bracket() in settings.js sets on the box. */
.s.on, .ds.on { background:var(--mark); box-shadow:-.18em 0 0 var(--mark), .18em 0 0 var(--mark); }
.txt, .demo-page { position:relative; }
.txt::before, .demo-page::before { content:""; position:absolute; left:6px; top:var(--mk-top, 0); height:var(--mk-h, 0); width:4px; background:var(--accent); opacity:0; transition:top .15s, height .15s; pointer-events:none; }
.txt[data-mk]::before, .demo-page[data-mk]::before { opacity:1; }
.endnav { max-width:var(--col); margin:2.5em auto 0; display:flex; justify-content:space-between; gap:12px; font-family:var(--sans); font-size:.95rem; }
.follow { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(96px + env(safe-area-inset-bottom)); z-index:6; padding:8px 16px; border-radius:var(--r); border:0;
  background:var(--ink); color:var(--paper); font-weight:500; font-size:.9rem; min-height:44px; }

.player { position:fixed; left:0; right:0; bottom:0; z-index:6; background:var(--paper); border-top:1px solid var(--ink); padding-bottom:env(safe-area-inset-bottom); }
.prog { height:3px; background:var(--line); } .prog i { display:block; height:100%; width:0; background:var(--accent); transition:width .3s; }
.pl-row { max-width:60rem; margin:0 auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; padding:8px max(12px, env(safe-area-inset-left)); }
.pl-info { min-width:0; font-size:.85rem; color:var(--muted); line-height:1.3; font-variant-numeric:tabular-nums; }
.pl-info > span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } #pct { color:var(--ink); font-weight:500; }
.pl-main { display:flex; align-items:center; gap:6px; }
.play { position:relative; width:64px; height:64px; border-radius:50%; border:0; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; }
.play svg { width:28px; height:28px; grid-area:1/1; } .play .i-pause, .play .spin { display:none; }
.play[data-state="playing"] .i-play, .play[data-state="loading"] .i-play { display:none; } .play[data-state="playing"] .i-pause { display:block; }
.play[data-state="loading"] .spin { display:block; grid-area:1/1; width:24px; height:24px; border-radius:50%; border:3px solid color-mix(in srgb, var(--on-accent) 35%, transparent); border-top-color:var(--on-accent); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.pl-side { display:flex; justify-content:flex-end; align-items:center; gap:10px; min-width:0; }
.speed { display:inline-flex; align-items:center; border:1px solid var(--ink); border-radius:var(--r); background:var(--raised); }
.speed button { width:38px; height:44px; border:0; background:none; font-size:1.15rem; } .speed output { min-width:3.4em; text-align:center; font-size:.88rem; font-variant-numeric:tabular-nums; }
#voice2 { max-width:9.5rem; }
.vpick { display:inline-flex; } .vpick svg { display:none; }  /* wide: the list itself; narrow: an icon with the list over it (below) */
/* phones: two rows. Above: how far, how much is left, what is going on. Below: the buttons, with the voice
   and the speed — one row had no room for the voice (the owner, 2026-11-19: "на телефон … да може да се сменя гласа, сега
   не се вижда"). The voice is an icon; the real list lies over it, invisible, so a tap opens the system's own picker. */
@media (max-width:640px) {
  .pl-row { grid-template-columns:auto minmax(0, 1fr); grid-template-areas:"info info" "main side"; gap:2px 6px; padding-top:6px; }
  .pl-info { grid-area:info; display:flex; gap:10px; align-items:baseline; font-size:.8rem; } .pl-info > span { flex:none; max-width:70%; } .pl-info > #status { flex:1; max-width:none; min-width:0; text-align:right; }
  .pl-main { grid-area:main; } .pl-side { grid-area:side; gap:6px; }
  .speed output { min-width:2.9em; } .where { min-height:44px; }
  .vpick { position:relative; flex:none; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid var(--ink); border-radius:var(--r); background:var(--raised); color:var(--ink); }
  .vpick svg { display:block; width:20px; height:20px; } .vpick:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
  .vpick select { position:absolute; inset:0; width:100%; height:100%; max-width:none; padding:0; border:0; opacity:0; }
}
@media (max-width:370px) { .pl-row { padding-left:8px; padding-right:8px; } .pl-main { gap:3px; } .pl-main .icon { width:34px; } .pl-side { gap:4px; } .vpick { width:38px; height:44px; } .speed button { width:28px; } .speed output { min-width:2.7em; font-size:.8rem; } }

/* sheets: contents and settings */
.sheet { border:0; padding:0; color:var(--ink); background:var(--raised); width:min(30rem, 100vw); max-width:100vw; height:100dvh; max-height:100dvh; margin:0 0 0 auto; border-left:1px solid var(--ink); }
.sheet::backdrop { background:rgb(10 16 16 / .35); }
.sheet-head { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; padding:10px 10px 10px 22px; background:var(--raised); border-bottom:1px solid var(--line); }
.sheet-head h2 { font:700 1.5rem/1.2 var(--display); margin:0; }
#toclist { list-style:none; margin:0; padding:8px 10px 30px; }
#toclist button { width:100%; text-align:left; background:none; border:0; border-radius:var(--r); padding:9px 12px; display:flex; gap:12px; justify-content:space-between; align-items:baseline; font-family:var(--serif); }
#toclist button:hover { background:color-mix(in srgb, var(--ink) 7%, transparent); }
#toclist button[aria-current="true"] { background:var(--mark); }
#toclist small { color:var(--muted); font:400 .78rem var(--sans); white-space:nowrap; }
.set-body { padding:6px 22px 40px; }
.set-body h3 { font:600 1rem var(--sans); margin:26px 0 10px; }
.f { display:grid; grid-template-columns:6.2rem 1fr 3.2rem; align-items:center; gap:10px; margin:10px 0; font-size:.93rem; color:var(--muted); }
.f select, .f .seg { grid-column:2 / 4; } .f output { color:var(--ink); text-align:right; font-variant-numeric:tabular-nums; }
.f[role="group"]:has(#sleep) { grid-template-columns:1fr; } .f[role="group"]:has(#sleep) .seg { grid-column:1; }
.f input[type="range"] { width:100%; accent-color:var(--accent); }
.c { display:flex; gap:10px; align-items:flex-start; font-size:.93rem; margin:14px 0; } .c input { margin-top:.25em; accent-color:var(--accent); }
.seg { display:flex; flex-wrap:wrap; gap:6px; }
.seg button { min-height:44px; border:1px solid var(--ink); background:var(--raised); border-radius:var(--r); padding:6px 11px; font-size:.88rem; color:var(--ink); }
.seg button[aria-pressed="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.hint { font-size:.85rem; color:var(--muted); margin:8px 0; }
/* a report of a reading problem (sheet in the reader) and the list of reports (#/reports) */
.rep-text { font:1.08rem/1.75 var(--serif); margin:12px 0 6px; overflow-wrap:anywhere; }
.rep-text .w { display:inline; font:inherit; color:inherit; background:none; border:0; border-radius:var(--r); padding:1px 2px; margin:0 -2px; border-bottom:1px dashed var(--line); }
.rep-text .w[aria-pressed="true"], .rep-text mark { background:color-mix(in srgb, var(--bad) 22%, transparent); color:inherit; border-bottom:2px solid var(--bad); border-radius:var(--r); padding:1px 2px; }
.rep-nav { display:flex; justify-content:space-between; gap:12px; font-size:.85rem; margin-bottom:14px; } .rep-nav .link { min-height:44px; display:inline-flex; align-items:center; } .rep-nav .link:disabled { color:var(--muted); text-decoration:none; opacity:.5; }
.rep-kind { margin:6px 0 4px; }
.af textarea { width:100%; font:inherit; color:var(--ink); background:var(--raised); border:1px solid var(--ink); border-radius:var(--r); padding:10px 12px; resize:vertical; }
/* the administration panel (#/admin, admin.js) */
.admin { max-width:64rem; margin:0 auto; padding:16px max(16px, env(safe-area-inset-left)) 80px; }
.admin #reports { max-width:46rem; }
.adm-tabs { display:flex; gap:clamp(12px, 4vw, 22px); border-bottom:1px solid var(--line); margin:4px 0 22px; overflow-x:auto; }
.adm-tabs a { padding:10px 2px; color:var(--muted); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.adm-tabs a[aria-current="page"] { color:var(--ink); border-bottom-color:var(--accent); font-weight:500; }
.adm-tabs b { font-weight:500; color:var(--bad); }
.adm-bar { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; margin-bottom:14px; font-size:.9rem; color:var(--muted); }
.adm-bar input { flex:1 1 14rem; max-width:22rem; color:var(--ink); background:var(--raised); border:1px solid var(--line); border-radius:var(--r); padding:8px 12px; }
.figs { display:grid; grid-template-columns:repeat(auto-fill, minmax(11.5rem, 1fr)); gap:22px 28px; margin:0 0 34px; }
.figs div { border-top:1px solid var(--line); padding-top:10px; } .figs dt { font-size:.85rem; color:var(--muted); }
.figs dd { margin:2px 0 0; font:700 1.9rem/1.15 var(--display); font-variant-numeric:lining-nums tabular-nums; } .figs p { margin:3px 0 0; font-size:.82rem; color:var(--muted); }
.chart { margin:0 0 34px; max-width:46rem; } .chart figcaption { font-weight:500; margin-bottom:10px; }
.plot { position:relative; height:132px; padding-top:18px; border-bottom:1px solid var(--line); }
.ymax { position:absolute; left:0; top:0; font-size:.75rem; color:var(--muted); } .plot::before { content:""; position:absolute; left:0; right:0; top:18px; border-top:1px dashed var(--line); }
.cols { display:flex; align-items:flex-end; gap:2px; height:100%; }
.col { flex:1; height:100%; display:flex; align-items:flex-end; outline-offset:-1px; } .col i { display:block; width:100%; background:var(--accent); border-radius:0; }
.col:hover i, .col:focus-visible i { background:color-mix(in srgb, var(--accent) 70%, var(--ink)); } .col:hover, .col:focus-visible { background:color-mix(in srgb, var(--ink) 6%, transparent); }
.tip { position:absolute; top:-14px; margin:0; padding:4px 9px; border-radius:var(--r); background:var(--ink); color:var(--paper); font-size:.8rem; white-space:nowrap; pointer-events:none; z-index:2; }
.xax { display:flex; justify-content:space-between; font-size:.75rem; color:var(--muted); margin-top:5px; }
.chart details { margin-top:8px; font-size:.85rem; color:var(--muted); } .chart summary { cursor:pointer; width:max-content; }
.adm-t { width:100%; border-collapse:collapse; font-size:.92rem; font-variant-numeric:lining-nums tabular-nums; }
.adm-t th { text-align:left; font-weight:500; font-size:.8rem; color:var(--muted); padding:6px 10px 6px 0; border-bottom:1px solid var(--line); white-space:nowrap; }
.adm-t td { padding:9px 10px 9px 0; border-bottom:1px solid var(--line); vertical-align:top; } .adm-t .n { text-align:right; white-space:nowrap; }
.adm-t a { color:var(--accent); overflow-wrap:anywhere; } .adm-t small, .adm-who small { font:400 .75rem var(--sans); color:var(--muted); margin-left:6px; }
.adm-t .by { color:var(--muted); font-size:.85rem; } .adm-t.plain { width:auto; margin-top:6px; } .adm-t.plain td { padding:4px 18px 4px 0; }
.pr { display:inline-block; width:64px; height:4px; background:var(--line); border-radius:2px; vertical-align:middle; margin-right:6px; overflow:hidden; } .pr i { display:block; height:100%; background:var(--accent); }
.adm-who { font:700 1.5rem/1.25 var(--display); margin:.4em 0 .6em; overflow-wrap:anywhere; } .admin h3 { font:600 1.05rem var(--sans); margin:0 0 10px; } .admin section > p > a { color:var(--accent); }
.facts { display:grid; grid-template-columns:repeat(auto-fill, minmax(13rem, 1fr)); gap:12px 28px; margin:0 0 30px; } .facts dt { font-size:.8rem; color:var(--muted); } .facts dd { margin:1px 0 0; }
/* one book of an account (#/admin/users/<id>/books/<book>): the contents beside the text */
.peekbar { margin:0; padding:8px max(16px, env(safe-area-inset-left)); text-align:center; font-size:.85rem; color:var(--muted); background:var(--raised); border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.admin h3.adm-next { margin-top:34px; }
a.btn { display:inline-block; text-decoration:none; color:var(--ink); }
.adm-file { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin:0 0 4px; } .adm-file .hint { margin:0; overflow-wrap:anywhere; }
.adm-read { display:grid; grid-template-columns:15rem minmax(0, 1fr); gap:36px; align-items:start; margin-top:22px; border-top:1px solid var(--line); padding-top:22px; }
.adm-toc { position:sticky; top:12px; max-height:calc(100vh - 24px); overflow-y:auto; font-size:.9rem; }
.adm-toc ol { list-style:none; margin:0; padding:0; }
.adm-toc a { display:block; padding:5px 10px; border-left:2px solid var(--line); color:var(--muted); text-decoration:none; overflow-wrap:anywhere; }
.adm-toc a:hover { color:var(--ink); } .adm-toc a[aria-current] { color:var(--ink); border-left-color:var(--accent); font-weight:500; }
.adm-read .txt { margin:0; padding:0; max-width:var(--col); }
.adm-turn { max-width:var(--col); display:flex; justify-content:space-between; gap:12px; margin:2.5em 0 0; font-size:.95rem; }
.note a { color:var(--accent); text-underline-offset:2px; } .note .ok { flex:none; color:var(--accent); font-weight:500; }
@media (max-width:760px) {
  .adm-read { grid-template-columns:minmax(0, 1fr); gap:20px; }
  .adm-toc { position:relative; top:0; max-height:11.5rem; border:1px solid var(--line); border-radius:var(--r); padding:6px 4px; }
}
@media (max-width:760px) {  /* a table row becomes a block: label on the left, value on the right */
  .adm-t:not(.plain) thead { display:none; } .adm-t:not(.plain) tr { display:block; padding:10px 0; border-bottom:1px solid var(--line); }
  .adm-t:not(.plain) td { display:flex; justify-content:space-between; gap:16px; padding:3px 0; border:0; text-align:right; }
  .adm-t:not(.plain) td::before { content:attr(data-l); color:var(--muted); font-size:.82rem; text-align:left; flex:none; }
  .adm-t:not(.plain) td:first-child { display:block; text-align:left; font-size:1rem; padding-bottom:5px; } .adm-t:not(.plain) td:first-child::before { content:none; }
}
.reps-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; } .reps-head h1 { font:700 1.5rem var(--display); margin:0; flex:1; }
.rep { background:var(--raised); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; margin-top:14px; }
.rep header { display:flex; justify-content:space-between; gap:10px; font-size:.85rem; color:var(--muted); } .rep header b { color:var(--ink); }
.rep-comment { margin:4px 0 10px; padding-left:10px; border-left:3px solid var(--accent); }
.rep dl { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; font-size:.85rem; margin:8px 0 12px; } .rep dt { color:var(--muted); } .rep dd { margin:0; overflow-wrap:anywhere; }
.rep .ipa { font-family:ui-monospace, Menlo, monospace; font-size:.82rem; }
/* "Свали като аудио" (audiobook.js): the form, then what is being made: how much, how fast, how long still */
/* Hidden for now (the owner, 2026-12-06; docs/agents/audiobook.md): the two buttons that open it show only where
   app.js has set data-audiobook on <html>. The sheet itself and its code stay. */
html:not([data-audiobook]) :is(#bsaudio, .toc-top) { display:none; }
.toc-top { padding:12px 22px 2px; }
.aud-pct { display:flex; align-items:baseline; gap:12px; margin:14px 0 8px; } .aud-pct b { font:700 2rem/1 var(--display); font-variant-numeric:lining-nums tabular-nums; } .aud-pct span { color:var(--muted); font-size:.93rem; }
.meter.big { height:12px; }
.aud-facts { display:grid; grid-template-columns:auto 1fr; gap:7px 16px; margin:16px 0 12px; font-size:.93rem; } .aud-facts dt { color:var(--muted); } .aud-facts dd { margin:0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.aud-do { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; } .aud-do a.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
#audform .btn.wide { margin-top:8px; } #audname { overflow-wrap:anywhere; }
/* the same in one line when the sheet is closed: stays above whatever is being read */
.chip { position:fixed; right:max(12px, env(safe-area-inset-right)); bottom:calc(16px + env(safe-area-inset-bottom)); z-index:7; min-height:44px; padding:8px 14px; border:1px solid var(--ink); border-radius:var(--r);
  background:var(--raised); color:var(--ink); font:500 .88rem var(--sans); font-variant-numeric:tabular-nums; }
#reader:not([hidden]) ~ .chip { bottom:calc(108px + env(safe-area-inset-bottom)); }
.chip.ready { border-color:var(--accent); color:var(--accent); font-weight:600; }
/* a failure that was noticed by itself (#/admin/errors): the card of a report, with how often and to how many */
.err-msg { margin:10px 0 6px; font-weight:500; overflow-wrap:anywhere; } .err-n { margin:0; font-size:.9rem; display:flex; flex-wrap:wrap; align-items:flex-end; gap:4px 6px; }
.err .q { color:var(--muted); font-variant-numeric:tabular-nums; } .err details { font-size:.85rem; margin:0 0 12px; } .err summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--accent); }
.err pre { margin:0 0 8px; padding:10px 12px; border:1px solid var(--line); border-radius:var(--r); font:.78rem/1.5 ui-monospace, Menlo, monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.err-do { display:flex; flex-wrap:wrap; gap:8px; }
.spark { display:inline-flex; align-items:flex-end; gap:2px; height:18px; margin-left:auto; border-bottom:1px solid var(--line); } .spark i { display:block; width:5px; background:var(--accent); }
/* the sign-in screen in front of the app, and the account sheet */
/* the landing page = the sign-in screen in front of the app (docs/agents/landing.md): what this is, a recording of the
   voice, the account form, how it works, questions. In the page's HTML, so it is there before any script runs. */
.gate { max-width:70rem; margin:0 auto; padding:0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.g-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:max(12px, env(safe-area-inset-top)) 0 12px; border-bottom:1px solid var(--ink); }
.brand { display:inline-flex; align-items:center; gap:10px; min-height:44px; font:700 1.4rem/1 var(--display); color:var(--ink); text-decoration:none; }
.brand svg { width:32px; height:32px; color:var(--accent); }
.g-head .btn { padding:10px 20px; }
.hero { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, .8fr); gap:clamp(28px, 5vw, 72px); align-items:start; padding:clamp(18px, 5vh, 52px) 0 clamp(44px, 9vh, 92px); }
.gate h1 { font:700 clamp(2.3rem, 5.2vw, 3.9rem)/1.06 var(--display); margin:0 0 .4em; text-wrap:balance; }
.gate .lede { font-size:clamp(1.1rem, .9vw + .9rem, 1.3rem); max-width:33rem; margin:0 0 1.5em; }
.gate .go { display:none; }
/* the demo: a piece of the reader's page; the sentence being read is marked as in the reader (.ds looks like the
   reader's .s; a name of its own, so that nothing that looks for ".s.on" finds the demo) */
.demo { margin:0; max-width:35rem; background:var(--raised); border:1px solid var(--ink); border-radius:var(--r); overflow:hidden; }
.demo-page { max-height:16.5rem; overflow-y:auto; padding:18px 24px 2.6rem; font:400 1.05rem/1.72 var(--serif); hyphens:auto; overflow-wrap:break-word;
  -webkit-mask-image:linear-gradient(transparent, #000 1rem, #000 calc(100% - 2.4rem), transparent); mask-image:linear-gradient(transparent, #000 1rem, #000 calc(100% - 2.4rem), transparent); }  /* the text goes on above and below */
.demo-page p { margin:0; text-indent:1.4em; } .demo-page p:first-of-type { text-indent:0; }
.demo-page:focus-visible { outline-offset:-2px; border-radius:0; }
.demo .prog i { transition:none; }
.demo figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; padding:0 18px 0 0; }
.demo-go { flex:1 1 13rem; display:flex; align-items:center; gap:14px; padding:12px 0 14px 24px; border:0; background:none; text-align:left; }
/* outlined: the one filled button of the landing page is "Създай акаунт" */
.demo .play { width:56px; height:56px; flex:none; background:var(--raised); color:var(--accent); border:2px solid var(--accent); } .demo .play svg { width:26px; height:26px; }
.demo-go:hover .play { background:var(--mark); }
.demo .play[data-state="loading"] .spin { border-color:var(--mark); border-top-color:var(--accent); }
.demo-say { display:grid; line-height:1.3; } .demo-say b { font-weight:600; font-size:1.05rem; } .demo-say span { font-size:.88rem; color:var(--muted); }
.demo-voices { flex:none; flex-wrap:nowrap; } .demo-voices button { min-height:44px; padding:8px 13px; font-size:.92rem; white-space:nowrap; }
.ticks { list-style:none; margin:22px 0 0; padding:0; display:grid; gap:9px; max-width:35rem; }
.ticks li { position:relative; padding-left:30px; }
.ticks li::before { content:""; position:absolute; left:3px; top:.36em; width:14px; height:8px; border:solid var(--accent); border-width:0 0 2.5px 2.5px; transform:rotate(-45deg); }
/* the account form */
.card { background:var(--raised); border:1px solid var(--ink); border-radius:var(--r); padding:clamp(20px, 2.6vw, 30px); scroll-margin-top:12px; }
.card h2 { font:700 1.7rem/1.2 var(--display); margin:0 0 .15em; }
.card #freehint { margin:0 0 16px; font-size:.95rem; }
.card .gbtn { display:flex; } .card .gbtn, .card .gate-go .btn { padding:13px 20px; } .card .gate-go .btn { flex:1 1 auto; }
.card .sw { margin:6px 0 0; } .card .sw + .sw { margin-top:-6px; } .card .link { padding:12px 2px; }
.card .acct-note { margin-top:18px; font-size:.86rem; color:var(--muted); }
.gate-go { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; } .check { margin:14px 0; overflow-wrap:anywhere; }
/* below the first screen */
.g-sec, .g-cta { padding:clamp(38px, 7vh, 76px) 0; border-top:1px solid var(--ink); }
.g-sec > h2, .g-cta h2 { font:700 clamp(1.7rem, 2.4vw, 2.2rem)/1.15 var(--display); margin:0 0 1.1em; }
.steps { list-style:none; counter-reset:step; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:28px clamp(24px, 4vw, 56px); }
.steps li { counter-increment:step; }
.steps li::before { content:counter(step); display:grid; place-items:center; width:2.4rem; height:2.4rem; border:2px solid var(--accent); border-radius:50%; font:600 1.1rem/1 var(--sans); font-variant-numeric:lining-nums; color:var(--accent); margin-bottom:.6em; }
.steps h3, .feats dt { font:600 1.1rem/1.3 var(--sans); margin:0 0 .3em; }
.steps p, .feats dd { margin:0; max-width:23rem; }
.feats { margin:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:30px clamp(24px, 4vw, 56px); }
.faq { max-width:46rem; } .faq details { border-bottom:1px solid var(--line); } .faq details:first-child { border-top:1px solid var(--line); }
.faq summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:52px; padding:12px 2px; cursor:pointer; list-style:none; font:600 1.08rem/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:""; flex:none; width:9px; height:9px; margin:0 6px 4px; border:solid var(--muted); border-width:0 2px 2px 0; transform:rotate(45deg); transition:transform .15s; }
.faq details[open] summary::after { transform:rotate(-135deg); margin-bottom:-4px; }
.faq summary:hover { color:var(--accent); }
.faq details p { margin:0 0 18px; padding:0 2px; max-width:40rem; } .faq a, .g-foot a { color:var(--accent); text-underline-offset:2px; }
/* "За проекта": a list of name and what it is; side by side on a wide page, one under the other on a phone and in the account sheet */
#abouth, #newsh { outline:none; }
.about { margin:0; max-width:46rem; border-top:1px solid var(--line); }
.about > div { display:grid; grid-template-columns:10rem minmax(0, 1fr); gap:4px 24px; padding:16px 2px; border-bottom:1px solid var(--line); }
.about dt { font:600 1rem/1.5 var(--sans); color:var(--muted); } .about dd { margin:0; } .about a { color:var(--accent); text-underline-offset:2px; }
.about-links { display:flex; flex-wrap:wrap; gap:2px 24px; margin-top:6px; } .about-links a { display:inline-block; padding:9px 0; }
@media (max-width:640px) { .about > div { grid-template-columns:minmax(0, 1fr); } }
#account .about { margin-top:14px; border-top:0; } #account .about > div { grid-template-columns:minmax(0, 1fr); }
/* "Какво ново": a day and what changed on it, laid out as "За проекта" is; the older days are folded */
.log { max-width:46rem; border-top:1px solid var(--line); }
.log article { display:grid; grid-template-columns:10rem minmax(0, 1fr); gap:4px 24px; padding:16px 2px; border-bottom:1px solid var(--line); }
.log h3 { font:600 1rem/1.5 var(--sans); color:var(--muted); margin:0; } .log ul { margin:0; padding-left:1.1em; } .log li { margin:0 0 .35em; } .log li:last-child { margin-bottom:0; }
.log a { color:var(--accent); text-underline-offset:2px; }
.log summary { display:flex; align-items:center; min-height:48px; padding:0 2px; cursor:pointer; color:var(--accent); font:500 1rem var(--sans); }
.log details[open] summary { border-bottom:1px solid var(--line); }
@media (max-width:640px) { .log article { grid-template-columns:minmax(0, 1fr); } }
#account .log { margin-top:14px; border-top:0; } #account .log article { grid-template-columns:minmax(0, 1fr); }
.g-cta h2 { margin-bottom:.4em; } .g-cta p { max-width:34rem; margin:0 0 1.4em; } .g-cta .btn { padding:13px 26px; }
.g-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px; padding:20px 0 max(22px, env(safe-area-inset-bottom)); border-top:1px solid var(--ink); font-size:.93rem; color:var(--muted); }
.g-foot nav { display:flex; flex-wrap:wrap; align-items:center; gap:4px 24px; } .g-foot a, .g-foot .link { display:inline-block; padding:11px 0; }
/* narrow: one column. A new visitor reads what this is first and has a button to the form; anyone else (sign in, a link
   from a letter, a message) gets the form first */
@media (max-width:860px) {
  .hero { grid-template-columns:minmax(0, 1fr); }
  .gate[data-mode="create"] .go { display:inline-block; margin:0 0 1.7em; padding:13px 24px; }
  .gate:not([data-mode="create"]) .card { order:-1; }
  .steps { grid-template-columns:minmax(0, 1fr); } .steps li { display:grid; grid-template-columns:2.4rem 1fr; column-gap:14px; } .steps li::before { grid-row:span 2; }
  .feats { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:540px) { .feats { grid-template-columns:minmax(0, 1fr); } .demo-page { max-height:14.5rem; padding:16px 18px 2.6rem; } .demo-go { padding-left:18px; } .demo figcaption { padding:0 18px 14px 0; } .demo-voices { flex:1 1 100%; padding-left:18px; } .demo-voices button { flex:1; } .gate[data-mode="create"] .go { display:block; width:100%; } }
.or { display:flex; align-items:center; gap:12px; margin:16px 0 4px; color:var(--muted); font-size:.85rem; } .or::before, .or::after { content:""; flex:1; border-top:1px solid var(--line); }
.hint a, .policy a { color:var(--accent); text-underline-offset:2px; }
.gbtn { display:flex; align-items:center; justify-content:center; gap:10px; color:var(--ink); text-decoration:none; } .gbtn svg { flex:none; }
.af { display:grid; gap:5px; margin:14px 0; font-size:.93rem; color:var(--muted); }
.af input { width:100%; font-size:1rem; color:var(--ink); background:var(--raised); border:1px solid var(--ink); border-radius:var(--r); padding:10px 12px; }
.msg { font-size:.9rem; margin:10px 0; color:var(--bad); } .msg.ok { color:var(--accent); }
/* the trial copy of the site (staging.bg-reader.com, errlog.js): a label in the corner of every screen */
html[data-staging]::after { content:"ПРОБНА СРЕДА"; position:fixed; left:0; bottom:0; z-index:99; padding:3px 8px; background:var(--bad); color:var(--raised); font:600 .7rem/1.4 var(--sans); pointer-events:none; }
/* a browser too old for the app (errlog.js): in place of the sign-in form */
.oldnote { font-size:1rem; line-height:1.55; color:var(--ink); border:1px solid var(--bad); border-left-width:4px; border-radius:var(--r); background:var(--raised); padding:14px 16px; margin:0 0 18px; }
.link { background:none; border:0; padding:0; color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.who { margin:18px 0 12px; overflow-wrap:anywhere; }
.btn.danger { color:var(--bad); } .btn:disabled { opacity:.55; cursor:default; }
#signform .btn, #passform .btn, #delform .btn { margin-top:6px; }
/* the account sheet: one view at a time. The account itself is a list of rows and one button ("Излез"); deleting the
   account is two views in (data -> delete) and is the only place with a filled red button */
#account .sheet-head { justify-content:flex-start; gap:2px; } #account .sheet-head h2 { flex:1; min-width:0; outline:none; }
#account .sheet-head:has(.back:not([hidden])) { padding-left:8px; }
#account .who { margin:20px 0 4px; font-size:1.05rem; } #account .lead { margin:20px 0 8px; line-height:1.5; }
/* how full the account is: the bar fills with what the books take; red from 90 % */
.usage { margin:2px 0 0; } .usage .hint { margin:4px 0 8px; }
.meter { height:8px; background:var(--line); border-radius:var(--r); overflow:hidden; }
.meter i { display:block; height:100%; width:0; background:var(--accent); } .meter.some i { min-width:3px; } .meter.full i { background:var(--bad); }
.meter-row { display:flex; justify-content:space-between; gap:12px; font-variant-numeric:tabular-nums; }
/* rows of a list in a sheet; scoped to .rows: the shelf has a .row of its own under every cover (.book .row) */
.rows { margin:18px 0 26px; border-top:1px solid var(--line); }
.rows > .row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:56px; padding:9px 2px; background:none; border:0; border-bottom:1px solid var(--line); border-radius:0; color:var(--ink); text-align:left; text-decoration:none; }
.rows > .row small { display:block; margin-top:1px; font-size:.85rem; color:var(--muted); }
.rows > .row::after { content:"›"; flex:none; width:22px; text-align:center; font-size:1.4rem; line-height:1; color:var(--muted); }
.rows > .row.out::after { content:"↗"; font-size:1rem; }
.rows > .row:hover, .rows > .row:hover::after { color:var(--accent); }
.btn.wide { display:block; width:100%; padding:13px 18px; }
.btn.bad { background:var(--bad); border-color:var(--bad); color:var(--raised); font-weight:600; } .btn.bad:hover { border-color:var(--ink); }
#delno { margin-top:12px; }
.acct-note { margin-top:30px; padding-top:14px; border-top:1px solid var(--line); }
/* Forced colours (the contrast themes of Windows) repaint every background with the system's own. What is said by a
   background alone (the sentence being read, the bracket, a bar's fill, a pressed choice, the account's drawing) is said
   again here in system colours. tools/test/contrast_ui.mjs looks at it. */
@media (forced-colors: active) {
  .s.on, .ds.on { forced-color-adjust:none; background:Highlight; color:HighlightText; box-shadow:-.18em 0 0 Highlight, .18em 0 0 Highlight; }
  .txt::before, .demo-page::before, .prog i, .bar i, .meter i, .pr i, .col i, .spark i { forced-color-adjust:none; background:Highlight; }
  .prog, .bar, .meter, .pr { outline:1px solid CanvasText; }
  .seg button[aria-pressed="true"], #toclist button[aria-current="true"], #toclist button[aria-current="true"] small { forced-color-adjust:none; background:Highlight; color:HighlightText; border-color:Highlight; }
  .acct::before { forced-color-adjust:none; background:ButtonText; }
  .play, .follow, .tip { border:2px solid ButtonText; }
  .play[data-state="loading"] .spin { forced-color-adjust:none; border-color:GrayText; border-top-color:ButtonText; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; scroll-behavior:auto !important; } .play[data-state="loading"] .spin { animation-duration:2s; } }
