/* ============================================================
   ARTOKON — artokon-patient.css  v2.0
   Patient-facing queue pages. Mobile-first, touch-optimised.
   Optimised for 375–430px phone screens. Extends artokon.css.
   ============================================================ */

/* ── Body ─────────────────────────────────────────────── */
.patient-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #eef2ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  --p-page-max: 480px;
}

/* ── Patient container ────────────────────────────────── */
.patient-container {
  width: 100%;
  max-width: var(--p-page-max);
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 60px rgba(29,78,216,.08);
}

/* ═══════════════════════════════════════════════════════
   BUSINESS HEADER
═══════════════════════════════════════════════════════ */
.p-header {
  padding: 36px 20px 24px;
  text-align: center;
  background: linear-gradient(160deg, #eef4ff 0%, #fff 100%);
  border-bottom: 1px solid #e8f0ff;
  position: relative;
  overflow: hidden;
}
.p-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(29,78,216,.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Business type badge */
.p-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* Business name */
.p-biz-name {
  font-size: 22px;
  font-weight: 900;
  color: #060c1f;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

/* Doctor / branch line */
.p-doctor {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Welcome message */
.p-welcome {
  font-size: 14px;
  color: #475569;
  margin: 10px 0 0;
  line-height: 1.55;
}

/* Queue open status badge */
.p-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
}
.p-status-open {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.p-status-open-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: p-pulse 2s infinite;
}
@keyframes p-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%      { box-shadow: 0 0 0 4px rgba(34,197,94,.1); }
}

/* ═══════════════════════════════════════════════════════
   PAUSED / CLOSED BANNERS
═══════════════════════════════════════════════════════ */
.p-pause-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}
.p-closed-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 40px 24px;
  text-align: center;
}
.p-closed-icon {
  width: 80px; height: 80px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}

/* ═══════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════ */
.p-stats-bar {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.p-patient-personal .p-my-token-bar:last-child {
  margin-bottom: 12px;
}
.p-my-token + .p-stats-bar,
.p-patient-personal + #queue-main-view .p-stats-bar,
.p-patient-personal + #closed-only-view {
  margin-top: 0;
}
.p-stat {
  flex: 1;
  text-align: center;
  padding: 18px 8px 20px;
  transition: background .15s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.p-stat:hover { background: #f1f5f9; }
.p-stat-num {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.p-stat-num.pop {
  animation: p-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes p-pop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.18); }
  100%{ transform: scale(1); }
}
.p-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .01em;
  color: #64748b;
  line-height: 1.35;
  padding: 0 4px;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}
.p-stat-div {
  width: 1px;
  background: #f1f5f9;
  margin: 14px 0;
}

/* ═══════════════════════════════════════════════════════
   ACTION BUTTONS
═══════════════════════════════════════════════════════ */
.p-actions {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -.01em;
}
.p-btn:active { transform: scale(.97); }
.p-btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 6px 20px rgba(29,78,216,.3);
}
.p-btn-primary:hover {
  box-shadow: 0 8px 28px rgba(29,78,216,.4);
  transform: translateY(-1px);
  color: #fff;
}
.p-btn-primary.p-btn-server-down,
.p-btn-primary.p-btn-server-down:hover {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.p-btn-secondary {
  background: #fff;
  color: #1d4ed8;
  border: 1.5px solid #bfdbfe;
  font-size: 15px;
  font-weight: 600;
}
.p-btn-secondary:hover { background: #eff6ff; color: #1d4ed8; }
.p-btn-stopped {
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  color: #94a3b8;
}
.p-btn-stopped .p-stopped-icon {
  font-size: 32px; display: block; margin-bottom: 10px;
}
.p-btn-stopped p { font-size: 14px; font-weight: 600; margin: 0; color: #64748b; }

/* Live pause countdown */
.pause-resume-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(245,158,11,.12);
}
.pause-resume-countdown-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #b45309;
}
.pause-resume-countdown-time {
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #d97706;
  min-width: 4.5ch;
  text-align: center;
}
.p-btn-stopped .pause-resume-countdown {
  margin-top: 14px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   QUEUE TABS
═══════════════════════════════════════════════════════ */
.p-tabs {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  padding: 0 4px;
  display: flex;
}
.p-tab-btn {
  flex: 1;
  padding: 12px 8px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.p-tab-btn.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.p-tab-btn:hover  { color: #1d4ed8; }
.p-tab-count {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

/* ═══════════════════════════════════════════════════════
   QUEUE LIST
═══════════════════════════════════════════════════════ */
.p-queue-wrap { padding: 12px 14px 16px; }
.p-queue-list {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}
#active-queue-list .p-queue-list,
#skipped-queue-list .p-queue-list {
  --p-queue-visible-rows: 3;
  --p-queue-row-height: 62px;
  max-height: calc(var(--p-queue-visible-rows) * var(--p-queue-row-height));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
#active-queue-list .p-queue-list::-webkit-scrollbar,
#skipped-queue-list .p-queue-list::-webkit-scrollbar {
  width: 6px;
}
#active-queue-list .p-queue-list::-webkit-scrollbar-track,
#skipped-queue-list .p-queue-list::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 99px;
}
#active-queue-list .p-queue-list::-webkit-scrollbar-thumb,
#skipped-queue-list .p-queue-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
#active-queue-list .p-queue-list::-webkit-scrollbar-thumb:hover,
#skipped-queue-list .p-queue-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.p-queue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  transition: background .15s;
}
.p-queue-item:last-child { border-bottom: none; }
.p-queue-item:hover { background: #f8fafc; }
.p-queue-item.p-current {
  background: #eff6ff;
  border-left: 3px solid #1d4ed8;
}
.p-queue-item.p-skipped { background: #fff5f5; }

/* Token number */
.p-queue-token {
  font-size: 18px;
  font-weight: 900;
  color: #1d4ed8;
  letter-spacing: -.02em;
  min-width: 52px;
  text-align: center;
  flex-shrink: 0;
}
.p-queue-token.serving {
  background: #1d4ed8;
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 16px;
  position: relative;
}
.p-serving-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 9px; height: 9px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: p-pulse 2s infinite;
}

/* Patient name / time */
.p-queue-info { flex: 1; min-width: 0; }
.p-queue-name {
  font-size: 14px;
  font-weight: 600;
  color: #060c1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.p-queue-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* Right badge/action */
.p-queue-right { flex-shrink: 0; }
.p-queue-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  display: inline-block;
}
.p-queue-badge-recall {
  background: #f8fafc;
  color: #64748b;
}
.p-queue-badge-recall-emergency {
  background: #fef2f2;
  color: #b91c1c;
}
.p-queue-badge-recall-priority {
  background: #fff7ed;
  color: #c2410c;
}
.p-queue-badge-recall-retest {
  background: #f0fdf4;
  color: #15803d;
}
.p-queue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 168px;
  text-align: center;
  padding: 36px 16px;
  color: #94a3b8;
}
.p-queue-empty-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  opacity: .45;
  color: #94a3b8;
}
.p-queue-empty-text {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
#active-queue-list,
#skipped-queue-list,
.tab-content {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════
   TOKEN SUCCESS
═══════════════════════════════════════════════════════ */
.p-success-header {
  padding: 40px 20px 24px;
  text-align: center;
  background: linear-gradient(160deg, #eff6ff 0%, #fff 100%);
  border-bottom: 1px solid #e8f0ff;
}
.p-success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(29,78,216,.3);
  animation: p-success-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes p-success-pop {
  0%  { transform: scale(0); opacity: 0; }
  100%{ transform: scale(1); opacity: 1; }
}
.p-token-card {
  margin: 20px 16px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 28px rgba(29,78,216,.32);
  position: relative;
  overflow: hidden;
}
.p-token-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.p-token-card::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -20px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.p-token-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.p-token-num {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: #fff;
  position: relative; z-index: 1;
  animation: p-token-reveal .6s cubic-bezier(.34,1.56,.64,1) .15s both;
}
@keyframes p-token-reveal {
  0%  { transform: scale(.5); opacity: 0; }
  100%{ transform: scale(1); opacity: 1; }
}
.p-token-name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-top: 8px;
  position: relative; z-index: 1;
}
.p-tip-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  margin: 0 16px 16px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   POWERED BY FOOTER
═══════════════════════════════════════════════════════ */
.p-powered {
  margin-top: auto;
  padding: 20px 16px 22px;
  border-top: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
}
.p-powered-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.p-powered-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.p-powered-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.p-powered-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1px;
}
.p-powered-wordmark {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.p-powered-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
}
.p-powered .ar   { color: #1d4ed8; font-weight: 900; }
.p-powered .rest { color: #060c1f; font-weight: 900; }

/* ═══════════════════════════════════════════════════════
   GET TOKEN MODAL — match .patient-container width when portaled to body
═══════════════════════════════════════════════════════ */
.p-modal .modal-dialog {
  width: 100%;
  max-width: min(var(--p-page-max), calc(100% - 32px));
  margin: 1rem auto;
}
.p-modal .modal-dialog-centered {
  min-height: calc(100% - 2rem);
}
.p-modal .modal-content {
  border-radius: 20px !important;
  border: none;
  box-shadow: 0 16px 48px rgba(6,12,31,.18);
}
.p-modal .modal-header {
  padding: 18px 18px 4px;
}
.p-modal .modal-body {
  padding: 8px 18px 18px;
}
.p-modal .modal-title {
  font-size: 16px;
  color: #060c1f;
}
.p-modal-field {
  margin-bottom: 14px;
}
.p-modal-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.p-modal-label-required {
  color: #ef4444;
}
.p-modal-submit {
  font-size: 15px;
  padding: 14px 18px !important;
}
.p-modal .p-modal-input {
  padding: 12px 14px;
}
.p-modal-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #060c1f;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.p-modal-input:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.p-modal-input.is-invalid { border-color: #ef4444; }
.p-modal-input::placeholder { color: #94a3b8; }

/* ═══════════════════════════════════════════════════════
   PATIENT PERSONAL — token bar + flash (below clinic header)
═══════════════════════════════════════════════════════ */
.p-patient-personal {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.p-patient-personal > :first-child {
  margin-top: 12px;
}
.p-queue-flash {
  margin: 0 14px 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}
.p-queue-flash-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.p-queue-flash-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.p-patient-personal .p-my-token-bar {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════
   MY TOKEN — compact info bar (below clinic details)
═══════════════════════════════════════════════════════ */
.p-my-token-bar {
  margin: 10px 14px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1d4ed8;
  background: #f8fafc;
  color: #334155;
}
.p-my-token-status-waiting {
  border-color: #e2e8f0;
  border-left-color: #1d4ed8;
  background: #f8fafc;
}
.p-my-token-status-rejoined {
  border-color: #fde68a;
  border-left-color: #d97706;
  background: #fffbeb;
  color: #78350f;
}
.p-my-token-status-skipped {
  border-color: #fecaca;
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}
.p-my-token-status-serving {
  border-color: #bfdbfe;
  border-left-color: #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
}
.p-my-token-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 6px;
}
.p-my-token-bar-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.p-my-token-status-waiting .p-my-token-bar-lbl { color: #64748b; }
.p-my-token-status-skipped .p-my-token-bar-lbl { color: #b91c1c; }
.p-my-token-status-serving .p-my-token-bar-lbl { color: #1d4ed8; }
.p-my-token-status-rejoined .p-my-token-bar-lbl { color: #b45309; }
.p-my-token-bar-no {
  font-size: 20px;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1;
  letter-spacing: -.02em;
}
.p-my-token-status-skipped .p-my-token-bar-no { color: #dc2626; }
.p-my-token-status-serving .p-my-token-bar-no {
  color: #1e40af;
}
.p-my-token-status-rejoined .p-my-token-bar-no { color: #b45309; }
.p-my-token-bar-sep {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
  flex-shrink: 0;
}
.p-my-token-bar-status {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-my-token-bar-ahead {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.p-my-token-bar-ahead strong {
  color: #1d4ed8;
  font-weight: 800;
}
.p-my-token-status-serving .p-my-token-bar-ahead-now {
  color: #1d4ed8;
  font-weight: 800;
}
.p-my-token-status-rejoined .p-my-token-bar-ahead strong { color: #d97706; }
.p-my-token-bar-action {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.p-my-token-bar-rejoin-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #1d4ed8;
  cursor: pointer;
}
.p-my-token-badge-skipped {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.p-my-token-badge-current {
  background: #1d4ed8;
  color: #fff;
}
.p-my-token-badge-waiting {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.p-my-token-badge-rejoined {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

/* Owned row highlight in queue list */
.p-queue-item.p-queue-item-owned {
  background: #f8fafc !important;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}
.p-queue-item.p-queue-item-owned.p-current {
  background: #eff6ff !important;
  box-shadow: inset 0 0 0 1px #93c5fd;
}
.p-queue-owned-badge {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: #1d4ed8;
  padding: 2px 6px;
  border-radius: 99px;
  line-height: 1.2;
}
.p-queue-item-owned .p-queue-token:not(.serving) {
  color: #1d4ed8;
}
.p-queue-item-owned .p-queue-token.serving {
  color: #fff;
  background: #1d4ed8;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — desktop: card with margin
═══════════════════════════════════════════════════════ */
@media (min-width: 500px) {
  .patient-body { padding: 24px 16px 48px; }
  .patient-container {
    min-height: auto;
    border-radius: 24px;
    overflow: hidden;
  }
}
@media (min-width: 500px) and (max-width: 991.98px) {
  .patient-body { --p-page-max: 520px; }
  .p-header { padding: 32px 24px 22px; }
  .p-biz-name { font-size: 24px; }
  .p-welcome { font-size: 15px; padding: 0 8px; }
  .p-doctor { font-size: 14px; }
}
@media (max-width: 499px) {
  .p-stat-num { font-size: 30px; }
  .p-token-num { font-size: 56px; }
  .p-biz-name  { font-size: 20px; }
}
