/* EnScribe by AUTOMATA — the run spine: check bars, the machine feed, and the
   mini preflight bar (enscribe-spine.js). Kevin, 2026-11-06.
   EnScribe's own tokens only, so it matches the page in every theme.
   Add-on sheet: it adds rules of its own and only smooths the existing
   progress bar; it changes no other rule on the page. */

/* the page's own overall bar gets the house motion: it slides to each new
   number instead of jumping, with a slow travelling shine while it runs */
#progBar { transition: width .45s cubic-bezier(.22, .61, .36, 1); position: relative; overflow: hidden; }
#progBar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 68%);
  background-size: 230% 100%; animation: es-sheen 2.6s linear infinite;
}

@keyframes es-sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes es-pulse { 50% { transform: scale(1.4); } }
@keyframes es-blip { 50% { opacity: .2; } }
@keyframes es-in { from { opacity: 0; transform: translateY(3px); } }

/* ---------- the check bars ---------- */
#esSpine.es-spine[hidden] { display: none; }
#esSpine.es-spine { margin: 14px 0 2px; font-family: inherit; }
#esSpine .es-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
#esSpine .es-eye {
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red, #E8553F);
}
#esSpine .es-count {
  font: 500 11px/1 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums; color: var(--muted, #A8A0A6);
}
#esSpine .es-rows { display: grid; gap: 8px; }
#esSpine .es-row { opacity: .5; transition: opacity .6s ease; }
#esSpine .es-row[data-state="running"], #esSpine .es-row[data-state="done"] { opacity: 1; }
#esSpine .es-row-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
#esSpine .es-label { color: var(--ink, #EDE9EA); }
#esSpine .es-state {
  margin-left: auto; font: 500 10px/1 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--muted, #A8A0A6);
}
#esSpine .es-row[data-state="done"] .es-state { color: var(--ok, #2F7D55); }
#esSpine .es-row[data-state="running"] .es-state { color: var(--red, #E8553F); }
#esSpine .es-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--line, #34303A); transition: background .4s ease;
}
#esSpine .es-row[data-state="running"] .es-dot { background: var(--red, #E8553F); animation: es-pulse 1.5s ease-in-out infinite; }
#esSpine .es-row[data-state="done"] .es-dot { background: var(--ok, #2F7D55); }
#esSpine .es-track {
  height: 4px; margin-top: 5px; border-radius: 4px; overflow: hidden;
  background: var(--mist, #1B191E);
}
#esSpine .es-track > i {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--red, #E8553F), var(--vermilion, #F07A3A));
}
#esSpine .es-row[data-state="done"] .es-track > i { background: var(--ok, #2F7D55); }

/* ---------- the steps inside a check ---------- */
#esSpine .es-phase[hidden] { display: none; }
#esSpine .es-phase { margin: 0 0 11px; }
#esSpine .es-segs { display: flex; gap: 3px; height: 5px; }
#esSpine .es-segs > i {
  flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--mist, #1B191E);
  transition: background .5s ease, opacity .5s ease;
}
#esSpine .es-segs > i[data-state="done"] { background: var(--ok, #2F7D55); }
#esSpine .es-segs > i[data-state="live"] {
  background: linear-gradient(90deg, var(--red, #E8553F), var(--vermilion, #F07A3A));
  animation: es-seg 1.4s ease-in-out infinite;
}
@keyframes es-seg { 50% { opacity: .45; } }
#esSpine .es-phase-line {
  margin-top: 6px; font: 500 10.5px/1.5 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--muted, #A8A0A6);
}
#esSpine .es-more[hidden] { display: none; }
#esSpine .es-more {
  margin-top: 8px; font: 500 10px/1.5 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--muted, #A8A0A6); opacity: .75;
}

/* a check the engine reports no steps for: working, with no number pretended */
#esSpine .es-row[data-kind="working"] .es-track > i {
  background: repeating-linear-gradient(115deg, var(--red, #E8553F) 0 8px, var(--mist, #1B191E) 8px 16px);
  background-size: 200% 100%; animation: es-barber 1.1s linear infinite; opacity: .75;
}
#esMini[data-state="running"] .es-mini-track > i {
  background: repeating-linear-gradient(115deg, var(--red, #E8553F) 0 8px, var(--mist, #1B191E) 8px 16px);
  background-size: 200% 100%; animation: es-barber 1.1s linear infinite; opacity: .8;
}
@keyframes es-barber-top { from { background-position: 0 0; } to { background-position: -40px 0; } }

/* ---------- the mini preflight bar ---------- */
#esMini.es-mini[hidden] { display: none; }
#esMini.es-mini { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
#esMini .es-mini-word {
  font: 500 11px/1.4 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--muted, #A8A0A6); white-space: nowrap;
}
#esMini .es-mini-track {
  flex: 1; height: 3px; border-radius: 3px; overflow: hidden;
  background: var(--mist, #1B191E);
}
#esMini .es-mini-track > i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--red, #E8553F), var(--vermilion, #F07A3A));
  transition: width .2s linear;
}
#esMini[data-state="done"] .es-mini-track > i { background: var(--ok, #2F7D55); }
#esMini[data-state="done"] .es-mini-word { color: var(--ok, #2F7D55); }

/* ---------- the machine feed ---------- */
#esFeed.es-feed {
  position: fixed; top: 92px; right: 14px; bottom: 54px; width: clamp(168px, 15vw, 232px);
  z-index: 40; display: flex; flex-direction: column; pointer-events: none;
  border: 1px solid var(--line, #34303A); border-radius: 10px; overflow: hidden;
  background: color-mix(in srgb, var(--surface, #17161A) 88%, transparent);
  backdrop-filter: blur(3px); opacity: 1; transition: opacity .8s ease;
}
#esFeed.es-quiet { opacity: .4; }
#esFeed .es-cap {
  flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 10px;
  border-bottom: 1px solid var(--line, #34303A);
  font: 700 8.5px/1.3 inherit; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted, #A8A0A6); min-width: 0;
}
#esFeed .es-cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#esFeed .es-cap i {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--red, #E8553F); animation: es-blip 1.6s ease-in-out infinite;
}
#esFeed .es-body {
  flex: 1; overflow: hidden; padding: 8px 10px 10px;
  display: flex; flex-direction: column; justify-content: flex-end;
  font: 500 10px/1.65 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--muted, #A8A0A6);
  mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 26px), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 26px), transparent);
}
#esFeed .es-l { white-space: pre-wrap; word-break: break-word; animation: es-in .45s ease both; }
#esFeed .es-l u { text-decoration: none; margin-left: 6px; color: var(--red, #E8553F); }
#esFeed .es-head { color: var(--ink, #EDE9EA); font-weight: 600; margin-top: 5px; }
#esFeed .es-run { color: var(--ink, #EDE9EA); }
#esFeed .es-ok u { color: var(--ok, #2F7D55); }
#esFeed .es-found u { color: var(--vermilion, #F07A3A); }
#esFeed .es-dim, #esFeed .es-dim u { opacity: .6; }

/* ---------- the side tally: edits found, counting up ---------- */
#esFeed .es-tally[hidden] { display: none; }
#esFeed .es-tally {
  flex: none; padding: 9px 10px 10px; border-bottom: 1px solid var(--line, #34303A);
  font: 500 10px/1.5 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
#esFeed .es-tally-cap {
  font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted, #A8A0A6); opacity: .8; margin-bottom: 6px;
}
#esFeed .es-tally-rows { display: grid; gap: 2px; }
#esFeed .es-tally-row { display: flex; justify-content: space-between; gap: 8px; color: var(--muted, #A8A0A6); opacity: .55; }
#esFeed .es-tally-row[data-on="1"] { opacity: 1; color: var(--ink, #EDE9EA); }
#esFeed .es-tally-row b { font-variant-numeric: tabular-nums; color: var(--vermilion, #F07A3A); font-weight: 600; }
#esFeed .es-tally-row[data-on=""] b { color: var(--muted, #A8A0A6); }
#esFeed .es-tally-total {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; padding-top: 6px;
  border-top: 1px solid var(--line, #34303A); color: var(--ink, #EDE9EA);
}
#esFeed .es-tally-total b { font-variant-numeric: tabular-nums; color: var(--red, #E8553F); font-weight: 700; }
#esFeed .es-pop { animation: es-pop .42s ease-out; display: inline-block; }
@keyframes es-pop { 0% { transform: scale(1.3); color: var(--red, #E8553F); } 100% { transform: scale(1); } }

@media (max-width: 1119px) { #esFeed.es-feed { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #progBar { transition: none; }
  #progBar::after, #esSpine .es-dot, #esFeed .es-l, #esFeed .es-cap i { animation: none; }
  #esFeed.es-feed { transition: none; }
  #esFeed .es-pop { animation: none; }
  #esMini .es-mini-track > i, #esSpine .es-row[data-kind="working"] .es-track > i { transition: none; animation: none; }
  #esMini .es-mini-mark path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- the full-screen run console ----------
   Kevin, 2026-11-06: full screen, nested labeled bars that spawn and collapse,
   and work that runs at the same time shown as running at the same time. */
html.es-con-on, html.es-con-on body { overflow: hidden; }
#esConsole.es-con[hidden] { display: none; }
#esConsole.es-con {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: stretch;
  background: color-mix(in srgb, var(--paper, #0E0D10) 92%, transparent);
  backdrop-filter: blur(6px); animation: es-fade .35s ease both;
  padding: clamp(14px, 3vw, 38px);
}
@keyframes es-fade { from { opacity: 0; } }
#esConsole .es-con-sheet {
  display: flex; flex-direction: column; min-height: 0; gap: 12px;
  background: var(--surface, #17161A); border: 1px solid var(--line, #34303A); border-radius: 6px;
  padding: clamp(16px, 2.4vw, 28px);
}
#esConsole .es-con-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
#esConsole .es-con-eye {
  font: 700 10px/1.3 inherit; letter-spacing: .2em; text-transform: uppercase; color: var(--red, #E8553F);
}
#esConsole .es-con-file { font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; margin-top: 4px; color: var(--ink, #EDE9EA); }
#esConsole .es-con-right { display: flex; align-items: center; gap: 16px; }
#esConsole .es-con-pct {
  font: 700 clamp(26px, 3.4vw, 40px)/1 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums; color: var(--ink, #EDE9EA);
}
#esConsole .es-con-close {
  background: none; border: 1px solid var(--line, #34303A); border-radius: 3px; cursor: pointer;
  color: var(--muted, #A8A0A6); font: 600 11px/1 inherit; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 14px;
}
#esConsole .es-con-close:hover { color: var(--ink, #EDE9EA); border-color: var(--muted, #A8A0A6); }
#esConsole .es-con-bar { height: 10px; border-radius: 10px; overflow: hidden; background: var(--mist, #1B191E); }
#esConsole .es-con-bar > i {
  display: block; height: 100%; width: 0; border-radius: 10px;
  background: linear-gradient(90deg, var(--red, #E8553F), var(--vermilion, #F07A3A));
  position: relative; overflow: hidden;
}
#esConsole .es-con-bar[data-state="running"] > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 68%);
  background-size: 230% 100%; animation: es-sheen 2.6s linear infinite;
}
#esConsole .es-con-bar[data-state="done"] > i { background: var(--ok, #2F7D55); }
#esConsole .es-con-meta {
  display: flex; justify-content: space-between; gap: 14px;
  font: 500 11.5px/1.5 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--muted, #A8A0A6);
}
#esConsole .es-con-body { display: grid; grid-template-columns: 1fr 260px; gap: 22px; min-height: 0; flex: 1; }
@media (max-width: 900px) { #esConsole .es-con-body { grid-template-columns: 1fr; } #esConsole .es-rail { display: none; } }
#esConsole .es-lanes { overflow: auto; display: grid; gap: 12px; align-content: start; padding-right: 4px; }
#esConsole .es-rail { position: relative; min-height: 0; }
#esConsole .es-rail #esFeed.es-feed { position: static; width: auto; height: 100%; inset: auto; }

/* one job */
#esConsole .es-lane {
  border: 1px solid var(--line, #34303A); border-radius: 4px; padding: 12px 14px 13px;
  background: color-mix(in srgb, var(--mist, #1B191E) 55%, transparent);
  opacity: .55; transition: opacity .5s ease, border-color .5s ease;
}
#esConsole .es-lane[data-state="running"] { opacity: 1; border-color: color-mix(in srgb, var(--red, #E8553F) 55%, var(--line, #34303A)); }
#esConsole .es-lane[data-state="done"] { opacity: 1; }
#esConsole .es-lane-top { display: flex; align-items: center; gap: 9px; font-size: 14px; }
#esConsole .es-lane-name { color: var(--ink, #EDE9EA); font-weight: 600; }
#esConsole .es-lane-state {
  margin-left: auto; font: 500 10.5px/1 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--muted, #A8A0A6); letter-spacing: .04em;
}
#esConsole .es-lane[data-state="running"] .es-lane-state { color: var(--red, #E8553F); }
#esConsole .es-lane[data-state="done"] .es-lane-state { color: var(--ok, #2F7D55); }
#esConsole .es-lane-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line, #34303A); flex: none; }
#esConsole .es-lane[data-state="running"] .es-lane-dot { background: var(--red, #E8553F); animation: es-pulse 1.5s ease-in-out infinite; }
#esConsole .es-lane[data-state="done"] .es-lane-dot { background: var(--ok, #2F7D55); }
#esConsole .es-lane-bar { height: 6px; margin-top: 9px; border-radius: 6px; overflow: hidden; background: var(--mist, #1B191E); }
#esConsole .es-lane-bar > i {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--red, #E8553F), var(--vermilion, #F07A3A));
}
#esConsole .es-lane[data-state="done"] .es-lane-bar > i { background: var(--ok, #2F7D55); }
/* a job the engine gives no steps for: working, with no number pretended */
#esConsole .es-lane-bar[data-kind="working"] > i {
  background: repeating-linear-gradient(115deg, var(--red, #E8553F) 0 10px, var(--mist, #1B191E) 10px 20px);
  background-size: 200% 100%; animation: es-barber 1.1s linear infinite; opacity: .75;
}
@keyframes es-barber { from { background-position: 0 0; } to { background-position: -40px 0; } }

/* the steps nested under a job: they spawn, then fold away when it is done */
#esConsole .es-kids { display: grid; gap: 0; margin-top: 2px; }
#esConsole .es-kids.es-fold { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease; }
#esConsole .es-kid {
  max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-4px);
  transition: max-height .55s cubic-bezier(.22,.61,.36,1), opacity .45s ease, transform .45s ease, margin .45s ease;
  margin-left: 16px; border-left: 1px solid var(--line, #34303A); padding-left: 11px;
}
#esConsole .es-kid.es-in { max-height: 44px; opacity: 1; transform: none; margin-top: 9px; }
#esConsole .es-kid-top {
  display: flex; justify-content: space-between; gap: 10px;
  font: 500 11px/1.4 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--muted, #A8A0A6);
}
#esConsole .es-kid[data-state="done"] .es-kid-top { color: var(--charcoal, #D6D0D3); }
#esConsole .es-kid[data-state="done"] .es-kid-state { color: var(--ok, #2F7D55); }
#esConsole .es-kid[data-state="running"] .es-kid-state { color: var(--red, #E8553F); }
#esConsole .es-kid-bar { height: 3px; margin-top: 5px; border-radius: 3px; overflow: hidden; background: var(--mist, #1B191E); }
#esConsole .es-kid-bar > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ok, #2F7D55); transition: width .45s ease; }
#esConsole .es-kid[data-state="done"] .es-kid-bar > i { width: 100%; }
#esConsole .es-kid[data-state="running"] .es-kid-bar > i {
  width: 100%;
  background: repeating-linear-gradient(115deg, var(--red, #E8553F) 0 8px, var(--mist, #1B191E) 8px 16px);
  background-size: 200% 100%; animation: es-barber 1.1s linear infinite;
}
#esConsole .es-lane-sum[hidden] { display: none; }
#esConsole .es-lane-sum {
  margin-top: 8px; font: 500 10.5px/1.4 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ok, #2F7D55);
}

/* jobs that run at the same time are bracketed together */
#esConsole .es-group {
  position: relative; display: grid; gap: 10px; padding: 10px 0 10px 16px;
  border-left: 2px solid color-mix(in srgb, var(--red, #E8553F) 60%, transparent);
}
#esConsole .es-group-tag {
  position: absolute; top: -1px; left: 16px;
  font: 700 8.5px/1 inherit; letter-spacing: .18em; text-transform: uppercase; color: var(--red, #E8553F);
}
#esConsole .es-group > .es-lane:first-of-type { margin-top: 12px; }

/* the way back in if the console is closed mid-scan */
#esReopen.es-reopen[hidden] { display: none; }
#esReopen.es-reopen {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; cursor: pointer;
  background: var(--red, #E8553F); color: #fff; border: 0; border-radius: 3px;
  font: 700 11px/1 inherit; letter-spacing: .1em; text-transform: uppercase; padding: 11px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

@media (prefers-reduced-motion: reduce) {
  #esConsole.es-con, #esConsole .es-kid, #esConsole .es-kids.es-fold { animation: none; transition: none; }
  #esConsole .es-lane-bar[data-kind="working"] > i, #esConsole .es-kid[data-state="running"] .es-kid-bar > i,
  #esConsole .es-con-bar[data-state="running"] > i::after, #esConsole .es-lane[data-state="running"] .es-lane-dot { animation: none; }
}

/* ---------- a number on the side takes you to that part of the report ----------
   Only once the report has been bought; before that the numbers are numbers. */
#esFeed .es-tally-row[data-jump="1"] { cursor: pointer; }
#esFeed .es-tally-row[data-jump="1"]:hover { color: var(--vermilion, #F07A3A); }
#esFeed .es-tally-row[data-jump="1"]:hover b { text-decoration: underline; }
#esFeed .es-tally-row[data-jump="1"]::after { content: " \2192"; color: var(--muted, #A8A0A6); opacity: .6; font-size: 9px; }
.score-tile.es-jumped, .es-jumped {
  animation: es-jumped 2.2s ease-out;
  outline: 2px solid var(--red, #E8553F); outline-offset: 3px; border-radius: 3px;
}
@keyframes es-jumped { 0% { outline-color: var(--red, #E8553F); } 100% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .score-tile.es-jumped, .es-jumped { animation: none; } }

/* ---------- the numbered checks under each step ---------- */
#esConsole .es-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
#esConsole .es-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 2px;
  border: 1px solid var(--line, #34303A); background: color-mix(in srgb, var(--mist, #1B191E) 70%, transparent);
  font: 500 9.5px/1.3 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--muted, #A8A0A6);
  transition: color .4s ease, border-color .4s ease, opacity .4s ease; opacity: .8;
}
#esConsole .es-chip b { font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
#esConsole .es-chip[data-state="working"] {
  color: var(--ink, #EDE9EA); border-color: color-mix(in srgb, var(--red, #E8553F) 55%, var(--line, #34303A)); opacity: 1;
  animation: es-chip-live 1.6s ease-in-out infinite;
}
#esConsole .es-chip[data-state="working"] b { color: var(--red, #E8553F); opacity: 1; }
#esConsole .es-chip[data-state="done"] { color: var(--charcoal, #D6D0D3); border-color: color-mix(in srgb, var(--ok, #2F7D55) 45%, var(--line, #34303A)); opacity: 1; }
#esConsole .es-chip[data-state="done"] b { color: var(--ok, #2F7D55); opacity: 1; }
@keyframes es-chip-live { 50% { opacity: .62; } }
@media (prefers-reduced-motion: reduce) { #esConsole .es-chip[data-state="working"] { animation: none; } }

/* the scorecard, inside the console at the finish */
#esConsole .es-result { border: 1px solid var(--line, #34303A); border-radius: 4px; padding: 12px 14px 14px; background: color-mix(in srgb, var(--mist, #1B191E) 45%, transparent); }
#esConsole .es-result-cap { font: 700 9px/1 inherit; letter-spacing: .18em; text-transform: uppercase; color: var(--ok, #2F7D55); margin-bottom: 10px; }
#esConsole .es-result #scorecardPanel { display: block !important; margin: 0; }

/* copy what happened */
#esFeed .es-cap { pointer-events: auto; }
#esFeed .es-copy {
  margin-left: auto; background: none; border: 1px solid var(--line, #34303A); border-radius: 2px;
  color: var(--muted, #A8A0A6); font: 600 8.5px/1 inherit; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 7px; cursor: pointer;
}
#esFeed .es-copy:hover { color: var(--ink, #EDE9EA); border-color: var(--muted, #A8A0A6); }
#esConsole #esConCopy { font-size: 10px; }

/* ---------- the tracked copy, writing itself on the left ---------- */
#esConsole .es-con-body { grid-template-columns: 1fr 260px; }
#esConsole.es-con-paper .es-con-body { grid-template-columns: minmax(240px, 320px) 1fr 260px; }
@media (max-width: 1240px) { #esConsole.es-con-paper .es-con-body { grid-template-columns: 1fr 260px; } #esConsole .es-paper { display: none; } }
@media (max-width: 900px) { #esConsole.es-con-paper .es-con-body { grid-template-columns: 1fr; } }
#esConsole .es-paper[hidden] { display: none; }
#esConsole .es-paper {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border: 1px solid var(--line, #34303A); border-radius: 4px;
  background: color-mix(in srgb, var(--mist, #1B191E) 55%, transparent);
}
#esConsole .es-paper-cap {
  flex: none; padding: 9px 12px; border-bottom: 1px solid var(--line, #34303A);
  font: 700 8.5px/1.3 inherit; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #A8A0A6);
}
#esConsole .es-paper-body {
  flex: 1; overflow: hidden; padding: 10px 12px 14px; scroll-behavior: smooth;
  font: 400 11.5px/1.7 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--charcoal, #D6D0D3);
  mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 22px), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 22px), transparent);
}
#esConsole .es-edit {
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
  padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--line, #34303A) 55%, transparent);
}
#esConsole .es-edit.es-in { opacity: 1; transform: none; }
#esConsole .es-edit-where {
  display: block; font: 500 9.5px/1.4 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: .04em; color: var(--red, #E8553F); text-transform: lowercase;
}
#esConsole .es-edit-what { display: block; }
@media (prefers-reduced-motion: reduce) { #esConsole .es-edit { transition: none; opacity: 1; transform: none; } }

/* the edit list: locked until the report is bought, and kept when the run ends */
#esConsole .es-locked {
  opacity: 0; transition: opacity .5s ease; padding: 14px 2px;
  font: 500 11px/1.6 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--muted, #A8A0A6);
}
#esConsole .es-locked.es-in { opacity: 1; }
#esConsole .es-locked b { display: block; color: var(--ink, #EDE9EA); font-size: 13px; margin-bottom: 4px; font-family: inherit; }
#esConsole .es-paper[data-done="1"] .es-paper-body {
  overflow-y: auto; scrollbar-width: thin;
  mask-image: none; -webkit-mask-image: none;
}
#esConsole .es-paper[data-done="1"] .es-paper-cap { color: var(--ok, #2F7D55); }

/* the manuscript, reading itself down the left column */
#esConsole .es-para {
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
  margin: 0 0 9px; text-indent: 1.1em; hyphens: auto;
}
#esConsole .es-para.es-in { opacity: 1; transform: none; }
#esConsole .es-para.es-head {
  text-indent: 0; margin: 14px 0 8px; font-family: inherit; font-weight: 600;
  color: var(--ink, #EDE9EA); font-size: 12px; letter-spacing: .01em;
}

/* ---------- a bar for every function inside a step ---------- */
#esConsole .es-subs { display: grid; gap: 4px; margin-top: 8px; }
#esConsole .es-sub { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(60px, 180px); gap: 10px; align-items: center; }
#esConsole .es-sub-name {
  font: 500 9.5px/1.4 "Montserrat", "Euphemia UCAS", "Euphemia", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--muted, #A8A0A6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#esConsole .es-sub-name b { font-weight: 700; opacity: .65; margin-right: 5px; font-variant-numeric: tabular-nums; }
#esConsole .es-sub-track { height: 3px; border-radius: 3px; overflow: hidden; background: var(--mist, #1B191E); }
#esConsole .es-sub-track > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ok, #2F7D55); transition: width .5s cubic-bezier(.22,.61,.36,1); }
#esConsole .es-sub[data-state="done"] .es-sub-track > i { width: 100%; }
#esConsole .es-sub[data-state="done"] .es-sub-name { color: var(--charcoal, #D6D0D3); }
#esConsole .es-sub[data-state="done"] .es-sub-name b { color: var(--ok, #2F7D55); opacity: 1; }
#esConsole .es-sub[data-state="working"] .es-sub-name { color: var(--ink, #EDE9EA); }
#esConsole .es-sub[data-state="working"] .es-sub-name b { color: var(--red, #E8553F); opacity: 1; }
#esConsole .es-sub[data-state="working"] .es-sub-track > i {
  width: 100%;
  background: repeating-linear-gradient(115deg, var(--red, #E8553F) 0 8px, var(--mist, #1B191E) 8px 16px);
  background-size: 200% 100%; animation: es-barber 1.1s linear infinite;
}

/* the tracked copy, composed section by section */
#esConsole .es-sections {
  margin: 10px 0 2px 16px; padding-left: 11px; border-left: 1px solid var(--line, #34303A);
  display: grid; gap: 4px; opacity: 0; transition: opacity .5s ease;
}
#esConsole .es-sections.es-in { opacity: 1; }
#esConsole .es-sections-cap {
  font: 700 8.5px/1.3 inherit; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted, #A8A0A6); margin-bottom: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #esConsole .es-sub[data-state="working"] .es-sub-track > i { animation: none; }
  #esConsole .es-sections { transition: none; opacity: 1; }
}

/* --- the mark as the preflight spinner (Kevin 2026-11-07) --- */
#esMini .es-mini-mark { width: 22px; height: 22px; flex: 0 0 auto; display: block; }
#esMini .es-mini-mark path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: esDrawE 1.5s linear infinite;
}
@keyframes esDrawE {
  0%   { stroke-dashoffset: 1; }
  70%  { stroke-dashoffset: 0; }
  78%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}
#esMini[data-state="done"] .es-mini-mark path { animation: none; stroke-dashoffset: 0; }
