/* Roundmic — "Stippen & Strepen", carried over from hetecogram (buildspec §7):
   cream paper, black ink for every line and letter, four inks on a greyscale
   ladder, four fill patterns, 3px borders, hard offset shadows, no radii.
   The one deliberate exception: nothing here is round except the logo. */

@font-face {
  font-family: 'Chivo';
  src: url('/fonts/Chivo.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/AtkinsonHyperlegible.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #fbf7ee;
  --surface: #ffffff;
  --ink: #12121a;
  --muted: #5a5a66;
  --focus: #0060df;
  --pink: #de3d73;
  --violet: #b88cff;
  --teal: #00d6c5;
  --yellow: #ffd721;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-big: 6px 6px 0 var(--ink);
  --display: 'Chivo', system-ui, sans-serif;
  --text: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
#waitWaiting {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(30px, 6vw, 44px);
}

h2 {
  font-size: 26px;
}

p {
  margin: 0 0 14px;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
  line-height: 1.4;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  flex: none;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 3px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 24px;
  height: 24px;
  display: block;
}

.top .meeting {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top select {
  flex: none;
  font: 700 16px var(--display);
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 4px 6px;
}

.top .meeting:empty + select {
  margin-left: auto;
}

/* On a phone the meeting's name is in the page itself; the bar keeps the brand
   and the language menu. */
@media (max-width: 480px) {
  .top .meeting {
    visibility: hidden;
  }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 28px;
}

section[data-screen] {
  display: none;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

section[data-screen].on {
  display: flex;
}

.narrow {
  max-width: 460px;
  margin: 0 auto;
}

.wide {
  max-width: 1180px;
  margin: 0 auto;
}

.spacer {
  flex: 1;
}

.w100 {
  width: 100%;
}

.fill {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mb4 {
  margin-bottom: 4px;
}

.mt16 {
  margin-top: 16px;
}

.mt20 {
  margin-top: 20px;
}

/* ── Controls ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  font: 800 17px/1.1 var(--display);
  color: var(--ink);
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Pink with black text is 4.46:1, so the primary button keeps 19px bold text. */
.btn.primary {
  background: var(--pink);
  font-size: 19px;
  font-weight: 900;
}

.btn.full {
  width: 100%;
  white-space: normal; /* "Continue as <long name>" must wrap, not run off the screen */
  text-align: center;
}

.btn.small {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 15px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn.armed {
  background: var(--yellow);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
  transform: none;
}

label.field {
  display: block;
  font-size: 15px;
  margin: 0 0 6px;
}

input[type='text'] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  margin: 0 0 6px;
  font: 700 20px var(--display);
  color: var(--ink);
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 0;
}

.error {
  min-height: 1.4em;
  margin: 0 0 12px;
  font-size: 15px;
  color: #a3123d;
}

/* ── Identity: ink × pattern ─────────────────────────────────────────────── */

.sw {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  background: var(--c);
}

.sw.streep {
  background: repeating-linear-gradient(45deg, var(--ink) 0 3px, var(--c) 3px 9px);
}

.sw.stip {
  background: radial-gradient(var(--ink) 1.7px, var(--c) 1.9px) 0 0 / 8px 8px;
}

.sw.rand {
  background: var(--surface);
  box-shadow: inset 0 0 0 5px var(--c);
}

.sw.xl {
  border-width: 3px;
}

.sw.xl.streep {
  background: repeating-linear-gradient(45deg, var(--ink) 0 7px, var(--c) 7px 20px);
}

.sw.xl.stip {
  background: radial-gradient(var(--ink) 4px, var(--c) 4.3px) 0 0 / 18px 18px;
}

.sw.xl.rand {
  box-shadow: inset 0 0 0 14px var(--c);
}

.badge {
  display: inline-block;
  font: 900 10px/1.4 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  color: #fff;
  background: var(--ink);
  vertical-align: 2px;
}

.badge.you {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* Stepped voice bars, like a printed level meter. */
.vb {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.vb i {
  width: 4px;
  height: 100%;
  background: var(--ink);
  transform: scaleY(0.17);
  transform-origin: bottom;
}

.talking .vb i {
  animation: vb 0.42s steps(3) infinite alternate;
}

.talking .vb i:nth-child(2) {
  animation-delay: -0.14s;
}

.talking .vb i:nth-child(3) {
  animation-delay: -0.28s;
}

.talking .vb i:nth-child(4) {
  animation-delay: -0.07s;
}

.vb.big {
  height: 34px;
  gap: 5px;
}

.vb.big i {
  width: 10px;
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 900 14px var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rec::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--pink);
  border: 2px solid var(--ink);
  animation: blink 1.2s steps(1) infinite;
}

.timer {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-big);
  padding: 18px;
}

/* ── Name blocks (host lobby and recording) ──────────────────────────────── */

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  font: 900 20px var(--display);
  max-width: 100%;
}

.tile .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pop {
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.away {
  border-style: dashed;
  box-shadow: none;
}

.away .sw {
  opacity: 0.35;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.ptile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.ptile .sw {
  width: 44px;
  height: 44px;
}

.ptile .who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.ptile .name {
  display: block;
  max-width: 100%;
  font: 900 20px var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ptile .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ptile .badges:empty,
.ptile .state:empty {
  display: none;
}

.ptile .state {
  font-weight: 700;
}

/* Online but not recording: paused, interrupted, or never turned the mic on. */
.ptile.off {
  background: repeating-linear-gradient(45deg, var(--yellow) 0 8px, var(--surface) 8px 16px);
}

.ptile.off .state {
  background: var(--surface);
  padding: 0 4px;
}

.ptile.talking {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* ── Host screens ────────────────────────────────────────────────────────── */

.lobby {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 36px;
  align-items: start;
  width: 100%;
}

.qrcard {
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-big);
  padding: 16px;
  text-align: center;
}

.qrcard canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.qrcard .code {
  display: block;
  margin-top: 4px;
  font: 900 24px var(--display);
  letter-spacing: 0.06em;
}

.qrcard .eyebrow {
  margin: 12px 0 0;
}

.count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
}

.count b {
  font: 900 48px/1 var(--display);
}

.footbar .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Locked: the QR code is greyed out; nobody new can join. */
.locked canvas {
  opacity: 0.15;
}

.locknote {
  margin: 10px 0 0;
  padding: 4px 8px;
  font: 800 14px var(--display);
  background: var(--yellow);
  border: 2px solid var(--ink);
}

/* The host's remove button on a name block. */
.remove {
  flex: none;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  margin-left: 2px;
  font: 900 18px/1 var(--display);
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}

.remove.armed {
  font-size: 13px;
  white-space: nowrap;
  background: var(--yellow);
  z-index: 1;
}

.ptile {
  position: relative;
}

.ptile .remove {
  position: absolute;
  top: -12px;
  right: -12px;
}

.footbar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 0 4px;
  background: var(--paper);
}

.rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.rec-top .timer {
  font-size: 40px;
  margin-left: 12px;
}

.rec-top .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.late {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  text-align: right;
}

.late canvas {
  display: block;
  padding: 8px;
  border: 3px solid var(--ink);
  background: #fff;
  image-rendering: pixelated;
}

.saving {
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-big);
}

.saving .row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
}

.saving .row:last-child {
  border-bottom: 0;
}

.saving .name {
  font: 900 18px var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saving .status {
  font-size: 15px;
  text-align: right;
  max-width: 13em;
}

.saving .status.done {
  font-family: var(--display);
  font-weight: 900;
}

.saving .status.done::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  background: var(--teal);
  border: 2px solid var(--ink);
  vertical-align: -1px;
}

/* ── Phone screens ───────────────────────────────────────────────────────── */

.metile {
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-big);
  padding: 20px;
  margin: 0 0 24px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.metile .sw {
  width: 110px;
  height: 110px;
}

.metile .name {
  display: block;
  margin: 12px 0 6px;
  font: 900 28px var(--display);
  overflow-wrap: anywhere;
}

.metile.talking {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mini .tile {
  font-size: 15px;
  padding: 4px 9px;
  gap: 7px;
  box-shadow: 3px 3px 0 var(--ink);
}

.mini .tile .sw {
  width: 16px;
  height: 16px;
}

.recstrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -24px -18px 0;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 3px solid var(--ink);
}

.recstrip .timer {
  font-size: 22px;
}

.me-big {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}

.me-big .sw {
  width: min(56vw, 230px);
  height: min(56vw, 230px);
  box-shadow: var(--shadow-big);
  transition: transform 0.15s, box-shadow 0.15s;
}

.me-big .name {
  font: 900 32px/1 var(--display);
  text-align: center;
  overflow-wrap: anywhere;
}

.talking .me-big .sw {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--ink);
}

.paused .me-big .sw {
  opacity: 0.3;
  border-style: dashed;
  box-shadow: none;
}

.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: 700 16px/1.4 var(--text);
  text-align: left;
}

button.notice {
  cursor: pointer;
}

/* ── Meeting summary (host's end screen, phones once it's sent) ─────────── */

/* Read out by screen readers, not shown. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sumprogress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 3px solid var(--ink);
  font-weight: 700;
}

/* Three printed blocks taking turns, like the voice bars. */
.dots {
  display: inline-flex;
  gap: 4px;
  flex: none;
}

.dots i {
  width: 10px;
  height: 10px;
  background: var(--ink);
  animation: dots 1.2s steps(1) infinite;
}

.dots i:nth-child(2) {
  animation-delay: 0.4s;
}

.dots i:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes dots {
  0% {
    background: var(--pink);
  }
  33% {
    background: var(--ink);
  }
}

.sumcard {
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-big);
  padding: 18px 18px 8px;
  overflow-wrap: anywhere;
}

#sumCard.busy .sumcard {
  opacity: 0.5;
}

.sumhead {
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}

.sumhead h2 {
  margin: 10px 0 8px;
}

.sumcard .gist {
  margin: 0;
}

.sumcard h3 {
  font-size: 18px;
  margin: 18px 0 6px;
}

.sumcard ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.sumcard li {
  margin: 0 0 6px;
}

/* The meeting type: a stamp, and for the host a picker. */
.chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 10px;
  font: 900 12px/1.4 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 0;
}

select.chip {
  appearance: none;
  min-height: 32px;
  padding-right: 28px;
  cursor: pointer;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%2312121A'/%3E%3C/svg%3E") no-repeat right 9px center;
}

select.chip:disabled {
  opacity: 0.6;
  cursor: default;
}

.sumcard ul.actions {
  list-style: none;
  padding: 0;
}

.sumcard ul.actions li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sumcard ul.actions .sw {
  margin-top: 1px;
}

.sumcard .sw.none {
  background: var(--surface);
  border-style: dashed;
}

.sumcard .what b {
  font-family: var(--display);
}

.sumcard .due {
  display: inline-block;
  padding: 0 6px;
  font: 800 13px/1.5 var(--display);
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.sumbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sumbar .btn {
  flex: 1 1 auto;
}

.sumsent {
  margin: 14px 0 0;
  font-weight: 700;
}

.sumsent::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  background: var(--teal);
  border: 2px solid var(--ink);
  vertical-align: -1px;
}

button.link {
  padding: 0;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ── Overlays ────────────────────────────────────────────────────────────── */

#countdown {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--pink);
}

#countdown .eyebrow {
  font-size: 19px;
}

#countdown .num {
  display: block;
  font: 900 min(46vw, 260px) / 0.9 var(--display);
  letter-spacing: -0.04em;
}

#countdown .num.tick {
  animation: tick 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

#conn {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(56px + env(safe-area-inset-top));
  z-index: 10;
  padding: 10px 16px;
  font: 800 15px/1.3 var(--display);
  text-align: center;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}

/* ── Small screens ───────────────────────────────────────────────────────── */

@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .lobby {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qrcard {
    max-width: 280px;
    margin: 0 auto;
  }

  .count b {
    font-size: 38px;
  }

  .tile {
    font-size: 18px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .ptile .sw {
    width: 34px;
    height: 34px;
  }

  .ptile .name {
    font-size: 17px;
  }

  .rec-top .timer {
    font-size: 30px;
  }

  .footbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes vb {
  from {
    transform: scaleY(0.17);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.3) rotate(-6deg);
    opacity: 0;
    box-shadow: 0 0 0 var(--ink);
  }
  55% {
    transform: scale(1.12) rotate(2deg);
    opacity: 1;
    box-shadow: 8px 8px 0 var(--ink);
  }
  100% {
    transform: none;
  }
}

@keyframes tick {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Results (diagnostics page, English only) ────────────────────────────── */

.results h1 small {
  color: var(--muted);
  font-weight: 400;
}

.results .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.results button {
  font: 800 15px var(--display);
  color: var(--ink);
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 12px;
  cursor: pointer;
}

.results #lang {
  max-width: 16rem;
  min-height: 44px;
  font-size: 15px;
}

.results h2 {
  margin-top: 32px;
  font-size: 20px;
}

.results .phone {
  margin: 14px 0;
  padding: 14px;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.results .phone h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.results .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid var(--ink);
}

.results .scroll {
  overflow-x: auto;
}

.results table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results th,
.results td {
  padding: 5px 10px 5px 0;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  white-space: nowrap;
}

.results .warn {
  color: #a3123d;
  font-weight: 700;
}

.results .dim,
.results .mono {
  color: var(--muted);
}

.results .mono,
.results ul.events {
  font: 13px/1.5 ui-monospace, Menlo, monospace;
}

.results ul.events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results canvas#plot {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 3px solid var(--ink);
}

.results .turn time {
  margin-right: 8px;
  font: 12px ui-monospace, Menlo, monospace;
  color: var(--muted);
}

.results .turn b {
  margin-right: 6px;
  font-family: var(--display);
}
