/* Reusable components: hero, queue, buttons, pills, status, capacity tiles, controls. */

/* ---------- Hero panel ----------
   Single column. No nested cards. Avatar + name dominates, then complaint,
   then a compact metric strip, context line, and primary CTA. */
.hero,
.idle-hero {
  position: relative;
  padding: var(--s-7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-float);
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.idle-hero {
  align-content: start;
  gap: var(--s-4);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.hero-eyebrow.tone-accent { color: var(--accent); }
.hero-eyebrow.tone-success { color: var(--success); }
.hero-eyebrow.tone-warning { color: var(--warning); }
.hero-eyebrow.tone-secondary { color: var(--text-secondary); }

.hero-when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--text-tertiary);
}

/* Identity row: avatar + name + sub-meta */
.hero-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
}

.hero-identity-text { display: grid; gap: 2px; min-width: 0; }

.hero-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -1.1px;
  color: var(--text-primary);
}

.hero-identity-meta {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.07px;
}

/* Complaint block */
.hero-complaint {
  display: grid;
  gap: var(--s-1);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border-subtle);
}

.hero-complaint-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero-complaint-line {
  margin: 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.17px;
  color: var(--text-primary);
}

.hero-quote {
  margin: var(--s-2) 0 0;
  padding: var(--s-2) var(--s-3);
  border-left: 2px solid var(--border-default);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-secondary);
}

/* Compact metric strip */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-subtle);
}

.hero-strip > span { display: grid; gap: 2px; }
.hero-strip .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.hero-strip .v {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.07px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hero-tools {
  display: flex;
  gap: var(--s-2);
  flex: 0 0 auto;
}

.hero-context {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: start;
  padding: var(--s-2) var(--s-3);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.hero-actions {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border-subtle);
}

.hero-action {
  width: 100%;
  height: 56px;
  padding: 0 var(--s-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  border: 0;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-on-bg);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: background 140ms ease, transform 120ms ease;
}

.hero-action:hover { background: var(--accent-hover); }
.hero-action:active { transform: scale(0.99); }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- Avatar (initials circle) ---------- */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--text-secondary)));
  color: var(--accent-on-bg);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.4px;
  flex: 0 0 auto;
  user-select: none;
}

.avatar-sm { width: 36px; height: 36px; font-size: 12.5px; }
.avatar-md { width: 44px; height: 44px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 17px; letter-spacing: 0.6px; }

/* ---------- Idle hero ---------- */
.idle-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.85px;
  color: var(--text-primary);
}

.idle-stats {
  display: flex;
  align-items: baseline;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-block {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.9px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-sep {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  align-self: center;
}

.idle-copy {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-tertiary);
  max-width: 56ch;
}

/* Legacy idle-* classes (no longer used directly but kept for compat) */
.idle-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 40%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 40%, transparent); }
  60%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.idle-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.95px;
  color: var(--text-primary);
}

.idle-copy {
  max-width: 56ch;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-secondary);
}

.idle-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- Today view (single unified list) ---------- */
.today-view {
  display: grid;
  gap: var(--s-6);
  max-width: 880px;
}

.today-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-subtle);
}

.today-head-text {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}

.today-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.85px;
  color: var(--text-primary);
}

.today-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.today-count-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--s-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* ---------- Today section ---------- */
.today-section {
  display: grid;
  gap: var(--s-2);
}

.today-section-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) 0;
}

.today-section-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.today-section-dot.tone-warning { color: var(--warning); }
.today-section-dot.tone-accent { color: var(--accent); }
.today-section-dot.tone-success { color: var(--success); }

.today-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.today-section-summary {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.05px;
  color: var(--text-tertiary);
}

.today-section-body {
  display: grid;
  gap: var(--s-2);
}

/* ---------- Ticket (compact, full-width) ---------- */
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-float);
  transition: border-color 140ms ease, box-shadow 160ms ease;
}

.ticket:hover {
  border-color: var(--text-tertiary);
}

.ticket.is-focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-float);
}

/* Overdue: 4px left edge accent (border-left) + bg tint */
.ticket.is-overdue {
  border-left: 4px solid currentColor;
  padding-left: calc(var(--s-5) - 3px);
}

.ticket.overdue-amber { color: var(--warning); }
.ticket.overdue-amber.ticket {
  background: color-mix(in srgb, var(--warning) 4%, var(--canvas));
}

.ticket.overdue-red { color: var(--danger); }
.ticket.overdue-red.ticket {
  background: color-mix(in srgb, var(--danger) 5%, var(--canvas));
}

.ticket-body {
  min-width: 0;
  display: grid;
  gap: var(--s-1);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ticket-body:hover .ticket-name { color: var(--accent); }

.ticket-row-1 {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  min-width: 0;
}

.ticket-name {
  font-size: 15.5px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  transition: color 140ms ease;
}

.ticket-id {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.ticket-walkin {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-overdue {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-overdue.overdue-amber {
  background: var(--warning-soft);
  color: var(--warning);
}

.ticket-overdue.overdue-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.ticket-time {
  margin-left: auto;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.ticket-complaint {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inline primary action button (Confirm time / Check in / Mark done) */
.ticket-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 var(--s-3);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.05px;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  cursor: pointer;
}

.ticket-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on-bg);
}

.ticket-more {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.ticket-more:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

/* ---------- Empty states ---------- */
.today-empty {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-9) var(--s-7);
  border: 1px dashed var(--border-default);
  border-radius: var(--r-lg);
  background: var(--canvas);
  text-align: center;
  align-content: center;
  min-height: 240px;
}

.today-empty-eyebrow {
  margin-bottom: var(--s-1);
}

.today-empty-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.today-empty-body {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 21px;
}

/* ---------- Queue: stack of state cards ----------
   Each clinical state (In clinic / Confirmed / New) is its own card so the
   sections are visually distinct. Inside each card, tickets carry their own
   primary action so staff can act without scrolling to the hero. */
.queue-stack {
  display: grid;
  gap: var(--s-3);
}

.queue-empty {
  padding: var(--s-6) var(--s-5);
  border: 1px dashed var(--border-default);
  border-radius: var(--r-lg);
  background: var(--canvas);
  text-align: center;
  display: grid;
  gap: var(--s-2);
  align-content: center;
  min-height: 240px;
}

.queue-empty-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.queue-empty-body {
  font-size: 13px;
  color: var(--text-tertiary);
}

.q-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

/* Card header — colored dot + section name + actionable summary. */
.q-card-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-1);
}

.q-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.q-dot.tone-success { color: var(--success); }
.q-dot.tone-accent { color: var(--accent); }
.q-dot.tone-warning { color: var(--warning); }
.q-dot.tone-secondary { color: var(--text-secondary); }

.q-head-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.q-head-summary {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.05px;
  color: var(--text-tertiary);
}

/* Subtle attention to the New section card. */
.q-incoming .q-card-head {
  background: color-mix(in srgb, var(--warning) 6%, var(--canvas));
}

/* Ticket list */
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.q-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5);
}

.q-item + .q-item {
  border-top: 1px solid var(--border-subtle);
}

/* Click target — patient body opens detail sheet. */
.q-item-body {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: var(--s-1) 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.q-item-body:hover .q-item-name { color: var(--accent); }

.q-item-line-1 {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  min-width: 0;
}

.q-item-name {
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  transition: color 140ms ease;
}

.q-item-id {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.q-item-walkin {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.q-item-complaint {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.q-item-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Inline primary action (Confirm time / Check in / Mark done) */
.q-item-action {
  height: 36px;
  padding: 0 var(--s-3);
  border: 1px solid var(--border-default);
  background: var(--canvas);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.05px;
}

.q-item-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on-bg);
}

/* "New" tickets pulse the action button to draw the eye. */
.q-item.is-pulsing .q-item-action {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on-bg);
  animation: q-pulse 2.4s ease-in-out infinite;
}

@keyframes q-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
}

.q-item-more {
  width: 32px;
  height: 32px;
}

/* ---------- Pills (mostly used in History view) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 24px;
  padding: 0 var(--s-2);
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.05px;
  white-space: nowrap;
}

.pill.size-s { min-height: 22px; padding: 0 8px; font-size: 10.5px; }
.pill.size-m { min-height: 26px; padding: 0 10px; font-size: 12px; }

.pill-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Tone classes — restrict to actionable signals (state machine + alerts). */
.tone-accent { color: var(--accent); }
.tone-danger { color: var(--danger); }
.tone-success { color: var(--success); }
.tone-warning { color: var(--warning); }
.tone-secondary { color: var(--text-secondary); }
.tone-tertiary { color: var(--text-tertiary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 48px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.07px;
  transition: background 140ms ease, color 140ms ease, transform 120ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on-bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--text-tertiary);
}

.btn-tertiary {
  height: 40px;
  padding: 0 var(--s-3);
  background: transparent;
  color: var(--accent);
  font-weight: 500;
}

.btn-tertiary:hover {
  background: var(--surface-2);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 88%, black);
}

.btn-block { width: 100%; }

/* ---------- Pill buttons (small actions) ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 34px;
  padding: 0 var(--s-3);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.05px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn-pill:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-pill.is-danger { color: var(--danger); }
.btn-pill.is-warning { color: var(--warning); }

/* ---------- Icon button ---------- */
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-secondary);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-default);
  color: var(--text-primary);
}

/* ---------- Unified .chip pattern ----------
   Used by shift chip, busyness chip, wait chip, etc. The dot and label
   are explicit child spans (NEVER bare text) so flex `gap` always applies
   and the dot can never overlap the text.
*/
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 28px;
  padding: 0 var(--s-3);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.05px;
  white-space: nowrap;
}

.chip-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.chip-label {
  display: inline-block;
  line-height: 1;
}

.chip-lg {
  height: 32px;
  padding: 0 var(--s-4);
  font-size: 13px;
}

.chip-lg .chip-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
}

/* Tone variants — only the actionable signals get color. */
.chip-open { color: var(--success); }
.chip-notAccepting { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-edge); }
.chip-closed { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-edge); }

.chip-busy-light { color: var(--success); }
.chip-busy-moderate { color: var(--text-secondary); }
.chip-busy-busy { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-edge); }
.chip-busy-very_busy { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-edge); }

/* Wait chip — serif number + small caption. */
.chip-wait {
  height: 32px;
  padding: 0 var(--s-3) 0 var(--s-3);
  background: transparent;
  border: 0;
  gap: 6px;
}

.chip-wait-num {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.chip-wait-unit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Generic meta chip — used in idle hero. */
.chip-meta {
  background: transparent;
  color: var(--text-secondary);
}

/* ---------- Status view (replaces Capacity) ---------- */
.status-view {
  display: grid;
  gap: var(--s-6);
}

.status-preview {
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--canvas) 100%);
  display: grid;
  gap: var(--s-3);
}

.status-preview.is-closed {
  background: var(--surface-2);
}

.status-preview-eyebrow {
  color: var(--text-tertiary);
}

.status-preview-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.status-preview-wait {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-left: auto;
  color: var(--text-primary);
}

.status-preview-wait-num {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -1.6px;
  font-variant-numeric: tabular-nums;
}

.status-preview-wait-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-preview-line {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text-secondary);
}

.status-section {
  display: grid;
  gap: var(--s-3);
}

.status-section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.status-section-hint {
  font-size: 13px;
  color: var(--text-tertiary);
}

.tile-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

.status-tile {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--text-primary);
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.status-tile:hover:not(.is-disabled) {
  background: var(--surface-2);
  border-color: var(--text-tertiary);
}

.status-tile:active:not(.is-disabled) {
  transform: scale(0.99);
}

.status-tile.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.status-tile.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-tile-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: var(--text-secondary);
}

.status-tile.selected .status-tile-icon {
  color: var(--accent);
}

.status-tile-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.status-tile-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.12px;
}

.status-tile-blurb {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 18px;
}

.status-tile.selected .status-tile-blurb {
  color: color-mix(in srgb, var(--accent) 70%, var(--text-secondary));
}

.status-locked {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
  padding: 0 var(--s-2);
}

.wait-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--surface-1);
}

.wait-display {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .tile-row { grid-template-columns: 1fr; }
  .wait-row { grid-template-columns: 1fr; }
}

/* ---------- Controls view ---------- */
.control-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.7fr);
  gap: var(--s-5);
}

.control-section {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.control-section .control-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-1);
}

.shift-tile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--text-primary);
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
}

.shift-tile:hover {
  background: var(--surface-2);
  border-color: var(--text-tertiary);
}

.shift-tile.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.shift-tile .tile-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.shift-tile .tile-text {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}

.shift-tile .tile-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.12px;
}

.shift-tile .tile-blurb {
  font-size: 13px;
  color: var(--text-secondary);
}

.shift-tile.selected .tile-blurb { color: color-mix(in srgb, var(--accent) 70%, var(--text-secondary)); }

.hours-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.field {
  display: grid;
  gap: var(--s-1);
}

.field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.26px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-tertiary);
}

.field-input {
  height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.07px;
}

.field-input:focus-visible {
  border-color: var(--accent);
}

.control-foot {
  margin-top: var(--s-5);
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
}

@media (max-width: 1180px) {
  .control-grid { grid-template-columns: 1fr; }
}

/* ---------- History list ---------- */
.history-list {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--canvas);
  overflow: hidden;
}

.history-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 16px;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 0;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background 140ms ease;
}

.history-row:first-child { border-top: 0; }
.history-row:hover { background: var(--surface-2); }

.history-main {
  min-width: 0;
  display: grid;
  gap: var(--s-1);
}

.history-name {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-summary {
  color: var(--text-secondary);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-time {
  color: var(--text-tertiary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Wait slider + weekly hours ---------- */
.wait-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  outline: none;
  margin: 0;
}

.wait-slider:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wait-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  border: 3px solid var(--canvas);
  box-shadow: var(--shadow-float);
}

.wait-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  border: 3px solid var(--canvas);
  box-shadow: var(--shadow-float);
}

.wait-marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.6px;
  padding: 0 4px;
  margin-bottom: var(--s-2);
}

.weekly-hours {
  margin-top: var(--s-5);
}

.weekly-hours-grid {
  display: grid;
  gap: var(--s-1);
}

.weekly-hours-row {
  display: grid;
  grid-template-columns: 100px minmax(220px, auto) minmax(0, 1fr) 110px;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--canvas);
  transition: background 140ms ease, border-color 140ms ease;
}

.weekly-hours-row + .weekly-hours-row {
  margin-top: var(--s-2);
}

.weekly-hours-row:hover {
  background: var(--surface-1);
  border-color: var(--text-tertiary);
}

.weekly-hours-row.is-closed {
  background: var(--surface-2);
  opacity: 0.7;
}

.weekly-hours-row.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.weekly-day {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.07px;
  color: var(--text-primary);
}

.weekly-today {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.weekly-hours-inputs {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.weekly-hours-row .field-input {
  height: 36px;
  width: 100px;
  font-size: 13px;
}

.weekly-hours-dash {
  color: var(--text-tertiary);
  font-size: 14px;
}

.weekly-hours-summary {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  text-align: right;
}

.weekly-hours-row.is-closed .weekly-hours-summary {
  color: var(--warning);
}

.weekly-hours-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.schedule-intro {
  margin: 0 0 var(--s-4);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.schedule-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding: var(--s-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--surface-1);
}

.schedule-foot-text { display: grid; gap: var(--s-1); }
.schedule-foot-blurb {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .weekly-hours-row {
    grid-template-columns: 80px minmax(0, 1fr) auto;
  }
  .weekly-hours-summary { display: none; }
}

@media (max-width: 720px) {
  .weekly-hours-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Audit viewer (Compliance view) ---------- */
.audit-verify {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.audit-verify-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.audit-verify-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.05px;
  color: currentColor;
}

.audit-verify-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
}

.audit-toolbar {
  display: flex;
  align-items: flex-end;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--surface-1);
}

.audit-table {
  display: grid;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
}

.audit-row {
  display: grid;
  grid-template-columns: 100px 180px 110px 130px 1fr 60px;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 0;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 13px;
  transition: background 140ms ease;
}

.audit-row:hover:not(.audit-head) {
  background: var(--surface-2);
  cursor: pointer;
}

.audit-row.audit-head {
  background: var(--surface-1);
  border-top: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: var(--s-2) var(--s-4);
}

.audit-when {
  display: grid;
  gap: 1px;
}

.audit-when-time {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.audit-when-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
}

.audit-staff {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.audit-staff-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.05px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-staff-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.audit-patient,
.audit-submission {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-seq {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.4px;
  text-align: right;
}

.audit-access {
  width: fit-content;
}

@media (max-width: 980px) {
  .audit-row {
    grid-template-columns: 90px 140px 1fr 70px;
  }
  .audit-patient,
  .audit-submission,
  .audit-seq {
    display: none;
  }
}

/* ---------- Banner strip (persistent alerts at top of stage) ---------- */
.banner-strip {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.banner {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: var(--r-md);
  background: color-mix(in srgb, currentColor 6%, var(--canvas));
}

.banner-info { color: var(--accent); }
.banner-success { color: var(--success); }
.banner-warning { color: var(--warning); }
.banner-danger { color: var(--danger); }

.banner-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: currentColor;
  color: var(--canvas);
}

.banner-icon svg { color: var(--canvas); }

.banner-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.banner-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.07px;
  color: var(--text-primary);
}

.banner-body {
  font-size: 13px;
  color: var(--text-secondary);
}

.banner-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-tertiary);
}

.banner-close:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

/* ---------- Audit-chain pill in top bar ---------- */
.audit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 var(--s-3);
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.audit-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.audit-pill.audit-ok { color: var(--success); }
.audit-pill.audit-bad {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger-edge);
  animation: audit-pulse 1.6s ease-in-out infinite;
}
.audit-pill.audit-pending { color: var(--text-tertiary); }

@keyframes audit-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
}

/* ---------- Notification settings (Schedule view) ---------- */
.notif-section {
  margin-top: var(--s-7);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--surface-1);
  display: grid;
  gap: var(--s-3);
}

.perm-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--s-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.perm-ok { color: var(--success); background: var(--success-soft); }
.perm-warn { color: var(--warning); background: var(--warning-soft); }
.perm-bad { color: var(--danger); background: var(--danger-soft); }

.notif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.notif-prefs {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.notif-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.notif-row:hover { border-color: var(--text-tertiary); }

.notif-row.is-on { border-color: var(--accent); }

.notif-text { display: grid; gap: 2px; min-width: 0; }

.notif-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.07px;
  color: var(--text-primary);
}

.notif-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* iOS-style toggle pill, matches the guest_web toggle. */
.notif-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background 200ms ease;
  flex: 0 0 auto;
}

.notif-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--canvas);
  box-shadow: 0 1px 2px rgb(16 24 40 / 12%);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.notif-row.is-on .notif-switch { background: var(--accent); }
.notif-row.is-on .notif-knob { transform: translateX(16px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-7);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--canvas);
  box-shadow: var(--shadow-pop);
  transform: translateX(-50%);
  animation: toast-in 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.toast .toast-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: currentColor;
  color: var(--success);
}

.toast .toast-icon svg { color: var(--canvas); }

.toast.tone-info .toast-icon { color: var(--accent); }
.toast.tone-warning .toast-icon { color: var(--warning); }
.toast.tone-danger .toast-icon { color: var(--danger); }

.toast .toast-msg {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.07px;
  color: var(--text-primary);
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
