/* writing.css - the look of the Writing tab and every writing screen
   (writing.js; WRITING 0001)
   ------------------------------------------------------------------------
   Every number is the approved drawings': Concept Art/writing.html (the
   phone: .qrow, .pcard, .pstrip, .editor, .wfoot, .wpanel, .seg, .wkline,
   .timer, .cbtn, .quit, .scorebox, .crit, .pt, .mytext, .pinned, .rvbtn,
   .rvwait, .s2, .dialog), wide_writing_list.html (.wscroll), and
   wide_weekly_piece.html, wide_timed_writing.html and wide_feedback.html
   (.wgrid, .wref, .wmain, .wcbox, .wbtns, .wsub, .wkbar, .wkclose, .ktop,
   .kbtn, .fpane, .rvbig, .rvwaitw). Loaded from this origin (style-src
   'self'): no inline style; a size writing.js computes (the bean) is set
   through the element's style object. Upright is the default; .wr-wide is
   the wide layout, chosen by nav.js from the page's shape alone (L695).
   ⛔ Never a band number, never the moving background on a writing screen
   but the list and the letter's time-is-up screen (L677).
   WRITING_PANELS 0001 (D1714, D1716, D1718) adds what is not drawn yet:
   the class picker, the strips, the keyboard-up split, the big caret, the
   mistakes box's cap, the bank's week groups, and a word's pop-up
   in Reading's look. */

.wr-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The element colors of the course's family (CONCEPT_ART §1: .band4 to
   .band7). */
.wr-band-earth { color: #35E07E; }
.wr-band-water { color: #4E9BF0; }
.wr-band-fire { color: #ED6A76; }
.wr-band-air { color: #F2C14E; }

/* ══ THE LIST (writing.html A: .body, .qlist, .qrow; wide_writing_list.html
   .wlist, .wscroll): 68 px rows 10 px apart, the band-colored week line
   over the state, › where the row opens; scrolling with the bean; the class
   picker above it with two classes or more. ══ */
.wr-list {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wr-lbox {
  flex: 1;
  min-height: 0;
  position: relative;
}

.wr-lscroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 0 14px 2px;
  scrollbar-width: none;
}

.wr-lscroll::-webkit-scrollbar,
.wr-wscroll::-webkit-scrollbar,
.wr-fscroll::-webkit-scrollbar,
.wr-fpane::-webkit-scrollbar,
.wr-pscroll::-webkit-scrollbar,
.wr-cscroll::-webkit-scrollbar {
  display: none;
}

.nv-wide .wr-lscroll {
  padding: 2px 24px 0;
}

.wr-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-row {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 18px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  /* A list bubble: the light, shell.css's tokens (D1699). */
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

.wr-row.wr-still {
  cursor: default;
}

.wr-wk {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The top line starts at the row's text edge, as the bottom line does:
   the exam's .wr-wk rule (its WEEKS mark's 6 px) never reaches the list
   (WRITING_PANELS 0001 Amendment A, D1721). */
.wr-rtext .wr-wk {
  margin-left: 0;
}

/* A paused or waiting row's word on the top line: the app's red, or Air's
   gold on a fire course (D1721), the shell's tokens. */
.wr-flag-fire {
  color: var(--fire);
}

.wr-flag-air {
  color: var(--air);
}

.wr-state {
  margin-top: 3px;
  font-size: 17.5px;
  font-weight: 600;
  color: #EAF0FA;
  white-space: nowrap;
}

.wr-rev {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #7BE3A4;
}

.wr-chev {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #5C6B85;
}
/* The icon set's drawings (the_icon_set.html, ART_FIX 0002's mechanism;
   D1308, D1676), each the size of the symbol it replaces as the icon set's
   .ic draws it: 1.18 em of its line, sitting .2 em below the line's
   baseline; the row's arrow 1 em (.chev .ic). */
.wr-icon {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  vertical-align: -.2em;
  overflow: visible;
}
.wr-chev .wr-icon {
  width: 1em;
  height: 1em;
  vertical-align: -.15em;
}
/* Caret 3, the stroke (D579, D1308 (5)), as settings.html draws it (.kbox,
   .scaret) and sprints_week.html points it up (.up): down for Show or open,
   up for Hide or fold. ⛔ Never a glyph and never a triangle. */
.wr-kbox {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 18px;
  height: 22px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.wr-caret {
  position: relative;
  top: -2px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-right: 2px solid #6E7E99;
  border-bottom: 2px solid #6E7E99;
}
.wr-caret.wr-up {
  top: 2px;
  transform: rotate(-135deg);
}
/* Kit.html's caret 3 at 250% (D1716 (3)): 22.5 px, the stroke still 2 px,
   the lift scaled to 5 px, in a 44 px tap box narrowing, when the footer
   is tight, to its ink and 4 px (22.5 x √2 + 4 = 36). */
.wr-kbox.wr-kbig {
  display: none;
  width: 44px;
  max-width: 100%;
  min-width: 36px;
  height: 44px;
}
.wr-caret.wr-big {
  top: -5px;
  width: 22.5px;
  height: 22.5px;
}

/* §1e: the bean, 6 px, #8FA3C4, no track, only where something scrolls;
   its length is visible / total. */
.wr-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  width: 6px;
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
}

.wr-bean-track.wr-scrolls {
  visibility: visible;
}

.nv-wide .wr-lbox > .wr-bean-track {
  right: 9px;
}

.wr-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* ══ A WRITING SCREEN, UPRIGHT (writing.html B, C, E, F: .col): one
   column 14 px from each side, 10 px between its parts. A kiosk screen
   (C, F: .kpage) ends 10 px above the frame's bottom, its column 10 px
   above that. ══ */
.wr-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.wr-col {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
}

.wr-kiosk .wr-col {
  padding-bottom: 20px;
}

.wr-ilabel {
  flex: none;
  height: 16px;
  line-height: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The prompt (B1: .pcard, at most 232 px tall, then it scrolls with the
   bean, B1c) and folded to its first line (B1b: .pstrip, 40 px). */
.wr-pcard {
  flex: none;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 232px;
  padding: 13px 16px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  overflow: hidden;
}

.wr-plabel {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6E7E99;
}

/* The ဘာသာပြန် link in the label line's own flow, in the middle of the room
   between the label and Hide: "Writing Instructions" (D1716 (1)) is longer
   than the drawn "Prompt", and the line's exact middle would run into it. */
.wr-plabel .tt-link.tt-link-label {
  position: static;
  order: 1;
  transform: none;
}

.wr-plabel > .wr-pfold {
  order: 2;
}

.wr-pfold {
  font-size: 12.5px;
  letter-spacing: .3px;
  text-transform: none;
  font-weight: 600;
  color: #8FA2BF;
}

.wr-pscroll {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.wr-ptext p,
.wr-pplain p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: #DCE5F2;
}

.wr-ptext[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.9;
  color: #96A5BD;
}

.wr-pstrip {
  flex: none;
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #2C3850;
  border-radius: 12px;
  background-color: #1D2739;
}

.wr-pline {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14.5px;
  line-height: 1.5;
  color: #DCE5F2;
}

.wr-pmore {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: #8FA2BF;
}

.wr-folded .wr-pcard {
  display: none;
}

.wr-folded .wr-pstrip {
  display: flex;
}

/* The bank's strip (D1716 (1); not drawn): the prompt strip's shape,
   "Course words" in the counters' gold and Show; upright with the keyboard
   down while the bank is folded. */
.wr-cstrip {
  flex: none;
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #2C3850;
  border-radius: 12px;
  background-color: #1D2739;
}

.wr-screen:not(.wr-wide):not(.wr-kb):not(.wr-panel) .wr-cstrip {
  display: flex;
}

.wr-cline {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14.5px;
  line-height: 1.5;
}

/* The editor (B1: .editor): the rest of the column. */
.wr-editor {
  flex: 1;
  min-height: 0;
  position: relative;
  border: 1px solid #33415C;
  border-radius: 16px;
  background: #141C2E;
  overflow: hidden;
}

.wr-editor.wr-locked {
  border-color: #2C3850;
  background: #121827;
}

.wr-etext {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: #EAF0FA;
  caret-color: #6FAEFF;
  -webkit-user-select: text;
  user-select: text;
}

.wr-locked .wr-etext {
  color: #8A97AC;
}

/* The footer (B1: .wfoot, 64 px): the counters and Submit. */
.wr-wfoot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

/* The two count lines are one tap target, as wide as the longer line, and
   centered on the footer's middle (D1714 (1)). */
.wr-wcount {
  flex: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

/* The big caret's place: from the longer count line's end to Submit's
   left edge (its margins undo the footer's gaps), the caret in its middle;
   shown upright with the keyboard up, when Submit hides and the slot takes
   its place (below). */
.wr-bigk {
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -12px;
}

.wr-screen:not(.wr-wide).wr-kb .wr-kbig {
  display: flex;
}

/* Typing on the phone (B2, C3, E2: .wfoot.kbup, .kslot; D1737 (4)): Submit
   hides and the footer is the big caret's 44 px tap box, the caret 20 px
   left of Submit's center (the slot Submit's drawn 106 px, 20 px from the
   footer's end); the slot gives way before the count lines do. */
.wr-screen:not(.wr-wide).wr-kb .wr-wfoot {
  height: 44px;
  gap: 0;
}

.wr-screen:not(.wr-wide).wr-kb .wr-wfoot .wr-wcount {
  flex: 1 0 auto;
}

.wr-screen:not(.wr-wide).wr-kb .wr-wfoot .wr-sbtn {
  display: none;
}

.wr-screen:not(.wr-wide).wr-kb .wr-wfoot .wr-bigk {
  flex: 0 1 106px;
  min-width: 44px;
  height: 44px;
  margin: 0 20px 0 0;
}

.wr-wide .wr-bigk {
  display: none;
}

.wr-wc1 {
  font-size: 14.5px;
  font-weight: 600;
  color: #C8D3E4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wr-wc2 {
  font-size: 13.5px;
  font-weight: 600;
  color: #C8D3E4;
  white-space: nowrap;
}

.wr-sbtn {
  flex: none;
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 24px;
  border: 1px solid #6FAEFF;
  border-radius: 12px;
  background: rgba(111, 174, 255, .07);
  font-size: 16.5px;
  font-weight: 600;
  color: #6FAEFF;
}

.wr-kclose {
  display: none;
}

.wr-wcbox {
  display: none;
}

/* The course words (B3: .wpanel, 300 px, opening from the footer; F4: the
   word list, 280 px): only one of it and the prompt open at a time. */
.wr-wpanel {
  flex: none;
  position: relative;
  display: none;
  flex-direction: column;
  height: 300px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  overflow: hidden;
}

.wr-wordlist {
  height: 280px;
}

.wr-panel .wr-wpanel {
  display: flex;
}

.wr-whead {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #253045;
}

.wr-exam .wr-whead {
  display: none;
}

.wr-wtitle {
  font-size: 14.5px;
  font-weight: 600;
  color: #EAF0FA;
}

.wr-wfold {
  font-size: 13px;
  font-weight: 600;
  color: #8FA2BF;
  white-space: nowrap;
}

.wr-wscroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

/* A week's group, as drawn: no ring (the Founder cancelled it, WRITING_PANELS
   0001 Amendment B). */
.wr-wgroup {
  padding: 10px 16px 4px;
}

.wr-wglabel {
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6E7E99;
}

.wr-wchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wr-wchip {
  padding: 4px 9px;
  border: 1px solid #39445C;
  border-radius: 9px;
  font-size: 13.5px;
  color: #AEBBD0;
  white-space: nowrap;
}

.wr-wchip.wr-used {
  border-color: rgba(53, 224, 126, .55);
  color: #7BE3A4;
}

.wr-wchip[role="button"] {
  cursor: pointer;
}

/* The keyboard is up (B2, E2): the label goes, the footer stays above it;
   upright, the prompt and the bank's strip go too (D1716 (2)), and the bank
   opened from the count lines takes half of what the footer leaves, the
   editor the other half. */
.wr-kb .wr-ilabel {
  display: none;
}

.wr-screen:not(.wr-wide):not(.wr-exam).wr-kb .wr-pcard,
.wr-screen:not(.wr-wide):not(.wr-exam).wr-kb .wr-pstrip {
  display: none;
}

.wr-screen:not(.wr-wide).wr-bankup .wr-wpanel {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
}

/* ══ A WORD'S POP-UP (D1716 (5), D1718; not drawn): Reading's (reading.css
   .rd-look, .rd-pop, .rd-lkhd, .rd-lkw, .rd-lkx, .rd-lkscr, .rd-lkin,
   .rd-lkd, .rd-lkn, .rd-lkt, at Reading's size 2: --rd-pt 18, --rd-pb
   15.5, --rd-pl 12), copied: 330 px, 20 px corners, #22304A on a #37476B
   edge, the ✕ inside it; then the meaning, a gap one line of the meaning's
   type tall where Reading draws its line, the italic label, the example. ══ */
.wr-look {
  position: absolute;
  z-index: 11;
  display: flex;
  flex-direction: column;
  width: 330px;
  max-width: calc(100% - 32px);
  padding: 15px 20px 18px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background: #22304A;
  text-align: left;
  box-sizing: border-box;
}

.wr-screen:not(.wr-wide) .wr-look {
  left: 50%;
  transform: translateX(-50%);
}

.wr-lkhd {
  flex: none;
  display: flex;
  align-items: flex-start;
  column-gap: 10px;
}

.wr-lkw {
  font-family: var(--font-headline);
  flex: 1;
  min-width: 0;
  padding-top: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.wr-lkx {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -1px -9px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AEBBD0;
}

.wr-lkx .wr-icon {
  width: 19px;
  height: 19px;
  vertical-align: 0;
}

.wr-lkscr {
  flex: 0 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-right: -20px;
}

.wr-long .wr-lkscr {
  flex: 1 1 auto;
  margin-top: 8px;
}

.wr-lkin {
  flex: 0 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: none;
}

.wr-lkin::-webkit-scrollbar {
  display: none;
}

.wr-lkscr > .wr-bean-track {
  top: 4px;
  bottom: 4px;
}

.wr-lkd {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #C8D3E4;
}

.wr-lkgap {
  height: 1.5em;
  font-size: 15.5px;
}

.wr-lkn {
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  color: #7D8CA5;
}

.wr-lkt {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #C8D3E4;
}

/* ══ THE KIOSK SCREENS (C, F: .timer, .cbtn, .quit; no ☰, no tab
   bar, no top bar). ══ */
.wr-timer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: 15px;
  font-weight: 600;
  color: #C8D3E4;
  font-variant-numeric: tabular-nums;
}

.wr-countline[hidden] {
  display: none;
}

/* The letter's two count lines (C2's line, and its week words, D1714 (4)):
   one tap target, opening the bank as its strip does. */
.wr-lcounts {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wr-lcounts .wr-countline {
  height: 21px;
}

.wr-lcounts .wr-wkwords {
  font-size: 14px;
}

.wr-cbtn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 0 18px;
  border: 1px solid #6FAEFF;
  border-radius: 12px;
  background: rgba(111, 174, 255, .07);
  font-size: 17.5px;
  font-weight: 600;
  color: #6FAEFF;
  text-align: center;
}

.wr-cbtn.wr-plain {
  border-color: rgba(255, 255, 255, .22);
  background: transparent;
  color: #EAF0FA;
}

.wr-quit {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: #7E93AE;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(126, 147, 174, .5);
}

.wr-kiosk .wr-wfoot {
  display: none;
}

.wr-kiosk .wr-pcard {
  max-height: 150px;
}

.wr-exam .wr-pcard {
  max-height: 120px;
}

/* The letter's keyboard up (C3): the count and Submit above it. */
.wr-kiosk.wr-kb .wr-wfoot {
  display: flex;
}

.wr-kiosk.wr-kb .wr-lcounts,
.wr-kiosk.wr-kb .wr-cbtn,
.wr-kiosk.wr-kb:not(.wr-wide) .wr-quit {
  display: none;
}

/* The exam's two tabs (F2: .seg, 52 px) and its counters' line (.wkline,
   44 px). */
.wr-seg {
  flex: none;
  display: flex;
  gap: 8px;
  height: 52px;
}

.wr-segb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid #39445C;
  border-radius: 12px;
  text-align: center;
}

.wr-segb.wr-cur {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
}

.wr-segn {
  font-size: 15px;
  font-weight: 600;
  color: #EAF0FA;
}

.wr-segs {
  font-size: 12px;
  color: #8A97AC;
  font-variant-numeric: tabular-nums;
}

/* At least 4 px between the count, the weeks and Word list, so they never
   touch on a 360 px phone (D1737: one row at 360 and 390). */
.wr-wkline {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #2C3850;
  border-radius: 12px;
  background-color: #1D2739;
}

.wr-wk {
  margin-left: 6px;
}

.wr-weeks .wr-wk {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #8A97AC;
  text-transform: none;
}

/* The counter's weeks (F2, K3, K4: .wc2.nb, .wnums, .wn; kit.html §2's
   week number box, D1737): each week's number, filled green when a word
   of it is used, a 1 px red edge when not. Phone 17 x 20, 2 px apart. */
.wr-weeks {
  display: inline-flex;
  align-items: center;
}

.wr-wnums {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.wr-wn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 17px;
  height: 20px;
  padding: 0 3px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.wr-wn.wr-cov {
  background: rgba(53, 224, 126, .16);
  color: #35E07E;
}

.wr-wn.wr-miss {
  border: 1px solid rgba(237, 106, 118, .75);
  color: #ED6A76;
}

/* The exam's list by week (F4, K3: .wgroup.cov, .wgroup.miss, .st): a
   covered week's name green with the tick; a missed week in its own red
   box, its name red with the cross. ⛔ Never the bank's groups. */
.wr-wgroup.wr-cov .wr-wglabel {
  color: #35E07E;
}

.wr-wgroup.wr-miss {
  margin: 8px 8px 4px;
  padding: 10px 8px 10px;
  border: 1px solid rgba(237, 106, 118, .45);
  border-radius: 12px;
  background: rgba(237, 106, 118, .08);
}

.wr-wgroup.wr-miss .wr-wglabel {
  color: #ED6A76;
}

.wr-st {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}

/* Kit.html §2's cross: two 2 px strokes at a right angle, ink 10 x 10. */
.wr-cross {
  position: relative;
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
}

.wr-xs {
  position: absolute;
  left: 4px;
  top: -1px;
  width: 2px;
  height: 12px;
  background: currentColor;
  transform: rotate(45deg);
}

.wr-xs + .wr-xs {
  transform: rotate(-45deg);
}

.wr-exam.wr-kb .wr-cbtn,
.wr-exam.wr-kb:not(.wr-wide) .wr-quit {
  display: none;
}

/* Typing the exam on the phone (F3: .wkline.kbup): Word list and its caret
   leave the strip and the big caret takes their place at its end. */
.wr-exam.wr-kb:not(.wr-wide) .wr-wkline {
  padding: 0 8px 0 14px;
}

.wr-exam.wr-kb:not(.wr-wide) .wr-wkline .wr-wfold {
  display: none;
}

.wr-exam.wr-kb:not(.wr-wide) .wr-wkline .wr-kbig {
  margin-left: 2px;
}

/* ══ THE FEEDBACK PAGE (D: .fscroll, .finner, .scorebox, .crit, .pt,
   .mytext; E4: .rvwait; E5: .s2). ══ */
.wr-fscroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 14px 2px;
  scrollbar-width: none;
}

.wr-finner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wr-scorebox {
  padding: 16px 18px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  text-align: center;
}

.wr-score {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.wr-scoresub {
  margin-top: 6px;
  font-size: 14px;
  color: #AEBBD0;
}

.wr-s2 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.wr-s2c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wr-s2l {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8FA2BF;
}

.wr-s2a {
  padding-bottom: 3px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #8A97AC;
  font-variant-numeric: tabular-nums;
}

.wr-s2arrow {
  padding-bottom: 10px;
  font-size: 20px;
  color: #6E7E99;
}

.wr-rvwrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wr-rvbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 14px;
  border: 1px solid #6FAEFF;
  border-radius: 12px;
  background: rgba(111, 174, 255, .07);
  font-size: 16.5px;
  font-weight: 600;
  color: #6FAEFF;
  white-space: nowrap;
}

.wr-rvsub {
  font-size: 13px;
  color: #8A97AC;
  text-align: center;
}

.wr-rvwait {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid #2C3850;
  border-radius: 14px;
  background-color: #1D2739;
  font-size: 15px;
  color: #AEBBD0;
}

.wr-crit {
  position: relative;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  overflow: hidden;
}

.wr-crow {
  padding: 11px 18px;
}

.wr-crow + .wr-crow {
  border-top: 1px solid #253045;
}

.wr-cname {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8FA2BF;
}

.wr-ctext {
  display: block;
  margin-top: 3px;
}

.wr-ctext p,
.wr-why p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #C8D3E4;
}

.wr-ctext[lang="my"] p,
.wr-why[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.9;
}

/* The one ဘာသာပြန် under the four criteria, centered on its row
   (writing.html D1: .crow .tline). */
.wr-clink {
  display: flex;
  justify-content: center;
}

.wr-clink .tt-link {
  margin: 0;
}

.wr-fhead {
  padding: 6px 4px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E7E99;
}

.wr-pt {
  padding: 13px 16px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
}

.wr-pthead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wr-ptn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #8FA2BF;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 700;
  color: #DCE5F2;
}

.wr-was {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(238, 148, 64, .13);
  font-size: 15.5px;
  color: #F0B27A;
  text-decoration: line-through;
  text-decoration-color: rgba(240, 178, 122, .6);
}

.wr-arrow {
  font-size: 15px;
  color: #6E7E99;
}

.wr-better {
  font-size: 15.5px;
  font-weight: 600;
  color: #7BE3A4;
}

.wr-ptag {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8A97AC;
}

.wr-why {
  display: table;
  max-width: 100%;
  margin-top: 8px;
}

.wr-why p {
  font-size: 14.5px;
  color: #AEBBD0;
}

.wr-fx {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.wr-fx-fixed {
  color: #35E07E;
  border-color: rgba(53, 224, 126, .5);
}

.wr-fx-partly {
  color: #EE9440;
  border-color: rgba(238, 148, 64, .5);
}

.wr-fx-not_fixed {
  color: #ED6A76;
  border-color: rgba(237, 106, 118, .5);
}

.wr-mytext {
  padding: 13px 16px;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  font-size: 15.5px;
  line-height: 1.65;
  color: #C8D3E4;
  white-space: pre-wrap;
  -webkit-user-select: text;
  user-select: text;
}

.wr-hl {
  padding: 0 3px;
  border-radius: 5px;
  background: rgba(238, 148, 64, .16);
}

.wr-hn {
  margin-left: 2px;
  vertical-align: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #F0B27A;
}

/* ══ THE REVISION (E1: .pinned, its rows 34 px): at most three rows, then
   scrolling inside with the bean (116 px with its padding and edge), or
   its first row alone; a tap toggles them (D1716 (4); not drawn). ══ */
.wr-pinned {
  flex: none;
  position: relative;
  padding: 6px 14px;
  border: 1px solid #2C3850;
  border-radius: 16px;
  background-color: #1D2739;
  cursor: pointer;
}

.wr-pinscroll {
  max-height: 102px;
  overflow-y: auto;
  scrollbar-width: none;
}

.wr-pinscroll::-webkit-scrollbar {
  display: none;
}

.wr-one .wr-pinscroll {
  max-height: 34px;
  overflow: hidden;
}

.wr-pinned > .wr-bean-track {
  top: 6px;
  bottom: 6px;
}

.wr-pinrow {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
}

.wr-pinrow .wr-was,
.wr-pinrow .wr-better {
  font-size: 13.5px;
}

/* ══ THE POP-UPS (§1c; writing.html B4, B5, B6, C1, E3, F1, F5): 330 px
   in the middle of the frame, a scrim over everything, the buttons 54 px
   side by side, one ဘာသာပြန် 10 px under them. ══ */
.wr-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}

.wr-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #C8D3E4;
  -webkit-user-select: none;
  user-select: none;
}

.wr-dialog,
.wr-dialog * {
  box-sizing: border-box;
}

.wr-dtitle {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}

/* A pop-up's sentence: its first paragraph is the title when it has two
   (B5, C1, F1, F5: .dtitle then .dbody), the body when it has one. */
.wr-dbody {
  display: block;
}

.wr-dbody p {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}

.wr-dbody .tt-text p:first-child:not(:last-child) {
  margin-top: 0;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}

.wr-dbody .tt-text p:only-child {
  margin-top: 0;
}

.wr-dbody[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

.wr-drow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.wr-dbtn {
  flex: 1;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
  text-align: center;
}

.wr-dbtn.wr-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}

/* ══ WIDE (wide_weekly_piece.html, wide_timed_writing.html,
   wide_feedback.html: .wgrid): two columns under the top row, 5 : 9, 24 px
   apart and 24 px from each side. LEFT the prompt, the course words and
   the counters at its foot; RIGHT the editor and one row of five, the
   editor's width, the page's action in its middle. nav's own bottom row
   gives way to that row on these pages, the tiles still nav's own. ══ */
.nv-screen.nv-wide[data-page="writing_piece"] .nv-wbottom,
.nv-screen.nv-wide[data-page="writing_feedback"] .nv-wbottom,
.nv-screen.nv-wide[data-page="writing_revision"] .nv-wbottom {
  display: none;
}

.wr-wide .wr-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
  gap: 24px;
  margin: 0 24px;
  padding-top: 2px;
}

.wr-wref {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wr-wmain {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-wide .wr-ilabel {
  font-size: 13.5px;
  height: 18px;
  line-height: 18px;
}

.wr-wide .wr-pcard {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 50%;
  padding: 15px 20px;
}

.wr-wide .wr-plabel {
  font-size: 13px;
  margin-bottom: 7px;
}

.wr-wide .wr-pfold {
  font-size: 14px;
}

.wr-wide .wr-plabel .tt-link-label {
  font-size: 14px;
}

.wr-wide .wr-ptext p,
.wr-wide .wr-pplain p {
  font-size: 17.5px;
}

.wr-wide .wr-pstrip {
  height: 46px;
  padding: 0 18px;
}

.wr-wide .wr-pline {
  font-size: 16.5px;
}

.wr-wide .wr-pmore {
  font-size: 14px;
}

.wr-wide .wr-wpanel {
  display: flex;
  flex: 1;
  min-height: 0;
  height: auto;
}

.wr-wide .wr-wfold {
  display: none;
}

.wr-wide .wr-wkline .wr-wfold {
  display: block;
}

.wr-wide .wr-wtitle {
  font-size: 16px;
}

.wr-wide .wr-wglabel {
  font-size: 12.5px;
}

.wr-wide .wr-wchip {
  padding: 5px 10px;
  font-size: 15px;
}

.wr-wide .wr-etext {
  padding: 16px 22px;
  font-size: 18.5px;
}

.wr-wide .wr-wcbox {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  height: 84px;
  padding: 0 20px;
  border: 1px solid #2C3850;
  border-radius: 12px;
  background-color: #1D2739;
}

.wr-wide .wr-wcbox .wr-wc1 {
  font-size: 19px;
}

.wr-wide .wr-wcbox .wr-wc2 {
  font-size: 17px;
}

.wr-wide .wr-wcbox .wr-wk {
  font-size: 14px;
}

/* K3: WEEKS under Course words, at its left edge and 9 px below it (the
   space taken from the box's margins); the boxes 24 x 26, 4 px apart. */
.wr-wide.wr-exam .wr-wcbox {
  gap: 9px;
}

.wr-wide .wr-wcbox .wr-weeks .wr-wk {
  margin-left: 0;
}

.wr-wide .wr-wnums {
  gap: 4px;
  margin-left: 8px;
}

.wr-wide .wr-wcbox .wr-wn {
  min-width: 24px;
  height: 26px;
  padding: 0 5px;
  border-radius: 7px;
  font-size: 15px;
}

/* K4: the boxes 20 x 22 on the tablet's one line. */
.wr-wide .wr-wkline .wr-wn {
  min-width: 20px;
  height: 22px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 13px;
}

.wr-wide.wr-ed .wr-wfoot,
.wr-wide.wr-fb .wr-wfoot {
  display: none;
}

/* The row of five (.wbtns, 84 px): the tiles nav draws, the action in the
   middle taking what they leave. */
.wr-wbtns {
  flex: none;
  display: flex;
  gap: 10px;
  height: 84px;
}

.wr-wact {
  flex: 1;
  min-width: 0;
  display: flex;
}

.wr-wsub,
.wr-rvbig,
.wr-rvwaitw {
  flex: 1;
  min-width: 0;
  height: 84px;
  border-radius: 12px;
}

.wr-wsub {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6FAEFF;
  background: rgba(111, 174, 255, .07);
  font-size: 21px;
  font-weight: 600;
  color: #6FAEFF;
  text-align: center;
}

.wr-rvbig-holder {
  flex: 1;
  min-width: 0;
  display: flex;
}

.wr-rvbig {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  border: 1px solid #6FAEFF;
  background: rgba(111, 174, 255, .07);
  text-align: center;
}

.wr-rvl1 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #6FAEFF;
}

.wr-rvl2 {
  font-size: 13.5px;
  color: #8FA2BF;
  white-space: nowrap;
}

.wr-rvwaitw {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #2C3850;
  background-color: #1D2739;
  font-size: 16.5px;
  color: #AEBBD0;
  text-align: center;
}

/* A tablet's own keyboard up, wide (Y5, K4: .kbup, .wkbar): Submit and the
   tiles hide until it closes, the counters run on one line with Close
   keyboard at its right end, and the words fold. */
.wr-wide.wr-kb .wr-wbtns,
.wr-wide.wr-kb .wr-wcbox,
.wr-wide.wr-kb .wr-cbtn {
  display: none;
}

.wr-wide:not(.wr-exam).wr-kb .wr-wpanel {
  display: none;
}

.wr-wide:not(.wr-exam).wr-kb.wr-panel .wr-wpanel {
  display: flex;
}

.wr-wide.wr-kb .wr-pcard {
  max-height: 100%;
}

.wr-wide.wr-kb .wr-wfoot,
.wr-wide .wr-wkline {
  display: none;
}

.wr-wide.wr-kb .wr-wfoot,
.wr-wide.wr-kb .wr-wkline {
  flex: none;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 52px;
  margin: 10px 24px 0;
  padding: 0 8px 0 20px;
  border: 1px solid #2C3850;
  border-radius: 14px;
  background-color: #1D2739;
}

.wr-wide.wr-kb .wr-wfoot .wr-wcount {
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}

.wr-wide.wr-kb .wr-wfoot .wr-sbtn {
  display: none;
}

.wr-wide.wr-kb .wr-wc1 {
  font-size: 16.5px;
}

.wr-wide.wr-kb .wr-wc2 {
  font-size: 16px;
}

.wr-wide.wr-kb .wr-kclose {
  display: flex;
  align-items: center;
  flex: none;
  height: 38px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  font-size: 15px;
  font-weight: 600;
  color: #C8D3E4;
}

.wr-wide.wr-kb .wr-wkline .wr-wfold {
  display: none;
}

/* The timed screens' top row, wide (K: .wtop, .kquit, .ktime): Leave for
   now where ← would be, the time in the exact center, nothing at the right;
   one button the editor's width under the editor. */
.wr-ktop {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 52px;
  padding: 0 40px;
}

.wr-kside {
  display: flex;
  align-items: center;
}

.wr-ktop .wr-quit {
  height: auto;
  font-size: 15px;
  white-space: nowrap;
}

.wr-ktime {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.wr-wide .wr-timer {
  height: auto;
  font-size: 19px;
  color: #DCE5F2;
  white-space: nowrap;
}

.wr-wide .wr-cbtn {
  height: 84px;
  font-size: 21px;
}

.wr-wide .wr-cbtn.wr-plain {
  background: rgba(255, 255, 255, .045);
}

.wr-wide.wr-kiosk .wr-pcard {
  max-height: 50%;
}

.wr-wide .wr-seg {
  height: 60px;
}

.wr-wide .wr-segn {
  font-size: 17px;
}

.wr-wide .wr-segs {
  font-size: 14px;
}

.wr-wide.wr-exam .wr-whead {
  display: flex;
}

.wr-wide.wr-exam.wr-kb .wr-wordlist {
  display: none;
}

.wr-wide.wr-exam.wr-kb.wr-panel .wr-wordlist {
  display: flex;
}

/* The feedback page, wide (R): the score and the criteria on the left
   (scrolling inside their box when the column is short), the points and
   the text on the right, scrolling with the bean. */
.wr-wide .wr-scorebox {
  padding: 18px 20px;
}

.wr-wide .wr-score {
  font-size: 52px;
}

.wr-wide .wr-scoresub {
  font-size: 15.5px;
}

.wr-wide .wr-s2a {
  font-size: 36px;
}

.wr-wide .wr-crit {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wr-cscroll {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.wr-wide .wr-crow {
  padding: 12px 20px;
}

.wr-wide .wr-cname {
  font-size: 12.5px;
}

.wr-wide .wr-ctext p {
  font-size: 16.5px;
}

.wr-fpane {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none;
}

.wr-fin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wr-wide .wr-fhead {
  font-size: 13px;
}

.wr-wide .wr-pt {
  padding: 15px 20px;
}

.wr-wide .wr-ptn {
  width: 27px;
  height: 27px;
  font-size: 13.5px;
}

.wr-wide .wr-was,
.wr-wide .wr-better {
  font-size: 17px;
}

.wr-wide .wr-arrow {
  font-size: 16.5px;
}

.wr-wide .wr-why p {
  font-size: 16px;
}

.wr-wide .wr-fx {
  font-size: 13.5px;
}

.wr-wide .wr-mytext {
  padding: 15px 20px;
  font-size: 17px;
}

.wr-wide .wr-hn {
  font-size: 12px;
}

.wr-wide .wr-pinned {
  padding: 8px 18px;
}

.wr-wide .wr-pinrow {
  height: 40px;
}

.wr-wide .wr-pinscroll {
  max-height: 120px;
}

.wr-wide.wr-one .wr-pinscroll {
  max-height: 40px;
}

.wr-wide .wr-pinrow .wr-was,
.wr-wide .wr-pinrow .wr-better {
  font-size: 15.5px;
}

/* ══ COLOR MODIFIERS, written last so they win their ties. ══ */
.wr-amber {
  color: #EE9440;
}

.wr-red {
  color: #ED6A76;
}

.wr-okc {
  color: #35E07E;
}

/* The keyboard is up, upright (B2, C3, E2, F3): it covers the tab bar, so
   the page runs down to it (writing.html .page.kb: the page ends where the
   keyboard starts). nav's own tab bar stays nav's; it is hidden under the
   keyboard, never moved or redrawn. */
.nv-screen:not(.nv-wide) .nv-column:has(.wr-kb) .nv-tabs {
  display: none;
}

.nv-screen.nv-bars:not(.nv-wide) .nv-column:has(.wr-kb) .nv-page {
  bottom: 0;
}
