/*
 * The console's one stylesheet. Every colour is a custom property from
 * tokens.css; every size is read off the admin artboards (2a for the shell,
 * 3a for the context row and the table). No build step: this file is served
 * as it is committed, cache-busted by filemtime in the layout.
 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

/*
 * The console is dark-only: say so, or the browser draws its light scrollbars
 * and form controls. Every scroller gets the thin token-coloured bar; a few
 * rules below set their own track to match their surface.
 */
html { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

body {
  background: var(--console-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

[hidden] { display: none !important; }

/* The page: a fixed bar, a fixed context row, and one scrolling body. */
.c-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- the bar (artboard 2a: 60px, 0 24px, gap 16) --- */

.c-bar {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--console-hairline);
}

.c-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.c-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* One of the two, always: green is an open shift and nothing else. */
.c-pill__dot--ok { background: var(--ok); }

.c-pill__dot--dim { background: var(--text-dim); }

.c-pill__chevron { color: var(--text-dim); flex-shrink: 0; }

/* The switcher owns the pill and hangs its menu off it. */
.c-switcher { position: relative; }

.c-switcher__menu {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 40;
  width: 300px;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-deep);
  border: 1px solid var(--palette-border);
  box-shadow: var(--palette-shadow);
}

.c-switcher__list { overflow-y: auto; padding: 8px 0; }

.c-switcher__more {
  flex-shrink: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--console-hairline);
  font-size: 12px;
  color: var(--console-faint);
}

.c-switcher__group {
  padding: 8px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--console-faint);
}

.c-switcher__row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.c-switcher__row:hover { background: var(--row-highlight); }

.c-switcher__row--current { color: var(--text); font-weight: 600; background: var(--row-highlight); }

.c-switcher__meta { margin-left: auto; font-size: 12px; color: var(--console-faint); }

.c-search {
  flex: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--surface-deep);
  border: 1px solid var(--hairline);
  color: var(--console-faint);
  font-size: 14px;
  text-align: left;
}

.c-search__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--console-faint);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.c-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.c-clock { font-family: var(--mono); }

.c-live { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); }
.c-live[data-state="connected"] { background: var(--ok); }
.c-live[data-state="connecting"], .c-live[data-state="unavailable"],
.c-live[data-state="failed"], .c-live[data-state="disconnected"] { background: var(--warn); }

.c-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}

/* The avatar is the handle on the account menu, so the menu hangs off it. */
.c-account { position: relative; }

.c-account__menu {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 40;
  width: 232px;
  border-radius: 12px;
  background: var(--surface-deep);
  border: 1px solid var(--palette-border);
  box-shadow: var(--palette-shadow);
  overflow: hidden;
}

.c-account__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--console-hairline);
}

.c-account__name { font-size: 14px; font-weight: 600; color: var(--text); }

.c-account__email {
  font-size: 12px;
  color: var(--console-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-account__out {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-soft);
  text-align: left;
}

a.c-account__out { text-decoration: none; }

.c-account__out:hover { background: var(--row-highlight); color: var(--text); }

/* --- the context row (artboard 3a: 52px) --- */

.c-context {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-bottom: 1px solid var(--console-hairline-soft);
  font-size: 13px;
  color: var(--text-muted);
}

.c-context__spacer { flex: 1; }

.c-context__rule { width: 1px; height: 20px; background: var(--hairline); margin: 0 4px; }

/* The right-aligned mono legend a context row ends on (3a: "j / k to move
   · ⌘E export"), plain text and no keycap border -- .c-key is the bar's
   own bordered chip and is a different thing. */
.c-context__legend { font-family: var(--mono); font-size: 12px; color: var(--console-faint); }

/* --- body, main, rail --- */

.c-body { flex: 1; display: flex; min-height: 0; }

.c-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.c-rail {
  width: 340px;
  flex-shrink: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--console-hairline);
}

.c-rail__head {
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--console-hairline);
}

.c-rail__body { flex: 1; overflow-y: auto; }

.c-rail__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.c-rail__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--console-hairline-soft);
}

/* --- the empty state, before an organization has an event --- */

/* A Livewire component's root element sits between .c-main and its content,
   so the root is what has to carry the height for anything inside it to be
   able to centre against the page. */
.c-fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.c-empty {
  margin: auto;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.c-empty__title { font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }

.c-empty__body { font-size: 14px; color: var(--text-muted); line-height: 20px; }

.c-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-soft);
  background: var(--surface-deep);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
}

/* --- components (the set Task 3 renders; sized from the artboards) --- */

.c-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--console-faint);
}

.c-money { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.c-btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }

.c-btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.c-btn--warn { background: var(--warn); color: var(--on-accent); font-weight: 700; }

.c-btn--ghost { background: none; border: 1px solid var(--border); color: var(--text-muted); }

.c-btn[disabled], .c-btn[aria-disabled="true"] {
  background: var(--disabled);
  color: var(--disabled-text);
  cursor: not-allowed;
}

.c-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
}

.c-chip__count { color: var(--text-dim); font-weight: 500; }

.c-chip--active {
  padding: 0 14px;
  border-color: transparent;
  background: var(--chip-active);
  color: var(--text);
  font-weight: 600;
}

.c-chip--accent {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 600;
}

.c-chips {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-deep);
}

.c-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--border);
  color: var(--text-muted);
}

.c-badge--ok { background: var(--ok); color: var(--on-accent); }

.c-badge--warn { background: var(--warn); color: var(--on-accent); }

.c-badge--accent { background: var(--accent); color: var(--on-accent); }

.c-badge--muted { background: var(--border); color: var(--text-muted); }

.c-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-deep);
  border-left: 3px solid var(--border-dashed);
}

.c-alert--warn { border-left-color: var(--warn); }

.c-alert--accent { border-left-color: var(--accent); }

.c-alert__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.c-alert__title { font-size: 15px; font-weight: 600; }

.c-alert__detail { font-size: 13px; color: var(--text-dim); }

.c-alert__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

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

.c-table th {
  padding: 10px 24px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--console-faint);
  border-bottom: 1px solid var(--console-hairline-soft);
}

.c-table__sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.c-table__sort:hover, .c-table__sort--active { color: var(--text); }
.c-table__sort span { font-size: 12px; letter-spacing: 0; }
.c-table__num .c-table__sort { flex-direction: row-reverse; }

.c-table td {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--console-hairline-soft);
}

/* The stack a page puts its ledger-rows in (3a's Lines panel: an 11px gap
   between "3 × Tallboy" and "Tax · alcohol") -- the row itself carries no
   height or border of its own. */
.c-ledger {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.c-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.c-tiles {
  /* Wraps rather than squeezes: with the sidebar and the rail open the main
     column is narrow, and a figure must never run into its neighbour. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-deep);
}

.c-tile {
  min-width: 0;
  container-type: inline-size;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Artboard 2a's fourth tile: money in flight, which is the one number on the
   strip that is not yet true. It gets its own fill and its own label colour
   so it reads as unfinished without shouting. */
.c-tile--live { background: var(--tile-live-bg); }

.c-tile--live .c-eyebrow, .c-tile--live .c-tile__meta { color: var(--tile-live-label); }

.c-tile--live .c-tile__value { color: var(--warn); }

.c-tile__value {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1.2px;
  /* A figure is one line, always: a tile narrower than its figure shrinks
     the type (below) rather than breaking "$629.00" into "$629.0" and "0". */
  white-space: nowrap;
}

@container (max-width: 250px) { .c-tile__value { font-size: 30px; line-height: 34px; letter-spacing: -0.8px; } }
@container (max-width: 200px) { .c-tile__value { font-size: 24px; line-height: 28px; letter-spacing: -0.5px; } }

.c-tile__meta { font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }

/* --- station rows (Home; artboard 2a's Stations list) --- */

.c-station-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-stations {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
}

.c-station-row {
  background: var(--surface-deep);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.c-station-row__label {
  /* Wide enough for "On the map · ±50 m · since yesterday 11:05 pm" and
     "Sam Rivera · opened 12:16 pm" on one line each. Only a long staff name
     gives way, with an ellipsis; the opened time is always whole. */
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.c-station-row__label > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c-station-row__name { font-size: 17px; font-weight: 600; }

.c-station-row__meta { font-size: 12px; color: var(--text-dim); }
.c-station-row__label > .c-station-row__shift { display: flex; min-width: 0; }
.c-station-row__staff { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.c-station-row__opened { flex-shrink: 0; }
/* At full width the spot is one line; where the column narrows it breaks
   between its parts, never inside one, so the fix time is never cut. */
.c-station-row__label > .c-station-row__where { white-space: normal; }
.c-station-row__where > * { white-space: nowrap; }
.c-station-row__where a { color: var(--accent); text-decoration: none; }
.c-station-row__where a:hover { text-decoration: underline; }

.c-station-row__spacer { flex: 1; }

.c-station-row__money { width: 96px; flex-shrink: 0; text-align: right; }

.c-station-row__amount { font-family: var(--mono); font-size: 20px; font-weight: 600; }

.c-station-row__state { width: 230px; flex-shrink: 0; text-align: right; }

/* --- the ⌘K palette (artboard 2a: a scrim, and a 680px panel 96px down) --- */

.c-palette {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  /* The panel is as tall as its rows: without this it stretches to the
     scrim and every search looks like it found 60vh of results. */
  align-items: flex-start;
  padding: 96px 24px 24px;
  background: var(--scrim);
}

/* The artboard's panel is 412px tall; this one is as tall as its rows and
   stops at 60vh, so a long list scrolls inside the panel rather than off
   the screen. */
.c-palette__panel {
  width: 680px;
  max-width: 100%;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-deep);
  border: 1px solid var(--palette-border);
  box-shadow: var(--palette-shadow);
}

.c-palette__search {
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--console-hairline);
}

.c-palette__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  /* The artboard draws the caret as a 1.5px accent bar after the query; a
     real input has a real one, and this is its colour. */
  caret-color: var(--accent);
}

.c-palette__input::placeholder { color: var(--text-dim); }

.c-palette__list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 0; }

/* The console's one eyebrow style, in the palette's own box: .c-eyebrow
   brings the 11px/700/1.2px uppercase, this brings the padding and makes
   the span a row of its own. */
.c-palette__group {
  display: block;
  padding: 14px 20px 8px;
}

/* The first eyebrow is already under the query row's border and gets the
   artboard's tighter top; the later ones open a gap after the group above. */
.c-palette__group:first-child { padding-top: 4px; }

.c-palette__row {
  width: 100%;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-soft);
  text-align: left;
}

.c-palette__row--on { background: var(--row-highlight); color: var(--text); }

.c-palette__row--on .c-palette__icon { color: var(--accent); }

/* A refused row is still a row you can move onto -- reading why it is
   refused is the point of drawing it -- but the accent icon means "Enter
   does this", and Enter does not do this. */
.c-palette__row[aria-disabled="true"] { color: var(--text-dim); cursor: not-allowed; }

.c-palette__row[aria-disabled="true"] .c-palette__icon { color: var(--text-dim); }

.c-palette__icon { flex-shrink: 0; color: var(--text-dim); }

.c-palette__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c-palette__hint { flex-shrink: 0; font-size: 13px; color: var(--console-faint); }

.c-palette__enter {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--console-faint);
  border: 1px solid var(--palette-border);
  border-radius: 5px;
  padding: 2px 6px;
}

.c-palette__empty { padding: 14px 20px; font-size: 14px; color: var(--text-dim); }

/* A command answers in the panel, in place of the list: a confirmation, a
   form, or the one drawing of a secret. Column, so the QR and the two
   monospace blocks stack the way the list's rows do. */
.c-palette__step {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.c-palette__lede { margin: 0; line-height: 20px; color: var(--text-soft); }

.c-palette__lede strong { color: var(--text); font-weight: 600; }

.c-palette__note { margin: 0; font-size: 12px; line-height: 18px; color: var(--console-faint); }

/* The QR is drawn with its own white backing -- a code on this page's
   background is a code no camera reads -- so this only centres it and keeps
   it inside the panel.

   flex: none is load-bearing. The step is a flex column that stops at the
   panel's 60vh, and a flex item's default flex-shrink: 1 lets this box be
   squashed to make the rest fit -- while the svg inside keeps its 220px and
   overflow: hidden crops it. The result is a wide letterbox of a QR: still
   drawn, still square in the markup, and unreadable by any camera. A code
   that is cropped is not a smaller code, it is a different one. */
.c-palette__qr {
  align-self: center;
  flex: none;
  width: 220px;
  height: 220px;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.c-palette__qr svg { display: block; width: 220px; height: 220px; }

/* The code, and its Show larger under it (console/partials/station-qr). */
.c-station-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }

/* Show larger: the code alone over the page, as big as the window allows.
   Black on the SVG's own white quiet zone is the contrast; the page behind
   is the console's darkest, so nothing near the code competes with it. */
.c-station-qr__large {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  cursor: pointer;
}

.c-station-qr__code { line-height: 0; }

.c-station-qr__code svg {
  display: block;
  width: min(calc(100vw - 48px), calc(100vh - 96px));
  height: min(calc(100vw - 48px), calc(100vh - 96px));
}

.c-station-qr__close { font-size: 14px; color: var(--text-soft); }

.c-palette__secret { display: flex; flex-direction: column; gap: 6px; }

.c-palette__secret-label { font-size: 12px; color: var(--text-dim); }

/* Long, and every character of it load-bearing: wrapped rather than
   truncated, and in the mono face so an O and a 0 are told apart by anyone
   typing it onto a phone. */
.c-palette__secret code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text);
  word-break: break-all;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.c-palette__form { display: flex; flex-direction: column; gap: 12px; }

.c-palette__actions { display: flex; gap: 10px; }

.c-palette__foot {
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-top: 1px solid var(--console-hairline);
  font-size: 12px;
  color: var(--console-faint);
}

.c-palette__foot-spacer { flex: 1; }

/* --- the pages that stand outside the shell: login, set a password --- */

.c-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.c-auth__card {
  width: 380px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.c-auth__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.c-auth__lede { font-size: 14px; color: var(--text-muted); line-height: 20px; margin: 0; }

.c-auth__form { display: flex; flex-direction: column; gap: 14px; }

/* The one sentence a reset request always answers, and the quiet way back. */
.c-auth__status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 18px;
}

.c-auth__link { align-self: center; font-size: 13px; color: var(--text-muted); text-decoration: none; }

.c-auth__link:hover, .c-auth__link:focus-visible { color: var(--text); text-decoration: underline; }

.c-field { display: flex; flex-direction: column; gap: 6px; }

.c-field__label { font-size: 13px; color: var(--text-muted); }

.c-input {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  width: 100%;
}

.c-input::placeholder { color: var(--text-dim); }

.c-input:focus { border-color: var(--accent); outline: none; }

.c-errors {
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  border-radius: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* The design page. Its own bar and bands; every colour comes from a token. */
.c-design__bar { gap: 16px; }
.c-design__title { font-size: 15px; font-weight: 600; color: var(--text); }
.c-design__spacer { flex: 1; }
.c-design { display: flex; flex-direction: column; gap: 28px; padding-bottom: 48px; }
.c-design__band { display: flex; flex-direction: column; gap: 12px; }
.c-design__band-head { display: flex; align-items: baseline; gap: 10px; }
.c-design__note { font-size: 14px; color: var(--text-muted); }

.c-design__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.c-design__swatch { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 9px; background: var(--surface-deep); }
.c-design__chip { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--hairline); flex: none; }
.c-design__names { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--text-soft); min-width: 0; }
.c-design__hex { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.c-design__numbers { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text-soft); }
.c-design__numbers th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--console-faint); padding: 0 12px 8px 0; }
.c-design__numbers td { padding: 7px 12px 7px 0; border-top: 1px solid var(--console-hairline-soft); }

.c-design__pairs { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 13px; color: var(--text-soft); }
.c-design__pairs dt, .c-design__pairs dd { margin: 0; padding: 7px 12px 7px 0; border-top: 1px solid var(--console-hairline-soft); }

.c-design__specimens { display: flex; flex-direction: column; gap: 14px; }
.c-design__specimen { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-deep); }
.c-design__stage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c-design__stage--column { flex-direction: column; align-items: stretch; }
.c-design__caption { font-family: var(--mono); font-size: 12px; color: var(--console-faint); }

.c-design__effects { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--text-soft); }
.c-design__effects li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--hairline); border-radius: 9px; }

/* Operations feed, 2a. Proportions follow the artboard; every fill uses
   the shared palette so a warning means the same thing on phone and console. */
.c-operations .c-tile .c-eyebrow { font-size: 11px; }
.c-attention-group { display: flex; flex-direction: column; gap: 10px; }
.c-attention-count { margin-left: 10px; padding: 1px 7px; border-radius: 9px; background: var(--warn); color: var(--console-bg); font-size: 12px; }
.c-attention-sentence { display: flex; gap: 14px; align-items: center; border-radius: 12px; padding: 16px 18px; background: var(--surface-deep); border-left: 3px solid var(--warn); }
.c-attention-sentence--accent { border-left-color: var(--accent); }
.c-attention-sentence--muted { border-left-color: var(--border-dashed); }
.c-attention-sentence__copy { flex: 1; min-width: 0; }
.c-attention-sentence__title { font-size: 15px; font-weight: 600; }
.c-attention-sentence__detail { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.c-operations-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.c-operations-heading > span { font-size: 13px; color: var(--console-faint); }
.c-operations-legend > span { white-space: nowrap; }
.c-operations-legend__key { display: inline-block; width: 10px; height: 4px; border-radius: 2px; margin: 0 5px 2px 2px; vertical-align: middle; }
.c-operations-legend__key--current { background: var(--accent); }
.c-operations-legend__key--warn { background: var(--tile-live-label); }
.c-interval-strip { flex: 1; min-width: 48px; display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.c-interval-strip__bar { flex: 1; border-radius: 2px; background: var(--border-dashed); }
.c-interval-strip__bar--current { background: var(--accent); }
.c-interval-strip__bar--warn { background: var(--tile-live-label); }
.c-station-row--unused { opacity: .6; }
.c-operations-warn { color: var(--warn); }
.c-operations-feed { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.c-feed-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; font-size: 13px; border-bottom: 1px solid var(--console-hairline-soft); }
.c-feed-row__time { font-family: var(--mono); color: var(--console-faint); width: 38px; flex-shrink: 0; }
.c-feed-row__summary { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.c-feed-row__amount { font-family: var(--mono); text-align: right; }
.c-feed-row--warn { background: var(--tile-live-bg); }
.c-feed-row--warn .c-feed-row__amount { color: var(--warn); }
.c-feed-row--comp { color: var(--text-muted); }
.c-operations-empty { padding: 18px 20px; font-size: 13px; color: var(--text-dim); }
/* The row's fixed columns need about 780px; below 1340 the strip would be
   squeezed to a smear, so seen and last sale drop to their own line. */
@media (max-width: 1340px) {
  .c-operations .c-station-row { gap: 12px; padding: 16px 12px; flex-wrap: wrap; }
  .c-operations .c-station-row__label { width: 260px; }
  .c-operations .c-station-row__state { width: 100%; display: flex; justify-content: flex-end; gap: 12px; }
}
@media (max-width: 1100px) {
  .c-operations .c-tile { padding: 16px 12px; }
  .c-operations .c-tile__value { font-size: 30px; }
}
@media (max-width: 760px) {
  .c-body:has(.c-operations) { flex-direction: column; overflow-y: auto; }
  .c-body:has(.c-operations) .c-main { overflow: visible; flex: none; padding: 18px 14px; }
  .c-body:has(.c-operations) .c-rail { width: 100%; min-height: 300px; border-left: 0; border-top: 1px solid var(--console-hairline); }
  .c-operations .c-tiles { flex-wrap: wrap; }
  .c-operations .c-tile { flex: 1 1 40%; }
  .c-attention-sentence { flex-wrap: wrap; }
  .c-attention-sentence__copy { flex-basis: 100%; }
  .c-operations-heading { flex-wrap: wrap; }
  /* Phone: name and details across the top, bars and money beneath, then
     seen and last sale on their own line, each whole. */
  .c-operations .c-station-row__label { width: 100%; }
  .c-operations .c-station-row__state { justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; text-align: left; }
}
@media (max-width: 760px) {
  .c-page:has(.c-operations) .c-bar { gap: 10px; padding: 0 14px; }
  .c-page:has(.c-operations) .c-pill { max-width: 150px; }
  .c-page:has(.c-operations) .c-search { flex: none; width: 36px; min-width: 36px; padding: 0 10px; }
  .c-page:has(.c-operations) .c-search__label,
  .c-page:has(.c-operations) .c-search .c-key,
  .c-page:has(.c-operations) .c-cluster > span:not(.c-live):not(.c-clock) { display: none; }
  .c-page:has(.c-operations) .c-cluster { gap: 10px; margin-left: auto; }
}

/* Refunds describe a changed payment outcome without inventing a net sale.
   A full refund retires the summary; a partial refund leaves the sale legible. */
.c-feed-row--refunded { color: var(--text-muted); }
.c-feed-row__refund { display: block; color: var(--warn); }

/* BEGIN EVENT SETUP — design 3c. Keep this block together for parallel console work. */
/* The page is one surface: .c-main scrolls, the context row with the tabs
   stays put above it, and an anchor a tab jumps to lands below the main's
   own top padding instead of flush against the tabs. */
.c-setup { gap: 18px; overflow: visible; }
.c-setup:has(.c-setup-cards, .c-setup-rollup) { flex: none; }
.c-setup [id] { scroll-margin-top: 22px; }
.c-body:has(.c-setup) .c-main { overflow-y: auto; }
.c-setup-tabs { display: flex; align-items: stretch; gap: 22px; height: 100%; white-space: nowrap; }
.c-setup-tabs a { display: flex; align-items: center; text-decoration: none; color: var(--text-dim); font-size: 14px; }
.c-setup-tabs a[aria-current] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px var(--accent); }
.c-setup-dates { margin-left: auto; font-size: 12px; color: var(--console-faint); text-align: right; }
/* Two independent columns: a grid of two stacks, never a grid of cards,
   so one column's tall card cannot open a hole beside it in the other. */
.c-setup-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.c-setup-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.c-setup-tenders { display: contents; }
.c-setup-savebar { display: flex; flex-direction: column; gap: 12px; padding: 0 22px; }
.c-setup-savebar .c-setup-note, .c-setup-card > .c-setup-note { margin: 0; }
.c-setup-rollup-line { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.c-setup-rollup-line a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.c-setup-rollup-line a:hover { text-decoration: underline; }
.c-setup-rollup-line .c-money { color: var(--text-muted); }
.c-setup-card { background: var(--surface-deep); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.c-setup-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c-setup-card__heading > span, .c-setup small, .c-setup-note { color: var(--console-faint); font-size: 12px; line-height: 1.5; }
.c-setup fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.c-setup-stack { display: flex; flex-direction: column; gap: 16px; }
.c-setup-more > summary { align-self: flex-start; cursor: pointer; list-style: none; }
.c-setup-more > summary::-webkit-details-marker { display: none; }
.c-setup-more > summary::marker { content: ""; }
.c-setup-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.c-setup-more:not([open]) > summary .c-setup-more__open, .c-setup-more[open] > summary .c-setup-more__closed { display: none; }
.c-setup-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.c-setup-toggle > span:first-child { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.c-setup-toggle strong { font-size: 15px; font-weight: 500; }
.c-setup-toggle small { font-size: 12px; color: var(--console-faint); }
.c-setup-toggle input, .c-setup-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-setup-toggle__track { width: 40px; height: 23px; border-radius: 12px; background: var(--disabled); padding: 2px; flex: none; }
.c-setup-toggle__track::after { content: ''; display: block; width: 19px; height: 19px; border-radius: 50%; background: var(--console-bg); }
.c-setup-toggle input:checked + span { background: var(--accent); }
.c-setup-toggle input:checked + span::after { margin-left: 17px; }
.c-setup-toggle input:focus-visible + span, .c-setup-segment input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.c-setup-toggle input:disabled + span, .c-setup button:disabled { opacity: .55; cursor: default; }
/* The segment is a fieldset: it wears none of the browser's fieldset frame, inside a setup card or not. */
.c-setup-segment { border: 0; padding: 0; margin: 0; min-width: 0; }
.c-setup-segment legend { font-size: 13px; color: var(--text-muted); padding: 0 0 6px; }
.c-setup-segment > div { display: flex; background: var(--surface); border-radius: 9px; gap: 2px; padding: 3px; }
.c-setup-segment label { flex: 1; position: relative; cursor: pointer; }
.c-setup-segment label span { display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px; border-radius: 7px; font-size: 13px; text-align: center; color: var(--text-muted); }
.c-setup-segment input:checked + span { background: var(--chip-active); color: var(--text); font-weight: 600; }
.c-setup-tips { display: flex; gap: 7px; }
.c-setup-tips > label { display: flex; align-items: center; flex: 1; min-width: 0; background: var(--surface); border-radius: 9px; padding: 0 7px; }
.c-setup-tips input { width: 100%; min-width: 0; padding: 8px 1px; background: transparent; border: 0; color: var(--text); font: 600 15px var(--sans); }
.c-setup-tips label button { background: transparent; border: 0; color: var(--text-dim); cursor: pointer; }
.c-setup-add { background: transparent; border: 1px dashed var(--border-dashed); border-radius: 9px; padding: 10px 14px; color: var(--text-dim); cursor: pointer; text-align: left; }
.c-setup-dollar { display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.c-setup-dollar .c-input { font: 600 19px var(--mono); text-align: right; width: 100%; }
.c-setup-cap-bar { height: 6px; background: var(--hairline); border-radius: 3px; margin-top: -9px; }
.c-setup-cap-bar span { display: block; height: 100%; width: 22%; background: var(--accent); border-radius: inherit; }
.c-setup-cap-bar--held span { width: 48%; }
.c-setup-exposure { background: var(--tile-live-bg); padding: 13px 15px; border-radius: 10px; font-size: 13px; color: var(--accent); }
.c-setup-exposure p { font-size: 12px; color: var(--tile-live-label); margin: 5px 0; line-height: 1.5; }
.c-setup-divider { height: 1px; background: var(--hairline); }
.c-setup-error, .c-setup-warn { color: var(--warn); }
.c-setup-error { font-size: 13px; }
.c-setup-ok { color: var(--ok); }
.c-setup-station { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-bottom: 1px solid var(--console-hairline); padding: 13px 0; }
.c-setup-station__edit { display: grid; grid-template-columns: 96px 104px 64px 1fr; align-items: center; flex: 1; min-width: 0; gap: 16px; border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; font: 14px var(--sans); color: var(--text-dim); }
.c-setup-station__edit strong { color: var(--text); }
.c-setup-station__edit > * { overflow-wrap: anywhere; }
.c-setup-muted { color: var(--text-muted); }
.c-setup-station__token { font-size: 13px; font-weight: 600; white-space: nowrap; }
.c-setup-station > .c-btn { min-width: 64px; }
.c-setup-station__where, .c-setup-station__seen { flex-basis: 100%; margin-top: -8px; font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }
.c-setup-station__where a, .c-setup-station__where span { white-space: nowrap; }
.c-setup-station__where a { color: var(--accent); text-decoration: none; }
.c-setup-station__where a:hover { text-decoration: underline; }
.c-setup-vendor { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-bottom: 1px solid var(--console-hairline); padding: 13px 0; }
.c-setup-vendor__edit { display: grid; grid-template-columns: minmax(96px, 1.4fr) 132px 1fr 150px; align-items: center; flex: 1; min-width: 0; gap: 16px; border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; font: 14px var(--sans); color: var(--text-dim); }
.c-setup-vendor__edit strong { color: var(--text); }
.c-setup-vendor__edit > * { overflow-wrap: anywhere; }
.c-setup-vendor__ref { font-family: var(--mono); font-size: 13px; }
.c-setup-vendor--inactive .c-setup-vendor__edit strong { color: var(--text-dim); }
.c-setup-vendor > .c-btn { min-width: 64px; }
.c-setup-editor { padding: 18px 0; border-bottom: 1px solid var(--border); }
.c-setup-editor__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px !important; }
.c-setup-editor__actions { grid-column: 1 / -1; }
/* The Roll-up tab: the figures on one side, what is held back and the CSV
   on the other; one column wherever it is narrower than two cards. */
.c-setup-rollup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1180px; }
.c-setup-rollup__column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.c-setup-rollup .c-setup-warn .c-ledger-row__label, .c-setup-rollup .c-setup-warn .c-ledger-row__value { color: var(--warn); }
.c-setup-rollup .c-ledger-row__value { font-family: var(--mono); }
.c-setup-rollup .c-setup-note { margin: 0; }
.c-setup-rollup__vendors { grid-column: 1 / -1; min-width: 0; }
.c-setup-rollup__vendors .c-table th, .c-setup-rollup__vendors .c-table td { padding: 0 12px; }
.c-setup-rollup__vendors .c-table th { padding-top: 6px; padding-bottom: 10px; }
.c-setup-rollup__vendors .c-table th:first-child, .c-setup-rollup__vendors .c-table td:first-child { padding-left: 0; }
.c-setup-rollup__vendors .c-table th:last-child, .c-setup-rollup__vendors .c-table td:last-child { padding-right: 0; }
.c-setup-rollup__vendors .c-table__num { text-align: right; white-space: nowrap; }
.c-setup-rollup__vendors .c-table .c-money { font-family: var(--mono); }
.c-setup-rollup__vendor { color: var(--text); }
.c-setup-rollup__ref { color: var(--console-faint); font-family: var(--mono); font-size: 12px; }
.c-setup-logo { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 16px; background: var(--surface); border-radius: 10px; }
.c-setup-logo img { display: block; max-height: 64px; max-width: 100%; width: auto; height: auto; }
.c-setup-logo--empty { border: 1px dashed var(--border-dashed); background: transparent; }
.c-setup-logo--empty span { font-size: 12px; line-height: 1.5; color: var(--console-faint); text-align: center; }
.c-setup-logo__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.c-setup-file { font: 13px var(--sans); color: var(--text-dim); max-width: 100%; }
.c-setup-file::file-selector-button { font: 600 13px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.c-setup-confirm { border: 1px solid var(--accent-border); padding: 14px; border-radius: 10px; font-size: 13px; }
.c-setup-location { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 16px; align-items: center; padding: 16px 0 10px; border-bottom: 1px solid var(--border); }
.c-setup-location__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.c-setup-location__name strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.c-setup-location__name small { flex-basis: 100%; }
.c-setup-location .c-setup-toggle strong { font-size: 14px; }
.c-setup-locations { display: flex; flex-direction: column; gap: 12px; }
.c-setup-locations__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.c-setup-locations__row > .c-btn { margin-top: 24px; }
.c-setup-locations__row > .c-field { flex: 1 1 320px; min-width: 0; }
.c-setup-editor__fields > .c-setup-locations__row, .c-setup-editor__fields > .c-setup-new-location { grid-column: 1 / -1; }
.c-setup-location + .c-setup-confirm { margin: 12px 0; }
.c-setup-field select.c-input { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.c-setup-textarea { height: auto; resize: vertical; min-height: 64px; line-height: 1.5; padding-top: 10px; padding-bottom: 10px; font: inherit; }
.c-setup-checks { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.c-setup-checks legend { padding: 0; margin-bottom: 2px; }
.c-setup-checks__item { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); font-size: 14px; }
.c-setup-checks__item input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.c-setup-checks small { color: var(--console-faint); font-size: 12px; line-height: 1.5; }
.c-setup-new-location { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; border: 1px solid var(--accent-border); padding: 14px; border-radius: 10px; }
.c-setup-new-location > p, .c-setup-new-location > .c-setup-new-location__wide { grid-column: 1 / -1; margin: 0; }
.c-setup-new-location__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1250px) { .c-setup-cards { grid-template-columns: minmax(0, 1fr); } .c-setup-column { display: contents; } .c-setup-station__edit, .c-setup-vendor__edit { grid-template-columns: 1fr 1fr; gap: 7px; } .c-setup-dates { max-width: 280px; } }
@media (max-width: 800px) {
  .c-context:has(.c-setup-tabs) { height: auto; flex-wrap: wrap; padding: 0 14px 12px; }
  .c-setup-tabs { overflow-x: auto; width: 100%; gap: 18px; min-height: 48px; }
  .c-setup-dates { margin-left: 0; text-align: left; max-width: none; }
  .c-body:has(.c-setup) { flex-direction: column; overflow-y: auto; }
  .c-body:has(.c-setup) .c-main { overflow: visible; flex: none; padding: 18px 14px; }
  .c-setup-card { padding: 18px 16px; }
  .c-setup-station { flex-wrap: wrap; gap: 10px; }
  .c-setup-station__edit, .c-setup-vendor__edit { flex-basis: 100%; }
  .c-setup-editor__fields { grid-template-columns: 1fr; }
  .c-setup-location { grid-template-columns: 1fr; gap: 10px; }
  .c-setup-locations__row > .c-btn { margin-top: 0; }
  .c-setup-new-location { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .c-setup-rollup { grid-template-columns: minmax(0, 1fr); }
  .c-page:has(.c-setup) .c-bar { padding: 0 14px; gap: 10px; }
  .c-page:has(.c-setup) .c-search { min-width: 36px; flex: 1; }
  .c-page:has(.c-setup) .c-search__label, .c-page:has(.c-setup) .c-key { display: none; }
  .c-page:has(.c-setup) .c-cluster > span { display: none; }
}
/* Event settings: a section list beside the cards (Settings.dc.html). The
   list is 220px and sticks; the pane scrolls with the page. Below 760px the
   list is a row of chips above the cards that scrolls sideways. */
.c-body .c-main:has(> .c-setup > .c-settings) { padding: 0; gap: 0; }
.c-settings { flex: 1; min-height: 0; display: flex; align-items: stretch; min-width: 0; }
.c-settings__list { width: 220px; flex-shrink: 0; box-sizing: border-box; border-right: 1px solid var(--hairline); }
.c-settings__sticky { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 24px 12px 24px 24px; }
.c-settings__title { margin: 0 12px 14px; font-size: 22px; font-weight: 700; color: var(--text); }
.c-settings__row { height: 36px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-soft); text-decoration: none; white-space: nowrap; }
.c-settings__row:hover { background: var(--row-highlight); color: var(--text); }
.c-settings__row[aria-current] { background: var(--row-highlight); color: var(--text); font-weight: 600; }
.c-settings__count { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--warn); color: var(--on-accent); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.c-settings__pane { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 18px; }
.c-settings__pane--padded { padding: 24px; box-sizing: border-box; }
.c-settings__heading { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }
.c-tax-head { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.c-tax-head .c-setup-note { margin: 0; }
.c-settings .c-setup-cards { grid-template-columns: minmax(0, 1fr); }
.c-settings .c-setup-cards > .c-setup-card, .c-settings .c-setup-cards > div { min-width: 0; }
@media (max-width: 760px) {
  .c-settings { flex-direction: column; }
  .c-settings__list { width: auto; border-right: 0; border-bottom: 1px solid var(--hairline); overflow-x: auto; }
  .c-settings__sticky { position: static; flex-direction: row; gap: 8px; padding: 10px 14px; }
  .c-settings__title { display: none; }
  .c-settings__row { flex: none; height: 44px; padding: 0 16px; }
  .c-settings__pane--padded { padding: 18px 14px; }
}
/* END EVENT SETUP */
/* BEGIN OBJECT BROWSER — artboard 3a; kept together for parallel console work. */
.c-browser { display: flex; height: 100%; min-height: 0; min-width: 0; }
.c-browser-filters { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; white-space: nowrap; }
.c-browser-filters select, .c-browser-filters input { font: inherit; font-size: 13px; color: var(--text-soft); background: var(--console-bg); border: 1px solid var(--border); border-radius: 7px; height: 28px; padding: 0 10px; color-scheme: dark; max-width: 170px; }
.c-browser-night { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--console-faint); }
.c-browser-filters input:disabled { opacity: 0.45; cursor: not-allowed; }
.c-browser-receipt input { width: 150px; font-family: var(--mono); text-transform: uppercase; }
.c-browser-receipt input::placeholder { color: var(--console-faint); text-transform: none; }
.c-browser-divider { height: 20px; width: 1px; background: var(--hairline); margin: 0 4px; }
.c-browser-shortcuts { margin-left: auto; font: 12px var(--mono); color: var(--console-faint); }
.c-browser-shortcuts a:hover { color: var(--accent); }
.c-browser-list { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.c-browser-scroll { flex: 1; overflow: auto; min-height: 0; container: browser-list / inline-size; }
.c-browser-table { width: 100%; table-layout: fixed; }
.c-browser-table th { position: sticky; top: 0; z-index: 1; background: var(--console-bg); }
/* Nothing breaks inside a word: headings and values stay on one line, names give way with an ellipsis (each cell carries a title), and only prose (items, the drawer note) wraps, at spaces. */
.c-browser-table th, .c-browser-table td { padding: 13px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.c-browser-table td.c-browser-wrap { white-space: normal; }
.c-browser-wrap .c-browser-secondary { white-space: nowrap; }
.c-browser-table td > a[data-browser-select], .c-browser-table td > button[data-browser-select] { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.c-browser-table th { padding-top: 10px; padding-bottom: 10px; }
.c-browser-table th:first-child, .c-browser-table td:first-child { padding-left: 24px; }
.c-browser-table th:last-child, .c-browser-table td:last-child { padding-right: 24px; }
.c-browser-row { border-bottom: 1px solid var(--console-hairline-soft); cursor: pointer; }
.c-browser-row:hover { background: var(--row-highlight); }
.c-browser-row--selected { background: var(--surface-deep); box-shadow: inset 2px 0 0 var(--accent); }
.c-browser-row--selected .c-browser-time { color: var(--accent); }
.c-browser-row--muted { color: var(--text-dim); }
.c-browser-time { white-space: nowrap; font: 13px var(--mono); color: var(--text-dim); }
.c-browser-secondary { color: var(--text-muted); }
span.c-browser-secondary { display: block; margin-top: 4px; }
.c-browser-total, .c-browser-state { text-align: right; }
.c-browser-state { font-size: 13px; }
.c-browser-table th.c-table__num { text-align: right; }
.c-browser-tone--ok { color: var(--ok); }
.c-browser-tone--warn { color: var(--warn); }
.c-browser-tone--muted { color: var(--text-dim); }
.c-browser-id { font: 12px var(--mono); }
.c-browser-footer { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 24px; border-top: 1px solid var(--console-hairline-soft); font-size: 13px; color: var(--console-faint); }
.c-browser-more { display: block; padding: 18px 24px; width: 100%; color: var(--text-dim); text-align: left; }
.c-browser-more:disabled { opacity: .5; }
.c-browser-detail { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; overflow: auto; background: var(--bg); border-left: 1px solid var(--console-hairline); }
.c-browser-detail-head { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 18px; border-bottom: 1px solid var(--console-hairline); }
.c-browser-detail-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-dim); }
.c-browser-amount { font: 600 40px/1 var(--mono); letter-spacing: -1.4px; }
.c-browser-detail-head p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.c-browser-detail-section { padding: 18px 24px; border-bottom: 1px solid var(--console-hairline); display: flex; flex-direction: column; gap: 12px; }
.c-timeline { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.c-timeline li { display: flex; gap: 12px; }
.c-timeline time { width: 76px; flex-shrink: 0; padding-top: 2px; font: 12px var(--mono); color: var(--console-faint); }
.c-timeline small { display: block; margin-top: 3px; color: var(--console-faint); line-height: 1.5; overflow-wrap: anywhere; }
.c-browser-identifiers { display: flex; flex-direction: column; gap: 10px; margin: 0; font-size: 13px; }
.c-browser-identifiers div { display: flex; gap: 14px; justify-content: space-between; }
.c-browser-identifiers dt { color: var(--text-dim); }
.c-browser-identifiers dd { margin: 0; text-align: right; font-family: var(--mono); overflow-wrap: anywhere; min-width: 0; }
.c-browser-actions { display: flex; flex-direction: column; gap: 9px; padding: 18px 24px; border-top: 1px solid var(--console-hairline); margin-top: auto; }
.c-browser-actions p { font-size: 12px; color: var(--console-faint); text-align: center; line-height: 1.5; margin: 0; }
.c-browser-actions--status:has(span:empty) { display: none; }
.c-browser-sale-actions__row { display: flex; flex-wrap: wrap; gap: 10px; }
.c-browser-sale-actions__row > .c-btn { flex: 1 1 140px; justify-content: center; }
.c-browser-void { display: flex; flex-direction: column; gap: 10px; }
.c-browser-void p { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.c-browser-void p.c-setup-error { color: var(--warn); }
.c-browser-void p.c-browser-void__note { font-size: 12px; color: var(--console-faint); }
.c-browser-void .c-browser-stripe { font-size: 13px; }
.c-browser-empty { padding: 24px; color: var(--text-dim); }
@media (max-width: 1250px) { .c-browser-shortcuts { font-size: 0; } .c-browser-shortcuts a { font: 12px var(--mono); } .c-browser-filters { gap: 6px; overflow-x: auto; } .c-browser-detail { width: 360px; } }
@media (max-width: 800px) { .c-browser { flex-direction: column; overflow: auto; } .c-browser-list { min-height: 360px; flex: 0 0 55%; } .c-browser-detail { width: 100%; overflow: visible; border-left: 0; border-top: 1px solid var(--console-hairline); } .c-browser-footer { font-size: 12px; } }
/* The last visible column carries the same 24px on its right edge the first has on its left (the phone cards' own cells come after it, so :last-child is not it), and its heading sits the way its values do. */
.c-browser-table--sales :is(th, td):nth-child(6), .c-browser-table--voids :is(th, td):nth-child(7), .c-browser-table--shifts :is(th, td):nth-child(7) { padding-right: 24px; }
/* The filter bar wraps to a second row when the controls do not fit beside the open panel, so the Day picker is always whole. */
@media (min-width: 801px) {
  .c-page:has(.c-browser) .c-context { height: auto; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
  .c-browser-filters { flex-wrap: wrap; row-gap: 8px; overflow: visible; }
  .c-browser-night { flex-shrink: 0; }
  .c-browser-hint { display: none; }
  .c-browser-filters .c-browser-all { margin-left: 0; }
  .c-browser-night input { min-width: 128px; }
}
/* The list drops its least useful column as the room beside the open detail panel shrinks, and the panel still shows it. Each step is a width the remaining columns fit in. Sales: Payment, then Terminal. Voids: Stripe refund, Sale now, then Requested by. Shifts: Sales and Starting cash, then Expected / counted, then Staff. */
@media (min-width: 801px) {
  @container browser-list (max-width: 739px) { .c-browser-table--sales :is(th, td):nth-child(4) { display: none; } }
  @container browser-list (max-width: 649px) { .c-browser-table--sales :is(th, td):nth-child(2) { display: none; } }
  @container browser-list (max-width: 919px) { .c-browser-table--voids :is(th, td):nth-child(7) { display: none; } .c-browser-table--voids :is(th, td):nth-child(6) { padding-right: 24px; } }
  @container browser-list (max-width: 779px) { .c-browser-table--voids :is(th, td):nth-child(6) { display: none; } .c-browser-table--voids :is(th, td):nth-child(5) { padding-right: 24px; } }
  @container browser-list (max-width: 679px) { .c-browser-table--voids :is(th, td):nth-child(4) { display: none; } }
  @container browser-list (max-width: 979px) { .c-browser-table--shifts :is(th, td):is(:nth-child(4), :nth-child(7)) { display: none; } .c-browser-table--shifts :is(th, td):nth-child(6) { padding-right: 24px; } }
  @container browser-list (max-width: 779px) { .c-browser-table--shifts :is(th, td):nth-child(5) { display: none; } }
  @container browser-list (max-width: 569px) { .c-browser-table--shifts :is(th, td):nth-child(2) { display: none; } }
}
.c-main:has(> .c-browser) { padding: 0; gap: 0; overflow: hidden; }
.c-browser .c-sr-only, .c-browser-filters .c-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.c-browser-detail-top .c-badge { flex-shrink: 0; max-width: 55%; white-space: normal; }
.c-browser-scroll, .c-browser-detail { scrollbar-color: var(--border) var(--console-bg); scrollbar-width: thin; }
/* END OBJECT BROWSER */

/* BEGIN PRODUCTS — shared library, artboard 4a. */
.c-main:has(> .c-products) { padding: 0; gap: 0; overflow: hidden; }
.c-products { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.c-products-head { flex-shrink: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 52px; padding: 10px 24px; border-bottom: 1px solid var(--console-hairline-soft); }
.c-products-head h1 { margin: 0; font-size: 16px; font-weight: 600; }
.c-products-head > span { font-size: 13px; color: var(--console-faint); margin-right: 16px; }
.c-products-head .c-btn { margin-left: auto; }
.c-products-head select, .c-products-head input[type=search] { background: var(--console-bg); color: var(--text-dim); border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 13px; }
.c-products-body { display: flex; flex: 1; min-height: 0; }
.c-products-list { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-products-scroll { flex: 1; overflow: auto; }
.c-products-row td { padding: 14px 24px; border-bottom: 1px solid var(--console-hairline-soft); font-size: 14px; }
.c-products-row td:first-child { font-weight: 500; }
.c-products-row td:nth-child(2) { color: var(--text-muted); }
.c-products-row button { text-align: left; width: 100%; overflow-wrap: anywhere; }
.c-products-row__owner { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--console-faint); }
.c-products-owner { margin: 0; font-size: 13px; color: var(--text-muted); }
.c-products-row--selected { background: var(--surface-deep); box-shadow: inset 2px 0 0 var(--accent); }
.c-products-row--inactive, .c-products-row--inactive td:nth-child(2) { color: var(--console-faint); }
.c-products-active { color: var(--ok); }
.c-products .c-table { min-width: 720px; }
.c-products .c-table__num { text-align: right; white-space: nowrap; }
.c-products-footer { padding: 14px 24px; font-size: 12px; color: var(--console-faint); line-height: 1.5; border-top: 1px solid var(--console-hairline-soft); }
.c-products-detail { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; overflow: auto; border-left: 1px solid var(--console-hairline); background: var(--bg); }
.c-products-detail-head, .c-products-section, .c-products-form { padding: 20px 24px; border-bottom: 1px solid var(--console-hairline); display: flex; flex-direction: column; gap: 12px; }
.c-products h2 { margin: 0; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.c-products-facts { display: flex; gap: 10px; }
.c-products-facts > div { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; background: var(--surface); font-size: 13px; overflow-wrap: anywhere; }
.c-products-facts span:first-child { color: var(--text-muted); }
.c-products-menu { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; }
.c-products-menu > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.c-products-menu > span:last-child { flex-shrink: 0; }
.c-products-menu small { color: var(--text-muted); }
.c-products-price--override { color: var(--accent); }
.c-products-section p, .c-products-form p, .c-products-actions p { font-size: 12px; color: var(--console-faint); line-height: 1.5; margin: 0; }
.c-products-actions { display: flex; flex-direction: column; gap: 9px; padding: 18px 24px; margin-top: auto; border-top: 1px solid var(--console-hairline); }
.c-products-empty { padding: 24px; color: var(--text-dim); }
.c-products-reactivated { padding: 0 24px 10px; }
.c-products-reactivated .c-alert { flex-wrap: wrap; align-items: flex-start; }
@media (max-width: 800px) { .c-products-reactivated { padding: 0 16px 10px; } .c-products-reactivated .c-alert__actions { width: 100%; flex-shrink: 1; min-width: 0; } .c-products-reactivated .c-alert__actions a { white-space: normal; } }
.c-products .c-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.c-products-scroll, .c-products-detail { scrollbar-color: var(--border) var(--console-bg); scrollbar-width: thin; }
@media (max-width: 1100px) { .c-products-detail { width: 350px; } .c-products-row td { padding: 14px 16px; } }
@media (max-width: 800px) { .c-products { overflow: auto; } .c-products-head { padding: 14px 16px; } .c-products-head > span { margin: 0; } .c-products-body { flex-direction: column; flex: none; } .c-products-list { flex: none; } .c-products-scroll { max-height: 340px; flex: none; } .c-products-detail { width: 100%; overflow: visible; border-left: 0; border-top: 1px solid var(--console-hairline); } .c-products-footer { padding: 14px 16px; } }
@media (max-width: 800px) {
  .c-page:has(.c-products) .c-bar { padding: 0 14px; gap: 10px; }
  .c-page:has(.c-products) .c-pill { max-width: 210px; overflow: hidden; }
  .c-page:has(.c-products) .c-search { min-width: 36px; flex: 1; }
  .c-page:has(.c-products) .c-search__label, .c-page:has(.c-products) .c-key { display: none; }
  .c-page:has(.c-products) .c-cluster > span { display: none; }
}
/* END PRODUCTS */
/* BEGIN MENU BUILDER — artboard 3b */
.c-main:has(> .c-menus) { padding:0; }
.c-menus { flex:none; min-height:100%; gap:0; }
.c-menus > * { flex-shrink:0; }
.c-menus .c-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.c-menu-bar { min-height:52px; padding:10px 24px; border-bottom:1px solid var(--console-hairline-soft); }
.c-menu-toolbar { display:flex; align-items:center; gap:12px; width:100%; flex-wrap:wrap; }
.c-menu-toolbar select, .c-menu-editor input, .c-menu-editor select, .c-menu-popover select { color:var(--text); background:var(--surface-deep); border:1px solid var(--border); border-radius:7px; padding:7px 9px; min-width:0; font:inherit; }
.c-menu-toolbar > label select { max-width:220px; font-weight:600; }
.c-menu-toolbar__meta, .c-menu-toolbar__saved { color:var(--console-faint); font-size:12px; }
.c-menu-toolbar__saved { margin-left:auto; }
.c-menu-active { display:flex; align-items:center; gap:7px; border:0; background:none; color:var(--text-soft); font:inherit; font-size:13px; cursor:pointer; }
.c-menu-active > span { width:34px; height:20px; border-radius:10px; background:var(--disabled); padding:2px; }
.c-menu-active > span::after { content:''; display:block; width:16px; height:16px; border-radius:50%; background:var(--console-bg); }
.c-menu-active[aria-checked=true] > span { background:var(--accent); }
.c-menu-active[aria-checked=true] > span::after { margin-left:auto; }
.c-menu-popover { position:relative; font-size:13px; }
.c-menu-popover summary { padding:7px 12px; border:1px solid var(--border); border-radius:8px; cursor:pointer; list-style:none; font-weight:600; }
.c-menu-popover--primary summary { background:var(--accent); color:var(--on-accent); }
.c-menu-popover form { position:absolute; right:0; top:38px; z-index:5; width:280px; max-width:85vw; padding:16px; display:grid; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:10px; }
.c-menu-popover label { display:grid; gap:8px; }
.c-menu-workspace { display:grid; grid-template-columns:minmax(0, 1fr) 470px; min-height:740px; }
.c-menu-editor { padding:22px 24px; min-width:0; display:flex; flex-direction:column; gap:16px; }
.c-menu-section { display:grid; gap:8px; }
.c-menu-section__head { display:flex; align-items:center; gap:10px; }
.c-menu-section__head > span:not(.c-eyebrow) { flex:1; height:1px; background:var(--surface); }
.c-menu-section__head small { color:var(--console-faint); font-size:12px; }
.c-menu-row { display:grid; grid-template-columns:40px minmax(100px,1fr) 70px 88px 66px 24px; gap:8px; padding:10px 12px; border:1px solid transparent; border-radius:10px; background:var(--surface-deep); align-items:center; }
.c-menu-row--selected { background:var(--surface); border-color:var(--accent); }
.c-menu-row__name { font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.c-menu-row__tax, .c-menu-row__sold { font-size:12px; color:var(--console-faint); }
.c-menu-row__sold, .c-menu-row__price { text-align:right; }
.c-menu-row__price button { border:0; background:none; color:var(--text); font-family:var(--mono); cursor:pointer; padding:4px; }
.c-menu-row__price input { width:100%; text-align:right; font-family:var(--mono); border-color:var(--accent); background:var(--console-bg); }
.c-menu-row__controls { position:absolute; right:0; top:30px; z-index:4; width:240px; padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.c-menu-row__move button, .c-menu-row__controls button:not(.c-btn) { background:none; color:var(--text-dim); border:1px solid var(--border); border-radius:5px; padding:3px 8px; cursor:pointer; font:inherit; font-size:11px; min-height:28px; }
.c-menu-row__move { display:flex; gap:2px; }
.c-menu-row__move button { padding:2px 4px; border:0; }
.c-menu-row__actions { position:relative; }
.c-menu-row__actions summary { cursor:pointer; list-style:none; color:var(--text-dim); font-size:18px; padding:3px; }
.c-menu-row__controls select { font-size:11px; padding:4px 8px; max-width:170px; }
.c-menu-row__controls button:last-of-type { margin-left:auto; }
.c-menu-confirm { width:100%; display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:12px; color:var(--warn); }
.c-menu-add-section { border:1px dashed var(--border); border-radius:10px; padding:12px 14px; display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:13px; color:var(--text-dim); }
.c-menu-add-section label { display:flex; flex-wrap:wrap; align-items:center; gap:10px; flex:1; }
.c-menu-add-section input { width:160px; flex:1; }
.c-menu-add-section small { width:100%; color:var(--console-faint); }
.c-menu-preview { border-left:1px solid var(--console-hairline); background:var(--console-bg); display:flex; flex-direction:column; }
.c-menu-preview > header { display:flex; justify-content:space-between; align-items:center; padding:14px 22px; border-bottom:1px solid var(--console-hairline-soft); font-size:12px; color:var(--console-faint); }
/*
 * The Sell screen as the devices draw it (app/src/screens/SellScreen.tsx and
 * ui/primitives.tsx). Every size below is the app's, in points (iPhone) or dp
 * (S710); `zoom` scales the whole screen down so a point stays a point. The
 * phone is the iPhone 17e the artboards are drawn at, 390 x 844; the S710 is
 * 411 x 731 dp with no status bar, as READER_FULL_SCREEN leaves it.
 */
.c-device { --device-zoom:.8; zoom:var(--device-zoom); margin:34px auto 12px; width:fit-content; padding:9px; border-radius:56px; background:var(--surface-deep); box-shadow:0 0 0 1.5px var(--border); }
.c-device[data-device="s710"] { padding:14px 14px 58px; border-radius:30px; }
.c-sell { width:390px; height:844px; border-radius:47px; background:var(--bg); display:flex; flex-direction:column; overflow:hidden; position:relative; padding:59px 0 38px; font-family:var(--sans); color:var(--text); }
.c-device[data-device="s710"] .c-sell { width:411px; height:731px; border-radius:4px; padding:12px 0 20px; }
.c-sell__statusbar { position:absolute; top:0; left:0; right:0; height:47px; display:flex; align-items:center; justify-content:space-between; padding:4px 32px 0 50px; font-size:17px; font-weight:600; }
.c-sell__statusbar svg { fill:var(--text); stroke:var(--text); }
.c-sell__line, .c-sell__top { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 20px; min-height:30px; }
.c-sell__line { padding-bottom:4px; min-height:34px; }
.c-sell__top { padding-bottom:12px; min-height:42px; }
.c-sell__meta { font-size:14px; line-height:17px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.c-sell__status { display:flex; align-items:center; gap:8px; min-width:0; }
.c-sell__dot { flex-shrink:0; fill:var(--ok); }
.c-sell__device { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.c-sell__sep { font-size:14px; line-height:17px; color:var(--text-dim); }
.c-sell__bars { fill:none; stroke:var(--text-muted); stroke-width:2.5; stroke-linecap:round; }
.c-sell__battery { fill:none; stroke:var(--text-muted); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.c-sell__battery .c-sell__charge { fill:var(--text-muted); stroke:none; }
.c-sell__sales { font-size:14px; line-height:17px; font-weight:600; color:var(--accent); flex-shrink:0; }
.c-sell__chips { display:flex; gap:8px; padding:0 20px 12px; overflow-x:auto; scrollbar-width:none; flex-shrink:0; }
.c-sell__chips::-webkit-scrollbar { display:none; }
.c-sell__chip { height:40px; border-radius:20px; background:var(--surface); padding:0 16px; flex-shrink:0; font-size:15px; line-height:18px; font-weight:600; color:var(--text-soft); white-space:nowrap; }
.c-sell__chip[data-selected="true"] { background:var(--accent); color:var(--on-accent); font-weight:700; }
.c-sell__menu { flex:1; min-height:0; overflow-y:auto; scrollbar-width:none; padding:0 20px 12px; display:flex; flex-direction:column; gap:18px; }
.c-sell__menu > .c-eyebrow { font-size:13px; font-weight:600; letter-spacing:1.04px; color:var(--text-dim); }
.c-sell__grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.c-sell__tile { position:relative; height:88px; border-radius:14px; background:var(--surface); padding:10px 12px; display:flex; flex-direction:column; justify-content:flex-end; min-width:0; }
.c-sell__tile strong { font-size:16px; line-height:19px; font-weight:600; color:var(--text); overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.c-sell .c-money { font-family:inherit; }
.c-sell__tile > span:last-child { font-size:14px; line-height:17px; color:var(--text-muted); margin-top:2px; }
.c-sell__stock { position:absolute; top:8px; left:12px; right:36px; font-size:14px; line-height:17px; font-weight:600; color:var(--accent); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.c-sell__stock--out { color:var(--warn); }
.c-sell__tile--blocked { opacity:.55; }
.c-sell__tile--blocked strong { color:var(--text-dim); }
.c-sell__tile--open { background:transparent; border:1.5px dashed var(--border-dashed); }
.c-sell__tile--open strong { color:var(--text-soft); }
.c-sell__tile--open > span:last-child { color:var(--text-dim); }
/* The line being edited in the builder: the console's mark, not the phone's. */
.c-sell__tile--editing { outline:2px solid var(--accent); outline-offset:2px; }
.c-sell__footer { padding:12px 20px 0; display:flex; flex-direction:column; gap:10px; flex-shrink:0; }
.c-sell__summary { display:flex; justify-content:space-between; font-size:15px; line-height:18px; color:var(--text-muted); }
.c-sell__actions { display:flex; gap:10px; }
.c-sell__clear { width:64px; height:64px; border-radius:16px; background:var(--surface); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.c-sell__clear svg { fill:none; stroke:var(--text-dim); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.c-sell__charge-button { flex:1; height:64px; border-radius:16px; background:var(--disabled); color:var(--disabled-text); display:flex; align-items:center; justify-content:space-between; padding:0 20px; }
.c-sell__charge-button strong:first-child { font-size:20px; font-weight:700; }
.c-sell__charge-button strong:last-child { font-size:24px; font-weight:700; }
.c-menu-preview__device { margin:0 0 18px; text-align:center; font-size:12px; color:var(--console-faint); }
.c-menu-preview__hidden { margin:0 22px 16px; font-size:12px; line-height:1.55; color:var(--text-dim); }
.c-menu-preview__switch { display:flex; gap:4px; }
.c-menu-preview__switch button { font-size:12px; padding:4px 10px; border-radius:10px; color:var(--text-dim); }
.c-menu-preview__switch button[aria-pressed="true"] { background:var(--chip-active); color:var(--text); }
.c-menu-preview__station { font-size:12px; padding:4px 8px; max-width:180px; }
@media(max-width:1100px) { .c-device { --device-zoom:.7; } }
@media(max-width:800px) { .c-device { --device-zoom:.78; } }
.c-menu-preview__caption { margin-top:auto; border-top:1px solid var(--console-hairline-soft); padding:16px 22px; font-size:12px; color:var(--console-faint); line-height:1.55; }
.c-menu-preview__empty { padding:22px; color:var(--text-dim); font-size:13px; line-height:1.6; }
.c-menu-errors { margin:0; padding:10px 24px; font-size:13px; color:var(--text-muted); }
.c-menu-errors { color:var(--warn); }
.c-menu-count-note { color:var(--console-faint); font-size:12px; line-height:1.5; }
.c-menus button:focus-visible, .c-menu-toolbar summary:focus-visible, .c-menu-toolbar button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.c-menus button:disabled, .c-menu-toolbar button:disabled { opacity:.5; cursor:default; }
@media(max-width:1100px) { .c-menu-workspace { grid-template-columns:minmax(0,1fr) 340px; } .c-menu-toolbar__saved { display:none; } }
@media(max-width:800px) { .c-menu-workspace { grid-template-columns:minmax(0,1fr); } .c-menu-preview { border-left:0; border-top:1px solid var(--console-hairline); } .c-menu-editor { padding:18px 14px; } .c-menu-row { grid-template-columns:34px minmax(0,1fr) 72px 48px 18px; gap:8px; padding:12px; } .c-menu-row__tax { grid-column:2; grid-row:2; } .c-menu-row__name { grid-column:2; } .c-menu-row__move { grid-column:1; grid-row:1/3; } .c-menu-row__actions { grid-column:5; grid-row:1/3; } .c-menu-row__price { grid-column:3; grid-row:1/3; } .c-menu-row__sold { grid-column:4; grid-row:1/3; } .c-menu-toolbar__meta { width:100%; order:5; } .c-menu-toolbar { gap:8px; padding:8px 0; } .c-menu-popover form { left:0; right:auto; } }
@media(max-width:800px) { .c-page:has(.c-menus) .c-bar { gap:10px; padding:0 14px; } .c-page:has(.c-menus) .c-cluster > span { display:none; } .c-menu-bar { padding:8px 14px; } }
/* END MENU BUILDER */

/* BEGIN TAX AND PERIODS — artboard 4c */
.c-main:has(> .c-tax) { padding:0; gap:0; overflow:hidden; }
.c-tax { overflow:auto; }
.c-tax-workspace { display:grid; grid-template-columns:minmax(0,1fr) 400px; min-height:100%; }
.c-tax-main { padding:24px; display:flex; flex-direction:column; gap:18px; min-width:0; }
.c-tax .c-setup-card { margin:0; padding:20px 22px; gap:0; }
.c-tax .c-setup-card__heading { margin-bottom:14px; }
.c-tax-warning { display:flex; gap:14px; padding:16px 20px; border:1px solid var(--accent-border); background:var(--tile-live-bg); border-radius:12px; }
.c-tax-warning > svg { width:20px; height:20px; flex-shrink:0; color:var(--accent); }
.c-tax-warning strong { font-size:15px; color:var(--accent); line-height:1.5; }
.c-tax-warning p { font-size:13px; color:var(--tile-live-label); margin:3px 0 0; line-height:1.5; }
.c-tax-rate { display:flex; align-items:center; gap:20px; padding:13px 0; border-bottom:1px solid var(--console-hairline); }
.c-tax-rate__name { display:grid; grid-template-columns:130px 110px; align-items:center; gap:20px; font-weight:600; overflow-wrap:anywhere; }
.c-tax-rate__input { display:flex; align-items:center; background:var(--surface); border-radius:8px; padding:0 12px; font-family:var(--mono); font-size:15px; }
.c-tax-rate__input input { width:100%; min-width:0; height:34px; color:var(--text); background:none; border:0; text-align:right; font:inherit; }
.c-tax-rate__counts { color:var(--text-dim); line-height:1.6; }
.c-tax-rate__counts small { display:block; color:var(--warn); font-size:12px; }
.c-tax-rate__actions { margin-left:auto; display:flex; gap:8px; }
.c-tax-note { font-size:12px; color:var(--console-faint); line-height:1.6; margin:10px 0 0; }
.c-tax-periods { flex:1; }
.c-tax-period { display:grid; grid-template-columns:minmax(120px,1fr) minmax(180px,1.6fr) minmax(120px,1fr) auto; gap:14px; align-items:center; padding:16px 0; border-bottom:1px solid var(--console-hairline); }
.c-tax-period__label { text-align:left; font-weight:600; overflow-wrap:anywhere; }
.c-tax-period__label span { color:var(--console-faint); }
.c-tax-period__window, .c-tax-period__state { color:var(--text-dim); font-size:13px; }
.c-tax-period__key { display:block; color:var(--console-faint); font-size:12px; margin-top:2px; }
.c-tax-period__key code { font-family:var(--mono); color:var(--text-muted); overflow-wrap:anywhere; }
.c-tax-period__state--open { color:var(--ok); }
.c-tax-add { text-align:left; padding:11px 14px; border:1px dashed var(--border-dashed); border-radius:10px; color:var(--text-dim); margin:12px 0; width:100%; }
.c-tax-disagreement { color:var(--warn); font-size:13px; line-height:1.6; }
.c-tax-form { display:grid; gap:12px; padding:16px 0; }
.c-tax-actions { display:flex; gap:10px; flex-wrap:wrap; }
.c-tax-rail { border-left:1px solid var(--console-hairline); background:var(--console-bg); display:flex; flex-direction:column; min-width:0; }
.c-tax-rail > header, .c-tax-rail > section, .c-tax-rail > footer { padding:20px 24px; border-bottom:1px solid var(--console-hairline); }
.c-tax-rail h2 { font-size:20px; font-weight:600; margin:4px 0 0; }
.c-tax-example { color:var(--text-muted); font-size:13px; line-height:1.6; margin:0 0 12px; }
.c-tax-example strong { color:var(--text); }
.c-tax-cutoffs { display:flex; flex-wrap:wrap; gap:2px; background:var(--surface); padding:3px; border-radius:9px; }
.c-tax-cutoffs button { flex:1; min-height:32px; border-radius:7px; font-size:13px; color:var(--text-muted); padding:6px; }
.c-tax-cutoffs button[aria-pressed="true"] { background:var(--chip-active); color:var(--text); }
.c-tax-cutoffs small { display:block; font-size:10px; }
.c-tax-rail .c-setup-field { margin-top:14px; }
/* The rail is narrow at every width: a question there stacks its buttons under the text. */
.c-tax-rail .c-alert { flex-wrap:wrap; margin-top:14px; } .c-tax-rail .c-alert__text { flex-basis:100%; } .c-tax-rail .c-alert__actions { width:100%; }
.c-tax-totals { display:grid; gap:12px; margin:16px 0; }
.c-tax-totals > div { display:flex; justify-content:space-between; gap:12px; }
.c-tax-totals dt { color:var(--text-dim); }
.c-tax-totals dd { margin:0; font-family:var(--mono); white-space:nowrap; }
.c-tax-rail > footer { margin-top:auto; border-top:1px solid var(--console-hairline); border-bottom:0; }
.c-tax-rail footer .c-btn { width:100%; justify-content:center; }
@media(max-width:1100px) { .c-tax-workspace { grid-template-columns:minmax(0,1fr) 340px; } .c-tax-period { grid-template-columns:minmax(0,1fr) auto; } .c-tax-period__window { grid-column:1 / -1; grid-row:2; } .c-tax-rate { flex-wrap:wrap; gap:6px; } .c-tax-rate__actions { margin-left:0; } }
@media(max-width:800px) { .c-tax-workspace { grid-template-columns:minmax(0,1fr); } .c-tax-main { padding:18px 14px; } .c-tax .c-setup-card { padding:18px; } .c-tax-rail { border-left:0; border-top:1px solid var(--console-hairline); } .c-tax-rate__name { grid-template-columns:minmax(0,1fr) 100px; width:100%; gap:12px; } .c-tax-rate__counts { font-size:12px; } .c-tax-period { grid-template-columns:minmax(0,1fr) auto; } .c-tax-period__state { grid-column:1; } .c-tax-warning { padding:14px; } .c-tax .c-setup-card__heading { flex-wrap:wrap; gap:8px; } .c-tax .c-alert { flex-wrap:wrap; } .c-tax .c-alert__text { flex-basis:100%; } .c-tax .c-alert__actions { width:100%; } .c-page:has(.c-tax) .c-context { height:auto; min-height:52px; padding:0 14px 8px; flex-shrink:0; } .c-page:has(.c-tax) .c-setup-tabs { min-width:0; gap:18px; } .c-page:has(.c-tax) .c-setup-tabs a { white-space:nowrap; } .c-page:has(.c-tax) .c-setup-dates { font-size:10px; } .c-page:has(.c-tax) .c-cluster > span { display:none; } .c-page:has(.c-tax) .c-bar { padding:0 14px; gap:10px; } }
/* Beside the section list the main column is too narrow for the rail: below 1560px the rail runs under it. */
@media(max-width:1560px) { .c-tax-workspace { grid-template-columns:minmax(0,1fr); } .c-tax-rail { border-left:0; border-top:1px solid var(--console-hairline); } }
.c-tax-rate { flex-wrap:wrap; }
.c-tax-rate__counts { flex:1 0 100%; order:3; line-height:1.4; }
/* END TAX AND PERIODS */
/* BEGIN STAFF — artboard 4b */
.c-page:has(.c-staff) .c-context { min-height: 52px; }
.c-main:has(> .c-staff) { padding: 0; gap: 0; overflow: hidden; }
.c-staff { display: flex; flex-direction: column; min-height: 0; }
.c-staff-body { display: flex; flex: 1; min-height: 0; }
.c-staff-list { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.c-staff-scroll { overflow: auto; flex: 1; }
.c-staff .c-table { min-width: 900px; }
.c-staff-rename { display: flex; align-items: flex-end; gap: 9px; }
.c-staff-rename .c-setup-field { flex: 1; min-width: 0; }
.c-staff-row td { padding: 15px 20px; border-bottom: 1px solid var(--console-hairline-soft); font-size: 14px; }
.c-staff-row td:first-child { font-weight: 600; }
.c-staff-row td:nth-child(4) { white-space: nowrap; }
.c-staff-row button { width: 100%; text-align: left; overflow-wrap: anywhere; }
.c-staff-row--selected { background: var(--surface-deep); box-shadow: inset 2px 0 0 var(--accent); }
.c-staff-row--inactive, .c-staff-row--inactive .c-staff-muted { color: var(--console-faint); }
.c-staff-manager { padding: 2px 8px; border-radius: 6px; background: var(--accent-bg); color: var(--accent); font-size: 11px; font-weight: 700; }
.c-staff-muted { color: var(--text-muted); }
.c-staff-warn { color: var(--warn); font-weight: 600; }
.c-staff-open { color: var(--ok); }
.c-staff .c-table__num { text-align: right; white-space: nowrap; }
.c-staff-footer { padding: 12px 24px; border-top: 1px solid var(--console-hairline-soft); font-size: 12px; line-height: 1.5; color: var(--console-faint); }
.c-staff-footer p { margin: 3px 0; }
.c-staff-rail { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; overflow: auto; background: var(--bg); border-left: 1px solid var(--console-hairline); }
.c-staff-section { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--console-hairline); }
.c-staff-section h2 { margin: 0; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.c-staff-section p, .c-staff-actions p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.c-staff-section .c-setup-error, .c-staff-actions .c-setup-error { color: var(--warn); }
.c-staff-activity { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.c-staff-activity time { font-size: 12px; color: var(--console-faint); flex: 0 0 60px; }
.c-staff-activity > div { min-width: 0; overflow-wrap: anywhere; }
.c-staff-activity a { color: inherit; }
.c-staff-activity--warn { color: var(--warn); }
.c-staff-activity--muted { color: var(--text-muted); }
.c-staff-activity small { display: block; color: var(--console-faint); font-size: 12px; padding-top: 3px; }
.c-staff-actions { margin-top: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--console-hairline); }
.c-staff-pin-form { display: flex; flex-direction: column; gap: 9px; }
.c-staff-empty { padding: 24px; color: var(--text-muted); font-size: 14px; }
@media (max-width: 900px) {
    .c-page:has(.c-staff) .c-context { height: auto; flex-wrap: wrap; padding-bottom: 12px; }
    .c-page:has(.c-staff) .c-setup-tabs { height: 48px; flex-basis: 100%; }
    .c-page:has(.c-staff) .c-bar { gap: 10px; padding: 0 14px; }
    .c-page:has(.c-staff) .c-cluster > span:not(.c-live) { display: none; }
    .c-page:has(.c-staff) .c-cluster { margin-left: auto; }
    .c-page:has(.c-staff) .c-search { flex: 0 0 36px; padding: 0; justify-content: center; }
    .c-page:has(.c-staff) .c-search__label, .c-page:has(.c-staff) .c-search .c-key { display: none; }
    .c-staff-body { flex-direction: column; overflow: auto; }
    .c-staff-list { flex: none; }
    .c-staff-scroll { flex: none; }
    .c-staff-rail { width: 100%; overflow: visible; border-left: 0; border-top: 1px solid var(--console-hairline); }
    .c-staff .c-table { min-width: 840px; }
    .c-staff-row td { padding: 14px 16px; }
    .c-staff-footer, .c-staff-section, .c-staff-actions { padding-left: 16px; padding-right: 16px; }
}
/* END STAFF */

.c-staff-suggestion strong { display: block; font-family: var(--mono); font-size: 36px; letter-spacing: .15em; color: var(--text); }
.c-staff-actions .c-btn--primary { background: var(--accent); color: var(--on-accent); }

/* --- dialog: the palette's panel for everything that is not the palette --- */
.c-dialog { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 72px 24px 24px; background: var(--scrim); }
.c-dialog--static { position: static; padding: 0; background: none; }
.c-dialog__panel { width: 520px; max-width: 100%; max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--surface-deep); border: 1px solid var(--palette-border); box-shadow: var(--palette-shadow); }
.c-dialog__panel--wide { width: 1180px; }
.c-dialog--static .c-dialog__panel { max-height: none; box-shadow: none; }
.c-dialog__head { flex-shrink: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--console-hairline); }
.c-dialog__head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.c-dialog__tools { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.c-dialog__close { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--text-dim); }
.c-dialog__close:hover { background: var(--row-highlight); color: var(--text); }
.c-dialog__body { overflow: auto; padding: 18px 20px 20px; scrollbar-color: var(--border) var(--surface-deep); scrollbar-width: thin; }
.c-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.c-dialog__search { background: var(--console-bg); color: var(--text-dim); border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 13px; }
.c-dialog .c-sr-only, .c-switcher .c-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.c-dialog .c-setup-field small, #setup-event .c-setup-field small { color: var(--console-faint); font-size: 12px; line-height: 1.5; }
.c-dialog p.c-setup-error { color: var(--warn); margin: 0; }
.c-dialog .c-alert, #setup-event .c-alert { align-items: flex-start; }

/* --- the switcher's Manage events, and Admin → Events --- */
.c-switcher__action { width: 100%; text-align: left; color: var(--accent); }
.c-main:has(> .c-admin-events) { padding: 0; gap: 0; overflow: hidden; }
.c-admin-events { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.c-admin-events .c-events { flex: 1; overflow: auto; padding: 8px 24px 24px; }
.c-admin-event .c-setup-card { max-width: 720px; }
/* Profile: two short forms, as wide as an event's edit card. */
.c-profile .c-setup-card { max-width: 720px; }
.c-admin-team .c-events { display: flex; flex-direction: column; gap: 18px; }
.c-admin-team .c-setup-card { max-width: 720px; }
.c-admin-team .c-events .c-table { min-width: 0; }
.c-admin-team .c-table .c-confirm--trigger { display: inline-block; vertical-align: middle; margin: 2px 0; }
.c-admin-team .c-table td.c-card-lead a { color: var(--text); font-weight: 500; text-decoration: none; }
.c-admin-team .c-table td.c-card-lead a:hover { color: var(--accent); }
.c-admin-team .c-table td.c-card-amount { white-space: nowrap; }
.c-team-roster__name { display: block; }
.c-team-roster__email { display: block; color: var(--text-muted); font-size: 13px; overflow-wrap: break-word; }
.c-team-roster__access { color: var(--text-muted); font-size: 13px; }
.c-admin-team .c-table td.c-card-status select { width: 100%; }
.c-admin-team .c-table td.c-card-amount > .c-btn { vertical-align: middle; margin: 2px 0; }
/* Team -> one person: role, events, then one row per permission. */
.c-team-member .c-page-head > .c-btn { margin-left: auto; }
.c-team-member__group { margin: 18px 0 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.c-team-member__subgroup { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.c-team-member__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.c-team-member__row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--console-hairline-soft); min-width: 0; }
.c-team-member__row:last-child { border-bottom: 0; }
.c-team-member__check span { overflow-wrap: anywhere; }
.c-team-member__row[data-greyed] .c-team-member__check, .c-team-member__row[data-greyed] .c-setup-segment { opacity: .5; }
.c-team-member__check input:disabled { cursor: not-allowed; }
/* The sentence is drawn above as the row's label; the legend stays for screen readers. */
.c-team-member__row .c-setup-segment legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
.c-team-member__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 28px; }
.c-team-member__marks--ticket { padding-left: 0; }
.c-team-member__helper { display: block; padding-left: 28px; color: var(--console-faint); font-size: 12px; line-height: 1.5; margin-top: -2px; }
.c-team-member__helper--ticket { padding-left: 0; }
.c-team-member__label { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.c-team-member__row[data-greyed] .c-team-member__label { opacity: .5; }
.c-team-member__summary { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.c-team-member__marks small { color: var(--console-faint); font-size: 12px; line-height: 1.5; flex-basis: 100%; }
.c-team-member__changes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.c-team-member .c-setup-segment input:disabled + span { cursor: not-allowed; }
.c-team-member .c-setup-checks input:disabled { cursor: not-allowed; }
@media (max-width: 800px) { .c-team-member__marks { padding-left: 0; } }
/* Profile's Passkeys: a row's Rename and Remove side by side with the
   dialog gap, centred in the row; on a phone, under the name and the
   added/last-used line, on one line of their own. */
.c-passkeys th, .c-passkeys td { padding-left: 12px; padding-right: 12px; }
.c-passkeys th:first-child, .c-passkeys td:first-child { padding-left: 24px; }
.c-passkeys td { vertical-align: middle; }
.c-passkeys td.c-passkeys__when { white-space: nowrap; }
.c-passkeys td.c-card-status { padding-top: 8px; padding-bottom: 8px; padding-right: 24px; }
.c-passkeys .c-confirm--trigger { max-width: 260px; white-space: normal; }
/* While a row's Remove asks for the password, Rename steps aside and the
   question has the cell to itself. */
.c-passkeys [data-passkey-actions]:has(> .c-confirm--trigger > div:not([style*="none"])) { flex-wrap: wrap; }
.c-passkeys [data-passkey-actions]:has(> .c-confirm--trigger > div:not([style*="none"])) > .c-btn { display: none; }
.c-passkeys [data-passkey-actions]:has(> .c-confirm--trigger > div:not([style*="none"])) > .c-confirm { width: 260px; max-width: 100%; }
/* The password field and the buttons under it never touch. */
.c-passkeys .c-confirm .c-dialog__actions, [data-passkeys-remove-all] .c-dialog__actions, [data-phones-sign-out-all] .c-dialog__actions { margin-top: 10px; }
.c-passkeys [data-passkey-actions] { flex-wrap: nowrap; align-items: flex-start; justify-content: flex-end; }
/* Signed-in phones (Profile) share the Passkeys list's layout; their two times wrap rather than crowd the name. */
.c-phones td.c-phones__when { white-space: normal; }
.c-admin-event__rules { padding: 16px 20px; }
.c-admin-event__rules .c-alert { align-items: flex-start; }
.c-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* --- page head: a list page's title, count, tools and its one action --- */
.c-page-head { flex-shrink: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 52px; padding: 10px 24px; border-bottom: 1px solid var(--console-hairline-soft); }
.c-page-head h1 { margin: 0; font-size: 16px; font-weight: 600; }
.c-page-head > span { font-size: 13px; color: var(--console-faint); margin-right: 16px; }
.c-page-head > .c-btn { margin-left: auto; }
/* Two actions side by side: the first is pushed right, the next sits beside it. */
.c-page-head > .c-btn + .c-btn { margin-left: 0; }
.c-page-head select, .c-page-head input[type=search] { background: var(--console-bg); color: var(--text-dim); border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 13px; }
@media (max-width: 800px) { .c-page:has(.c-admin-events) .c-cluster > span, .c-page:has(.c-admin-event) .c-cluster > span, .c-page:has(.c-admin-events) .c-setup-dates, .c-page:has(.c-admin-event) .c-setup-dates { display: none; } .c-admin-event .c-alert { flex-wrap: wrap; } .c-admin-event .c-alert__actions { width: 100%; } .c-page-head { padding: 10px 16px; } .c-page-head > .c-btn { margin-left: 0; } .c-admin-events .c-events { padding: 8px 16px 16px; } .c-page-head input[type=search] { width: 100%; } .c-page-head label:has(input[type=search]) { flex: 1 1 100%; } }
.c-switcher__action:first-of-type { margin-top: 6px; border-top: 1px solid var(--console-hairline); }
.c-events .c-table { min-width: 1060px; }
.c-events-row td { padding: 12px 10px; border-bottom: 1px solid var(--console-hairline-soft); font-size: 14px; }
.c-events-row td:first-child a { color: var(--text); font-weight: 500; text-decoration: none; }
.c-events-row td:first-child a:hover { color: var(--accent); }
.c-events-row--current { background: var(--row-highlight); box-shadow: inset 2px 0 0 var(--accent); }
.c-events-slug { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--text-muted); }
.c-events-when, .c-events-zone { white-space: nowrap; color: var(--text-muted); font-size: 13px; }
.c-events-location { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.c-events .c-table__num { text-align: right; white-space: nowrap; }
.c-events .c-setup-note { margin: 12px 0 0; }
@media (max-width: 800px) { .c-dialog { padding: 12px; } .c-dialog__tools { order: 3; margin-left: 0; width: 100%; } .c-dialog__panel { max-height: calc(100vh - 24px); } }

/* Point of sale / Tickets. The pill's height, so the bar keeps one line. */
.c-app-switch { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 3px; border: 1px solid var(--console-hairline); border-radius: 10px; background: var(--surface-deep); flex: none; }
.c-app-switch__item { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 7px; color: var(--text-muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.c-app-switch__item:hover { color: var(--text); }
.c-app-switch__item--current { background: var(--chip-active); color: var(--text); }
/* At phone width the bar cannot carry both names beside the clock, the
   avatar, so the switch keeps only the way across (on
   the POS, "Tickets") and the bar that carries it closes up. Sizes and
   spacing only; after every page's own bar rules, and more specific. */
@media (max-width: 640px) {
  .c-app-switch { padding: 2px; }
  .c-app-switch__item { padding: 0 8px; font-size: 12px; }
  .c-app-switch__item--current { display: none; }
  .c-page .c-bar:has(.c-app-switch) { gap: 6px; padding: 0 10px; }
  .c-page .c-bar:has(.c-app-switch) .c-cluster { gap: 6px; margin-left: auto; }
  .c-page .c-bar:has(.c-app-switch) .c-pill { max-width: 88px; gap: 5px; padding: 0 7px; overflow: hidden; }
  .c-page .c-bar:has(.c-app-switch) .c-pill > span:not(.c-pill__dot) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* --- Browse completions: stored state, tenders, receipts, voids, paging windows --- */
.c-browser-detail-states { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; max-width: 55%; }
.c-browser-detail-states .c-badge { max-width: 100%; white-space: normal; }
.c-browser-raw { font: 11px var(--mono); color: var(--console-faint); text-align: right; }
.c-browser-note { margin: 0; font-size: 13px; color: var(--text-dim); }
.c-browser-tender-pi .c-ledger-row__label { color: var(--console-faint); padding-left: 12px; }
.c-browser-tender-pi .c-ledger-row__value { display: flex; gap: 10px; align-items: baseline; justify-content: flex-end; min-width: 0; }
.c-browser-stripe { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.c-browser-stripe:hover { color: var(--accent); }
.c-copy-id { font: 12px var(--mono); color: inherit; text-align: right; overflow-wrap: anywhere; min-width: 0; cursor: copy; }
.c-copy-id:hover { color: var(--accent); }
.c-copy-id--none { cursor: default; color: var(--text-dim); font-family: inherit; }
.c-copy-id--none:hover { color: var(--text-dim); }
.c-browser-window { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 24px; font-size: 13px; color: var(--console-faint); }
.c-browser-window button { color: var(--text-dim); }
.c-browser-window button:hover { color: var(--accent); }
.c-browser-row a[data-browser-select] { color: inherit; text-decoration: none; }
.c-browser-row a[data-browser-select]:hover { color: var(--accent); }

/* Admin → Sales: the organization's sales across events. */
.c-main:has(> .c-admin-sales) { padding: 0; gap: 0; overflow: hidden; }
.c-admin-sales { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.c-admin-sales__list { flex: 1; overflow: auto; padding: 0 0 24px; }
.c-admin-sales__list .c-browser-table { min-width: 1000px; }
.c-admin-sales__list .c-setup-note { margin: 12px 24px 0; }
/* Admin → Voids and Shifts share the Sales list; Sales adds a tip column and the unapplied Stripe events line. */
.c-admin-sales__alert { margin: 16px 24px 4px; }
.c-browser-table td[data-browser-tip] { text-align: right; }
.c-admin-shifts .c-browser-table { min-width: 1160px; }
.c-page-head input[type=date] { background: var(--console-bg); color: var(--text-dim); border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 13px; color-scheme: dark; }
.c-page-head select:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 800px) { .c-page:has(.c-admin-sales) .c-cluster > span, .c-page:has(.c-admin-sales) .c-setup-dates { display: none; } .c-admin-sales .c-page-head label { flex: 1 1 45%; } .c-admin-sales .c-page-head select, .c-admin-sales .c-page-head input { width: 100%; } .c-admin-sales__list .c-setup-note { margin: 12px 16px 0; } .c-admin-sales__alert { margin: 12px 16px 4px; } .c-browser-window { padding: 14px 16px; } }
.c-browser-detail-head p.c-browser-tone--warn { color: var(--warn); }
.c-browser-receipts .c-ledger-row { align-items: flex-start; }
.c-browser-receipts .c-ledger-row__label { overflow-wrap: anywhere; }
.c-browser-receipts .c-ledger-row__value { text-align: right; }
.c-browser-receipt-time { display: block; margin-top: 2px; font-size: 12px; color: var(--console-faint); white-space: nowrap; }
/* Browse on a phone: the filter bar wraps instead of pushing the page sideways. */
@media (max-width: 800px) {
  .c-page:has(.c-browser) .c-context { height: auto; min-height: 52px; padding: 8px 14px; }
  .c-page:has(.c-browser) .c-cluster > span { display: none; }
  .c-browser-filters { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 8px; }
  .c-browser-filters .c-chips { flex: 1 1 100%; }
  .c-browser-filters > label { flex: 1 1 45%; min-width: 0; }
  .c-browser-filters select, .c-browser-filters input, .c-browser-receipt input { max-width: none; width: 100%; }
  .c-browser-divider { display: none; }
  /* The keyboard hints are already hidden below 1250px; the export link stays for touch. */
  .c-browser-shortcuts { margin-left: 0; }
}
/* Inventory: the Products layout, one row per tracked product. */
.c-products-head .c-btn + .c-btn { margin-left: 0; }
.c-products-stock { margin: 0; font-size: 12px; color: var(--text-muted); }
.c-stock .c-table { min-width: 850px; }
.c-stock-row td:first-child small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--console-faint); }
.c-stock-row__on-hand { font-weight: 600; }
.c-stock-row__on-hand--warn { color: var(--warn); }
.c-stock-alert { margin: 12px 24px 0; }
.c-stock-entry small { display: block; margin-top: 2px; }
.c-stock .c-products-form .c-setup-error { color: var(--warn); }
@media (max-width: 800px) { .c-stock-alert { margin: 12px 16px 0; } }

/* Home is a fixed-height column that scrolls: its sections keep their own
   height rather than shrinking into it (a shrunk tile strip clips its lines). */
.c-operations > * { flex-shrink: 0; }

/* --- Home: sales and voids by state (every sale, whatever its state; the
   tiles above count only settled) --- */
.c-state-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.c-state-table { background: var(--surface-deep); border-radius: 12px; padding: 16px 20px; }
.c-state-table .c-ledger-row__value { display: flex; gap: 18px; align-items: baseline; font-variant-numeric: tabular-nums; }
.c-state-table__count { min-width: 3ch; text-align: right; color: var(--text); }
.c-state-tables__note { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
/* The shift detail's confirmations sit in a narrow pane: the answer goes under the question. */
.c-browser-detail .c-alert { flex-wrap: wrap; align-items: flex-start; }
.c-browser-detail .c-alert__text { flex-basis: 100%; }
.c-browser-detail .c-alert__actions { width: 100%; }
/* The once-after-sign-in passkey suggestion: on a phone its buttons go under the sentence, as other alerts' do. */
@media (max-width: 800px) { .c-passkey-prompt.c-alert { flex-wrap: wrap; } .c-passkey-prompt .c-alert__text { flex-basis: 100%; } .c-passkey-prompt .c-alert__actions { width: 100%; } }
@media (max-width: 760px) {
  .c-state-tables { grid-template-columns: 1fr; }
}
/* "Add a rate for <category> on <event>": the way from a product that
   would ring untaxed to the rate that taxes it (Products, the menu editor). */
.c-products-form .c-alert, .c-menu-popover .c-alert, .c-menus > .c-alert { flex-wrap: wrap; align-items: flex-start; }
.c-products-rate-links { display: flex; flex-direction: column; gap: 6px; }
.c-alert__actions a:not(.c-btn) { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.c-alert__actions a:not(.c-btn):hover { text-decoration: underline; }
.c-menus > .c-alert, .c-admin-menus > .c-alert { margin: 10px 24px 0; flex-wrap: wrap; align-items: flex-start; }
/* The sentence keeps a readable width; one "Add a rate" per category wraps
   under it rather than squeezing it to a word a line. */
.c-menus > .c-alert .c-alert__text, .c-admin-menus > .c-alert .c-alert__text { flex: 1 1 320px; }
.c-menus > .c-alert .c-alert__actions, .c-admin-menus > .c-alert .c-alert__actions { flex-wrap: wrap; flex-shrink: 1; min-width: 0; gap: 8px; }
@media (max-width: 800px) { .c-menus > .c-alert, .c-admin-menus > .c-alert { margin: 10px 16px 0; } .c-menus > .c-alert .c-alert__actions, .c-admin-menus > .c-alert .c-alert__actions { width: 100%; } .c-menus > .c-alert .c-btn, .c-admin-menus > .c-alert .c-btn { white-space: normal; text-align: left; } }
.c-menu-create { display: grid; gap: 12px; width: 320px; max-width: 100%; margin: 16px auto 0; text-align: left; }
.c-menu-popover small { color: var(--console-faint); font-size: 12px; line-height: 1.5; }
.c-menu-popover .c-setup-error { color: var(--warn); margin: 0; font-size: 12px; }

/* Admin → Menus: the events list's frame and rows, with the row's own actions. */
.c-admin-menus .c-table { min-width: 860px; }
.c-menus-actions { text-align: right; white-space: nowrap; }
.c-menus-actions .c-btn + .c-btn { margin-left: 8px; }
.c-menus-state { color: var(--console-faint); }
.c-menus-state--active { color: var(--ok); }
.c-menus-row--inactive td:first-child a { color: var(--text-muted); }
.c-products-form .c-alert__actions, .c-menu-popover .c-alert__actions { width: 100%; flex-shrink: 1; min-width: 0; }
.c-products-form .c-alert__actions a, .c-menu-popover .c-alert__actions a { white-space: normal; }
.c-products-form .c-setup-field small, .c-menu-popover .c-setup-field small { color: var(--console-faint); font-size: 12px; line-height: 1.5; }
.c-menu-swap { width: 100%; display: grid; gap: 8px; font-size: 12px; color: var(--text-muted); }
.c-menu-swap label { display: grid; gap: 8px; }
.c-menu-swap select { width: 100%; max-width: none; }
.c-menu-swap > div { display: flex; gap: 8px; }
/* At phone width the toolbar wraps onto several rows, so a popover opens
   under the whole toolbar, full width, rather than under its own button. */
@media (max-width: 800px) { .c-menu-toolbar { position: relative; } .c-menu-popover { position: static; } .c-menu-popover form { left: 0; right: 0; top: calc(100% + 4px); width: auto; max-width: none; } }
/* Admin → Readers: one section per Stripe account, its readers in a table. */
.c-readers-account { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.c-readers-account + .c-readers-account { margin-top: 28px; }
.c-readers-account__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-readers-account__head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.c-readers-account__head > span:last-child:not(.c-badge) { color: var(--text-muted); font-size: 13px; }
.c-readers-account .c-setup-note { margin: 0; }
.c-admin-readers .c-table { min-width: 1000px; }
.c-readers-label { font-weight: 500; }
.c-readers-location small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.c-admin-readers > .c-alert { margin: 10px 24px 0; }
.c-admin-readers .c-readers-account > .c-alert { flex-wrap: wrap; }
@media (max-width: 800px) { .c-admin-readers > .c-alert { margin: 10px 16px 0; } }

/* Labelled tables (x-console::table labelled): each body cell carries its
   column's header as data-label. Below 800px the header row is hidden and
   each row becomes a card of label-and-value lines, so a bare "2" or "No
   limit" still says what it is, instead of a strip that scrolls sideways.
   A cell with no label (an empty state spanning the row, a row's actions)
   draws full width under the labelled lines. */
@media (max-width: 800px) {
  .c-table.c-table--labelled { display: block; min-width: 0; width: 100%; }
  .c-table--labelled thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .c-table--labelled tbody { display: block; }
  .c-table.c-table--labelled tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--console-hairline-soft); }
  .c-table.c-table--labelled td { display: block; height: auto; max-width: none; overflow: visible; padding: 4px 0; border: 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  .c-table.c-table--labelled td::after { content: ''; display: block; clear: both; }
  .c-table.c-table--labelled td[data-label]::before { content: attr(data-label); float: left; margin-right: 16px; padding-top: 2px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; text-align: left; color: var(--console-faint); }
  .c-table.c-table--labelled td:not([data-label]) { text-align: left; }
  .c-table.c-table--labelled td:not([data-label]):not(:first-child) { padding-top: 8px; }
  .c-table.c-table--labelled td > button { width: auto; text-align: right; }
}
/* Admin → Stripe accounts: one card per account, its facts in a grid that
   folds to two columns, then one, as the page narrows. */
.c-stripe-account { background: var(--surface-deep); border-radius: 14px; padding: 18px 22px; }
.c-stripe-account + .c-stripe-account { margin-top: 18px; }
.c-stripe-account__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.c-stripe-account__facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.c-stripe-account__facts > div { min-width: 0; }
.c-stripe-account__facts dt { color: var(--console-faint); font-size: 12px; margin-bottom: 2px; }
.c-stripe-account__facts dd { margin: 0; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.c-admin-stripe > .c-alert { margin: 10px 24px 0; }
@media (max-width: 1100px) { .c-stripe-account__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
    .c-stripe-account { padding: 16px; }
    .c-stripe-account__actions { margin-left: 0; width: 100%; }
    .c-admin-stripe > .c-alert { margin: 10px 16px 0; }
}
@media (max-width: 480px) { .c-stripe-account__facts { grid-template-columns: minmax(0, 1fr); } }
.c-stripe-account__history { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--console-hairline-soft); display: grid; gap: 6px; font-size: 12px; color: var(--text-muted); }
.c-stripe-account__history li { display: flex; gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.c-stripe-account__history span { color: var(--console-faint); min-width: 190px; }
/* The confirm-a-change alert sits in a narrow dialog: its buttons go under the sentence. */
.c-admin-stripe .c-dialog .c-alert { flex-wrap: wrap; }
.c-admin-stripe .c-dialog .c-alert__actions { width: 100%; }

/* --- the door (spec 2026-09-28 §2): the menu editor for a vendor or an event manager, outside the console --- */

.c-door-bar { gap: 20px; }
.c-door-title { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.c-door-title h1 { margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-door-title span { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-door-tabs { height: 100%; }
.c-door-leave { margin: 0 0 0 auto; }
.c-door-card__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 26px; }
.c-door-card__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-dim); }
.c-menu-changed, .c-products-changed { margin: 0; font-size: 12px; color: var(--console-faint); }
.c-menu-changed { padding: 6px 24px 0; }
.c-menu-earlier { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.c-menu-earlier p { margin: 0; }
.c-menu-earlier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.c-menu-earlier li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.c-menu-earlier li small { display: block; color: var(--text-dim); }
.c-menu-popover__body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 340px; max-width: calc(100vw - 28px); padding: 14px; border-radius: 12px; background: var(--surface-deep); border: 1px solid var(--palette-border); box-shadow: var(--palette-shadow); }

.c-setup-editor__fields > [data-linking] { grid-column: 1 / -1; margin: 0; }
/* A vendor door's Settled sales (§2.2a): one column of weekends, days as ledger rows. */
.c-door-sales { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.c-door-sales__head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; line-height: 26px; }
.c-door-sales__head p, .c-door-sales__note, .c-door-sales__none { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-dim); }
.c-door-sales__note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.c-door-sales__note a:hover { text-decoration: underline; }
.c-door-sales .c-ledger-row .c-money { font-family: var(--mono); color: var(--text); white-space: nowrap; }
.c-door-sales__total { padding-top: 11px; border-top: 1px solid var(--console-hairline); color: var(--text); font-weight: 600; }
.c-door-sales .c-alert { align-items: flex-start; }
.c-door-sales .c-alert__title { font-size: 14px; }
.c-door-sales__elsewhere { gap: 6px; }
.c-door-sales__elsewhere-line { margin: 0; font-size: 14px; color: var(--text); }
.c-door-sales__elsewhere-line .c-money { font-family: var(--mono); }

@media (max-width: 800px) {
  .c-door-bar { height: auto; flex-wrap: wrap; align-items: center; row-gap: 4px; padding: 10px 14px 0; }
  .c-door-title { flex: 1; }
  .c-door-leave { order: 2; }
  .c-door-tabs { order: 3; width: 100%; height: 44px; min-height: 0; gap: 24px; }
  .c-door-tabs a { height: 44px; }
  .c-menu-changed { padding: 6px 14px 0; }
  .c-menu-popover__body { left: 0; right: auto; }
  .c-menu-earlier li { flex-wrap: wrap; }
  .c-menu-earlier li > span { flex: 1 1 100%; }
  .c-door-tabs { gap: 20px; }
  .c-door-sales .c-setup-card { padding: 16px; }
}
.c-door-card__actions { margin: 0; display: flex; }
.c-door-card__actions .c-btn { flex: 1; }
/* A refusal inside the product form or its actions reads as one, not as help text. */
.c-products-form p.c-setup-error, .c-products-actions p.c-setup-error { color: var(--warn); font-size: 13px; }
/* A door's tax changes under review (#144 second review): tokens only. */
.c-menu-review { margin: 10px 24px 0; padding: 14px 16px; border: 1px solid var(--accent-border); border-radius: 10px; background: var(--accent-bg); display: grid; gap: 8px; }
.c-menu-review__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.c-menu-review ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.c-menu-review li { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.c-menu-review li small, .c-menu-review p { font-size: 12px; color: var(--text-dim); margin: 0; }
.c-menu-row--flagged { border-color: var(--accent-border); }
.c-menu-row__flag { color: var(--accent); }
@media (max-width: 800px) { .c-menu-review { margin: 10px 14px 0; } }

.c-notice { padding: 10px 24px; margin: 0; color: var(--ok); font-size: 13px; }
.c-confirm { width: 100%; }
.c-confirm--trigger { width: auto; }
[x-cloak] { display: none !important; }
.c-empty-state { padding: 12px 24px; color: var(--text-muted); }
.c-rollup-day { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.c-rollup-day input[type=date] { font: inherit; font-size: 13px; color: var(--text-soft); background: var(--console-bg); border: 1px solid var(--border); border-radius: 7px; height: 28px; padding: 0 10px; color-scheme: dark; }

/* BEGIN NAVIGATION -- console-nav artboards (owner-approved 2026-09-30).
   A 232px sidebar from 1024px up; below it a bottom bar and the More sheet.
   .c-shell holds the navigation beside .c-page, which stays the bar, the
   context row and the scrolling body exactly as before. */
.c-shell { position: relative; height: 100vh; height: 100dvh; display: flex; }
.c-shell > .c-page { flex: 1 1 0; min-width: 0; height: auto; }

.c-nav-eyebrow {
  margin: 22px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.c-nav-note { margin: 0; padding: 0 12px; height: 40px; display: flex; align-items: center; font-size: 14px; color: var(--text-dim); }

.c-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.c-nav-row:hover { background: var(--row-highlight); color: var(--text); }
.c-nav-row .c-nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }
.c-nav-row__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-nav-row__tag { font-size: 11px; color: var(--text-dim); }
.c-nav-row__count { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--warn); text-align: right; }
.c-nav-row .c-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.c-nav-row--active { background: var(--accent-bg); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.c-nav-row--active .c-nav-icon { color: var(--accent); }

.c-sidebar {
  position: relative;
  width: 232px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* The switcher sits over the top 58px: 14px above it, 44px of it. */
  padding: 58px 12px 12px;
  overflow-y: auto;
  background: var(--surface-deep);
  border-right: 1px solid var(--hairline);
}
.c-sidebar > .c-nav-eyebrow:first-child { margin-top: 20px; }
.c-sidebar__spacer { flex: 1; min-height: 12px; }

/* The one switcher, drawn as the sidebar's first block (and moved to the
   top bar below 1024px). */
.c-switch-slot { position: absolute; top: 14px; left: 12px; width: 208px; z-index: 35; }
.c-switch-slot .c-switcher { display: block; }
.c-switch-slot .c-pill { width: 100%; height: 44px; gap: 10px; padding: 0 12px; border-radius: 12px; }
.c-switch-slot .c-pill__dot { width: 8px; height: 8px; border-radius: 50%; }
.c-switch-slot .c-pill > span:not(.c-pill__dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.c-switch-slot .c-switcher__menu { top: 52px; width: 296px; }

/* The account: the sidebar's last block. */
.c-account--row { border-top: 1px solid var(--hairline); padding-top: 6px; }
.c-account__button { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 10px; border-radius: 10px; text-align: left; color: var(--text-soft); }
.c-account__button:hover { background: var(--row-highlight); }
.c-account--row .c-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.c-account__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.c-account__label { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-account__detail { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-account--row .c-account__menu { top: auto; bottom: calc(100% + 6px); left: 0; right: 0; width: auto; }

.c-bar .c-search { max-width: 620px; }
.c-bar .c-cluster { margin-left: auto; }

@media (min-width: 1024px) {
  .c-more { display: none; }
  /* The account is in the sidebar; the bar's copy is the phone's. */
  .c-bar .c-account { display: none; }
}

@media (max-width: 1023px) {
  .c-shell { flex-direction: column; }
  .c-shell > .c-page { flex: 1 1 0; min-height: 0; }
  .c-sidebar { display: none; }

  /* The top bar: the switcher at the left (lifted out of the sidebar), a
     search button and the avatar at the right. */
  .c-switch-slot { top: 0; left: 16px; width: auto; height: 60px; max-width: calc(100% - 140px); display: flex; align-items: center; }
  .c-switch-slot .c-pill { height: 40px; width: auto; max-width: 100%; }
  .c-switch-slot .c-switcher { max-width: 100%; min-width: 0; }
  .c-switch-slot .c-switcher__menu { top: 48px; width: min(300px, calc(100vw - 32px)); }
  .c-page:has(.c-app-switch) .c-bar .c-cluster { margin-left: 0; }
  .c-shell:has(.c-app-switch) .c-switch-slot { max-width: calc(100% - 220px); }
  .c-page .c-bar { justify-content: flex-end; padding: 0 16px; gap: 10px; background: var(--surface-deep); }
  .c-page .c-bar .c-search { flex: none; width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; border: 0; border-radius: 12px; background: var(--surface); color: var(--text-soft); }
  .c-page .c-bar .c-search svg { width: 20px; height: 20px; }
  .c-page .c-bar .c-search__label, .c-page .c-bar .c-search .c-key { display: none; }
  .c-page .c-bar .c-cluster { margin-left: 0; gap: 10px; }
  .c-page .c-bar .c-cluster > span { display: none; }
  .c-page .c-bar .c-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text); }

  .c-more { display: contents; }

  .c-bottombar {
    position: relative;
    z-index: 52;
    flex-shrink: 0;
    height: 84px;
    padding: 8px 8px 24px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--surface-deep);
    border-top: 1px solid var(--hairline);
  }
  .c-bottombar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 52px; border-radius: 10px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
  .c-bottombar__item .c-nav-icon { width: 22px; height: 22px; }
  .c-bottombar__item--active { color: var(--accent); }

  .c-sheet-scrim { position: fixed; inset: 0; z-index: 50; background: var(--bg); opacity: .72; }
  .c-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 84px;
    z-index: 51;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 84px - 24px);
    max-height: calc(100dvh - 84px - 24px);
    overflow-y: auto;
    padding: 10px 12px 0;
    background: var(--surface-deep);
    border-top: 1px solid var(--hairline);
    border-radius: 18px 18px 0 0;
  }
  .c-sheet:focus { outline: none; }
  .c-sheet__grip { width: 40px; height: 4px; flex-shrink: 0; border-radius: 2px; background: var(--border); align-self: center; margin-bottom: 12px; }
  .c-sheet .c-nav-eyebrow { margin: 6px 12px; }
  .c-sheet .c-nav-eyebrow ~ .c-nav-eyebrow { margin-top: 14px; }
  .c-sheet .c-nav-row { height: 48px; gap: 14px; border-radius: 12px; color: var(--text); }
  .c-sheet .c-nav-row .c-nav-icon { width: 20px; height: 20px; }
  .c-sheet .c-nav-row__tag,
  .c-sheet .c-nav-row__count { font-size: 12px; }
  .c-sheet .c-nav-note { height: 48px; }
  .c-sheet__account { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 56px; margin-top: 10px; padding: 0 12px; border-top: 1px solid var(--hairline); }
  .c-sheet__who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; height: 56px; color: var(--text-soft); }
  .c-avatar--lg { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text); }
  .c-sheet__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .c-sheet__name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .c-sheet__role { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .c-sheet__out { height: 44px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
  .c-sheet__out:hover { background: var(--row-highlight); color: var(--text); }
}
/* The sales-day line: the phone's stand-in for the bar's clock and sales day. */
.c-sales-day { position: relative; z-index: 3; border-bottom: 1px solid var(--console-hairline); background: var(--console-bg); display: none; margin: 0; padding: 8px 16px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 1023px) { .c-sales-day { display: block; flex-shrink: 0; } }
.c-browser-all, .c-menu-toolbar__all { margin-left: auto; font-size: 12px; white-space: nowrap; color: var(--text-muted); }
.c-browser-all:hover, .c-menu-toolbar__all:hover { color: var(--text); }
/* END NAVIGATION */

/* Home's terminals under their area (owner-approved 2026-10-01): a header
   per area, then cards four across. An area where nothing needs attention
   folds to its header line. Colours are tokens only. */
.c-areas { display: flex; flex-direction: column; gap: 18px; }
.c-area { display: flex; flex-direction: column; gap: 10px; }
.c-area[data-quiet="1"] { border-top: 1px solid var(--hairline); padding-top: 12px; }
.c-area__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.c-area__name { margin: 0; font-size: 16px; font-weight: 700; }
.c-area__name--none { color: var(--text-muted); }
.c-area__count { color: var(--text-dim); }
.c-area__spacer { flex: 1; }
.c-area__total { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.c-area__recent { color: var(--text-muted); white-space: nowrap; }
.c-area__toggle, .c-area__more { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.c-area__more { align-self: flex-start; margin-top: 10px; }
.c-area__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.c-station-card { background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c-station-card--warn { box-shadow: inset 0 0 0 1px var(--warn); }
.c-station-card--unused { color: var(--text-dim); }
.c-station-card__top { display: flex; justify-content: space-between; gap: 8px; }
.c-station-card__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-station-card__state { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.c-station-card__state--ok { color: var(--ok); }
.c-station-card__meta { font-size: 13px; color: var(--text-muted); display: flex; min-width: 0; white-space: nowrap; }
.c-station-card__staff { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.c-station-card__opened { flex-shrink: 0; }
.c-station-card__strip { display: flex; }
.c-station-card__strip .c-interval-strip { height: 24px; }
.c-station-card__money { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.c-station-card__count { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--text-dim); }
.c-feed-areas { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px; }
.c-feed-areas .c-chip { background: none; font: inherit; font-size: 12px; cursor: pointer; }
.c-feed-areas .c-chip--active { background: var(--chip-active); }
.c-feed-row__area { color: var(--text-dim); white-space: nowrap; }
@media (max-width: 1340px) { .c-area__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .c-area__cards { grid-template-columns: minmax(0, 1fr); } }
/* BEGIN PHONE CARDS — below 760px a list row is a two-line card, a filter bar
   scrolls sideways, and a selected sale, void or shift opens as a full-screen
   sheet. Desktop is untouched: everything under 760px sits in the media block,
   and the few rules outside it only hide what the phone shows. */
.c-card-only, .c-sheet-bar, .c-browser-receipt-open, .c-phone-feed { display: none; }
@media (max-width: 800px) { .c-browser-filter-row > label { flex: 1 1 45%; min-width: 0; } }
.c-browser-filter-row { display: contents; }
@media (max-width: 760px) {
  /* Cards: a 2x2 grid. Left: the lead line, then the facts line; right: the
     amount, then the state in its tone. Each left cell is one string, built on
     the server, so nothing is printed beside an empty part. */
  .c-table--cards tbody { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
  .c-browser-table.c-table--cards tbody { padding: 12px 16px; }
  .c-table.c-table--labelled.c-table--cards tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: baseline; min-height: 44px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface); }
  .c-table.c-table--labelled.c-table--cards tbody tr::after { display: none; }
  .c-table.c-table--labelled.c-table--cards tbody td { display: none; min-width: 0; padding: 0; border: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; white-space: nowrap; font-size: 13px; }
  .c-table.c-table--labelled.c-table--cards tbody td::after { display: none; }
  .c-table.c-table--labelled.c-table--cards td[data-label]::before { display: none; float: none; }
  .c-table.c-table--labelled.c-table--cards tbody td:is(.c-card-l1, .c-card-lead, .c-card-l2, .c-card-amount, .c-card-status) { display: block; }
  .c-table.c-table--labelled.c-table--cards tbody td:is(.c-card-l1, .c-card-lead) { grid-area: 1 / 1; font-size: 15px; font-weight: 600; color: var(--text); }
  .c-table.c-table--labelled.c-table--cards tbody td.c-card-amount { grid-area: 1 / 2; overflow: visible; font: 700 15px var(--mono); color: var(--text); text-align: right; }
  .c-table.c-table--labelled.c-table--cards tbody td.c-card-l2 { grid-area: 2 / 1; color: var(--text-muted); }
  .c-table.c-table--labelled.c-table--cards tbody td.c-card-status { grid-area: 2 / 2; overflow: visible; text-align: right; }
  .c-table.c-table--labelled.c-table--cards tbody td.c-card-labelled[data-label]::before { display: inline; margin-right: 4px; padding: 0; font: 400 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--console-faint); content: attr(data-label); }
  .c-table.c-table--labelled.c-table--cards tbody td.c-card-lead a, .c-table.c-table--labelled.c-table--cards tbody td.c-card-lead button { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: inherit; text-align: left; }
  .c-table--cards .c-card-struck, .c-table--cards tr:has(.c-card-struck) td.c-card-amount { text-decoration: line-through; color: var(--text-dim); }
  .c-table--cards .c-browser-row--muted td.c-card-l1 { color: var(--text-dim); }
  .c-table--cards select { height: 36px; max-width: 100%; }
  .c-table--cards .c-products-row__owner { display: none; }
  .c-table.c-table--labelled.c-table--cards.c-passkeys tbody td.c-card-l2 { grid-area: 2 / 1 / 3 / 3; white-space: normal; }
  .c-table.c-table--labelled.c-table--cards.c-passkeys tbody td.c-card-status { grid-area: 3 / 1 / 4 / 3; padding: 8px 0 0; text-align: left; }
  /* Team on a phone: name, role, email and joined, then the row's actions, each on its own line, nothing past the card. */
  .c-table.c-table--labelled.c-table--cards.c-team-roster tbody td.c-card-lead { grid-area: 1 / 1 / 2 / 3; white-space: normal; }
  .c-table.c-table--labelled.c-table--cards.c-team-roster tbody td.c-card-status { grid-area: 2 / 1 / 3 / 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-align: left; }
  .c-table.c-table--labelled.c-table--cards.c-team-roster tbody td.c-card-l2 { grid-area: 3 / 1 / 4 / 3; white-space: normal; overflow-wrap: anywhere; }
  .c-table.c-table--labelled.c-table--cards.c-team-roster tbody td.c-card-amount { grid-area: 4 / 1 / 5 / 3; display: flex; flex-wrap: wrap; gap: 8px; font: 400 14px var(--sans); text-align: left; }
  .c-table.c-table--labelled.c-table--cards.c-team-roster tbody td.c-card-amount:empty { display: none; }
  .c-passkeys [data-passkey-actions] { flex-wrap: wrap; justify-content: flex-start; }
  .c-table.c-table--labelled.c-table--cards.c-phones tbody td.c-card-lead { white-space: normal; overflow-wrap: anywhere; }

  /* Home on a phone: sales day (the layout's own line), needs attention, the
     checklist, tiles two across, latest sales as cards, then the terminals as
     cards. The rail is not drawn; .c-phone-feed is its stand-in in this column. */
  .c-body:has(.c-operations) .c-rail { display: none; }
  .c-operations { display: flex; flex-direction: column; gap: 14px; }
  .c-operations > .c-attention-group, .c-operations > [data-attention-clear] { order: 1; }
  .c-operations > [data-setup-checklist] { order: 2; }
  .c-operations > .c-tiles { order: 3; }
  .c-operations > .c-phone-feed { order: 4; display: flex; flex-direction: column; gap: 8px; }
  .c-operations > .c-station-group { order: 5; }
  .c-attention-group { gap: 8px; }
  .c-operations .c-attention-sentence { position: relative; flex-wrap: nowrap; gap: 12px; min-height: 44px; padding: 12px 14px; border-radius: 14px; border-left: 0; background: var(--surface); }
  .c-operations .c-attention-sentence__copy { flex: 1 1 0; }
  .c-operations .c-attention-sentence .c-btn { flex: 0 0 auto; height: 32px; padding: 0 12px; background: none; color: var(--accent); }
  .c-operations .c-attention-sentence .c-btn::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
  .c-operations .c-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; background: none; }
  .c-operations .c-tile { padding: 14px 16px; border-radius: 14px; background: var(--surface); }
  .c-operations .c-tile--live { background: var(--tile-live-bg); }
  .c-operations .c-tile__value { font-size: 26px; line-height: 30px; letter-spacing: -0.5px; white-space: nowrap; }
  .c-phone-feed__head { display: flex; justify-content: space-between; align-items: center; }
  .c-phone-feed__head a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
  .c-phone-sale { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: baseline; min-height: 44px; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
  .c-phone-sale__lead { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .c-phone-sale__amount { font: 700 15px var(--mono); white-space: nowrap; text-align: right; }
  .c-phone-sale__facts, .c-phone-sale__state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-muted); }
  .c-phone-sale__state { text-align: right; color: var(--ok); }
  .c-phone-sale__state--warn { color: var(--warn); }
  .c-phone-sale__state--dim { color: var(--text-dim); }
  .c-operations [data-setup-checklist] ol { margin: 0; padding-left: 20px; }
  .c-phone-sale--refunded .c-phone-sale__lead, .c-phone-sale--refunded .c-phone-sale__amount { text-decoration: line-through; color: var(--text-dim); }
  .c-phone-sale--refunded .c-phone-sale__state { color: var(--text-dim); }
  .c-operations-legend, .c-station-card__strip, .c-stations .c-station-row > .c-interval-strip, .c-station-card__count { display: none; }
  .c-feed-areas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .c-feed-areas .c-chip { flex: 0 0 auto; height: 36px; }
  .c-area__head { align-items: center; }
  .c-area__sep { display: none; }
  .c-station-card__state { color: var(--text-dim); }
  .c-station-card__state--ok { color: var(--ok); }
  .c-station-card__state.c-operations-warn { color: var(--warn); }
  .c-area__cards, .c-stations { display: flex; flex-direction: column; gap: 8px; }
  .c-operations .c-station-card, .c-operations .c-station-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: baseline; min-height: 44px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface); }
  .c-station-card__top, .c-station-card__money, .c-operations .c-station-row__label { display: contents; }
  .c-station-card__name, .c-operations .c-station-row__name { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
  .c-station-card__money > :first-child, .c-operations .c-station-row__money { grid-area: 1 / 2; font: 700 15px var(--mono); white-space: nowrap; text-align: right; width: auto; }
  .c-operations .c-station-row__amount { font: 700 15px var(--mono); }
  .c-station-card__meta, .c-operations .c-station-row__shift { grid-area: 2 / 1; min-width: 0; font-size: 13px; color: var(--text-muted); }
  .c-operations .c-station-row__label > .c-station-row__meta:not(.c-station-row__shift) { display: none; }
  .c-operations .c-station-row__label > .c-station-row__shift { display: flex; }
  .c-station-card__state { grid-area: 2 / 2; text-align: right; }
  .c-operations .c-station-row__state { grid-area: 2 / 2; width: auto; display: block; text-align: right; }
  .c-operations .c-station-row__state > :last-child { display: none; }
  .c-operations .c-station-row__money .c-station-row__meta { display: none; }

  /* The list fills the screen; the detail is a sheet, so nothing stacks under it. */
  .c-browser { overflow: hidden; }
  .c-browser-list { flex: 1 1 auto; min-height: 0; }
  .c-browser-table { min-width: 0; }
  .c-browser-footer { display: block; min-height: 0; padding: 10px 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .c-browser-footer > span { display: none; }
  .c-browser-more { padding: 14px 16px; }

  /* Filters: the lens switch is one full-width control, the rest scroll sideways. */
  .c-page:has(.c-browser) .c-context { min-width: 0; max-width: 100%; overflow: hidden; }
  .c-browser-filters { min-width: 0; max-width: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; overflow: visible; }
  .c-browser-filters .c-chips { flex: none; width: 100%; gap: 6px; padding: 3px; border-radius: 12px; border: 1px solid var(--hairline); }
  .c-browser-filters .c-chips button { flex: 1 1 0; min-width: 0; }
  .c-browser-filters .c-chips .c-chip { width: 100%; height: 36px; justify-content: center; border-color: transparent; border-radius: 10px; font-size: 14px; }
  .c-browser-filters .c-chips .c-chip--active { padding: 0 11px; }
  .c-browser-filter-row { display: flex; max-width: 100%; align-items: center; gap: 8px; min-width: 0; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
  .c-browser-filter-row::-webkit-scrollbar { display: none; }
  .c-browser-filter-row > * { flex: 0 0 auto; }
  .c-browser-filter-row > label { flex: 0 0 auto; }
  .c-browser-filter-row select, .c-browser-filter-row input { width: auto; height: 36px; padding: 0 12px; border-radius: 10px; border-color: var(--hairline); background: var(--surface); font-size: 14px; }
  .c-browser-filter-row .c-browser-night { gap: 8px; padding-left: 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); font-size: 14px; }
  .c-browser-filter-row .c-browser-night input { border: 0; background: none; padding: 0 12px 0 0; }
  .c-browser-filter-row .c-browser-receipt input { width: 168px; }
  .c-browser-filter-row .c-chip { height: 36px; border-radius: 10px; font-size: 14px; }
  .c-browser-filter-row button { height: 36px; }
  .c-browser-hint { display: none; }
  .c-browser-shortcuts { display: flex; margin-left: 0; font-size: 14px; }
  .c-browser-shortcuts a, .c-browser-all { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); font: 14px var(--sans); color: var(--text-soft); white-space: nowrap; }

  /* The sheet: fixed over the list, its own scroll. Bar, header and amount,
     the two actions, the facts, then the void alone at the end. */
  .c-browser-detail { position: fixed; inset: 0; z-index: 55; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; width: 100%; max-width: 100vw; height: 100dvh; box-sizing: border-box; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 0; background: var(--bg); }
  .c-browser-detail:not([data-sheet-open]) { display: none; }
  .c-browser-detail > * { grid-column: 1 / -1; order: 4; min-width: 0; }
  .c-browser-detail-section, .c-browser-detail .c-ledger-row, .c-browser-identifiers div { min-width: 0; flex-wrap: wrap; }
  .c-browser-detail-top { flex-wrap: wrap; }
  .c-browser-detail > .c-sheet-bar { order: 0; position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--hairline); background: var(--surface-deep); }
  .c-sheet-bar__back { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--text-soft); }
  .c-sheet-bar__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .c-browser-detail > .c-browser-detail-head { order: 1; padding: 6px 0 0; border: 0; }
  .c-browser-amount { font-size: 36px; letter-spacing: -0.7px; white-space: nowrap; }
  .c-browser-detail-section { padding: 14px 16px; border: 0; border-radius: 14px; background: var(--surface); }
  .c-browser-detail > .c-browser-actions { order: 10; padding: 0; border: 0; }
  .c-browser-detail > .c-browser-sale-actions, .c-browser-sale-actions__row, .c-browser-receipt-pane { display: contents; }
  .c-browser-detail [data-sale-open-stripe], .c-browser-receipt-open { grid-column: auto; order: 2; display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 12px; border-radius: 14px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; }
  .c-browser-detail:not(:has([data-sale-open-stripe])) .c-browser-receipt-open, .c-browser-detail:not(:has(.c-browser-receipt-open)) [data-sale-open-stripe] { grid-column: 1 / -1; }
  .c-browser-detail [data-sale-receipt-notice], .c-browser-detail [data-sale-receipt-error] { grid-column: 1 / -1; order: 3; }
  .c-browser-detail form[data-sale-receipt] { display: none; grid-column: 1 / -1; order: 3; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
  .c-browser-receipt-pane[data-open] form[data-sale-receipt] { display: flex; }
  .c-browser-detail [data-sale-void-ask] { grid-column: 1 / -1; order: 9; height: 52px; border: 1px solid var(--warn); border-radius: 14px; background: transparent; color: var(--warn); font-size: 16px; font-weight: 700; }
  .c-browser-detail [data-sale-void-action] { grid-column: 1 / -1; order: 9; }
  .c-browser-void p.c-browser-void__note { text-align: center; }
}
/* END PHONE CARDS */

/* Devices: every terminal of the event (the fleet artboards, 2026-10-09). */
.c-main:has(> .c-fleet) { padding: 0; gap: 0; overflow: hidden; }
.c-fleet { display: flex; flex-direction: column; min-height: 0; }
.c-fleet-body { display: flex; flex: 1; min-height: 0; }
.c-fleet-main-col { flex: 1; min-width: 0; overflow: auto; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.c-fleet-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.c-fleet-head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.c-fleet-meta, .c-fleet-dim { color: var(--text-dim); }
.c-fleet-spacer { flex-grow: 1; }
.c-fleet-live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.c-fleet-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--text-dim); vertical-align: middle; }
.c-fleet-dot--ok { background: var(--ok); }
.c-fleet-dot--warn { background: var(--warn); }
.c-fleet-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.c-fleet-main-col > * { flex-shrink: 0; }
.c-fleet-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.c-fleet-chip--active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.c-fleet-note { font-size: 13px; color: var(--text-dim); }
.c-fleet-all { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.c-fleet-warn { color: var(--warn); font-weight: 600; }
.c-fleet-soft { color: var(--text-soft); }
.c-fleet-table { background: var(--surface); border-radius: 14px; padding: 4px 0 6px; overflow: hidden; }
.c-fleet-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 12px; align-items: center; width: 100%; min-height: 66px; padding: 10px 16px; box-sizing: border-box; border: 0; border-top: 1px solid var(--hairline); background: transparent; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.c-fleet-row:hover { background: var(--row-highlight); }
/* Both layouts share the available width; Status always gets its own track,
   even beside the detail panel. Let content make rows taller, not wider. */
.c-fleet-row--compact { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.5fr) minmax(0, 1.1fr); min-height: 64px; padding: 8px 16px; }
.c-fleet-row--selected { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }
.c-fleet-row--head { min-height: 38px; padding-top: 8px; padding-bottom: 8px; border-top: 0; cursor: default; }
.c-fleet-row--head:hover { background: transparent; }
.c-fleet-row--head span { overflow-wrap: normal; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); }
.c-fleet-row > * { min-width: 0; overflow-wrap: break-word; }
.c-fleet-cell { display: flex; flex-direction: column; gap: 3px; }
.c-fleet-cell > span, .c-fleet-sub { white-space: normal; overflow-wrap: anywhere; }
.c-fleet-cell > .c-fleet-sub--wrap { white-space: normal; }
.c-fleet-name { font-weight: 600; }
.c-fleet-main.c-mono { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.c-fleet-sub { font-size: 12px; color: var(--text-dim); }
.c-fleet-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.c-fleet-status .c-fleet-sub { white-space: normal; }
.c-fleet-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 24px; padding: 3px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; color: var(--text-dim); }
.c-fleet-pill .c-fleet-dot { width: 6px; height: 6px; background: currentColor; }
.c-fleet-pill--ok { color: var(--ok); }
.c-fleet-pill--warn { color: var(--warn); }
.c-fleet-pill--accent { color: var(--accent); background: var(--accent-bg); }
.c-fleet-foot { margin: 0; font-size: 13px; color: var(--text-dim); }
.c-fleet-none { margin: 0; padding: 18px 16px; color: var(--text-dim); border-top: 1px solid var(--hairline); }
.c-fleet-empty { border: 1px dashed var(--border-dashed); border-radius: 14px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.c-fleet-empty svg { width: 32px; height: 32px; stroke: var(--text-dim); }
.c-fleet-empty p { margin: 0; color: var(--text-muted); }
.c-fleet-empty .c-fleet-empty__title { font-size: 16px; font-weight: 600; color: var(--text); }
.c-fleet-cards { display: none; }
.c-fleet-card { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.c-fleet-card__head { display: flex; align-items: center; gap: 10px; }
.c-fleet-card__name { font-size: 16px; font-weight: 600; flex-grow: 1; }
.c-fleet-card__line { font-size: 13px; color: var(--text-muted); }
.c-fleet-panel { width: 480px; flex-shrink: 0; box-sizing: border-box; background: var(--surface-deep); border-left: 1px solid var(--hairline); overflow: auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 22px; }
.c-fleet-panel__head { display: flex; flex-direction: column; gap: 8px; }
.c-fleet-panel__title { display: flex; align-items: center; gap: 12px; }
.c-fleet-panel__title h2 { margin: 0; font-size: 22px; font-weight: 700; flex-grow: 1; }
.c-fleet-panel__about { color: var(--text-muted); }
.c-fleet-close { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--text-dim); font: inherit; font-size: 18px; cursor: pointer; }
.c-fleet-panel section > .c-eyebrow { display: block; margin-bottom: 6px; }
.c-fleet-panel .c-ledger-row { border-top: 1px solid var(--hairline); padding: 9px 0; }
.c-fleet-link { font-weight: 600; color: var(--accent); text-decoration: none; }
.c-fleet-history { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--hairline); color: var(--text-soft); line-height: 1.4; }
.c-fleet-history .c-mono { font-size: 12px; color: var(--text-dim); padding-top: 1px; }
.c-fleet-actions { display: flex; flex-direction: column; gap: 14px; }
.c-fleet-action { display: flex; gap: 14px; align-items: flex-start; }
.c-fleet-action > .c-btn { flex-shrink: 0; }
.c-fleet-action p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.c-fleet-action .c-confirm { flex: 1; }
@media (max-width: 1100px) {
    .c-fleet-panel { width: 400px; }
    /* Beside the panel there is no room for Kind; the panel names it. */
    .c-fleet-row--compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); }
    .c-fleet-row--compact > :nth-child(2) { display: none; }
}
@media (max-width: 800px) {
    .c-fleet-main-col { padding: 12px 16px; gap: 12px; }
    .c-fleet-head h1 { font-size: 17px; }
    .c-fleet-live, .c-fleet-note { display: none; }
    .c-fleet-filters { flex-wrap: nowrap; overflow-x: auto; }
    .c-fleet-all { white-space: nowrap; flex-shrink: 0; }
    .c-fleet-chip { flex-shrink: 0; }
    .c-fleet-table { display: none; }
    .c-fleet-cards { display: flex; flex-direction: column; gap: 10px; }
    .c-fleet-panel { position: fixed; inset: auto 0 84px 0; z-index: 50; width: auto; max-height: calc(100vh - 160px); border-left: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; background: var(--surface); padding: 16px 20px 28px; box-shadow: var(--palette-shadow); }
    .c-fleet-history { grid-template-columns: 96px minmax(0, 1fr); }
    .c-fleet-action { flex-direction: column; gap: 8px; }
}

/* Re-pair refusal: the shared palette sheet, composed from console cards. */
.c-palette--repair { padding-top: 56px; }
.c-palette--repair .c-palette__panel { max-height: calc(100dvh - 80px); }
.c-palette--repair .c-palette__search { display: none; }
.c-palette__step--repair { padding: 0; }
.c-repair { color: var(--text); overflow-wrap: anywhere; }
.c-repair__head { padding: 24px 28px 20px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--console-hairline); }
.c-repair__head h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; }
.c-repair__status[data-tone="warn"] { color: var(--warn); }
.c-repair__status[data-tone="ok"] { color: var(--ok); }
.c-repair__facts { margin: 0; padding: 16px 28px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; line-height: 20px; border-bottom: 1px solid var(--console-hairline); }
.c-repair__facts dt { color: var(--text-dim); }
.c-repair__facts dd { margin: 0; }
.c-repair__seen { font: 13px/20px var(--mono); }
.c-repair__options { padding: 20px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c-repair__options .c-setup-card { background: var(--surface); padding: 16px 18px; border-radius: 12px; gap: 8px; }
.c-repair__options .c-eyebrow { color: var(--text); font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: normal; }
.c-repair__options p { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-soft); }
.c-repair__options .c-btn { align-self: start; }
.c-repair__options--single { grid-template-columns: minmax(0, 1fr); }
.c-repair__options--single .c-setup-card { flex-direction: row; align-items: center; gap: 16px; }
.c-repair__options--single .c-setup-card__heading { display: none; }
.c-repair__options--single .c-setup-card p { flex: 1; }
.c-repair__foot { padding: 0 28px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.c-repair__foot a { min-height: 44px; display: flex; align-items: center; font-size: 13px; }
.c-repair__phone { display: none; }
@media (max-width: 600px) {
  .c-palette--repair { padding: 0; align-items: flex-end; }
  .c-palette--repair .c-palette__panel { width: 100%; max-height: calc(100dvh - 16px); border-radius: 16px 16px 0 0; }
  .c-repair { padding-bottom: 24px; }
  .c-repair__head { padding: 22px 16px 16px; gap: 8px; }
  .c-repair__head h2 { font-size: 20px; line-height: 26px; }
  .c-repair__facts { padding: 14px 16px; grid-template-columns: 116px minmax(0, 1fr); gap: 8px 12px; }
  .c-repair__options { padding: 14px 16px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .c-repair__options .c-setup-card { padding: 14px 16px; }
  .c-repair__options--single .c-setup-card { flex-direction: column; align-items: stretch; }
  .c-repair__options .c-btn, .c-repair .c-dialog__actions { width: 100%; }
  .c-repair .c-btn { min-height: 48px; }
  .c-repair__foot { padding: 4px 16px 0; gap: 12px; }
  .c-repair__foot a { font-size: 14px; }
  .c-repair__desktop { display: none; }
  .c-repair__phone { display: inline; }
}

.c-palette--repair .c-palette__foot { display: none; }

/* The idle notice (console.partials.idle-notice): a row of the page above
   its content, so showing it pushes the content down and covers nothing. */
.c-idle { flex-shrink: 0; padding: 14px 24px 0; }
.c-idle[hidden] { display: none; }
.c-idle form { margin: 0; }
.c-idle__announce { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .c-idle { padding: 10px 16px 0; }
  .c-idle .c-alert { flex-wrap: wrap; }
  .c-idle .c-alert__text { flex-basis: 100%; }
  .c-idle .c-alert__actions { width: 100%; }
}
