@font-face { font-family: "Noto Serif Hebrew"; font-weight: 400; src: url(fonts/noto-serif-hebrew-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Serif Hebrew"; font-weight: 700; src: url(fonts/noto-serif-hebrew-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200C-200D, U+25CC; }
@font-face { font-family: "Gentium Plus"; font-weight: 400; src: url(fonts/gentium-plus-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Gentium Plus"; font-weight: 400; src: url(fonts/gentium-plus-greek-ext-400-normal.woff2) format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Gentium Plus"; font-weight: 400; src: url(fonts/gentium-plus-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gentium Plus"; font-weight: 400; src: url(fonts/gentium-plus-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gentium Plus"; font-weight: 400; font-style: italic; src: url(fonts/gentium-plus-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Gentium Plus"; font-weight: 700; src: url(fonts/gentium-plus-greek-700-normal.woff2) format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Gentium Plus"; font-weight: 700; src: url(fonts/gentium-plus-greek-ext-700-normal.woff2) format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Gentium Plus"; font-weight: 700; src: url(fonts/gentium-plus-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Gentium Plus"; font-weight: 700; src: url(fonts/gentium-plus-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02FF, U+0300-036F, U+1E00-1EFF; }

:root {
  --serif: "Gentium Plus", "Noto Serif", Georgia, serif;
  --heb: "Noto Serif Hebrew", "Noto Serif", serif;
  --ui: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ts: 1;
  --r: 10px;
}
.theme-light {
  --paper: #FBFBF8; --ink: #1E2229; --mut: #6B6F76; --line: #E2E1DB; --wash: #F0EFEA;
  --lapis: #2E4A86; --lapis-ink: #FFFFFF; --rubric: #A1262C; --hl: #E3E9F6; --sel: #C9D5EE; --good: #2F6B45; --warn: #9A5B12;
}
.theme-sepia {
  --paper: #F2EBDC; --ink: #3A2F24; --mut: #7A6A58; --line: #DCD0BA; --wash: #E9E0CD;
  --lapis: #304C7E; --lapis-ink: #FFFFFF; --rubric: #9B2A22; --hl: #E2DCCB; --sel: #CFD3D8; --good: #3C6A3F; --warn: #8E5A1A;
}
.theme-dark {
  --paper: #15181D; --ink: #E4E2DC; --mut: #9A9DA3; --line: #2B2F36; --wash: #1F2329;
  --lapis: #93A9DD; --lapis-ink: #10141B; --rubric: #E27D74; --hl: #253049; --sel: #34446A; --good: #7FBF93; --warn: #E0A458;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); }
body { font: 16px/1.45 var(--ui); overscroll-behavior: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

#app { display: flex; flex-direction: column; height: 100%; }
#top { flex: none; }
#main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; }
#tabs { flex: none; display: flex; border-top: 1px solid var(--line); background: var(--paper); padding-bottom: env(safe-area-inset-bottom); }
#tabs button { flex: 1; border: 0; background: none; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--mut); font-size: 12px; position: relative; }
#tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#tabs button.on { color: var(--lapis); }
#tabs button.on span { font-weight: 600; }
#duebadge { position: absolute; top: 3px; left: 50%; margin-left: 9px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rubric); color: #fff; font: 600 11px/18px var(--ui); font-style: normal; padding: 0 5px; display: none; }
#duebadge.show { display: block; }

.boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mut); }
.boot-mark { font: 400 44px var(--serif); color: var(--rubric); letter-spacing: .02em; }

/* ---------- bars */
.bar { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 6px; border-bottom: 1px solid var(--line); background: var(--paper); }
.bar h1 { font: 400 20px var(--serif); margin: 0 6px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { width: 42px; height: 42px; border: 0; background: none; border-radius: 21px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.ib:active { background: var(--wash); }
.ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib[disabled] { opacity: .3; }
.loc { flex: 1; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 8px; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.loc:active { background: var(--wash); }
.loc b { font: 400 21px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc span { color: var(--mut); font-size: 13px; white-space: nowrap; }
.loc svg { width: 14px; height: 14px; stroke: var(--mut); fill: none; stroke-width: 2; flex: none; align-self: center; }

/* ---------- reader */
.reader { padding: 18px 20px 120px; max-width: 760px; margin: 0 auto; }
.chhead { text-align: center; margin: 2px 0 18px; }
.chhead .cn { font: 400 46px/1 var(--serif); color: var(--rubric); }
.chhead .bn { font: 400 15px var(--serif); color: var(--mut); margin-top: 4px; }
.text { word-wrap: break-word; }
.text.gk { font: 400 calc(21px * var(--ts))/1.75 var(--serif); }
.text.he { font: 400 calc(27px * var(--ts))/2.05 var(--heb); direction: rtl; text-align: right; }
.text p { margin: 0 0 .55em; }
.text.lines .vs { display: block; margin-bottom: .2em; }
.vn { font: 600 calc(12px * var(--ts)) var(--ui); color: var(--rubric); vertical-align: super; margin: 0 .2em 0 .35em; user-select: none; }
.text.he .vn { font-size: calc(13px * var(--ts)); }
.w { border-radius: 4px; padding: 0 1px; transition: background .12s; }
.w.hl { background: var(--hl); }
.w.sel { background: var(--sel); }
.w.kt { color: var(--mut); }
.qr { color: var(--lapis); font-size: .8em; }
.qr .br { color: var(--mut); }
.vs.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--sel); } 100% { background: transparent; } }
.chnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.chnav button { flex: 1; }

/* ---------- generic */
.pad { padding: 16px 18px 100px; max-width: 760px; margin: 0 auto; }
.btn { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 10px 14px; font-weight: 500; min-height: 44px; }
.btn:active { background: var(--wash); }
.btn.pri { background: var(--lapis); color: var(--lapis-ink); border-color: var(--lapis); }
.btn.pri:active { filter: brightness(.92); }
.btn.dan { color: var(--rubric); }
.btn.sm { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mut { color: var(--mut); }
.small { font-size: 13px; }
.he { font-family: var(--heb); }
.gk { font-family: var(--serif); }
h2 { font: 400 22px var(--serif); margin: 22px 0 8px; }
h3 { font: 600 15px var(--ui); margin: 18px 0 6px; }
.sec { margin: 22px 0 6px; font: 600 13px var(--ui); color: var(--mut); }
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-size: 13px; color: var(--mut); margin-bottom: 4px; }
.inp { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 10px 12px; min-height: 44px; }
.inp:focus { border-color: var(--lapis); outline: none; }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: none; padding: 7px 13px; min-height: 36px; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--lapis); color: var(--lapis-ink); }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 0; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--lapis); }
.empty { text-align: center; color: var(--mut); padding: 40px 10px; }
.empty b { display: block; color: var(--ink); font: 400 19px var(--serif); margin-bottom: 6px; }
.list { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); min-height: 52px; }
.li.tap:active { background: var(--wash); }
.li .main { flex: 1; min-width: 0; }
.li .lem { font-size: 21px; line-height: 1.3; }
.li .lem.he { font-size: 24px; }
.li .gl { color: var(--mut); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .meta { font-size: 12px; color: var(--mut); text-align: right; white-space: nowrap; }
.badge { display: inline-block; font: 600 11px/1 var(--ui); padding: 3px 6px; border-radius: 5px; background: var(--wash); color: var(--mut); vertical-align: middle; }
.badge.H { color: var(--rubric); }
.badge.G { color: var(--lapis); }

/* ---------- sheets */
#layer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 20; }
.scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 12, 16, .38); opacity: 0; transition: opacity .18s; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; background: var(--paper); border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; box-shadow: 0 -2px 18px rgba(0,0,0,.12); }
.sheet .grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet .body { overflow-y: auto; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); }
.open .scrim { opacity: 1; }
.open .sheet { transform: none; }
.dlg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; width: min(90vw, 420px); background: var(--paper); border-radius: 14px; padding: 20px; pointer-events: auto; transition: opacity .15s, transform .15s; }
.open .dlg { opacity: 1; transform: translate(-50%, -50%); }
.dlg p { margin: 0 0 16px; }
.dlg .acts { display: flex; justify-content: flex-end; gap: 8px; }

/* word sheet */
.wform { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.wform .f { font-size: 34px; line-height: 1.4; }
.wform .f.he { font-size: 40px; }
.wform .ref { color: var(--mut); font-size: 13px; white-space: nowrap; }
.note { font-size: 13px; color: var(--warn); margin-bottom: 6px; }
.segs { display: flex; flex-direction: column; gap: 0; margin: 8px 0 4px; border-top: 1px solid var(--line); }
.sg { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sg .st { min-width: 64px; font-size: 26px; line-height: 1.3; text-align: right; }
.sg .sd { flex: 1; font-size: 14px; }
.sg .sd b { font: 400 17px var(--serif); }
.sg.main { background: none; }
.lemcard { margin: 12px 0 6px; }
.lemcard .lm { font-size: 30px; line-height: 1.35; }
.lemcard .lm.he { font-size: 34px; }
.lemcard .xl { font: italic 400 16px var(--serif); color: var(--mut); }
.lemcard .gls { font: 400 20px var(--serif); margin: 4px 0; }
.lemcard .facts { font-size: 13px; color: var(--mut); }
.parse { font-size: 15px; margin: 8px 0; padding: 10px 12px; background: var(--wash); border-radius: var(--r); }
.parse b { font-weight: 600; }
.acts3 { display: flex; gap: 8px; margin-top: 14px; }
.acts3 .btn { flex: 1; padding-left: 6px; padding-right: 6px; }

/* entry */
.ehead { padding: 18px 0 6px; }
.ehead .lm { font-size: 40px; line-height: 1.3; }
.ehead .lm.he { font-size: 46px; direction: rtl; }
.ehead .xl { font: italic 400 18px var(--serif); color: var(--mut); }
.ehead .gls { font: 400 22px var(--serif); margin: 6px 0; }
.ehead .facts { color: var(--mut); font-size: 14px; }
.tabsrow { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 14px -18px 0; padding: 0 12px; scrollbar-width: none; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.tabsrow::-webkit-scrollbar { display: none; }
.tabsrow button { border: 0; background: none; padding: 12px 10px 10px; white-space: nowrap; color: var(--mut); border-bottom: 2px solid transparent; font-size: 15px; }
.tabsrow button.on { color: var(--ink); border-bottom-color: var(--rubric); }
.lexhtml { font: 400 17px/1.6 var(--serif); padding-top: 12px; }
.lexhtml .he { font-family: var(--heb); font-size: 1.15em; }
.lexhtml .lbl { font: 600 13px var(--ui); color: var(--mut); }
.lexhtml .sense { margin: 6px 0 6px 12px; }
.lexhtml .sub { margin: 10px 0; padding-left: 10px; border-left: 2px solid var(--line); }
.lexhtml a { color: var(--lapis); text-decoration: none; border-bottom: 1px dotted var(--lapis); }
.lexhtml .pos, .lexhtml .stem { color: var(--rubric); }
.lexhtml .lxhead { margin-bottom: 8px; }
.occ-books { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 5px 11px; font-size: 13px; min-height: 32px; }
.chip.on { border-color: var(--lapis); color: var(--lapis); font-weight: 600; }
.occ { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.occ .r { font: 600 13px var(--ui); color: var(--rubric); }
.occ .t { font-size: 19px; line-height: 1.7; }
.occ .t.he { font-size: 22px; direction: rtl; text-align: right; line-height: 1.9; }
.occ .t b { background: var(--hl); font-weight: 400; border-radius: 3px; }
.forms .li .lem { font-size: 20px; }

/* search */
.sbar { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.sbar .inp { font-size: 17px; }
.hint { color: var(--mut); font-size: 14px; line-height: 1.6; }
.hint code { font-family: var(--serif); background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.formhit { background: var(--wash); border-radius: var(--r); padding: 10px 12px; margin: 10px 0; }
.formhit .lem { font-size: 20px; }
.addbtn { width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--line); background: var(--paper); color: var(--lapis); font-size: 22px; line-height: 1; flex: none; }
.addbtn.done { color: var(--good); border-color: transparent; }

/* picker */
.pk-tabs { display: flex; gap: 8px; padding: 12px 16px 4px; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; padding: 8px 16px 100px; }
.books button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 10px 6px; text-align: left; min-height: 52px; }
.books button b { display: block; font: 400 16px var(--serif); }
.books button span { font-size: 11px; color: var(--mut); }
.books button.cur { border-color: var(--rubric); }
.chaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; padding: 8px 16px 100px; }
.chaps button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; height: 48px; font: 400 18px var(--serif); }
.chaps button.cur { border-color: var(--rubric); color: var(--rubric); }

/* study */
.deck { display: flex; align-items: center; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.deck .main { flex: 1; min-width: 0; }
.deck .nm { font: 400 20px var(--serif); }
.deck .ct { font-size: 13px; color: var(--mut); margin-top: 2px; }
.cnts { display: flex; gap: 12px; font: 600 14px var(--ui); font-variant-numeric: tabular-nums; }
.c-new { color: var(--lapis); }
.c-lrn { color: var(--rubric); }
.c-rev { color: var(--good); }
.cnts .z { opacity: .35; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stat { background: var(--wash); border-radius: var(--r); padding: 10px 12px; }
.stat b { display: block; font: 400 24px var(--serif); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--mut); }
.fc { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 8px 0 2px; }
.fc div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--mut); }
.fc i { display: block; width: 100%; background: var(--lapis); border-radius: 3px 3px 0 0; min-height: 1px; opacity: .85; }
.fcl { display: flex; gap: 6px; font-size: 11px; color: var(--mut); }
.fcl span { flex: 1; text-align: center; }

.session { display: flex; flex-direction: column; height: 100%; }
.sess-top { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px; font: 600 15px var(--ui); font-variant-numeric: tabular-nums; }
.sess-top .cur { text-decoration: underline; text-underline-offset: 4px; }
.card { flex: 1; overflow-y: auto; padding: 20px 22px; text-align: center; display: flex; flex-direction: column; }
.card .q { margin-top: 12vh; }
.card .big { font-size: 44px; line-height: 1.35; }
.card .big.he { font-size: 54px; }
.card .big.en { font: 400 30px var(--serif); }
.card .kind { font-size: 12px; color: var(--mut); margin-bottom: 14px; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.card .a .gls { font: 400 26px var(--serif); }
.card .a .xl { font: italic 400 18px var(--serif); color: var(--mut); margin-bottom: 6px; }
.card .a .facts { font-size: 13px; color: var(--mut); margin-top: 8px; }
.card .a .lm { font-size: 34px; }
.card .a .lm.he { font-size: 40px; }
.card .ctx { font-size: 19px; line-height: 1.8; color: var(--mut); margin-top: 18px; }
.card .ctx.he { font-size: 22px; direction: rtl; }
.card .ctx b { color: var(--ink); font-weight: 400; background: var(--hl); border-radius: 3px; }
.answer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.answer button { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 8px 2px; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.answer button small { font-size: 12px; color: var(--mut); }
.answer .e1 { color: var(--rubric); }
.answer .e2 { color: var(--warn); }
.answer .e3 { color: var(--good); }
.answer .e4 { color: var(--lapis); }
.answer.show { grid-template-columns: 1fr; }
.answer.show button { background: var(--lapis); color: var(--lapis-ink); border-color: var(--lapis); font-weight: 600; }

.lic p { font-size: 14px; margin: 6px 0 12px; }
.lic b { font-weight: 600; }

#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; max-width: 88vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }
.lw.closing, .lw.closing * { pointer-events: none !important; }
.sbar .seg { align-self: flex-start; }
.w { cursor: pointer; }
.li.tap, .deck, .occ { cursor: pointer; }
#top { padding-top: env(safe-area-inset-top); background: var(--paper); }
@media (hover: hover) {
  .w:hover { background: var(--hl); }
  .li.tap:hover, .deck:hover { background: var(--wash); }
  .btn:hover { border-color: var(--mut); }
  .btn.pri:hover { filter: brightness(1.08); }
}
#tabs { justify-content: center; } #tabs button { max-width: 180px; }
.la { font-family: var(--serif); }
.text.la { font: 400 calc(21px * var(--ts))/1.75 var(--serif); }
.wform .f.la, .lemcard .lm.la, .ehead .lm.la { font-family: var(--serif); }
.card .big.la { font-family: var(--serif); }
.badge.L { color: var(--good); }
.pk-desc { padding: 0 16px; margin: 6px 0 0; }
.pk-h { padding: 6px 16px 0; margin: 10px 0 0; color: var(--mut); font-weight: 600; }
.pk-h + .books { padding-bottom: 8px; }
.edseg { flex-wrap: wrap; }
.alts { margin: 10px 0 2px; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
.alts summary { cursor: pointer; font-size: 14px; color: var(--mut); min-height: 28px; }
.alts .alt { padding: 6px 0; border-top: 1px solid var(--line); }
.alts .alt b { font-weight: 400; font-size: 18px; }
.lexhtml .bib { color: var(--mut); font-size: .85em; }
.lexhtml .etym { color: var(--mut); }
.lexhtml .sn { color: var(--rubric); }
.pk-lang { padding-top: 8px; }
.pk-lang .seg button { min-width: 84px; }
.deck .dm { margin-right: -8px; color: var(--mut); }
.acts.acts-col { flex-direction: column; align-items: stretch; }
.dlg p.small { margin-top: -6px; }
#tabs button[hidden] { display: none; }
/* ---------- profile */
.auth { max-width: 440px; }
.auth-head { text-align: center; margin: 18px 0 14px; }
.auth-mark { font: 400 36px var(--serif); color: var(--rubric); }
.auth-head h2 { margin: 6px 0 6px; }
.auth-head p { margin: 0; font-size: 14px; }
.auth-seg { display: flex; margin: 10px 0 4px; }
.auth-seg button { flex: 1; }
.form-err { color: var(--rubric); font-size: 14px; min-height: 1.2em; margin: 4px 0 8px; }
.phead { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; }
.avatar { width: 64px; height: 64px; border-radius: 32px; background: var(--lapis); color: var(--lapis-ink); display: flex; align-items: center; justify-content: center; font: 400 26px var(--serif); flex: none; }
.pinfo { min-width: 0; }
.pname { font: 400 24px var(--serif); line-height: 1.2; overflow-wrap: anywhere; }
.pinfo .small { overflow-wrap: anywhere; }
.syncline { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.syncline svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.syncline span { flex: 1; }
.syncline.ok { color: var(--good); }
.syncline.busy { color: var(--lapis); }
.syncline.warn { color: var(--warn); }
.syncline .btn { color: var(--ink); }
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.langs div { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; text-align: center; }
.langs b { display: block; font-weight: 400; font-size: 18px; }
.langs span { font-size: 12px; color: var(--mut); }
.fc14 div span { font-size: 10px; }
.pbar { height: 4px; background: var(--wash); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--good); }
@media (max-width: 360px) { #tabs button span { font-size: 11px; } }
.support p { margin: 0 0 10px; font-size: 15px; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.copyright { margin: 22px 0 8px; font-size: 12px; color: var(--mut); text-align: center; }
