/*
 * Boothless Hub.
 *
 * The palette and type scale are the Companion Guide's, unchanged. The Hub is
 * denser than the guest surfaces — it is where someone works during an event —
 * but it keeps the same 44px touch floor, because it is used on a tablet at the
 * door as often as on a desk.
 */

:root {
  --ink: #181F2A;
  --sec: #657080;
  --sur: #FFFFFF;
  --can: #F7F9FA;
  --div: #DFE6EB;
  --teal: #0CB4BD;
  --deep: #04848F;
  --good: #22C55E;
  --warn: #F5A623;
  --bad: #EF4444;

  --r-card: 18px;
  --r-btn: 14px;
  --tap: 44px;

  --shadow: 0 1px 2px rgba(24, 31, 42, .05), 0 8px 24px rgba(24, 31, 42, .04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9EDF2;
    --sec: #9AA6B4;
    --sur: #151A22;
    --can: #0E1218;
    --div: #252D38;
    --teal: #17C7D0;
    --deep: #6FE3E9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

@font-face {
  font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}

* { box-sizing: border-box; }

/* `hidden` has to win over a display rule, or an element told to hide stays put.
   Several things here are display:grid or display:flex and also hideable. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--can);
  color: var(--ink);
  font: 400 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto;
  background: var(--sur); border: 1px solid var(--div); border-radius: 10px; padding: 10px 14px; z-index: 20;
}

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---- shell ---- */

.topbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--sur); border-bottom: 1px solid var(--div);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 4px; margin-right: auto; flex-wrap: wrap; }
.topbar nav a {
  padding: 10px 13px; min-height: var(--tap); display: inline-flex; align-items: center;
  border-radius: 11px; color: var(--sec); font-weight: 500;
}
.topbar nav a:hover { background: var(--can); color: var(--ink); text-decoration: none; }
.topbar nav a[aria-current="page"] { background: var(--can); color: var(--ink); font-weight: 600; }
.who { display: flex; align-items: center; gap: 12px; color: var(--sec); font-size: 14px; }

main { padding: 26px 20px 60px; }
.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }

.footer {
  max-width: 1080px; margin: 0 auto; padding: 0 20px 40px;
  color: var(--sec); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap;
}
.footer .dot { opacity: .5; }

/* ---- type ---- */

h1 { font-size: 28px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
p { margin: 0 0 10px; }
.lede { color: var(--sec); max-width: 62ch; }
.muted { color: var(--sec); }
.small { font-size: 14px; }
.hint { color: var(--sec); font-size: 13px; margin: 4px 0 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.breakable { word-break: break-all; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- surfaces ---- */

.card {
  background: var(--sur); border: 1px solid var(--div); border-radius: var(--r-card);
  padding: 20px; box-shadow: var(--shadow);
}
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.card.event { display: block; color: inherit; }
.card.event:hover { text-decoration: none; border-color: var(--teal); }
.card.event h2 { margin: 8px 0 4px; }

.empty {
  background: var(--sur); border: 1px dashed var(--div); border-radius: var(--r-card);
  padding: 28px 20px; text-align: center; color: var(--sec);
}
.empty .button { margin-top: 10px; }

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

button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: var(--r-btn);
  background: var(--teal); color: #fff; font: 600 15px/1 inherit; cursor: pointer;
}
button:hover, .button:hover { background: var(--deep); text-decoration: none; color: #fff; }
.button.small, button.small { min-height: var(--tap); padding: 10px 14px; font-size: 14px; }
.ghost, button.ghost, .button.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--div);
}
.ghost:hover, button.ghost:hover { background: var(--can); color: var(--ink); }
button.danger, .button.danger, .linkish.danger { color: var(--bad); }
button.ghost.danger:hover { border-color: var(--bad); background: transparent; }

.linkish {
  background: none; border: 0; padding: 8px 2px; min-height: var(--tap);
  color: var(--deep); font: 500 14px/1 inherit; cursor: pointer;
}
.linkish:hover { background: none; text-decoration: underline; color: var(--deep); }

label { display: block; margin: 0 0 14px; font-weight: 500; font-size: 14px; }
label input, label select, input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="number"], select {
  display: block; width: 100%; margin-top: 6px; min-height: var(--tap);
  padding: 11px 12px; border: 1px solid var(--div); border-radius: 12px;
  background: var(--sur); color: var(--ink); font: 400 15px/1.3 inherit;
}
label.switch { display: flex; align-items: center; gap: 10px; margin: 0; }
label.switch input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--teal); }
label.switch span { font-weight: 500; }

.inline-form { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.inline-form input { margin-top: 0; width: auto; flex: 1 1 200px; }
.inline-form.wide input[name="name"] { flex: 3 1 320px; }
.row-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }

.settings details { border-top: 1px solid var(--div); padding: 4px 0; }
.settings summary {
  font-weight: 650; font-size: 15px; padding: 14px 4px; cursor: pointer;
  min-height: var(--tap); display: flex; align-items: center; gap: 9px; list-style: none;
}
.settings summary::-webkit-details-marker { display: none; }
/* A collapsed group has to look like it opens, so the marker is drawn rather
   than left to the browser's default, which a flex summary hides. */
.settings summary::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 2px solid var(--sec); border-bottom: 2px solid var(--sec);
  transform: rotate(-45deg); transition: transform .16s ease;
}
.settings details[open] > summary::before { transform: rotate(45deg); }
.settings summary:hover { color: var(--deep); }
.settings summary:hover::before { border-color: var(--deep); }
.setting-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4px 28px; padding: 4px 4px 18px; }
.settings .setting { margin-bottom: 16px; }
.settings .setting label { margin-bottom: 0; }
.settings > button { margin-top: 18px; }

/* ---- data ---- */

.table { width: 100%; border-collapse: collapse; background: var(--sur);
  border: 1px solid var(--div); border-radius: var(--r-card); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--div); }
.table th { font-size: 13px; font-weight: 600; color: var(--sec); background: var(--can); }
.table tr:last-child td { border-bottom: 0; }

.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--div); font-size: 15px; }
.rows li:last-child { border-bottom: 0; }

.log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.log li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--div); align-items: baseline; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--sec); min-width: 84px; font-size: 13px; }
.action { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--can); color: var(--sec);
  border: 1px solid var(--div);
}
.chip.live { background: rgba(34, 197, 94, .12); color: #15803D; border-color: rgba(34, 197, 94, .3); }
.chip.paused, .chip.warn { background: rgba(245, 166, 35, .13); color: #92610B; border-color: rgba(245, 166, 35, .35); }
.chip.draft { background: var(--can); }
.chip.closed, .chip.archived { background: var(--can); }
@media (prefers-color-scheme: dark) {
  .chip.live { color: #6EE7A8; }
  .chip.paused, .chip.warn { color: #FBC46A; }
}

/* ---- alerts ---- */

.alert {
  display: flex; flex-direction: column; gap: 4px;
  border-radius: var(--r-card); padding: 14px 16px; border: 1px solid var(--div); background: var(--sur);
}
.alert strong { font-weight: 650; }
.alert.error { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .35); }
.alert.warn { background: rgba(245, 166, 35, .1); border-color: rgba(245, 166, 35, .35); }
.alert.good { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); }

/* Status is never colour alone: every check carries a mark and a screen-reader word. */
.checks .mark { width: 30px; font-size: 17px; font-weight: 700; }
.state-ok .mark { color: var(--good); }
.state-warn .mark { color: var(--warn); }
.state-error .mark { color: var(--bad); }

/* ---- layouts ---- */

/*
 * One card per layout, in the order guests will see them.
 *
 * The three columns are fixed: a sketch of the same size whatever shape it
 * holds, the name, and four action slots. Nothing here changes width from row
 * to row, because a list whose columns move is the definition of a messy list.
 *
 * The actions are quiet by default. They are all reversible except one, and a
 * row of four identical solid buttons gives "remove" the same weight as "move
 * down" — so they read as plain glyphs until pointed at, and remove is the only
 * one that turns a colour.
 */
/*
 * Capped, not full width. On a wide monitor a row that stretches the whole card
 * leaves the name at one end and its controls at the other, with a field of
 * nothing between them — and a control you have to travel to stops feeling
 * attached to the thing it acts on.
 */
.layouts {
  list-style: none; margin: 14px 0 18px; padding: 0;
  max-width: 660px;
  display: flex; flex-direction: column; gap: 6px;
}
.layouts li {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  grid-template-areas: "sketch meta actions";
  align-items: center; gap: 14px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--div); border-radius: 12px; background: var(--sur);
}
.layout-sketch { grid-area: sketch; }
.layout-meta { grid-area: meta; }
.layout-actions { grid-area: actions; }

/*
 * On a phone the four action slots and the sketch leave the name about a
 * hundred pixels, and "Solo Landscape v6" comes out as four stacked words. The
 * actions drop to their own line instead, which costs a row of height and
 * gives the name the width it needs.
 */
@media (max-width: 620px) {
  .layouts li {
    grid-template-columns: 66px minmax(0, 1fr);
    grid-template-areas:
      "sketch meta"
      "sketch actions";
    row-gap: 4px; column-gap: 12px;
    align-items: center;
  }
  .layout-actions { justify-self: start; }
}
.layouts li.broken { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .05); }

.layout-sketch { display: grid; place-items: center; color: var(--teal); align-self: center; }
.layout-sketch .sketch { display: block; }

.layout-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.layout-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.layout-name strong { font-size: 15px; font-weight: 600; }

.badge {
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(12, 180, 189, .13); color: var(--deep);
  white-space: nowrap;
}
.badge.bad { background: rgba(239, 68, 68, .14); color: #B91C1C; }

/* Four equal slots, always. An unavailable action holds its place. */
.layout-actions {
  display: grid; grid-template-columns: repeat(4, 32px); gap: 2px;
  align-items: center;
}
.layout-actions form { display: contents; }
.act-gap { display: block; }

.layout-actions .act {
  width: 32px; height: 32px; min-height: 32px; padding: 0;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1;
  border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--sec);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.layout-actions .act:hover {
  background: var(--can); color: var(--ink); border-color: var(--div);
}
.layout-actions .act.danger:hover {
  background: rgba(239, 68, 68, .1); color: #B91C1C; border-color: rgba(239, 68, 68, .35);
}

/* Keeps the card reading as one column, not a wide paragraph over a narrow list. */
.measure { max-width: 660px; }

/* Adding one: a single row that lines up with the list above it. */
.layout-add { max-width: 660px; }

.add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
}
.add-row select, .add-row input { margin-top: 0; width: 100%; min-width: 0; }
.add-row button { white-space: nowrap; }

.add-aside { display: flex; justify-content: flex-end; margin-top: 2px; }
.add-aside .linkish { padding: 8px 2px; font-size: 13px; }

@media (max-width: 620px) {
  .add-row { grid-template-columns: 1fr; }
  .add-aside { justify-content: flex-start; }
}

/* ---- event numbers ---- */

.stat-row { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 4px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--sec); }
.stat.warn b { color: var(--warn); }

.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; }
.photo-strip img {
  height: 108px; width: auto; border-radius: 8px; border: 1px solid var(--div);
  background: var(--can); flex: none;
}
.photo-strip img.pending { outline: 2px solid var(--warn); outline-offset: -2px; }

/* ---- specifics ---- */

.qr-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.qr { border: 1px solid var(--div); border-radius: 12px; background: #fff; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.preview { width: 100%; max-width: 320px; border-radius: 12px; border: 1px solid var(--div); display: block; }

/*
 * The print queue.
 *
 * A table, because this is genuinely tabular — the same five facts about each
 * of a list of jobs — and because an operator scans a column. It scrolls
 * sideways inside its own card on a narrow screen rather than making the page
 * scroll, since the actions live in the last column and must stay reachable.
 */
/* Wide content scrolls inside its own card; the page itself never does. */
.scroll-x { overflow-x: auto; }

.queue { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.queue th {
  text-align: left; padding: 0 12px 8px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--sec);
  border-bottom: 1px solid var(--div);
}
.queue td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--div); vertical-align: baseline; }
.queue tr:last-child td { border-bottom: 0; }
.queue time { color: var(--sec); white-space: nowrap; }
.queue .row-actions { margin: 0; display: flex; gap: 12px; justify-content: flex-end; }
.queue .inline-form { margin-top: 0; }

/* The state, said in a word and coloured by what it means for the operator. */
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--can); border: 1px solid var(--div); color: var(--sec);
}
.pill.state-queued, .pill.state-assigned, .pill.state-sending,
.pill.state-received, .pill.state-printing { color: var(--ink); }
.pill.state-completed { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--div)); }
.pill.state-failed { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--div)); }
.pill.state-attention { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--div)); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 9px 13px; min-height: var(--tap); display: inline-flex; align-items: center;
  border-radius: 11px; color: var(--sec); font-size: 14px; font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--sur); color: var(--ink); border: 1px solid var(--div); }
.tabs.subtle a { min-height: 36px; padding: 6px 11px; font-size: 13px; }

.loglines { list-style: none; margin: 0; padding: 0; background: var(--sur);
  border: 1px solid var(--div); border-radius: var(--r-card); overflow: hidden; }
.loglines li { display: grid; grid-template-columns: 170px 84px 1fr; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--div); font-size: 13px; align-items: baseline; }
.loglines li:last-child { border-bottom: 0; }
.loglines time { color: var(--sec); font-family: ui-monospace, monospace; }
.loglines .lvl { font-weight: 600; font-size: 11px; letter-spacing: .06em; }
.lvl-error .lvl, .lvl-critical .lvl { color: var(--bad); }
.lvl-warning .lvl { color: var(--warn); }
.lvl-info .lvl, .lvl-debug .lvl { color: var(--sec); }
.loglines .ctx { grid-column: 3; color: var(--sec); }

.parity { display: flex; flex-direction: column; gap: 12px; }
.parity .fixture { background: var(--sur); border: 1px solid var(--div); border-radius: 14px; padding: 14px 16px; }
.parity .fixture.fail { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .05); }
.parity .fixture h3 { margin: 0 0 4px; font-size: 15px; }
.parity pre { margin: 8px 0 0; padding: 10px; background: var(--can); border-radius: 10px;
  overflow-x: auto; font-size: 12px; }

/* ---- standalone pages ---- */

body.plain { background: var(--can); display: grid; place-items: center; min-height: 100vh; }
.centred { text-align: center; padding: 40px 20px; max-width: 560px; }
.centred.narrow { max-width: 400px; width: 100%; }
.centred .mark { margin-bottom: 8px; }
.centred .code { font-size: 13px; letter-spacing: .16em; color: var(--sec); margin: 0; font-weight: 600; }
.centred h1 { margin: 6px 0 8px; }
.centred .card { text-align: left; margin-top: 22px; }
.centred .card button { width: 100%; margin-top: 6px; }

@media (max-width: 720px) {
  .columns { grid-template-columns: 1fr; }
  .loglines li { grid-template-columns: 1fr; gap: 2px; }
  .loglines .ctx { grid-column: 1; }
  main { padding: 18px 14px 48px; }
  .topbar { gap: 12px; padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ================================================================== */
/* Photos — the moderation browser                                     */
/* ================================================================== */

/*
 * Built for repetition. Someone moderating an event makes the same decision
 * two hundred times, so the grid is dense, the targets are large, and the
 * action bar appears only when there is a selection to act on — a permanent
 * toolbar of buttons that do nothing yet is a permanent distraction.
 */

.tabs { display: flex; gap: 4px; margin: 4px 0 18px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--div);
  color: var(--sec); text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.tab:hover { background: var(--can); color: var(--ink); }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--sur); }
.tab-count {
  font-variant-numeric: tabular-nums;
  background: rgba(127, 140, 158, .18); color: inherit;
  border-radius: 999px; padding: 1px 8px; font-size: 12px;
}
.tab.on .tab-count { background: rgba(255, 255, 255, .22); }

.photo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.photo-card {
  position: relative; display: block;
  border-radius: 10px; overflow: hidden;
  border: 2px solid transparent;
  background: var(--div);
  aspect-ratio: 1; cursor: pointer;
}
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-card.picked { border-color: var(--teal); }
.photo-card.picked img { opacity: .72; }

/* The checkbox is the card. A tick in the corner shows the state, and the
   whole tile is the target — a 16px box is not a tablet target. */
.photo-card .pick { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; margin: 0; z-index: 2; cursor: pointer; }

.photo-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 16px 8px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  color: #fff; font-size: 11px; font-weight: 500;
}

/* Never colour alone: the dot has a shape and the tab it sits under has a name. */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.approved { background: var(--good); }
.dot.pending  { background: var(--warn); }
.dot.rejected { background: var(--bad); }
.dot.hidden   { background: var(--sec); }

.peek {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 32px; height: 32px; min-height: 32px; padding: 0;
  display: grid; place-items: center;
  border-radius: 8px; border: 0;
  background: rgba(11, 14, 19, .55); color: #fff;
  font-size: 14px; cursor: pointer;
}

.bulk-bar {
  position: sticky; top: 8px; z-index: 5;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px;
  border-radius: 12px;
  background: var(--ink); color: var(--sur);
  box-shadow: 0 6px 24px rgba(24, 31, 42, .22);
}
.bulk-count { font-weight: 600; font-size: 14px; }
.bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.bulk-bar button {
  min-height: 38px; padding: 9px 15px; font-size: 14px; border-radius: 9px;
  background: rgba(255, 255, 255, .14); color: var(--sur); border: 0;
}
.bulk-bar button:hover { background: rgba(255, 255, 255, .24); }
.bulk-bar button.danger { background: rgba(239, 68, 68, .82); }
.bulk-bar button.danger:hover { background: #DC2626; }
.bulk-bar .linkish { color: rgba(255, 255, 255, .75); }

.more { margin: 20px 0; text-align: center; }

.empty h2 { margin: 0 0 6px; }

.archives { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 660px; }
.archives li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--div); border-radius: 10px; }

/* ---- the moderation lightbox ---- */

body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8, 10, 14, .96);
  display: grid; grid-template-rows: 1fr auto;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
}
.lightbox img { grid-row: 1; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; border-radius: 8px; }

.lightbox-bar {
  grid-row: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; color: rgba(255, 255, 255, .8);
}
.lightbox-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.lightbox-bar button {
  min-height: 44px; padding: 11px 18px; border-radius: 10px; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px;
}
.lightbox-bar button:hover { background: rgba(255, 255, 255, .24); }
.lightbox-bar .linkish { color: rgba(255, 255, 255, .75); background: none; }
.lightbox-bar kbd {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3);
  font: 600 11px/1.5 ui-monospace, monospace; opacity: .8;
}

.lightbox-step {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 72px; display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 30px;
}
.lightbox-step.prev { left: 8px; }
.lightbox-step.next { right: 8px; }

/* ---- the gallery header, edited on the event page ---- */

.banner-form { display: flex; flex-direction: column; gap: 16px; max-width: 660px; }

/*
 * A preview that is the real thing at a smaller size, rather than a description
 * of it. Choosing a picture for a header is a visual decision and a form row
 * reading "banner.jpg" does not help anyone make it.
 */
.banner-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--div);
  background: var(--can);
  min-height: 120px;
  display: grid;
  place-items: center;
}
.banner-preview img { display: block; width: 100%; max-height: 220px; object-fit: cover; object-position: center 35%; }

.banner-preview .banner-words {
  font-weight: 700; font-size: clamp(18px, 3vw, 26px); text-align: center; padding: 12px 16px;
}
.banner-preview[data-style="overlay"] .banner-words {
  position: absolute; inset: 0;
  display: grid; place-items: end center;
  background: linear-gradient(transparent 30%, rgba(6, 8, 12, .68));
  color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}
.banner-preview.empty { border-style: dashed; }
.banner-preview.empty img { display: none; }
.banner-preview[data-style="plain"] img { opacity: .35; }

/* "Just the picture" shows exactly that, so the preview does too. */
.banner-preview[data-style="image"] .banner-words { display: none; }
.banner-preview[data-style="image"].empty .banner-words { display: block; opacity: .5; }

.banner-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.banner-controls label { margin: 0; }
.banner-controls input[type="file"] { padding: 9px; font-size: 14px; }

/* Two fields side by side while there is room, stacked on a laptop. */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.field-grid label { margin: 0; }

/* The live address, with the copy button on the same line as the URL it copies. */
.address-now {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px;
}
.address-now .copy { font-family: inherit; white-space: nowrap; }
