/*
 * A terminal's screen, masthead and all.
 *
 * The screen has one typeface and one colour in its few intensities: text is the phosphor,
 * quieter text is it dimmed, what matters is it brightened or shown in reverse. Where a chart
 * needs to tell things apart it uses a fill (solid, dither, dots, hatch, hollow) rather than
 * a second hue.
 */

/* VT323, drawn from the glyphs of the VT320. SIL Open Font License 1.1. */
@font-face {
  font-family: "VT323";
  src: url(fonts/vt323.woff2) format("woff2");
  font-display: block;
}

:root {
  --bg: #150d00;
  --ink: #ffb000;
  --dim: #a87400;
  --hi: #ffdc8f;
  --glow: rgba(255, 176, 0, 0.32);

  /* The masthead's height, which a jump to a section has to clear. */
  --mast: 60px;
  /* How far a section's contents stand in from its border. */
  --gutter: 2ch;

  color-scheme: dark;
}
[data-phosphor="green"] {
  --bg: #03110a;
  --ink: #3dff7a;
  --dim: #22a550;
  --hi: #c2ffd6;
  --glow: rgba(61, 255, 122, 0.28);
}
[data-phosphor="white"] {
  --bg: #0e0f10;
  --ink: #d8dcd6;
  --dim: #858b85;
  --hi: #ffffff;
  --glow: rgba(216, 220, 214, 0.22);
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--ink);
  font:
    20px/1.2 "VT323",
    ui-monospace,
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
  font-variant-ligatures: none;
  text-shadow: 0 0 5px var(--glow);
  scroll-padding-top: calc(var(--mast) + 1lh);
  scrollbar-color: var(--dim) var(--bg);
  /* A phone is not to pick a text size of its own. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  /* A word too long for its line is broken rather than left to widen the page. */
  overflow-wrap: break-word;
}
/* Scanlines, over all of the screen. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.2) 2px 3px);
}
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.spoken {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ------------------------------------------------------------------------- masthead */

.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  text-transform: uppercase;
}
/* Ruled off in the phosphor's two strengths. */
.mast::after {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(var(--ink) 50%, var(--dim) 0);
}
.mast .wrap {
  display: flex;
  align-items: center;
  gap: 2ch;
  height: calc(var(--mast) - 8px);
}
.mast h1 {
  margin: 0;
  font: inherit;
  color: var(--hi);
  white-space: nowrap;
}
/* The name, a letter to a block, each block in reverse. */
.logo {
  display: flex;
  gap: 3px;
  text-decoration: none;
  text-transform: none;
}
.logo:hover {
  background: none;
}
.logo b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 36px;
  background: var(--ink);
  color: var(--bg);
  /* Twice the font's own size, like the figures. */
  font-size: 32px;
  line-height: 1;
  text-shadow: none;
}
.mast nav {
  display: flex;
  gap: 3ch;
  margin-left: auto;
  white-space: nowrap;
}
.mast nav a {
  text-decoration: none;
}
@media (max-width: 900px) {
  .mast h1 {
    display: none;
  }
}
/*
 * On a phone the masthead has two rows: the logo and title, then the sections. Only the second
 * stays as the page scrolls.
 */
@media (max-width: 640px) {
  :root {
    --mast: 40px;
    --gutter: 1ch;
  }
  .wrap {
    padding: 0 10px;
  }
  .mast {
    top: -44px;
  }
  .mast .wrap {
    flex-wrap: wrap;
    gap: 0 2ch;
    height: auto;
  }
  .mast h1 {
    display: block;
  }
  .logo {
    margin: 4px 0;
  }
  .mast nav {
    flex: 0 0 100%;
    justify-content: space-between;
    gap: 1ch;
    margin: 0;
  }
  .mast nav a {
    padding: 4px 0;
  }
}
/* The narrowest phones fit every section only with the gaps closed up. */
@media (max-width: 350px) {
  .mast nav {
    gap: 0.5ch;
  }
}

/* With no mirror to describe, the sections that would describe one are put away. */
.no-mirror main > section:not(#status),
.no-mirror .mast nav a:not([href="#status"]) {
  display: none;
}

/* ------------------------------------------------------------------------- text */

p {
  margin: 0.5lh 0;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
/* Hover is for pointers that can leave again: a touch would leave a link lit. */
@media (hover: hover) {
  a:hover {
    background: var(--ink);
    color: var(--bg);
    text-shadow: none;
  }
}
strong,
b {
  font-weight: normal;
  color: var(--hi);
}
code,
pre {
  font: inherit;
}
code {
  color: var(--hi);
}
/* Raised without opening up the line it sits in. */
sup {
  line-height: 0;
}
pre {
  width: fit-content;
  max-width: 100%;
  max-height: 16lh;
  margin: 0.5lh 0;
  padding: 0 2ch;
  overflow: auto;
  border-left: 1px solid var(--dim);
}
.intro {
  margin-top: 1lh;
}
/* A caution, set apart from the text it comes before by a mark that runs its whole height. */
.notice {
  position: relative;
  width: fit-content;
  padding: 0.25lh 1.5ch 0.25lh 4.5ch;
  border: 1px dashed var(--dim);
}
.notice::before {
  content: "!";
  position: absolute;
  inset: 0 auto 0 0;
  display: grid;
  place-items: center;
  width: 3ch;
  background: var(--ink);
  color: var(--bg);
  text-shadow: none;
}
/* Pictures drawn square by square: see `icon` in format.js. */
.icon {
  fill: currentColor;
  shape-rendering: crispEdges;
}
#load-status {
  color: var(--dim);
}
:focus-visible {
  outline: 2px solid var(--hi);
  outline-offset: 2px;
}
/* What is selected shows in reverse, as everything picked out on this screen does. */
::selection {
  background: var(--ink);
  color: var(--bg);
  text-shadow: none;
}

/* A section is a box with its title set into the top edge. */
main > section,
footer > section {
  position: relative;
  margin-top: 2lh;
  padding: 1lh var(--gutter) 0.5lh;
  border: 1px solid var(--dim);
}
footer {
  padding-bottom: 3lh;
}
h2,
h3,
h4 {
  margin: 1lh 0 0;
  font: inherit;
}
section > h2 {
  position: absolute;
  top: calc(-0.5lh - 1px);
  left: calc(var(--gutter) - 1ch);
  margin: 0;
  padding: 0 1ch;
  background: var(--bg);
  color: var(--hi);
  text-transform: uppercase;
}
h2 a {
  text-decoration: none;
}
h3 {
  color: var(--dim);
  text-transform: uppercase;
}
h4 {
  color: var(--hi);
}

dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0 2ch;
  margin: 0.5lh 0;
}
dt {
  color: var(--dim);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
dd ul {
  margin: 0;
  padding-left: 2ch;
  list-style: "- ";
}
/* Without room for two columns, each description goes under its term. */
@media (max-width: 640px) {
  dl {
    display: block;
  }
  dd {
    margin-left: 2ch;
  }
}

summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "[+] ";
}
details[open] > summary::before {
  content: "[-] ";
}
summary:hover {
  color: var(--hi);
}
/* The explanation of a figure, kept folded beside it. */
.help {
  max-width: 110ch;
  margin: 0.5lh 0;
  color: var(--dim);
}
.help dt {
  color: var(--ink);
}

/* ------------------------------------------------------------------------- controls */

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}
button {
  padding: 0 1ch;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  text-shadow: none;
  cursor: pointer;
}
button:hover {
  background: var(--hi);
}
button:disabled {
  background: none;
  color: var(--dim);
  outline: 1px dashed var(--dim);
  outline-offset: -1px;
  cursor: default;
}
/* Buttons that read as text: a column heading to sort by, a row to open, a part to pick. */
th button,
td > button[aria-expanded],
.split button,
.rank button,
.phosphor button {
  padding: 0;
  background: none;
  color: inherit;
  text-align: inherit;
  text-shadow: inherit;
}
td > button[aria-expanded]::before {
  content: "[+] ";
  color: var(--dim);
}
td > button[aria-expanded="true"]::before {
  content: "[-] ";
}
td > button[aria-expanded]:hover,
.split button:hover,
.rank button:hover,
.phosphor button:hover {
  background: none;
  color: var(--hi);
  text-decoration: underline;
}
button[aria-pressed="true"],
button[aria-pressed="true"]:hover {
  padding: 0 0.5ch;
  background: var(--ink);
  color: var(--bg);
  text-shadow: none;
  text-decoration: none;
}
.phosphor {
  margin-top: 1lh;
  padding-top: 0.5lh;
  border-top: 1px dashed var(--dim);
  color: var(--dim);
}
.phosphor button {
  margin-left: 1ch;
}
.phosphor button:not([aria-pressed="true"]) {
  color: var(--ink);
}

input[type="search"],
select,
textarea {
  /* Drawn here rather than by the system, whose controls differ from one browser to the next. */
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
  padding: 0 1ch;
  border: 1px solid var(--dim);
  background: var(--bg);
  color: var(--ink);
  text-shadow: inherit;
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/* The arrow a menu is known by: two triangles, side by side. */
select {
  padding-right: 3ch;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 0) right 1.5ch top 55% / 0.5ch 0.5ch no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 0) right 1ch top 55% / 0.5ch 0.5ch no-repeat,
    var(--bg);
}
/* The list a menu drops, where the browser lets a page colour it. */
option {
  background: var(--bg);
  color: var(--ink);
}
textarea {
  display: block;
  width: 80ch;
  max-width: 100%;
  margin: 0.25lh 0;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--ink);
  outline-offset: 0;
}
::placeholder {
  color: var(--dim);
  opacity: 1;
}
label {
  color: var(--dim);
}
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.6ch;
  height: 0.65lh;
  margin: 0 0.5ch 0 0;
  border: 1px solid var(--ink);
  vertical-align: -2px;
}
input[type="checkbox"]:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--bg);
}
/* A choice among a few: every option in sight, the chosen one in reverse. */
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25lh 1ch;
  color: var(--dim);
}
input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice label {
  padding: 0 1ch;
  color: var(--ink);
  outline: 1px solid var(--dim);
  outline-offset: -1px;
  cursor: pointer;
}
.choice label:hover {
  color: var(--hi);
}
.choice label:has(:checked) {
  background: var(--ink);
  color: var(--bg);
  text-shadow: none;
}
.choice label:has(:focus-visible) {
  outline: 2px solid var(--hi);
}
#coverage-controls,
#coverage-controls p,
#logs-controls p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25lh 3ch;
  margin: 0;
}
#logs-controls input {
  width: 36ch;
}
progress {
  -webkit-appearance: none;
  appearance: none;
  width: 30ch;
  height: 0.6lh;
  border: 1px solid var(--dim);
  background: none;
  vertical-align: middle;
}
progress::-webkit-progress-bar {
  background: none;
}
progress::-webkit-progress-value {
  background: var(--ink);
}
progress::-moz-progress-bar {
  background: var(--ink);
}

/* ------------------------------------------------------------------------- tables */

table {
  margin: 0.5lh 0;
  border-collapse: collapse;
}
/* A table wider than the page has room for scrolls sideways in a box of its own. */
.scroll {
  overflow-x: auto;
}
#logs-body > .scroll,
#files-body > .scroll {
  /* So that what a row opens can be sized by this box rather than by the table: see .panel. */
  container-type: inline-size;
}
#logs-body > .scroll > table,
#files-body > .scroll > table {
  width: 100%;
}
.caption {
  margin-bottom: 0;
  color: var(--dim);
}
th {
  padding: 0 2ch 0 0;
  border-bottom: 1px dashed var(--dim);
  font-weight: normal;
  text-align: left;
  vertical-align: bottom;
  text-transform: uppercase;
  color: var(--dim);
}
th button {
  text-transform: inherit;
}
/* The sort marker, level with the middle of the capitals beside it. */
th .icon {
  vertical-align: 3px;
}
th button:hover,
th[aria-sort="ascending"] button,
th[aria-sort="descending"] button {
  background: none;
  color: var(--hi);
}
td {
  padding: 0 2ch 0 0;
  vertical-align: top;
  white-space: nowrap;
}
/* The one kind of cell that runs long enough to be worth wrapping. */
td.may-wrap {
  min-width: 32ch;
  white-space: normal;
}
.n {
  text-align: right;
}
@media (hover: hover) {
  tbody tr:not(.detail):hover {
    background: color-mix(in srgb, var(--ink) 14%, transparent);
  }
}
/* Rows a finger can tell apart. */
@media (pointer: coarse) {
  #logs-body > .scroll > table > tbody > tr:not(.detail) > td,
  #files-body > .scroll > table > tbody > tr:not(.detail) > td {
    padding-top: 3px;
    padding-bottom: 3px;
  }
}
/* An opened row, and what it opened, hang from one rule down the left. */
tr.open > td {
  color: var(--hi);
}
tr.open > td:first-child,
tr.detail > td {
  box-shadow: inset 3px 0 0 var(--ink);
}
/* Every row keeps clear of where that rule goes, so that opening one moves nothing. */
#logs-body > .scroll > table > * > tr > :first-child,
#files-body > .scroll > table > * > tr > :first-child {
  padding-left: 1.5ch;
}
#logs-body > .scroll > table > tbody > tr.detail > td,
#files-body > .scroll > table > tbody > tr.detail > td {
  padding: 0 0 1lh;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-bottom: 1px dashed var(--dim);
}
/*
 * What a row opened is as wide as the page has room for, however wide its table, and stays
 * in place while the table scrolls sideways behind it. Where the width cannot be had from
 * the box the table scrolls in, it is the table's.
 */
.panel {
  position: sticky;
  left: 0;
  width: 100cqw;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 1ch);
  white-space: normal;
}
tr.detail h3 {
  margin-top: 0.5lh;
  color: var(--hi);
  text-transform: none;
}
tr.arrived > td {
  animation: arrive 0.9s steps(1);
}
@keyframes arrive {
  0%,
  40% {
    background: var(--ink);
    color: var(--bg);
    text-shadow: none;
  }
  20%,
  60% {
    background: none;
    color: inherit;
  }
}
.status:not(.current),
.answer.revoked,
.headline strong,
.verdict strong {
  padding: 0 0.5ch;
  background: var(--ink);
  color: var(--bg);
  text-shadow: none;
}
.status.ended {
  background: none;
  color: var(--dim);
  outline: 1px solid var(--dim);
  outline-offset: -1px;
}
/*
 * The mirror's state and a check's outcome, each a lit plate at the size of the figures: twice
 * the font's own.
 */
.headline,
.verdict {
  font-size: 32px;
}
.headline strong,
.verdict strong {
  display: inline-block;
  box-shadow: 0 0 12px var(--glow);
}
.headline .icon,
.verdict .icon {
  margin-right: 0.75ch;
}
/* What is wrong is brighter. A revocation is framed as well, as a stamp is. */
.headline:not(.synced) strong,
.verdict.revoked strong,
.verdict.inconsistent strong,
.verdict.failed strong {
  background: var(--hi);
}
.verdict.revoked strong {
  outline: 2px solid var(--hi);
  outline-offset: 3px;
}
/* An outcome that says nothing either way is not lit. */
.verdict.not_enrolled strong,
.verdict.not_covered strong,
.verdict.unchecked strong {
  background: none;
  box-shadow: none;
  color: var(--ink);
  text-shadow: inherit;
  outline: 1px dashed var(--ink);
  outline-offset: -1px;
}
/* What is said of an outcome may begin with a message that came in lower case. */
.said::first-letter {
  text-transform: uppercase;
}
/* What is wrong asks to be looked at. */
.headline:not(.synced) .icon {
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    visibility: hidden;
  }
}

/* ------------------------------------------------------------------------- figures */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26ch, 1fr));
  gap: 1lh 0;
  margin: 1lh 0;
}
.tile {
  display: flex;
  flex-direction: column;
  padding: 0 2ch;
  border-left: 1px dashed var(--dim);
}
.tile-label {
  color: var(--dim);
  text-transform: uppercase;
}
.tile b {
  /* Twice the font's own size, where its pixels land squarely. */
  font-size: 32px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------- charts */

/* The fills that stand in for a second colour, in the order a chart hands them out. */
.fill-0,
.swatch.later {
  background: var(--ink);
}
.fill-1,
.swatch.first {
  background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0/4px 4px;
}
.fill-2 {
  background: radial-gradient(var(--ink) 1px, transparent 1.3px) 0 0/4px 4px;
  box-shadow: inset 0 0 0 1px var(--dim);
}
.fill-3 {
  background: repeating-linear-gradient(-45deg, var(--ink) 0 1px, transparent 1px 4px);
  box-shadow: inset 0 0 0 1px var(--dim);
}
.fill-4 {
  box-shadow: inset 0 0 0 1px var(--ink);
}
.swatch {
  display: inline-block;
  width: 2ch;
  height: 0.55lh;
}
.swatch.uncovered {
  height: 0;
  border-top: 2px dotted var(--dim);
  vertical-align: middle;
}

.split-bar {
  display: flex;
  gap: 2px;
  height: 1lh;
}
.split-bar .pick {
  cursor: pointer;
}
.split-bar:has(.pressed) :not(.pressed) {
  opacity: 0.35;
}
.split ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rank li {
  display: grid;
  grid-template-columns: 17ch 1fr 3ch;
  gap: 2ch;
  align-items: center;
}
.rank li > :first-child {
  justify-self: start;
}
.rank-bar {
  display: flex;
  gap: 2px;
  height: 0.6lh;
}
.rank-bar i {
  min-width: 3px;
}
#logs-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 6ch;
  margin-bottom: 1lh;
}
#logs-breakdown h3 {
  margin-top: 0.5lh;
}

.columns {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-template-rows: 7lh 1lh;
  column-gap: 1ch;
  margin: 1.5lh 0 1lh;
}
.columns-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  line-height: 1;
  color: var(--dim);
}
.columns-plot {
  display: flex;
  gap: 3px;
  border-left: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  background: linear-gradient(color-mix(in srgb, var(--dim) 45%, transparent) 0 0) 0 50%/100% 1px no-repeat;
}
.column {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
}
.column.pick {
  cursor: pointer;
}
.column i {
  width: 100%;
  min-height: 1px;
  height: calc(var(--share) * 100%);
  background: var(--ink);
}
.column.marked i {
  background: var(--hi);
  box-shadow: 0 0 8px var(--glow);
}
@media (hover: hover) {
  .column:hover i {
    background: var(--hi);
    box-shadow: 0 0 8px var(--glow);
  }
}
.column b {
  position: absolute;
  left: 50%;
  bottom: calc(var(--share) * 100% + 2px);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.columns-ticks {
  position: relative;
  grid-column: 2;
  color: var(--dim);
}
.columns-ticks span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
/* Dozens of columns across a phone leave no room between them, nor for names over the peaks. */
@media (max-width: 640px) {
  .columns-plot {
    gap: 1px;
  }
  .column b {
    display: none;
  }
}

/* The coverage timeline. */
#coverage-chart {
  overflow-x: auto;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4ch;
  color: var(--dim);
}
/* What was picked is described on a line that stays at the foot of the screen, as far as the chart runs. */
#coverage-selection {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--dim);
}
#coverage-selection > :first-child {
  margin-bottom: 0;
}
#coverage-selection > .note {
  margin-top: 0;
}
/* A small screen has no room to keep all of that in sight: only what was picked stays. */
@media (max-width: 640px), (max-height: 500px) {
  #coverage-selection {
    display: contents;
  }
  #coverage-selection > :first-child {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0.25lh var(--gutter);
    background: var(--bg);
    border-top: 1px solid var(--dim);
  }
  #coverage-selection > .note {
    margin-top: 0.25lh;
  }
}
.coverage {
  display: block;
  /* The font's own size: the chart is mostly small text. */
  font-size: 16px;
}
.coverage text {
  fill: var(--ink);
}
.coverage .group,
.coverage .marker text,
.coverage .picked-label,
.coverage a:hover text {
  fill: var(--hi);
}
.coverage a text {
  text-decoration: underline;
}
.coverage .axis text {
  fill: var(--dim);
}
.coverage .axis line {
  stroke: var(--dim);
  opacity: 0.35;
}
.coverage .marker line {
  stroke: var(--hi);
  stroke-dasharray: 3 3;
}
.coverage .halo {
  stroke: var(--bg);
  stroke-width: 5px;
  paint-order: stroke;
}
.coverage .band,
.coverage .hit {
  fill: transparent;
}
@media (hover: hover) {
  .coverage .row:hover .band {
    fill: color-mix(in srgb, var(--ink) 13%, transparent);
  }
}
/* The row a link from the logs table asked for: ruled off, its name in reverse. */
.coverage .row.marked .band {
  fill: color-mix(in srgb, var(--ink) 20%, transparent);
  stroke: var(--hi);
  shape-rendering: crispEdges;
}
.coverage .row.marked .ground {
  fill: var(--hi);
}
.coverage .row.marked a text,
.coverage .row.marked a:hover text {
  fill: var(--bg);
}
.coverage .row.arrived .band {
  animation: arrive-row 1.5s steps(1);
}
@keyframes arrive-row {
  0%,
  28%,
  56% {
    fill: color-mix(in srgb, var(--ink) 65%, transparent);
  }
  14%,
  42%,
  70% {
    fill: transparent;
  }
}
/* While it flashes, every other row stands back. */
.coverage:has(.row.arrived) .row:not(.arrived) .block {
  animation: stand-back 2.4s steps(1);
}
@keyframes stand-back {
  from {
    opacity: 0.3;
  }
}
/* A bar is one run of blocks, a file to a block: the first shaded, the rest solid. */
.coverage .block {
  cursor: pointer;
  shape-rendering: crispEdges;
}
.coverage .block.first {
  fill: url(#coverage-dither);
}
.coverage .block.later,
.coverage pattern rect {
  fill: var(--ink);
}
/* Where one block ends and the next begins, a nick out of the foot of the bar. */
.coverage .notch {
  fill: var(--bg);
  shape-rendering: crispEdges;
  pointer-events: none;
}
.coverage .block.lit,
.coverage .block.picked {
  fill: var(--hi);
}
/* With a file picked, the rest stand back, and pointing at another only brings it forward. */
.coverage.has-selection .block:not(.picked) {
  opacity: 0.4;
}
.coverage.has-selection .block.lit:not(.picked) {
  fill: var(--ink);
  opacity: 1;
}
.coverage .uncovered {
  stroke: var(--dim);
  stroke-width: 2;
  stroke-dasharray: 2 4;
}

/* What pointing at something says about it. */
.tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  max-width: min(90ch, 100vw - 16px);
  padding: 0 1ch;
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
  white-space: pre-wrap;
  pointer-events: none;
}
.tip b {
  display: block;
  margin: 0 -1ch;
  padding: 0 1ch;
  background: var(--ink);
  color: var(--bg);
  text-shadow: none;
}

@media (max-width: 900px) {
  #logs-breakdown {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .headline:not(.synced) .icon,
  tr.arrived > td,
  .coverage .row.arrived .band,
  .coverage:has(.row.arrived) .row:not(.arrived) .block {
    animation: none;
  }
}
