/*
  Stanchio: styles for the check-in screens, the Admin page and the hosted service's own screens.

  The check-in screens keep the look of the venue check-in program: a black top bar, white cards on
  light grey, blue for the thing to press, bright green (always with black text) for "done", pill
  buttons, and Metropolis for all text. An event's branding replaces the bar and button colours,
  the font and the logo (the --bar and --button variables; the colours here are what shows without
  any). The hosted service's own screens are styled by the last section of this file. Everything is
  served from this folder; nothing is fetched from the internet, because the venue may not have any.
*/

@font-face {
  font-family: 'Metropolis';
  src: url('/fonts/Metropolis-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('/fonts/Metropolis-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('/fonts/Metropolis-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours, as used on the website. */
  --black: #000000;
  --blue: #1d7bb9; /* buttons: white text on it reads 4.6 to 1 */
  --blue-dark: #1c70a9; /* links, and buttons under the pointer */
  --blue-bright: #2185c7; /* focus ring and selection edge: clear on white and on black */
  --brand-green: #3de463; /* "done". Always carries black text, never white */

  /* Surfaces and text. */
  --bg: #ececec;
  --card: #ffffff;
  --soft: #f5f5f5; /* a quiet fill inside a card */
  --well: #e2e2e2; /* behind a badge picture */
  --line: #e0e0e0; /* separators */
  --line-strong: #929292; /* edges of things you can type in or press: 3 to 1 on white */
  --ink: #000000;
  --ink-2: #333333;
  --muted: #5c5c5c;
  --placeholder: #6a6a6a; /* example text inside an empty box: 5.4 to 1 on white */

  /* Meaning. Green is done, amber is take care, red is a problem. */
  --sel: #e2f0f9;
  --green: #0a5f25;
  --green-bg: #d3f8dc;
  --amber: #8a4a00;
  --amber-bg: #fdedc4;
  --amber-line: #efc75e;
  --red: #b3191c;
  --red-bg: #fde3e3;
  --red-line: #eea0a0;

  --radius: 16px;
  --radius-sm: 10px;
  /* To fall back to the Windows system typeface, remove "Metropolis," from this line. */
  --font: Metropolis, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  accent-color: var(--blue);
  color-scheme: light; /* drop-down lists, tick boxes and scroll bars stay light whatever the PC's theme */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--brand-font, var(--font));
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #b9dcf2;
  color: #000;
}

input,
select {
  caret-color: var(--blue-dark);
}

::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---- top bar ---- */
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--bar, var(--black));
  /* A bar nearly as light as the page gets a thin edge (worked out with the branding). */
  box-shadow: inset 0 -1px 0 var(--bar-edge, transparent);
  color: var(--on-bar, #fff);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand .logo {
  display: block;
  flex: none;
  width: auto;
  /* A very wide logo is fitted into its share of the bar, never squeezed out of shape. */
  max-width: min(46vw, 280px);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

/* A see-through logo too close to the colour behind it sits on a white or black plate, chosen
   from its own pixels (js/logo.js). A picture with its own background only gets softer corners. */
img.logo.plated {
  box-sizing: border-box;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--plate, #fff);
}

img.logo.tile {
  border-radius: 6px;
}

.brand-text {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--bar-line, #4d4d4d);
}

/* No logo in front (until an event sets one): no divider either. */
.brand-text:first-child {
  padding-left: 0;
  border-left: 0;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand p {
  margin: 2px 0 0;
  color: var(--on-bar-quiet, #c4c4c4);
  font-size: 13px;
  line-height: 1.3;
}

/* Pink where pink reads on the bar's colour; otherwise the bar's own text colour, in bold. */
.brand p.bad {
  color: var(--on-bar-bad, #ffa3a3);
  font-weight: 700;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.printer-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 14px;
  height: 36px;
  border: 1px solid var(--card);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}

.printer-pick:focus-within {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.printer-pick select {
  border: 0;
  background: transparent;
  color: var(--ink);
  height: 32px;
  padding: 0 4px;
  font: inherit;
  min-width: 0;
  max-width: 220px;
}

.printer-pick select:focus-visible {
  outline: none;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9a9a9a;
  flex: none;
}

.dot.ok {
  background: #1a9f43;
}

.dot.warn {
  background: #d97706;
}

.dot.bad {
  background: #dc2626;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn,
.pill,
.x {
  transition:
    background-color 0.16s ease-out,
    border-color 0.16s ease-out,
    color 0.16s ease-out;
}

.btn:hover {
  background: var(--soft);
  border-color: var(--ink);
}

.btn:active {
  background: #e6e6e6;
}

.btn:focus-visible,
.pill:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
.x:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

/* The button colour is the event's (var(--button)) when it has branding; text on it is worked out. */
.btn.primary {
  background: var(--button, var(--blue));
  border-color: var(--button-edge, var(--button, var(--blue)));
  color: var(--on-button, #fff);
  font-weight: 700;
}

.btn.primary:hover {
  background: var(--button-hover, var(--blue-dark));
  border-color: var(--button-edge, var(--button-hover, var(--blue-dark)));
}

.btn.primary:active {
  background: var(--button-down, #175d8c);
  border-color: var(--button-edge, var(--button-down, #175d8c));
}

.btn.danger {
  color: var(--red);
  border-color: var(--red-line);
}

.btn.danger:hover {
  background: var(--red-bg);
  border-color: var(--red);
}

.btn.sm {
  height: 34px;
  padding: 0 14px;
}

.btn.lg {
  height: 46px;
  padding: 0 24px;
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* On the black bar the quiet buttons are outlines, like the site's own. */
.top .btn {
  background: transparent;
  border-color: var(--bar-line, #8a8a8a);
  color: var(--on-bar, #fff);
}

.top .btn:hover {
  background: var(--bar-hover, #1f1f1f);
  border-color: var(--on-bar, #fff);
}

.top .btn:active {
  background: var(--bar-hover, #333);
}

/* The keyboard ring in the bar stays visible on a bar that is itself the ring's blue. */
.top .btn:focus-visible,
.top a:focus-visible,
.top .printer-pick:focus-within {
  outline-color: var(--bar-focus, var(--blue-bright));
}

/* ---- page ---- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* The online copy's sign-in and setup pages: one short card, not the full desk width. */
.wrap.narrow {
  max-width: 620px;
  padding-top: 40px;
}

/* A pass link, shown once so it can be copied. */
.passlink input {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tile {
  min-width: 128px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Figures stay in the program's own typeface whatever font an event picks: several of the fonts an
   event can choose draw old-style numerals, which are hard to read at a glance. */
.tile b {
  display: block;
  font-family: var(--font);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.tile span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.searchbar {
  display: flex;
  gap: 10px;
  align-items: center;
}

#q {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 24px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
}

/* When the box is too narrow for the whole hint, the hint ends in dots instead of mid-word.
   (Browsers only do this while the box is not being typed in.) */
#q:placeholder-shown {
  text-overflow: ellipsis;
}

#q:focus {
  border-color: var(--blue-bright);
  outline: none;
}

.pills {
  display: flex;
  gap: 6px;
}

.pill {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.pill:hover {
  background: var(--soft);
  border-color: var(--ink);
}

.pill.on,
.pill.on:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.tools select,
.field select,
.field input,
.grid-form input,
.grid-form select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

/* However long a classroom's name is, its list never grows wider than the screen. */
.tools select {
  height: 36px;
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 999px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

/* ---- attendee list ---- */
.list {
  overflow: hidden;
}

/* The last column is a fixed width so every row lines up whatever its buttons say. */
.list-head,
.row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.5fr) 214px;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
}

.list-head {
  height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.right {
  text-align: right;
}

.row {
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.row:last-child {
  border-bottom: 0;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.row:hover {
  background: var(--soft);
}

/* The person the arrow keys are on: a tinted row with a ring all the way round. */
.row.sel {
  background: var(--sel);
  box-shadow: inset 0 0 0 2px var(--blue-bright);
}

.row .nm b {
  font-size: 16.5px;
  font-weight: 700;
}

.row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A very long name or classroom wraps inside its own column; it never pushes the buttons away. */
.row .nm,
.row .cl {
  overflow-wrap: anywhere;
}

.row .ac {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ededed;
  color: #3d3d3d;
  font-size: 13px;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.chip.in {
  background: var(--green-bg);
  color: var(--green);
  font-weight: 700;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  vertical-align: 2px;
}

.tag.warn {
  border-color: var(--amber-line);
  background: var(--amber-bg);
  color: var(--amber);
}

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  text-wrap: balance;
}

.empty .btn {
  margin-top: 12px;
}

.keys {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---- banner (server unreachable / on the backup) ---- */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  font-weight: 700;
  text-align: center;
}

.banner.bad {
  background: var(--red);
  color: #fff;
}

.banner.warn {
  background: var(--amber-bg);
  color: var(--amber);
  border-bottom: 1px solid var(--amber-line);
}

.banner .btn {
  height: 32px;
  border-color: transparent;
  font-weight: 700;
}

.banner.warn .btn {
  border-color: var(--amber);
}

/* ---- modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 16px 16px;
  background: rgba(0, 0, 0, 0.55);
  overflow: auto;
}

.sheet {
  width: min(780px, 100%);
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sheet.narrow {
  width: min(520px, 100%);
}

.sheet:focus {
  outline: none;
}

.sheet[role='alertdialog'] {
  border-top: 6px solid var(--red);
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The close button. Its cross is drawn, so it is the same crisp, centred shape on every PC. */
.x {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 0;
  cursor: pointer;
}

.x::before,
.x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.x::after {
  transform: rotate(-45deg);
}

.x:hover {
  background: var(--soft);
  border-color: var(--ink);
}

.sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  padding: 18px 20px;
}

.sheet-body.single {
  display: block;
}

.sheet-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.sheet-foot .spacer {
  flex: 1;
}

.field {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 13px;
}

.field input,
.field select {
  display: block;
  width: 100%;
  margin-top: 4px;
  height: 42px;
  font-size: 16px;
  color: var(--ink);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* A tick box with its explanation beside it. */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.reg {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.reg a,
.link {
  color: var(--blue-dark);
  text-underline-offset: 2px;
}

details.more {
  margin-bottom: 12px;
}

details.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.status-line {
  margin: 4px 0 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink-2);
  font-size: 14px;
}

/* Already checked in: the one thing the desk must not miss, so it gets the full brand green. */
.status-line.in {
  background: var(--brand-green);
  color: #000;
  font-weight: 700;
}

.preview {
  align-self: start;
  padding: 14px;
  border-radius: 14px;
  background: var(--well);
  text-align: center;
}

.preview canvas,
.badge-thumb canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.preview p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* The name will not fit on the badge: said in the "take care" colour, not as a quiet caption. */
.preview p.warn {
  color: var(--amber);
  font-weight: 700;
}

.problem {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.sub {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* A line under the buttons of the "Badge not printed" window: how many more are waiting. */
.choices + .sub {
  margin: 14px 0 0;
}

/* The station numbers: two even rows of four. */
.choices.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.sheet-body .note {
  margin: 0 0 14px;
}

.sheet-body .note:last-child {
  margin-bottom: 0;
}

/* ---- toasts ---- */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--brand-green);
  color: #000;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  animation: toast-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.warn {
  background: var(--amber);
  color: #fff;
}

.toast.bad {
  background: var(--red);
  color: #fff;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---- admin ---- */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel {
  padding: 20px 22px;
  margin-bottom: 16px;
}

/* Whatever a section ends with, the space under it is the section's own padding. */
.panel > :last-child {
  margin-bottom: 0;
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel h3 {
  margin: 20px 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.panel p.lead {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 75ch;
  text-wrap: pretty;
}

/* A row of buttons under a form, a table or a message. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}

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

table.plain {
  width: 100%;
  border-collapse: collapse;
}

table.plain th,
table.plain td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

table.plain th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

table.plain td.num,
table.plain th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.plain td.num {
  font-family: var(--font);
}

table.plain tbody tr:last-child td {
  border-bottom: 0;
}

/* Admin, Roster: people found, or taken off, each with one button at the right. */
table.people-table td.act {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

/* A table of facts: the name of each fact is quiet, its value is not. */
table.kv td:first-child {
  width: 1%;
  padding-right: 28px;
  color: var(--muted);
  white-space: nowrap;
}

/* Progress: the site's green on black. */
.bar {
  height: 8px;
  min-width: 120px;
  border-radius: 99px;
  background: var(--black);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--brand-green);
}

.bar.big {
  height: 14px;
  margin: 12px 0 8px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.grid-form label {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
}

.grid-form input,
.grid-form select {
  display: block;
  width: 100%;
  margin-top: 4px;
}

/* A button in a row of boxes is the same height as the boxes. */
.grid-form .btn {
  height: 38px;
}

.printer {
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.printer .grid-form {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 10px;
}

.printer-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.printer-state {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  color: var(--ink-2);
  font-size: 14px;
}

/* What the printer says right now: a coloured dot and a sentence. */
.printer-now {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.printer-now .dot {
  align-self: flex-start;
  margin-top: 5px;
}

.printer-model {
  color: var(--muted);
  font-size: 13px;
}

.note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink-2);
  font-size: 14px;
  text-wrap: pretty;
}

#clearLast .note {
  margin: 12px 0 0;
}

.note.ok {
  background: var(--green-bg);
  color: var(--green);
}

.note.warn {
  background: var(--amber-bg);
  color: var(--amber);
}

.note.bad {
  background: var(--red-bg);
  color: var(--red);
}

.summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.summary .tile {
  min-width: 110px;
}

.names {
  margin: 4px 0 10px;
  color: var(--ink-2);
  font-size: 13.5px;
}

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

.badge-thumb {
  padding: 10px;
  border-radius: 12px;
  background: var(--well);
}

.badge-thumb p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

/* A long address or folder wraps instead of stretching its table. */
code {
  overflow-wrap: anywhere;
}

.links li {
  margin: 4px 0;
}

/* The browser's own "Choose File" button, dressed like the other buttons. */
input[type='file'] {
  max-width: 100%;
  color: var(--ink-2);
  font: inherit;
}

input[type='file']::file-selector-button {
  height: 36px;
  margin-right: 12px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.16s ease-out,
    border-color 0.16s ease-out;
}

input[type='file']::file-selector-button:hover {
  background: var(--soft);
  border-color: var(--ink);
}

@media (max-width: 860px) {
  .top {
    flex-wrap: wrap;
  }

  .top-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .searchbar,
  .tools {
    flex-wrap: wrap;
  }

  .hint {
    margin-left: 0;
    width: 100%;
  }

  /* The search box takes a whole row. Left to share one with the three filter buttons it was
     squeezed to a sliver on the larger phones (416 to 520 wide). */
  #q {
    flex: 1 1 100%;
  }

  /* The red or yellow bar: its message above, its button beneath, not squeezed side by side. */
  .banner {
    flex-direction: column;
    gap: 8px;
  }

  /* The counts fill each row evenly instead of leaving a ragged gap on the right. */
  .tiles,
  .summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .printer-state {
    flex-basis: 100%;
  }

  /* The little progress bars repeat the percentage beside them; a narrow table drops them. */
  .barcell {
    display: none;
  }

  /* Text in boxes at 16px, so an iPhone does not zoom in when one is tapped. */
  .tools select,
  .grid-form input,
  .grid-form select,
  .printer-pick select {
    font-size: 16px;
  }

  /* A wide table scrolls sideways inside its card instead of stretching the page. */
  .panel {
    overflow-x: auto;
  }

  .sheet-body {
    grid-template-columns: 1fr;
  }

  .list-head {
    display: none;
  }

  /* minmax(0, ...) lets a long name or email shorten itself; plain 1fr would push the buttons off the screen. */
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  /* With the column titles hidden the first row sits in the card's rounded top corners. */
  .row:first-child {
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  }

  .row:only-child {
    border-radius: calc(var(--radius) - 1px);
  }

  .row .cl,
  .row .st {
    grid-column: 1;
  }

  .row .ac {
    grid-row: 1 / span 3;
    grid-column: 2;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  /* On a phone a wide logo takes a third of the bar, not half, so the event's name has room. */
  .brand .logo {
    max-width: 34vw;
    height: 36px;
  }

  /* The four controls in the top bar: two even rows instead of three and a stray one. */
  .top-actions.four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions.four .printer-pick select {
    flex: 1;
    max-width: none;
  }

  /* Buttons at the foot of a window share each row evenly, the main one last. */
  .sheet-foot .spacer {
    display: none;
  }

  .sheet-foot .btn {
    flex: 1 1 auto;
  }

  /* A table on a phone: tighter headings, and a long name in the first column may wrap so the
     table fits its card. Numbers and headings are never broken mid-word. */
  table.plain th,
  table.plain td {
    padding: 8px 6px;
  }

  table.plain th {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  table.plain td:first-child {
    overflow-wrap: anywhere;
  }

  table.plain td.num {
    white-space: nowrap;
  }

  /* Admin, Roster: four columns do not fit a phone. Each person becomes name, classroom and status
     stacked on the left, their button on the right. */
  table.people-table,
  table.people-table tbody {
    display: block;
  }

  table.people-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  table.people-table tbody tr:last-child {
    border-bottom: 0;
  }

  table.people-table td {
    display: block;
    grid-column: 1;
    padding: 0;
    border: 0;
  }

  table.people-table td:nth-child(2),
  table.people-table td:nth-child(3) {
    color: var(--ink-2);
    font-size: 13px;
  }

  table.people-table td.act {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: auto;
  }
}

/* A touch screen (a phone or tablet used as an extra station): everything tapped is finger-sized. */
@media (pointer: coarse) {
  .btn,
  .pill,
  .printer-pick,
  .tools select,
  .field input,
  .field select,
  .grid-form input,
  .grid-form select {
    min-height: 44px;
  }

  .btn.sm {
    min-height: 40px;
  }

  .printer-pick select {
    height: 40px;
  }

  .x {
    width: 44px;
    height: 44px;
  }

  input[type='file']::file-selector-button {
    height: 44px;
  }

  /* "Email and phone" in the badge window: a taller strip to tap. */
  details.more summary {
    padding: 12px 0;
    margin-bottom: 0;
  }
}

/* No keyboard to speak of: the line about arrow keys and Enter is left out. */
@media (hover: none) and (pointer: coarse) {
  .keys {
    display: none;
  }
}

/* Windows "contrast themes" repaint every colour. These keep the few marks that carry meaning. */
@media (forced-colors: active) {
  .row.sel {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }

  /* Not while it has the keyboard: the focus ring uses the same property and must win then. */
  .pill.on:not(:focus-visible) {
    outline: 2px solid Highlight;
    outline-offset: -5px;
  }

  /* The printer list follows the theme like any other list, or its choices could be dark on dark. */
  .top .printer-pick,
  .top .printer-pick select {
    forced-color-adjust: auto;
  }

  #q:focus {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  /* The black bar keeps its own white-on-black, or the white logo would vanish on a white theme. */
  .top,
  .dot,
  .bar,
  .bar i,
  .chip.in,
  .status-line.in,
  .toast,
  .banner {
    forced-color-adjust: none;
  }

  .x::before,
  .x::after {
    forced-color-adjust: none;
    background: ButtonText;
  }

  .sheet {
    border: 1px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .pill,
  .x {
    transition: none;
  }

  input[type='file']::file-selector-button {
    transition: none;
  }

  .toast {
    animation: none;
  }
}

/* What someone typed when they signed up online, in their window at the desk. They change it from
   their own link; the desk reads it. */
.own-facts {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  font-size: 13px;
}

.own-facts p {
  margin: 0;
}

.own-facts dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 3px 14px;
  margin: 8px 0 0;
}

.own-facts dt {
  color: var(--muted);
}

.own-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.own-facts .code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

table.plain[hidden] {
  display: none;
}

/* ---- the hosted service: sign-in, company, master admin console, event settings ----
   "Behind the Desk". These screens are the organiser's side of the registration desk: a neutral
   kit (black table linen, white card stock, tray-divider tabs) that each event's own sign slides
   into. The product has no colour of its own here. Its main button is ink, and a client's colours
   appear only inside a sign or a preview, where --bar and --button are set on that one box.
   Black linen is the ground wherever no client is in the picture (signing in, the console); inside
   a company the ground is light. Every rule below starts at .hub, so nothing here restyles the
   check-in screens. The decisions are recorded in DESIGN.md. */

.hub {
  --linen: #0f1113;
  --linen-2: #1e2125; /* a tray divider that is not the open one */
  --linen-3: #2b2f34; /* ...under the pointer */
  --linen-line: #363b41;
  --on-linen: #ffffff;
  --on-linen-quiet: #b9bfc7; /* 10 to 1 on the linen */

  --bg: #e9ebee; /* the foyer: the ground inside a company */
  --soft: #f3f4f6;
  --line: #dadde2;
  --line-strong: #878d96; /* 3.4 to 1 on white */
  --ink: #0f1113;
  --ink-2: #2f343a;
  --muted: #555b64; /* 6.8 to 1 on white, 5.6 to 1 on the foyer */
  --placeholder: #666c75;
  --radius: 6px;
  --radius-sm: 6px;

  /* The product's own main button: ink. A sign or a preview sets these again for its event. */
  --button: var(--ink);
  --on-button: #ffffff;
  --button-hover: #2b2f34;
  --button-down: #000000;
  --button-edge: var(--ink);

  min-height: 100vh;
  background-color: var(--linen);
  color: var(--on-linen);
  accent-color: var(--ink);
}

html.ground-foyer .hub {
  background-color: var(--bg);
  color: var(--ink);
}

.hub ::selection {
  background: var(--ink);
  color: #fff;
}

html.ground-linen .hub ::selection,
.hub .top ::selection,
.hub .tabs ::selection {
  background: #fff;
  color: var(--ink);
}

html.ground-linen .hub .card ::selection,
html.ground-linen .hub .tent ::selection,
.hub .sheet ::selection {
  background: var(--ink);
  color: #fff;
}

.hub input,
.hub select,
.hub textarea {
  caret-color: var(--ink);
}

.hub a {
  text-underline-offset: 3px;
}

/* A link is ink, underlined in grey until the pointer is on it. Blue is kept for the keyboard ring. */
.hub .link {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
}

.hub .link:hover {
  text-decoration-color: currentColor;
}

/* A heading that was given the keyboard only so a screen reader starts there shows no ring. */
.hub h1[tabindex='-1']:focus {
  outline: none;
}

/* ---- the top bar: the product's name, where you are, who you are ---- */
.hub .top {
  flex-wrap: wrap;
  gap: 6px 20px;
  min-height: 56px;
  padding: 8px 24px;
  background-color: var(--linen);
  color: var(--on-linen);
}

/* On the bare linen the bar would run into the page: a hairline ends it. */
html.ground-linen .hub .top {
  box-shadow: inset 0 -1px 0 var(--linen-line);
}

html.door .hub .top {
  box-shadow: none;
}

/* The product's logo (brand/GUIDELINES.md; the pictures are the brand's own files, unchanged).
   Its teal belt is the product's one colour and shows only on the product's own black ground:
   signing in, the console, choosing a company, a page that was not found. Inside a company the
   mark is white alone, so nothing of the product's competes with a client's colours.
   The brand's sizes: the logo with its name is never under 150px wide; where that does not fit,
   the mark stands alone, never under 24px. Clear space on every side is a quarter of the mark's
   height: the bar's padding and gaps give it. Each picture is pulled left by its own empty margin,
   so the artwork starts on the page's edge. */
.hub .mark {
  flex: none;
  display: block;
  border-radius: 4px;
  line-height: 0;
}

.hub .mark img {
  display: none;
  max-width: none;
}

/* On the product's own ground: the logo, 150px wide (the mark in it is 40px tall). */
html.ground-linen .hub .mark-logo {
  display: block;
  width: 150px;
  height: auto;
  margin-left: -4px;
}

html.ground-linen .hub .top {
  min-height: 64px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Inside a company: the white mark alone, 32px (28px of artwork). */
html.ground-foyer .hub .mark-in {
  display: block;
  width: 32px;
  height: 32px;
  margin-left: -5px;
}

/* A door screen has nothing in its bar, so the logo leaves it and stands over the card, on the
   card's left edge. The card starts where it always did (see "the door" below). */
html.door .hub .top {
  width: min(480px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: max(20px, clamp(32px, 16vh, 168px) - 26px) 20px 0;
}

html.door .hub .mark-logo {
  width: 176px;
  margin-left: -4px;
}

/* Where the bar is too tight for the logo at 150px, the mark alone (36px, 32px of artwork). */
@media (max-width: 760px) {
  html.ground-linen:not(.door) .hub .mark-logo {
    display: none;
  }

  html.ground-linen:not(.door) .hub .mark-own {
    display: block;
    width: 36px;
    height: 36px;
    margin-left: -5px;
  }

  html.ground-linen:not(.door) .hub .top {
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

.hub .where {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--linen-line);
}

.hub .where b {
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hub .where b a {
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.hub .where b a:hover {
  text-decoration: underline;
}

.hub .where span {
  color: var(--on-linen-quiet);
  font-size: 14px;
}

.hub .top .who {
  max-width: 24ch;
  overflow: hidden;
  color: var(--on-linen-quiet);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* What someone may do, worn like a ribbon on a badge. A master admin's is the reversed one. */
.hub .role-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #6d737c;
  border-radius: 4px;
  color: var(--on-linen);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.hub .role-tag.master {
  border-color: var(--on-linen);
  background: var(--on-linen);
  color: var(--linen);
  font-weight: 700;
}

.hub .top .btn {
  height: 32px;
  padding: 0 14px;
  border-color: #6d737c;
  font-size: 14px;
}

/* ---- tray dividers: the sections of a company ----
   They stand in the linen. The open one is the colour of the page and runs into it. */
.hub .tabs {
  display: block;
  margin: 0;
  background-color: var(--linen);
}

.hub .tabs-in {
  display: flex;
  gap: 3px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.hub .tabs-in::-webkit-scrollbar {
  display: none;
}

.hub .tab {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: var(--linen-2);
  color: var(--on-linen-quiet);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s ease-out,
    color 0.16s ease-out;
}

/* The bold width is kept for every divider, so opening one never shifts the others. */
.hub .tab::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
}

.hub .tab:hover {
  background: var(--linen-3);
  color: var(--on-linen);
}

.hub .tab[aria-current] {
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
}

.hub .tab:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: -3px;
}

/* More dividers than fit: the row fades at the side where more are waiting. */
.hub .tabs.more-right .tabs-in {
  -webkit-mask-image: linear-gradient(to left, transparent, #000 40px);
  mask-image: linear-gradient(to left, transparent, #000 40px);
}

.hub .tabs.more-left .tabs-in {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
  mask-image: linear-gradient(to right, transparent, #000 40px);
}

.hub .tabs.more-left.more-right .tabs-in {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

/* ---- a master admin working inside a client's company ---- */
.hub .support-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 24px;
  border-bottom: 1px solid var(--amber-line);
  background: var(--amber-bg);
  color: #6b3900;
  font-size: 14px;
  font-weight: 500;
}

.hub .support-bar b {
  color: #4d2900;
  font-weight: 700;
}

.hub .support-tag {
  flex: none;
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---- the page ---- */
.hub main.wrap {
  max-width: 1120px;
  padding: 32px 24px 80px;
}

html.ground-linen .hub main.wrap > .quiet {
  color: var(--on-linen-quiet);
}

.hub .page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 20px;
}

/* More room above a heading than below it. */
.hub * + .page-head {
  margin-top: 44px;
}

.hub .page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hub .page-head p {
  max-width: 68ch;
  margin: 6px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

html.ground-linen .hub .page-head p {
  color: var(--on-linen-quiet);
}

html.ground-linen .hub .page-head .btn {
  border-color: #6d737c;
  background: transparent;
  color: var(--on-linen);
}

html.ground-linen .hub .page-head .btn:hover {
  border-color: var(--on-linen);
  background: var(--linen-2);
}

/* ---- card stock: a sheet on the desk ---- */
.hub .card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
}

html.ground-linen .hub .card {
  border-color: transparent;
}

.hub .panel {
  margin: 0 0 16px;
  padding: 24px 28px 28px;
}

.hub .panel h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.hub .panel p.lead {
  max-width: 68ch;
  margin: 0 0 18px;
  color: var(--muted);
}

/* A sheet ruled into sections: what the section is on the left, the thing itself on the right. */
.hub .doc {
  margin: 0 0 16px;
  padding: 0;
}

.hub .sec {
  display: grid;
  grid-template-columns: minmax(180px, 264px) minmax(0, 1fr);
  gap: 16px 56px;
  padding: 28px;
}

.hub .sec + .sec {
  border-top: 1px solid var(--line);
}

.hub .sec-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hub .sec-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hub .sec-body {
  min-width: 0;
}

.hub .sec-body > :first-child {
  margin-top: 0;
}

.hub .sec-body > :last-child {
  margin-bottom: 0;
}

.hub .sec-body > p {
  max-width: 62ch;
  margin: 0 0 14px;
}

/* A table wants the whole width: its heading sits above it. */
.hub .sec.wide {
  grid-template-columns: minmax(0, 1fr);
}

.hub .sec.wide .sec-head p {
  max-width: 68ch;
}

.hub .danger-zone {
  border-color: var(--red-line);
}

.hub .danger-zone .sec-head h2 {
  color: var(--red);
}

/* ---- things you type in ---- */
.hub .stack {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.hub .stack label,
.hub .stack .field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.hub .stack input:not([type='color']):not([type='file']),
.hub .stack select,
.hub .stack textarea,
.hub table.plain select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.16s ease-out;
}

.hub .stack textarea {
  min-height: 96px;
  line-height: 1.45;
  resize: vertical;
}

.hub .stack input:not([type='color']):not([type='file']):hover,
.hub .stack select:hover,
.hub .stack textarea:hover,
.hub table.plain select:hover {
  border-color: var(--ink);
}

.hub .stack input:focus-visible,
.hub .stack select:focus-visible,
.hub .stack textarea:focus-visible,
.hub table.plain select:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--blue-bright);
  outline-offset: 1px;
}

.hub .stack input:disabled,
.hub .stack select:disabled,
.hub .stack textarea:disabled {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink-2);
  opacity: 1;
}

.hub .stack .quiet {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.hub .stack .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hub .stack .buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
}

/* A Save button is an outline until something in its section has changed; then it is the black
   plate, with these words beside it. */
.hub .unsaved {
  color: var(--amber);
  font-size: 14px;
  font-weight: 500;
}

/* ---- tables ---- */
.hub table.plain th {
  padding: 0 16px 10px 0;
}

.hub table.plain td {
  padding: 12px 16px 12px 0;
}

.hub table.plain th:last-child,
.hub table.plain td:last-child {
  padding-right: 0;
}

.hub table.plain td.act {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.hub table.plain td .btn + .btn {
  margin-left: 6px;
}

.hub table.plain select {
  min-width: 150px;
  max-width: 240px;
  min-height: 40px;
  padding: 6px 10px;
}

.hub table.plain .num + :not(.num) {
  padding-left: 32px;
}

.hub .under {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.hub .name {
  font-weight: 700;
}

/* A fact with its name: one size, the figure in bold. */
.hub .facts {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 2px 8px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.hub .facts b {
  font-weight: 700;
  text-align: right;
}

/* What each role may do: a short table of words. */
.hub .roles {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 20px;
  max-width: 62ch;
  margin: 0;
  font-size: 14px;
}

.hub .roles dt {
  font-weight: 700;
}

.hub .roles dd {
  margin: 0;
  color: var(--ink-2);
}

/* ---- an event, wherever it is listed ----
   The sign: a whole field of the event's main colour with its name on it, standing on a foot of
   its button colour. In a table it is the same sign, small. */
.hub .sign,
.hub .event-sign {
  --foot: var(--button);
}

.hub .event-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub .event-row {
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
}

.hub .sign {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  min-height: 128px;
  padding: 16px 20px 22px;
  background: var(--bar);
  box-shadow:
    inset 0 -6px 0 var(--foot),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  color: var(--on-bar);
  font-family: var(--brand-font, inherit);
}

.hub .sign .logo {
  align-self: flex-start;
  width: auto;
  max-width: 170px;
  height: 30px;
  margin-bottom: auto;
  object-fit: contain;
  object-position: left center;
}

.hub .sign img.logo.plated {
  padding: 3px 7px;
  border-radius: 5px;
}

.hub .sign b {
  padding-top: 12px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.hub .sign span {
  color: var(--on-bar-quiet);
  font-size: 14px;
}

.hub .event-facts {
  display: flex;
  align-items: center;
  padding: 16px 28px;
}

.hub .event-acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 16px 0;
}

/* The same sign, small, for a row in a table: still the event's name on a field of its colour. Until
   its colours are known it is a plain grey plate. */
.hub .sign.small {
  width: min(300px, 100%);
  min-height: 0;
  padding: 9px 14px 13px;
  border-radius: 4px;
  box-shadow:
    inset 0 -4px 0 var(--foot),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.hub .sign.small b {
  padding-top: 0;
  font-size: 15px;
}

.hub .sign.small span {
  font-size: 13px;
}

.hub .sign.plain {
  --bar: #e9ebee;
  --on-bar: #0f1113;
  --on-bar-quiet: #555b64;
  --button: #c9cdd3;
}

/* No events yet: the holder is there, waiting for its first sign. */
.hub .holder-empty {
  padding: 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
}

.hub .holder-empty b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
}

/* An event's settings open under its own sign, the full width of the screen. */
.hub .event-sign {
  background: var(--bar);
  box-shadow:
    inset 0 -6px 0 var(--foot),
    inset 0 -7px 0 var(--bar-edge, transparent);
  color: var(--on-bar);
  font-family: var(--brand-font, inherit);
}

.hub .event-sign-in {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 34px;
}

.hub .event-sign .crumbs {
  flex-basis: 100%;
  margin: 0 0 14px;
  color: var(--on-bar-quiet);
  font-size: 14px;
}

.hub .event-sign .crumbs a {
  border-radius: 3px;
  color: var(--on-bar);
}

.hub .event-sign a:focus-visible,
.hub .event-sign .btn:focus-visible {
  outline-color: var(--bar-focus, var(--blue-bright));
}

.hub .event-sign .logo {
  flex: none;
  width: auto;
  max-width: min(100%, 260px);
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.hub .event-sign .sign-text {
  flex: 1 1 320px;
  min-width: 0;
}

.hub .event-sign h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hub .event-sign .meta {
  margin: 6px 0 0;
  color: var(--on-bar-quiet);
}

.hub .event-sign .sign-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub .event-sign .btn {
  border-color: var(--bar-line);
  background: transparent;
  color: var(--on-bar);
}

.hub .event-sign .btn:hover {
  border-color: var(--on-bar);
  background: var(--bar-hover);
}

/* ---- branding: the controls, and a small check-in screen that takes the colours as you pick ---- */
.hub .brand-form {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 28px 40px;
}

.hub .brand-form .stack {
  max-width: none;
}

.hub .bf-preview {
  position: sticky;
  top: 16px;
}

.hub .bf-cap {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
}

.hub .bf-preview > .quiet {
  margin: 8px 0 0;
  font-size: 14px;
}

.hub .colour {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub .colour input[type='color'] {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.hub .colour input[type='color']:hover {
  border-color: var(--ink);
}

.hub .colour input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}

.hub .colour input[type='color']::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}

.hub .colour input[type='color']::-moz-color-swatch {
  border: 0;
  border-radius: 3px;
}

.hub .stack .colour input[type='text'] {
  max-width: 13ch;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

/* What the program worked out for a colour (the text that goes on it, and how well it reads) or
   knows about a font (whether it ships with the program). */
.hub .readout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.hub .readout i {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 22px;
  border-radius: 4px;
  background: var(--c, #fff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  color: var(--t, #000);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
}

.hub .readout.bad {
  color: var(--red);
  font-weight: 500;
}

/* The logo, shown on the event's main colour: where it will actually sit. */
.hub .logo-holder {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--bar);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  color: var(--on-bar-quiet);
  font-size: 14px;
  font-weight: 400;
}

.hub .logo-holder .logo {
  width: auto;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.hub .logo-holder.empty {
  min-height: 60px;
  border: 1.5px dashed var(--line-strong);
  background: none;
  box-shadow: none;
  color: var(--muted);
}

/* The sign, the holder and the small screen follow the picker without a jump. */
.hub .event-sign,
.hub .logo-holder,
.hub .mini-bar {
  transition:
    background-color 0.14s ease-out,
    color 0.14s ease-out;
}

.hub .logo-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The small check-in screen. Inside it the measures are the check-in screen's own, not this page's. */
.hub .mini {
  --card: #ffffff;
  --soft: #f5f5f5;
  --line: #e0e0e0;
  --line-strong: #929292;
  --ink: #000000;
  overflow: hidden;
  border: 1px solid #c9cdd3;
  border-radius: 6px;
  background: #ececec;
  color: #000;
  font-family: var(--brand-font, inherit);
}

.hub .mini-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  background: var(--bar);
  box-shadow: inset 0 -1px 0 var(--bar-edge, transparent);
  color: var(--on-bar);
}

.hub .mini-bar .logo {
  flex: none;
  width: auto;
  max-width: 120px;
  height: 32px;
  object-fit: contain;
}

.hub .mini-bar img.logo.plated {
  padding: 3px 7px;
  border-radius: 6px;
}

.hub .mini-bar b {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hub .mini-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--bar-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.hub .mini-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.hub .mini-search {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  overflow: hidden;
  border: 2px solid #929292;
  border-radius: 999px;
  background: #fff;
  color: #6a6a6a;
  font-size: 14px;
  white-space: nowrap;
}

.hub .mini-list {
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
}

.hub .mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
}

.hub .mini-row + .mini-row {
  border-top: 1px solid #e0e0e0;
}

.hub .mini-row b {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.hub .mini .chip {
  font-size: 12px;
}

.hub .mini .btn {
  height: 32px;
  min-height: 0;
  padding: 0 14px;
  font-size: 13.5px;
  pointer-events: none;
}

/* ---- the venue kit's address and key, shown once ---- */
.hub .secret {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--soft);
  font: 400 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  user-select: all;
}

.hub .note {
  border-radius: 6px;
}

.hub .sec-body > .note,
.hub main.wrap > .note {
  margin: 0 0 16px;
}

/* ---- history: a ruled log, a day at a time ---- */
.hub .log-day {
  margin: 30px 0 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.hub .log-day:first-child {
  margin-top: 0;
}

.hub .history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub .history li {
  display: grid;
  grid-template-columns: 84px minmax(150px, 232px) minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.hub .history li:last-child {
  border-bottom: 0;
}

.hub .history time,
.hub .history .by {
  color: var(--muted);
  font-size: 14px;
}

.hub .history time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hub .history .by .support-tag {
  margin-left: 6px;
  background: var(--amber-bg);
  color: #6b3900;
}

/* ---- the door: signing in, the emailed link, first setup ----
   One white card on the bare linen, and nothing else to do on the screen. */
html.door .hub main.wrap,
.hub .alone {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-top: clamp(32px, 16vh, 168px);
}

html.door .hub main.wrap {
  /* The logo stands over the card, 28px above it. */
  padding-top: 28px;
  padding-right: 20px;
  padding-bottom: 64px;
  padding-left: 20px;
}

.hub .tent {
  width: min(440px, 100%);
  padding: 36px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.hub .tent.wide {
  width: min(560px, 100%);
}

.hub .tent h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hub .tent .lead {
  margin: 0 0 22px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hub .tent .stack {
  max-width: none;
}

.hub .tent .note {
  margin: 0 0 18px;
}

.hub .tent .btn.go {
  width: 100%;
  height: 46px;
  font-size: 16px;
}

.hub .tent .actions {
  margin: 22px 0 0;
}

.hub .door-foot {
  width: min(440px, 100%);
  margin: 18px 0 0;
  padding: 0 2px;
  color: var(--on-linen-quiet);
  font-size: 14px;
  text-wrap: pretty;
}

/* Choosing a company: its name, and what you are there. */
.hub .pick {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub .pick li + li {
  border-top: 1px solid var(--line);
}

.hub .pick a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.hub .pick a:hover b {
  text-decoration: underline;
}

.hub .pick span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

/* ---- windows and messages ---- */
.hub .modal {
  background: rgba(15, 17, 19, 0.62);
}

.hub .sheet {
  border-radius: 8px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
  color: var(--ink);
}

/* Here a question is not a problem: no red top edge. The button says how serious it is. */
.hub .sheet[role='alertdialog'] {
  border-top: 0;
}

.hub .sheet-head {
  padding: 24px 24px 0;
  border-bottom: 0;
}

.hub .sheet-head h2 {
  overflow: visible;
  font-size: 20px;
  line-height: 1.25;
  text-wrap: balance;
  white-space: normal;
}

.hub .sheet-body.single {
  padding: 10px 24px 4px;
}

.hub .sheet-body p {
  margin: 0;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hub .sheet-foot {
  padding: 20px 24px 24px;
  border-top: 0;
}

/* "Saved" is said in ink, like everything else the product says: bright green is a colour a client
   may have chosen. On the linen the plate is white. Warnings and refusals keep amber and red. */
.hub .toast {
  border-radius: 6px;
}

.hub .toast.ok {
  background: var(--ink);
  color: #fff;
}

html.ground-linen .hub .toast.ok {
  background: #fff;
  color: var(--ink);
}

/* ---- development only: the emails that would have been sent ---- */
.hub .outbox-mail {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.hub .outbox-mail:first-child {
  padding-top: 0;
}

.hub .outbox-mail:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hub .outbox-mail pre {
  max-width: 78ch;
  margin: 10px 0 0;
  font: 14px/1.5 var(--font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---- small joins between the pieces above ---- */
/* Where a logo goes when there is one. It takes no room of its own. */
.hub .logo-slot {
  display: contents;
}

.hub .logo-slot:empty {
  display: none;
}

.hub .event-list,
.hub .holder-empty {
  margin-bottom: 28px;
}

.hub .key-pair {
  margin: 0 0 16px;
}

.hub .tent .stack .btn.go {
  margin-top: 4px;
}

.hub .tent > .quiet {
  margin: 0;
  font-size: 14px;
}

/* ---- narrower screens ---- */
@media (max-width: 1100px) {
  .hub .brand-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* One column: the preview goes first and stays in sight while the colours under it are picked. */
  .hub .bf-preview {
    order: -1;
    top: 0;
    z-index: 1;
    max-width: 520px;
    padding: 12px 0;
    margin: -12px 0;
    background: var(--card);
  }

  /* The sign keeps its place on the left; the figures sit above the buttons beside it. */
  .hub .event-row {
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  }

  .hub .sign {
    grid-row: 1 / span 2;
  }

  .hub .event-facts {
    padding: 16px 20px 4px;
  }

  .hub .event-acts {
    justify-content: flex-start;
    padding: 8px 20px 16px;
  }
}

@media (max-width: 860px) {
  /* The shared rule for the check-in screens sends the bar's buttons to a row of their own. Here
     they stay beside the product's name. */
  .hub .top-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .hub .sec {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 24px;
  }

  /* Text in boxes at 16px, so an iPhone does not zoom in when one is tapped. */
  .hub .stack input:not([type='color']):not([type='file']),
  .hub .stack select,
  .hub .stack textarea,
  .hub table.plain select {
    font-size: 16px;
  }

  .hub .history li {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .hub .history .what {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .hub .top {
    padding: 8px 16px;
  }

  /* Where you are gets a line of its own under the product's name. */
  .hub .where {
    order: 3;
    flex-basis: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--linen-line);
    border-left: 0;
  }

  .hub .top .who {
    display: none;
  }

  .hub .tabs-in,
  .hub .support-bar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hub .tabs-in {
    gap: 2px;
  }

  .hub .tab {
    padding: 0 11px;
    font-size: 14px;
  }

  .hub .support-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hub main.wrap {
    padding: 24px 16px 64px;
  }

  .hub .page-head h1,
  .hub .tent h1,
  .hub .event-sign h1 {
    font-size: 24px;
  }

  .hub .panel,
  .hub .sec {
    padding: 20px 18px;
  }

  .hub .doc {
    padding: 0;
  }

  .hub .tent {
    padding: 28px 22px;
  }

  .hub .stack .row2 {
    grid-template-columns: 1fr;
  }

  /* On a phone a preview held in place would take a third of the screen: it leads, then scrolls. */
  .hub .bf-preview {
    position: static;
  }

  /* The small screen's bar wraps as the real one does: the name keeps a line, the button drops. */
  .hub .mini-bar {
    flex-wrap: wrap;
  }

  .hub .mini-bar b {
    flex: 1 1 150px;
  }

  .hub .event-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub .sign.small {
    width: 100%;
  }

  .hub .sign {
    grid-row: auto;
    min-height: 104px;
  }

  .hub .event-facts {
    padding: 14px 16px 2px;
  }

  .hub .event-acts {
    gap: 6px;
    padding: 8px 16px 16px;
  }

  .hub .roles {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .hub .roles dd {
    margin-bottom: 10px;
  }

  .hub table.plain select {
    max-width: none;
  }

  .hub table.rows .num + :not(.num) {
    padding-left: 0;
  }

  .hub .event-sign-in {
    padding: 16px 16px 28px;
  }

  .hub .event-sign .logo {
    height: 44px;
  }

  /* A table becomes a list: each row a small block, its buttons underneath. */
  .hub table.rows,
  .hub table.rows tbody {
    display: block;
  }

  .hub table.rows thead {
    display: none;
  }

  .hub table.rows tr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hub table.rows tbody tr:first-child {
    padding-top: 0;
  }

  .hub table.rows tbody tr:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hub table.rows td,
  .hub table.rows td.act {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .hub table.rows td.main,
  .hub table.rows td.act,
  .hub table.rows td.full {
    flex-basis: 100%;
  }

  .hub table.rows td.act {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hub table.rows td .btn + .btn {
    margin-left: 0;
  }

  /* A figure says what it counts, now that the column titles are gone. */
  .hub table.rows td[data-label]::before {
    content: attr(data-label) ' ';
    color: var(--muted);
  }

  .hub table.rows td.num {
    font-variant-numeric: tabular-nums;
  }

  .hub table.rows td.gone {
    display: none;
  }
}

@media (pointer: coarse) {
  .hub .tab {
    height: 44px;
  }

  .hub .top .btn {
    min-height: 40px;
  }
}

@media (forced-colors: active) {
  .hub .tab[aria-current] {
    outline: 2px solid Highlight;
    outline-offset: -4px;
  }

  .hub .sign,
  .hub .event-sign,
  .hub .mini,
  .hub .logo-holder,
  .hub .readout i,
  .hub .support-bar,
  .hub .role-tag {
    forced-color-adjust: none;
  }

  .hub .tent,
  .hub .card {
    border: 1px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub .event-sign,
  .hub .logo-holder,
  .hub .mini-bar,
  .hub .tab,
  .hub .stack input,
  .hub .stack select,
  .hub .stack textarea {
    transition: none;
  }
}

/* ---- the sign-up form, and a person's own registration (register.html) ----
   Open to anyone, and the event's own page: the event's sign across the top, its font for the text
   and its button colour for the one main button. Under that it is the hosted screens' kit (white
   stock on the foyer, ruled lists, pill buttons), so every rule here starts at .signup and the page
   carries .hub too. (The few rules below that start at .hub, for tick boxes and groups of them, are
   shared with an event's sign-up settings.) One column, 720px at most. An event's site (the poster) opens this page from its button; the
   form has not had a poster pass of its own yet. */

.signup {
  font-family: var(--brand-font, var(--font));
}

.signup .event-sign .event-sign-in,
.signup main.reg-wrap {
  max-width: 768px;
}

.signup .event-sign-in {
  padding: 40px 24px 46px;
}

.signup main.reg-wrap {
  padding-top: 24px;
  padding-bottom: 8px;
}

.signup .reg-card {
  margin: 0 0 16px;
  padding: 28px;
}

.signup .reg-card > h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.signup .reg-card > h2:focus {
  outline: none;
}

.signup .reg-card h3 {
  margin: 26px 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.signup .reg-card p {
  max-width: 62ch;
  margin: 0 0 14px;
}

.signup .reg-card .lead {
  margin-bottom: 22px;
  color: var(--muted);
}

.signup .reg-card > .note {
  margin: 0 0 18px;
}

.hub .opt {
  color: var(--muted);
  font-weight: 400;
}

/* A refusal is said twice: once at the top of the form, once under the answer it is about. */
.signup .alert {
  max-width: 62ch;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--red-line);
  border-radius: 6px;
  background: var(--red-bg);
  color: var(--red);
  font-weight: 500;
}

.signup .err {
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
}

.hub.signup .stack input[aria-invalid='true'],
.hub.signup .stack select[aria-invalid='true'],
.hub.signup .stack textarea[aria-invalid='true'] {
  border-color: var(--red);
}

/* Choose one, choose any, yes or no: a ruled group of ticks under the question. */
.hub .group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hub .group legend {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

.hub .group .picks {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}

.hub .stack label.tick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 400;
}

/* (Named by type so these win over the rule that makes every other field 44px tall and full width.) */
.hub .stack label.tick input[type='checkbox'],
.hub .stack label.tick input[type='radio'],
.signup .ses input[type='checkbox'] {
  flex: none;
  width: 20px;
  min-height: 0;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--ink);
}

.hub .tick input:focus-visible,
.signup .ses input:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

/* The agenda: a ruled list a day at a time. A session people choose has a tick box and says how many seats are left. */
.signup .sessions {
  min-width: 0;
  margin: 30px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.signup .sessions legend {
  float: left;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.signup .sessions legend + * {
  clear: both;
}

.signup .sessions h3 {
  margin: 22px 0 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}

.signup .sessions ul,
.signup .plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signup .ses > label,
.signup .ses > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.signup .ses > label {
  cursor: pointer;
}

.signup .ses.open .ses-text {
  grid-column: 1 / 3;
}

.signup .ses input {
  margin-top: 1px;
}

.signup .ses-text {
  display: grid;
  gap: 2px;
}

.signup .ses-text .quiet,
.signup .ses-text .about {
  color: var(--muted);
  font-size: 14px;
}

.signup .ses-text .about {
  margin-top: 4px;
  max-width: 62ch;
}

.signup .ses-seat {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.signup .ses-seat.mine {
  color: var(--ink);
  font-weight: 700;
}

.signup .ses.full .ses-text b {
  color: var(--muted);
}

.signup #ses_e {
  display: block;
  margin-top: 12px;
}

/* A box no person sees: only a program fills it in. */
.signup .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup .reg-card > .buttons,
.signup .ask .buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 28px;
}

.signup .ask .buttons {
  margin-top: 14px;
}

.signup .buttons p {
  margin: 0;
}

.signup .lost summary {
  font-weight: 500;
  cursor: pointer;
}

.signup .lost[open] summary {
  margin-bottom: 12px;
}

.signup .lost summary:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 4px;
  border-radius: 3px;
}

/* The person's own page: their QR code and the code under it, as the desk will ask for them. */
.signup .pass {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 20px 0 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.signup .pass .qr {
  flex: none;
  width: 148px;
  height: 148px;
}

.signup .pass > div {
  display: grid;
  gap: 4px;
}

.signup .pass .code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.signup .plain-list li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.signup .own-details {
  margin: 0;
}

.signup .own-details > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.signup .own-details dt {
  color: var(--muted);
}

.signup .own-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.signup .ask {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--red-line);
  border-radius: 6px;
}

.signup .ask p {
  margin: 0;
}

.signup .reg-foot {
  padding: 4px 24px 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.signup .reg-foot p {
  margin: 0;
}

@media (max-width: 640px) {
  .signup .event-sign-in {
    padding: 28px 16px 34px;
  }

  .signup .reg-card {
    padding: 20px 18px 22px;
  }

  .signup .ses > label,
  .signup .ses > div {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .signup .ses-seat {
    grid-column: 2;
    white-space: normal;
  }

  .signup .ses.open .ses-seat {
    grid-column: 1 / 3;
  }

  .signup .pass {
    flex-direction: column;
    align-items: flex-start;
  }

  .signup .own-details > div {
    grid-template-columns: 1fr;
  }

  .signup .reg-card > .buttons .btn {
    flex: 1 1 100%;
  }
}

/* ---- an event's sign-up and agenda settings (hub/event-reg.js) ----
   The same sheet ruled into sections. A long list (the questions, the sessions, the speakers) is a
   ruled list inside its section; a session or a speaker opens in place to be edited. */

.hub .stack [hidden] {
  display: none;
}

.hub .ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 28px;
}

.hub .stack .row3 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}

.hub .key-pair + .quiet,
.hub .sec-body > .quiet {
  margin: 14px 0 22px;
}

.hub .qlist {
  max-width: 520px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.hub .qlist .q {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.hub .qlist .q:first-child {
  padding-top: 0;
  border-top: 0;
}

.hub .qlist .q.fixed .stack {
  gap: 6px;
}

.hub .qlist .q.fixed .ticks {
  margin-top: 4px;
}

.hub .items {
  max-width: 640px;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.hub .items .none {
  margin: 14px 0;
}

.hub .item {
  border-bottom: 1px solid var(--line);
}

.hub .item summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 20px;
  padding: 14px 32px 14px 0;
  list-style: none;
  cursor: pointer;
}

.hub .item summary::-webkit-details-marker {
  display: none;
}

/* The mark that says a row opens: a small chevron, turned over when it is open. */
.hub .item summary::after {
  content: '';
  position: absolute;
  top: 19px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.hub .item[open] summary::after {
  top: 24px;
  transform: rotate(-135deg);
}

.hub .item summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.hub .item summary .quiet {
  grid-column: 1;
  font-size: 14px;
}

.hub .item summary .it-fact {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.hub .item > .stack {
  padding: 4px 0 24px;
}

.hub .item .s-seats {
  align-items: start;
}

.hub .item .s-seats .ticks {
  padding-top: 26px;
}

@media (max-width: 640px) {
  .hub .stack .row3 {
    grid-template-columns: 1fr;
  }

  .hub .item summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub .item summary .it-fact {
    grid-column: 1;
    grid-row: auto;
    white-space: normal;
  }

  .hub .item .s-seats .ticks {
    padding-top: 0;
  }
}

/* ---- an event's site: the poster (site.html, drawn by shared/site-render.mjs) ----
   The site opens as the event's own poster. One of the event's two colours drenches the cover
   (--field); the other (--mark) sets the date's numerals and closes the page as a second full
   field. Between them the sections run on white stock under heavy rules in the field's colour.
   Flat ink only: no shadows, no rounded corners, no gradients. The event's own font does all the
   work, at poster scale. Three layouts share every rule below: .t-bill (the default), .t-invitation
   and .t-notice. Every rule starts at .site or .site-page, so nothing here touches another screen.
   The decisions are recorded in DESIGN.md ("The Poster"). */

.site-page {
  margin: 0;
  background: #ffffff;
}

.site-wait,
.site-gone {
  max-width: 34rem;
  margin: 0 auto;
  padding: 18vh 24px;
  color: #0f1113;
  font: 400 17px/1.5 Metropolis, 'Segoe UI', system-ui, sans-serif;
}

.site-gone h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.site-note {
  margin: 0;
  padding: 10px 20px;
  background: var(--amber-bg);
  color: var(--amber);
  font: 500 14px/1.45 Metropolis, 'Segoe UI', system-ui, sans-serif;
  text-align: center;
}

.site {
  --ink: #0f1113;
  --muted: #50565f;
  --stock: #ffffff;
  --hair: #d5d8de;
  --pad: clamp(20px, 5vw, 76px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--stock);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, 0.3vw + 15.8px, 19px);
  line-height: 1.55;
  accent-color: var(--field);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

.site ::selection {
  background: var(--mark);
  color: var(--on-mark);
}

.site a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.site :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* The keyboard ring takes the text colour of whatever field it is on, so it always reads there. */
.site .ps-cover :focus-visible {
  outline-color: var(--on-field);
}

.site .ps-close :focus-visible {
  outline-color: var(--on-mark);
}

.site p,
.site ul,
.site ol,
.site dl,
.site figure {
  margin: 0;
}

/* ---- the cover: the poster itself ---- */
.site .ps-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--field);
  color: var(--on-field);
}

/* The pattern covers the whole poster and is cut only by the poster's own edges. */
.site .ps-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.site .ps-cover-in {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 48px) var(--pad) clamp(28px, 5.5vh, 84px);
}

.site .ps-host {
  margin-bottom: auto;
  padding-bottom: clamp(14px, 2.2vh, 26px);
}

/* A plate behind a logo is flat and square here, like everything else on the poster. */
.site .ps-logo.plated,
.site .ps-logo.tile {
  border-radius: 0;
}

.site .ps-logo {
  display: block;
  width: auto;
  max-width: min(46vw, 260px);
  height: clamp(36px, 4.4vw, 56px);
  object-fit: contain;
  object-position: left center;
}

.site .ps-date {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 clamp(12px, 2vw, 30px);
}

.site .ps-num {
  margin-left: -0.045em;
  color: var(--num);
  /* On a short screen the numerals give way a little, so the button stays on the first screen. */
  font-size: clamp(118px, min(27vw, 36svh), 430px);
  font-weight: 800;
  font-variant-numeric: lining-nums;
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site .ps-num.is-short {
  font-size: clamp(170px, min(36vw, 44svh), 560px);
}

.site .ps-mon {
  padding-bottom: 0.42em;
  font-size: clamp(19px, 2.3vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.site .ps-name {
  max-width: 17ch;
  margin: clamp(20px, 3.2vh, 40px) 0 0;
  font-size: clamp(38px, min(6.6vw, 9.5svh), 108px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.site .ps-line {
  max-width: 46ch;
  margin-top: clamp(14px, 2vh, 22px);
  font-size: clamp(19px, 1.9vw, 29px);
  font-weight: 500;
  line-height: 1.25;
}

.site .ps-place {
  margin-top: clamp(14px, 2vh, 22px);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 800;
  line-height: 1.35;
}

.site .ps-place span {
  font-weight: 500;
}

.site .ps-facts {
  display: none;
}

.site .ps-act {
  margin-top: clamp(26px, 4.4vh, 48px);
}

.site .ps-closed {
  display: inline-block;
  padding: 14px 18px;
  border: 3px solid currentColor;
  font-weight: 800;
}

/* ---- buttons: square blocks of flat ink ---- */
.site .ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 0 26px 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--btn);
  color: var(--on-btn);
  font: inherit;
  font-size: clamp(18px, 1.45vw, 23px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.site .ps-arrow {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.28s var(--ease);
}

.site .ps-btn:hover {
  background: var(--on-btn);
  color: var(--btn);
}

.site .ps-btn:hover .ps-arrow {
  transform: translateX(6px);
}

.site .ps-btn:active {
  transform: translateY(1px);
}

.site .ps-btn-mark {
  background: var(--btn2);
  color: var(--on-btn2);
}

.site .ps-btn-mark:hover {
  background: var(--on-btn2);
  color: var(--btn2);
}

.site .ps-btn-ink,
.site .ps-btn-strip {
  background: var(--ink);
  color: #ffffff;
}

/* Under the pointer an ink block takes the poster's colour and the text colour worked out for it,
   inside an ink edge so a very light colour still ends somewhere on white. */
.site .ps-btn-ink:hover,
.site .ps-btn-strip:hover {
  background: var(--field);
  box-shadow: inset 0 0 0 3px var(--ink);
  color: var(--on-field);
}

.site .ps-btn-ink {
  min-height: 50px;
  margin-top: 18px;
  padding: 0 22px;
  font-size: 17px;
}

/* ---- the strip: once the poster has scrolled away, its name and the way to sign up stay in reach ---- */
.site .ps-strip {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  min-height: 60px;
  padding: 8px var(--pad);
  border-bottom: 4px solid var(--rule);
  background: var(--stock);
}

.site .ps-strip b {
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site .ps-strip span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site .ps-strip .ps-btn span {
  color: inherit;
  font-size: inherit;
}

.site .ps-btn-strip {
  flex: none;
  min-height: 42px;
  margin-left: auto;
  padding: 0 18px;
  font-size: 16px;
}

/* ---- sections on white stock: the heading at the left under a heavy rule, the matter at the right ---- */
.site .ps-sec {
  padding: clamp(60px, 9vw, 132px) var(--pad) 0;
}

.site .ps-in {
  max-width: 1320px;
  margin: 0 auto;
}

.site .ps-sec .ps-in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 22px clamp(24px, 5vw, 84px);
  align-items: start;
  padding-top: 20px;
  border-top: 6px solid var(--rule);
}

.site .ps-col {
  grid-column: 2;
  min-width: 0;
}

.site .ps-col > * + * {
  margin-top: 26px;
}

.site .ps-sec h2,
.site .ps-close h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.site .ps-sec h2 {
  grid-column: 1;
  font-size: clamp(32px, 4.4vw, 66px);
  line-height: 1;
}

.site .ps-lead .ps-col {
  grid-column: 1 / -1;
}

.site .ps-lead .ps-body {
  max-width: 44ch;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

/* Held in em, not ch: the bundled faces draw their zero at very different widths. */
.site .ps-body {
  max-width: 31em;
}

.site .ps-body > * + * {
  margin-top: 1em;
}

.site .ps-body h3 {
  margin: 1.7em 0 0;
  font-size: 1.28em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.site .ps-body h3:first-child {
  margin-top: 0;
}

.site .ps-body ul {
  padding-left: 1.15em;
  list-style: square;
}

.site .ps-body li + li {
  margin-top: 0.4em;
}

.site .ps-body li::marker {
  color: var(--mark);
}

.site .ps-link {
  font-weight: 800;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 0.16em;
}

.site .ps-link:hover {
  text-decoration-color: currentColor;
}

.site .ps-pic img {
  display: block;
  width: 100%;
  height: auto;
}

/* The agenda: a bill of times. The day on a block of the field's colour, then ruled lines. */
.site .ps-dayblock + .ps-dayblock {
  margin-top: 44px;
}

/* A day of the agenda echoes the cover: its numeral large, in the poster's colour. */
.site .ps-day {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 0.95em;
  font-weight: 800;
  line-height: 1.15;
}

.site .ps-day b {
  color: var(--rule);
  font-size: clamp(60px, 6.8vw, 108px);
  font-variant-numeric: lining-nums;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.site .ps-day span {
  padding-bottom: 0.12em;
}

.site .ps-slots,
.site .ps-names,
.site .ps-logos {
  padding: 0;
  list-style: none;
}

.site .ps-slots {
  border-top: 3px solid var(--ink);
}

.site .ps-slot {
  display: grid;
  grid-template-columns: 10.6em minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: start;
  padding: 18px 0 19px;
  border-bottom: 1px solid var(--hair);
}

.site .ps-time {
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

.site .ps-what {
  display: grid;
  gap: 3px;
}

.site .ps-what b {
  font-size: 1.16em;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.site .ps-what span {
  color: var(--muted);
  font-size: 0.9em;
}

.site .ps-what .ps-about {
  max-width: 60ch;
  margin-top: 4px;
}

.site .ps-seats {
  padding: 3px 9px 2px;
  border: 2px solid var(--ink);
  font-size: 0.8em;
  font-weight: 800;
  white-space: nowrap;
}

.site .ps-slot.is-now {
  margin: 0 -14px;
  padding-right: 14px;
  padding-left: 14px;
  background: var(--mark);
  color: var(--on-mark);
}

.site .ps-slot.is-now .ps-what span {
  color: inherit;
}

.site .ps-slot.is-now .ps-seats {
  border-color: currentColor;
}

.site .ps-nowtag {
  display: block;
  font-size: 0.8em;
}

/* The line-up: names set large, no portraits needed. */
.site .ps-names {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 34px clamp(24px, 3vw, 44px);
}

.site .ps-names li {
  padding-top: 14px;
  border-top: 3px solid var(--ink);
}

.site .ps-names b {
  display: block;
  font-size: clamp(25px, 2.5vw, 37px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.site .ps-names span {
  display: block;
  margin-top: 8px;
  font-size: 0.9em;
  font-weight: 800;
  line-height: 1.3;
}

.site .ps-names p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9em;
}

/* Questions: each opens in place. The mark at the right is a plus that turns into a minus. */
.site .ps-qs {
  border-top: 3px solid var(--ink);
}

.site .ps-q {
  border-bottom: 1px solid var(--hair);
}

.site .ps-q summary {
  position: relative;
  padding: 18px 48px 18px 0;
  font-size: 1.16em;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.site .ps-q summary::-webkit-details-marker {
  display: none;
}

.site .ps-q summary::before,
.site .ps-q summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 20px;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.site .ps-q summary::after {
  transform: rotate(90deg);
}

.site .ps-q[open] summary::after {
  transform: rotate(0deg);
}

.site .ps-q .ps-body {
  padding: 0 0 22px;
}

/* The venue: its name at heading size, the address under it, one block to the map. */
.site .ps-where {
  display: grid;
  gap: 28px;
}

.site .ps-where address {
  display: grid;
  justify-items: start;
  gap: 6px;
  font-style: normal;
}

.site .ps-where address b {
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.site .ps-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px clamp(28px, 4vw, 60px);
}

.site .ps-logos img {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 64px;
}

.site .ps-logos b {
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.site .ps-logos a {
  text-decoration: none;
}

.site .ps-logos a:hover b {
  text-decoration: underline;
}

/* ---- the close: a second full field, in the other colour, asking for the one thing ---- */
.site .ps-close {
  margin-top: clamp(72px, 10vw, 148px);
  padding: clamp(64px, 10vw, 156px) var(--pad) clamp(72px, 11vw, 168px);
  background: var(--mark);
  color: var(--on-mark);
}

.site .ps-close {
  position: relative;
  overflow: hidden;
}

.site .ps-close .ps-in {
  position: relative;
}

/* The date again, very large, in a tone of the closing field's own colour. */
.site .ps-echo {
  position: absolute;
  right: var(--pad);
  bottom: -0.06em;
  color: var(--mark-deep);
  font-size: clamp(200px, 27vw, 430px);
  font-weight: 800;
  font-variant-numeric: lining-nums;
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.site .ps-close h2 {
  max-width: 13ch;
  font-size: clamp(50px, 10vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.site .ps-close .ps-body {
  max-width: 40ch;
  margin-top: clamp(18px, 2.4vw, 30px);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.32;
}

.site .ps-close .ps-btn,
.site .ps-close .ps-closed {
  margin-top: clamp(28px, 3.6vw, 48px);
}

.site .ps-foot {
  padding: 26px var(--pad) 34px;
  font-size: 15px;
}

.site .ps-foot .ps-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}

.site .ps-foot p + p {
  color: var(--muted);
}

.site.t-bill .ps-names {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.site.t-bill .ps-names b {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
}

/* ---- capitals, as a site-wide style ---- */
.site.caps .ps-name,
.site.caps .ps-mon,
.site.caps .ps-sec h2,
.site.caps .ps-close h2,
.site.caps .ps-day {
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ---- the invitation: centred, framed in the other colour, the name before the date ---- */
.site.t-invitation .ps-cover {
  border: clamp(10px, 1.5vw, 22px) solid var(--mark);
}

.site.t-invitation .ps-cover-in {
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  padding: clamp(48px, 9vh, 110px) clamp(32px, 7vw, 96px);
  text-align: center;
}

.site.t-invitation .ps-host {
  margin-bottom: clamp(28px, 5vh, 56px);
  padding-bottom: 0;
}

.site.t-invitation .ps-logo {
  object-position: center;
}

.site.t-invitation .ps-name {
  order: 1;
  max-width: 14ch;
  margin-top: 0;
  font-size: clamp(42px, 8vw, 128px);
}

.site.t-invitation .ps-line {
  order: 2;
  margin-top: clamp(18px, 2.6vh, 30px);
  font-size: clamp(20px, 2.2vw, 32px);
}

.site.t-invitation .ps-date {
  order: 3;
  justify-content: center;
  align-items: baseline;
  gap: 0 clamp(12px, 1.8vw, 28px);
  margin-top: clamp(26px, 4.4vh, 52px);
}

.site.t-invitation .ps-num,
.site.t-invitation .ps-num.is-short {
  margin-left: 0;
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: 1;
}

.site.t-invitation .ps-mon {
  padding-bottom: 0;
  font-size: clamp(24px, 3.2vw, 50px);
}

.site.t-invitation .ps-mon br {
  display: none;
}

.site.t-invitation .ps-place {
  order: 4;
}

.site.t-invitation .ps-act {
  order: 5;
}

/* The invitation keeps its centred axis all the way down. */
.site.t-invitation .ps-sec .ps-in {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 800px;
  text-align: center;
}

.site.t-invitation .ps-col,
.site.t-invitation .ps-sec h2 {
  grid-column: 1;
}

.site.t-invitation .ps-col {
  width: 100%;
}

.site.t-invitation .ps-body {
  margin-right: auto;
  margin-left: auto;
}

.site.t-invitation .ps-body ul {
  display: inline-block;
  text-align: left;
}

.site.t-invitation .ps-where address {
  justify-items: center;
}

.site.t-invitation .ps-logos {
  justify-content: center;
}

.site.t-invitation .ps-slot,
.site.t-invitation .ps-q summary,
.site.t-invitation .ps-names {
  text-align: left;
}

.site.t-invitation .ps-echo {
  display: none;
}

.site.t-invitation .ps-close {
  text-align: center;
}

.site.t-invitation .ps-close h2,
.site.t-invitation .ps-close .ps-body {
  margin-right: auto;
  margin-left: auto;
}

/* ---- the notice: the facts beside the poster, on a sheet of white stock ---- */
.site.t-notice .ps-cover {
  min-height: min(100svh, 820px);
}


.site.t-notice .ps-cover-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-rows: auto 1fr auto auto auto;
  column-gap: clamp(28px, 5vw, 88px);
  justify-items: start;
}

.site.t-notice .ps-host {
  grid-area: 1 / 1;
}

.site.t-notice .ps-date {
  grid-area: 3 / 1;
}

.site.t-notice .ps-name {
  grid-area: 4 / 1;
}

.site.t-notice .ps-line {
  grid-area: 5 / 1;
}

.site.t-notice .ps-num {
  font-size: clamp(110px, 17vw, 280px);
}

.site.t-notice .ps-num.is-short {
  font-size: clamp(150px, 23vw, 360px);
}

.site.t-notice .ps-name {
  font-size: clamp(34px, 4.8vw, 78px);
}

.site.t-notice .ps-place {
  display: none;
}

.site.t-notice .ps-facts {
  display: block;
  grid-area: 3 / 2 / 5 / 3;
  align-self: end;
  justify-self: stretch;
  padding: 6px 26px 4px;
  background: var(--stock);
  color: var(--ink);
}

.site.t-notice .ps-facts > div {
  padding: 16px 0 17px;
}

.site.t-notice .ps-facts > div + div {
  border-top: 1px solid var(--hair);
}

.site.t-notice .ps-facts dt {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 800;
}

.site.t-notice .ps-facts dd {
  margin: 2px 0 0;
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.site.t-notice .ps-act {
  grid-area: 5 / 2;
  align-self: end;
  justify-self: stretch;
  margin-top: 16px;
}

.site.t-notice .ps-act .ps-btn {
  width: 100%;
  justify-content: space-between;
}


.site.t-notice .ps-sec {
  padding-top: clamp(48px, 6vw, 92px);
}

/* ---- the poster arrives once: the numerals, then the name, rise into place; the pattern wipes in ---- */
@media (prefers-reduced-motion: no-preference) {
  .site:not(.is-still) .ps-num {
    animation: ps-rise 1s var(--ease) both;
  }

  .site:not(.is-still) .ps-name {
    animation: ps-rise 1s 0.09s var(--ease) both;
  }

  .site:not(.is-still) .ps-art {
    animation: ps-wipe 1.4s 0.05s var(--ease) both;
  }
}

@keyframes ps-rise {
  from {
    transform: translateY(0.32em);
    clip-path: inset(0 0 100% 0);
  }

  to {
    transform: none;
    clip-path: inset(-20% -10% -30% -10%);
  }
}

@keyframes ps-wipe {
  from {
    clip-path: inset(0 0 0 100%);
  }

  to {
    clip-path: inset(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site .ps-btn,
  .site .ps-arrow,
  .site .ps-q summary::before,
  .site .ps-q summary::after {
    transition: none;
  }
}

/* Between a wide desk and a phone the agenda's three columns would squeeze a session's title into a
   ribbon: the time takes a line of its own first. */
@media (max-width: 1180px) {
  .site .ps-slot {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site .ps-time {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site .ps-sec .ps-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .site .ps-col,
  .site .ps-sec h2 {
    grid-column: 1;
  }

  .site.t-notice .ps-cover {
    min-height: 0;
  }

  .site.t-notice .ps-cover-in {
    display: flex;
    align-items: stretch;
  }

  .site.t-notice .ps-facts,
  .site.t-notice .ps-act {
    align-self: stretch;
  }

  .site.t-notice .ps-date {
    margin-top: clamp(40px, 10vh, 90px);
  }

  .site.t-notice .ps-facts {
    margin-top: 28px;
  }
}

@media (max-width: 1100px) {
  .site .ps-echo {
    display: none;
  }
}

/* On an upright screen (a phone, a tablet held upright) the bill's numerals still take a third of
   it: a range of days goes on two lines. */
@media (max-width: 1100px) and (orientation: portrait) {
  .site.t-bill .ps-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site.t-bill .ps-num:not(.is-short) {
    font-size: 31vw;
    line-height: 0.82;
    white-space: normal;
  }

  .site.t-bill .ps-num:not(.is-short) span {
    display: block;
  }

  .site.t-bill .ps-num.is-short {
    font-size: 44vw;
  }

  .site.t-bill .ps-mon {
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site.t-bill .ps-num:not(.is-short) {
    font-size: 44vw;
  }

  .site.t-bill .ps-num.is-short {
    font-size: 58vw;
  }

  .site .ps-strip > span {
    display: none;
  }

  .site .ps-btn {
    min-height: 58px;
  }

  .site .ps-act .ps-btn,
  .site .ps-close .ps-btn {
    width: 100%;
    justify-content: space-between;
  }

  .site .ps-slot {
    grid-template-columns: minmax(0, 1fr);
  }

  .site .ps-seats {
    justify-self: start;
  }
}

@media (forced-colors: active) {
  .site .ps-cover,
  .site .ps-close,
  .site .ps-day,
  .site .ps-btn {
    forced-color-adjust: none;
  }
}

/* ---- the site builder (hub/event-site.js) ----
   The Site part of an event's settings, in the hosted screens' own kit. At the left one sheet,
   ruled into Address, Layout and Sections; at the right the site itself, live, in a frame that
   stays in sight. It takes the whole width of the screen, because the preview needs it. */

.hub main.wrap.wide {
  max-width: 1760px;
}

.hub .builder {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hub .builder-side .sec {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}

.hub .builder-side .doc {
  margin-bottom: 0;
}

.hub .builder-side .save-sec {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 16px;
  padding-bottom: 16px;
  border-radius: 0 0 6px 6px;
  background: var(--card);
}

.hub .builder-view {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.hub .view-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}

.hub .view-holder {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.hub .view-holder iframe {
  display: block;
  border: 0;
  background: #ffffff;
  transform-origin: 0 0;
}

/* A choice among a few: one pill, the chosen part an ink plate. */
.hub .seg {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #ffffff;
}

.hub .seg label {
  position: relative;
  display: block;
}

.hub .seg label input[type='radio'][name] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.hub .seg span {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.16s ease-out,
    color 0.16s ease-out;
}

.hub .seg input:checked + span {
  background: var(--ink);
  color: #ffffff;
}

.hub .seg input:focus-visible + span {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.hub .seg input:disabled + span {
  color: var(--muted);
}

/* The three posters to choose from. */
.hub .tpl {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.hub .tpl .tpl-one {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 400;
  cursor: pointer;
}

.hub .tpl label.tpl-one input[type='radio'] {
  width: 20px;
  min-height: 0;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--ink);
}

.hub .tpl-one b,
.hub .tpl-one i {
  display: block;
}

.hub .tpl-one b {
  font-size: 15px;
}

.hub .tpl-one i {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.hub .tpl-one:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.hub .tpl.start {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.hub .tpl.start .tpl-one {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  cursor: default;
}

.hub .tpl.start .btn {
  justify-self: start;
}

/* The address: the part every site shares, then the part that is this event's own. */
.hub .slug {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
}

.hub .slug:focus-within {
  border-color: var(--ink);
  outline: 3px solid var(--blue-bright);
  outline-offset: 1px;
}

.hub .slug i {
  padding: 0 1px 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
}

.hub .stack .slug input:not([type='color']):not([type='file']) {
  padding-left: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

/* The site as a list of sections. A row opens in place; the grip at the left drags it. */
.hub .srows {
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hub .srow {
  border-bottom: 1px solid var(--line);
}

.hub .srow-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.hub .grip {
  width: 12px;
  height: 20px;
  background: radial-gradient(circle, var(--line-strong) 1.4px, transparent 1.9px) 0 0 / 6px 7px;
  cursor: grab;
}

.hub .srow-name {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hub .srow-name:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--blue-bright);
  outline-offset: 0;
}

.hub .srow-name b {
  font-size: 15px;
}

.hub .srow-name span {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub .srow-name span:empty {
  display: none;
}

.hub .srow.off .srow-name b {
  color: var(--muted);
  font-weight: 500;
}

.hub .srow .tick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.hub .srow .tick input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.hub .srow-body {
  padding: 4px 0 22px;
}

.hub .srow-body > .quiet {
  margin: 0 0 14px;
  font-size: 14px;
}

.hub .srow-body > .buttons.rowtools {
  margin-top: 20px;
}

.hub .srow.dragging {
  opacity: 0.45;
}

.hub .srow.drop-above {
  box-shadow: inset 0 3px 0 var(--ink);
}

.hub .srow.drop-below {
  box-shadow: inset 0 -3px 0 var(--ink);
}

/* The parts of a text, a list of questions, a row of sponsors: ruled, never boxed. */
.hub .parts {
  display: grid;
}

.hub .part {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.hub .buttons.rowtools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.hub .buttons.rowtools.add {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hub .pic-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.hub .pic-row.empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.hub .pic-row img {
  display: block;
  width: 96px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  object-fit: contain;
}

.hub .btn.file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hub .btn.file input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hub .btn.file:focus-within {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.hub .add-sec {
  display: grid;
  gap: 6px;
  min-width: 200px;
}

@media (max-width: 1100px) {
  .hub .builder {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub .builder-view {
    position: static;
    order: -1;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hub .seg span {
    transition: none;
  }
}

/* ==== an event's emails: the list, the invitation list and the editor beside its preview ======= */

/* How an email stands: a word in a small plate, then its details under it. */
.hub .mstate {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hub .mstate.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.hub .mstate.done {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}

.hub .mstate.warn {
  border-color: var(--amber-line);
  background: var(--amber-bg);
  color: var(--amber);
}

.hub .under.warn {
  color: var(--amber);
  font-weight: 500;
}

.hub .mail-list td {
  vertical-align: top;
}

.hub .mail-list .who {
  display: block;
  font-size: 15px;
}

.hub .mail-list td.state {
  width: 1%;
  min-width: 170px;
}

.hub .mail-list a.name {
  font-size: 16px;
}

.hub .starters {
  align-items: center;
}

.hub .addr {
  margin: 0;
  line-height: 1.5;
}

.hub .inv-form,
.hub .inv-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hub .inv-list .find {
  max-width: 360px;
}

/* A choice that may take two lines in the narrow editor. */
.hub .seg.wrap {
  display: flex;
  border-radius: 14px;
}

.hub .fixed-part {
  display: grid;
  gap: 2px;
  margin: 0;
}

.hub .tokens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* The inbox line above the preview: the subject, then the preview line, as a mail program lists it. */
.hub .inbox {
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub .inbox b {
  margin-right: 8px;
}

.hub .inbox span {
  color: var(--muted);
}

@media (max-width: 700px) {
  .hub .mail-list tr {
    display: grid;
    gap: 6px;
    padding: 12px 0;
  }

  .hub .mail-list td,
  .hub .mail-list td.state {
    width: auto;
    min-width: 0;
    padding: 0;
  }
}

/* The development outbox: an email as it looks, under its text. */
.hub .outbox-frame {
  display: block;
  width: 100%;
  height: 720px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

/* ==== Dashboard and report (Phase 5) ====
   An event's dashboard: the Dashboard part of its settings, and the report page a Counts pass
   opens (report.html). Both are drawn by js/report-view.js into a box that carries .rv, on a page
   that carries .hub, so every rule here starts at .hub .rv. It is the hosted screens' kit: one
   sheet ruled into sections, what a section counts at the left, the chart or table at the right.

   Charts are flat ink on stock. Two neutral marks, told apart by lightness and by the line's
   dashes: ink for the first series, one grey for the second. No client's colour and no hue of the
   product's is used, so a chart can never be mistaken for an event's branding. Green appears
   once, for "checked in". Figures are body size (the One Data Size Rule); rank is weight and rules.

   After it: the console's AI settings (.hub .ai-*), and the two links of a Counts pass on the
   Admin page (.passlinks; the Admin page keeps the venue program's look). */

.hub .rv {
  --rv-a: var(--ink);
  --rv-b: #7b818a; /* 4 to 1 on stock: a mark, never text */
  --rv-done: var(--green);
  min-width: 0;
}

/* ---- the headline figures: a ruled ledger, one size, the figure in bold ---- */
.hub .rv-top {
  padding: 28px 28px 22px;
}

.hub .rv-first {
  max-width: 68ch;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.hub .rv-heads {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 24px;
  margin: 0;
}

.hub .rv-head {
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.hub .rv-head dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hub .rv-fig {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  font-family: var(--font);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hub .rv-under {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

/* "Checked in" carries its tick wherever it is said, so it is never told by colour alone. */
.hub .rv-check {
  flex: none;
}

.hub .rv-check circle {
  fill: var(--green-bg);
}

.hub .rv-check path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub .rv-quiet .rv-check {
  margin-right: 6px;
  vertical-align: -3px;
}

.hub .rv-stamp {
  max-width: 78ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-wrap: pretty;
}

.hub .rv-stamp.rv-share {
  margin-top: 6px;
}

.hub .rv-late {
  color: var(--amber);
  font-weight: 500;
}

/* ---- a part of the dashboard: what it counts at the left, the thing itself at the right ---- */
.hub .rv-sheet > .rv-sec {
  border-top: 1px solid var(--line);
}

.hub .rv-sec .rv-dl {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 500;
}

.hub .rv-fig-box {
  margin: 0;
}

.hub .rv-fig-box figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0 0 10px;
  font-size: 14px;
}

.hub .rv-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  color: var(--ink-2);
  list-style: none;
}

.hub .rv-key li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub .rv-sw {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--rv-a);
}

.hub .rv-sw-b {
  background: var(--rv-b);
}

.hub .rv-ln {
  flex: none;
  width: 20px;
  border-top: 2px solid var(--rv-a);
}

.hub .rv-ln-b {
  border-top: 2px dashed var(--rv-b);
}

/* The line over a chart: what it shows at rest, and the numbers of the day under the pointer. */
.hub .rv-read {
  min-height: 1.45em;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.hub .sec-body > .rv-read {
  margin-bottom: 14px;
}

.hub .rv-quiet {
  color: var(--muted);
  font-size: 14px;
}

.hub p.rv-quiet {
  max-width: 62ch;
  margin: 10px 0 0;
}

/* ---- the charts: flat marks, hairline grid, the device's pointer and arrow keys ---- */
.hub .rv-chart {
  min-height: 132px;
}

.hub .rv-chart[data-chart='signups'],
.hub .rv-chart[data-chart='visits'] {
  min-height: 236px;
}

.hub .rv-svg {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  touch-action: pan-y;
}

.hub .rv-svg:focus {
  outline: none;
}

.hub .rv-svg:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.hub .rv-grid {
  stroke: var(--line);
}

.hub .rv-zero,
.hub .rv-event {
  stroke: var(--line-strong);
}

.hub .rv-tick {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hub .rv-event-name {
  fill: var(--ink-2);
  font-weight: 500;
}

.hub .rv-a {
  fill: var(--rv-a);
}

.hub .rv-b {
  fill: var(--rv-b);
}

.hub .rv-done {
  fill: var(--rv-done);
}

.hub .rv-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub .rv-line-a {
  stroke: var(--rv-a);
}

.hub .rv-line-b {
  stroke: var(--rv-b);
  stroke-dasharray: 5 4;
}

.hub .rv-dot {
  stroke: var(--card);
  stroke-width: 2;
}

.hub .rv-dot-a {
  fill: var(--rv-a);
}

.hub .rv-dot-b {
  fill: var(--rv-b);
}

.hub .rv-hit {
  fill: transparent;
}

.hub .rv-hit:hover,
.hub .rv-hit.on {
  fill: rgba(15, 17, 19, 0.08);
}

.hub .rv-day + .rv-day {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hub .rv-day figcaption {
  justify-content: flex-start;
  font-size: 15px;
}

/* ---- nothing yet: a dashed holder that says what will stand in it, and when ---- */
.hub .rv-empty {
  max-width: 62ch;
  margin: 0;
  padding: 16px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  text-wrap: pretty;
}

.hub .rv-empty code {
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

/* ---- the same numbers as a table, under each chart ---- */
.hub .rv-nums {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hub .rv-nums summary {
  width: fit-content;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.hub .rv-nums summary:focus-visible,
.hub .rv-scroll:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.hub .rv-scroll {
  max-width: 520px;
  max-height: 322px;
  margin-top: 14px;
  overflow: auto;
  border-radius: 3px;
}

/* ---- from a visit to a sign-up: three bars on one scale ---- */
.hub .rv-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub .rv-steps li {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) minmax(4ch, auto);
  align-items: center;
  gap: 2px 16px;
}

.hub .rv-step-bar {
  display: block;
  height: 16px;
}

.hub .rv-step-bar i {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--rv-a);
}

.hub .rv-step-n {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hub .rv-step-under {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 14px;
}

/* ---- tables with a thin bar: ways in, sessions ---- */
.hub .rv-table td {
  vertical-align: top;
}

.hub .rv-table th {
  white-space: nowrap;
}

.hub .rv-table .rv-barcell {
  width: 22%;
  min-width: 110px;
  padding-top: 19px;
}

.hub .rv-meter {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hub .rv-meter i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--rv-a);
}

.hub .rv-full {
  margin-left: 4px;
  padding: 1px 7px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.hub .rv-nolimit {
  color: var(--muted);
}

/* ---- the report page (report.html): the event's sign, the dashboard, one line at the foot ---- */
.hub.report-page .event-sign-in {
  padding-top: 30px;
}

.hub.report-page main.wrap {
  padding-top: 24px;
  padding-bottom: 20px;
}

.hub.report-page .report-foot {
  padding: 4px 24px 44px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.hub.report-page .report-foot p {
  margin: 0;
}

/* ---- the console: AI help, company by company ---- */
.hub .ai-table td {
  vertical-align: middle;
}

.hub .ai-table label.tick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  cursor: pointer;
}

.hub .ai-table label.tick input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.hub .ai-cap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub .ai-money {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hub .ai-money > span {
  position: absolute;
  left: 11px;
  color: var(--muted);
  pointer-events: none;
}

.hub .ai-money input {
  width: 96px;
  height: 36px;
  padding: 0 10px 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.hub .ai-money input:hover {
  border-color: var(--ink);
}

.hub .ai-money input:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.hub .ai-used {
  min-width: 200px;
  font-variant-numeric: tabular-nums;
}

.hub .ai-spent {
  display: block;
}

.hub .ai-meter {
  display: block;
  width: 168px;
  max-width: 100%;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hub .ai-meter i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
}

.hub .ai-state {
  display: block;
  max-width: 34ch;
  margin-top: 6px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 500;
}

/* ---- Admin: the two links of a Counts pass (the venue program's look) ---- */
.passlinks {
  display: grid;
  gap: 14px;
  margin: 12px 0;
}

label.passlink {
  display: grid;
  gap: 6px;
}

label.passlink span {
  color: var(--ink-2);
  font-size: 14px;
}

/* ---- narrower screens ---- */
/* A table wants the whole width sooner than a chart does: its heading goes above it. */
@media (max-width: 1100px) {
  .hub .sec.rv-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hub .sec.rv-wide .sec-head p {
    max-width: 68ch;
  }
}

@media (max-width: 1000px) {
  .hub .rv-heads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hub .rv-top {
    padding: 24px 24px 20px;
  }

  .hub .ai-money input {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .hub .rv-top {
    padding: 20px 18px 18px;
  }

  .hub .rv-heads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .hub .rv-chart[data-chart='signups'],
  .hub .rv-chart[data-chart='visits'] {
    min-height: 200px;
  }

  .hub .rv-steps li {
    grid-template-columns: minmax(0, 1fr) minmax(4ch, auto);
  }

  .hub .rv-step-name,
  .hub .rv-step-under {
    grid-column: 1 / -1;
  }

  /* A table is a list here: the bar takes a line of its own under the figure it draws. */
  .hub table.rows.rv-table td.rv-barcell {
    flex-basis: 100%;
    min-width: 0;
    padding: 0;
  }

  .hub .ai-table td {
    flex-basis: 100%;
  }

  .hub .ai-table td[data-label]::before {
    display: inline-block;
    min-width: 9.5em;
  }

  .hub .ai-table td.ai-used::before {
    display: block;
    margin-bottom: 2px;
  }

  .hub .ai-table td:has(.ai-cap),
  .hub .ai-table td:has(.tick) {
    display: flex;
    align-items: center;
  }

  .hub.report-page main.wrap {
    padding-top: 16px;
  }
}

@media (pointer: coarse) {
  .hub .ai-table label.tick,
  .hub .ai-money input,
  .hub .ai-cap .btn {
    min-height: 44px;
  }

  .hub .rv-nums summary {
    padding: 8px 0;
  }
}

/* A Windows contrast theme: marks take the theme's own text colour, and keep their shapes. */
@media (forced-colors: active) {
  .hub .rv-a,
  .hub .rv-done,
  .hub .rv-dot-a {
    fill: CanvasText;
  }

  .hub .rv-b,
  .hub .rv-dot-b {
    fill: GrayText;
  }

  .hub .rv-line-a {
    stroke: CanvasText;
  }

  .hub .rv-line-b,
  .hub .rv-grid,
  .hub .rv-zero,
  .hub .rv-event {
    stroke: GrayText;
  }

  .hub .rv-tick {
    fill: CanvasText;
  }

  .hub .rv-hit:hover,
  .hub .rv-hit.on {
    fill: Highlight;
    fill-opacity: 0.35;
  }

  .hub .rv-meter i,
  .hub .rv-step-bar i,
  .hub .rv-sw,
  .hub .ai-meter i {
    background: CanvasText;
    forced-color-adjust: none;
  }
}

/* On paper a report is the numbers: the buttons and downloads stay behind. */
@media print {
  .hub.report-page .sign-acts,
  .hub .rv-dl,
  .hub .rv-stamp {
    display: none;
  }

  .hub .rv-sec {
    break-inside: avoid;
  }
}

/* ==== AI help (Phase 5) ====
   Writing help and "Design it for me" on the hosted screens (js/hub/ai.js, js/hub/event-site.js).
   Still Behind the Desk: the kit as it is, and no colour of its own. A draft is not the organiser's
   text until they take it, so it lies on a slip of soft stock with a dashed edge (in this kit dashes
   mean "waiting"), apart from their fields. A placeholder Claude left for them is marked in care
   amber, the kit's "take care". Recorded in DESIGN.md under "AI help". */

.hub .ai-slot {
  min-width: 0;
  max-width: 520px;
}

.hub .ai-slot[hidden] {
  display: none;
}

/* In an open section of the site builder the help stands between the hint and the fields. */
.hub .srow-body > .ai-slot {
  margin: 0 0 18px;
}

/* The slip: what Claude is asked, what it is doing, what it wrote. */
.hub .ai-box {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.hub .ai-box:focus {
  outline: none;
}

.hub .ai-box:focus-visible,
.hub .ai-posts:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.hub .ai-box > p,
.hub .ai-posts > p {
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}

.hub .ai-box > .quiet,
.hub .ai-posts > .quiet {
  font-size: 14px;
}

.hub .ai-box .buttons,
.hub .ai-posts > .buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hub .ai-box label,
.hub .ai-post label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.hub .ai-box textarea,
.hub .ai-post textarea {
  width: 100%;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.16s ease-out;
}

.hub .ai-box textarea:hover,
.hub .ai-post textarea:hover {
  border-color: var(--ink);
}

.hub .ai-box textarea:focus-visible,
.hub .ai-post textarea:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--blue-bright);
  outline-offset: 1px;
}

.hub .ai-box .note {
  margin: 0;
}

/* A draft, or Claude's note on a design: waiting to be taken or left. */
.hub .ai-draft {
  border: 1px dashed var(--line-strong);
}

.hub .ai-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.hub .ai-tag b {
  font-size: 14px;
  font-weight: 700;
}

.hub .ai-tag span {
  color: var(--muted);
  font-size: 14px;
}

/* The drafted words themselves: ruled off from the slip's own words, never boxed. */
.hub .ai-text {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hub .ai-text > * {
  max-width: 62ch;
  margin: 0 0 10px;
}

.hub .ai-text > :last-child {
  margin-bottom: 0;
}

.hub .ai-text ul {
  padding-left: 20px;
}

.hub .ai-text .ai-h {
  font-weight: 700;
}

/* A named line of a draft: a subject, a heading, the words on a button. */
.hub .ai-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}

.hub .ai-line span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.hub .ai-line em,
.hub .ai-line i {
  font-style: normal;
}

.hub .ai-line i {
  color: var(--muted);
  font-size: 14px;
}

/* Something Claude left for the organiser to fill in, such as [venue address]. */
.hub mark.hole {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--amber-bg);
  color: var(--amber);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.hub .ai-care {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

/* Working: one short bar that runs to and fro. The only thing here that moves. */
.hub .ai-working {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.hub .ai-run {
  position: relative;
  flex: none;
  overflow: hidden;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.hub .ai-run::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  border-radius: 2px;
  background: var(--ink);
  content: '';
  animation: ai-run 0.9s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}

@keyframes ai-run {
  to {
    transform: translateX(24px);
  }
}

/* What a proposed design chose, as a ruled list of facts. */
.hub .ai-facts {
  display: grid;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.hub .ai-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.hub .ai-facts dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.hub .ai-facts dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-width: 0;
  margin: 0;
}

.hub .ai-colour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* A proposed colour, as the branding form shows one: a small swatch with its hex beside it. */
.hub .ai-chip {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--c, var(--soft));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.hub .ai-colour code {
  font: 400 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Social posts: each a ruled part, with its length said beside its name. */
.hub .ai-posts {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.hub .ai-posts:focus {
  outline: none;
}

.hub .ai-posts .part:first-child {
  padding-top: 0;
  border-top: 0;
}

.hub .ai-post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.hub .ai-post-head b {
  font-weight: 700;
}

.hub .ai-count {
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.hub .ai-count.over {
  color: var(--red);
  font-weight: 500;
}

@media (max-width: 860px) {
  .hub .ai-box textarea,
  .hub .ai-post textarea {
    font-size: 16px; /* so a phone does not zoom in */
  }
}

@media (max-width: 520px) {
  .hub .ai-box {
    padding: 12px 14px 14px;
  }

  .hub .ai-line,
  .hub .ai-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub .ai-run::after {
    animation: none;
  }
}

@media (forced-colors: active) {
  .hub .ai-run::after {
    background: CanvasText;
  }

  .hub .ai-chip {
    forced-color-adjust: none;
  }

  .hub mark.hole {
    outline: 1px solid CanvasText;
  }
}

/* ==== Pairing a venue PC (Phase 6) ==== */
/* The code an organiser reads off the screen and types at the venue: large, spaced, unmistakable. */
.pair-code {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--rule, #dadde2);
  border-radius: 8px;
}

.pair-code .pair-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.pair-code .pair-value {
  margin: 6px 0 12px;
}

.pair-code .pair-value code {
  font: 700 30px/1.15 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
}

.pair-code .pair-steps {
  margin: 0 0 10px;
  padding-left: 1.3em;
}

.pair-code .pair-steps li + li {
  margin-top: 4px;
}

details.by-hand {
  margin-top: 16px;
}

details.by-hand > summary {
  cursor: pointer;
  width: fit-content;
}

/* ==== Badge templates (Phase 6) ==== */

/*
  The Badge tab of the Admin page: choosing a template, its settings, and a large preview. It keeps
  the venue screens' look (white cards on grey, pills, blue for what is chosen); nothing here uses
  the hosted screens' rules. Every picture is the badge itself, drawn at the printer's resolution,
  so a template is chosen by looking at it.
*/

.tpl-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.tpl {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
  transition:
    background-color 0.16s ease-out,
    border-color 0.16s ease-out;
}

.tpl:hover {
  border-color: var(--line-strong);
}

/* Chosen: the blue of a selected row, with an edge that does not move the picture. */
.tpl.on {
  border-color: var(--blue-bright);
  background: var(--sel);
  box-shadow: inset 0 0 0 1px var(--blue-bright);
}

.tpl:focus-within {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.tpl input:focus-visible {
  outline: none; /* the whole card carries the ring */
}

.tpl canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.tpl-name {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}

.tpl-name input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
}

.tpl-about {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}

.tpl.on .tpl-about {
  color: var(--ink-2); /* 10 to 1 on the selection blue; the quiet grey would be 5.6 */
}

/* The settings beside the badge they change. */
.badge-bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 24px;
  align-items: start;
  margin-bottom: 8px;
}

.badge-opts .grid-form {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 14px;
}

.badge-facts .note {
  margin: 0 0 10px;
  max-width: 75ch;
}

.badge-save {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0 0;
}

.badge-save .btn {
  min-width: 96px;
}

/* "Not saved yet": the take-care colour, because the desks are still printing the saved badge. */
#bState {
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
}

.badge-live label {
  display: block;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
}

.badge-live select {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.badge-panel > h3 {
  margin-top: 26px;
}

@media (max-width: 1000px) {
  .tpl-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .badge-bench {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
  }
}

@media (max-width: 760px) {
  /* One column: the badge first, so a change made below is seen without scrolling far. */
  .badge-bench {
    grid-template-columns: minmax(0, 1fr);
  }

  .badge-live {
    order: -1;
  }
}

@media (max-width: 520px) {
  /* A list: the picture on the left, what it is on the right. */
  .tpl-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .tpl {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 12px;
    padding: 10px;
  }

  .tpl canvas {
    grid-row: 1 / 3;
    align-self: start;
  }

  .tpl-name {
    margin-top: 0;
  }
}

@media (pointer: coarse) {
  .tpl-name input {
    width: 20px;
    height: 20px;
  }
}

@media (forced-colors: active) {
  .tpl.on {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpl {
    transition: none;
  }
}

/* The list of people a preview can be drawn for looks like every other box on this page. */
.badge-live select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  min-width: 0;
  max-width: 100%;
}
