/* The shell, and the handful of components the first pages need. */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

code, .mono { font-family: var(--mono); font-size: .92em; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
  padding: 10px 24px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
/* The Merchants admin's mark: a rounded square in the accent's gradient, with the letters in white. */
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  /* The flat colour under the gradient is what a contrast check reads, and it is the gradient's own
     start, so the white letters are measured against what they are actually drawn on. */
  background: var(--accent-grad-from) linear-gradient(135deg, var(--accent-grad-from), var(--accent-grad-to));
  border-radius: 9px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.brand-sub { font-size: 11px; font-weight: 500; color: var(--ink-3); }

/* Every icon is drawn by assets/js/icons.js in the text's own colour; this is only its size. */
.icon { display: block; flex: none; width: 16px; height: 16px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.who-mail { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.who-rank {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
}

.demo-banner {
  margin: 0;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ------------------------------------------------------------------ frame */

.frame { display: flex; align-items: flex-start; gap: 0; }

.rail {
  position: sticky;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  flex: none;
  width: var(--rail-w);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 12px 10px 20px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.rail-group {
  margin: 14px 10px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rail-group:first-child { margin-top: 0; }

.rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 2px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  color: var(--ink-2);
  background: none;
  cursor: pointer;
}
.rail-item:hover { background: var(--panel-2); color: var(--ink); }
.rail-item .icon { width: 18px; height: 18px; opacity: .9; }
.rail-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
/* The one count on the rail. Grey while the queue is somebody else's problem, and the escalation
   colour only when some of it is waiting on whoever is reading. */
.rail-count {
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: var(--ink-3);
  background: var(--panel-2);
  border-radius: 9px;
}
/* In the accent, as the Merchants admin's own nav counts are: a figure to act on, not an alarm. */
.rail-count.esc { color: var(--accent-ink); background: var(--accent); }

/* The top bar's approvals counter, which is only drawn when something waits on this admin. */
.bell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  cursor: pointer;
}
.bell:hover { border-color: var(--accent); }
.bell .icon { width: 14px; height: 14px; }
.bell b { font-family: var(--mono); font-weight: 600; }

/* The same chip for the other side of the queue: decisions on your own requests that you have not
   read. A different colour because it is a different question — not "who is waiting on you" but
   "what happened to what you asked for" — and the two sit side by side. */
.bell.mine { color: var(--ink-2); background: var(--panel-2); border-color: var(--line-strong); }

.main { flex: 1; min-width: 0; max-width: 1440px; padding: 24px 24px 48px; }

.page-head { max-width: 72ch; }
.crumb { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.page-title { margin: 2px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
.page-lead { margin: 0 0 4px; color: var(--ink-2); }
.page-body { margin-top: 18px; }

/* The line saying what this admin cannot do here. It borrows the escalation colour rather than the
   warning one because nothing is wrong: a locked control is the model working. */
.access {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  color: var(--ink-2);
  background: var(--esc-soft);
  border: 1px solid color-mix(in srgb, var(--esc) 25%, transparent);
  border-radius: var(--radius);
}
.access-mark { color: var(--esc); font-size: 12px; line-height: 1.6; }
.access-line { margin: 0; font-size: 13px; }

/* And the line saying what nobody can do here yet, which is a different sentence from the one above:
   that one is about this admin, this one is about the panel. Quieter than the access line — outlined
   rather than filled — because it changes nothing about the screen below it, it only stops an
   operator hunting for a button that is not there. */
.gap {
  margin-top: 12px;
  padding: 10px 14px;
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gap-line { margin: 0; font-size: 13px; }
.gap-line strong { color: var(--ink); font-weight: 600; }
.gap-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.gap-list li { margin-top: 3px; }
.loading { color: var(--ink-3); }

@media (max-width: 900px) {
  .frame { display: block; }
  .rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail-group { width: 100%; margin: 6px 0 0; }
  .rail-item { width: auto; margin-bottom: 0; }
  .topbar { padding: 10px 16px; }
  .demo-banner { padding: 8px 16px; }
  .main { padding: 16px 16px 48px; }
}

/* ------------------------------------------------------------------ tiles */

/* Auto-fit rather than a fixed column count: a page with four figures fills its row, and one with
   six does too, instead of leaving a tile stranded on a line of its own. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  font: inherit;
  text-align: left;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.tile.flat { cursor: default; }
.tile:not(.flat):hover { border-color: var(--accent); }
.tile-k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.tile-k .icon { color: var(--ink-3); }
.tile-v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
/* `anywhere` because a tile's foot can be a wallet address, one unbroken word: forty-two characters of
   0x on an EVM network, wider than a tile once Platform wallets draws eight of them. */
.tile-f { margin-top: auto; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
/* A tile's state is a bar inside its left edge, as on the Merchants admin, rather than a thicker
   border: an inset shadow does not change the tile's box, so a row of mixed tiles stays aligned. */
.tile.warn { box-shadow: inset 3px 0 0 var(--warn), var(--shadow-sm); }
/* Both words, on purpose. A pill's tones are ok/warn/crit/escalate and a tile's were warn/bad, so a
   page reaching for the pill vocabulary got a tile with no colour at all and nothing to say it had
   gone wrong. The two names mean the same thing here. */
.tile.bad, .tile.crit { box-shadow: inset 3px 0 0 var(--crit), var(--shadow-sm); }
.tile.escalate { box-shadow: inset 3px 0 0 var(--esc), var(--shadow-sm); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn.primary { font-weight: 600; color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { color: var(--accent-ink); background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 45%, transparent); }
.btn.danger:hover:not(:disabled) { color: var(--crit); background: var(--crit-soft); border-color: var(--crit); }
.btn.escalate { color: var(--esc); border-color: color-mix(in srgb, var(--esc) 45%, transparent); }
.btn.escalate:hover:not(:disabled), .btn.escalates:hover:not(:disabled) { color: var(--esc); background: var(--esc-soft); border-color: var(--esc); }

/* A control above this admin's own limit. It still acts; what it sends is a request. */
.btn.escalates { color: var(--esc); border-color: color-mix(in srgb, var(--esc) 40%, transparent); }
.escalates-mark { font-size: 11px; }

/* A control they cannot use, shown only to an admin who holds denials:view. */
.btn.denied { color: var(--ink-3); border-style: dashed; }

/* A denied control that is *also* the page's primary one, which is three real buttons: Register a
   hold, Complete a deposit and Release for payout. `.denied` overrode the accent ink and `.primary`
   kept the accent fill, so the label was grey on bright green at 1.6:1 — text nobody can read, in
   both themes, made worse again by the .55 opacity every disabled button carries. It loses the fill
   with the rest of it: a control that cannot be pressed is not the one button on the page that
   finishes the job, and the label under the cursor is what says which. */
.btn.primary.denied { color: var(--ink-3); background: var(--panel); border-color: var(--line-strong); }
/* A control that has already sent its action for approval. Dashed like the two above, because it
   cannot be pressed, but in the escalation colour rather than the grey: nothing is refused and
   nothing is broken here — the action is somebody else's to finish. */
.btn.waiting { color: var(--esc); border-style: dashed; border-color: color-mix(in srgb, var(--esc) 40%, transparent); }

/* ------------------------------------------------------------------ notices */

.notice {
  max-width: 72ch;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.notice-title { margin: 0 0 4px; font-size: 15px; }
.notice-line { margin: 0; color: var(--ink-2); }

/* The gate's one job is the gutter, which is `.main`'s own 16px: everything inside it centres and
   sizes itself. It used to set a width and a top margin too, and both were the sign-in card's to set
   — but the class was never on the element, so for the whole build the gate had no gutter at all and
   the card ran edge to edge on a phone. `.gate-note` went the same way and is gone rather than
   revived: nothing has ever rendered a note out here, and a rule for an element nobody draws is a
   rule that reads as a promise. */
.gate { padding: 0 16px; }

/* ------------------------------------------------------------------ dialogs */

.ask {
  width: min(440px, calc(100vw - 32px));
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.ask::backdrop { background: var(--scrim); }
.ask-title { margin: 0 0 6px; font-size: 16px; }
.ask-lead { margin: 0 0 14px; color: var(--ink-2); }
.ask-form { display: flex; flex-direction: column; gap: 12px; }
.ask-field { display: flex; flex-direction: column; gap: 4px; }
.ask-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ask-help { font-size: 12px; color: var(--ink-3); }
.ask-input {
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .12s, box-shadow .12s;
}
/* One focus treatment for every field the panel draws: the accent border and a soft ring, as on the
   Merchants admin. */
.ask-input:focus, .filter-input:focus, .finder-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.ask-input[inputmode="numeric"] { font-family: var(--mono); letter-spacing: .3em; }
/* Prose somebody is proofreading before every customer sees it. `resize: vertical` rather than both,
   because widening it past the dialog is how the buttons end up off screen. */
.ask-textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
/* A record typed by hand (Records check's Edit and save): fixed width, wrapped anywhere rather than
   scrolled sideways, in a prompt wide enough for a line of JSON. */
.ask.ask-wide { width: min(760px, calc(100vw - 32px)); }
.ask-mono { font-family: var(--mono); font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
.ask-error { margin: 0; font-size: 13px; color: var(--crit); }
/* A line under the fields: what is left of today's total, and, the moment a typed figure crosses
   this admin's own limit, that it is going for approval instead. */
.ask-note {
  margin: 0;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--panel-2);
  border-radius: var(--radius);
}
.ask-note.esc { color: var(--esc); background: var(--esc-soft); }
/* Something to read before sending that does not stop the send: the new email was another account's
   address once. The warning tone the banners use, and never the critical one, because nothing here
   has been refused. */
.ask-note.warn { color: var(--warn); background: var(--warn-soft); }
.ask-warn-line { margin: 0; }
.ask-warn-line + .ask-warn-line { margin-top: 6px; }
/* One more thing a prompt can do without closing, such as mailing a code again, and what came of it,
   written beside the button rather than in a toast under the backdrop. */
.ask-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ask-aside-said { font-size: 12.5px; color: var(--ink-2); }
.ask-aside-said.bad { color: var(--crit); }
/* What stopped a write, one item a line, in the dialog that says it stopped. */
.ask-list { margin: -6px 0 14px; padding-left: 20px; color: var(--ink-2); }
.ask-list li + li { margin-top: 4px; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ------------------------------------------------------------------ toasts */

.toasts {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.toast.bad { border-left-color: var(--crit); }
.toast.escalate { border-left-color: var(--esc); }

/* `align-items` so a line of explanation beside the buttons sits on their centre line rather than
   at the top of a stretched box. A row of buttons alone is unaffected: they are all one height. */
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }

/* ------------------------------------------------------------------ sign-in */

.signin {
  max-width: 460px;
  margin: 9vh auto 0;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.signin-title { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.signin-lead { margin: 0 0 22px; color: var(--ink-2); }
.signin-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
  border-radius: var(--radius);
}
/* The note is a paragraph almost everywhere and a small block of prose in one place: the failure
   the panel cannot diagnose, which needs its causes listed and an origin on a line by itself. The
   children set their own spacing so the box's padding still reads as one note either way. */
/* The line under the waiting card's lead: quieter than the lead, because it is the sentence for
   somebody who has been looking at the card long enough to wonder, not for somebody who read it and
   moved on. */
.signin-waiting { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; }
.signin-note-lead { margin: 0; }
.signin-note-list { margin: 6px 0 0; padding-left: 18px; }
.signin-note-list li { margin-top: 2px; }
.signin-note-fix { margin: 8px 0 0; }
.signin-note-paste {
  margin: 6px 0 0;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  word-break: break-all;
  user-select: all;
}

.signin-form { display: flex; flex-direction: column; gap: 12px; }
.signin-actions { display: flex; justify-content: flex-end; }
.signin-problem { margin: 0; font-size: 13px; color: var(--crit); }

.linklike {
  display: block;
  margin-top: 14px;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--accent);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.linklike:hover { color: var(--accent-hover); text-decoration: underline; }

.qr { margin-bottom: 16px; }
.qr-img { display: inline-block; padding: 10px; background: #fff; border-radius: var(--radius-sm); }
.qr-img svg { display: block; width: 168px; height: 168px; }
.qr-link { display: inline-block; font-size: 13px; color: var(--accent); }
.qr-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }

.secret { margin-bottom: 16px; }
.secret-title { margin: 0 0 2px; font-size: 12px; color: var(--ink-2); }
.secret-value { margin: 0 0 6px; font-size: 14px; letter-spacing: .06em; word-break: break-all; }
.secret-note { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }

.recovery {
  margin-bottom: 18px;
  padding: 14px;
  background: var(--crit-soft);
  border: 1px solid color-mix(in srgb, var(--crit) 28%, transparent);
  border-radius: var(--radius-sm);
}
.recovery-lead { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.recovery-key {
  margin: 0 0 10px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ack { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 13px; }
.ack-box { margin-top: 3px; }

/* The counter's slot is drawn empty whenever nothing is waiting on this admin, and an empty flex
   item still takes the gap beside it — a hole in the bar that moves as the queue empties. */
.who-bell { display: inline-flex; align-items: center; gap: 6px; }
.who-bell:empty { display: none; }
.who-left { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.who-clock { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.who-clock.soon { color: var(--warn); }
.btn.quiet { min-height: 30px; padding: 0 10px; font-size: 12.5px; color: var(--ink-2); border-color: var(--line-strong); }
.btn.quiet .icon { width: 14px; height: 14px; }

/**
 * The top bar at phone width.
 *
 * It is one row of up to six things — brand, approvals counter, email, rank, session countdown,
 * sign out — and with the fixtures' own email it stops fitting below about 530px, sooner with a
 * longer one. Nothing was allowed to wrap, so the row simply ran off the right edge and took the
 * whole page's horizontal scrollbar with it, on every page including the ones with no table.
 *
 * The breakpoint is 620 rather than 530 on purpose: an email or a rank word longer than the ones
 * in the fixtures should meet the wrapping before it meets the edge.
 *
 * So it wraps instead. The items keep their order and take as many rows as the width needs: on a
 * 430px screen an owner gets two, on a 360px one three, and a support account with nothing waiting
 * still gets one. Nothing is dropped but the brand's own words, because the rest is what an
 * operator away from their desk still has to be able to read — the rank in particular, since it
 * decides what the rest of the panel will let them do.
 */
@media (max-width: 620px) {
  /* Top-aligned, not centred: with the right side two rows tall, centring floats the brand
     down between them instead of sitting on the first row with everything else. */
  .topbar { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; }
  .brand { padding-top: 2px; }
  /* The mark is the link home; "Operator console" beside it is decoration. */
  .brand-text { display: none; }
  /* Basis zero, not auto: a flex item is placed on a line at its *content* width, so a
     `1 1 auto` right side is wider than the space left beside the brand and drops to a line of
     its own, leaving the brand alone on a row of empty bar. */
  .topbar-right { flex: 1 1 0; min-width: 0; justify-content: flex-end; }
  .who { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
  .who-mail { max-width: 52vw; }
}

@media (max-width: 560px) {
  .signin { margin-top: 4vh; padding: 20px; }
}

/* The Merchants admin's sign-in: the form on a plain surface at the left, and a panel in the accent's
   gradient at the right, only where there is room for both. Drawn entirely by the gate itself, so the
   sign-in flow renders exactly what it always did into the left column. */
@media (min-width: 900px) {
  .gate:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 100vh;
    padding: 0;
    background: var(--panel);
  }
  .gate > * { grid-column: 1; grid-row: 1; align-self: center; }
  .gate > .signin { width: calc(100% - 80px); max-width: 420px; margin: 32px auto; padding: 0; border: 0; box-shadow: none; }
  .gate::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    margin: 16px 16px 16px 0;
    border-radius: 20px;
    background:
      linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 44px 44px,
      linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 44px 44px,
      radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .16), transparent 42%),
      radial-gradient(circle at 85% 90%, rgba(123, 145, 234, .35), transparent 45%),
      linear-gradient(150deg, var(--accent-grad-from), var(--accent-grad-to));
  }
}

/* ------------------------------------------------------------------ queues */

.page-top { margin-bottom: 14px; }
.page-list { display: flex; flex-direction: column; gap: 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.filter-input {
  min-width: 150px;
  min-height: 34px;
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .12s, box-shadow .12s;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.card-title { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-note { font-size: 12px; color: var(--ink-3); }
/* The note and a button beside it at the head's right, kept together when the head wraps: the
   Transactions card's Statement PDF. */
.card-head-end { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
/* The announcement itself: the one piece of text in the panel that is quoted rather than reported,
   so it is set at reading size in the body face and given room, not squeezed into a table cell. */
.announcement {
  margin: 12px 14px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--panel-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.card-empty { margin: 0; padding: 16px 14px; color: var(--ink-3); }
/* A note in the card's body rather than in its head, for the sentence a section needs before its rows
   are read. `.card-note` alone is the head's inline variant and carries no box of its own. */
.card-note.wrap { margin: 0; padding: 11px 14px; border-top: 1px solid var(--line); line-height: 1.5; }
/* The same note under a row of tiles rather than inside a card has no card edge to sit against, so
   it drops the rule that would otherwise hang under the tiles on its own. */
.tiles + .card-note.wrap { padding: 12px 2px 0; border-top: 0; }
/* A line under a card's header saying what the card is for, where the header alone is not enough and
   the note beside it would be too long to read as a caption. */
.card-lead { margin: 0; padding: 12px 14px 0; color: var(--ink-2); }

.grid-scroll { overflow-x: auto; }
/* The pager, under the rows it turns. A row rather than a bar across the card: the two buttons sit at
   the ends where a thumb reaches them, and the sentence between them says where the operator is. It
   wraps to two lines on a narrow screen rather than pushing the card sideways. */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.pager-said { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid { font-size: 13.5px; }
.grid th {
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
  white-space: nowrap;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.grid td { padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
/* A column of somebody's own words wraps. Everything else is a figure, an id or a state, and those
   read better on one line than they do reflowed. */
.grid td.wrap { white-space: normal; min-width: 200px; max-width: 420px; }
.grid tr:last-child td { border-bottom: 0; }
.grid th.num, .grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid td.mono { font-family: var(--mono); font-size: 12.5px; }
/* An action cell reserves one control's worth of height whether or not it holds one, so a table where
   only some rows can be acted on does not come out ragged — raggedness reads as a rendering fault
   rather than as a difference in what may be done. `content-box` is what makes the figure honest: it
   is the height of a button, and the cell's own padding then applies identically to every row. On a
   table where every row has a button this changes nothing. */
.grid td.actions {
  display: flex; align-items: center; gap: 6px; justify-content: flex-end;
  box-sizing: content-box; min-height: 30px;
}
/* A button in a row is the Merchants admin's small one, so a table of actions stays a table. */
.grid td.actions .btn { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
/* A saved withdrawal address, printed whole with its copy button beside it, and a listed one on
   Compliance, which has no button. It breaks anywhere rather than running the table sideways, because a
   Monero address is 95 characters with no space in it, and shortening it is the one thing this cell
   must not do: a lookalike differs in the middle. */
.address-cell { display: flex; align-items: flex-start; gap: 8px; }
.address-full {
  min-width: 18ch; max-width: 34ch;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.45;
  white-space: normal; word-break: break-all;
}
/* On its own in a cell, without the flex box above, it needs to be a block for its widths to hold. */
.grid td > .address-full { display: block; }
.address-cell .btn { flex: none; min-height: 28px; padding: 0 9px; font-size: 12px; }
.grid tr.clickable { cursor: pointer; }
.grid tr.clickable:hover td { background: var(--panel-2); }
/* A table wider than the page that keeps its row controls in view as it scrolls sideways: PayPal
   accounts, whose Set to 0 is meant to be one press away and which grew a withdrawal account column.
   The cell goes back to being a table cell, because a sticky flex box cannot leave the anonymous cell
   the browser wraps it in. Its own background, so the columns sliding under it do not show through. */
.sticky-actions .grid td.actions,
.sticky-actions .grid th:last-child { position: sticky; right: 0; z-index: 1; }
.sticky-actions .grid td.actions {
  display: table-cell; text-align: right; white-space: nowrap;
  background: var(--panel); box-shadow: -10px 0 10px -10px rgba(15, 22, 46, .25);
}
.sticky-actions .grid td.actions > * + * { margin-left: 6px; }
.sticky-actions .grid tr.clickable:hover td.actions { background: var(--panel-2); }
/* Row controls lined up from the left, where rows offer different numbers of them and each should sit
   in the same place on every row: PayPal withdrawals, where only a resting account has Re-enable. */
.actions-start .grid td.actions { justify-content: flex-start; }
/* A link out of the panel: the block explorer, on the platform wallets, on a USDT network's card and
   on a USDT withdrawal's transaction — the places that exist so somebody can go and check for
   themselves. */
.link-out { color: var(--accent); text-decoration: none; }
.link-out:hover { text-decoration: underline; }
/* The backend's sentence for why a withdrawal is waiting, under its state in the list. Its own line,
   allowed to wrap inside a cell that otherwise never does, and held to two lines: a table squeezed
   for width hands this column its narrowest, and an unclamped sentence then made every waiting row
   six lines tall. The whole sentence is the element's title and is in the drawer. */
.cell-why {
  display: -webkit-box;
  min-width: 200px;
  max-width: 260px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.absent { color: var(--ink-3); }
/* A tile whose figure is missing says so at reading size, not at headline size. */
.tile-v.absent { font-size: 15px; font-weight: 500; }
/* A figure in more than one currency, one to a line, as the PayPal money-in tiles draw it. */
.tile-v .per-currency { display: flex; flex-direction: column; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--panel-3);
}
.pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.crit { color: var(--crit); background: var(--crit-soft); }
.pill.info { color: var(--accent); background: var(--accent-soft); }
.pill.idle { color: var(--ink-3); background: var(--panel-3); }
.pill.escalate { color: var(--esc); background: var(--esc-soft); }
/* A PayPal account's withdrawal account: the type's own colour and its id beside the name. */
.pill.skrill { color: var(--skrill); background: var(--skrill-soft); }
.pill.neteller { color: var(--neteller); background: var(--neteller-soft); }
.pill.paysafecard { color: var(--paysafecard); background: var(--paysafecard-soft); }

.banner {
  margin: 0;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius);
}
.banner strong { color: var(--accent); }
/* A banner about something broken rather than something configured. */
.banner.bad { color: var(--ink-2); background: var(--crit-soft); border-color: color-mix(in srgb, var(--crit) 30%, transparent); }
.banner.bad strong { color: var(--crit); }
/* And one about something to watch out for, which is neither: the customer with no referral code is
   not a fault, it is a fact that changes what the button below it does. */
.banner.warn { color: var(--ink-2); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.banner.warn strong { color: var(--warn); }
/* A banner with the write that answers it underneath, like the record's old WinForms ban. */
.banner > p { margin: 0; }
.banner > .page-actions { margin-top: 10px; }

/* ------------------------------------------------------------------ drawer */

.veil { position: fixed; inset: 0; z-index: 30; background: var(--scrim); }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--line);
}
.drawer-titles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.drawer-title { margin: 0; font-size: 16px; }
.drawer-x {
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
  background: none;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.drawer-x .icon { width: 18px; height: 18px; }
.drawer-x:hover { color: var(--ink); background: var(--panel-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.drawer-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.dsec { margin-top: 20px; }
.dsec-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dsec-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 4px 14px; margin: 0; }
.kv dt { font-size: 13px; color: var(--ink-3); }
/* The name a field was filed under, under the words for it. Its own line rather than beside them,
   because the left column of a `kv` is as narrow as its longest label and a name pushed onto the end
   of one would set that width for every row. */
.kv dt .wire { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
/* Every value in one of these lists is something the backend wrote, and its line breaks and its runs
   of spaces are part of what it wrote: a stack trace is indented, a refusal can carry a wrapped
   sentence, and nothing here knows which values those are. Collapsing them was the panel editing a
   record while claiming, in the note right above it, to be showing it as it arrived. `overflow-wrap`
   still breaks a long unbroken token, so a preserved line cannot push the drawer sideways. */
.kv dd { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* A figure with the note that says where it comes from: beside it, "6  set for this customer, the
   default is 3", and under it on a phone. */
.kv dd > .kv-f { margin-left: 10px; }
@media (max-width: 620px) { .kv dd > .kv-f { display: block; margin-left: 0; } }

/* ------------------------------------------------------------------ copy */

/* A value somebody pastes elsewhere, with a small icon right after it (copy.js). The icon is quiet until
   it is pointed at, and its negative margin keeps a row with one exactly as tall as a row without, so a
   drawer with eight of them reads like a drawer with none. It sets its own type rather than taking the
   value's, because "Copied" in the mono face of an IBAN reads like part of the IBAN. */
.copyable { display: inline; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  min-width: 22px;
  margin: -2px 0 -2px 6px;
  padding: 0 3px;
  vertical-align: middle;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-3);
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.copy-btn .icon { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--accent); background: var(--accent-soft); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.copy-btn.done { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.copy-btn.refused { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
/* Beside a label, for a value that runs to several lines, and after a drawer's title. */
.kv dt .copy-btn { margin-left: 4px; }
.drawer-title .copy-btn { margin-left: 8px; vertical-align: -2px; }
.dsec-title .copy-btn { margin-left: 6px; vertical-align: -6px; text-transform: none; }
/* A finger needs more than 22px; the row grows a little on a touch screen rather than missing taps. */
@media (pointer: coarse) {
  .copy-btn { height: 28px; min-width: 28px; margin-top: -4px; margin-bottom: -4px; }
}
/* What the older clipboard route copies from: in the document for one moment, never seen. */
.copy-scratch { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ timeline */

.tl { display: flex; flex-direction: column; margin-top: 2px; }
.tl-step { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--line-strong); flex: none; }
.tl-line { width: 2px; flex: 1; min-height: 14px; background: var(--line); }
.tl-step:last-child .tl-line { display: none; }
.tl-step[data-state="done"] .tl-dot { background: var(--ok); }
.tl-step[data-state="current"] .tl-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-body { padding-bottom: 12px; min-width: 0; }
.tl-label { font-size: 13px; font-weight: 500; }
.tl-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.tl-note { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
/* How long the record has sat where it is now, under the last step when that step is not an ending.
   Given the accent rather than the muted grey of the line above it, because on a triage screen this
   is the figure being looked for, and it is the only thing on a timeline that is true of right now
   rather than of the moment somebody wrote a step. */
.tl-still { font-size: 12px; font-weight: 500; color: var(--accent); margin-top: 3px; }
.tl-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.tl-empty { padding: 14px; background: var(--panel-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.tl-empty-t { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tl-empty-s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ------------------------------------------------------------------ the customer record */

.finder-form { display: flex; gap: 8px; max-width: 520px; }
.finder-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .12s, box-shadow .12s;
}

/* Balances: one cell per currency, so a customer holding three reads as three figures rather than
   as a table with three rows of one number. */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
}
/* The divider is drawn by the cells, not by the grid's gaps: an auto-fit track that collapses for
   want of a cell leaves its gap behind, which is a rule hanging in empty space. */
.kv-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}
.kv-cell:last-child { border-right: 0; }
.kv-k { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.kv-v { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.kv-f { font-size: 12px; color: var(--ink-3); }
/* A customer's limits in one service, four across as the tiles above them are and two on a phone.
   Each row carries its own rule, because eight figures make two rows where the balances make one. */
.service-limits { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
.service-limits .kv-cell { border-top: 1px solid var(--line); }
.service-limits .kv-cell:nth-child(4n) { border-right: 0; }
/* A figure set for this customer alone, rather than the platform's. */
.kv-cell.own .kv-v { color: var(--accent); }
@media (max-width: 620px) {
  .service-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-limits .kv-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .service-limits .kv-cell:nth-child(2n) { border-right: 0; }
}

.switches { border-top: 1px solid var(--line); }
.switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.switch:last-child { border-bottom: 0; }
.switch-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 1px; }
.switch-k { font-weight: 500; }
.switch-f { font-size: 12px; color: var(--ink-3); }
/* The Restrictions card: its four group headings, and the lines under a switch that is off saying who,
   until when and what the customer was told. */
.switch-group {
  margin: 0;
  padding: 14px 14px 4px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.switch-group + .switches { border-top: 0; }
.switch-d { font-size: 12px; color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }

/* The permission grid and the ceilings table. Both are a table inside a card, where every row is a
   thing somebody edits and then applies, so a row has to read as one unit across its whole width. */
.matrix td { vertical-align: middle; padding: 8px 14px; }
.matrix th.num, .matrix td.num { text-align: center; width: 64px; }
/* The name column takes whatever is left, so a case's description sits on one line instead of
   stacking into three and making every row as tall as the longest sentence in the catalogue. */
.matrix th:first-child, .matrix td:first-child { width: auto; white-space: normal; }
.matrix th:last-child, .matrix td:last-child { width: 1%; text-align: right; white-space: nowrap; }
.matrix-name { display: block; font-family: var(--mono); font-size: 12.5px; }
.matrix-why { display: block; font-size: 11.5px; color: var(--ink-3); white-space: normal; }
/* A case the permission does not have. Grey and centred, so a column of them reads as absence rather
   than as a row of boxes somebody forgot to tick. */
.matrix-none { color: var(--ink-3); }
/* A ceiling written in a unit the gate will not compare, which refuses every figure. Marked on the
   row rather than on the figure: the figure is fine and the word beside it is not, and this is the
   one row on the page an owner has to do something about. */
.matrix tr.unusable { background: var(--warn-soft); }
.matrix tr.unusable .matrix-why { color: var(--warn); }
.matrix-box { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.matrix-box:disabled { cursor: not-allowed; opacity: .55; }
.matrix-figure {
  width: 84px;
  padding: 5px 7px;
  text-align: right;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.matrix-figure:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* The one value in this panel that is shown once and never again. It is large, selectable and
   monospaced, because it is going to be read off the screen and typed somewhere else. */
.ask-reveal {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  word-break: break-all;
  user-select: all;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* A block of controls or facts inside a card is inset like the card's own content, not flush with
   its edge: flush reads as a row that escaped its container. */
.card > .page-actions { padding: 12px 14px; border-top: 1px solid var(--line); }
.card > .kv { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); }
/* A banner belonging to one card sits inside the card's padding, so it reads as being about this
   card rather than about the page. */
.card > .banner { margin: 12px 14px; }
/* A row of figures inside a card, rather than above a page's table. */
.card > .tiles { margin: 12px 14px; }
/* The line under those figures keeps the card's own inset, where the page-level rule above would
   leave it flush with the card's edge. */
.card > .tiles + .card-note.wrap { padding: 0 14px 12px; }
/* The quiet line a card ends on: a rule that shapes what the card above it can do, which belongs
   under it rather than in the lead nobody rereads. */
/* An exception in a drawer: the chain, each one with its own stack. A stack trace is the one piece of
   text in this panel that is meant to be scanned rather than read, so it keeps its own line breaks and
   scrolls in its own box instead of wrapping into a wall. */
/* `min-width: 0` on both, or the pre's longest line becomes the block's minimum width and pushes the
   whole drawer sideways instead of scrolling inside its own box. */
.trace { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trace > * { min-width: 0; }
.trace-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0; }
.trace-type { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--crit); }
.trace-depth { font-size: 11px; color: var(--ink-3); }
.trace-msg { margin: 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.trace-stack {
  max-height: 220px;
  margin: 0;
  padding: 8px 10px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.card-foot {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.card > .card-lead { padding: 12px 14px 0; }
.card > .card-lead + .banner { margin-top: 10px; }

/* ------------------------------------------------------------------ support */

/* An address inside this panel, as opposed to `.link-out`, which leaves it. Same colour, so a reader
   does not have to learn two kinds of link; the difference is only where it goes. */
.link-in { color: var(--accent); text-decoration: none; }
.link-in:hover { text-decoration: underline; }

/* The queue: the views down the side where there is room for a column, and a select above the list
   where there is not. Both are in the page and this decides which shows, so turning a phone
   sideways needs no redraw. */
.queue-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.queue-top .finder-form { flex: 1 1 320px; min-width: 0; }
.queue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.queue-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.queue-views { display: none; padding: 10px 8px; }
.queue-views-title {
  margin: 2px 10px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.queue-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.queue-view:hover { color: var(--ink); background: var(--panel-2); }
.queue-view.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.queue-view-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-view-count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.queue-view.on .queue-view-count { color: var(--accent); }
/* Only where the list beside them still has room for its nine columns: below that the views are the
   select, and the list scrolls inside its own card rather than squeezing every subject to a word. */
@media (min-width: 1280px) {
  .queue { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 16px; align-items: start; }
  .queue-views { display: block; }
  .queue-pick { display: none; }
}

/* A ticket's subject in the queue, with what an agent wants to know before opening it. */
.ticket-subject { font-weight: 500; }
.ticket-number { margin-right: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  vertical-align: 1px;
  color: var(--ink-2);
  background: var(--panel-3);
  border-radius: 4px;
}
/* "reply seen" in the queue: the customer has opened the ticket since support's latest reply. */
.tag-seen { color: var(--ok); background: var(--ok-soft); }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tags .tag { margin-left: 0; }
/* The requester's address with "unverified" under it rather than beside it, so the column is as wide
   as an address and no wider. */
.ticket-who { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
/* The queue's cells closer together than a list with five columns needs, so its nine fit beside the
   views at a laptop width. */
.queue-main .grid th, .queue-main .grid td { padding-left: 8px; padding-right: 8px; }
.queue-main .grid th:first-child, .queue-main .grid td:first-child { padding-left: 16px; }
.queue-main .grid th:last-child, .queue-main .grid td:last-child { padding-right: 16px; }
.queue-main .grid { font-size: 13px; }
.queue-main .grid td.wrap { min-width: 170px; }

/* The workspace. The conversation is first in the document, so a phone reads it first; from 700px the
   fields and the customer sit side by side under it, and from 1280px — wide enough, beside the rail,
   for a conversation column of about five hundred pixels — they move to its left and right. */
.ticket-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "conv" "fields" "side";
  gap: 16px;
  align-items: start;
}
.ticket-conv { grid-area: conv; }
.ticket-fields { grid-area: fields; }
.ticket-side { grid-area: side; }
.ticket-conv, .ticket-fields, .ticket-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 700px) {
  .ticket { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "conv conv" "fields side"; }
}
@media (min-width: 1280px) {
  .ticket { grid-template-columns: 228px minmax(0, 1fr) 288px; grid-template-areas: "fields conv side"; }
  /* A column this narrow reads a field's name above its value, the way a support tool's sidebar does,
     rather than squeezing both onto a line and wrapping every date. */
  .ticket-fields .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ticket-fields .kv dd { margin-bottom: 8px; }
  .ticket-fields .kv dd:last-child { margin-bottom: 0; }
}
/* A subject long enough to wrap keeps the number beside its first line rather than its last. */
.ticket-thread .card-head { align-items: flex-start; }
.ticket-title { font-size: 16px; overflow-wrap: anywhere; }
.ticket-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ticket-rating-said { color: var(--ink-2); }
.ticket-history { padding: 14px 14px 2px; }
/* The tables in the customer column are a card's contents rather than cards of their own. */
.ticket-side .card .card { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: none; }
.ticket-side .grid th, .ticket-side .grid td { padding: 8px 10px; }
.ticket-side .grid th:first-child, .ticket-side .grid td:first-child { padding-left: 14px; }
.ticket-side .grid td.wrap { min-width: 0; }
.ticket-side .card-head { padding: 12px 14px; }
.ticket-side .kv-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.ticket-side .kv-v { font-size: 15px; overflow-wrap: anywhere; }
/* Two facts in one cell, the second quieter, for a table in a column too narrow for both. */
.cell-stack { display: inline-flex; flex-direction: column; gap: 1px; }
/* A pill under a line keeps its own width, rather than stretching into a bar as wide as the line. */
.cell-stack > .pill { align-self: flex-start; }
.cell-sub { font-size: 12px; color: var(--ink-3); }
.customer-line { padding-bottom: 12px; }
.customer-mail { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.pill.verified::before { display: none; }
.pill.verified .icon { width: 13px; height: 13px; }

/* The conversation. Three voices, told apart without reading a word: the customer on the page's grey,
   an agent's reply on white with the accent down its edge, and an internal note on the accent's own
   tint behind a dashed edge and a label. Not amber, which is a warning here, and not the escalation
   colour, which means an action is waiting on somebody; a note is neither. */
.msgs { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.msg {
  min-width: 0;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.msg-customer { background: var(--panel-2); }
.msg-agent { box-shadow: inset 3px 0 0 var(--accent); }
.msg-note { background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.msg-system { padding: 8px 12px; background: none; border-style: dashed; border-color: var(--line-strong); }
.msg-system .msg-body { font-size: 13px; color: var(--ink-2); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.msg-who { min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.msg-side { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.msg-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--panel);
  border-radius: 999px;
}
.msg-tag .icon { width: 12px; height: 12px; }
.msg-at { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg-body { margin: 6px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
/* The read receipt under support's latest public message, right-aligned the way a chat app puts it. */
.msg-seen {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.msg-seen.seen { color: var(--ok); }
.msg-seen .icon { width: 13px; height: 13px; }
.msg-files { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.msg-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 6px 5px 10px;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.msg-file .icon { width: 14px; height: 14px; color: var(--ink-3); }
.msg-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file-size { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The reply box. Switching to an internal note tints the whole box the way the note will look once
   it is sent, so nobody types a note believing it is a reply, or the other way about. */
.composer.noting { background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.composer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.composer-tabs { display: flex; gap: 2px; }
.composer-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 10px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.composer-tab .icon { width: 14px; height: 14px; }
.composer-tab:hover { color: var(--ink); }
.composer-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.composer-macro { min-width: 0; max-width: 100%; margin: 6px 0; }
.composer-text {
  display: block;
  width: calc(100% - 28px);
  min-height: 132px;
  margin: 12px 14px 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  resize: vertical;
}
.composer-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.composer-note { margin: 8px 14px 0; font-size: 12.5px; color: var(--ink-2); }
.composer-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 12px; padding: 12px 14px 14px; }
.composer-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.composer-files { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 3px 2px 9px;
  font-size: 12.5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.composer-chip .icon { width: 13px; height: 13px; color: var(--ink-3); }
.composer-chip-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-chip-x {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--ink-3);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.composer-chip-x:hover { color: var(--ink); background: var(--panel-3); }
.composer-send { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-left: auto; }
.composer-status { display: flex; flex-direction: column; gap: 4px; }
.composer-status .filter-input { min-width: 140px; }
.composer-submit { display: inline-flex; }

/* A macro's body in its drawer, as it will land in the reply box: its own line breaks, placeholders
   and all. */
.macro-body {
  margin: 0;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------ CoreSettle deposits */

/* A page with two stores under one name: the deposits page's PayPal and CoreSettle tabs. Links, not
   buttons, because which one is open is in the address. The underline is the composer's. */
.page-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.page-tab:hover { color: var(--ink); }
.page-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
/* How many deposits are waiting for a check, on the tab itself, so it is seen from the other one. */
.page-tab-count {
  min-width: 20px;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--crit);
  background: var(--crit-soft);
  border-radius: 999px;
}
/* What a deposit was paid with: CoreSettle's label, and the code the filter takes under it. */
.cs-paid { display: inline-flex; flex-direction: column; gap: 1px; }
.cs-code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
/* CoreSettle's transactions on a payment, one block each, ruled apart. */
.cs-transactions { display: flex; flex-direction: column; gap: 10px; }
.cs-transaction { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cs-credits { margin: 0; padding-left: 18px; }
.cs-credits li { margin: 2px 0; overflow-wrap: anywhere; }
/* The treasury's CoreSettle card: its balances table is part of the card, inset rather than a card
   floating inside one. */
.cs-balances > .card { margin: 0 14px 14px; box-shadow: none; }

/* ------------------------------------------------------------------ SEPA withdrawals */

/* "Send this": what staff type into the bank's app, a row each with its own Copy. */
.sepa-pay { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.sepa-pay-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); }
.sepa-pay-row:first-child { border-top: 0; }
.sepa-pay-k { font-size: 12.5px; color: var(--ink-3); }
.sepa-pay-v { display: flex; flex-direction: column; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.sepa-pay-v .mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.sepa-pay-x { font-size: 12px; color: var(--ink-3); }
.btn.sepa-copy { padding: 4px 10px; font-size: 12.5px; }
.sepa-note { margin: 0; padding: 10px 12px; border-left: 3px solid var(--line-strong); background: var(--panel-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); white-space: pre-wrap; }

/* The proof: a picker while it is being paid, the file and a download once it is paid. */
.sepa-proof { display: flex; flex-direction: column; gap: 10px; }
.sepa-proof-empty { margin: 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-3); text-align: center; }
.sepa-proof-file { list-style: none; }
.sepa-file-input { display: none; }
.sepa-card-actions { padding: 0 16px 16px; }
.sepa-cs-note { padding: 0 16px 12px; margin: 0; max-width: 72ch; }

@media (max-width: 720px) {
  .sepa-pay-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sepa-pay-k { grid-column: 1 / -1; }
}

/* SEPA settings: what Automatic can send right now, worked down line by line to the total. */
.sepa-cap td:first-child { width: 38%; }
.sepa-cap td.num { width: 18%; }
.sepa-cap .sepa-cap-total td { border-top: 2px solid var(--line); font-weight: 600; }
.sepa-set-by { display: block; margin-top: 2px; }

/* ------------------------------------------------------------------ public profiles */

/* A customer's Public profile card: the picture beside what the profile says, one column on a phone. */
.pf-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 16px 14px; align-items: start; border-top: 1px solid var(--line); }
@media (max-width: 620px) {
  .pf-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
/* A picture read through api.js and drawn from an object URL. The grey disc is what shows while the
   bytes are on their way, so the row does not jump when they land. */
.pf-av { display: block; flex: none; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--panel-3); }
.pf-av.sm { width: 36px; height: 36px; }
.pf-av.md { width: 88px; height: 88px; }
/* The initial-letter avatar a customer sees where there is no picture, in the accent's gradient. The
   flat colour first is what the contrast check reads; the gradient is drawn over it. */
.pf-initial {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  background: var(--accent-grad-from) linear-gradient(135deg, var(--accent-grad-from), var(--accent-grad-to));
}
.pf-initial.lg { width: 112px; height: 112px; font-size: 44px; }
.pf-initial.md { width: 88px; height: 88px; font-size: 34px; }
/* A picture tile's square, where the tile has no picture to show. */
.pf-initial.tile { display: grid; width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; font-size: 56px; }
/* Who a row is about: the picture, then the shown name over the username. */
.pf-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-who b { display: block; font-weight: 600; }
.pf-who small { display: block; color: var(--ink-3); font-size: 12px; }
/* A bio keeps the line breaks its customer typed, and nothing else. */
.pf-bio { white-space: pre-line; }
/* The username history under the profile, inset like the card's own content. */
.pf-hist { padding: 0 14px 6px; }
.pf-hist .grid td, .pf-hist .grid th { padding-left: 0; }
/* New pictures: a grid of tiles, each the picture with whose it is and the two decisions under it. */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; padding: 16px; }
.pf-tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.pf-shot { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel-3); }
.pf-tile-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 10px 8px 12px; }
.pf-tile-body b { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.pf-tile-body small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.pf-tile-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.pf-tile-actions .btn { flex: 1 1 auto; min-height: 30px; padding: 0 6px; font-size: 12px; }
/* A picture somebody already looked at, under the new ones. */
.pf-tile.seen { opacity: .62; }
/* One report in the drawer: its reason, who and when, and the customer's own note. */
.pf-report { padding: 10px 0; border-top: 1px solid var(--line); }
.pf-report:first-of-type { border-top: 0; padding-top: 0; }
.pf-report p { margin: 4px 0 0; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.pf-report small { color: var(--ink-3); font-size: 12px; }
.pf-drawer-who { display: flex; gap: 16px; align-items: center; }
.pf-drawer-who b { display: block; font-size: 15px; font-weight: 600; }
.pf-drawer-who small { display: block; color: var(--ink-3); font-size: 12px; }
.pf-kv { margin-top: 14px; }
/* The reserved words, one chip each, with the control that takes it off the list. */
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--line); }
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 2px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
}
.pf-chip .btn { min-height: 24px; padding: 0 7px; font-size: 14px; line-height: 1; color: var(--ink-3); background: transparent; border-color: transparent; border-radius: 999px; }
.pf-chip .btn:hover:not(:disabled) { color: var(--crit); background: var(--crit-soft); border-color: transparent; }

/* ------------------------------------------------------------------ cashback goals */

/* The Goals tab: the four lists on the left and what they would cost beside them, kept in view while
   the lists scroll. One column below 1100px, where the side would squeeze the rows. */
.cb-tiles:empty { display: none; }
/* One pane per source, the hidden one kept with whatever was typed into it. */
.cb-pane { display: flex; flex-direction: column; gap: 16px; }
.cb-pane[hidden] { display: none; }

/* The source switch: two halves, each with how many of its lists are on and whether any is unsaved. */
.cb-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--panel-3); border-radius: var(--radius-lg); }
.cb-source {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 9px 14px;
  font: inherit;
  text-align: left;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.cb-source:hover { color: var(--ink); }
.cb-source.on { color: var(--ink); background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.cb-source:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cb-source-t { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cb-source-f { font-size: 12px; color: var(--ink-3); }
.cb-source-dirty { font-weight: 600; color: var(--accent); }
/* What customers see on SEPA goals while the badge is on. */
.cb-boost { display: inline-flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--esc); background: var(--esc-soft); border-radius: 99px; }
.switch-k .cb-boost { margin-left: 8px; vertical-align: 1px; }

.cb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cb-goals { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* A list's card clips its rows, so a row tinted for a refused or warned goal keeps the card's corners. */
.cb-card { overflow: hidden; }
.cb-side { position: sticky; top: calc(var(--topbar-h) + 16px); min-width: 0; }

/* A list's head carries its own switch, with what the switch would change right under it. */
.cb-head { align-items: center; }
.cb-head-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cb-head-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb-switch { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cb-status { margin: 0; padding: 9px 18px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.cb-status strong { font-weight: 600; color: var(--ink); }
.cb-status.on strong { color: var(--ok); }
.cb-problems { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 0; }
.cb-problems:empty { display: none; }
.cb-empty { padding: 16px 18px; line-height: 1.5; }

/* One goal: two boxes, what reaching it pays, what it costs, and the remove button, on a grid of their
   own rather than a table, so a narrow screen can put them on two lines instead of scrolling them out
   of the card. */
.cb-row {
  display: grid;
  grid-template-columns: 22px minmax(92px, .8fr) minmax(88px, .8fr) minmax(140px, 1.3fr) minmax(120px, 1.2fr) 34px;
  grid-template-areas: "n goal reward pays cost x" ". said said said said said";
  align-items: center;
  gap: 0 12px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
}
.cb-row:last-child { border-bottom: 0; }
.cb-row.cb-row-head { grid-template-areas: "n goal reward pays cost x"; }
.cb-row-head { padding-top: 8px; padding-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); background: var(--panel-2); }
.cb-row.crit { background: var(--crit-soft); }
.cb-row.warn { background: var(--warn-soft); }
/* A goal's place in its list, which is how the backend pays a period's goals and how a list of twenty
   is talked about. */
.cb-n, .cb-c-n { grid-area: n; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.cb-goal, .cb-c-goal { grid-area: goal; }
.cb-reward, .cb-c-reward { grid-area: reward; }
.cb-pays, .cb-c-pays { grid-area: pays; }
.cb-cost, .cb-c-cost { grid-area: cost; text-align: right; }
.cb-rm, .cb-c-x { grid-area: x; }
.cb-said { grid-area: said; margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--crit); }
.cb-row.warn .cb-said { color: var(--warn); }
.cb-said[hidden] { display: none; }

.cb-in { display: flex; align-items: center; gap: 6px; min-width: 0; height: 34px; padding: 0 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.cb-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cb-in.bad { border-color: var(--crit); }
.cb-in input { flex: 1; width: 100%; min-width: 0; padding: 0; color: var(--ink); background: none; border: 0; outline: 0; font: inherit; font-family: var(--mono); font-size: 13px; text-align: right; }
.cb-in input::placeholder { color: var(--ink-3); }
.cb-unit { flex: none; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.cb-pays { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.cb-cost { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.cb-rm { min-height: 30px; width: 34px; padding: 0; }

/* Wraps rather than runs into the cost beside it: on a phone the pays column is narrower than the bar
   and "0.4% of the goal" together, and the label then sits whole under the bar. */
.cb-meter { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; max-width: 100%; }
.cb-meter-bar { flex: none; width: 56px; height: 6px; overflow: hidden; background: var(--panel-3); border-radius: 99px; }
.cb-meter-bar b { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.cb-meter.warn .cb-meter-bar b { background: var(--warn); }
.cb-meter.crit .cb-meter-bar b { background: var(--crit); }
.cb-meter-v { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.cb-meter.warn .cb-meter-v { font-weight: 600; color: var(--warn); }
.cb-meter.crit .cb-meter-v { font-weight: 600; color: var(--crit); }

.cb-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 18px 13px; border-top: 1px solid var(--line); }
.cb-card-foot .card-note { flex-basis: 100%; line-height: 1.5; }
.cb-room { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cb-room.full { font-weight: 600; color: var(--ink-2); }
.cb-room.over { font-weight: 600; color: var(--crit); }
.cb-foot-cost { font-size: 12.5px; color: var(--ink-2); }
.cb-foot-cost strong { font-weight: 600; color: var(--ink); }

/* What it would cost. */
.cb-est { padding-bottom: 6px; }
.cb-est-problem, .cb-est-wait { margin: 12px 16px 0; }
.cb-est-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 14px 16px 6px; }
.cb-est-v { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cb-est-u { font-size: 13px; color: var(--ink-3); }
.cb-est-share { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--ok); }
.cb-est-share.warn { color: var(--warn); }
.cb-est-on { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); }
.cb-split { display: flex; gap: 2px; height: 10px; margin: 8px 16px 0; overflow: hidden; border-radius: 99px; }
.cb-split i { display: block; min-width: 2px; }
.cb-split.none i { background: var(--panel-3); }
.cb-p-day { background: var(--warn); }
.cb-p-week { background: var(--accent); }
.cb-p-month { background: var(--esc); }
.cb-p-lifetime { background: var(--ok); }
.cb-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 10px 16px 4px; font-size: 12px; color: var(--ink-2); }
.cb-legend span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cb-legend i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.cb-legend small { font-size: 11px; color: var(--ink-3); }
.cb-legend b { margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cb-sums { display: grid; grid-template-columns: 1fr auto; margin: 10px 0 0; padding: 0 16px; font-size: 13px; }
.cb-sums dt, .cb-sums dd { margin: 0; padding: 7px 0; color: var(--ink-2); border-top: 1px solid var(--line); }
.cb-sums dd { padding-left: 12px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-sums .strong { font-weight: 600; color: var(--ink); }
.cb-sums .total { border-top-color: var(--line-strong); }
.cb-sums .quiet { font-size: 12px; color: var(--ink-3); }
.cb-sums .crit { color: var(--crit); }
.cb-fact { margin: 10px 16px 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); background: var(--panel-2); border-radius: var(--radius); }
.cb-fact strong { color: var(--ink); }
.cb-fact.warn { background: var(--warn-soft); }
.cb-fact.warn strong { color: var(--warn); }
/* No SEPA deposit to replay yet: said as the box's whole content rather than a column of noughts. */
.cb-fact.cb-none { background: var(--accent-soft); }
/* The SEPA goals costed on PayPal's deposits, under the SEPA box in the same column. */
.cb-whatif { margin-top: 16px; }
.cb-how { margin: 10px 16px 0; font-size: 12.5px; color: var(--ink-2); }
.cb-how summary { padding: 6px 0; font-weight: 600; color: var(--accent); cursor: pointer; }
.cb-how ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.55; }
.cb-how li + li { margin-top: 5px; }
.cb-src { margin: 10px 16px 8px; font-size: 11.5px; color: var(--ink-3); }

/* Not saved yet: held at the bottom of the screen while anything differs from what is saved. */
.cb-unsaved {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 10px 12px 10px 16px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cb-unsaved[hidden] { display: none; }
.cb-unsaved-t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.cb-unsaved-t strong { color: var(--accent); }
.cb-unsaved-act { display: flex; flex: none; gap: 8px; }

/* One customer's progress, in the drawer and on their record. */
.cb-mini { display: flex; flex-direction: column; gap: 12px; }
.cb-mini-row { display: grid; grid-template-columns: 84px minmax(40px, 1fr) auto; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.cb-mini-row.off { opacity: .62; }
.cb-mini-k { font-weight: 500; color: var(--ink-2); }
.cb-mini-bar { height: 6px; overflow: hidden; background: var(--panel-3); border-radius: 99px; }
.cb-mini-bar b { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.cb-mini-v { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.cb-mini-v.absent { grid-column: 2 / -1; text-align: left; color: var(--ink-3); }
.cb-chips { display: flex; flex-wrap: wrap; grid-column: 2 / -1; gap: 4px; }
.cb-chip { padding: 1px 7px; font-size: 11.5px; line-height: 18px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; font-variant-numeric: tabular-nums; }
.cb-chip.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.cb-chip.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.cb-chip.info { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
/* Reached while the list was off or the customer stopped: it will never pay for this period, so it is
   drawn as done with rather than as owed. */
.cb-chip.passed { color: var(--ink-3); background: transparent; border-style: dashed; border-color: var(--line-strong); }
.cb-awards { display: flex; flex-direction: column; }
.cb-award { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-top: 1px solid var(--line); }
.cb-award:first-child { border-top: 0; }
.cb-award-v { display: inline-flex; flex: none; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.cb-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13px; }
.cb-links a { color: var(--accent); }
/* Both sources, PayPal's progress first and SEPA's under it, each with what it has paid. */
.cb-groups { display: flex; flex-direction: column; gap: 16px; }
.cb-group { display: flex; flex-direction: column; gap: 10px; }
.cb-group + .cb-group { padding-top: 14px; border-top: 1px solid var(--line); }
.cb-group-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.cb-group-t { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.cb-group-f { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cb-group-none { margin: 0; font-size: 12.5px; }
/* The customer record's Cashback card puts the same progress inside a card. */
.cb-record { padding: 14px; border-top: 1px solid var(--line); }

/* Two columns need the goal rows' five columns beside a 340px estimate, which a window under 1240px
   cannot give without clipping the cost column, so below that the estimate goes under the lists. */
@media (max-width: 1240px) {
  .cb-layout { grid-template-columns: minmax(0, 1fr); }
  .cb-side { position: static; }
}
@media (max-width: 640px) {
  .cb-switch { margin-left: 0; }
  .cb-status { padding: 9px 14px; }
  .cb-source { padding: 8px 10px; }
  .cb-row {
    grid-template-columns: 16px minmax(0, 1fr) minmax(0, 1fr) 34px;
    grid-template-areas: "n goal reward x" ". pays cost cost" ". said said said";
    gap: 8px 8px;
    padding: 10px 14px 10px 10px;
  }
  .cb-row.cb-row-head { grid-template-areas: "n goal reward x"; }
  .cb-c-pays, .cb-c-cost { display: none; }
  .cb-card-foot { padding: 11px 14px 13px; }
  .cb-problems { padding: 12px 14px 0; }
  .cb-unsaved { flex-wrap: wrap; }
  .cb-unsaved-t { flex-basis: 100%; }
  .cb-unsaved-act { flex: 1; justify-content: flex-end; }
  .cb-mini-row { grid-template-columns: 76px minmax(30px, 1fr); }
  .cb-mini-v { grid-column: 1 / -1; text-align: left; }
  .cb-chips { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ dialogs: choices, ticks, facts */

/* `.ask-field` sets its own display, which beats the browser's `[hidden]`, so a field a dialog hides
   for the choice above it stayed on screen. Said here once, for every dialog. */
.ask-field[hidden], .ask-row[hidden] { display: none; }
/* Fields that belong together: the four limits, two by two so each label stays on one line. Their
   boxes line up along the bottom whatever the labels do. */
.ask-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.ask-row .ask-input { min-width: 0; width: 100%; }
/* One of a few answers, each with a line under it saying what it means. */
.ask-choices { display: flex; flex-direction: column; gap: 6px; }
.ask-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.ask-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
/* A few short answers side by side, each the same width: EUR, GBP, USD. */
.ask-choices.across { flex-direction: row; }
.ask-choices.across .ask-choice { flex: 1 1 0; min-width: 0; }
.ask-choice-input { margin: 2px 0 0; accent-color: var(--accent); }
.ask-choice-text { display: flex; flex-direction: column; gap: 2px; }
.ask-choice-label { font-size: 13.5px; font-weight: 600; }
.ask-choice-sub { font-size: 12px; color: var(--ink-3); }
/* An answer that cannot be picked now, with the reason under it in the warning colour. */
.ask-choice.off { cursor: not-allowed; background: var(--panel-2); }
.ask-choice.off .ask-choice-label, .ask-choice.off .ask-choice-sub { color: var(--ink-3); }
.ask-choice-off { font-size: 12px; color: var(--warn); }
/* A tick with its words beside it rather than a label above it. */
.ask-field.ask-tick { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; }
.ask-check { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.ask-tick-text { display: flex; flex-direction: column; gap: 2px; }
.ask-tick .ask-label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
/* The figures the decision is about, above the fields: what arrived, the fee, what it credits. */
.ask-facts { margin: -4px 0 0; padding: 10px 12px; background: var(--panel-2); border-radius: var(--radius); }
.ask-facts dd { font-weight: 500; }

/* ------------------------------------------------------------------ merging accounts */

/* The Merge accounts dialog's own part: the accounts as choices, the box that adds another, and what
   the merge would do, one under the other. */
.merge-box { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.merge-accounts { gap: 8px; }
/* An account with its Remove button beside it. The choice takes the room, and a long email wraps
   inside it and never pushes the button out of the dialog. */
.merge-account { display: flex; align-items: center; gap: 8px; }
.merge-account > .ask-choice { flex: 1 1 auto; min-width: 0; }
.merge-account .ask-choice-text { min-width: 0; overflow-wrap: anywhere; }
.merge-account-head { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.merge-remove { flex: none; }
.merge-add { display: flex; gap: 8px; }
.merge-add-input { flex: 1 1 auto; min-width: 0; }
/* What the merge does and what to check first. The notes and lists keep the dialog's own look; only
   the spacing is this block's, since they sit in a column here and not between a lead and a button. */
.merge-after { display: flex; flex-direction: column; gap: 8px; }
.merge-after .ask-facts { margin: 0; }
.merge-list { margin: 0; overflow-wrap: anywhere; }
/* Several merges on one account's card, a line each. */
.merge-banners { display: flex; flex-direction: column; gap: 8px; }
/* "Merged in" beside the link to the merge, in the email history's Reason column. */
.merged-in { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* The merged account's own column on a merge's page, which is the one to read. */
.merge-after-cell { font-weight: 600; }
@media (max-width: 620px) {
  .merge-account { flex-direction: column; align-items: stretch; gap: 4px; }
  .merge-remove { align-self: flex-end; }
  /* A merge's two small tables are headed by emails. On a phone the headings wrap, so the figures
     under them stay on screen and nothing has to be scrolled sideways for one number. */
  .merge-figures th { white-space: normal; overflow-wrap: anywhere; }
  .merge-figures th, .merge-figures td { padding-left: 12px; padding-right: 12px; }
}

/* ------------------------------------------------------------------ SEPA deposits */

.sdep-name, .sdep-result { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
/* A business's bank account beside its name: a label rather than a state, so it has no dot and is
   squarer than a pill. */
.sdep-business { display: inline-block; padding: 0 7px; font-size: 11px; font-weight: 600; line-height: 18px; letter-spacing: .02em; white-space: nowrap; color: var(--accent); background: var(--accent-soft); border-radius: 4px; }
.sdep-proofs { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.sdep-proofs .icon { width: 13px; height: 13px; }
.sdep-cs { color: var(--ink-3); }
.sdep-files { margin: 0; }
.sdep-card-note { padding-top: 12px; }
/* A fee rule written out ("0.50 + 2.5% to 100, then 1.5%") is a sentence, not a figure. */
.kv-v.sdep-rule { font-size: 14px; overflow-wrap: anywhere; }
/* An extra bank account's verification: a label like Business, in the info tone. */
.sdep-extra { display: inline-block; padding: 0 7px; font-size: 11px; font-weight: 600; line-height: 18px; letter-spacing: .02em; white-space: nowrap; color: var(--accent); background: var(--accent-soft); border-radius: 4px; }

/* ------------------------------------------------------------------ Multiple bank accounts */

.bka-card { overflow: hidden; }
.bka-card > .kv-grid { border-top: 1px solid var(--line); }
/* What a customer wrote keeps its own line breaks. */
.bka-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.bka-payments { display: flex; flex-direction: column; gap: 6px; }
.bka-payment { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; font: inherit; text-align: left; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.bka-payment:hover { border-color: var(--line-strong); }
.bka-payment:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The customer's own organising, read only: their badge's colour dot, the folder, the tags, the star. */
.bka-org { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.bka-badge, .bka-folder, .bka-tag { display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; font-size: 12px; line-height: 20px; white-space: nowrap; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; }
.bka-folder .icon { width: 12px; height: 12px; }
.bka-tag { border-radius: 4px; }
.bka-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ink-3); }
.bka-star { color: var(--warn); font-size: 14px; line-height: 1; }
.bka-notes { display: flex; flex-direction: column; gap: 6px; }
.bka-note { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.bka-note-at { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
/* Rows of two lines with buttons at the end. The panel's action cell is a flex box, which is not a table
   cell, so on a row taller than its buttons the cell stops short and its rule sits above the row's.
   Here it stays a cell and the buttons sit in it as a line. */
.sdep-rows .grid td.actions { display: table-cell; text-align: right; white-space: nowrap; vertical-align: middle; }
.sdep-rows .grid td.actions > * + * { margin-left: 6px; }
/* A pill over a line, sized to its words rather than to the line under it. */
.sdep-pilled > .pill { align-self: flex-start; }
/* What customers read, quoted as the announcement is, two side by side. */
.sdep-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 4px 14px 14px; }
.sdep-quote { display: flex; flex-direction: column; min-width: 0; }
.sdep-quote-k { margin: 10px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.announcement.sdep-said { flex: 1; margin: 0; font-size: 14px; }

@media (max-width: 620px) {
  /* The file's name keeps the line with its Open button; its size and time go under it. */
  .sdep-files .msg-file { flex-wrap: wrap; row-gap: 2px; }
  .sdep-files .msg-file .btn { order: 2; }
  .sdep-files .msg-file-size { order: 3; flex-basis: 100%; padding-left: 22px; }
  .sdep-quotes { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ PayPal action needed */

/* The Show filter on the left and the two prompts that work on any account on the right. */
.pp-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pp-top .filters { margin: 0; }
.pp-top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* A row's softlock, limitation and other states, wrapping rather than widening the table. */
.pp-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; max-width: 260px; }
/* The account with where its money goes under it. */
.pp-account { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pp-account .mono { font-size: 12.5px; }
/* The threshold's sentence with Change beside it, in the tile's foot. */
.pp-tile-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
/* Rows of two lines with buttons at the end, kept a table cell as SEPA deposits' are, so a tall row's
   rule does not sit above its buttons. A Withdraw row has five of them, so they wrap onto a second line
   inside the cell rather than running the table past the page. */
.pp-rows .grid td.actions { display: table-cell; white-space: normal; vertical-align: middle; min-width: 216px; padding-top: 8px; padding-bottom: 8px; }
.pp-rows .grid td.actions > * { margin: 3px 6px 3px 0; }
/* PayPal accounts' drawer pointing at this page, in the accent rather than the browser's blue. */
.pp-link { color: var(--accent); }

/* ------------------------------------------------------------------ Withdrawal accounts */

/* A tab's count that is a size rather than an alarm: how many Skrill accounts there are is not red. */
.page-tab-count.quiet { color: var(--ink-3); background: var(--panel-3); }
/* The PayPal accounts a withdrawal account is on, one line each with its rest and its own Unlink. */
.wa-links { display: flex; flex-direction: column; gap: 6px; }
.wa-link { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ Compliance */

/* The Add box: pasted lines, one per line, and Check under them. */
.cp-add { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.cp-add .page-actions { margin-top: 0; }
.cp-paste {
  width: 100%;
  min-height: 96px;
  padding: 8px 12px;
  font: inherit;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  resize: vertical;
}
.cp-paste:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
/* The customers who used a pasted line, one per line with their own Switch off. */
.cp-uses { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.cp-use { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cp-use .cell-stack { flex: 1 1 180px; min-width: 0; }
/* What they did with it is a sentence, and it wraps rather than running under the button beside it. */
.cp-use .cell-sub { white-space: normal; }

/* The cashback Cost tab (2026-11-01): the two views above a PayPal | SEPA | Total table. */
.cb-over-views { margin: 0 0 16px; }
.cb-over-views .cb-source { text-decoration: none; }
.cb-over td:first-child { white-space: normal; min-width: 160px; }
.cb-over-f { display: block; margin-top: 2px; font-weight: 400; }
.cb-over td.cb-over-off { color: var(--ink-3); }
.cb-over td.cb-over-crit, .cb-over tr.cb-over-strong td.cb-over-crit { color: var(--crit); }
.cb-over th:first-child { width: 40%; }
.cb-over tr.cb-over-quiet td { color: var(--ink-3); font-size: 12.5px; }
.cb-over tr.cb-over-strong td { font-weight: 600; color: var(--ink); }
.cb-over tr.cb-over-total td { border-top: 1px solid var(--line-strong); }

/* Records check: the tick on each open difference for Mark explained, and the tables inside its
   drawer, which sit flat in their section rather than as a card of their own. */
.rc-pick { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.rc-table .card { margin: 0; box-shadow: none; }
.rc-table .grid td, .rc-table .grid th { font-size: 12.5px; }
/* Broken records: a file as it is on disk, with a mark where the reader stopped and anything after the
   end of the record dimmed; NUL bytes are drawn as ␀. Wrapped anywhere, because a record is one long
   line of JSON. */
.br-raw {
  margin: 0; padding: 10px 12px; max-height: 320px; overflow: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-all;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.br-stop { color: var(--crit); font-weight: 600; background: var(--crit-soft); border-radius: 4px; }
.br-after { color: var(--ink-3); }
.br-raw-more > summary { cursor: pointer; font-size: 12.5px; color: var(--accent); margin-bottom: 8px; }
.br-log li { font-size: 12px; word-break: break-all; }

/* Dormant accounts: the tick on each row for Warn and Keep, the bar above the list that says how many
   are ticked, and the six settings tiles, which wrap to three a row rather than six thin ones. */
.dm-pick { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.dm-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dm-bulk > .page-actions { margin-top: 0; }
/* Rows of two lines with a tick at the start and buttons at the end. Both stay table cells, as SEPA
   deposits' do, so a tall row's rule does not sit above them, and the buttons wrap inside their cell
   rather than running the table past a laptop's width. */
.dm-rows .grid td.actions { display: table-cell; vertical-align: middle; }
.dm-rows .grid td.actions:first-child { width: 1%; padding-right: 0; }
.dm-rows .grid td.actions:last-child { text-align: right; white-space: normal; min-width: 140px; padding-top: 8px; padding-bottom: 8px; }
.dm-rows .grid td.actions:last-child > * { margin: 3px 0 3px 6px; }
.card > .tiles.dm-settings { margin: 14px; }
.dm-slot:empty { display: none; }
.dm-slot > .banner { margin: 12px 14px 0; }

/* ------------------------------------------------------------------ A customer's record, in tabs */

/* The line under a customer's email, on every tab: a pill for what is switched off, then first seen,
   last activity and the euro total with a dot between them, and the way back to the list at its end. */
.cust-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.cust-fact + .cust-fact::before { content: "·"; margin-right: 12px; color: var(--ink-3); }
.cust-back { margin-left: auto; }
/* The line about a ban sits between the status and the tabs. */
.cust-status + .banner { margin-bottom: 14px; }

/* The eight tabs stay in view under the top bar while a long tab scrolls. The strip runs to the page's
   edges and carries the page's own colour, so the cards pass under it rather than showing through.
   `top` here is the bar at one line; users.js measures the bar and sets it, since the bar wraps on a
   phone. Eight names fit one line from 1280px, which is what the tighter padding is for. */
.cust-tabs { position: sticky; top: var(--topbar-h); z-index: 5; margin: 0 -24px 16px; padding: 0 24px; background: var(--page); }
.cust-tabs .page-tab { white-space: nowrap; padding-left: 10px; padding-right: 10px; }

/* A tab's cards, a gap apart. */
.cust-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* The ban's banner and what the customer was told read as one notice on the Restrictions tab. */
.cust-body > .banner + .banner { margin-top: -6px; }

/* Overview: the money on the left, who they are and the settings asked about first on the right. */
.cust-ov { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cust-ov-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Six currencies across in the wider column, where the balances' own 150px cells would put the sixth
   on a line by itself. */
.cust-ov-main > .card > .kv-grid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
/* The button to every transaction is a link, because where it goes is an address. */
.card-head-end > a.btn { text-decoration: none; }
/* At a glance: each name is the way into the tab that changes it, and what is off sits under its pill. */
.cust-glance dt a { font-weight: 600; color: var(--accent); text-decoration: none; }
.cust-glance dt a:hover { text-decoration: underline; }
.cust-glance dd .pill { margin-right: 6px; }
.cust-glance dd > .kv-f { display: block; margin-left: 0; }

/* Two columns need the transactions' five columns beside 340px, so below 1180px the right-hand cards
   go under them. */
@media (max-width: 1180px) {
  .cust-ov { grid-template-columns: minmax(0, 1fr); }
}
/* The page's own padding is 16px from here down, so the strip's reach to the edges is too. */
@media (max-width: 900px) {
  .cust-tabs { margin: 0 -16px 14px; padding: 0 16px; }
}
/* A phone: the tabs stay on one line and slide sideways, and the way back sits with the facts. The
   facts wrap a line each there, and a dot that starts a line separates nothing. */
@media (max-width: 720px) {
  .cust-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cust-tabs::-webkit-scrollbar { display: none; }
  .cust-back { margin-left: 0; }
  .cust-fact + .cust-fact::before { content: none; }
}

/* ------------------------------------------------------------------ Sumsub identity checks */

/* The Sumsub tag under a customer's address on a SEPA deposit's row: a line of its own, a little clear
   of the address. */
.sdep-flow { margin-top: 3px; }
/* Buttons inside a drawer section, under the pairs they change: closer to them than a page's own. */
.dsec .page-actions.sumsub-actions { margin-top: 10px; }
/* The Identity checks card on a customer's page: the four figures ruled off from the head, as the Bank
   accounts card above it has them, and its table inset as part of the card. */
.sumsub-card { overflow: hidden; }
.sumsub-card > .kv-grid { border-top: 1px solid var(--line); }
.sumsub-card > .card { margin: 0 14px 14px; box-shadow: none; }
/* The five Sumsub limits in a prompt: three boxes and then two, so a figure like 30000.00 fits each at
   the prompt's width. */
.ask-row[data-group="five"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Platform wallets, the CoreSettle card: All three, then a tab for each merchant. Buttons, not links,
   because the tab is not in the address: the three were read with the page and switching asks nothing
   again. */
.cs-merchants { margin: 0 14px; }
button.page-tab { font-family: inherit; background: none; border-width: 0 0 2px; border-style: solid; border-color: transparent; border-radius: 0; cursor: pointer; }
button.page-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cs-merchant > .banner { margin: 12px 14px; }
.cs-merchant > .tiles { margin: 12px 14px; }
.cs-merchant > .card { margin: 0 14px 14px; box-shadow: none; }
/* All three: the last row of By account is the sum of the rows above it, so it is set apart and is
   not a row to press. */
.grid tr.sum td { background: var(--panel-2); font-weight: 600; border-top: 1px solid var(--line-strong); }
.grid tr.sum:hover td { background: var(--panel-2); }
/* On a phone the account's description goes, so its three figures are the first thing beside its name. */
@media (max-width: 700px) {
  .cs-by-account .grid th:nth-child(2), .cs-by-account .grid td:nth-child(2) { display: none; }
  .cs-by-account .grid th, .cs-by-account .grid td { padding-left: 10px; padding-right: 10px; }
}

/* ------------------------------------------------------------------ CoreSettle review officer */

/* A list of uploaded files, each with Open and Download (proof-files.js): the proof of a 5% payment,
   and what a customer uploaded for a 10 EUR verification transfer. A row is the file's picture, its
   name over what it is, and its buttons; a row with more than two buttons puts them on a line of their
   own, so a long file name is not squeezed between a picture and four buttons. */
.proof-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.proof-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.proof-file-pic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink-2); background: var(--panel-3); border-radius: 8px; }
.proof-file-pic .icon { width: 18px; height: 18px; }
.proof-file-text { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.proof-file-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.proof-file-name { font-weight: 600; }
.proof-file-meta { font-size: 12px; color: var(--ink-3); }
.proof-file-actions { flex: none; display: flex; flex-wrap: wrap; gap: 6px; }
.proof-file.wide .proof-file-actions { flex: 1 0 100%; }
/* The line over a list of files: "Files, 2 of 3". */
.proof-count { margin: 14px 0 8px; font-size: 13px; color: var(--ink-3); }
.proof-block > .proof-count:first-child { margin-top: 12px; }

/* 5% source of funds. Under the filters: when CoreSettle was last read, with Refresh and, for the top
   rank, the premade options. */
/* `.page-tabs` sets its own display, which beats the browser's `[hidden]`: the tabs are put away while
   there is no key to read payments with, and need saying so. */
.page-tabs[hidden] { display: none; }
.funds-read { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.funds-read-said { font-size: 12px; color: var(--ink-3); }
.funds-read .btn .icon { margin-right: 6px; vertical-align: -2px; }
.funds-none { margin: 14px; }
.funds-proof { max-width: 300px; }
.funds-proof .cell-sub { white-space: normal; }
/* Who left a mark and when, under their words in the banner that quotes them. */
.funds-by { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
/* Writing a proof: the box, the buttons that fill it, the files and the place a file is dropped. */
.funds-editor { display: flex; flex-direction: column; }
.funds-text { width: 100%; box-sizing: border-box; min-height: 0; resize: vertical; }
.funds-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.funds-fill-label, .funds-fill-none { font-size: 12px; color: var(--ink-3); }
.funds-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; transition: border-color .12s, background-color .12s; }
.funds-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.funds-drop-said { color: var(--ink-2); }
.funds-drop-rule { font-size: 12px; }
.funds-editor > .proof-files + .sepa-proof-empty { margin-top: 8px; }
/* The premade options in their prompt: a box and Remove for each, and a box and Add under them. */
.funds-options, .funds-options-rows { display: flex; flex-direction: column; gap: 8px; }
.funds-option { display: flex; gap: 8px; }
.funds-option > .ask-input { flex: 1; min-width: 0; }
/* A line at the left of a drawer's footer, before its buttons: "Draft saved 13 Nov, 21:40 UTC". */
.drawer-foot-note { margin-right: auto; align-self: center; font-size: 12.5px; color: var(--ink-3); }

/* Sumsub KYC review. The name entered for a bank account is what the officer compares, so it is the
   heaviest thing on its row. */
.kyc-name { font-weight: 600; }
/* A Sumsub reference is 32 characters in one piece, and stays in one line where its list has the room.
   Where the list would run off its card, the reference is the cell that gives: it breaks, and never to
   less than half a line, which is what keeps the last column of the waiting list on a laptop's screen
   whatever the names and banks beside it are. The line under a bank account's name gives the same way. */
.grid td .ss-ref { display: inline-block; min-width: 16ch; white-space: normal; overflow-wrap: anywhere; }
.grid td .ss-account { min-width: 20ch; }
.grid td .ss-account .cell-sub { white-space: normal; }
/* Under the Sumsub pairs: Open at Sumsub, then what happened to this bank account's earlier tries. */
.kyc-under { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.kyc-under > .page-actions { margin-top: 0; }
.kyc-earlier { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }

/* Manual verifications. The filters, and New verification under them at the left, where a KYC
   officer starts every working day. */
.mv-top { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mv-top > .filters { align-self: stretch; }
.page-actions.mv-new { margin-top: 0; }
/* A KYC officer's own note under the name it entered: one line of the list, however long it is. */
.grid td .mv-note { max-width: 62ch; white-space: normal; overflow-wrap: anywhere; }
/* What somebody typed, in a drawer: a note, a reason, a message. As it was typed, lines kept. */
.mv-text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* A block a drawer's section is built from by the page itself: the link, the pairs under it, then
   the button that marks it. */
.mv-block { display: flex; flex-direction: column; gap: 12px; }
.mv-block > .sepa-note, .mv-block > .kv { margin: 0; }
/* The link a KYC officer hands over: the whole address, selectable, with Copy link and Open beside
   it, and under it where the drawer is a phone's width. */
.mv-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mv-link-url { flex: 1 1 240px; min-width: 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; background: var(--panel-2); border-radius: var(--radius); user-select: all; }
.copy-labelled .icon { width: 15px; height: 15px; }
/* Buttons under what they belong to in a drawer: Open at Sumsub under its pairs, Mark completed
   under its link. Closer than a page's own row of buttons. */
.page-actions.mv-under { margin-top: 12px; }
.mv-block > .page-actions.mv-under { margin-top: 0; }
.page-actions.mv-under:empty { display: none; }
/* Earlier tries: each one a line, and a rejection's reason under it. */
.mv-tries { margin-top: 0; }
.mv-tries > .kyc-earlier:first-child { margin-top: 0; }
/* Governance, Admins: the figures of a KYC officer's own verifications, and the way to them. */

/* Account settings. Replacing the authenticator: the QR code beside the key for an app that cannot
   scan, and under it on a phone. */
.account-scan { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.account-scan .qr-img { border: 1px solid var(--line); }
.account-scan-key { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.account-key { padding: 8px 10px; font-size: 12.5px; overflow-wrap: anywhere; background: var(--panel-2); border-radius: var(--radius); user-select: all; }
.account-banner { margin: 12px 14px; }
/* A one-time link in a prompt (dialog.js, waitOnLink): the address, selectable, with Copy beside it. */
.ask-link-row { display: flex; align-items: center; gap: 8px; }
.ask-link { flex: 1; min-width: 0; padding: 10px 12px; font-size: 12.5px; overflow-wrap: anywhere; background: var(--panel-2); border-radius: var(--radius); user-select: all; }
/* Governance, Admins: the line under a review officer's "What it sees" closes the card. */
.card > .admins-sees-lead { padding-bottom: 14px; }

/* ------------------------------------------------------------------ Shopify gift cards */

/* The Codes tab opens with Import codes… and, beside it, what an import takes. */
.page-actions.gc-top { margin: 0 0 14px; }
.gc-hint { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
/* Find a code: the box and its button on one line, what the backend answered under them. */
.gc-find { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.gc-find-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-find-row .filter-input { flex: 1 1 260px; min-width: 0; font-family: var(--mono); }
.gc-found-slot:empty { display: none; }
.gc-found-slot > .banner { margin: 0; }
.gc-found { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.gc-found-said { flex: 1 1 220px; min-width: 0; color: var(--ink-2); }
.gc-found-act { margin-left: auto; }
/* Buttons under what they change, in a card's drawer and under the pasted list: closer to it than a
   page's own row of buttons. */
.page-actions.gc-drawer-actions { margin-top: 10px; }
/* The Owner's note in a card's drawer: the drawer's width, a few lines tall. */
.gc-note-box { display: flex; flex-direction: column; }
.gc-note { width: 100%; min-height: 64px; }
/* The import prompt: the list at a height that shows a screen of codes, the tags of a CSV as rows
   with a value and a currency to type, and what the backend read under them. */
.gc-paste-box { display: flex; flex-direction: column; }
.gc-paste { min-height: 150px; }
.gc-prices, .gc-summary, .gc-preview { display: flex; flex-direction: column; gap: 8px; }
.gc-prices .grid-scroll, .gc-preview .grid-scroll { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.gc-prices .grid td { vertical-align: middle; }
.gc-price { width: 110px; min-height: 34px; padding: 5px 10px; font-family: var(--mono); }
.gc-price-currency { min-height: 34px; padding: 5px 10px; }
/* The Settings tab's three cards of rules, whose cells hold words and not figures: the body face, a
   size down from a figure's. */
.gc-words .kv-v { font-family: inherit; font-size: 15px; }
/* A customer's own fee, where the row beside it shows the default: the accent, as "their own". */
.gc-own { font-weight: 600; color: var(--accent); }
/* The card on a customer's page: its figures ruled off from the head and its table inset, as the Bank
   accounts card above it has them. */
.gc-card { overflow: hidden; }
.gc-card > .kv-grid { border-top: 0; }
.gc-card > .sdep-rows > .card { margin: 0 14px 14px; box-shadow: none; }
.gc-card > .loading, .gc-card > .banner { margin: 14px; }

/* 5% source of funds, payment links: the button beside Refresh, a link in a row of the Payment links
   tab and in a payment's drawer, and the box that shows a link that was just made. */
.funds-read .pl-create { margin-left: 4px; }
.pl-url-row { display: inline-flex; align-items: center; gap: 6px; }
.pl-url { display: inline-block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; vertical-align: bottom; }
.pl-grid td { vertical-align: top; }
.pl-grid td:first-child .cell-sub, .pl-grid td:nth-child(4) .cell-sub { white-space: nowrap; }
.pl-grid td:nth-child(3) .cell-sub { display: block; max-width: 210px; white-space: normal; }
.pl-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.pl-open .icon { width: 13px; height: 13px; }
.pl-open:hover { text-decoration: underline; }
.pl-url-drawer { flex-wrap: wrap; }
.pl-url-drawer .mono { overflow-wrap: anywhere; }
.ask-made-facts { margin: 12px 0 0; }
.ask-made .ask-note { margin-top: 12px; }
.ask-made .ask-actions { margin-top: 16px; }
.ask-made a.btn { text-decoration: none; }
/* The top rank's eight tabs sit a little closer, so they stay on one line at 1440. */
.funds-tabs .page-tab { padding-left: 10px; padding-right: 10px; }
