/* Lumin Reader: highlights on the page, Lumin's selection, the ink action bar, the note editor and the Mark a passage
   dialog (PB-U3; design 5 to 8, build plan 6.7 and 6.8). Colors come from the tokens in app.css (--hl-*, --sel,
   --sel-edge, --bar-ink, --bar-text) and the paper tokens in reader.css (--paper, --ink, --pmuted, --pcard, --prule).
   Copyright (C) 2026 B7 Collective LLC. Licensed under AGPL-3.0-only. */

/* ===================================================================================================================
   Highlights on the page: CSS custom highlights (one per color), 40% tints on light papers and 30% on dark ones
   =================================================================================================================== */
::highlight(hl-y) { background-color: rgb(242 181 68 / .40); }
::highlight(hl-g) { background-color: rgb(120 170 110 / .40); }
::highlight(hl-b) { background-color: rgb(104 152 214 / .40); }
::highlight(hl-p) { background-color: rgb(222 122 152 / .40); }
::highlight(hl-u) { text-decoration-line: underline; text-decoration-color: #1F6F78; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.reader[data-paper="night"] ::highlight(hl-y), .reader[data-paper="dusk"] ::highlight(hl-y) { background-color: rgb(242 181 68 / .30); }
.reader[data-paper="night"] ::highlight(hl-g), .reader[data-paper="dusk"] ::highlight(hl-g) { background-color: rgb(120 170 110 / .30); }
.reader[data-paper="night"] ::highlight(hl-b), .reader[data-paper="dusk"] ::highlight(hl-b) { background-color: rgb(104 152 214 / .30); }
.reader[data-paper="night"] ::highlight(hl-p), .reader[data-paper="dusk"] ::highlight(hl-p) { background-color: rgb(222 122 152 / .30); }
.reader[data-paper="night"] ::highlight(hl-u), .reader[data-paper="dusk"] ::highlight(hl-u) { text-decoration-color: #7CC6CE; }
/* Lumin's selection: the teal tint (never a highlight color) */
::highlight(lsel) { background-color: rgb(31 111 120 / .22); }
.reader[data-paper="night"] ::highlight(lsel), .reader[data-paper="dusk"] ::highlight(lsel) { background-color: rgb(31 111 120 / .50); }

/* Browsers without CSS highlights: <mark> around the text (no padding, so line breaks don't move) */
.prose mark.mk-hl { color: inherit; padding: 0; border-radius: 2px; background: rgb(242 181 68 / .40); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose mark.mk-g { background: rgb(120 170 110 / .40); }
.prose mark.mk-b { background: rgb(104 152 214 / .40); }
.prose mark.mk-p { background: rgb(222 122 152 / .40); }
.prose mark.mk-u { background: none; text-decoration: underline 2px #1F6F78; text-underline-offset: 4px; }
.reader[data-paper="night"] .prose mark.mk-y, .reader[data-paper="dusk"] .prose mark.mk-y { background: rgb(242 181 68 / .30); }
.reader[data-paper="night"] .prose mark.mk-g, .reader[data-paper="dusk"] .prose mark.mk-g { background: rgb(120 170 110 / .30); }
.reader[data-paper="night"] .prose mark.mk-b, .reader[data-paper="dusk"] .prose mark.mk-b { background: rgb(104 152 214 / .30); }
.reader[data-paper="night"] .prose mark.mk-p, .reader[data-paper="dusk"] .prose mark.mk-p { background: rgb(222 122 152 / .30); }
.reader[data-paper="night"] .prose mark.mk-u, .reader[data-paper="dusk"] .prose mark.mk-u { text-decoration-color: #7CC6CE; }

/* A note marker: a small ink disc with a number after the highlight (its number comes from CSS, so the text is
   unchanged); raised like a superscript without changing the line's height */
.prose .mk-note { display: inline-block; position: relative; top: -.42em; min-width: 18px; height: 18px; margin: 0 1px 0 3px; padding: 0 4px; box-sizing: border-box;
  border-radius: 9px; background: var(--ink); color: var(--paper); font: 700 12px/18px var(--sans); text-align: center; text-indent: 0; letter-spacing: 0; font-style: normal;
  vertical-align: baseline; cursor: pointer; -webkit-user-select: none; user-select: none; }
.prose .mk-note::after { content: attr(data-n); }
/* Words for screen readers before and after each highlight: read in place, take no room */
.prose .mk-sr::before { content: attr(data-sr); position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===================================================================================================================
   The selection layer: tints (no CSS highlights), handles, the Sentence and Paragraph pill, the hint, the bar
   =================================================================================================================== */
.mk-layer { position: fixed; inset: 0; z-index: 33; pointer-events: none; font-family: var(--sans); }
.mk-layer > * { pointer-events: auto; }
.mk-layer > .mk-tints, .mk-layer > .mk-ring, .mk-layer > .mk-hint { pointer-events: none; }
.mk-tints i { position: fixed; background: rgb(31 111 120 / .22); border-radius: 2px; }
.mk-ring { position: fixed; box-sizing: border-box; border: 2px solid var(--sel-edge, #1F6F78); border-radius: 6px; }
.reader[data-paper="night"] .mk-ring, .reader[data-paper="dusk"] .mk-ring { border-color: #7CC6CE; }

/* Handles: a 2.5 px teal bar with a 14 px dot (a paper ring around it), in a 44 px wide target */
.mk-h { position: fixed; width: 44px; margin-left: -22px; height: calc(var(--lh, 24px) + 26px); touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; }
.mk-hs { transform: translateY(-26px); }
.mk-h .bar { position: absolute; left: 21px; width: 2.5px; height: var(--lh, 24px); background: var(--sel-edge, #1F6F78); border-radius: 2px; }
.mk-hs .bar { top: 26px; } .mk-he .bar { top: 0; }
.mk-h .dot { position: absolute; left: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--sel-edge, #1F6F78); box-shadow: 0 0 0 2px var(--paper, #F7F3EA), 0 2px 6px rgb(0 0 0 / .25); }
.mk-hs .dot { top: 10px; } .mk-he .dot { top: calc(var(--lh, 24px) + 2px); }
.reader[data-paper="night"] .mk-h .bar, .reader[data-paper="night"] .mk-h .dot, .reader[data-paper="dusk"] .mk-h .bar, .reader[data-paper="dusk"] .mk-h .dot { background: #5FB3BC; }

/* Sentence and Paragraph: a small paper pill under the selection's end */
.mk-pill { position: fixed; display: flex; align-items: center; padding: 2px; border-radius: 24px; background: var(--pcard, #FFFDF8); color: var(--ink, #1F2328);
  box-shadow: var(--float, 0 10px 30px rgb(0 0 0 / .18), 0 2px 6px rgb(0 0 0 / .10)), 0 0 0 1px var(--pline2, rgb(31 35 40 / .08)); }
.mk-pb { min-height: 44px; padding: 0 16px; border: 0; background: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; border-radius: 22px; cursor: pointer;
  font: 700 calc(15px * var(--cscale, 1)) var(--sans); }
.mk-pb .icon { color: var(--sel-edge, #1F6F78); }
.mk-pb + .mk-pb { border-left: 1px solid var(--prule, #E3DCCD); border-radius: 0 22px 22px 0; }
.mk-pb:hover { background: color-mix(in srgb, var(--ink, #1F2328) 6%, transparent); }

/* The hint where the status line is */
.mk-hint { position: fixed; left: 0; right: 0; bottom: 0; height: max(var(--pb, 46px), 40px); box-sizing: border-box; padding: 0 12px var(--safe-bottom, 0px); display: flex; align-items: center; justify-content: center;
  background: var(--paper, #F7F3EA); color: var(--pmuted, #6B6458); font: calc(13px * var(--cscale, 1))/1.3 var(--sans); text-align: center; }
@media (min-width: 600px) { .mk-hint { font-size: calc(14px * var(--cscale, 1)); } }

/* The ink bar: color dots, Note, Copy, More (a highlight's bar adds Delete) */
.mk-bar { position: fixed; display: flex; align-items: center; gap: 2px; min-height: 54px; width: max-content; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 4px 6px; border-radius: 27px;
  background: var(--bar-ink, #1B232C); color: var(--bar-text, #F4F1EA); box-shadow: 0 18px 40px -12px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06) inset;
  transition: opacity 160ms var(--ease, ease), transform 160ms var(--ease, ease); }
.mk-bar.in { opacity: 0; transform: translateY(6px); }
.mk-bar.below.in { transform: translateY(-6px); }
.mk-arrow { position: absolute; bottom: -7px; width: 16px; height: 16px; margin-left: -8px; background: var(--bar-ink, #1B232C); transform: rotate(45deg); border-radius: 2px; pointer-events: none; }
.mk-bar.below .mk-arrow { bottom: auto; top: -7px; }
.mk-dot { position: relative; width: 44px; min-height: 44px; flex-shrink: 0; border: 0; padding: 0; background: none; color: inherit; border-radius: 22px; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.mk-sw { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; color: #1B232C; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); }
.mk-c-y { background: rgb(242 181 68); } .mk-c-g { background: rgb(120 170 110); } .mk-c-b { background: rgb(104 152 214); } .mk-c-p { background: rgb(222 122 152); }
.mk-c-u { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35), inset 0 -5px 0 -2px #5FB3BC; }
.mk-dot.last .mk-sw { box-shadow: 0 0 0 2px var(--bar-ink, #1B232C), 0 0 0 4px rgb(255 255 255 / .85); }
.mk-bar.named { gap: 0; }
.mk-bar.named .mk-dot, .mk-colors.named .mk-dot { width: auto; min-width: 48px; max-width: 64px; padding: 0 2px; }
.mk-bar.named .mk-act { min-width: 46px; padding: 0 4px; }
.mk-bar.named .mk-sw { width: 24px; height: 24px; }
.mk-nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 62px; font-size: calc(12px * var(--cscale, 1)); font-weight: 700; line-height: 1.12; text-align: center; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.mk-div { width: 1px; height: 26px; margin: 0 4px; flex-shrink: 0; background: rgb(255 255 255 / .16); }
.mk-act { min-width: 48px; min-height: 48px; flex-shrink: 0; border: 0; padding: 0 6px; background: none; color: inherit; border-radius: 16px; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 calc(12px * var(--cscale, 1))/1.1 var(--sans); letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
.mk-act .icon { width: 20px; height: 20px; }
.mk-act:hover, .mk-dot:hover, .mk-mi:hover { background: rgb(255 255 255 / .08); }
.mk-bar :focus-visible, .mk-menu :focus-visible, .mk-colors :focus-visible { outline: 2px solid #7CC6CE; outline-offset: 2px; }
.mk-bar.compact { gap: 0; padding: 4px; }
.mk-bar.compact .mk-act { min-width: 46px; padding: 0 4px; }

/* More, and the other colors on narrow screens */
.mk-menu, .mk-colors { position: fixed; box-sizing: border-box; background: var(--bar-ink, #1B232C); color: var(--bar-text, #F4F1EA); border-radius: 18px; padding: 6px;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06) inset; }
.mk-menu { display: flex; flex-direction: column; gap: 2px; max-width: calc(100vw - 16px); }
.mk-mi { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: inherit; border-radius: 12px; text-align: left; cursor: pointer;
  font: calc(15px * var(--cscale, 1))/1.25 var(--sans); }
.mk-mi .icon { flex-shrink: 0; color: var(--bar-muted, #AEB6BF); }
.mk-colors { display: flex; gap: 2px; border-radius: 27px; }
.mk-colors .mk-dot { width: auto; min-width: 48px; max-width: 64px; padding: 0 2px; }
.mk-tip { position: fixed; padding: 6px 12px; border-radius: 12px; background: var(--bar-ink, #1B232C); color: var(--bar-text, #F4F1EA); font: 700 13px var(--sans); white-space: nowrap; pointer-events: none !important;
  box-shadow: 0 8px 20px -8px rgb(0 0 0 / .5); }

/* Colors on top of the meaning card (one word held and lifted) */
.mk-crow { display: flex; align-items: center; gap: 4px; padding: 8px 14px 0; flex-shrink: 0; }
.mk-crow .mk-sw { box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / .10); }
.mk-crow .mk-dot.last .mk-sw { box-shadow: 0 0 0 2px var(--pcard, #FFFDF8), 0 0 0 4px var(--ink, #1F2328); }
.mk-crow .mk-nm { color: var(--pmuted, #6B6458); }
.mk-crow.named .mk-dot { width: auto; min-width: 48px; max-width: 64px; padding: 0 2px; }
.mk-crow .mk-dot:hover { background: color-mix(in srgb, var(--ink, #1F2328) 7%, transparent); }

/* ===================================================================================================================
   The note editor: a card on phones (on top of the keyboard), a 420 px popover on wider screens
   =================================================================================================================== */
.mk-note-ed { position: fixed; z-index: 35; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 14px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--pcard, var(--card, #FFFDF8)); color: var(--ink, #1F2328); border-radius: 26px; font-family: var(--sans); font-size: calc(15px * var(--cscale, 1)); line-height: 1.4;
  box-shadow: var(--float, 0 10px 30px rgb(0 0 0 / .18), 0 2px 6px rgb(0 0 0 / .10)), 0 0 0 1px var(--pline2, rgb(31 35 40 / .08));
  transition: opacity 180ms var(--ease, ease), transform 180ms var(--ease, ease); }
.mk-note-ed.phone { left: 8px; right: 8px; }
.mk-note-ed.pop { border-radius: 20px; padding: 12px 16px 14px; overflow: visible; }
.mk-note-ed.pop.tight { overflow-y: auto; }
.mk-note-ed.pop.tight .mk-ptr { display: none; }
.mk-note-ed.in { opacity: 0; transform: translateY(16px); }
.mk-note-ed.pop.in { transform: scale(.97); }
.mk-note-ed.out { opacity: 0; transform: translateY(12px); }
.mk-grab { flex-shrink: 0; width: 40px; height: 5px; margin: 0 auto -2px; border-radius: 3px; background: color-mix(in srgb, var(--pmuted, #6B6458) 45%, transparent); }
.mk-ptr { position: absolute; width: 18px; height: 18px; margin-left: -9px; background: var(--pcard, #FFFDF8); transform: rotate(45deg); border-radius: 3px; top: -8px; box-shadow: -1px -1px 0 var(--pline2, rgb(31 35 40 / .08)); }
.mk-note-ed[data-side="above"] .mk-ptr { top: auto; bottom: -8px; box-shadow: 1px 1px 0 var(--pline2, rgb(31 35 40 / .08)); }
.mk-nhead { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; border: 0; border-radius: 22px; cursor: pointer; flex-shrink: 0; max-width: 60%;
  background: color-mix(in srgb, var(--ink, #1F2328) 7%, transparent); color: var(--ink, #1F2328); font: 700 calc(16px * var(--cscale, 1)) var(--sans); }
.mk-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-chip .mk-sw { width: 16px; height: 16px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.mk-chip .mk-c-u { box-shadow: inset 0 -4px 0 -1px #1F6F78, inset 0 0 0 1px rgb(0 0 0 / .15); }
.mk-kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; flex-shrink: 0; }
.mk-where { flex: 1 1 auto; min-width: 0; color: var(--pmuted, #6B6458); font-size: calc(14px * var(--cscale, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-x-btn { flex-shrink: 0; width: 44px; height: 44px; margin-right: -4px; border: 0; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink, #1F2328) 7%, transparent); color: var(--ink, #1F2328); }
.mk-ncolors { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-ncolors .mk-dot { width: 64px; color: var(--pmuted, #6B6458); }
.mk-ncolors .mk-sw { box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / .1); }
.mk-ncolors .mk-dot.on .mk-sw { box-shadow: 0 0 0 2px var(--pcard, #FFFDF8), 0 0 0 4px var(--ink, #1F2328); }
.mk-ncolors .mk-c-u { box-shadow: inset 0 -5px 0 -2px #1F6F78, inset 0 0 0 1.5px rgb(0 0 0 / .15); }
.mk-nq { margin: 0; padding: 0 0 0 12px; border-left: 3px solid rgb(242 181 68); font-family: var(--serif); font-style: italic; font-size: calc(15.5px * var(--cscale, 1)); line-height: 1.5; color: var(--pmuted, #6B6458);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mk-nq.mk-q-g { border-left-color: rgb(120 170 110); } .mk-nq.mk-q-b { border-left-color: rgb(104 152 214); } .mk-nq.mk-q-p { border-left-color: rgb(222 122 152); }
.mk-nq.mk-q-u { border-left-color: #1F6F78; } .mk-nq.bm { border-left-color: #B03A5B; }
.mk-nfield { display: block; width: 100%; box-sizing: border-box; min-height: 52px; max-height: calc(6 * 1.45em + 28px); margin: 0; padding: 12px 14px; resize: none; overflow-y: auto;
  border: 2px solid transparent; border-radius: 16px; background: color-mix(in srgb, var(--ink, #1F2328) 6%, var(--pcard, #FFFDF8)); color: var(--ink, #1F2328);
  font: calc(17px * var(--cscale, 1))/1.45 "Atkinson Hyperlegible", var(--sans); }
.mk-nfield::placeholder { color: var(--pmuted, #6B6458); opacity: 1; }
.mk-nfield:focus { outline: none; border-color: var(--sel-edge, #1F6F78); }
.mk-note-ed.kid .mk-nfield { font-size: calc(19px * var(--cscale, 1)); }
/* With the keyboard up: one line of the passage, no tags, so the page above stays in view */
.mk-note-ed.kb .mk-nq { -webkit-line-clamp: 1; }
.mk-note-ed.kb .mk-tags, .mk-note-ed.kb .mk-grab, .mk-note-ed.kb .mk-truth { display: none; }
.mk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--pmuted, #6B6458); }
.mk-tag { display: inline-flex; align-items: center; gap: 0; min-height: 36px; padding: 0 2px 0 12px; border-radius: 18px; border: 0; margin: 4px 0;
  background: color-mix(in srgb, #1F6F78 14%, var(--pcard, #FFFDF8)); color: var(--ink, #1F2328); font: 700 calc(14px * var(--cscale, 1)) var(--sans); }
.mk-tag.add { padding: 0 14px; border: 1px solid var(--prule, #E3DCCD); background: none; font-weight: 400; cursor: pointer; position: relative; }
.mk-tag.add::after, .mk-tagx::after { content: ""; position: absolute; inset: -4px; }
.mk-tagx { position: relative; width: 34px; height: 34px; border: 0; padding: 0; background: none; color: inherit; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mk-tagin { min-height: 36px; width: 11em; max-width: 100%; box-sizing: border-box; padding: 0 12px; border-radius: 18px; border: 1px solid var(--prule, #E3DCCD); background: var(--pcard, #FFFDF8); color: var(--ink, #1F2328); font: 16px var(--sans); }
.mk-nalt:empty { display: none; }
.mk-nalt { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink, #1F2328) 5%, transparent); }
.mk-alth { margin: 0; font-weight: 700; font-size: calc(14px * var(--cscale, 1)); }
.mk-altt { margin: 0; white-space: pre-wrap; max-height: 7.5em; overflow-y: auto; font-size: calc(15px * var(--cscale, 1)); }
.mk-altm { margin: 0; font-size: 13px; color: var(--pmuted, #6B6458); }
.mk-altb { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-nfoot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.mk-nfoot[hidden] { display: none; }
.mk-status { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 700 calc(14px * var(--cscale, 1)) var(--sans); color: #1F6F78; }
.reader[data-paper="night"] .mk-status, .reader[data-paper="dusk"] .mk-status { color: #7CC6CE; }
.mk-status.saving { color: var(--pmuted, #6B6458); }
.mk-vis { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 22px; background: none; color: var(--ink, #1F2328); cursor: pointer; font: 700 calc(14px * var(--cscale, 1)) var(--sans); }
.mk-vis:hover, .mk-del:hover { background: color-mix(in srgb, var(--ink, #1F2328) 7%, transparent); }
.mk-sp { flex: 1 1 0; }
.mk-count { font-size: 13px; color: var(--pmuted, #6B6458); font-variant-numeric: tabular-nums; }
.mk-del { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink, #1F2328); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mk-done { min-height: 44px; }
.mk-truth { margin: 0; font-size: calc(13px * var(--cscale, 1)); line-height: 1.4; color: var(--pmuted, #6B6458); }
.mk-ask { display: flex; flex-direction: column; gap: 8px; }
.mk-ask p { margin: 0; font-weight: 700; }
.mk-note-ed :focus-visible { outline: 2px solid var(--sel-edge, #1F6F78); outline-offset: 2px; }
@media (max-width: 339px) { .mk-note-ed.phone { left: 4px; right: 4px; padding: 6px 10px 10px; } .mk-vis span { display: none; } }

/* ===================================================================================================================
   Mark a passage (a dialog in the app's sheet)
   =================================================================================================================== */
.mk-passage .mk-pset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mk-passage legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
.mk-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mk-plist li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.mk-plist input { flex-shrink: 0; width: 22px; height: 22px; margin: 3px 0 0; accent-color: #1F6F78; }
.mk-plist label { flex: 1 1 auto; min-width: 0; min-height: 28px; cursor: pointer; }
.mk-ptext { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.mk-ptag { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mk-pcolors { display: flex; flex-wrap: wrap; gap: 0 16px; }
.mk-pc { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.mk-pc input { width: 20px; height: 20px; margin: 0; accent-color: #1F6F78; }
.mk-pc label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.mk-pc .mk-sw { width: 22px; height: 22px; box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / .12); }
.mk-pc .mk-c-u { box-shadow: inset 0 -5px 0 -2px #1F6F78, inset 0 0 0 1.5px rgb(0 0 0 / .15); }
.mk-pnote { width: 100%; box-sizing: border-box; font: 17px/1.45 var(--sans); }
.mk-pmsg { margin: 0; color: var(--bad, #B3261E); font-weight: 700; }

/* Calmer motion: things appear without moving */
@media (prefers-reduced-motion: reduce) { .mk-bar, .mk-note-ed { transition: none; } }
html.calm .mk-bar, html.calm .mk-note-ed { transition: none; }
