/* Hesap has a layer of its own, so nothing in a figure rises over a phone's text. Each family draws inside its own
   box, which fills the viewport while one of its pages shows. */
.hesap{position:absolute;inset:0;background:var(--paper);isolation:isolate;user-select:none;-webkit-user-select:none;font-family:var(--body);color:var(--ink)}
/* The figure is lit from the middle: the centre a little lighter than the paper, the corners darker. A dark paper
   lifts its centre, since it has little room to darken. */
.hesap{background:radial-gradient(ellipse farthest-corner at 50% 45%,light-dark(var(--paper),color-mix(in srgb,var(--paper) 88%,var(--ink))) 0%,var(--paper) 70%,light-dark(color-mix(in srgb,var(--paper) 82%,#000),color-mix(in srgb,var(--paper) 45%,#000)) 100%)}
/* The hues that tell a figure's parts apart are the theme's red, blue, green and gold. A kitap older than 0.8.0 gives
   none, and they are turned from the accent's hue. light and dark stay light and dark in either mode, as for eyes and
   pupils. */
.hesap{--hesap-red:var(--red,var(--accent));--hesap-blue:var(--blue,oklch(from var(--accent) l min(c,.16) 255));--hesap-green:var(--green,oklch(from var(--accent) l min(c,.14) 145));--hesap-gold:var(--gold,oklch(from var(--accent) l min(c,.13) 75));--hesap-on-accent:var(--on-accent,var(--paper));--hesap-light:light-dark(var(--paper),var(--ink));--hesap-dark:light-dark(var(--ink),var(--paper))}
@supports not (color:oklch(from red l c h)){
  .hesap{--hesap-blue:var(--blue,var(--ink-2));--hesap-green:var(--green,color-mix(in srgb,var(--accent) 40%,var(--ink)));--hesap-gold:var(--gold,color-mix(in srgb,var(--accent) 50%,var(--paper-2)));--hesap-light:var(--paper);--hesap-dark:var(--ink)}
}
.hesap-family{position:absolute;inset:0;display:flex;flex-direction:column}
.hesap-family[hidden],.hesap-stage[hidden],.hesap-panel[hidden],.hesap-cover[hidden],.hesap-panel [hidden]{display:none}
.hesap-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.hesap-stage{flex:1;min-height:0;position:relative}
/* On a screen with room the readouts stand above the figure in large type. */
.hesap-head{padding:.857rem 1.143rem 0}
.hesap-head[hidden]{display:none}
.hesap-head .hesap-out{gap:.571rem 1.714rem;align-items:flex-end}
.hesap-head .hesap-chip{flex-direction:column;align-items:flex-start;gap:.071rem;border:0;border-radius:0;padding:0;background:none;box-shadow:none}
.hesap-head .hesap-chip small{font-size:.857rem}
.hesap-head .hesap-chip b{font-family:var(--display);font-size:2.286rem;line-height:1.1;text-align:start}
.hesap-head .hesap-chip.hot b,.hesap-head .hesap-chip[aria-pressed="true"] b{color:var(--accent)}
.hesap-head .hesap-btn{margin-inline-start:auto}

/* The panel under the figure holds a challenge's line, then the controls, then the readouts. */
.hesap-panel{position:relative;border-top:1px solid var(--rule);background:var(--panel);padding:.571rem .857rem;display:flex;flex-direction:column;gap:.5rem}
.hesap-ctls,.hesap-acts{display:flex;flex-wrap:wrap;gap:.429rem .857rem;align-items:center}
.hesap-acts{margin-inline-start:auto}
.hesap-out{display:flex;flex-wrap:wrap;gap:.357rem .429rem;align-items:center}
.hesap-panel .hot{outline:2px solid var(--accent);outline-offset:2px}

/* A slider takes the room the other controls leave on its row. */
.hesap-ctl{flex:1 1 14rem;display:flex;align-items:center;gap:.571rem;min-height:44px;border-radius:6px}
.hesap-ctl span{color:var(--ink-2);white-space:nowrap}
.hesap-ctl input{flex:1;min-width:0;min-height:44px;margin:0;accent-color:var(--accent)}
.hesap-ctl output{font-variant-numeric:tabular-nums;font-weight:700;text-align:end;min-width:3ch}

.hesap-btn,.hesap-seg button,.hesap-step button{min-height:44px;min-width:44px;border:1px solid var(--rule);background:var(--paper);color:var(--ink);font:inherit;cursor:pointer;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:.357rem;padding:0 .714rem;white-space:nowrap}
.hesap-btn:disabled,.hesap-step button:disabled{opacity:.45;cursor:default}
.hesap-icon{width:18px;height:18px;flex:none}
:is(.hesap-btn,.hesap-seg button,.hesap-step button,.hesap-chip):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hesap-btn[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
/* The one button that starts something stands out. */
.hesap-primary{background:var(--accent);border-color:var(--accent);color:var(--hesap-on-accent);font-weight:700;padding:0 1.143rem}

.hesap-seg{display:inline-flex;align-items:center}
.hesap-seg-name{color:var(--ink-2);font-size:.857rem;margin-inline-end:.429rem}
.hesap-seg button{border-radius:0;margin-inline-start:-1px;font-variant-numeric:tabular-nums;padding:0 .571rem}
.hesap-seg button:first-of-type{border-start-start-radius:6px;border-end-start-radius:6px;margin-inline-start:0}
.hesap-seg button:last-of-type{border-start-end-radius:6px;border-end-end-radius:6px}
.hesap-seg button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink);position:relative}

.hesap-step{display:inline-flex;align-items:center;gap:.357rem}
.hesap-step span{color:var(--ink-2);margin-inline-end:.214rem}
.hesap-step output{min-width:2.5ch;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}

.hesap-chip{display:inline-flex;gap:.429rem;align-items:baseline;border:1px solid var(--rule);border-radius:999px;padding:.286rem .786rem;background:var(--paper);color:var(--ink);font:inherit}
button.hesap-chip{cursor:pointer;min-height:36px;align-items:center}
.hesap-chip small{color:var(--ink-2);font-size:.857rem;white-space:nowrap}
.hesap-chip b{font-variant-numeric:tabular-nums;text-align:end}
.hesap-swatch{width:.714rem;height:.714rem;border-radius:50%;flex:none;align-self:center;background:currentColor}
.hesap-short{display:none}
.hesap-chip.hot{outline:none;border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.hesap-chip[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

/* A challenge's line holds the goal, whether it is reached, another target and a hint. The goal takes a line of its
   own, so a longer status keeps the panel's height. */
.hesap-goal{display:flex;flex-wrap:wrap;align-items:center;gap:.286rem .571rem}
.hesap-goal-text{margin:0;flex-basis:100%;font-weight:600;line-height:1.4}
.hesap-goal-state{display:inline-flex;align-items:center;gap:.286rem;color:var(--ink-2);flex:1;min-width:0}
.hesap-goal.solved .hesap-goal-state{color:var(--accent)}
.hesap-goal-state svg{width:20px;height:20px}
.hesap-hint{margin:0;flex-basis:100%;color:var(--ink-2)}
.hesap-hint[hidden]{display:none}

/* The values in the text follow the figure. A worked formula takes its own line, and scrolls sideways on a narrow
   screen. */
aside.story .place[data-live]{font-variant-numeric:tabular-nums;font-weight:700}
aside.story .place[data-formula],aside.story .place[data-formula]:is(:hover,:focus-visible,.on){display:block;text-decoration:none;background:none;overflow-x:auto;overflow-y:hidden;padding:.143rem 0}
aside.story .place[data-formula] .katex-display{margin:0;text-align:start}
aside.story .place[data-formula] .katex-display>.katex{text-align:start}

@media (max-width:900px){
  .hesap-panel{padding:.429rem .571rem;gap:.357rem}
  .hesap-ctls,.hesap-acts{gap:.286rem .571rem}
  .hesap-btn,.hesap-seg button,.hesap-step button{min-height:42px}
  .hesap-chip{padding:.214rem .643rem}
  .hesap-chip small{font-size:.786rem}
  /* On a phone the goal line and the status keep room for two lines each, and the status takes a line of its own,
     so a note or the done line leaves the panel's height as it was. */
  .hesap-goal-text{min-height:2.8em}
  .hesap-goal-state{flex-basis:100%;min-height:2.8em;line-height:1.4}
  .hesap-long{display:none}
  .hesap-short{display:inline}
  /* A compact button shows its glyph alone. */
  .hesap-compact{min-width:44px;padding:0}
  .hesap-compact span{display:none}
  /* The peek card sits above the panel. A figure stays clear of the card by leaving --hesap-peek free at its foot. */
  .peek{bottom:calc(var(--hesap-panel,0px) + .571rem)}
}

/* The written line of a calculation under a figure, such as 5 + 3 = 8. A number takes its group's colour through
   the family's class, and the signs and the answer are ink. A link underlines the numbers it points to, and a link
   to the whole line underlines the line. */
.hesap .hesap-written{font-size:34px;font-weight:700;white-space:pre;fill:var(--ink);stroke:none;text-anchor:middle;dominant-baseline:central;font-variant-numeric:tabular-nums;pointer-events:none}
.hesap .hesap-written.hesap-written-step{font-size:26px}
.hesap .hesap-written [data-ref]{stroke:none}
.hesap .hesap-written .hesap-written-num{fill:var(--c,var(--ink))}
.hesap .hesap-written .hesap-written-hot,.hesap .hesap-written.hesap-written-hot{text-decoration:underline}

/* A number sentence or a calculation written in the text, marked up as code: it stays on one line and stands out from
   the words around it, in the text's own font, in the text and on the folded card. */
:is(aside.story,.peek) code{font:inherit;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;padding:.071rem .357rem;border-radius:4px;background:color-mix(in srgb,var(--accent) 14%,transparent)}

/* counters: the colours are theme tokens, the kit's hues and the family's material colours, so a theme switch needs
   no redraw. */
.hesap-counters .counters-svg{position:absolute;left:0;top:0;width:100%;height:100%;touch-action:none;font-family:var(--body);overflow:visible}
.hesap-counters text{fill:var(--ink);text-anchor:middle;dominant-baseline:central;pointer-events:none;font-variant-numeric:tabular-nums}
.hesap-counters .counters-a{--c:var(--hesap-red)}
.hesap-counters .counters-b{--c:var(--hesap-blue)}
/* The colours of the drawn objects, mixed from the theme's tokens, the kit's hues and the family's material colours.
   light and dark are the lighter and the darker of the paper and the ink, so a scoreboard stays dark and a white line
   stays white in every theme. The scoreboard's lit yellow is the one hue no token gives, and it sits on a dark board in
   every theme. */
.hesap-counters{
  --counters-hue-score:#f5c84c;
  --counters-light:light-dark(var(--paper),var(--ink));
  --counters-dark:light-dark(var(--ink),var(--paper));
  --counters-green:var(--hesap-green);
  --counters-gold:var(--hesap-gold);
  --counters-gold-edge:color-mix(in srgb,var(--hesap-gold) 70%,var(--ink));
  --counters-orange:color-mix(in srgb,var(--hesap-red) 45%,var(--counters-gold));
  --counters-wood:color-mix(in srgb,var(--z-counters-brown,#a0602c) 50%,var(--paper));
  --counters-wood-2:color-mix(in srgb,var(--z-counters-brown,#a0602c) 65%,var(--paper));
  --counters-wood-edge:color-mix(in srgb,var(--z-counters-brown,#a0602c) 60%,var(--ink));
  --counters-wood-dark:color-mix(in srgb,var(--z-counters-brown,#a0602c) 40%,var(--counters-dark));
  --counters-card:color-mix(in srgb,var(--z-counters-brown,#a0602c) 16%,var(--paper));
  --counters-card-2:color-mix(in srgb,var(--z-counters-brown,#a0602c) 28%,var(--paper));
  --counters-card-edge:color-mix(in srgb,var(--z-counters-brown,#a0602c) 50%,var(--ink-2));
  --counters-tan:color-mix(in srgb,var(--z-counters-brown,#a0602c) 35%,var(--counters-light));
  --counters-sand:color-mix(in srgb,var(--counters-gold) 28%,var(--paper));
  --counters-skin:color-mix(in srgb,var(--z-counters-brown,#a0602c) 45%,var(--counters-light));
  --counters-glass:color-mix(in srgb,var(--hesap-blue) 16%,var(--paper));
  --counters-metal:color-mix(in srgb,var(--ink-2) 35%,var(--paper));
  --counters-board:light-dark(var(--ink),var(--sea));
}

/* A counter is a disc, a bead or a car, with a touch target round it. */
.hesap-counters .counters-hit{fill:transparent}
.hesap-counters .counters-body{fill:var(--c);stroke:var(--paper);stroke-width:1.5}
.hesap-counters .counters-ring{fill:none;stroke:var(--paper);stroke-width:2;opacity:.6}
.hesap-counters .counters-shine{fill:var(--paper);opacity:.55}
.hesap-counters .counters-glass{fill:var(--paper);opacity:.7}
.hesap-counters .counters-bead .counters-body{fill:var(--hesap-blue)}
/* The cars of a car park come in six paints. */
.hesap-counters .counters-paint-0 .counters-body{fill:var(--hesap-red)}
.hesap-counters .counters-paint-1 .counters-body{fill:var(--hesap-blue)}
.hesap-counters .counters-paint-2 .counters-body{fill:var(--counters-green)}
.hesap-counters .counters-paint-3 .counters-body{fill:var(--counters-gold)}
.hesap-counters .counters-paint-4 .counters-body{fill:color-mix(in srgb,var(--hesap-red) 50%,var(--hesap-blue))}
.hesap-counters .counters-paint-5 .counters-body{fill:color-mix(in srgb,var(--hesap-blue) 50%,var(--counters-green))}
.hesap-counters .counters-moves{cursor:grab;outline:none}
.hesap-counters .counters-moves.drag{cursor:grabbing}
.hesap-counters .counters-moves:focus-visible .counters-hit{stroke:var(--accent);stroke-width:2.5}
.hesap-counters .counters-tapping .counters-layer{pointer-events:none}
.hesap-counters .counters-over .counters-body{stroke:var(--ink);stroke-width:2.5;stroke-dasharray:4 3}

/* The part-whole diagram: the whole above, the two parts below, joined by lines. */
.hesap-counters .counters-link{stroke:var(--rule);stroke-width:3}
.hesap-counters .counters-whole{fill:var(--panel);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-part{fill:var(--paper);stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-a-ring{stroke:var(--hesap-red);stroke-width:3}
.hesap-counters .counters-b-ring{stroke:var(--hesap-blue);stroke-width:3}
.hesap-counters .counters-big{font-size:28px;font-weight:700}
.hesap-counters .counters-badge{font-size:max(20px,calc(14px / var(--counters-k,1)));font-weight:700;fill:var(--ink-2)}
.hesap-counters .counters-hot{stroke:var(--accent);stroke-width:4}
.hesap-counters g.counters-hot .counters-slot-box{stroke:var(--accent)}

/* The cup hides a part until the reader lifts it. */
.hesap-counters .counters-cup{cursor:pointer;outline:none}
.hesap-counters .counters-cup-body{fill:var(--ink-2);stroke:var(--ink);stroke-width:2}
.hesap-counters .counters-cup-rim,.hesap-counters .counters-cup-knob{fill:var(--ink);stroke:none}
.hesap-counters .counters-cup:focus-visible .counters-cup-body{stroke:var(--accent);stroke-width:4}

/* The hands hold the beads on their palms. */
.hesap-counters .counters-hand{fill:var(--panel);stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-palm{stroke-width:2.5}

/* Ten frames, and the cells a reader taps. */
.hesap-counters .counters-frame-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-frame line{stroke:var(--ink-2);stroke-width:1.5}
.hesap-counters .counters-cell{fill:transparent;cursor:pointer;outline:none}
.hesap-counters .counters-cell:hover{fill:var(--accent);fill-opacity:.1}
.hesap-counters .counters-cell:focus-visible{stroke:var(--accent);stroke-width:3}

/* The list keeps a slot for each split, and a slot fills when the reader finds its split. */
.hesap-counters .counters-list-title{font-size:15px;font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-slot-box{fill:none;stroke:var(--rule);stroke-width:1.5;stroke-dasharray:4 4}
.hesap-counters .counters-slot-text{font-size:15px;font-weight:600}
.hesap-counters .counters-found .counters-slot-box{fill:var(--panel);stroke:var(--ink-2);stroke-dasharray:none}
.hesap-counters .counters-now .counters-slot-box{stroke:var(--accent);stroke-width:2.5}
.hesap-counters .counters-slot[hidden]{display:none}

/* The lane of pins: a pin falls over when the reader knocks it down. */
.hesap-counters .counters-lane{fill:var(--panel);stroke:var(--rule);stroke-width:2}
.hesap-counters .counters-pin{cursor:pointer;outline:none}
.hesap-counters .counters-pin-shape{fill:var(--paper);stroke:var(--ink);stroke-width:2}
.hesap-counters .counters-pin-stripe{fill:var(--hesap-red)}
.hesap-counters .counters-spot{fill:var(--rule)}
.hesap-counters .counters-down .counters-pin-body{opacity:.45}
.hesap-counters .counters-ball{pointer-events:none}
.hesap-counters .counters-ball-shape{fill:var(--hesap-blue);stroke:var(--ink);stroke-width:2}
.hesap-counters .counters-ball-hole{fill:var(--ink)}
.hesap-counters .counters-pin:focus-visible .counters-hit{stroke:var(--accent);stroke-width:2.5}

/* The car park: two rows of spaces, an aisle, and a sign that shows the free spaces. */
.hesap-counters .counters-ground{fill:var(--panel);stroke:var(--rule);stroke-width:2}
.hesap-counters .counters-space{fill:transparent;cursor:pointer;outline:none}
.hesap-counters .counters-space:hover{fill:var(--accent);fill-opacity:.1}
.hesap-counters .counters-space:focus-visible{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-bay{stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-road{stroke:var(--rule);stroke-width:3;stroke-dasharray:14 10}
.hesap-counters .counters-sign-box{fill:var(--ink);stroke:none}
.hesap-counters .counters-sign-word{fill:var(--paper);font-size:12px;font-weight:600}
.hesap-counters .counters-sign-num{fill:var(--paper);font-size:24px;font-weight:700}
.hesap-counters .counters-sign.counters-hot .counters-sign-box{fill:var(--accent)}

/* The trays of the challenges, and the pile the reader takes counters from. */
.hesap-counters .counters-tray{fill:var(--panel);stroke:var(--ink-2);stroke-width:2}
/* --counters-k is the figure's pixels per unit, which the scene sets, so a label keeps 14px on a figure drawn small. */
.hesap-counters .counters-tray-label{font-size:max(14px,calc(14px / var(--counters-k,1)));font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-heap-floor{fill:var(--rule);opacity:.6}
.hesap-counters .counters-press{cursor:pointer;outline:none}
.hesap-counters rect.counters-press:not(.counters-tray){fill:transparent}
.hesap-counters .counters-press:focus-visible{stroke:var(--accent);stroke-width:3}

@media (max-width:900px){
  /* The figure ends above the peek card, which covers the foot of the stage until the reader closes it. */
  .hesap-counters .counters-svg{height:calc(100% - var(--hesap-peek,0px))}
}

/* The count scene: the places objects lie in, the objects, and the numbers the reader gives them. */
.hesap-counters .counters-sand{fill:var(--counters-sand);stroke:var(--counters-card-edge);stroke-width:2}
.hesap-counters .counters-table{fill:var(--counters-wood);stroke:var(--counters-wood-edge);stroke-width:2}
.hesap-counters .counters-awning-0{fill:var(--hesap-red)}
.hesap-counters .counters-awning-1{fill:var(--counters-light)}
.hesap-counters .counters-wire{fill:none;stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-pole{stroke:var(--ink-2);stroke-width:6;stroke-linecap:round}
.hesap-counters .counters-row-label{font-size:max(16px,calc(14px / var(--counters-k,1)));font-weight:700;fill:var(--ink-2)}
.hesap-counters .counters-stem{fill:none;stroke:var(--counters-wood-edge);stroke-width:2.5;stroke-linecap:round}
.hesap-counters .counters-leaf{fill:var(--counters-green)}
.hesap-counters .counters-apple .counters-shine{fill:var(--counters-light);opacity:.45}
.hesap-counters .counters-bird .counters-body{fill:var(--ink-2)}
.hesap-counters .counters-eye{fill:var(--paper)}
.hesap-counters .counters-feet{stroke:var(--counters-gold);stroke-width:2}
.hesap-counters .counters-trail{fill:none;stroke:var(--accent);stroke-width:3;stroke-dasharray:7 6;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.hesap-counters .counters-shell .counters-body{fill:color-mix(in srgb,var(--counters-orange) 55%,var(--paper));stroke:var(--counters-orange)}
.hesap-counters .counters-ribs{stroke:var(--counters-orange);stroke-width:1.5;fill:none}
.hesap-counters .counters-skin{fill:var(--counters-skin);stroke:var(--paper);stroke-width:1.5}
.hesap-counters .counters-legs{stroke:var(--ink);stroke-width:5;stroke-linecap:round}
.hesap-counters .counters-walker .counters-body{fill:var(--accent)}
.hesap-counters .counters-tag{pointer-events:none}
.hesap-counters .counters-tag-box{fill:var(--paper);stroke:var(--ink);stroke-width:1.5}
.hesap-counters .counters-tag-text{font-size:12px;font-weight:700}
.hesap-counters .counters-pale .counters-body{fill:var(--panel);stroke:var(--rule)}
.hesap-counters .counters-pale .counters-ring{display:none}
.hesap-counters .counters-marked .counters-body{stroke:var(--ink);stroke-width:3.5}
.hesap-counters .counters-gap{opacity:0;pointer-events:none;outline:none}
.hesap-counters .counters-gap-hit{fill:transparent}
.hesap-counters .counters-gap-ring{fill:none;stroke:var(--rule);stroke-width:2;stroke-dasharray:4 3}
.hesap-counters .counters-gap-on{opacity:1;pointer-events:all;cursor:pointer}
.hesap-counters .counters-gap-on:focus-visible .counters-gap-ring{stroke:var(--accent);stroke-width:3}
.hesap-counters g.counters-counter[role=button]{cursor:pointer;outline:none}
.hesap-counters g.counters-counter[role=button]:focus-visible .counters-hit{stroke:var(--accent);stroke-width:2.5}

/* The closed box, the room beside it, and the basket. */
.hesap-counters .counters-box{fill:var(--counters-wood);stroke:var(--counters-wood-edge);stroke-width:2.5}
.hesap-counters .counters-lid{fill:var(--counters-wood-2);stroke:var(--counters-wood-edge);stroke-width:2.5}
.hesap-counters .counters-tape{stroke:var(--counters-card);stroke-width:8}
.hesap-counters .counters-box-num{font-size:34px;font-weight:700;fill:var(--ink)}
.hesap-counters .counters-box.counters-hot{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-beside{fill:none;stroke:var(--rule);stroke-width:2;stroke-dasharray:6 5}
.hesap-counters .counters-basket{fill:var(--counters-wood);stroke:var(--counters-wood-edge);stroke-width:2.5}
.hesap-counters .counters-weave{stroke:var(--counters-wood-edge);stroke-width:1.5;opacity:.6}
.hesap-counters .counters-rim{fill:var(--counters-wood-2);stroke:var(--counters-wood-edge);stroke-width:2}

/* The bus and its stop, and the staircase. */
.hesap-counters .counters-bus{fill:var(--hesap-red);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-window,.hesap-counters .counters-glass-front{fill:var(--counters-glass);stroke:var(--ink);stroke-width:1.5}
.hesap-counters .counters-door{fill:color-mix(in srgb,var(--hesap-blue) 35%,var(--paper));stroke:var(--ink);stroke-width:1.5}
.hesap-counters .counters-wheel{fill:var(--ink);stroke:var(--ink-2);stroke-width:5}
.hesap-counters .counters-stop{fill:var(--counters-green)}
.hesap-counters .counters-stop-word{fill:var(--paper);font-size:12px;font-weight:700}
.hesap-counters .counters-kerb{stroke:var(--ink-2);stroke-width:3}
.hesap-counters .counters-stairs{fill:var(--panel);stroke:var(--ink-2);stroke-width:2;stroke-linejoin:round}
/* The step numbers keep 13px on a phone, where the steep staircase is drawn near its own size. */
.hesap-counters .counters-step-num{font-size:14px;font-weight:600;fill:var(--ink-2);text-anchor:start}

/* The match scene: the pair lines, the ring on a counter without a partner, the words between the rows, and the
   cups and saucers. */
.hesap-counters .counters-wire{stroke:var(--ink);stroke-width:3;stroke-linecap:round}
.hesap-counters .counters-rubber{stroke:var(--accent);stroke-width:3;stroke-linecap:round;pointer-events:none}
.hesap-counters .counters-lone{fill:none;stroke:var(--ink);stroke-width:3;pointer-events:none}
.hesap-counters .counters-picked .counters-body{stroke:var(--ink);stroke-width:3}
.hesap-counters .counters-word{pointer-events:none}
.hesap-counters .counters-word-box{fill:var(--paper);stroke:var(--accent);stroke-width:2}
.hesap-counters .counters-word-text{font-size:17px;font-weight:700}
.hesap-counters .counters-handle{fill:none;stroke:var(--c);stroke-width:3.5;stroke-linecap:round}
.hesap-counters .counters-saucer .counters-body{fill:var(--paper);stroke:var(--c);stroke-width:2.5}
.hesap-counters .counters-well{fill:none;stroke:var(--c);stroke-width:1.5;opacity:.5}
.hesap-counters .counters-rowtag{pointer-events:none}
.hesap-counters .counters-rowtag-box{fill:var(--paper);stroke:var(--c);stroke-width:2}
.hesap-counters .counters-rowtag-text{font-size:15px;font-weight:700;stroke:none}
.hesap-counters .counters-rowtag.counters-hot .counters-rowtag-box{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-hollow .counters-body{fill:var(--paper);stroke:var(--c);stroke-width:3}
.hesap-counters .counters-hollow .counters-ring{display:none}
.hesap-counters .counters-void{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:4 3}
.hesap-counters .counters-chair .counters-legs{stroke:var(--c);stroke-width:3.5}
.hesap-counters .counters-crown{fill:var(--counters-gold);stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round;pointer-events:none}
.hesap-counters .counters-sway{animation:counters-sway 1.1s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes counters-sway{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}
.hesap-counters .counters-row-name{font-size:20px;font-weight:600;fill:var(--ink-2);text-anchor:start}

/* The tiles of a sides page: the number, with the number before and the number after to tap. */
.hesap-counters .counters-tile-box{fill:var(--panel);stroke:var(--rule);stroke-width:2}
.hesap-counters .counters-tile-num{font-size:24px;font-weight:700;fill:var(--ink-2)}
.hesap-counters .counters-tile-main{font-size:34px;fill:var(--ink)}
.hesap-counters .counters-tile-word{font-size:max(13px,calc(14px / var(--counters-k,1)));font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-tile-open{cursor:pointer;outline:none}
.hesap-counters .counters-tile-open .counters-tile-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-tile-open .counters-tile-num{fill:var(--ink)}
.hesap-counters .counters-tile-open:focus-visible .counters-tile-box,.hesap-counters .counters-tile.counters-hot .counters-tile-box{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-tile.counters-hot{stroke:none}
.hesap-counters .counters-next{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:4 3;pointer-events:none}
.hesap-counters .counters-row-name.counters-hot{stroke:none;fill:var(--accent)}

/* The order scene: markers on one count, blocks of rows of ten, the line of words and the number cards. */
.hesap-counters .counters-reading{font-size:22px;font-weight:700}
.hesap-counters .counters-reading.counters-hot,.hesap-counters .counters-block-num.counters-hot{stroke:none;fill:var(--accent)}
.hesap-counters .counters-both .counters-body{fill:var(--ink-2)}
.hesap-counters .counters-light{opacity:.5}
.hesap-counters .counters-pin{pointer-events:none}
.hesap-counters .counters-pin-ring{fill:none;stroke:var(--c);stroke-width:3;pointer-events:none}
.hesap-counters .counters-pin-box{fill:var(--c);stroke:var(--paper);stroke-width:1.5}
.hesap-counters .counters-pin-num{font-size:13px;font-weight:700;fill:var(--paper)}
.hesap-counters .counters-pin.counters-hot{stroke:none}
.hesap-counters .counters-pin.counters-hot .counters-pin-box{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-block-num{font-size:32px;font-weight:700;fill:var(--c)}
.hesap-counters .counters-decide{fill:none;stroke:var(--accent);stroke-width:3.5;pointer-events:none}
.hesap-counters .counters-cover rect{fill:var(--panel);stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-cover-mark{font-size:64px;font-weight:700;fill:var(--ink-2)}
.hesap-counters .counters-card-box{fill:var(--paper);stroke:var(--ink);stroke-width:2}
.hesap-counters .counters-card:focus-visible .counters-card-box{stroke:var(--accent);stroke-width:3.5}
.hesap-counters .counters-card-num{font-size:26px;font-weight:700}
.hesap-counters .counters-mini{fill:var(--hesap-blue)}
.hesap-counters .counters-place{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:6 5}
.hesap-counters .counters-place-word{font-size:16px;font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-between{font-size:14px;font-weight:700}
.hesap-counters .counters-tick{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}

/* A line of two numbers with a sign: the sign tile, the mark that says true or false, and the scoreboard. */
.hesap-counters .counters-line-num{font-size:34px;font-weight:700;fill:var(--c)}
.hesap-counters .counters-line-num.counters-hot{stroke:none;text-decoration:underline}
.hesap-counters .counters-sign-tile-box{fill:none;stroke:none}
.hesap-counters .counters-sign-tile-text{font-size:36px;font-weight:700}
.hesap-counters .counters-sign-tile-open{cursor:pointer;outline:none}
.hesap-counters .counters-sign-tile-open .counters-sign-tile-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-sign-tile-open:focus-visible .counters-sign-tile-box{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-mark{pointer-events:none}
.hesap-counters .counters-mark.counters-hot{stroke:none}
.hesap-counters .counters-mark-sign{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.hesap-counters .counters-mark-word{font-size:20px;font-weight:700;text-anchor:start}
.hesap-counters .counters-mark-true .counters-mark-sign{stroke:var(--counters-green)}
.hesap-counters .counters-mark-false .counters-mark-sign{stroke:var(--ink-2)}
.hesap-counters .counters-mark-false .counters-mark-word{fill:var(--ink-2)}
.hesap-counters .counters-board{fill:var(--panel);stroke:var(--ink);stroke-width:3}
.hesap-counters .counters-team{font-size:18px;font-weight:700;fill:var(--c)}
.hesap-counters .counters-score{font-size:60px;font-weight:700}
.hesap-counters .counters-score.counters-hot{stroke:none;fill:var(--accent)}
.hesap-counters .counters-score-sign{font-size:44px;font-weight:700}
.hesap-counters .counters-patch{fill:var(--paper);opacity:.85}
.hesap-counters .counters-chip-wide{flex:1 0 100%}
.hesap-counters .counters-line-card{fill:var(--panel);stroke:var(--c);stroke-width:2}
.hesap-counters .counters-added .counters-ring{display:none}
.hesap-counters .counters-plus{fill:none;stroke:var(--paper);stroke-width:4;stroke-linecap:round;pointer-events:none}

/* The add scene: the dice over the frames and the tray, and the counters a link lights. */
.hesap-counters .counters-die-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-pip{fill:var(--ink);stroke:none}
.hesap-counters .counters-die.counters-hot{stroke:none}
.hesap-counters .counters-die.counters-hot .counters-die-box{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-lit .counters-body{stroke:var(--accent);stroke-width:4}
/* A counter taken away leaves a dashed ring in its cell. */
.hesap-counters .counters-gone{display:none}
.hesap-counters .counters-taken .counters-gone{display:inline}
.hesap-counters .counters-taken .counters-body,.hesap-counters .counters-taken .counters-ring{display:none}
.hesap-counters .counters-lit .counters-gone{stroke:var(--accent);stroke-width:3.5}
/* The jam shelf: jars on wooden boards, and two crates for the jars sold. A sold jar's lid takes its crate's colour. */
.hesap-counters .counters-jar-glass{fill:var(--paper);fill-opacity:.4;stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-jam{fill:var(--counters-orange)}
.hesap-counters .counters-jar-lid{fill:var(--c,var(--ink-2));stroke:var(--paper);stroke-width:1}
.hesap-counters .counters-lit .counters-jar-glass{stroke:var(--accent);stroke-width:3.5}
.hesap-counters .counters-shelf-board{fill:var(--counters-wood);stroke:var(--counters-wood-edge);stroke-width:2}
.hesap-counters rect.counters-crate.counters-press{fill:var(--panel);stroke:var(--counters-wood-edge);stroke-width:3}
.hesap-counters .counters-crate-name{font-size:16px;font-weight:700;fill:var(--ink-2)}
.hesap-counters .counters-crate-name.counters-hot{stroke:none;fill:var(--accent)}
/* The seed tray: cells of bare soil, grown seedlings and small sprouts. */
.hesap-counters .counters-seedtray{fill:var(--counters-wood-2);stroke:var(--counters-wood-edge);stroke-width:2.5}
.hesap-counters .counters-soil{fill:var(--counters-wood-dark);stroke:var(--counters-wood-edge);stroke-width:1}
.hesap-counters .counters-plant-stem{fill:none;stroke:var(--counters-green);stroke-width:3;stroke-linecap:round}
/* The seed packet of the seed tray: a paper packet with a folded top, whose seeds turn into sprouts when sown. */
.hesap-counters .counters-packet-paper{fill:var(--counters-card);stroke:var(--counters-card-edge);stroke-width:2}
.hesap-counters .counters-packet-fold{stroke:var(--counters-card-edge);stroke-width:2;stroke-dasharray:5 4}
.hesap-counters .counters-packet.counters-hot .counters-packet-paper{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-seed{display:none}
.hesap-counters .counters-in-packet .counters-seed{display:inline}
.hesap-counters .counters-in-packet .counters-body:not(.counters-seed),.hesap-counters .counters-in-packet .counters-plant-stem{display:none}
/* The link pairs lights each paired counter with a filled halo of the accent, which stays plain on a small phone
   figure and differs from the ink ring of a counter without a partner. */
.hesap-counters .counters-paired-lit .counters-hit{fill:var(--accent);fill-opacity:.6;stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-paired-lit .counters-body{stroke:var(--paper);stroke-width:2.5}
.hesap-counters .counters-wire.counters-hot{stroke:var(--accent);stroke-width:5}

/* The egg box: a carton of ten cups, brown eggs with speckles and white eggs with a shell outline. The numbers of the
   facts take the brown and the shell as the colours of the two parts. */
.hesap-counters .counters-egg-a{--c:var(--z-counters-brown,#a0602c)}
.hesap-counters .counters-egg-b{--c:var(--z-counters-shell,#7f7462)}
.hesap-counters .counters-carton{fill:var(--counters-card-2);stroke:var(--counters-card-edge);stroke-width:2.5}
.hesap-counters .counters-egg-cup{fill:color-mix(in srgb,var(--z-counters-brown,#a0602c) 40%,var(--paper));stroke:var(--counters-card-edge);stroke-width:1}
.hesap-counters .counters-egg-brown .counters-body{fill:var(--z-counters-brown,#a0602c);stroke:var(--counters-wood-edge);stroke-width:1.5}
.hesap-counters .counters-egg-white .counters-body{fill:var(--counters-light);stroke:var(--z-counters-shell,#7f7462);stroke-width:2}
.hesap-counters .counters-speck{fill:var(--counters-wood-dark);stroke:none}
.hesap-counters .counters-lit:is(.counters-egg-brown,.counters-egg-white) .counters-body{stroke:var(--accent);stroke-width:4}
/* A lit counter of the frames and the egg box also takes a ring in ink round it, so it shows where the accent is
   close to the counter's own colour. */
.hesap-counters .counters-layer .counters-lit .counters-hit{stroke:var(--ink);stroke-width:2.5}

/* The facts of a family: each fact is a button in a box, and the picked fact is outlined in the accent. */
.hesap-counters .counters-fact{cursor:pointer;outline:none}
.hesap-counters .counters-fact-box{fill:transparent;stroke:var(--rule);stroke-width:1.5}
.hesap-counters .counters-fact:hover .counters-fact-box{fill:var(--accent);fill-opacity:.08}
.hesap-counters .counters-fact:focus-visible .counters-fact-box{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-fact-on .counters-fact-box{fill:var(--accent);fill-opacity:.12;stroke:var(--accent);stroke-width:3}

/* The domino: two halves of pips, the whole above it, and the card that covers a half. */
.hesap-counters .counters-domino{fill:var(--paper);stroke:var(--ink);stroke-width:3}
.hesap-counters .counters-domino-bar{stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-domino-pip{fill:var(--c)}
.hesap-counters .counters-half{cursor:pointer;outline:none}
.hesap-counters .counters-half-box{fill:transparent;stroke:none}
.hesap-counters .counters-half:hover .counters-half-box{fill:var(--accent);fill-opacity:.08}
.hesap-counters .counters-half:focus-visible .counters-half-box{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-half.counters-hot{stroke:none}
.hesap-counters .counters-half.counters-hot .counters-half-box{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-domino-whole{font-size:40px;font-weight:700}
.hesap-counters .counters-domino-whole.counters-hot{stroke:none;fill:var(--accent)}
.hesap-counters .counters-domino-card{cursor:pointer;outline:none}
.hesap-counters .counters-domino-card-box{fill:var(--panel);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-domino-card:focus-visible .counters-domino-card-box{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-cover-q{font-size:60px;font-weight:700;fill:var(--ink-2)}

/* The places of a missing part are outlined squares that the counters put in cover. A counter put in carries the number
   the count reaches, and the red counters let a tap through to the frames. */
.hesap-counters .counters-gap-place{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:5 4;pointer-events:none}
.hesap-counters .counters-gap-place.counters-hot{stroke:var(--accent);stroke-width:3.5}
.hesap-counters .counters-still{pointer-events:none}
.hesap-counters .counters-numbered .counters-ring{display:none}
.hesap-counters text.counters-num{fill:var(--paper);font-size:15px;font-weight:700}
.hesap-counters .counters-taken text.counters-num{display:none}
/* The squad: a pitch of grass with white lines, and a bench beside it. */
.hesap-counters .counters-pitch{fill:color-mix(in srgb,var(--counters-green) 70%,var(--paper));stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-pitch.counters-hot{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-pitch-line{fill:none;stroke:var(--counters-light);stroke-width:2;stroke-opacity:.85;pointer-events:none}
.hesap-counters .counters-bench{fill:var(--panel);stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-bench.counters-hot{stroke:var(--accent);stroke-width:4}
/* The line under a claim's check says whether the sum is right, in ink when it is and in the accent when it is not. */
.hesap-counters text.counters-verdict{font-size:17px;font-weight:600;fill:var(--accent)}
.hesap-counters text.counters-verdict.counters-verdict-right{fill:var(--ink)}
.hesap-counters .counters-shirt .counters-body{stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}

/* The bar model: two parts drawn to scale with the whole above them over a bracket, the handles of the split and the
   end, and the card that covers a number. A subtraction draws the part it takes away pale with a dashed outline. */
.hesap-counters .counters-bar-row{pointer-events:none}
.hesap-counters .counters-bar-part{fill:var(--c);fill-opacity:.2;stroke:var(--c);stroke-width:2.5}
.hesap-counters .counters-bar-num{font-size:24px;font-weight:700;fill:var(--c)}
.hesap-counters .counters-bar-lead{stroke:var(--c);stroke-width:1.5}
.hesap-counters .counters-bar-whole{font-size:30px;font-weight:700}
.hesap-counters .counters-bracket{fill:none;stroke:var(--ink-2);stroke-width:2.5;stroke-linejoin:round}
.hesap-counters .counters-bar-outline{fill:none;stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-bar-split{stroke:var(--ink);stroke-width:3}
.hesap-counters .counters-bar-part.counters-hot,.hesap-counters .counters-bar-outline.counters-hot,.hesap-counters .counters-bracket.counters-hot{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-bar-num.counters-hot,.hesap-counters .counters-bar-whole.counters-hot{stroke:none;fill:var(--accent)}
.hesap-counters .counters-bar-gone .counters-bar-part{fill-opacity:.04;stroke-dasharray:7 5;stroke-width:2.5}
.hesap-counters .counters-bar-gone .counters-bar-num,.hesap-counters .counters-bar-gone .counters-choc-grooves{opacity:.4}
.hesap-counters .counters-handle{cursor:ew-resize;outline:none}
.hesap-counters .counters-handle-hit{fill:transparent}
.hesap-counters .counters-knob{fill:var(--paper);stroke:var(--ink);stroke-width:2.5;stroke-linejoin:round}
.hesap-counters .counters-grip{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-linecap:round}
.hesap-counters .counters-handle.drag .counters-knob,.hesap-counters .counters-handle.counters-hot .counters-knob{fill:var(--accent);stroke:var(--accent)}
.hesap-counters .counters-handle:focus-visible .counters-knob{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-bar-tap{fill:transparent;cursor:pointer;outline:none}
.hesap-counters .counters-bar-tap:hover{fill:var(--accent);fill-opacity:.08}
.hesap-counters .counters-bar-tap:focus-visible{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-bar-card{cursor:pointer;outline:none}
.hesap-counters .counters-bar-card-box{fill:var(--panel);stroke:var(--ink);stroke-width:2.5}
.hesap-counters .counters-bar-card:focus-visible .counters-bar-card-box{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-bar-card-q{font-size:28px;font-weight:700;fill:var(--ink-2)}
/* A bar of chocolate: each piece has a square for each 1, its edge in its part's colour, and its number on a badge. */
.hesap-counters .counters-bar-part.counters-choc{fill:color-mix(in srgb,var(--z-counters-brown,#a0602c) 55%,var(--counters-dark));fill-opacity:1;stroke:var(--c);stroke-width:3}
.hesap-counters .counters-bar-part.counters-choc.counters-hot{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-choc-grooves line{stroke:var(--counters-wood-dark);stroke-width:2}
.hesap-counters .counters-choc-badge{fill:var(--paper);stroke:var(--c);stroke-width:2.5}
.hesap-counters .counters-choc~.counters-bar-num{font-size:18px}
.hesap-counters .counters-bar-gone .counters-bar-part.counters-choc{fill-opacity:.3}
/* The number of a bar-for-two bar that the reader finds: its part or its bracket is dashed and its number is a
   question mark. */
.hesap-counters .counters-bar-unknown .counters-bar-part{fill:none;stroke-dasharray:7 5}
.hesap-counters .counters-bracket-unknown{stroke-dasharray:6 5}
/* A fact's place the page leaves empty is a dashed box with nothing in it. */
.hesap-counters .counters-fact-empty{cursor:default}
.hesap-counters .counters-fact-empty .counters-fact-box,.hesap-counters .counters-fact-empty:hover .counters-fact-box{fill:none;stroke:var(--ink-2);stroke-width:1.5;stroke-dasharray:6 5}

/* The base ten scene: rods and cubes on a mat, the supply, and the jar of pencils with the bundles on the table. */
.hesap-counters .counters-bt-mat{fill:var(--panel);stroke:var(--rule);stroke-width:2}
.hesap-counters .counters-bt-hit{fill:transparent}
.hesap-counters .counters-bt-face{fill:var(--c);stroke:var(--ink);stroke-width:1.2}
.hesap-counters .counters-bt-line{stroke:var(--paper);stroke-width:1.4;opacity:.85}
.hesap-counters .counters-bt-number{font-size:46px;font-weight:700}
.hesap-counters .counters-bt-number.counters-hot{fill:var(--accent)}
.hesap-counters .counters-bt-supply{fill:none;stroke:var(--rule);stroke-width:2;stroke-dasharray:6 5}
.hesap-counters .counters-bt-ghost{pointer-events:none;opacity:.85}
.hesap-counters .counters-bt-rod:focus-visible .counters-bt-hit,.hesap-counters .counters-bt-cube:focus-visible .counters-bt-hit,.hesap-counters .counters-bt-spare:focus-visible .counters-bt-hit{stroke:var(--accent);stroke-width:2.5}
.hesap-counters .counters-bt-end{fill:var(--counters-metal);stroke:var(--ink);stroke-width:1}
.hesap-counters .counters-bt-wood{fill:var(--counters-tan);stroke:var(--ink);stroke-width:1}
.hesap-counters .counters-bt-lead{fill:var(--counters-dark)}
.hesap-counters .counters-bt-band{fill:var(--counters-gold);stroke:var(--ink);stroke-width:1.2}
.hesap-counters .counters-bt-glass{fill:var(--counters-glass);fill-opacity:.3;stroke:var(--ink-2);stroke-width:2.5;pointer-events:none}
.hesap-counters .counters-bt-rim{fill:var(--counters-glass);fill-opacity:.6;stroke:var(--ink-2);stroke-width:2;pointer-events:none}
.hesap-counters .counters-bt-top{fill:var(--counters-wood);stroke:var(--counters-wood-edge);stroke-width:2}
.hesap-counters .counters-bt-name{font-size:24px;font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-bt-name.counters-hot{fill:var(--accent)}

/* The place value chart: two columns under their heads, the counts and values under them, and the two cards. */
.hesap-counters .counters-bt-col{fill:var(--paper);stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-bt-col-shop{fill:var(--counters-card);stroke:var(--counters-wood-edge)}
.hesap-counters .counters-bt-rule{stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-bt-head{font-size:22px;font-weight:700}
.hesap-counters .counters-bt-target{fill:transparent;outline:none}
.hesap-counters .counters-bt-live{cursor:pointer}
.hesap-counters .counters-bt-target:focus-visible{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-bt-held{pointer-events:none}
.hesap-counters .counters-bt-count{font-size:30px;font-weight:700}
.hesap-counters .counters-bt-value{font-size:20px;font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-bt-count.counters-hot,.hesap-counters .counters-bt-value.counters-hot,.hesap-counters .counters-bt-number.counters-hot,.hesap-counters .counters-bt-left.counters-hot{fill:var(--accent)}
.hesap-counters .counters-bt-digit-tens{text-anchor:end}
.hesap-counters .counters-bt-digit-ones{text-anchor:start}
.hesap-counters .counters-bt-cards{cursor:pointer;outline:none}
.hesap-counters .counters-bt-card{fill:var(--paper);stroke:var(--ink);stroke-width:2}
.hesap-counters .counters-bt-card-ones{fill:var(--panel)}
.hesap-counters .counters-bt-card-num{font-size:38px;font-weight:700}
.hesap-counters .counters-bt-cards:focus-visible .counters-bt-card{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-bt-card-g.counters-hot .counters-bt-card{stroke:var(--accent);stroke-width:3.5}
.hesap-counters .counters-bt-empty{opacity:.3}

/* The list of the ways a number is shown. */
.hesap-counters .counters-bt-row-box{fill:none;stroke:var(--rule);stroke-width:1.5}
.hesap-counters .counters-bt-now .counters-bt-row-box{fill:var(--panel);stroke:var(--accent);stroke-width:2.5}
.hesap-counters .counters-bt-row-way{font-size:22px;font-weight:600}
.hesap-counters .counters-bt-row-line{font-size:22px;fill:var(--ink-2)}
.hesap-counters .counters-bt-list.counters-hot .counters-bt-row-box{stroke:var(--accent)}

/* The florist's bucket, jug, roses and ribbons, and the shop's packs, shelf and slip. */
.hesap-counters .counters-bt-bucket{fill:var(--counters-metal);stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-bt-jug{fill:var(--counters-glass);fill-opacity:.7;stroke:var(--ink-2);stroke-width:2}
.hesap-counters .counters-bt-petal{fill:none;stroke:var(--paper);stroke-width:1.4;opacity:.8}
.hesap-counters .counters-bt-stem{stroke:var(--counters-green);stroke-width:2.5;stroke-linecap:round}
.hesap-counters .counters-bt-leaves{fill:var(--counters-green)}
.hesap-counters .counters-bt-ribbon{fill:var(--counters-gold);stroke:var(--ink);stroke-width:1.2}
.hesap-counters .counters-bt-pack{fill:var(--counters-card-2);stroke:var(--counters-wood-edge);stroke-width:1.5}
.hesap-counters .counters-bt-shelf{fill:var(--counters-wood);stroke:var(--counters-wood-edge);stroke-width:2}
.hesap-counters .counters-bt-left{font-size:22px;font-weight:700}
.hesap-counters .counters-bt-slip rect{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.5}
.hesap-counters .counters-bt-slip-word{font-size:22px;font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-bt-slip-num{font-size:30px;font-weight:700}
.hesap-counters .counters-bt-slip.counters-hot rect{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-hot .counters-bt-hit{stroke:none}

/* The second number's pieces carry a dot, and the blocks waiting to join lie on a tray beside the chart. */
.hesap-counters .counters-bt-dot{fill:var(--paper);stroke:none}
.hesap-counters .counters-bt-tray{fill:var(--panel);stroke:var(--rule);stroke-width:2;stroke-dasharray:6 5}
/* The bakery's packets, biscuits and chocolate chips. */
.hesap-counters .counters-bt-packet{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.5}
.hesap-counters .counters-bt-packet-top{fill:var(--z-counters-brown,#a0602c);stroke:var(--ink);stroke-width:1}
.hesap-counters .counters-bt-biscuit{fill:color-mix(in srgb,var(--counters-gold) 40%,var(--counters-tan));stroke:var(--z-counters-brown,#a0602c);stroke-width:1.5}
.hesap-counters .counters-bt-chip{fill:var(--counters-wood-dark)}
.hesap-counters .counters-hot .counters-bt-biscuit{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-bt-outline{fill:none;stroke:var(--ink-2);stroke-width:1.5;stroke-dasharray:4 3;pointer-events:none}
.hesap-counters .counters-bt-target.counters-hot{stroke:var(--accent);stroke-width:3}
/* The basketball scoreboard over the chart: a dark board with yellow numbers in every theme, as a scoreboard is. */
.hesap-counters .counters-bt-board{fill:var(--counters-board);stroke:var(--border);stroke-width:1.5}
.hesap-counters .counters-bt-board-word{fill:var(--counters-light);font-size:13px;font-weight:600}
.hesap-counters .counters-bt-board-num{fill:var(--counters-hue-score);font-size:30px;font-weight:700}
.hesap-counters .counters-bt-slot{fill:none;stroke:var(--counters-light);stroke-width:1.5;opacity:.6}
.hesap-counters .counters-bt-slot-over{stroke:var(--counters-hue-score);stroke-dasharray:4 3;opacity:1}
.hesap-counters .counters-bt-board-num.counters-hot{fill:var(--accent)}
/* The sticker album: sheets of stars, single stars, and an envelope for each day. */
.hesap-counters .counters-bt-star{fill:var(--counters-gold);stroke:var(--counters-gold-edge);stroke-width:1.2}
.hesap-counters .counters-bt-sheet{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.2}
.hesap-counters .counters-hot .counters-bt-star{stroke:var(--accent);stroke-width:2.5}
.hesap-counters .counters-bt-closed .counters-bt-tray{fill:var(--rule);stroke-dasharray:none}
.hesap-counters .counters-bt-closed .counters-bt-outline,.hesap-counters .counters-bt-later .counters-bt-outline{opacity:.35}
.hesap-counters .counters-bt-pile.counters-hot .counters-bt-tray{stroke:var(--accent);stroke-width:3}
/* The names of the supply, the shelf, the trays and the list, at 22 units so they keep 12px on a phone's chart. */
.hesap-counters .counters-bt-label{font-size:22px;font-weight:600;fill:var(--ink-2)}
.hesap-counters .counters-bt-tray-word{text-anchor:end}
/* The numbers of the written line take a touch area a finger wide, and the blocks they count light clearly. */
.hesap-counters .counters-bt-numhit{fill:transparent;cursor:pointer;outline:none}
.hesap-counters .counters-bt-numhit:focus-visible{stroke:var(--accent);stroke-width:3}
.hesap-counters .counters-hot .counters-bt-face{stroke:var(--accent);stroke-width:5}
.hesap-counters .counters-bt-inner.counters-hot .counters-bt-face{stroke:var(--accent);stroke-width:4}
.hesap-counters .counters-bt-faded{opacity:.3}
.hesap-counters .counters-bt-note rect{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.5}
.hesap-counters .counters-bt-spill{fill:var(--counters-gold-edge);font-weight:700}

/* line: every colour is a theme token or a hue of the kit made from one, so a theme switch needs no redraw. */
.hesap-line .line-svg{position:absolute;left:0;top:0;width:100%;height:100%;touch-action:none;font-family:var(--body);overflow:hidden}
.hesap-line text{fill:var(--ink);text-anchor:middle;dominant-baseline:central;pointer-events:none;font-variant-numeric:tabular-nums}
.hesap-line .line-c-point{--c:var(--accent)}
.hesap-line .line-c-second{--c:var(--hesap-blue)}
/* The flag of the number to find is ink, apart from both points' colours. */
.hesap-line .line-c-find{--c:var(--ink)}
.hesap-line .line-c-find .line-flag-text{fill:var(--paper)}
.hesap-line .line-c-point .line-flag-text{fill:var(--hesap-on-accent)}

/* The line, its marks and their labels. */
.hesap-line .line-axis{stroke:var(--ink);stroke-width:2.5;stroke-linecap:round}
.hesap-line .line-mark{stroke:var(--ink);stroke-width:2;stroke-linecap:round}
.hesap-line .line-short{stroke:var(--ink-2);stroke-width:1.5}
.hesap-line .line-label{font-weight:400;font-variant-numeric:proportional-nums}
.hesap-line .line-label.line-lit{font-weight:700;fill:var(--accent)}
.hesap-line .line-guide{stroke:var(--ink-2);stroke-width:1;stroke-dasharray:2 4;opacity:.6}

/* A point is a disc or a square with a touch target round it, and its flag carries its number. */
.hesap-line .line-hit{fill:transparent}
.hesap-line .line-point{cursor:grab;outline:none}
.hesap-line .line-point.drag{cursor:grabbing}
.hesap-line .line-dot{fill:var(--c);stroke:var(--paper);stroke-width:2}
.hesap-line .line-point:focus-visible .line-hit{stroke:var(--accent);stroke-width:2.5}
.hesap-line .line-pole{stroke:var(--c);stroke-width:2}
.hesap-line .line-flag-box{fill:var(--c);stroke:var(--paper);stroke-width:1.5}
.hesap-line .line-flag-text{font-size:14px;font-weight:700;fill:var(--paper)}

/* The jumps are arcs over the gaps they cross, with a head that shows their way. */
.hesap-line .line-arc{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round}
.hesap-line .line-arc-head{fill:var(--accent)}

/* The lens shows the marks around the point at full size, above a line whose gaps are too narrow to read. */
.hesap-line .line-lens{pointer-events:none}
.hesap-line .line-lens-box{fill:var(--panel);stroke:var(--ink-2);stroke-width:1.5}
.hesap-line .line-lens-tip{fill:var(--ink-2)}

/* The bracket over the tens round the point. */
.hesap-line .line-bracket{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}

/* A gap opens under the line as a line of its own. */
.hesap-line .line-gap{fill:transparent;cursor:pointer;outline:none}
.hesap-line .line-gap:hover,.hesap-line .line-gap[aria-pressed="true"]{fill:var(--accent);fill-opacity:.08}
.hesap-line .line-gap:focus-visible{stroke:var(--accent);stroke-width:2}
.hesap-line .line-open-gap{stroke:var(--accent);stroke-width:5;stroke-linecap:round}
.hesap-line .line-funnel{stroke:var(--ink-2);stroke-width:1;stroke-dasharray:3 3}

/* Blank label boxes and the label cards that fill them. */
.hesap-line .line-blank{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.5;stroke-dasharray:4 3}
.hesap-line .line-card{cursor:grab;outline:none}
.hesap-line .line-card.drag{cursor:grabbing}
.hesap-line .line-card-box{fill:var(--panel);stroke:var(--ink);stroke-width:1.5}
.hesap-line .line-card-num{font-size:16px;font-weight:700}

/* The middle's long mark. */
.hesap-line .line-middle{stroke:var(--accent);stroke-width:2.5}

/* The street: a road, a house at each mark, door numbers on plaques, and the van as the point. */
.hesap-line .line-road{fill:color-mix(in srgb,var(--ink) 22%,var(--paper))}
.hesap-line .line-house-body{fill:color-mix(in srgb,var(--hesap-gold) 30%,var(--paper));stroke:var(--ink-2);stroke-width:1}
.hesap-line .line-door{fill:var(--ink-2)}
.hesap-line .line-plaque rect{fill:var(--paper);stroke:var(--ink);stroke-width:1.2}
.hesap-line .line-plaque text{font-weight:700}
.hesap-line .line-wheel{fill:var(--ink)}
.hesap-line .line-van-tip{fill:var(--c)}
.hesap-line .line-van-num{font-size:10px;font-weight:700;fill:var(--paper)}
.hesap-line .line-card:focus-visible .line-card-box{stroke:var(--accent);stroke-width:3}

/* The estimate mark is pale, apart from the point and the marks. */
.hesap-line .line-estimate line{stroke:var(--accent);stroke-width:3;stroke-linecap:round;opacity:.55;stroke-dasharray:4 3}
.hesap-line .line-estimate path{fill:var(--accent);opacity:.55}
.hesap-line .line-fixed .line-dot{fill:var(--c);stroke:var(--paper);stroke-width:2}

/* The book: the edge of its pages between its covers, and the bookmark. */
.hesap-line .line-book-pages{fill:color-mix(in srgb,var(--hesap-gold) 14%,var(--paper));stroke:var(--ink-2);stroke-width:1}
.hesap-line .line-book-leaf{stroke:var(--ink-2);stroke-width:.6;opacity:.5}
.hesap-line .line-book-cover{fill:color-mix(in srgb,var(--hesap-blue) 70%,var(--hesap-dark))}

/* The touch band of a mark that the reader drags into place. */
.hesap-line .line-band{fill:transparent}
.hesap-line .line-handle{cursor:ew-resize;outline:none}
.hesap-line .line-mark-key{outline:none}
.hesap-line .line-handle.line-focus .line-band{stroke:var(--accent);stroke-width:2;fill:var(--accent);fill-opacity:.06}

/* The start of the jumps: a ring round its mark, and the point that moves by the buttons alone inside it. */
.hesap-line .line-ring{fill:none;stroke:var(--c);stroke-width:3}
.hesap-line .line-start.line-moves{cursor:grab;outline:none}
.hesap-line .line-start:focus-visible .line-hit{stroke:var(--accent);stroke-width:2.5}
.hesap-line .line-start.line-hot .line-ring{stroke-width:5}
.hesap-line .line-fixed{pointer-events:none}
.hesap-line .line-chip-wide{flex-basis:100%}

/* The words under the line. */
.hesap-line .line-reading{font-size:20px;font-weight:700}

/* The pond of the opening pages: the water, the bank, the stones and the frog. */
.hesap-line .line-water{fill:color-mix(in srgb,var(--hesap-blue) 20%,var(--paper));stroke:none}
.hesap-line .line-bank{fill:color-mix(in srgb,var(--hesap-green) 40%,var(--paper));stroke:color-mix(in srgb,var(--hesap-green) 70%,var(--paper));stroke-width:2}
.hesap-line .line-stone-body{fill:color-mix(in srgb,var(--ink) 16%,var(--paper));stroke:var(--ink-2);stroke-width:1.5}
.hesap-line .line-stone-num{font-weight:700}
.hesap-line .line-frog{--line-frog-edge:color-mix(in oklab,var(--hesap-green) 55%,var(--hesap-dark))}
.hesap-line .line-frog-body,.hesap-line .line-frog-leg{fill:var(--hesap-green);stroke:var(--line-frog-edge);stroke-width:1.5}
.hesap-line .line-frog-eye{fill:var(--hesap-light);stroke:var(--line-frog-edge);stroke-width:1.5}
.hesap-line .line-frog-pupil{fill:var(--hesap-dark)}
.hesap-line .line-frog-mouth{fill:none;stroke:var(--line-frog-edge);stroke-width:1.5;stroke-linecap:round}

/* A part the text points at stands out. A point is drawn in the accent, so its outline turns ink. */
.hesap-line .line-hot .line-dot,.hesap-line .line-hot .line-flag-box{stroke:var(--ink);stroke-width:3}
.hesap-line .line-arcs.line-hot .line-arc{stroke-width:4}
.hesap-line .line-arc.line-hot{stroke-width:4.5}
.hesap-line .line-reading.line-hot{fill:var(--accent)}
.hesap-line .line-hot .line-frog-body{stroke:var(--accent);stroke-width:3}

/* The count: a box with the number at each landing, and the count line with the newest number in bold. */
.hesap-line .line-box rect{fill:var(--paper);stroke:var(--accent);stroke-width:1.5}
.hesap-line .line-box text{font-size:13px;font-weight:700}
.hesap-line .line-tag rect{fill:color-mix(in srgb,var(--accent) 14%,var(--paper));stroke:var(--accent);stroke-width:1.2}
.hesap-line .line-tag text{font-size:13px;font-weight:700}
.hesap-line .line-box-compact text{font-size:11px}
.hesap-line .line-box-new rect{fill:color-mix(in srgb,var(--accent) 16%,var(--paper))}
.hesap-line .line-count{font-size:18px}
.hesap-line .line-count-new{font-weight:700}
.hesap-line .line-box.line-hot rect{stroke-width:3}
.hesap-line .line-count.line-hot{fill:var(--accent)}

/* The groups over the jumps: a ring round each group, which stays dashed once a jump to the left takes it away. */
.hesap-line .line-group-ring{fill:none;stroke:var(--ink-2);stroke-width:1.2}
.hesap-line .line-gone .line-group-ring{stroke-dasharray:3 3}
.hesap-line .line-group.line-hot .line-group-ring{stroke:var(--accent);stroke-width:2.5}
.hesap-line .line-group.line-hot .line-counter,.hesap-line .line-group.line-hot .line-sock{stroke:var(--accent);stroke-width:2}
.hesap-line .line-counter{fill:color-mix(in srgb,var(--accent) 70%,var(--paper));stroke:var(--ink-2);stroke-width:1}
.hesap-line .line-rope{stroke:var(--ink-2);stroke-width:1.5}
.hesap-line .line-peg{fill:var(--ink-2)}
.hesap-line .line-sock{fill:color-mix(in srgb,var(--accent) 60%,var(--paper));stroke:var(--ink-2);stroke-width:1;stroke-linejoin:round}
.hesap-line .line-sock-b{fill:color-mix(in srgb,var(--ink-2) 55%,var(--paper))}
.hesap-line .line-rack{stroke:var(--ink-2);stroke-width:2;stroke-linecap:round}
.hesap-line .line-wheel-rim{fill:none;stroke:var(--ink);stroke-width:2}
.hesap-line .line-frame{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.hesap-line .line-group.line-hot .line-wheel-rim{stroke:var(--accent)}
.hesap-line .line-palm{fill:color-mix(in srgb,var(--accent) 45%,var(--paper));stroke:var(--ink-2);stroke-width:1}
.hesap-line .line-finger{fill:none;stroke:color-mix(in srgb,var(--accent) 45%,var(--paper));stroke-linecap:round}
.hesap-line .line-finger-edge{fill:none;stroke:var(--ink-2);stroke-linecap:round}
.hesap-line .line-group.line-hot .line-palm,.hesap-line .line-group.line-hot .line-finger-edge{stroke:var(--accent)}
.hesap-line .line-flat{fill:color-mix(in srgb,var(--accent) 70%,var(--paper));stroke:var(--ink-2);stroke-width:1}
.hesap-line .line-flat-grid{fill:none;stroke:var(--ink-2);stroke-width:.5;opacity:.7}
.hesap-line .line-pack{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.2}
.hesap-line .line-pack-band{fill:color-mix(in srgb,var(--accent) 55%,var(--paper))}
.hesap-line .line-pack-num{font-weight:700}
.hesap-line .line-group.line-hot .line-flat,.hesap-line .line-group.line-hot .line-pack{stroke:var(--accent);stroke-width:2.5}
.hesap-line .line-pencil{fill:color-mix(in srgb,var(--hesap-gold) 80%,var(--paper));stroke:var(--ink-2);stroke-width:.8;stroke-linejoin:round}
.hesap-line .line-pencil-lead{fill:var(--ink)}
.hesap-line .line-pencil-box{fill:color-mix(in srgb,var(--hesap-green) 70%,var(--paper));stroke:var(--ink-2);stroke-width:1}
.hesap-line .line-group.line-hot .line-pencil-box,.hesap-line .line-group.line-hot .line-pencil{stroke:var(--accent);stroke-width:2}

/* The hundred square: a cell for each number, the tile for 0, the start's ring and the point as a disc with its
   number. A count tints the cells it lands on. The counts of fill differ by shape: a tint, a ring and a border. */
.hesap-line .line-sq-box{fill:var(--paper);stroke:var(--rule);stroke-width:1}
.hesap-line .line-sq-cell text,.hesap-line .line-sq-tile text{font-weight:500}
.hesap-line .line-sq-lit,.hesap-line .line-sq-landed rect{fill:color-mix(in srgb,var(--accent) 24%,var(--paper))}
.hesap-line .line-sq-tile rect{fill:none;stroke:var(--ink-2);stroke-width:1.5;stroke-dasharray:4 3}
.hesap-line .line-sq-tint{fill:color-mix(in srgb,var(--hesap-blue) 32%,var(--paper))}
.hesap-line .line-sq-ring{fill:none;stroke:var(--hesap-gold);stroke-width:2.5}
.hesap-line .line-sq-border{fill:none;stroke:var(--hesap-green);stroke-width:3.5}
.hesap-line .line-sq-start{fill:none;stroke:var(--c);stroke-width:3}
.hesap-line .line-sq-start.line-hot{stroke-width:5}
.hesap-line .line-sq-taps .line-sq-cell,.hesap-line .line-sq-taps .line-sq-tile{cursor:pointer}
.hesap-line .line-sq-num{fill:var(--paper);font-weight:700}
.hesap-line .line-sq-say{fill:transparent;font-size:1px}
.hesap-line .line-sq-hot .line-sq-box,.hesap-line .line-sq-tile.line-sq-hot rect{stroke:var(--accent);stroke-width:2.5}
.hesap-swatch.line-sq-sw-tint{background:color-mix(in srgb,var(--hesap-blue) 45%,var(--paper));border-radius:2px}
.hesap-swatch.line-sq-sw-ring{background:none;border:2.5px solid var(--hesap-gold);box-sizing:border-box}
.hesap-swatch.line-sq-sw-border{background:none;border:3px solid var(--hesap-green);border-radius:2px;box-sizing:border-box}

/* The jump buttons keep to one row and show their sign large beside their name. */
.hesap-line .line-jumps{display:inline-flex;flex-wrap:nowrap;gap:.429rem}
.hesap-line .line-jump b{font-size:1.286rem;line-height:1}

@media (max-width:900px){
  /* The figure ends above the peek card, which covers the foot of the stage until the reader closes it. */
  .hesap-line .line-svg{height:calc(100% - var(--hesap-peek,0px))}
}
