/* Mark the change on the picture. Loaded after articles.css, for this article only.

   The colour rule does the arguing. Orange is a change that came back wrong: a leak, because each one costs a
   round. Indigo is the rounds that came back. What you send is the one dark thing in each picture, and so is
   every mark: a mark is something you send. A round that came back right is outlined in ink: it is the end of
   the wait, not a gain in itself. A guess is dashed grey, because it is not there yet. Everything else is grey. */

.a-hero h1, .a-body h2, .a-body h3 { text-wrap: balance; }
.a-hero .lead, .a-body p, .a-body li, .a-body td { text-wrap: pretty; }
.mk-nw { white-space: nowrap; }
.a-facts dd { text-wrap: balance; }
/* The list of steps: a title keeps its line breaks when its step lights up, and never ends on one lonely word. */
.a-rail li a > span:nth-child(2) { text-wrap: pretty; }
.a-rail li.is-here a { font-weight: inherit; }
.mk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- The example page ----------
   One made-up page, drawn once as a symbol and used in every picture and in the marker. It is drawn in
   greys on purpose: no orange and no indigo, so neither colour decorates. Its three faults are real ones:
   the date is small, the two buttons look the same, and Sign in sits closer to the edge than the logo. */
.mks-page { fill: var(--surface); stroke: #B5BAD2; stroke-width: 1.5; }
.mks-logo { fill: var(--ink); }
.mks-brand { font: 700 17px/1 var(--sans); fill: var(--ink); }
.mks-pill { fill: none; stroke: var(--ink-2); stroke-width: 1.75; }
.mks-pt { font: 700 13.5px/1 var(--sans); fill: var(--ink); }
.mks-rule { fill: none; stroke: #D5D9EA; stroke-width: 1; }
.mks-h { font: 700 33px/1 var(--serif); letter-spacing: -0.5px; fill: var(--ink); }
.mks-sub { font: 600 15px/1 var(--sans); fill: var(--ink-2); }
.mks-photo { fill: var(--rule); }
.mks-shelf { fill: none; stroke: #AEB5D6; stroke-width: 2.5; stroke-linecap: round; }
.mks-pot1 { fill: #8B92B5; }
.mks-pot2 { fill: #AEB5D6; }
.mks-pot3 { fill: #9AA1C4; }
.mks-handle { fill: none; stroke: #9AA1C4; stroke-width: 5; stroke-linecap: round; }
.mks-date { font: 500 10.5px/1 var(--sans); fill: var(--ink-hint); }
.mks-ct { font: 700 14.5px/1 var(--sans); fill: var(--ink); }
/* The one change that was asked for: the button, filled. Ink, because a right change is not a gain in itself. */
.mks-fill { fill: var(--ink); }
.mks-ct-on { font: 700 14.5px/1 var(--sans); fill: #fff; }

/* The same page after a restyle nobody asked for. All of it is orange, because all of it is the leak. */
.mkr-page { fill: #FFF6E9; stroke: var(--lift); stroke-width: 1.5; }
.mkr-band { fill: var(--lift); }
.mkr-brand { font: 800 15px/1 var(--sans); letter-spacing: 4px; fill: var(--night); }
.mkr-h { font: 800 30px/1 var(--sans); letter-spacing: 5px; fill: var(--lift-ink); }
.mkr-h2 { font: italic 400 19px/1 var(--serif); fill: var(--lift-ink); }
.mkr-photo { fill: var(--lift-tint); stroke: var(--lift-ring); stroke-width: 2; }
.mkr-pot { fill: var(--lift-ring); }
.mkr-date { font: 700 12px/1 var(--sans); fill: var(--lift-ink); }
.mkr-btn { fill: var(--lift); }
.mkr-ct { font: 800 13px/1 var(--sans); letter-spacing: 2px; fill: var(--night); }

/* ---------- A mark ----------
   A number on the picture. A spot is the number alone; a box is an outline with the number on its corner. */
.mk-pin { --ax: -50%; --ay: -50%; position: absolute; z-index: 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 2px #fff; color: #fff; font: 700 0.875rem/1 var(--mono); font-style: normal; transform: translate(var(--ax), var(--ay)); }
/* On a box the number stands clear of the outline: above its corner, or beside it when the box is at the
   top of the frame, or under it when there is no room beside it either. */
.mk-pin.is-up { --ax: 0%; --ay: calc(-100% - 4px); }
.mk-pin.is-left { --ax: calc(-100% - 4px); --ay: 0%; }
.mk-pin.is-down { --ax: 0%; --ay: 4px; }
.mk-boxed { position: absolute; z-index: 1; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--night); background: rgba(18, 22, 51, 0.07); pointer-events: none; }
@keyframes mk-pop { 0% { transform: translate(var(--ax), var(--ay)) scale(0); } 62% { transform: translate(var(--ax), var(--ay)) scale(1.16); } 100% { transform: translate(var(--ax), var(--ay)) scale(1); } }
@keyframes mk-in { 0% { opacity: 0; transform: scale(0.94); } 100% { opacity: 1; transform: none; } }

.mk-shot { position: relative; min-width: 0; }
.mk-shot > svg { display: block; width: 100%; height: auto; }
.mk-shot .mk-pin { width: 1.5rem; height: 1.5rem; font-size: 0.8125rem; }

/* A guess: a dashed box around something a phrase could mean, with the phrase on its edge. The label sits
   on a corner that has room, so it never covers what the box is around. */
.mk-q { position: absolute; display: flex; align-items: flex-start; border-radius: 8px; outline: 2px dashed var(--ink-hint); outline-offset: 0; }
.mk-q b { position: relative; top: -0.8rem; left: 6px; flex: none; padding: 0.1em 0.55em; border-radius: 999px; background: var(--ink-hint); color: #fff; font: 700 0.6875rem/1.45 var(--sans); white-space: nowrap; }
.mk-q.is-right { justify-content: flex-end; }
.mk-q.is-right b { left: -6px; }
.mk-q.is-under { align-items: flex-end; }
.mk-q.is-under b { top: 0.8rem; }

/* ---------- The set piece: one page, sent back two ways ----------
   Two columns, one per way of sending the same page back, on shared rows: the page as the fixer gets it,
   what you sent with it, then the rounds. Sent as a paragraph, the page is full of guesses and two rounds
   come back wrong before the third is right. Sent as three marks, round 1 is right, and the two rounds
   after it are the indigo block, standing exactly beside rounds 2 and 3 on the left. On phones the two
   columns stack, each a whole story.
   Armed by tool.js: the armed state is a complete picture on purpose (the marks are not on the page yet,
   their lines are dimmer, and the rounds that came back are not drawn). On arrival the marks land one by
   one, then the indigo draws in. Without JS, or with reduced motion, all of it is simply on. */
.mk-fig { margin: 26px 0 0; padding: clamp(14px, 2.2vw, 22px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); display: grid; gap: 14px; min-width: 0; }
.a-hero .mk-head { padding: 0 2px; color: var(--ink-hint); }
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; min-width: 0; }
.mk-grid > .is-a { grid-column: 1; }
.mk-grid > .is-b { grid-column: 2; }
.mk-lh { grid-row: 1; padding: 0 2px 2px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.mk-desk { grid-row: 2; display: grid; place-items: center; padding: 26px 16px 18px; border-radius: 14px; background: var(--grid); min-width: 0; }
.mk-desk .mk-shot { width: 100%; max-width: 18.5rem; }

.mk-sent { grid-row: 3; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-radius: 12px; background: var(--night); color: var(--on-night); min-width: 0; }
.mk-sent small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--on-night-2); }
.mk-sent.is-para > span { font-size: 1.0625rem; font-weight: 500; line-height: 1.55; text-wrap: pretty; }
.mk-sent u { text-decoration: none; padding-bottom: 2px; background: linear-gradient(var(--lift), var(--lift)) 0 100% / 100% 2px no-repeat; }
/* What the paragraph leaves open, as the fixer would ask it. Dashed, like the guesses on the page above. */
.mk-sent.is-para .mk-asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.mk-asks i { padding: 0.4em 0.8em; border-radius: 999px; outline: 2px dashed #6C739A; outline-offset: -2px; font-style: normal; color: var(--on-night); white-space: nowrap; }
.mk-sent em { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--night-line); font-size: 0.875rem; font-style: normal; line-height: 1.45; color: var(--on-night-2); text-wrap: pretty; }
.mk-n { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.875rem; line-height: 1.45; color: var(--on-night-2); text-wrap: pretty; }
.mk-n b { text-wrap: balance; }
.mk-n i { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; color: #fff; font: 700 0.8125rem/1 var(--mono); font-style: normal; }
.mk-n b { display: block; font-weight: 700; color: var(--on-night); transition: color 0.4s; transition-delay: calc(var(--n, 0) * 180ms + 380ms); }
.mk-keepline { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--night-line); font-size: 0.875rem; line-height: 1.45; color: var(--on-night); }
.mk-keepline b { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--on-night-2); }

/* A round that came back: wrong in orange, right outlined in ink. */
.mk-c { display: grid; gap: 3px; align-content: start; padding: 10px 14px 12px; border-radius: 10px; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--ink); min-width: 0; overflow-wrap: break-word; text-wrap: pretty; }
.mk-c small { display: flex; align-items: center; gap: 5px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.mk-c.is-miss { background: var(--lift-tint); }
.mk-c.is-miss small { color: var(--lift-ink); }
.mk-c.is-yes { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.mk-c.is-yes small { color: var(--ink-2); }
.mk-c.is-yes small::after { content: ""; width: 0.75rem; height: 0.42rem; margin: -0.2rem 0 0 1px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.mk-c.is-you { background: var(--night); color: #fff; }
.mk-c.is-you small { color: var(--on-night-2); }
.mk-grid > .is-r1 { grid-row: 4; }
.mk-grid > .is-r2 { grid-row: 5; }
.mk-grid > .is-r3 { grid-row: 6; }
.mk-back { grid-column: 2; grid-row: 5 / span 2; display: grid; place-items: center; padding: 10px 12px; border-radius: 10px; background: var(--primary-deep); clip-path: inset(0 0 0 0 round 10px); transition: clip-path 0.9s var(--ease) 0.2s; }
.mk-back span { font-size: 1.125rem; font-weight: 700; line-height: 1.25; text-align: center; color: #fff; transition: opacity 0.4s 0.85s; }

.a-hero .mk-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0 2px; list-style: none; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.mk-key li { display: flex; align-items: center; gap: 7px; }
.mk-key i { display: block; width: 14px; height: 10px; border-radius: 3px; }
.k-you { background: var(--night); }
.k-guess { outline: 2px dashed var(--ink-hint); outline-offset: -2px; }
.k-miss { background: var(--lift-tint); box-shadow: inset 0 0 0 1px var(--lift); }
.k-yes { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.k-back { background: var(--primary-deep); }

.mk-fig.is-ready:not(.is-marked) .mk-shot .mk-pin { transform: translate(var(--ax), var(--ay)) scale(0); }
.mk-fig.is-ready:not(.is-marked) .mk-shot .mk-boxed { opacity: 0; }
.mk-fig.is-ready:not(.is-marked) .mk-n b { color: #7178A0; transition: none; }
.mk-fig.is-ready.is-marked .mk-shot .mk-pin { animation: mk-pop 0.42s var(--ease) both; animation-delay: calc(var(--n, 0) * 180ms + 150ms); }
.mk-fig.is-ready.is-marked .mk-shot .mk-boxed { animation: mk-in 0.3s var(--ease) both; animation-delay: calc(var(--n, 0) * 180ms + 150ms); }
.mk-fig.is-ready:not(.is-back) .mk-back { clip-path: inset(0 0 100% 0 round 10px); transition: none; }
.mk-fig.is-ready:not(.is-back) .mk-back span { opacity: 0; transition: none; }

.mk-cap { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }
.a-hero .mk-cap + .a-by { margin-top: 32px; }

/* The one rule, set apart, so the opening is not four paragraphs in a row. */
.a-body .mk-pull { padding-left: 18px; border-left: 3px solid var(--ink); font: 700 clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem)/1.25 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }

/* ---------- Every vague note is a guess ---------- */
.mk-vague td:first-child { width: 40%; }

/* ---------- One mark, two lines ----------
   Mark 1 close up, and the two lines under that number, each with what it is for. */
.mk-anat { margin: 0; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 16px; min-width: 0; }
.mk-anat-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 26px; align-items: center; min-width: 0; }
.mk-zoom { display: grid; gap: 42px; justify-items: start; padding: 14px 22px 24px 18px; border-radius: 14px; background: var(--grid); min-width: 0; }
.mk-zoom-l, .mk-al small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--ink-hint); }
.mk-zoom-box { position: relative; margin-left: 14px; padding: 9px 13px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--night); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--ink-hint); white-space: nowrap; }
.mk-zoom-box .mk-pin { left: 0; top: 0; }
.mk-lines { display: grid; gap: 12px; min-width: 0; }
.mk-al { display: grid; gap: 2px; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.mk-al b { font-weight: 700; }
.mk-al em { justify-self: start; padding: 0.15em 0.7em; border-radius: 999px; background: var(--night); font: 700 0.75rem/1.5 var(--sans); font-style: normal; color: #fff; }
.mk-anat figcaption, .mk-stay figcaption { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- What stays ----------
   The same page three times: what you asked, what came back with no keep line, and what comes back with one. */
.mk-stay { margin: 0; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--grid); display: grid; gap: 16px; min-width: 0; }
.mk-stay-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; min-width: 0; }
.mk-stay-in > .mk-c.is-you { grid-column: 1 / -1; }
.mk-s { display: grid; gap: 10px; align-content: start; min-width: 0; }

/* ---------- The marker ----------
   A frame on a grey desk, and the marks beside it. The frame is the example page, or a blank sheet in the
   shape of the reader's own piece, ruled in thirds so a place on it has a name. */
.mk-tool { display: grid; gap: 14px; margin-top: 6px; min-width: 0; }
.a-body .mk-tool .fine { line-height: 1.5; color: var(--ink-hint); }
.mk-label, .mk-q-f > label, .mk-kind legend { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.mk-q-f > label span { font-weight: 500; color: var(--ink-hint); }
.mk-q-f { display: grid; gap: 8px; min-width: 0; }
.mk-tool textarea { min-width: 0; width: 100%; padding: 0.65em 0.8em; border: 1px solid #D5D9EA; border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 1rem/1.5 var(--sans); resize: vertical; min-height: 5.5rem; transition: border-color 0.2s, box-shadow 0.2s; }
.mk-tool textarea.is-mono { min-height: 11rem; font: 500 0.9375rem/1.5 var(--mono); }
.mk-tool textarea.is-line { display: block; min-height: 0; resize: none; overflow: hidden; line-height: 1.4; }
.mk-tool textarea::placeholder { color: var(--ink-hint); font-weight: 400; font-family: var(--sans); }
.mk-tool textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }

.mk-kind { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.mk-kind legend { width: 100%; padding: 0; margin-bottom: 8px; }
.mk-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-kind label, .mk-seg button { padding: 0.55em 1em; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px #D5D9EA; color: var(--ink); font: 700 0.9375rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.mk-kind label:hover, .mk-seg button:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.mk-kind input:checked + label, .mk-seg [aria-pressed="true"] { background: var(--night); box-shadow: none; color: #fff; }
.mk-kind input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 3px; }
.mk-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-seg > span { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); margin-right: 2px; }
.mk-seg button { padding: 0.5em 0.95em; font-size: 0.875rem; }

/* One grey desk holds the frame and everything that acts on it: the frame on the left, the next mark, the
   marks so far and the three actions on the right, top to bottom of the same panel. */
.mk-work { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 18px 24px; align-items: stretch; padding: clamp(18px, 3vw, 24px); border-radius: 22px; background: var(--grid); min-width: 0; }
.mk-work[data-frame="wide"] { grid-template-columns: minmax(0, 1fr); }
.mk-board { display: grid; justify-items: center; align-content: start; gap: 12px; padding-top: 8px; min-width: 0; }
.mk-stage { position: relative; width: 100%; max-width: 21rem; aspect-ratio: 16 / 17; touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.mk-stage[data-frame="wide"] { max-width: none; aspect-ratio: 16 / 9; }
.mk-stage[data-frame="square"] { aspect-ratio: 1; }
.mk-stage[data-frame="tall"] { max-width: 17rem; aspect-ratio: 2 / 3; }
.mk-stage.is-box { touch-action: none; }
.mk-art, .mk-blank { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.mk-stage:not([data-frame="sample"]) .mk-art, .mk-stage[data-frame="sample"] .mk-blank { display: none; }
.mk-blank {
  display: grid; place-items: center; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px #D5D9EA;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 0.5px), var(--rule) calc(33.333% - 0.5px), var(--rule) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), var(--rule) calc(66.666% - 0.5px), var(--rule) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(0deg, transparent calc(33.333% - 0.5px), var(--rule) calc(33.333% - 0.5px), var(--rule) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), var(--rule) calc(66.666% - 0.5px), var(--rule) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    var(--surface);
}
.mk-blank span { max-width: 11rem; font-size: 0.875rem; font-weight: 600; line-height: 1.4; text-align: center; color: var(--ink-hint); text-wrap: balance; }
.mk-stage.has-marks .mk-blank span { visibility: hidden; }
.mk-layer { position: absolute; inset: 0; }
.mk-layer .mk-pin { cursor: grab; touch-action: none; }
.mk-layer .mk-pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.mk-layer .mk-pin:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.mk-layer .mk-pin.is-new { animation: mk-pop 0.34s var(--ease) both; }
.mk-layer .mk-boxed.is-new { animation: mk-in 0.24s var(--ease) both; }
.mk-rubber { position: absolute; z-index: 3; border-radius: 7px; outline: 2px dashed var(--night); outline-offset: -2px; background: rgba(18, 22, 51, 0.07); pointer-events: none; }
.mk-rubber[hidden] { display: none; }
.mk-say { font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }

.mk-side { display: grid; gap: 18px; align-content: space-between; min-width: 0; }
.mk-side-top { display: grid; gap: 12px; align-content: start; min-width: 0; }
.mk-list { display: grid; gap: 6px; min-width: 0; }
/* Before the first mark: the row it will fill, dashed, the way an empty field holds its example. */
.mk-slot { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px 9px 9px; border-radius: 12px; outline: 2px dashed #B5BAD2; outline-offset: -2px; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink-hint); }
.mk-slot i { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; outline: 2px dashed #B5BAD2; outline-offset: -2px; font: 700 0.875rem/1 var(--mono); font-style: normal; }
.mk-how { font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.mk-row { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 6px 7px 9px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mk-row i, .mk-card-h > i { position: static; transform: none; box-shadow: none; }
.mk-row span small { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-hint); }
.mk-x { width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: none; color: var(--ink-hint); font: 600 1.125rem/1 var(--sans); cursor: pointer; }
.mk-x:hover { background: var(--grid); color: var(--ink); }

.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* One quiet pill for every control: the one filled button on the page is the consult. */
.mk-add, .mk-text { padding: 0.5em 0.95em; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px #D5D9EA; color: var(--ink); font: 700 0.875rem/1.2 var(--sans); cursor: pointer; transition: box-shadow 0.2s; }
.mk-add::before { content: "+ "; color: var(--ink-hint); }
#mk-use::before { content: none; }
.mk-add:hover, .mk-text:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.mk-add[disabled] { color: var(--ink-hint); cursor: default; box-shadow: inset 0 0 0 1px var(--rule); }
.mk-tool button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.mk-nojs { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- Two lines per mark ----------
   One card per number. A small map of the frame shows where that mark sits, so nobody scrolls back to look. */
.mk-cards { display: grid; gap: 12px; min-width: 0; }
.mk-cards:empty { display: none; }
.mk-card { display: grid; gap: 12px; padding: 14px 16px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.mk-card-h { display: grid; grid-template-columns: 1.75rem auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; min-width: 0; }
.mk-loc { display: block; width: 2.75rem; height: auto; }
.mk-loc .l-page { fill: var(--paper); stroke: #B5BAD2; stroke-width: 1; }
.mk-loc .l-rule { fill: none; stroke: var(--rule); stroke-width: 1; }
.mk-loc .l-here { fill: var(--night); }
.mk-loc .l-box { fill: rgba(18, 22, 51, 0.12); stroke: var(--night); stroke-width: 1.5; }
.mk-loc .l-else { fill: #B5BAD2; }
.mk-card-t { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mk-card-t small { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-hint); }
.mk-must { display: flex; gap: 6px; }
.mk-must button { padding: 0.45em 0.85em; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px #D5D9EA; color: var(--ink); font: 700 0.8125rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.mk-must button:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.mk-must [aria-pressed="true"] { background: var(--night); box-shadow: none; color: #fff; }

.mk-lint, .mk-gaps { display: grid; gap: 8px; min-width: 0; }
.mk-lint:empty, .mk-gaps:empty { display: none; }
.mk-flag { padding: 12px 14px; border-radius: 12px; background: var(--lift-tint); font-size: 0.9375rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.mk-flag b { display: block; font-weight: 700; color: var(--lift-ink); }
.mk-clean { padding: 12px 14px; border-radius: 12px; background: var(--primary-tint); font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }
.mk-clean b { display: block; font-weight: 700; color: var(--primary-deep); }
/* A hint is helper text, not another box: the boxes on this page are the fields and the feedback. */
.mk-wait { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }
.mk-wait b { display: block; font-weight: 700; color: var(--ink); }

/* What a step writes into the feedback, live. Until the reader has something of their own it is an empty slot,
   dashed, with the example in grey. It turns dark the moment it holds their words. */
.mk-says { display: grid; gap: 6px; padding: 12px 16px 14px; border-radius: 12px; background: var(--night); min-width: 0; transition: background-color 0.3s; }
.mk-says-l { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--on-night-2); }
.mk-says pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 0.875rem/1.6 var(--mono); color: var(--on-night); }
.mk-says.is-ex { background: none; outline: 2px dashed #C9CEE3; outline-offset: -2px; }
.mk-says.is-ex .mk-says-l, .mk-says.is-ex pre { color: var(--ink-hint); }

/* ---------- The feedback ---------- */
.mk-out { display: grid; gap: 12px; min-width: 0; }
.mk-out .a-code.is-tall pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-size { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }
.mk-size.is-short { color: var(--lift-ink); }

.a-proof { grid-template-columns: minmax(0, 1fr); }

/* ---------- Phones ----------
   Side by side leaves no room for a sentence here, so each picture gets its own phone layout. */
@media (max-width: 640px) {
  /* The two ways stack: the paragraph's whole story, then the marks'. The indigo block keeps the height of
     the two rounds it stands for. */
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-grid > * { grid-column: 1 !important; grid-row: auto !important; }
  .mk-lh.is-b { margin-top: 18px; }
  .mk-desk .mk-shot { max-width: 18.5rem; }
  .mk-back { min-height: 7.5rem; }

  .mk-vague td:first-child { width: 100%; }

  .mk-anat-in { grid-template-columns: minmax(0, 1fr); }
  .mk-zoom { justify-self: start; }

  /* The two pages run down, each as wide as the figure allows. */
  .mk-stay-in { grid-template-columns: minmax(0, 1fr); }
  .mk-s + .mk-s { margin-top: 8px; }

  .mk-work { grid-template-columns: minmax(0, 1fr); }
  .mk-card-h { grid-template-columns: 1.75rem auto minmax(0, 1fr); }
  .mk-must { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .mk-fig { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-back, .mk-back span, .mk-n b, .mk-kind label, .mk-seg button, .mk-must button, .mk-says { transition: none; }
  .mk-layer .mk-pin.is-new, .mk-layer .mk-boxed.is-new { animation: none; }
}
