/* /listen/{lang}, the listening test, on the Notation side's paper and ink (notation.css): each phrase is
   engraved on a sheet that stays on its stand (sticky) beside the answers, the progress is a row of
   rehearsal marks, and the test ends on the paper "Fine" every Notation page ends on. Words the listener
   marks get a red pencil ring, as an editor marks a proof. */
.cx .lt {
    --lt-line: rgba(241, 245, 249, .1); --lt-line2: rgba(241, 245, 249, .16); --lt-line3: rgba(241, 245, 249, .32);
    --pencil: #b4412c; --pencil-on-navy: #e0846f;
    --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", var(--serif);
    --gothic: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
.cx .lt :lang(ja) { font-family: var(--ui), var(--gothic); }

/* ---------- rehearsal marks: the progress ---------- */
.cx .lt-marks { position: sticky; top: 64px; z-index: 15; padding: 12px 0 10px; background: linear-gradient(var(--page) 78%, rgb(11 17 32 / 0)); }
.cx .rm { display: flex; align-items: center; }
.cx .rm button { flex: none; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1.25px solid var(--lt-line3); border-radius: 0; background: var(--page); color: var(--fg2); font: 600 18px/1 var(--serif); font-variant-numeric: lining-nums; cursor: pointer; transition: background-color .2s var(--v-ease), color .2s, border-color .2s; }
.cx .rm button:disabled { cursor: default; }
.cx .rm button.done { border-color: var(--fg3); color: var(--fg); }
.cx .rm button[aria-current="step"] { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); }
.cx .rm button:focus-visible { outline: 2px solid var(--a400); outline-offset: 3px; }
.cx .rm i { flex: 1 1 0; min-width: 6px; height: 1px; background: var(--lt-line2); }
.cx .rm i.done { background: var(--fg3); }
.cx .rm .fin { display: flex; gap: 3px; height: 30px; }
.cx .rm .fin b { width: 1.25px; background: var(--lt-line3); }
.cx .rm .fin b + b { width: 4px; }
.cx .rm .fin.done b { background: var(--fg3); }
.cx .rm-lbl { margin: 8px 0 0; font: 500 13px/1.3 var(--ui); color: var(--fg2); }
.cx .rm-lbl b { color: var(--fg); font-weight: 600; }


/* ---------- A: intro ---------- */
.cx .lt-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 36px; font: 500 13.5px/1 var(--ui); }
.cx .lt-langs a, .cx .lt-langs button { padding: 6px 0; border: 0; border-bottom: 1.5px solid transparent; background: none; color: var(--fg2); font: inherit; text-decoration: none; cursor: pointer; }
.cx .lt-langs :is(a, button):hover { color: var(--fg); }
.cx .lt-langs [aria-current="true"] { color: var(--fg); border-bottom-color: var(--a400); }
.cx .lt-langs .sep { width: 1px; background: var(--lt-line2); }
.cx .lt-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 48px 72px; align-items: start; padding-top: 24px; }
.cx .lt-intro > * { min-width: 0; }
.cx .lt h1.lt-h1 { margin: 0; font: 500 clamp(46px, 6.4vw, 88px)/.94 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.cx .lt h1.lt-h1 em { display: block; font-style: italic; color: var(--t400); }
.cx .lt h1.lt-h1:lang(ja) { font-family: var(--mincho); letter-spacing: 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.25; }
.cx .lt h1.lt-h1:lang(ja) em { font-style: normal; }
.cx .lt .lt-lede { margin: 26px 0 0; max-width: 56ch; font: 400 17px/1.6 var(--ui); color: var(--fg3); text-wrap: pretty; }
.cx .lt .lt-lede:lang(ja) { font-size: 16px; line-height: 1.9; }
.cx .lt .lt-note { margin: 14px 0 0; font: 400 14px/1.5 var(--ui); color: var(--fg2); }
@media (max-width: 960px) { .cx .lt-intro { grid-template-columns: 1fr; } }
/* the programme: what you are about to hear, as a concert programme on paper */
.cx .lt-prog { background: var(--paper); color: var(--paper-ink); padding: 26px 26px 40px; border-radius: 3px; }
.cx .lt-prog h2 { margin: 0; font: italic 500 28px/1 var(--serif); letter-spacing: -.01em; color: var(--paper-ink); }
.cx .lt-prog h2:lang(ja) { font-family: var(--mincho); font-style: normal; font-size: 22px; }
.cx .lt-prog .sub { margin: 8px 0 18px; font: 400 13px/1.4 var(--ui); color: var(--paper-2); }
.cx .lt-prog ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-rule); }
.cx .lt-prog li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--paper-rule); }
.cx .lt-prog .n { font: 600 15px/1 var(--serif); color: var(--paper-2); font-variant-numeric: lining-nums; }
.cx .lt-prog .t { font: 500 19px/1.2 var(--serif); }
.cx .lt-prog .t:lang(ja) { font-family: var(--mincho); font-size: 16px; }
.cx .lt-prog .d { font: 400 12.5px/1 var(--ui); color: var(--paper-2); font-variant-numeric: tabular-nums; }

/* ---------- questions ---------- */
.cx .lt-sheet { max-width: 640px; display: flex; flex-direction: column; gap: 44px; }
.cx .lt-sec { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--lt-line2); font: 500 clamp(28px, 3vw, 36px)/1 var(--serif); letter-spacing: -.012em; color: var(--fg); }
.cx .lt-sec:lang(ja) { font-family: var(--mincho); font-size: 24px; }
.cx .lt-q { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cx .lt-q > .ql { display: flex; gap: 12px; align-items: baseline; margin: 0; font: 600 16.5px/1.4 var(--ui); color: var(--fg); }
.cx .lt-q > .ql .qn { flex: none; min-width: 16px; font: 500 14px/1 var(--ui); color: var(--fg2); font-variant-numeric: tabular-nums; }
.cx .lt-q .hint { margin: -6px 0 0 28px; font: 400 14px/1.45 var(--ui); color: var(--fg2); }
.cx .lt-q .body { margin-left: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cx .lt-q.locked { opacity: .5; }
@media (max-width: 520px) { .cx .lt-q .body, .cx .lt-q .hint { margin-left: 0; } }
.cx .lt :is(.inp, .ta) { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--lt-line2); background: rgb(241 245 249 / .03); color: var(--fg); font: 400 16px/1.4 var(--ui); transition: border-color .15s; }
.cx .lt :is(.inp, .ta):focus { outline: none; border-color: var(--a400); }
.cx .lt .ta { min-height: 92px; resize: vertical; }
.cx .lt :is(.inp, .ta)::placeholder { color: rgb(139 157 180 / .7); }
/* answers as hairline rows: the letter in a rehearsal box, the chosen one filled with paper */
.cx .lt-ch { display: flex; flex-direction: column; border-top: 1px solid var(--lt-line); }
.cx .lt-ch button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 10px 8px 10px 2px; border: 0; border-bottom: 1px solid var(--lt-line); background: none; text-align: left; color: var(--fg3); font: 400 16px/1.35 var(--ui); cursor: pointer; transition: background-color .15s var(--v-ease), color .15s; }
.cx .lt-ch button:hover { background: rgb(241 245 249 / .035); color: var(--fg); }
.cx .lt-ch .k { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1.25px solid var(--lt-line3); font: 600 15px/1 var(--serif); color: var(--fg2); transition: background-color .15s, color .15s, border-color .15s; }
.cx .lt-ch button[aria-pressed="true"] { color: var(--fg); }
.cx .lt-ch button[aria-pressed="true"] .k { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); }
.cx .lt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx .lt-chips button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--lt-line2); background: none; color: var(--fg3); font: 500 13.5px/1.2 var(--ui); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.cx .lt-chips button:hover { border-color: var(--lt-line3); color: var(--fg); }
.cx .lt-chips button[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); }
.cx .lt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 4px; }
.cx .lt-nav .btn { height: 52px; max-width: 100%; padding: 0 26px; border-radius: 10px; font-size: 15.5px; }
.cx .lt-nav .btn .nx { min-width: 0; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; opacity: .8; }
.cx .lt-nav .btn .nx:lang(ja) { max-width: 16ch; }
.cx .lt .link { border: 0; background: none; padding: 8px 0; color: var(--fg2); font: 600 14.5px/1 var(--ui); cursor: pointer; }
.cx .lt .link:hover { color: var(--fg); }
.cx .lt .lt-err { margin: 0; color: #f0a39b; font: 500 14.5px/1.5 var(--ui); }

/* ---------- 1–6: a phrase, the score on a stand beside the answers ---------- */
.cx .lt-ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 40px 56px; align-items: start; padding-top: 16px; }
.cx .lt-ph > * { min-width: 0; }
.cx .lt-stand { position: sticky; top: 148px; }
@media (max-width: 1020px) { .cx .lt-ph { grid-template-columns: 1fr; } .cx .lt-stand { position: static; } }
.cx .lt-ph-h { margin: 0 0 18px; }
.cx .lt-ph-h h1 { margin: 0; font: 500 clamp(32px, 3.6vw, 46px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.cx .lt-ph-h h1:lang(ja) { font-family: var(--mincho); letter-spacing: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.cx .lt-ph-h p { margin: 10px 0 0; font: 400 13.5px/1.4 var(--ui); color: var(--fg2); font-variant-numeric: tabular-nums; }
.cx .lt-paper { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 3px; padding: 18px 20px 24px; }
.cx .lt-paper svg { display: block; overflow: visible; max-width: 100%; height: auto; }
.cx .lt-reveal { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(23, 25, 30, .4); background: var(--paper); color: var(--paper-ink); font: 600 13.5px/1 var(--ui); white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.cx .lt-reveal:hover { background: #e6dfd1; }
.cx .lt-reveal:focus-visible { outline: 2px solid var(--paper-teal); outline-offset: 3px; }
.cx .lt-nomusic { margin: 0; padding: 24px 0; font: italic 500 20px/1.3 var(--serif); color: var(--paper-2); }

/* engraving (listen-score.js; the classes of score-session.js) */
.cx .lt-score .stf { stroke: rgba(23, 25, 30, .5); stroke-width: 1; }
.cx .lt-score :is(.bl, .lg, .stem) { stroke: var(--paper-ink); stroke-width: 1.1; }
.cx .lt-score :is(.nh, .flag, .dt, .acc-f, .blk) { fill: var(--paper-ink); transition: fill .12s; }
.cx .lt-score .stem { transition: stroke .12s; }
.cx .lt-score .nh.hollow { fill: none; stroke: var(--paper-ink); stroke-width: 1.7; }
.cx .lt-score .acc { fill: none; stroke: var(--paper-ink); stroke-width: 1.1; }
.cx .lt-score :is(.clef, .rest) { font-family: 'Noto Music', 'Bravura Text', 'Apple Symbols', 'Segoe UI Symbol', serif; fill: var(--paper-ink); }
.cx .lt-score :is(.c8, .tn) { font: italic 600 11.5px var(--serif); fill: var(--paper-ink); text-anchor: middle; }
.cx .lt-score .ts { font: 600 21px/1 var(--serif); fill: var(--paper-ink); }
.cx .lt-score .slur { fill: none; stroke: var(--paper-ink); stroke-width: 1; }
.cx .lt-score .ly { font: 500 15px var(--serif); fill: var(--paper-ink); transition: fill .12s, opacity .35s; }
.cx .lt-score.ja .ly { font-family: var(--mincho); }
.cx .lt-score .lie { font: 15px var(--serif); fill: var(--paper-ink); }
.cx .lt-score :is(.hy, .ext) { stroke: var(--paper-ink); stroke-width: .9; transition: opacity .35s; }
.cx .lt-score .lit :is(.nh, .flag, .dt, .acc-f) { fill: var(--paper-teal); }
.cx .lt-score .lit .nh.hollow { fill: none; stroke: var(--paper-teal); }
.cx .lt-score .lit :is(.stem, .acc) { stroke: var(--paper-teal); }
.cx .lt-score .ly.lit { fill: var(--paper-teal); }
.cx .lt-score .phd { stroke: var(--paper-teal); stroke-width: 1.5; opacity: 0; transition: opacity .25s; }
.cx .lt-score .phd.on { opacity: .9; }
.cx .lt-score.hidden-ly :is(.ly, .lie, .hy, .ext) { opacity: 0; }
.cx .lt-score.hidden-ly .hits { display: none; }
/* while it sings, the words still to come wait in grey (The Pudding, "Wonky") */
.cx .lt-score.playing .ly.fut { opacity: .28; }
.cx .lt-score .hit { fill: transparent; cursor: pointer; outline: none; }
.cx .lt-score .hit:hover { fill: rgba(23, 25, 30, .05); }
.cx .lt-score .hit:focus-visible { stroke: var(--paper-teal); stroke-width: 1.5; }
.cx .lt-score .mark { opacity: 0; pointer-events: none; }
.cx .lt-score .mark :is(ellipse, path) { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; }
.cx .lt-score .mark ellipse { stroke-dasharray: 92 8; stroke-dashoffset: 100; }
.cx .lt-score .mark path { opacity: .55; stroke-width: 1.1; }
.cx .lt-score .mark.on { opacity: 1; }
.cx .lt-score .mark.on ellipse { stroke-dashoffset: 4; transition: stroke-dashoffset .38s cubic-bezier(.3, .7, .4, 1); }
.cx .lt-score .ly.flag { fill: var(--pencil); }
@media (prefers-reduced-motion: reduce) { .cx .lt-score .mark.on ellipse, .cx .lt-score .ly { transition: none; } }

/* transport: the home page's play button and waveform row */
.cx .lt-tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "play txt tm" "wave wave wave"; gap: 12px 16px; align-items: center; margin-top: 18px; }
.cx .lt-play { --play-s: 52px; grid-area: play; }
.cx .lt-play:disabled { opacity: .45; cursor: default; }
.cx .lt-tr-txt { grid-area: txt; min-width: 0; }
.cx .lt-tr-now { margin: 0; font: 600 15px/1.2 var(--ui); }
.cx .lt-tr-sub { margin: 3px 0 0; font: 400 13px/1.3 var(--ui); color: var(--fg2); }
.cx .lt-tr-tm { grid-area: tm; font: 400 13px/1 var(--ui); color: var(--fg2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx .lt-tr-tm b { color: var(--fg); font-weight: 400; }
.cx .lt-wf { --p: 0; grid-area: wave; position: relative; height: 44px; cursor: pointer; border-radius: 2px; touch-action: none; }
.cx .lt-wf:focus-visible { outline: 2px solid var(--a400); outline-offset: 4px; }
.cx .lt-wf .base, .cx .lt-wf .on { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.cx .lt-wf i { flex: 1 1 0; min-width: 1px; height: calc(var(--h) * 100%); border-radius: 1px; background: rgba(241, 245, 249, .26); }
.cx .lt-wf .on { clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); }
.cx .lt-wf .on i { background: var(--fg); }
.cx .lt-wf:hover .base i { background: rgba(241, 245, 249, .4); }
.cx .lt-wf .ph { position: absolute; top: -5px; bottom: -5px; left: calc(var(--p) * 100%); width: 1px; background: var(--fg); opacity: 0; transition: opacity .2s; }
.cx .lt-wf.started .ph { opacity: .9; }
@media (max-width: 600px) { .cx .lt-wf i:nth-child(2n) { display: none; } }

.cx .lt-flags { display: flex; flex-direction: column; border-top: 1px solid var(--lt-line); }
.cx .lt-flag { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--lt-line); }
.cx .lt-flag-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cx .lt-flag-h span { font: 600 15.5px/1.35 var(--ui); }
.cx .lt-flag-h em { font: italic 500 21px/1 var(--serif); color: var(--pencil-on-navy); }
.cx .lt-flag-h em:lang(ja) { font-family: var(--mincho); font-style: normal; font-size: 17px; }
.cx .lt-flag-h em rt { font: 500 10px var(--ui); }
.cx .lt-flag-h button { border: 0; background: none; color: var(--fg2); font: 500 13px/1 var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cx .lt-flag-h button:hover { color: var(--fg); }
.cx .lt .lt-empty { margin: 0; font: 400 14px/1.4 var(--ui); color: var(--fg2); }

/* ---------- the Fine (notation.css .e-fine / .e-end) ---------- */
.cx .lt-done { margin-top: 32px; }
.cx .lt-done .closing-in h2:lang(ja) { font-family: var(--mincho); letter-spacing: 0; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.2; }
.cx .lt-done .sum { margin-top: 14px; font: 500 13.5px/1.4 var(--ui); color: var(--paper-2); }
.cx .lt-done .again { justify-self: start; padding: 8px 0; border: 0; background: none; color: var(--paper-ink); font: 600 14.5px/1 var(--ui); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cx .lt-done .closing-acts { display: grid; gap: 10px; }
.cx .lt-done .closing-in p { margin-top: 0; }
/* a phrase without a score yet: its words on the paper, to tap */
.cx .lt-nomusic .lt-word { padding: 0 4px; border: 0; border-radius: 4px; background: none; color: var(--paper-ink); font: inherit; cursor: pointer; }
.cx .lt-nomusic .lt-word[aria-pressed="true"] { color: var(--pencil); text-decoration: underline wavy var(--pencil); text-underline-offset: 5px; }

/* ---------- /listen/{lang}/beta, round 2: the same paper and ink. The install card is the programme's
   paper; the report form reuses the test's questions, with radios standing in for its answer buttons. ---------- */
.cx .lb { padding-top: 28px; padding-bottom: 96px; }
.cx .lb .lb-state { margin: 30px 0 0; max-width: 24ch; font: 500 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; color: var(--fg); text-wrap: balance; }
.cx .lb .lb-state:lang(ja) { font-family: var(--mincho); font-size: 22px; line-height: 1.5; }
.cx .lb .lb-state + .lt-lede { margin-top: 14px; }
.cx .lb .lt-nav { margin-top: 28px; }
/* the way to the release page (/listen/{lang}/beta/whats-new): the home's round "Hear Cantai" button */
.cx .lb-news { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--fg); text-decoration: none; }
.cx .lb-news .hp { --play-s: 52px; }
.cx .lb-news b { display: block; font: 600 22px/1.1 var(--serif); }
.cx .lb-news b:lang(ja) { font-family: var(--mincho); font-size: 19px; line-height: 1.4; }
.cx .lb-news small { display: block; margin-top: 3px; font: 400 13px/1.45 var(--ui); color: var(--fg3); }
.cx .lb-news:focus-visible { outline: 2px solid var(--a300); outline-offset: 4px; border-radius: 4px; }
.cx .lb-install .sub { margin-bottom: 20px; }
/* the programme's list rules (.lt-prog ol/li) are for the six phrases: these lists set their own */
.cx .lb-install li { display: block; padding: 0; border-bottom: 0; }
.cx .lb-dl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-rule); }
.cx .lb-dl li { border-bottom: 1px solid var(--paper-rule); }
.cx .lb-dl :is(a, .off) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t go" "d go"; gap: 2px 12px; align-items: center; padding: 12px 2px; color: inherit; text-decoration: none; }
.cx .lb-dl .t { grid-area: t; font: 500 19px/1.2 var(--serif); }
.cx .lb-dl .d { grid-area: d; font: 400 12.5px/1.3 var(--ui); color: var(--paper-2); }
.cx .lb-dl .go { grid-area: go; display: grid; place-items: center; width: 32px; height: 32px; border: 1.25px solid var(--paper-ink); font: 600 15px/1 var(--ui); transition: background-color .15s, color .15s; }
.cx .lb-dl a:hover .go, .cx .lb-dl a:focus-visible .go { background: var(--paper-ink); color: var(--paper); }
.cx .lb-dl a:focus-visible { outline: 2px solid var(--paper-teal); outline-offset: 2px; }
.cx .lb-dl .off { opacity: .55; }
.cx .lt-prog .lb-steps { list-style: decimal; border-top: 0; margin: 22px 0 0; padding-left: 20px; font: 400 14px/1.5 var(--ui); color: var(--paper-ink); }
.cx .lb-install .lb-steps li { display: list-item; }
.cx .lb-steps li + li { margin-top: 6px; }
.cx .lb-steps li::marker { font: 600 14px var(--serif); color: var(--paper-2); }
.cx .lb-caution { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--paper-rule); font: 400 13px/1.5 var(--ui); color: var(--paper-2); }

.cx .lb-sub { margin: -28px 0 0; font: 400 15px/1.5 var(--ui); color: var(--fg2); }
.cx .lb-sent { margin: 0; padding: 14px 16px; border-left: 3px solid var(--t400); background: rgb(241 245 249 / .04); font: 500 15px/1.45 var(--ui); color: var(--fg); }
.cx .lt-ch label { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 10px 8px 10px 2px; border-bottom: 1px solid var(--lt-line); color: var(--fg3); font: 400 16px/1.35 var(--ui); cursor: pointer; transition: background-color .15s var(--v-ease), color .15s; }
.cx .lt-ch label:hover { background: rgb(241 245 249 / .035); color: var(--fg); }
.cx .lt-ch label input { position: absolute; opacity: 0; pointer-events: none; }
.cx .lt-ch label:has(input:checked) { color: var(--fg); }
.cx .lt-ch label:has(input:checked) .k { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); }
.cx .lt-ch label:has(input:focus-visible) .k { outline: 2px solid var(--a400); outline-offset: 2px; }
.cx .lb-words { display: flex; flex-direction: column; gap: 10px; }
.cx .lb-word { display: grid; grid-template-columns: minmax(0, 1.1fr) 84px minmax(0, 2fr) auto; gap: 8px; align-items: center; }
.cx .lb-word .rm { padding: 8px 4px; font-weight: 500; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.cx .lb-word .rm[hidden] { display: none; }
@media (max-width: 620px) {
    .cx .lb-word { grid-template-columns: minmax(0, 1fr) 84px; padding-bottom: 10px; border-bottom: 1px solid var(--lt-line); }
    .cx .lb-word .n { grid-column: 1 / -1; }
    .cx .lb-word .rm { justify-self: start; }
}
.cx .lb .lb-add { align-self: flex-start; }
.cx .lb-file { color: var(--fg3); font: 400 14.5px/1.4 var(--ui); }
.cx .lb-file::file-selector-button { margin-right: 14px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--lt-line2); background: rgb(241 245 249 / .03); color: var(--fg); font: 600 14px/1 var(--ui); cursor: pointer; }
.cx .lb-yours ol { list-style: none; margin: -20px 0 0; padding: 0; }
.cx .lb-yours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--lt-line); }
.cx .lb-yours .t { font: 500 19px/1.25 var(--serif); color: var(--fg); }
.cx .lb-yours .d { font: 400 13px/1.6 var(--ui); color: var(--fg2); font-variant-numeric: tabular-nums; }
