/* Word page polish (Claude Code 2026-11-10, owner: "evaluate dictionary appearance … yes both 10/10"). Loaded last.
   Only the dictionary word page: header rows, quieter speakers, one gold accent for the word-story blocks, "Less common
   uses", a soft loading placeholder, a clearer Translate switch, and the name ribbon that steps aside while reading. */

/* 1. header: CEFR · main part of speech (+N) on the first row, pronunciation + UK / US on their own row */
.word-head .word-meta .pron-row { display: flex; flex-basis: 100%; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.word-head .word-meta .pos-more {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; cursor: pointer;
  font: 700 .72rem/1 var(--sans); letter-spacing: .02em; color: #E2BE72; background: rgba(226, 190, 114, .1);
  border: 1px solid rgba(226, 190, 114, .55);
}
.word-head .word-meta .pos-more:hover, .word-head .word-meta .pos-more:focus-visible { background: rgba(226, 190, 114, .2); }

/* 2. quieter speakers in the reading cards (full strength on hover / focus / while playing) */
:is(#sec-definition, #sec-register) .say:not(.speaking) { opacity: .5; transform: scale(.88); transition: opacity .15s ease, transform .15s ease; }
:is(#sec-definition, #sec-register) .say:hover, :is(#sec-definition, #sec-register) .say:focus-visible,
:is(#sec-definition, #sec-register) .mean:hover .say, :is(#sec-definition, #sec-register) .ex-row:hover .say { opacity: 1; transform: none; }

/* 3. one accent for the word story: Forms · Word family · Word root · Origin all use a deep gold edge (were blue / green / purple) */
#sec-definition .word-story { --metal: var(--reading-accent-line, #A07A2C); --metal-text: var(--reading-accent, #8A6420); }
#sec-definition .ws-block { --ws-accent: var(--reading-accent-line, #A07A2C); }
#sec-definition .ws-more summary { color: var(--reading-accent, #8A6420); }

/* 4. less common uses (meanings added from the Wiktionary enrichment) — folded, after the main meanings */
#sec-definition .mean-more { margin: 6px 0 4px; border-top: 1px solid rgba(160, 122, 44, .28); }
#sec-definition .mean-more > summary {
  display: flex; align-items: center; gap: 8px; padding: 12px 4px 8px; cursor: pointer; list-style: none;
  font: 700 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--reading-accent, #8A6420);
}
#sec-definition .mean-more > summary::-webkit-details-marker { display: none; }
#sec-definition .mean-more > summary::after { content: ""; margin: 0 6px 3px auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
#sec-definition .mean-more[open] > summary::after { transform: translateY(4px) rotate(-135deg); }
#sec-definition .mean-more-n {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-size: .68rem; letter-spacing: 0; color: var(--reading-accent, #6E4E14); border: 1px solid rgba(160, 122, 44, .5);
}
#sec-definition .mean-note { margin: 4px 0 2px; font-size: .86rem; font-style: italic; color: var(--reading-sub, #6B6455); }

/* 5. a soft page placeholder while a word loads (was a plain "Loading…") */
.wp-skel { display: grid; gap: 12px; padding: 6px 2px 0; }
.wp-skel .sk { display: block; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .06) 100%); background-size: 200% 100%; animation: wpSk 1.3s ease-in-out infinite; }
.wp-skel .sk-hw { width: 44%; height: 38px; }
.wp-skel .sk-meta { width: 72%; height: 22px; }
.wp-skel .sk-pills { width: 88%; height: 36px; border-radius: 999px; }
.wp-skel .sk-card { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: rgba(250, 246, 236, .08); border: 1px solid rgba(226, 190, 114, .22); }
.wp-skel .sk-l1 { width: 38%; height: 18px; }
.wp-skel .sk-l2 { width: 92%; height: 14px; }
.wp-skel .sk-l3 { width: 76%; height: 14px; }
@keyframes wpSk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .wp-skel .sk { animation: none; } }

/* 6. the Translate switch is easy to see on the dark header */
.word-head .tr-switch .tr-knob { background: rgba(255, 255, 255, .14) !important; border: 1.5px solid rgba(226, 190, 114, .85) !important; }
.word-head .tr-switch[aria-checked="true"] .tr-knob { background: linear-gradient(180deg, #F2D58E, #C9A24D) !important; border-color: #F2D58E !important; }

/* 7. the name ribbon steps aside while a word page is scrolled down (back when scrolling up) */
.name-ribbon { transition: opacity .25s ease, visibility .25s ease; }
html.ribbon-away body:is([data-route="word"], [data-route="dictionary"]) .name-ribbon { opacity: 0; visibility: hidden; pointer-events: none; }
.word-head .word-meta .pos-extra[hidden], .word-head .word-meta .pos-more[hidden] { display: none !important; }
#sec-definition .ws-family .rel-chip { background: rgba(160, 122, 44, .1) !important; border: 1px solid rgba(160, 122, 44, .35) !important; color: var(--reading-text, #2A2418) !important; }
#sec-definition .ws-family .rel-chip i { color: var(--reading-accent, #8A6420) !important; }

/* 8. many meanings (run 56, set 44): the first 8, then "Show all N meanings" */
#sec-definition:not(.show-all-means) .mean.mean-later { display: none; }
#sec-definition .mean-all {
  display: block; width: 100%; margin: 6px 0 4px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  font: 700 .82rem/1.2 var(--sans); letter-spacing: .02em; color: var(--reading-accent, #6E4E14);
  background: rgba(160, 122, 44, .08); border: 1px dashed rgba(160, 122, 44, .55);
}
#sec-definition .mean-all:hover, #sec-definition .mean-all:focus-visible { background: rgba(160, 122, 44, .16); }

/* 9. ONE GRID + ONE TYPE SCALE for Definitions · CEFR Levels · Grammar (owner: "font size the same … line aligned … the same
   rule column from top to down … the line level with the numbers 1 2 3"). Every size is in rem, so it follows the user's
   text-size setting; every left line sits on the same rail = the centre of the number coins; every text starts on the same
   column = right of the coins. */
.entry-card {
  --wp-coin: 1.5rem;                              /* number coin */
  --wp-gap: .625rem;                              /* coin → text */
  --wp-col: calc(var(--wp-coin) + var(--wp-gap)); /* text column */
  --wp-rail: calc(var(--wp-coin) / 2 - 1px);      /* where a 2px line starts so its middle is the coin's middle */
  --wp-read: .9375rem;                            /* every sentence: meaning, example, CEFR, grammar */
  --wp-small: .75rem;                             /* labels (B1, C1, type) */
  --wp-line: rgba(160, 122, 44, .55);
}
/* card titles: one style (were small capitals / plain sans / large serif) */
.entry-card .ecard-head h2 .ecard-toggle > span:first-child {
  font: 700 .8125rem/1.3 var(--sans) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--reading-head, #324360) !important;
}

/* Definitions: coin in the first column, the meaning in the text column (wrapped lines stay in the column) */
#sec-definition .mean-row { padding-left: 0 !important; }
#sec-definition .mean-def { position: relative; padding-left: var(--wp-col) !important; min-height: var(--wp-coin); font-size: var(--wp-read) !important; line-height: 1.5 !important; font-weight: 650 !important; }
#sec-definition .mean-def [id^="defM"] { font-size: inherit !important; }
#sec-definition .mean-n {
  position: absolute; left: 0; top: 0; margin: 0 !important; width: var(--wp-coin) !important; height: var(--wp-coin) !important;
  display: grid !important; place-items: center; font-size: var(--wp-small) !important; line-height: 1 !important;
}
#sec-definition .mean-def .sense-gram { font-size: var(--wp-small) !important; }
/* examples: the gold line on the rail, the sentences in the text column, same size as the meaning */
#sec-definition .mean-ex { margin-left: var(--wp-rail) !important; padding-left: calc(var(--wp-col) - var(--wp-rail) - 2px) !important; border-left: 2px solid var(--wp-line) !important; }
#sec-definition .mean-ex::before { display: none !important; }
#sec-definition .ex-row p, #sec-definition .def-text { font-size: var(--wp-read) !important; line-height: 1.6 !important; }
#sec-definition .mean-note { padding-left: var(--wp-col); }
/* word story blocks: line on the same rail, headings and content in the text column */
#sec-definition .ws-block { padding-left: var(--wp-col) !important; }
#sec-definition .ws-block::before { left: var(--wp-rail) !important; width: 2px !important; }
#sec-definition .ws-h { font-size: .8125rem !important; }
#sec-definition .ws-w, #sec-definition .ws-seed, #sec-definition .ws-text { font-size: var(--wp-read) !important; }

/* CEFR Levels: the coloured level line on the rail, label + sentence in the text column, same sentence size */
#sec-register .reg { display: block; padding-left: var(--wp-col); font-size: var(--wp-small) !important; letter-spacing: .06em; color: var(--reading-sub, #6B6455); }
#sec-register .reg-row { margin-left: var(--wp-rail) !important; padding-left: calc(var(--wp-col) - var(--wp-rail) - 2px) !important; border-left-width: 2px !important; }
#sec-register .reg-row .k { padding-left: 0 !important; font-size: var(--wp-small) !important; }
#sec-register .reg-row .v { font-size: var(--wp-read) !important; line-height: 1.6 !important; }

/* Grammar: pattern numbers in the coin column, pattern text in the text column; sentences at the reading size */
#sec-structure .st-n { width: var(--wp-coin) !important; min-width: var(--wp-coin); text-align: center; font-size: .9375rem !important; }
#sec-structure .st-name, #sec-structure .st-formula { font-size: .875rem !important; }
#sec-structure .st-type { font-size: .625rem !important; }
#sec-structure .st-ielts-sentence { font-size: var(--wp-read) !important; line-height: 1.6 !important; }
#sec-structure .ex-row p, #sec-structure .st-ex p { font-size: var(--wp-read) !important; line-height: 1.6 !important; }
#v-dict #sec-definition .mean-def > .mean-n, #sec-definition .mean-def > .mean-n {
  position: absolute !important; left: 0 !important; top: calc((1.5 * var(--wp-read) - var(--wp-coin)) / 2) !important;
  width: var(--wp-coin) !important; height: var(--wp-coin) !important; min-width: var(--wp-coin) !important;
  margin: 0 !important; vertical-align: baseline !important; font-size: var(--wp-small) !important;
}
/* the three cards share one inner padding, so the coin / line / text columns are the same in every tab */
#v-dict :is(#sec-definition, #sec-register, #sec-structure).entry-card { padding-left: 14px !important; padding-right: 14px !important; }
/* Grammar pattern rows: number column = coin column, pattern text starts in the text column */
#sec-structure .prow-d > button { grid-template-columns: var(--wp-coin) minmax(0, 1fr) auto auto !important; column-gap: var(--wp-gap) !important; padding-left: 0 !important; }
#v-dict #sec-register .reg-row { border-left-width: 2px !important; }

/* 10. section tabs (owner screenshot: "Definitions" cut at the screen edge, a dark band beside "Grammar", uneven tabs):
   three equal tabs on the page's own margins, no band at rest; a soft glass band only while the tabs are stuck at the top */
#v-dict .section-nav.jump-pills {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 0 0 12px !important; padding: 4px 0 12px !important; overflow: visible !important;
  background: transparent !important; box-shadow: none !important; border: 0 !important;
  transition: background-color .2s ease, box-shadow .2s ease;
}
#v-dict .section-nav.jump-pills .jump-pill {
  width: 100%; min-width: 0; justify-content: center; text-align: center; padding-left: 6px !important; padding-right: 6px !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.wp-tabs-stuck #v-dict .section-nav.jump-pills {
  margin-left: calc(-1 * var(--page-x, 8px)) !important; margin-right: calc(-1 * var(--page-x, 8px)) !important;
  padding: 8px var(--page-x, 8px) 10px !important;
  background: color-mix(in srgb, var(--vt-base, #0A1530) 86%, transparent) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(226, 190, 114, .28), 0 10px 22px rgba(0, 0, 0, .28) !important;
}

/* 11. header colour (owner: "do you think color is 10/10?" → "yes"): solid gold only for the search key and the active tab.
   UK / US = dark glass with a thin gold edge and gold speaker; IPA in soft champagne; the CEFR badge = outline in its level
   colour (A green · B blue · C1 purple · C2 rose) instead of a filled green block. */
html body #v-dict .word-head .accent-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)) !important;
  background-color: color-mix(in srgb, var(--vt-base, #0A1530) 55%, transparent) !important;
  border: 1px solid rgba(226, 190, 114, .55) !important; color: #F1ECE1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 8px rgba(0, 0, 0, .22) !important; text-shadow: none !important;
}
html body #v-dict .word-head .accent-btn svg { color: #E2BE72 !important; }
html body #v-dict .word-head .accent-btn:hover, html body #v-dict .word-head .accent-btn:focus-visible { border-color: #E2BE72 !important; background-color: color-mix(in srgb, var(--vt-base, #0A1530) 35%, rgba(226, 190, 114, .12)) !important; }
html body #v-dict .word-head .accent-btn.speaking, html body #v-dict .word-head .accent-btn[aria-pressed="true"] { border-color: #F2D58E !important; box-shadow: 0 0 0 3px rgba(226, 190, 114, .22) !important; }
html body #v-dict .word-head .word-meta .ipa { color: #E5D6AE !important; }
html body #v-dict .word-head .word-meta .lvl-badge {
  background: transparent !important; border: 1.5px solid currentColor !important; border-radius: 7px !important; box-shadow: none !important;
  padding: .1em .5em !important; font-weight: 800 !important;
}
html body #v-dict .word-head .word-meta .lvl-badge.lvl-essential { color: #6FD3A0 !important; }
html body #v-dict .word-head .word-meta .lvl-badge.lvl-academic { color: #86B6FF !important; }
html body #v-dict .word-head .word-meta .lvl-badge.lvl-c1 { color: #C7A2FF !important; }
html body #v-dict .word-head .word-meta .lvl-badge.lvl-c2 { color: #F39BBB !important; }
html body #v-dict .word-head .word-meta .lvl-badge.lvl-est { border-style: dashed !important; }

/* 12. meaning row (owner: "minimize lines … move the expand button a bit right and the sound button down"): the text gets the
   whole width; expand ⌃ at the right edge with the speaker stacked under it in one narrow column (was side by side + an
   unused 41 px gap: the text had 219 of 346 px) */
#v-dict #sec-definition .mean-row { grid-template-columns: minmax(0, 1fr) auto !important; column-gap: 10px !important; padding-right: 0 !important; }
#v-dict #sec-definition .mean-acts {
  flex-direction: column-reverse !important; align-items: center !important; justify-content: flex-start !important;
  gap: 4px !important; align-self: start !important; justify-self: end !important; margin-right: -2px;
}
#v-dict #sec-definition .mean-acts .say-pair { justify-content: center; }

/* 13. every sound button at the end of its text (owner: "all button sound is at the end text row"): inline after the last
   word in meanings, examples, CEFR rows and Grammar examples — no separate right column, so the text uses the whole width */
#v-dict .entry-card :is(.mean-def, .ex-row, .reg-row, .lvl-ex) .say-pair {
  display: inline-flex !important; position: static !important; inset: auto !important; width: auto !important;
  vertical-align: -.18em; margin: 0 0 0 .35em !important; transform: none !important;
}
#v-dict .entry-card :is(.mean-def, .ex-row, .reg-row, .lvl-ex) .say-pair .say { width: 1.6em !important; height: 1.6em !important; min-width: 0 !important; padding: 0 !important; }
/* examples */
#v-dict #sec-definition .ex-row { padding-right: 0 !important; }
#v-dict #sec-definition .ex-row > p { display: inline !important; }
/* meaning: the toggle alone at the right edge */
#v-dict #sec-definition .mean-acts { flex-direction: row !important; }
/* CEFR rows: level label above, sentence + speaker flowing together */
#v-dict #sec-register .reg-row { display: block !important; }
#v-dict #sec-register .reg-row .k { display: flex !important; margin-bottom: 2px; }
#v-dict #sec-register .reg-row .v { display: inline !important; }
#v-dict #sec-register .reg-row .tr-line:not([hidden]) { display: block; }
/* Grammar examples: level label in its own left column, sentence + speaker flowing in the text column */
#v-dict #sec-structure .lvl-ex { display: block !important; }
#v-dict #sec-structure .lvl-ex > .lvl { display: block !important; width: auto !important; text-align: left !important; margin: 0 0 2px !important; white-space: nowrap !important; }
#v-dict #sec-structure .lvl-ex > p { display: inline !important; }
#v-dict #sec-structure .lvl-ex > .tr-line:not([hidden]) { display: block; }
/* keep the last word and its speaker together (never a speaker alone on a new line), and the button does not make its line taller */
#v-dict .entry-card :is(.mean-def, .ex-row, .reg-row, .lvl-ex) { white-space: nowrap; }
#v-dict .entry-card :is(.mean-def, .ex-row, .reg-row, .lvl-ex) > :not(.say-pair) { white-space: normal; }
#v-dict .entry-card .mean-def > .sense-gram { white-space: nowrap; }
#v-dict .entry-card :is(.mean-def, .ex-row, .reg-row, .lvl-ex) .say-pair { vertical-align: middle; margin-top: -.4em !important; margin-bottom: -.4em !important; }
#v-dict .entry-card :is(.mean-def, .ex-row, .reg-row, .lvl-ex) .say-pair .say { width: 1.4em !important; height: 1.4em !important; }

/* 14. tight line spacing on every wrapped line (owner, Khmer: "every line break must have the smallest gap, like 'evades /
   3RD PERSON'"): one line height for all reading text in the three tabs */
.entry-card { --wp-lh: 1.3; }
#v-dict #sec-definition .mean-def, #v-dict #sec-definition .ex-row p, #v-dict #sec-definition .def-text,
#v-dict #sec-definition .ws-w, #v-dict #sec-definition .ws-seed, #v-dict #sec-definition .ws-text,
#v-dict #sec-register .reg-row .v, #v-dict #sec-structure .lvl-ex > p, #v-dict #sec-structure .st-ielts-sentence,
#v-dict #sec-structure .st-name, #v-dict #sec-structure .st-mean, #v-dict #sec-structure .ex-row p { line-height: var(--wp-lh) !important; }
#v-dict #sec-definition .mean-def > .mean-n { top: calc((var(--wp-lh) * var(--wp-read) - var(--wp-coin)) / 2) !important; }

/* 15. translation lines (owner, Khmer: minimal gap on every line break — Translate (KM) on): the Khmer line sits right under
   its English line, in the same text column, with the same tight spacing (a little taller for Khmer's stacked letters) */
#v-dict #sec-definition .mean-row { row-gap: 0 !important; }
#v-dict #sec-definition .mean-row > .tr-line { grid-column: 1 / -1 !important; padding-left: var(--wp-col) !important; }
#v-dict .entry-card .tr-line:not([hidden]) { margin-top: 1px !important; margin-bottom: 0 !important; padding-top: 0 !important; line-height: 1.4 !important; }
#v-dict .entry-card .tr-line .tr-text, #v-dict .entry-card .tr-line p { line-height: 1.4 !important; margin: 0 !important; }
/* the Khmer speaker stays with the last Khmer word; the ⌃ toggle spans both rows so a one-line meaning gets no extra gap */
#v-dict .entry-card .tr-line:not([hidden]) { white-space: nowrap; }
#v-dict .entry-card .tr-line > :not(button):not(.say-pair) { white-space: normal; }
#v-dict .entry-card .tr-line button { vertical-align: middle; margin-top: -.35em !important; margin-bottom: -.35em !important; }
#v-dict #sec-definition .mean-row > .mean-acts { grid-row: 1 / span 2 !important; grid-column: 2 !important; }
#v-dict #sec-definition .mean-row > .mean-def { grid-row: 1 !important; grid-column: 1 !important; }
#v-dict #sec-definition .mean-row > .tr-line { grid-row: 2 !important; grid-column: 1 !important; }
/* CEFR Khmer speaker = the same small gold speaker as everywhere else (was a blue icon) */
#v-dict #sec-register .say-tr-btn {
  display: inline-grid !important; place-items: center; width: 1.4em !important; height: 1.4em !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; margin: -.35em 0 -.35em .35em !important; vertical-align: middle; border: 0 !important; background: none !important; box-shadow: none !important;
  color: var(--reading-accent-line, #A07A2C) !important; opacity: .55;
}
#v-dict #sec-register .say-tr-btn:hover, #v-dict #sec-register .say-tr-btn:focus-visible { opacity: 1; }
#v-dict #sec-register .say-tr-btn svg { width: .8em !important; height: .8em !important; color: inherit !important; fill: currentColor; }
/* the speaker always fits after the last Khmer word: Khmer lines keep a small space at their end where the speaker hangs */
#v-dict .entry-card .tr-line:not([hidden]) { padding-right: 1.9em !important; }
#v-dict .entry-card .tr-line:not([hidden]) > :is(button, .say-pair) { margin-right: -1.9em !important; }

/* 16. ONE RIGHT COLUMN for every sound button (owner: "all button sound the end right hand side the same column expands"):
   the expand ⌃ and every speaker share one column at the card's right edge; a speaker sits on the row of its text's last
   line. Text never runs under the column (rows keep --wp-act free on the right). Replaces the inline placement of §13. */
.entry-card { --wp-act: 2.1rem; }
/* meaning row: one text column; ⌃ at the top of the right column */
#v-dict #sec-definition .mean-row { display: block !important; position: relative !important; padding-right: 0 !important; }
#v-dict #sec-definition .mean-row > .mean-acts {
  position: absolute !important; top: 0 !important; right: 0 !important; width: var(--wp-act) !important; margin: 0 !important;
  display: flex !important; justify-content: center !important;
}
#v-dict #sec-definition .mean-def { padding-right: var(--wp-act) !important; }
/* rows that end with a speaker keep the right column free */
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) { position: relative !important; padding-right: var(--wp-act) !important; }
#v-dict #sec-definition .mean-ex { margin-right: 0 !important; }
/* every speaker: in the right column, on the last line of its text */
#v-dict .entry-card :is(.mean-def, .ex-row, .reg-row, .lvl-ex) > .say-pair {
  position: absolute !important; right: 0 !important; bottom: 0 !important; left: auto !important; top: auto !important;
  width: var(--wp-act) !important; height: calc(var(--wp-lh) * var(--wp-read)) !important; margin: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) > .say-pair { right: 0 !important; }
/* translation lines: their speaker in the same right column */
#v-dict .entry-card .tr-line:not([hidden]) { position: relative !important; padding-right: var(--wp-act) !important; white-space: normal !important; }
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) > .tr-line:not([hidden]) { margin-right: calc(-1 * var(--wp-act)) !important; }
#v-dict #sec-definition .mean-row > .tr-line:not([hidden]) { padding-right: var(--wp-act) !important; }
#v-dict .entry-card .tr-line:not([hidden]) > :is(button, .say-pair) {
  position: absolute !important; right: 0 !important; bottom: 0 !important; width: var(--wp-act) !important; height: 1.4em !important;
  margin: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important;
}
#v-dict #sec-definition .ex-row { padding-right: var(--wp-act) !important; }
#v-dict .entry-card .tr-line:not([hidden]) > :is(button, .say-pair) { min-width: 0 !important; max-width: var(--wp-act) !important; padding: 0 !important; }
#v-dict #sec-register .tr-line > .say-tr-btn { margin: 0 !important; width: var(--wp-act) !important; height: 1.4em !important; }
/* one-line meanings: the ⌃ (top) and the meaning's speaker (under it) stack in the column instead of overlapping */
#v-dict #sec-definition .mean-def { min-height: calc(1.85rem + var(--wp-lh) * var(--wp-read)) !important; }
#v-dict #sec-definition .mean-row > .mean-acts .mean-toggle { width: 1.7rem !important; height: 1.7rem !important; min-width: 0 !important; }

/* 17. speaker column, final layout: rows are 2-column grids [text | speaker column] so each speaker sits on the last line of
   ITS text (English or Khmer); a one-line meaning (.one-line, set by DefinitionPanel.js) puts its speaker just left of the ⌃ */
#v-dict #sec-definition .mean-def { min-height: 0 !important; }
#v-dict #sec-definition .mean-def.one-line { padding-right: calc(2 * var(--wp-act)) !important; }
#v-dict #sec-definition .mean-def.one-line > .say-pair { right: var(--wp-act) !important; }
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) {
  display: grid !important; grid-template-columns: minmax(0, 1fr) var(--wp-act) !important; column-gap: 0 !important; row-gap: 0 !important;
  padding-right: 0 !important; align-items: end !important; white-space: normal !important;
}
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) > * { grid-column: 1; }
#v-dict #sec-definition .ex-row > p { grid-row: 1; display: block !important; }
#v-dict #sec-register .reg-row > .k { grid-row: 1; }
#v-dict #sec-register .reg-row > .v { grid-row: 2; display: block !important; }
#v-dict #sec-structure .lvl-ex > .lvl { grid-row: 1; }
#v-dict #sec-structure .lvl-ex > p { grid-row: 2; display: block !important; }
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) > .say-pair {
  position: static !important; grid-column: 2 !important; align-self: end !important; justify-self: center !important;
}
#v-dict #sec-definition .ex-row > .say-pair { grid-row: 1 !important; }
#v-dict :is(#sec-register .reg-row, #sec-structure .lvl-ex) > .say-pair { grid-row: 2 !important; }
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) > .tr-line:not([hidden]) { grid-column: 1 / -1 !important; margin-right: 0 !important; }
#v-dict .entry-card :is(.ex-row, .reg-row, .lvl-ex) > .tr-line { grid-row: auto; }
#v-dict #sec-definition .ex-row, #v-dict #sec-register .reg-row, #v-dict #sec-structure .lvl-ex { padding-right: 0 !important; }
#v-dict #sec-register .reg-row, #v-dict #sec-structure .lvl-ex, #v-dict #sec-definition .ex-row {
  display: grid !important; grid-template-columns: minmax(0, 1fr) var(--wp-act) !important; align-items: end !important;
}
#v-dict #sec-register .reg-row > .k, #v-dict #sec-structure .lvl-ex > .lvl { grid-column: 1 !important; grid-row: 1 !important; }
#v-dict #sec-register .reg-row > .v, #v-dict #sec-structure .lvl-ex > p { grid-column: 1 !important; grid-row: 2 !important; }

/* 18. Definitions evaluation fixes: one speaker colour (Khmer speakers were grey), single-outline family chips (the inner pill
   had its own pale-blue fill = a double outline) */
#v-dict .entry-card .tr-line > :is(button, .say-pair), #v-dict .entry-card .tr-line > button .say-ic { color: var(--reading-accent, #8A6420) !important; }
#v-dict .entry-card .tr-line > :is(button, .say-pair) { opacity: .85; }
#v-dict #sec-definition .ws-family .rel-chip > span { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
#v-dict #sec-definition .ws-family .rel-chip { padding: 6px 14px !important; border-radius: 999px !important; }

/* 19. "Sentences by level" card (owner: "evaluate cefr levels 10/10? … rename"): one colour per level for the side line AND the
   label (they were shifted by one: B2 line blue / label green, C1 purple / blue, C2 red / purple), the same family as the
   header badge (B blue · C1 purple · C2 rose); the "B1 → B2 → C1 → C2" line is gone (the labels say it); tighter rows */
#v-dict #sec-register .reg-row.b1 { --lv: #3B7BC4; }
#v-dict #sec-register .reg-row.b2 { --lv: #1F4E8C; }
#v-dict #sec-register .reg-row.c1 { --lv: #7A4FB0; }
#v-dict #sec-register .reg-row.c2 { --lv: #A8344F; }
#v-dict #sec-register .reg-row { border-left-color: var(--lv) !important; padding-top: 6px !important; padding-bottom: 6px !important; margin-bottom: 4px !important; }
#v-dict #sec-register .reg-row .k { color: var(--lv) !important; font-weight: 800 !important; letter-spacing: .06em; }
#v-dict #sec-register #regNote { display: none !important; }

/* 20. level badges ON the line (owner: "I feel B1 B2 C1 C2 stand alone"): like the number coins in Definitions — each level is
   a small outlined badge centred on its coloured line, level with the first line of its sentence; the sentence starts beside it */
#v-dict #sec-register .reg-row { --chip-w: 1.75rem; --chip-h: 1.3rem; overflow: visible !important; }
#v-dict #sec-register .reg-row > .k {
  position: absolute !important; grid-row: auto !important; left: calc(-1px - var(--chip-w) / 2) !important;
  top: calc(6px + (var(--wp-lh) * var(--wp-read) - var(--chip-h)) / 2) !important;
  width: var(--chip-w) !important; height: var(--chip-h) !important; margin: 0 !important; padding: 0 !important;
  display: grid !important; place-items: center !important; border-radius: 999px !important;
  border: 1.5px solid var(--lv) !important; background: var(--reading-bg, #FBF7EE) !important; color: var(--lv) !important;
  font: 800 .66rem/1 var(--sans) !important; letter-spacing: .02em !important; z-index: 1;
}
#v-dict #sec-register .reg-row > .v { grid-row: 1 !important; }
#v-dict #sec-register .reg-row > .say-pair { grid-row: 1 !important; }
#v-dict #sec-register .reg-row > .tr-line { grid-row: 2 !important; }
#v-dict #sec-register .reg-row { margin-bottom: 10px !important; }
#v-dict #sec-register .reg-row > .k { grid-column: auto !important; grid-row: auto !important; }
#v-dict #sec-register .reg-row { position: relative !important; }
#v-dict #sec-register .reg-row > .k { top: calc(9.4px + (var(--wp-lh) * var(--wp-read) - var(--chip-h)) / 2) !important; }

/* 21. "Related words" in Definitions (owner chose option 1): Synonyms / Antonyms / Collocations … after Word family, in the
   word-story style — gold edge, small-caps title; each group a quiet fold row; chips in the same gold as Word family */
#v-dict #sec-definition .ws-related .rel-groups { margin: 2px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#v-dict #sec-definition .ws-related .rel-group { border: 0 !important; border-top: 1px solid rgba(160, 122, 44, .2) !important; background: none !important; margin: 0 !important; padding: 0 !important; }
#v-dict #sec-definition .ws-related .rel-group:first-child { border-top: 0 !important; }
#v-dict #sec-definition .ws-related .rel-head {
  width: 100%; display: flex !important; align-items: center !important; gap: 8px; padding: 9px 0 !important; min-height: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  font: 650 var(--wp-read)/1.3 var(--sans) !important; color: var(--reading-head, #1E2C4A) !important; text-align: left;
}
#v-dict #sec-definition .ws-related .rel-head svg { margin-left: auto; width: 1rem; height: 1rem; color: var(--reading-accent, #8A6420); transition: transform .2s ease; }
#v-dict #sec-definition .ws-related .rel-head[aria-expanded="true"] svg { transform: rotate(180deg); }
#v-dict #sec-definition .ws-related .rel-count {
  display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px;
  font: 700 .72rem/1 var(--sans) !important; color: var(--reading-accent, #6E4E14) !important; border: 1px solid rgba(160, 122, 44, .5) !important; background: none !important;
}
#v-dict #sec-definition .ws-related .rel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px !important; padding: 0 !important; list-style: none; }
#v-dict #sec-definition .ws-related .rel-chip {
  background: rgba(160, 122, 44, .1) !important; border: 1px solid rgba(160, 122, 44, .35) !important; color: var(--reading-text, #2A2418) !important;
  border-radius: 999px !important; padding: 5px 13px !important; font-size: .875rem !important; box-shadow: none !important;
}
#v-dict #sec-definition .ws-related .rel-chip > span { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
#v-dict #sec-definition .ws-related .rel-list { margin: 0 0 10px !important; padding: 0 !important; }
#v-dict #sec-register .reg-empty { margin: 4px 0 6px; padding-left: var(--wp-col); font-size: var(--wp-read); font-style: italic; color: var(--reading-sub, #6B6455); line-height: var(--wp-lh); }

/* 22. Translate switch readable in both states (owner: "when off, users may find it difficult to see it is a switch"):
   off = light knob on the left of a soft track with a gold rim; on = gold track, white knob on the right; a little larger */
html body #v-dict .word-head .tr-switch .tr-knob {
  width: 42px !important; height: 24px !important; border-radius: 999px !important; position: relative !important;
  background: rgba(255, 255, 255, .12) !important; border: 1.5px solid rgba(226, 190, 114, .7) !important;
  transition: background .2s ease, border-color .2s ease;
}
html body #v-dict .word-head .tr-switch .tr-knob::after {
  content: "" !important; position: absolute !important; top: 2px !important; left: 2px !important; width: 17px !important; height: 17px !important;
  border-radius: 50% !important; background: #E9E3D3 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .45) !important;
  transform: translateX(0) !important; transition: transform .2s ease, background .2s ease;
}
html body #v-dict .word-head .tr-switch[aria-checked="true"] .tr-knob { background: linear-gradient(180deg, #F2D58E, #C9A24D) !important; border-color: #F2D58E !important; }
html body #v-dict .word-head .tr-switch[aria-checked="true"] .tr-knob::after { background: #FFFFFF !important; transform: translateX(18px) !important; }
html body #v-dict .word-head .tr-switch .tr-switch-l { color: #F1ECE1 !important; }
html body #v-dict .word-head .tr-switch[aria-checked="true"] .tr-switch-l { color: #F2D58E !important; }

/* 23. Word patterns card (owner: "grammar for is double time?"): title "Word patterns" (the tab says Grammar), bottom link
   "All verb lessons" (was "Grammar for … as a verb"); the empty band between the title and the first group is removed */
#v-dict #sec-structure #stFull { margin-top: 0 !important; padding-top: 0 !important; }
#v-dict #sec-structure .st-pos, #v-dict #sec-structure .st-pos > .st-group:first-child { margin-top: 0 !important; padding-top: 0 !important; }
#v-dict #sec-structure .st-pos > .st-group:first-child .st-ghead { margin-top: 4px !important; }
/* owner 2026-11-10 "hide": the "All verb lessons" link at the bottom of Word patterns ("Learn more" per group stays) */
#v-dict #sec-structure .st-all { display: none !important; }

/* 24. Word patterns = the same rules as Meanings and Levels (owner: "make it the same rule definition and level, make it a
   unique dictionary"): numbers are gold coins (1 2 3, were italic "01 02 03") centred on a gold line running down the group;
   "Learn more" in the gold accent (was the only blue text); level pills = the outline style of the level badges */
#v-dict #sec-structure .st-rows { position: relative; }
#v-dict #sec-structure .st-rows::before {
  content: ""; position: absolute; left: calc(var(--wp-coin) / 2 - 1px); top: .9rem; bottom: .9rem; width: 2px;
  background: rgba(160, 122, 44, .45); pointer-events: none;
}
#v-dict #sec-structure .st-n {
  position: relative; z-index: 1; display: grid !important; place-items: center !important;
  width: var(--wp-coin) !important; height: var(--wp-coin) !important; min-width: var(--wp-coin) !important; border-radius: 50% !important;
  font: 700 var(--wp-small)/1 var(--sans) !important; font-style: normal !important; letter-spacing: 0 !important;
  color: #2A1C05 !important; background: radial-gradient(circle at 35% 30%, #FFF5D6 0%, #E7C370 50%, #A97A2A 100%) !important;
  border: 1px solid #E9CF8E !important; box-shadow: 0 1px 3px rgba(80, 55, 10, .22) !important; align-self: start; margin-top: .1rem;
}
#v-dict #sec-structure .st-learn { color: var(--reading-accent, #8A6420) !important; font-weight: 700 !important; }
#v-dict #sec-structure .st-learn svg { color: var(--reading-accent, #8A6420) !important; }
#v-dict #sec-structure .prow-d > button .lvl-badge {
  background: transparent !important; border: 1.5px solid currentColor !important; border-radius: 7px !important; box-shadow: none !important;
  padding: .12em .5em !important; font: 800 .625rem/1.2 var(--sans) !important; letter-spacing: .06em !important;
}
#v-dict #sec-structure .prow-d > button .lvl-badge.lvl-essential { color: #256A4C !important; }
#v-dict #sec-structure .prow-d > button .lvl-badge.lvl-academic { color: #1F4E8C !important; }
#v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c1 { color: #7A4FB0 !important; }
#v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c2 { color: #A8344F !important; }
#v-dict #sec-structure .st-pos > .st-group:first-child .st-ghead { margin-top: 0 !important; padding-top: 0 !important; }
#v-dict #sec-structure .st-ghead .st-learn { margin-top: -10px !important; margin-bottom: -10px !important; }
#v-dict #sec-structure .ecard-head { margin-bottom: 6px !important; }
/* an opened pattern: its meaning, Khmer line, Learner / C1 / C2 boxes and lesson link in the text column (the gold line stays clear) */
#v-dict #sec-structure .prow-d > .pb { padding-left: calc(var(--wp-col) - 1px) !important; }
#v-dict #sec-structure .prow-d > .pb > * { margin-left: 0 !important; }
#v-dict #sec-structure .st-gram a, #v-dict #sec-structure .st-gram a svg { color: var(--reading-accent, #8A6420) !important; font-weight: 700 !important; }

/* 25. an opened pattern reads like Meanings + Levels (owner: "definition bold word; Learner → A1/A2, C1 C2 keep"):
   the pattern's meaning = definition style (bold sans, no serif / bar); its examples = level badges (A2 · C1 · C2) on coloured
   segments of the same gold line that joins the pattern coins — no boxes; sentence in the text column, speaker in the column */
#v-dict #sec-structure .pb > .st-mean {
  font: 650 var(--wp-read)/var(--wp-lh) var(--sans) !important; color: var(--reading-head, #1E2C4A) !important; letter-spacing: 0 !important;
  border: 0 !important; padding: 2px 0 6px !important; background: none !important;
}
#v-dict #sec-structure .pb > .st-mean::before, #v-dict #sec-structure .pb > .st-mean::after { display: none !important; }
#v-dict #sec-structure .lvl-list { margin: 0 !important; padding: 0 !important; list-style: none; }
#v-dict #sec-structure .lvl-ex.lvl-learner { --lv: #256A4C; }
#v-dict #sec-structure .lvl-ex.lvl-b1, #v-dict #sec-structure .lvl-ex.lvl-b2 { --lv: #1F4E8C; }
#v-dict #sec-structure .lvl-ex.lvl-c1 { --lv: #7A4FB0; }
#v-dict #sec-structure .lvl-ex.lvl-c2 { --lv: #A8344F; }
#v-dict #sec-structure .lvl-ex {
  --chip-w: 1.75rem; --chip-h: 1.3rem; position: relative !important; overflow: visible !important;
  background: var(--reading-bg, #FBF7EE) !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
  border-left: 2px solid var(--lv) !important;
  margin: 0 0 6px calc(var(--wp-rail) - var(--wp-col) + 1px) !important;
  padding: 6px 0 6px calc(var(--wp-col) - var(--wp-rail) - 2px) !important;
}
#v-dict #sec-structure .lvl-ex > .lvl {
  position: absolute !important; grid-column: auto !important; grid-row: auto !important;
  left: calc(-1px - var(--chip-w) / 2) !important; top: calc(9.4px + (var(--wp-lh) * var(--wp-read) - var(--chip-h)) / 2) !important;
  width: var(--chip-w) !important; height: var(--chip-h) !important; margin: 0 !important; padding: 0 !important;
  display: grid !important; place-items: center !important; border-radius: 999px !important;
  border: 1.5px solid var(--lv) !important; background: var(--reading-bg, #FBF7EE) !important; color: var(--lv) !important;
  font: 800 .66rem/1 var(--sans) !important; letter-spacing: .02em !important; z-index: 1; white-space: nowrap !important;
}
#v-dict #sec-structure .lvl-ex > p { grid-row: 1 !important; }
#v-dict #sec-structure .lvl-ex > .say-pair { grid-row: 1 !important; }
#v-dict #sec-structure .lvl-ex > .tr-line { grid-row: 2 !important; }
#v-dict #sec-structure .lvl-ex > .lvl { top: calc(8px + (var(--wp-lh) * var(--wp-read) - var(--chip-h)) / 2) !important; }
/* owner 2026-11-10 "eras gold line": no line joining the pattern coins 1 2 3 (the coloured A2 / C1 / C2 lines of an open pattern stay) */
#v-dict #sec-structure .st-rows::before { display: none !important; }
/* owner 2026-11-10 "hide all this": the "Grammar: …" lesson link inside every opened Word pattern */
#v-dict #sec-structure .st-gram { display: none !important; }
/* reading-light control on Levels and Word patterns (owner "add this with level and grammar") — same spot as on Meanings */
#v-dict #sec-structure .ecard-head > .ecard-actions { margin-right: -4px; }


/* 26. reading tones (owner: "test decrease and increase bright light … best luxury"): White · Book · Sepia · Night set by
   store/reading-light.js (html[data-reading]); text, gold and lines follow --reading-*; Night = the app's navy paper with ivory
   text, bright gold and light level colours (the deep blue / purple of the light tones vanish on navy) */
#v-dict .entry-card :is(p, .v, .def-text, .mean-def) b, #v-dict .entry-card :is(p, .v) strong { color: var(--reading-head) !important; }
#v-dict .entry-card .tr-line, #v-dict .entry-card .tr-line .tr-text { color: var(--reading-sub) !important; }
html[data-reading="dark"] #v-dict #sec-register .reg-row.b1 { --lv: #86B6FF; }
html[data-reading="dark"] #v-dict #sec-register .reg-row.b2 { --lv: #6FA0F0; }
html[data-reading="dark"] #v-dict #sec-register .reg-row.c1, html[data-reading="dark"] #v-dict #sec-structure .lvl-ex.lvl-c1 { --lv: #C7A2FF; }
html[data-reading="dark"] #v-dict #sec-register .reg-row.c2, html[data-reading="dark"] #v-dict #sec-structure .lvl-ex.lvl-c2 { --lv: #F39BBB; }
html[data-reading="dark"] #v-dict #sec-structure .lvl-ex.lvl-learner { --lv: #6FD3A0; }
html[data-reading="dark"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-essential { color: #6FD3A0 !important; }
html[data-reading="dark"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-academic { color: #86B6FF !important; }
html[data-reading="dark"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c1 { color: #C7A2FF !important; }
html[data-reading="dark"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c2 { color: #F39BBB !important; }
html[data-reading="dark"] #v-dict .entry-card .mean-toggle {
  background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(226, 190, 114, .45) !important; color: #E2BE72 !important; box-shadow: none !important;
}
html[data-reading="dark"] #v-dict .entry-card .say .say-ic, html[data-reading="dark"] #v-dict .entry-card .say,
html[data-reading="dark"] #v-dict .entry-card .tr-line > :is(button, .say-pair) { color: #E2BE72 !important; }
html[data-reading="dark"] #v-dict .entry-card :is(.ws-tile, .rel-chip) { background: rgba(255, 255, 255, .06) !important; border-color: rgba(226, 190, 114, .35) !important; color: var(--reading-text) !important; }
html[data-reading="dark"] #v-dict .entry-card :is(.ws-tile b, .ws-tile span) { color: var(--reading-text) !important; }
html[data-reading="dark"] #v-dict .entry-card .ws-tile span { color: var(--reading-sub) !important; }
html[data-reading="dark"] #v-dict #sec-structure .st-formula, html[data-reading="dark"] #v-dict #sec-structure .st-name { color: var(--reading-head) !important; }
html[data-reading="dark"] #v-dict #sec-structure .st-type { color: var(--reading-accent) !important; }
html[data-reading="dark"] #v-dict #sec-structure .prow-d, html[data-reading="dark"] #v-dict #sec-structure .prow-d > button { background: transparent !important; }
html[data-reading="sepia"] #v-dict .entry-card .mean-toggle { background: rgba(255, 255, 255, .35) !important; }
/* every reading sentence follows the tone (older rules fixed them to dark ink, invisible on Night) */
html body #v-dict .entry-card :is(.reg-row > .v, .lvl-ex > p, .ex-row > p, .pb > .st-mean, .mean-def, .ws-w, .ws-text, .ws-seed) {
  color: var(--reading-text, #262B3B) !important; -webkit-text-fill-color: currentColor !important;
}
html body #v-dict .entry-card :is(.mean-def, .pb > .st-mean) { color: var(--reading-head, #1A2240) !important; }
html body #v-dict .entry-card :is(.reg-row > .v, .lvl-ex > p, .ex-row > p) b { color: var(--reading-head, #1A2240) !important; }
html body #v-dict #sec-structure :is(.st-ghead, .st-ghead h3) { color: var(--reading-accent, #6B511C) !important; }
html body #v-dict .entry-card .ecard-head h2 .ecard-toggle > span:first-child { color: var(--reading-head, #324360) !important; }
/* contrast pass for every tone (measured): small labels need 4.5:1 on their paper */
#v-dict #sec-register .reg-row.b1 { --lv: #2C66A8; }
html body #v-dict .entry-card :is(.mean-count, .rel-count, .st-plus) { color: var(--reading-accent, #6E4E14) !important; border-color: var(--reading-accent, #6E4E14) !important; }
html body #v-dict #sec-definition .ws-h, html body #v-dict #sec-definition .ws-h span { color: var(--reading-head, #1A2240) !important; }
html body #v-dict #sec-definition :is(.ws-gl, .ws-src, .ws-seed-k) { color: var(--reading-sub, #57596A) !important; }
html[data-reading="sepia"] #v-dict #sec-register .reg-row.b1 { --lv: #245A94; }
html[data-reading="sepia"] #v-dict #sec-register .reg-row.b2 { --lv: #1A3F70; }
html[data-reading="sepia"] #v-dict :is(#sec-register .reg-row.c1, #sec-structure .lvl-ex.lvl-c1) { --lv: #5A3689; }
html[data-reading="sepia"] #v-dict :is(#sec-register .reg-row.c2, #sec-structure .lvl-ex.lvl-c2) { --lv: #852538; }
html[data-reading="sepia"] #v-dict #sec-structure .lvl-ex.lvl-learner { --lv: #1F5E43; }
html[data-reading="sepia"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-essential { color: #1F5E43 !important; }
html[data-reading="sepia"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-academic { color: #1A3F70 !important; }
html[data-reading="sepia"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c1 { color: #5A3689 !important; }
html[data-reading="sepia"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c2 { color: #852538 !important; }
html body #v-dict #sec-definition .ws-tile span { color: var(--reading-sub, #57596A) !important; }

/* 27. e-reader tones (owner, his Meebook: "adjust day and night"): Day = e-ink paper; Night = warm amber night light (paper
   + dark brown ink, dimmer to the left); Dark (15–29) keeps the navy rules above. Level colours deep enough for amber paper. */
html[data-reading="night"] #v-dict #sec-register .reg-row.b1 { --lv: #1B4577; }
html[data-reading="night"] #v-dict #sec-register .reg-row.b2 { --lv: #142F57; }
html[data-reading="night"] #v-dict :is(#sec-register .reg-row.c1, #sec-structure .lvl-ex.lvl-c1) { --lv: #45276C; }
html[data-reading="night"] #v-dict :is(#sec-register .reg-row.c2, #sec-structure .lvl-ex.lvl-c2) { --lv: #6A1B2C; }
html[data-reading="night"] #v-dict #sec-structure .lvl-ex.lvl-learner { --lv: #174631; }
html[data-reading="night"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-essential { color: #174631 !important; }
html[data-reading="night"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-academic { color: #142F57 !important; }
html[data-reading="night"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c1 { color: #45276C !important; }
html[data-reading="night"] #v-dict #sec-structure .prow-d > button .lvl-badge.lvl-c2 { color: #6A1B2C !important; }
html:is([data-reading="night"], [data-reading="day"]) #v-dict .entry-card .mean-toggle { background: rgba(255, 255, 255, .3) !important; border-color: rgba(92, 62, 18, .35) !important; }
html[data-reading="night"] #v-dict .entry-card :is(.say, .say .say-ic, .tr-line > button, .tr-line > .say-pair) { color: #4A3006 !important; }
html[data-reading="night"] #v-dict .entry-card :is(.ws-tile, .rel-chip) { background: rgba(255, 255, 255, .22) !important; border-color: rgba(92, 62, 18, .35) !important; }
html[data-reading="day"] #v-dict .entry-card :is(.ws-tile, .rel-chip) { background: rgba(255, 255, 255, .45) !important; border-color: rgba(110, 84, 24, .3) !important; }
html[data-reading="night"] #v-dict #sec-structure .st-type { color: var(--reading-sub) !important; }

/* 28. Advanced Structures = the same parts as the rest of the word page (owner: "make it unique to our rule 10/10"): a group head
   like "Verb Phrases" (gold small caps + count) with a quiet "IELTS 8–9" note and the card chevron; no boxes, no trophy, no serif;
   rows = gold coin | outlined level badge + structure name, sentence at reading size, quiet formula line | speaker column. */
#v-dict #sec-structure .st-adv { margin: 0 0 14px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
#v-dict #sec-structure .st-adv-head {
  width: 100%; display: flex !important; align-items: center; gap: 8px; min-height: 40px; padding: 0 0 6px !important; margin: 0 0 6px !important;
  background: none !important; border: 0 !important; border-bottom: 1px solid var(--reading-border, rgba(176, 138, 58, .5)) !important; border-radius: 0 !important;
  text-align: left; cursor: pointer; color: inherit;
}
#v-dict #sec-structure .st-adv-head h3 { flex: 1; margin: 0 !important; }
#v-dict #sec-structure .st-adv-band { font: 700 var(--wp-small)/1 var(--sans); letter-spacing: .04em; color: var(--reading-sub, #57596A); white-space: nowrap; }
#v-dict #sec-structure .st-adv-chev { width: 16px; height: 16px; color: var(--reading-accent, #8A6420); transition: transform .2s; }
#v-dict #sec-structure .st-adv-head[aria-expanded="true"] .st-adv-chev { transform: rotate(180deg); }
#v-dict #sec-structure .st-adv-list { list-style: none; margin: 0 !important; padding: 0 !important; }
#v-dict #sec-structure .st-adv-row {
  --lv: #7A4FB0; display: grid !important; grid-template-columns: var(--wp-col) minmax(0, 1fr) var(--wp-act); column-gap: 0;
  padding: 8px 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
#v-dict #sec-structure .st-adv-row + .st-adv-row { border-top: 1px solid rgba(160, 122, 44, .22) !important; }
#v-dict #sec-structure .st-adv-row.lvl-c2 { --lv: #A8344F; }
#v-dict #sec-structure .st-adv-n {
  grid-column: 1; grid-row: 1; display: grid; place-items: center; width: var(--wp-coin); height: var(--wp-coin); border-radius: 50%;
  font: 700 var(--wp-small)/1 var(--sans); color: #2A1C05; background: radial-gradient(circle at 35% 30%, #FFF5D6 0%, #E7C370 50%, #A97A2A 100%);
  border: 1px solid #E9CF8E; box-shadow: 0 1px 3px rgba(80, 55, 10, .22); align-self: center;
}
#v-dict #sec-structure .st-adv-name { grid-column: 2 / 4; grid-row: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
#v-dict #sec-structure .st-adv-lvl {
  flex: none; display: grid; place-items: center; min-width: 1.75rem; height: 1.3rem; padding: 0 .3em; border-radius: 999px;
  border: 1.5px solid var(--lv); color: var(--lv); font: 800 .66rem/1 var(--sans); letter-spacing: .02em;
}
#v-dict #sec-structure .st-adv-title { font: 700 var(--wp-small)/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--reading-accent, #8A6420); }
#v-dict #sec-structure .st-adv-ex {
  grid-column: 2; grid-row: 2; margin: 4px 0 0 !important; padding: 0 !important; background: none !important; border: 0 !important;
  font: 400 var(--wp-read)/var(--wp-lh) var(--sans) !important; color: var(--reading-text, #262B3B) !important; letter-spacing: 0 !important;
}
#v-dict #sec-structure .st-adv-ex b, #v-dict #sec-structure .st-adv-ex strong { font-weight: 700; color: var(--reading-head, #1A2240); }
#v-dict #sec-structure .st-adv-row > .say-pair {
  grid-column: 3 !important; grid-row: 2 !important; position: static !important; align-self: end; justify-self: end;
  margin: 0 !important; display: flex !important; flex-direction: column; align-items: center;
}
#v-dict #sec-structure .st-adv-formula {
  grid-column: 2; grid-row: 3; margin: 3px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  font: 500 var(--wp-small)/1.35 var(--sans) !important; font-style: normal !important; color: var(--reading-sub, #57596A) !important;
}
#v-dict #sec-structure .st-adv-formula .st-plus { font-weight: 800; }
#v-dict #sec-structure .st-adv-formula .st-ielts-src { color: var(--reading-sub, #57596A) !important; opacity: .85; font-size: inherit !important; white-space: normal !important; }
html[data-reading="dark"] #v-dict #sec-structure .st-adv-row { --lv: #C7A2FF; }
html[data-reading="dark"] #v-dict #sec-structure .st-adv-row.lvl-c2 { --lv: #F39BBB; }
html[data-reading="night"] #v-dict #sec-structure .st-adv-row { --lv: #45276C; }
html[data-reading="night"] #v-dict #sec-structure .st-adv-row.lvl-c2 { --lv: #6A1B2C; }
html[data-reading="sepia"] #v-dict #sec-structure .st-adv-row { --lv: #5A3689; }
html[data-reading="sepia"] #v-dict #sec-structure .st-adv-row.lvl-c2 { --lv: #852538; }

/* 29. Advanced Structures = the Levels rule (owner: "eras 1 2 3, can do the same rule"): no number coins; each row is a segment of
   its level colour on the rail (C1 purple, C2 rose) with the outlined badge sitting on the line, level with the structure name */
#v-dict #sec-structure .st-adv-n { display: none !important; }
#v-dict #sec-structure .st-adv-row { position: relative !important; padding: 6px 0 !important; margin: 0 0 6px !important; }
#v-dict #sec-structure .st-adv-row + .st-adv-row { border-top: 0 !important; }
#v-dict #sec-structure .st-adv-row::before {
  content: ""; position: absolute; left: calc(var(--wp-coin) / 2 - 1px); top: 0; bottom: 0; width: 2px; background: var(--lv); pointer-events: none;
}
#v-dict #sec-structure .st-adv-name { display: contents !important; }
#v-dict #sec-structure .st-adv-lvl {
  grid-column: 1; grid-row: 1; justify-self: start; align-self: center; position: relative; z-index: 1;
  width: 1.75rem; min-width: 0; padding: 0; margin-left: calc(var(--wp-coin) / 2 - .875rem);
  background: var(--reading-bg, #FBF7EE);
}
#v-dict #sec-structure .st-adv-title { grid-column: 2 / 4; grid-row: 1; align-self: center; }

/* 30. structure names in bold dark ink, normal case (owner: "bold this word or change to black with bold") — like the meaning
   lines in Definitions; the gold small caps stay only for group heads */
#v-dict #sec-structure .st-adv-title {
  font: 700 var(--wp-read)/var(--wp-lh) var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--reading-head, #1A2240) !important;
}

/* 31. group heads (ADVANCED STRUCTURES, ADJECTIVE PHRASES, VERB PATTERNS …) in bold dark ink instead of gold (owner: "consider other
   colour with bold words"); count chip the same ink; gold stays for "Learn more", formulas and lines */
html body #v-dict #sec-structure :is(.st-ghead, .st-ghead h3) { color: var(--reading-head, #1A2240) !important; }
html body #v-dict #sec-structure .st-ghead h3 { font-weight: 800 !important; }
html body #v-dict #sec-structure .st-ghead .rel-count { color: var(--reading-head, #1A2240) !important; border-color: var(--reading-head, #1A2240) !important; font-weight: 800 !important; }

/* 32. Related words lists (Idioms, Phrasal verbs …) = the reading paper, no coloured cards (owner: "change to our unique background"):
   phrase in bold dark ink, example at reading size with the speaker in the right column, a fine gold line between items */
html body #v-dict .entry-card .rel-list { display: block !important; gap: 0 !important; }
html body #v-dict .entry-card .rel-list > li {
  display: block !important; padding: 8px 0 !important; margin: 0 !important; border-radius: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
}
html body #v-dict .entry-card .rel-list > li + li { border-top: 1px solid rgba(160, 122, 44, .22) !important; }
html body #v-dict .entry-card .rel-list .rel-phrase {
  display: block; font: 700 var(--wp-read)/var(--wp-lh) var(--sans) !important; color: var(--reading-head, #1A2240) !important;
}
html body #v-dict .entry-card .rel-list li > .rel-ex {
  display: grid !important; grid-template-columns: minmax(0, 1fr) var(--wp-act); align-items: end;
  margin: 3px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important;
  font: 400 var(--wp-read)/var(--wp-lh) var(--sans) !important; color: var(--reading-text, #262B3B) !important;
}
html body #v-dict .entry-card .rel-list li > .rel-ex > span[id] { grid-column: 1; }
html body #v-dict .entry-card .rel-list li > .rel-ex > .say-pair {
  grid-column: 2; grid-row: 1; position: static !important; justify-self: end; margin: 0 !important;
}
html body #v-dict .entry-card .rel-list li > .rel-ex > .tr-line:not([hidden]) { grid-column: 1 / -1; display: block; }
html body #v-dict .entry-card .rel-list li > .rel-ex b { font-weight: 700; color: var(--reading-head, #1A2240); }
html body #v-dict .entry-card .rel-list li > .rel-ex > span[id] { grid-row: 1; align-self: end; }
html body #v-dict .entry-card .rel-list li > .rel-ex > .say-pair { align-self: end !important; height: auto !important; min-height: 0 !important; line-height: 1; margin-bottom: -.15em !important; }
html body #v-dict .entry-card .rel-list li > .rel-ex .say { width: 1.6em !important; height: 1.6em !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; }

/* 33. audit fixes (owner: "audit all in dictionary have change to this rule? 10/10")
   a) every sentence one size: Word-pattern example sentences were 17.1 px / 450 → reading size 400; pattern meanings 700 like
      the meaning lines; the full origin text at reading size */
html body #v-dict #sec-structure .lvl-ex > p { font: 400 var(--wp-read)/var(--wp-lh) var(--sans) !important; letter-spacing: 0 !important; }
html body #v-dict #sec-structure .pb > .st-mean { font-weight: 700 !important; }
html body #v-dict #sec-definition .ws-more p { font-size: var(--wp-read) !important; line-height: var(--wp-lh) !important; }
/* b) one speaker column: the opened pattern had 6 px extra right padding; Advanced and Related-words speakers were 44 px buttons */
html body #v-dict #sec-structure .pb { padding-right: 0 !important; }
html body #v-dict .entry-card :is(.st-adv-row, .rel-list li > .rel-ex) > .say-pair {
  width: var(--wp-act) !important; display: flex !important; justify-content: center !important; align-items: center !important;
}
html body #v-dict .entry-card :is(.st-adv-row, .rel-list li > .rel-ex) > .say-pair .say {
  width: 1.4em !important; height: 1.4em !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important;
}
/* c) part-of-speech switch (Adjective · Verb) = outline pills, the chosen one in the gold of the page tabs (was a blue fill) */
html body #v-dict #sec-structure .st-tabs [role=tab] {
  min-height: 36px !important; padding: 0 14px !important; background: transparent !important; box-shadow: none !important;
  border: 1px solid var(--reading-border, rgba(176, 138, 58, .5)) !important; color: var(--reading-head, #1A2240) !important;
  font: 700 var(--wp-small)/1.2 var(--sans) !important; letter-spacing: .02em !important;
}
html body #v-dict #sec-structure .st-tabs [role=tab][aria-selected="true"] {
  background: linear-gradient(180deg, #F3D98E 0%, #D9B25A 100%) !important; border-color: #C9A24D !important; color: #2A1C05 !important;
}
html body #v-dict #sec-structure .st-tabs [role=tab] .rel-count { color: inherit !important; border-color: currentColor !important; background: transparent !important; }
/* d) Related words block had 12 px right padding, so its speakers sat left of the column */
html body #v-dict #sec-definition .ws-block.ws-related { padding-right: 0 !important; }
/* e) header: a word with two parts of speech + grammar labels ("verb [I/T] … · noun [C] …") stays on the line after "A1 ·" and wraps
   inside; with two labels only the short codes show ([I/T], [C]; full names stay in the tooltip) so it fits one line */
html body #v-dict .word-meta > .pos { flex: 1 1 0 !important; min-width: 0 !important; flex-wrap: wrap !important; row-gap: 4px !important; }
html body #v-dict .word-meta > .pos:has(.gram-badge ~ .gram-badge) .gram-full { display: none !important; }

/* 34. Word-pattern examples = Ex1 · Ex2 · Ex3 (owner: "we fake user" — they are not tested levels): written "Ex1", one colour for
   all three (the gold accent of the reading tone) so no level is implied */
html body #v-dict #sec-structure .lvl-ex { --lv: var(--reading-accent, #8A6420) !important; }
html body #v-dict #sec-structure .lvl-ex > .lvl { text-transform: none !important; letter-spacing: 0 !important; }
/* 35. Levels card = Ex1 · Ex2 · Ex3 as well (owner): one gold colour for every badge and line, written "Ex1" */
html body #v-dict #sec-register .reg-row { --lv: var(--reading-accent, #8A6420) !important; }
html body #v-dict #sec-register .reg-row > .k { text-transform: none !important; letter-spacing: 0 !important; }
html body #v-dict .word-meta > .pos { flex: 0 1 auto !important; }   /* shrink + wrap when needed, never stretch ("+3" stays beside the part of speech) */

/* §36 2026-11-11 (owner: "use this system [≡ justify] for all English in Definitions, Examples, Grammar; not the 65 languages; keep the same")
   English sentences are justified like a printed dictionary; the last line of each stays left; translation lines keep their
   normal alignment. hyphens: auto keeps the gaps small on phones (the page is lang="en"). */
#v-dict :is(#sec-definition, #sec-register, #sec-structure) :is(
  p.mean-def, p.def-text, li.ex-row > p, .rel-ex.ex-line, p.ws-src, details.ws-more p,
  .reg-row p.v,
  li.lvl-ex > p, p.st-adv-ex, p.st-mean
) { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; text-align-last: start; }
#v-dict :is(#sec-definition, #sec-register, #sec-structure) :is(.tr-line, .tr-text, .tr-box) { text-align: start; hyphens: manual; -webkit-hyphens: manual; }

/* §37 Claude Code 2026-11-11 (owner: "add . for note new example"): a gold dot marks the start of each example
   sentence under a meaning, hanging in the margin so the justified text keeps its edge. */
#v-dict #sec-definition li.ex-row > p { position: relative; }
#v-dict #sec-definition li.ex-row > p::before {
  content: "•"; position: absolute; left: -0.85em; top: 0;
  color: var(--reading-accent, #B08A3E); font-weight: 700; line-height: inherit;
}

/* 38. tab bar (owner iPhone Telegram photo: "not professional … fix X and Definitions connect row … new bar colour"):
   (a) the grey tabs were ivory text on 8 % white = invisible on the reading paper → every tab is a dark glass pill in the
       theme colour with ivory text and a gold hairline; the active tab stays gold;
   (b) stuck: one solid bar in the theme colour; in Telegram it also fills the space behind Close / ⋯ (::before reaches up to
       the screen top), so Close row and tabs are one bar and no text shows between or behind them. */
#v-dict .section-nav.jump-pills .jump-pill:not([aria-selected="true"]):not([aria-current="true"]) {
  color: #F1ECE1 !important; background: color-mix(in srgb, var(--vt-base, #0A1530) 78%, transparent) !important;
  border: 1px solid rgba(226, 190, 114, .42) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
}
#v-dict .section-nav.jump-pills .jump-pill:not([aria-selected="true"]):hover { border-color: #E2BE72 !important; color: #FFFDF7 !important; }
html.wp-tabs-stuck #v-dict .section-nav.jump-pills {
  background: color-mix(in srgb, var(--vt-base, #0A1530) 100%, transparent) !important;
  box-shadow: 0 1px 0 rgba(226, 190, 114, .45), 0 8px 18px rgba(0, 0, 0, .30) !important;
}
html.wp-tabs-stuck #v-dict .section-nav.jump-pills .jump-pill:not([aria-selected="true"]):not([aria-current="true"]) {
  background: rgba(255, 255, 255, .07) !important; box-shadow: none !important;
}
html.tg.wp-tabs-stuck #v-dict .section-nav.jump-pills::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--tg-top, 0px) + 2px);
  background: var(--vt-base, #0A1530); pointer-events: none;
}

/* 39. (owner: "yes fix it") no split words ("as- sent", "condi- tions") anywhere on the word page; the bold meaning lines
   (Definitions meanings, Grammar pattern meanings) are left-aligned — short bold lines justified showed wide gaps.
   Example sentences stay justified. */
#v-dict :is(#sec-definition, #sec-register, #sec-structure) :is(
  p.mean-def, p.def-text, li.ex-row > p, .rel-ex.ex-line, p.ws-src, details.ws-more p, .reg-row p.v, li.lvl-ex > p, p.st-adv-ex, p.st-mean
) { hyphens: manual; -webkit-hyphens: manual; }
#v-dict :is(#sec-definition, #sec-structure) :is(p.mean-def, p.def-text, p.st-mean) { text-align: start !important; text-align-last: start !important; }
/* 40. removed 2026-11-11 (owner chose "Justify, no split" for the whole app): example sentences are justified again (§36), words never split (§39). */

/* 41. (owner: "add . more professional, so erase Ex1 Ex2"): the Examples tab and the Word-pattern examples look like the
   Definitions examples — no Ex1 / Ex2 badges (kept for screen readers), one unbroken gold line, a gold dot before each sentence */
html body #v-dict #sec-register .reg-row > .k, html body #v-dict #sec-structure .lvl-ex > .lvl {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; white-space: nowrap !important;
}
html body #v-dict #sec-register .reg-row { margin-bottom: 0 !important; padding-top: 5px !important; padding-bottom: 5px !important; }
html body #v-dict #sec-structure .lvl-ex { margin-bottom: 0 !important; padding-top: 5px !important; padding-bottom: 5px !important; }
html body #v-dict :is(#sec-register .reg-row > p.v, #sec-structure .lvl-ex > p) { position: relative; }
html body #v-dict :is(#sec-register .reg-row > p.v, #sec-structure .lvl-ex > p)::before {
  content: "•"; position: absolute; left: -0.85em; top: 0; color: var(--reading-accent, #B08A3E); font-weight: 700; line-height: inherit;
}
html body #v-dict #sec-register .reg-rows, html body #v-dict #sec-structure .lvl-list { row-gap: 0 !important; gap: 0 !important; }
html body #v-dict :is(#sec-register .reg-row, #sec-structure .lvl-ex) { border-top: 0 !important; border-bottom: 0 !important; padding-top: 6px !important; padding-bottom: 6px !important; }
/* 42. (owner: "erase a bit line above C1 C2 C2"): the Advanced-Structure line starts at the middle of its badge, not above it */
html body #v-dict #sec-structure .st-adv-row::before { top: calc(6px + var(--wp-lh) * var(--wp-read) / 2) !important; }
/* 43. (owner: "line a bit gap from oval C1 C2 C2"): the line now hangs from the badge itself (badge ::after starts exactly at its
   bottom border), cut at the end of its row — it can never leave a gap, whatever the text size or phone */
html body #v-dict #sec-structure .st-adv-row::before { display: none !important; }
html body #v-dict #sec-structure .st-adv-row { clip-path: inset(0 -60px 0 -60px); }
html body #v-dict #sec-structure .st-adv-lvl { overflow: visible !important; }
html body #v-dict #sec-structure .st-adv-lvl::after {
  content: ""; position: absolute; left: 50%; top: calc(100% - 1px); width: 2px; height: 2000px; margin-left: -1px;
  background: var(--lv); pointer-events: none;
}
