/* The door (packs/ticketing/app/views/ticketing/door and office/door): the scanner, full screen and readable at arm's length, and the office's Door page.

   The scanner fills the screen with no rail. One verdict at a time covers it: the tone's own background and ink (good, warn, bad, from the tone tokens, so it
   reads in sunlight in the light mode and at night in the dark), a shape that says it without the colour (a circle and tick, a triangle, an octagon and cross),
   and one or two words as large as the screen allows. Tokens only and logical properties only; every control at least --target-min, the Start button twice that.
   Heights in dvh, never vh, so a phone's own bars never hide the field. */

.tk-door {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1 0 auto;
  padding-block: var(--space-3) var(--space-5);
  padding-inline: max(var(--space-4), env(safe-area-inset-left)) max(var(--space-4), env(safe-area-inset-right));
  background: var(--bg);
  color: var(--fg1);
  overflow-wrap: anywhere;
}

/* The scanner and the page's foot are one screen tall at the least: the scanner takes what the foot leaves. */
body:has(> .tk-door) {
  display: flex;
  flex-direction: column;
  min-block-size: 100dvh;
}

/* The page's foot, in the look of the shells' (38-shell.css): the scanner's gutters and the device's insets are its own, since no shell wraps it. */
.tk-door__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-4) max(var(--space-5), env(safe-area-inset-bottom));
  padding-inline: max(var(--space-4), env(safe-area-inset-left)) max(var(--space-4), env(safe-area-inset-right));
  border-block-start: 1px solid var(--rule);
  background: var(--surface-sunken);
}

.tk-door__foot-by {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.tk-door__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-block-end: var(--space-3);
  border-block-end: 1px solid var(--rule-strong);
}

.tk-door__leave,
.tk-door__change,
.tk-door__camera-off {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  padding-inline: var(--space-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--fg1);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.tk-door__event {
  flex: 1 1 14rem;
  min-inline-size: 0;
}

.tk-door__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  line-height: 1.15;
}

.tk-door__when,
.tk-door__hint,
.tk-door__device {
  margin: 0;
  color: var(--fg2, var(--fg1));
}

.tk-door__net {
  margin: 0;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  font-weight: 700;
  background: var(--tone-good-bg);
  color: var(--tone-good-fg);
  border: 1px solid var(--tone-good-line);
}

.tk-door__net[data-state="offline"] {
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
  border-color: var(--tone-warn-line);
}

.tk-door__waiting {
  margin: 0;
  font-weight: 700;
  color: var(--tone-warn-fg);
}

.tk-door__setup,
.tk-door__scan {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  inline-size: 100%;
  max-inline-size: 48rem;
  margin-inline: auto;
}

.tk-door__setup-title,
.tk-door__small-title {
  margin: 0;
  font-size: 1.25rem;
}

.tk-door__setup-form,
.tk-door__typed,
.tk-door__lookup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tk-door__label {
  font-weight: 700;
  font-size: 1.125rem;
}

.tk-door__input {
  min-block-size: calc(var(--target-min) + 8px);
  padding-inline: var(--space-3);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--fg1);
  font: inherit;
  font-size: 1.25rem;
}

.tk-door__code {
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
}

.tk-door__input:focus-visible,
.tk-door__go:focus-visible,
.tk-door__check:focus-visible,
.tk-door__gate-choice:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.tk-door__gates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.tk-door__gates legend {
  padding: 0;
  margin-block-end: var(--space-2);
}

.tk-door__gate-choice {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-block-size: calc(var(--target-min) * 1.5);
  padding: var(--space-3);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  cursor: pointer;
}

.tk-door__gate-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.tk-door__gate-choice input {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  accent-color: var(--accent);
}

.tk-door__gate-word {
  font-size: 1.375rem;
  font-weight: 800;
}

.tk-door__gate-detail {
  color: var(--fg2, var(--fg1));
}

.tk-door__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: calc(var(--target-min) * 1.5);
  padding-inline: var(--space-6);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-size: 1.375rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.tk-door__gate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.tk-door__gate {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1;
}

.tk-door__count {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.25rem;
}

.tk-door__count strong {
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.tk-door__closed {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--tone-bad-line);
  border-radius: var(--radius-md);
  background: var(--tone-bad-bg);
  color: var(--tone-bad-fg);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Which plan is on, at an event with a rain plan: said before anyone scans; stronger where this scanner's own tickets are the ones that are off. */
.tk-door__plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--tone-warn-line);
  border-radius: var(--radius-md);
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
  font-weight: 700;
}

.tk-door__plan[data-state="elsewhere"] {
  border-color: var(--tone-bad-line);
  background: var(--tone-bad-bg);
  color: var(--tone-bad-fg);
}

.tk-door__plan-words {
  margin: 0;
}

.tk-door__plan a {
  color: inherit;
  text-decoration: underline;
}

.tk-door__camera {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: min(56dvh, 30rem);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-sunken, var(--surface-raised));
  overflow: hidden;
}

.tk-door__video {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0;
}

.tk-door__reticle {
  position: absolute;
  inline-size: min(64%, 46dvh, 22rem);
  aspect-ratio: 1;
  border: 4px solid var(--accent);
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
}

.tk-door__camera[data-state="on"] .tk-door__video,
.tk-door__camera[data-state="on"] .tk-door__reticle {
  opacity: 1;
}

.tk-door__camera-off {
  position: absolute;
  inset-block-end: var(--space-3);
  inset-inline-end: var(--space-3);
  display: none;
}

.tk-door__camera[data-state="on"] .tk-door__camera-off {
  display: inline-flex;
}

.tk-door__camera-note {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline: var(--space-3);
  margin: 0;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--fg1);
  font-weight: 700;
}

.tk-door__typed-row {
  display: flex;
  gap: var(--space-2);
}

.tk-door__typed-row .tk-door__input {
  flex: 1 1 auto;
  min-inline-size: 0;
}

.tk-door__check {
  flex: none;
  white-space: nowrap;
  min-block-size: calc(var(--target-min) + 8px);
  min-inline-size: var(--target-min);
  padding-inline: var(--space-4);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--accent-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tk-door__more summary {
  min-block-size: var(--target-min);
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.tk-door__conflicts {
  padding: var(--space-3);
  border: 2px solid var(--tone-warn-line);
  border-radius: var(--radius-md);
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
}

.tk-door__conflict-list,
.tk-door__order-tickets,
.tk-door__events {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-door__order-ticket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.tk-door__lookup-result {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tone-good-fg);
}

.tk-door__lookup-result[data-tone="stop"] {
  color: var(--tone-bad-fg);
}

/* ---- The verdict: one at a time, over everything ---- */

.tk-door__verdict {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  text-align: center;
  border: 12px solid var(--tone-good-line);
  background: var(--tone-good-bg);
  color: var(--tone-good-fg);
  cursor: pointer;
}

.tk-door__verdict[hidden] {
  display: none;
}

.tk-door__verdict[data-tone="warn"] {
  border-color: var(--tone-warn-line);
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
}

.tk-door__verdict[data-tone="stop"] {
  border-color: var(--tone-bad-line);
  background: var(--tone-bad-bg);
  color: var(--tone-bad-fg);
}

.tk-door__shape {
  inline-size: min(36dvh, 50vw, 16rem);
  block-size: auto;
  fill: none;
  stroke: currentcolor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-door__shape > g {
  display: none;
}

.tk-door__verdict[data-tone="go"] .tk-door__shape-go,
.tk-door__verdict[data-tone="warn"] .tk-door__shape-warn,
.tk-door__verdict[data-tone="stop"] .tk-door__shape-stop {
  display: inline;
}

.tk-door__word {
  margin: 0;
  font-size: clamp(3rem, 1.5rem + 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.tk-door__detail,
.tk-door__seat {
  margin: 0;
  max-inline-size: 40rem;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  font-weight: 700;
}

.tk-door__check-id {
  margin: 0;
  padding: var(--space-2) var(--space-5);
  border: 4px solid currentcolor;
  border-radius: var(--radius-lg);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

/* ---- What a person may scan ---- */

.tk-door__landing {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  inline-size: 100%;
  max-inline-size: 48rem;
  margin-inline: auto;
}

.tk-door__empty {
  margin: 0;
  font-size: 1.25rem;
}

.tk-door__event-link,
.tk-door__event-later {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--fg1);
  text-decoration: none;
}

.tk-door__event-link {
  border-inline-start-width: 8px;
  border-inline-start-color: var(--accent);
}

.tk-door__event-title {
  font-size: 1.375rem;
  font-weight: 800;
}

.tk-door__event-go {
  font-weight: 800;
  color: var(--accent-text);
}

/* ---- The office's Door page ---- */

.tk-door-office__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: var(--space-3);
  margin: 0;
}

.tk-door-office__totals > div {
  padding: var(--space-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.tk-door-office__totals dt {
  color: var(--fg2, var(--fg1));
}

.tk-door-office__totals dd {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tk-door-office__heading {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 1.125rem;
}

.tk-door-office__gates,
.tk-door-office__crew,
.tk-door-office__passes,
.tk-door-office__people,
.tk-door-office__conflicts,
.tk-door-office__earlier {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-door-office__earlier li {
  display: flex;
  flex-direction: column;
}

.tk-door-office__gate,
.tk-door-office__passes li,
.tk-door-office__people li,
.tk-door-office__crew li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

/* The gates of one kind of refusal, in a table cell: a short list that wraps. */
.tk-door-office__where {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.tk-door-office__gate[data-closed="true"] .tk-door-office__gate-name {
  text-decoration: line-through;
}

.tk-door-office__gate-name,
.tk-door-office__crew-name {
  font-weight: 700;
}

.tk-door-office__gate-in {
  font-variant-numeric: tabular-nums;
}

.tk-door-office__muted,
.tk-door-office__when {
  margin: 0;
  color: var(--fg2, var(--fg1));
}

.tk-door-office__scanner {
  font-weight: 700;
}

.tk-door-office__find {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
}

.tk-door__pre-doors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--tone-warn-line);
  border-radius: var(--radius-md);
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
}

.tk-door__pre-doors-badge {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--tone-warn-line);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tk-door__pre-doors-words {
  margin: 0;
  font-weight: 600;
}

.tk-door__pre-doors-pill {
  display: inline-flex;
  align-items: center;
  margin-inline-start: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--tone-warn-line);
  border-radius: 999px;
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
  font-size: var(--text-xs);
  font-weight: 700;
}

.tk-door-office__onboarding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  min-inline-size: 0;
}

.tk-door-office__onboarding-copy {
  display: grid;
  gap: var(--space-1);
  flex: 1 1 16rem;
  min-inline-size: 0;
}

.tk-door-office__onboarding-title {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
}

.tk-door-office__crew-link {
  margin: 0;
  overflow-wrap: anywhere;
}

.tk-door-office__qr {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 7.5rem;
  aspect-ratio: 1;
  padding: var(--space-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--plan-paper);
  color: var(--color-ink);
  text-align: center;
  font-size: var(--text-xs);
}

.tk-door-office__qr svg {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  fill: currentcolor;
}

.tk-door-office__scanner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.tk-door-office__credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tk-door-office__sep {
  color: var(--fg3);
}

/* ---- Game-Day / Curtain-Night Live Command Pulse ---- */

.tk-pulse {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-block: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--fg1);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.tk-pulse__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block-end: var(--space-3);
  border-block-end: 1px solid var(--rule);
}

.tk-pulse__title-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.tk-pulse__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.tk-pulse__updated {
  color: var(--fg2);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.tk-pulse__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
  color: var(--fg1);
}

.tk-pulse__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.tk-pulse__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--target-min);
  padding-inline: var(--space-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.tk-pulse__refresh:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.tk-pulse__kpis {
  min-inline-size: 0;
}

.tk-pulse__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

@media (max-width: 860px) {
  .tk-pulse__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tk-pulse__ops {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-inline-size: 0;
}

.tk-pulse__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  min-inline-size: 0;
}

.tk-pulse__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.tk-pulse__panel-title {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--fg1);
}

.tk-pulse__panel-meta {
  color: var(--fg2);
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tk-pulse__chart-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.tk-pulse__sparkline {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: auto;
  overflow: visible;
}

.tk-pulse__spark-grid {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.tk-pulse__spark-area {
  fill: color-mix(in srgb, var(--accent) 16%, transparent);
  stroke: none;
}

.tk-pulse__spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-pulse__spark-dot--peak {
  fill: var(--tone-warn-line);
  stroke: var(--surface-raised);
  stroke-width: 2;
}

.tk-pulse__spark-dot--now {
  fill: var(--accent);
  stroke: var(--surface-raised);
  stroke-width: 2;
}

.tk-pulse__axis {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--fg2);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.tk-pulse__table-disclosure {
  border-block-start: 1px solid var(--rule);
  padding-block-start: var(--space-2);
}

.tk-pulse__table-summary {
  display: flex;
  align-items: center;
  min-block-size: var(--target-min);
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.tk-pulse__table-summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.tk-pulse__quiet,
.tk-pulse__vips-hint {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.tk-pulse__gates {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-pulse__gate {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.tk-pulse__gate-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.tk-pulse__gate-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-inline-size: 0;
}

.tk-pulse__gate-label {
  font-weight: 700;
  color: var(--fg1);
}

.tk-pulse__gate[data-closed="true"] .tk-pulse__gate-label {
  text-decoration: line-through;
  color: var(--fg2);
}

.tk-pulse__gate-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.tk-pulse__gate-rate {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--fg1);
}

.tk-pulse__gate-total {
  font-size: var(--text-xs);
  color: var(--fg2);
}

.tk-pulse__bar-track {
  inline-size: 100%;
  block-size: 0.5rem;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
}

.tk-pulse__bar-fill {
  display: block;
  block-size: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.tk-pulse__gate[data-bottleneck="true"] .tk-pulse__bar-fill {
  background: var(--tone-warn-line);
}

.tk-pulse__gate[data-closed="true"] .tk-pulse__bar-fill {
  background: var(--fg2);
}

.tk-pulse__vip-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-pulse__vip-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  min-inline-size: 0;
}

.tk-pulse__vip-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.tk-pulse__vip-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--fg1);
}

.tk-pulse__vip-time {
  color: var(--fg2);
  font-size: var(--text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tk-pulse__vip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-pulse__vip-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.tk-pulse__vip-party {
  color: var(--accent-text);
  font-weight: 700;
}
