:root { color-scheme: light dark; --bg: #fff; --fg: #1b2733; --muted: #5a6875; --line: #dde4ea; --soft: #f1f6fa; --blue: #1565ad; --link: #1565ad; --bad: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --bg: #11181f; --fg: #e8eef3; --muted: #9fb0bf; --line: #2a3641; --soft: #1a242d; --blue: #14568f; --link: #7db9ee; --bad: #ff9d94; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.5 system-ui, sans-serif; padding-bottom: env(safe-area-inset-bottom); overflow-wrap: anywhere; }
.wrap { max-width: 720px; margin: 0 auto; padding-inline: 16px; }
.bar { position: sticky; top: 0; z-index: 2; background: var(--blue); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 0 10px; }
.title { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
h1 { font-size: 1.15rem; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
:focus-visible { outline: 3px solid #f2b632; outline-offset: 1px; }
.bar button { background: #ffffff26; border-color: transparent; color: #fff; }
.bar input { width: 100%; padding: 11px 14px; border: 0; border-radius: 10px; background: var(--bg); color: var(--fg); margin: 6px 0 8px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 4px; min-height: 36px; }
.seg button[aria-pressed=true] { background: #fff; color: #1565ad; font-weight: 600; }
.note, .muted { color: var(--muted); }
.note { font-size: .95rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 70px; }
.list li > a, .list li.en { display: block; padding: 9px 0; color: inherit; text-decoration: none; }
.list b, .list span { display: block; }
.list span { color: var(--muted); }
a { color: var(--link); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0; }
.letters button { min-width: 40px; padding: 4px; }
.letters button[aria-pressed=true] { background: var(--blue); color: #fff; }
.back { margin-top: 14px; }
article h2 { font-size: 2rem; line-height: 1.2; margin: 14px 0 6px; }
article ol { padding-left: 1.4em; } article ol.one { list-style: none; padding: 0; }
article ol li { margin-bottom: 16px; }
article p { margin: 2px 0; }
.gloss b { font-size: 1.15rem; }
.pos { color: var(--muted); margin-left: 10px; font-style: italic; }
blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--link); background: var(--soft); }
.rel span { color: var(--muted); }
dialog { border: 1px solid var(--line); border-radius: 12px; max-width: 420px; background: var(--bg); color: var(--fg); }
dialog h2 { margin-top: 0; }
