/* Walk-ins (slice S9). Prefixes: .wk- kiosk & remote form · .wt- live ticket · .wp- QR poster · .wkb- staff board. */

/* ================================================================ kiosk + remote "save my spot" */
.wk {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  overflow-x: clip;
}
.wk-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background:
    radial-gradient(60% 80% at 12% 0%, rgba(169, 138, 255, .50) 0%, rgba(169, 138, 255, 0) 70%),
    radial-gradient(55% 70% at 92% 8%, rgba(248, 199, 173, .60) 0%, rgba(248, 199, 173, 0) 70%);
  pointer-events: none;
}
.wk-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + var(--safe-top)) clamp(16px, 4vw, 48px) 8px;
}
.wk-identity { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; }
.wk-identity:empty { min-height: 52px; }
.wk-mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--purple);
  color: var(--cream-light);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: 0 10px 22px -10px rgba(37, 0, 142, .6);
}
.wk-id-text { display: grid; gap: 2px; min-width: 0; }
.wk-clinic {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wk-address { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.wk-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-address .leona-logo { color: var(--purple); }
.wk-lang { flex: none; background: rgba(255, 255, 255, .6); }
.wk-stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 48px) 28px;
  outline: none;
}
.wk-foot { position: relative; display: flex; justify-content: center; padding: 8px 16px calc(18px + var(--safe-bottom)); }
.wk-powered { display: inline-flex; align-items: center; gap: 7px; min-height: var(--touch); color: var(--ink-2); font-size: 12.5px; text-decoration: none; }
.wk-powered svg { color: var(--purple); margin-top: 1px; }
.wk-powered:hover { color: var(--ink); }
.wk-loading { display: grid; gap: 20px; }

/* idle reset bar (kiosk) */
.wk-idle { position: fixed; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; opacity: 0; transition: opacity var(--dur-2) var(--ease); pointer-events: none; }
.wk-idle.is-on { opacity: 1; }
.wk-idle-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--lavender-2), var(--purple)); transform-origin: 0 50%; transform: scaleX(0); }
.wk-idle-fill.is-running { animation: wk-idle 20s linear forwards; }
@keyframes wk-idle { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* welcome */
.wk-welcome { display: grid; gap: 14px; text-align: center; animation: page-in var(--dur-3) var(--ease-out); }
.wk-eyebrow { font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; color: var(--purple); }
.wk-title { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.04; }
.wk-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: clamp(16px, 3vw, 36px); }
@media (min-width: 760px) { .wk-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: clamp(210px, 30vh, 300px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.wk-choice:active { transform: scale(.985); }
.wk-choice-light { background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); box-shadow: var(--shadow-2); }
.wk-choice-light:hover { box-shadow: var(--shadow-3); }
.wk-choice-purple {
  background: linear-gradient(160deg, #2F0AA8 0%, var(--purple) 55%, var(--purple-dark) 100%);
  color: var(--cream-light);
  box-shadow: 0 24px 48px -22px rgba(37, 0, 142, .75);
}
.wk-choice-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--purple);
}
.wk-choice-purple .wk-choice-icon { background: rgba(255, 255, 255, .14); color: var(--cream-light); }
.wk-choice-body { display: grid; gap: 8px; min-width: 0; padding-right: 64px; }
.wk-choice-title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 500; letter-spacing: var(--track-display); line-height: 1.08; }
.wk-choice-text { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); line-height: 1.35; }
.wk-choice-purple .wk-choice-text { color: var(--on-dark-2); }
.wk-choice-chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  font-size: 15px;
  font-weight: 600;
}
.wk-choice-go {
  position: absolute;
  right: clamp(20px, 2.6vw, 30px);
  bottom: clamp(20px, 2.6vw, 30px);
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--cream-light);
}
.wk-choice-purple .wk-choice-go { background: var(--cream-light); color: var(--purple); }

.wk-closed {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: clamp(210px, 30vh, 300px);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, .55);
  text-align: center;
}
.wk-closed-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--purple-light); color: var(--purple); }
.wk-closed-title { font-size: clamp(22px, 2.6vw, 28px); }
.wk-closed-text { max-width: 34ch; color: var(--ink-2); font-size: 16px; }
.wk-remote-hint { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; color: var(--ink-2); font-size: 15px; text-align: left; }
.wk-remote-qr { width: 84px; height: 84px; padding: 6px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-1); }
.wk-remote-hint p { max-width: 22ch; }

/* panels (check-in, form, ticket, success, emergency) */
.wk-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  animation: page-in var(--dur-3) var(--ease-out);
}
.wk-panel-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--purple-tint); color: var(--purple); }
.wk-panel-title { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; }
.wk-panel-sub { max-width: 40ch; font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-2); }
.wk-panel-lead { max-width: 32ch; font-size: clamp(19px, 2.4vw, 26px); color: var(--ink-2); line-height: 1.35; }
.wk-panel > .banner { width: 100%; text-align: left; }
.wk-form { display: grid; gap: 18px; width: 100%; margin-top: 10px; text-align: left; }
.wk-reasons { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wk-other { margin-top: 2px; }
.wk-eta-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--purple-light);
  color: var(--purple);
  font-size: 15px;
  text-align: center;
}
.wk-eta-live:empty { display: none; }
.wk-eta-live strong { font-weight: 700; }
.wk-back { justify-self: center; margin-top: 4px; }
.wk-error-slot:empty { display: none; }
.wk-submit { margin-top: 4px; }

/* kiosk sizing: huge touch targets for a tablet at reception */
.wk-kiosk .field-label { font-size: 17px; }
.wk-kiosk .field-hint { font-size: 15px; }
.wk-kiosk .input, .wk-kiosk .phone-input { min-height: 66px; border-radius: 18px; font-size: 22px; }
.wk-kiosk .input { padding: 0 20px; }
.wk-kiosk .phone-num { font-size: 24px; padding: 0 20px; }
.wk-kiosk .phone-cc { padding: 0 14px 0 20px; }
.wk-kiosk .phone-cc-label { font-size: 19px; }
.wk-kiosk .wk-chip { min-height: 58px; padding: 0 22px; font-size: 18px; }
.wk-kiosk .wk-btn.btn-lg { --btn-h: 70px; --btn-px: 34px; --btn-fs: 21px; }
.wk-kiosk .wk-eta-live { font-size: 18px; padding: 14px 18px; }
.wk-remote .wk-stage { justify-content: flex-start; max-width: 600px; }
.wk-remote .wk-panel { gap: 12px; }
.wk-remote .wk-panel-title { font-size: clamp(28px, 7vw, 38px); }
.wk-remote .wk-chip { min-height: 46px; font-size: 15px; }
.wk-remote .wk-btn.btn-lg { --btn-h: 58px; --btn-fs: 17px; }
.wk-remote .wk-panel-sub { font-size: 16px; }

/* check-in results */
.wk-notfound {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 150, 38, .35);
  box-shadow: var(--shadow-1);
}
.wk-notfound-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--warning-tint); color: var(--warning-ink); }
.wk-notfound-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.wk-notfound-text { color: var(--ink-2); font-size: 16px; }
.wk-notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wk-notfound-actions .btn { flex: 1 1 220px; }
.wk-kiosk .wk-notfound-actions .btn-lg { --btn-h: 60px; --btn-fs: 18px; }

.wk-success-mark {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 14px var(--success-tint), 0 20px 40px -18px rgba(0, 189, 129, .7);
  animation: wk-pop .5s var(--ease-out);
}
.wk-success-mark.is-early { background: var(--purple); box-shadow: 0 0 0 14px var(--purple-tint); }
@keyframes wk-pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } to { transform: scale(1); } }
.wk-success .wk-panel-title { margin-top: 14px; }
.wk-room { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--purple-light); color: var(--purple); font-weight: 600; font-size: 17px; }
.wk-family { width: 100%; max-width: 480px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; }
.wk-family-title { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.wk-family-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wk-family-item { display: flex; align-items: center; gap: 10px; font-size: 16px; min-width: 0; }
.wk-family-item span:last-child { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--dot, var(--violet)); }
.wk-done { margin-top: 8px; min-width: 220px; }

/* the ticket (kiosk) */
.wk-ticket-wrap { max-width: 720px; }
.wk-ticket {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 30px 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.wk-ticket::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--lavender-2), var(--purple));
}
.wk-ticket-label { font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.wk-ticket-num {
  font-family: var(--font-display);
  font-size: clamp(96px, 16vw, 168px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
  animation: wk-pop .55s var(--ease-out);
}
.wk-ticket-name { font-size: 22px; font-weight: 600; }
.wk-ticket-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 480px; margin-top: 12px; }
.wk-tstat { display: grid; gap: 2px; padding: 14px 12px; border-radius: var(--radius); background: var(--purple-light); }
.wk-tstat-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.wk-tstat-value { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1.05; letter-spacing: var(--track-display); color: var(--purple); font-variant-numeric: tabular-nums; }
.wk-tstat-value small { font-family: var(--font-ui); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.wk-ticket-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.wk-ticket-note svg { color: var(--whatsapp-hover); }
.wk-follow { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .7); box-shadow: var(--shadow-1); text-align: left; font-size: 16px; font-weight: 500; }
.wk-follow-qr { width: 104px; height: 104px; border-radius: 12px; background: var(--white); padding: 4px; }

/* emergency */
.wk-emergency-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--danger-tint); color: var(--danger-ink); box-shadow: 0 0 0 12px rgba(255, 57, 86, .08); }
.wk-emergency .wk-panel-title { color: var(--danger-ink); }
.wk-emergency-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

@media (max-width: 759px) {
  .wk-choice { min-height: 0; gap: 14px; }
  .wk-choice-icon { width: 60px; height: 60px; }
  .wk-choice-icon svg { width: 32px; height: 32px; }
  .wk-choice-go { width: 48px; height: 48px; }
  .wk-remote-hint { display: none; }
  .wk-top { padding-top: calc(12px + var(--safe-top)); }
  .wk-mono { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; }
  .wk-clinic { font-size: 17px; }
  .wk-follow-qr { width: 88px; height: 88px; }
}

/* ================================================================ live ticket /w/:token */
.wt { display: grid; gap: 14px; animation: page-in var(--dur-3) var(--ease-out); }
.wt-loading { display: grid; gap: 14px; }
.wt-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  text-align: center;
  overflow: hidden;
}
.wt-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--lavender-2), var(--purple)); }
.wt-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.wt-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.wt-num {
  font-family: var(--font-display);
  font-size: clamp(84px, 26vw, 120px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}
.wt-hi { font-size: 17px; font-weight: 600; }
.wt-ahead { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: var(--track-tight); margin-top: 6px; }
.wt-eta { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--purple-light); text-align: left; }
.wt-eta-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--purple); }
.wt-eta-body { display: grid; min-width: 0; }
.wt-eta-text { font-size: 15px; color: var(--ink); font-weight: 500; }
.wt-eta-count { font-size: 13px; font-weight: 700; color: var(--purple); }
.wt-progress { width: 100%; height: 8px; margin-top: 6px; border-radius: var(--radius-pill); background: var(--sand); overflow: hidden; }
.wt-progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lavender-2), var(--purple)); transition: width .6s var(--ease-out); }
.wt-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--ink-muted); }
.wt-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 189, 129, .5); animation: wt-pulse 2s infinite; }
@keyframes wt-pulse { 70% { box-shadow: 0 0 0 7px rgba(0, 189, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 189, 129, 0); } }
.wt-remote { display: grid; gap: 10px; }
.wt-links { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-links .btn { flex: 1 1 160px; }
.wt-cancel { justify-self: center; color: var(--danger-ink); }
.wt-cancel:hover { background: var(--danger-tint); color: var(--danger-ink); }
.wt-called {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 22px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #2F0AA8 0%, var(--purple) 55%, var(--purple-dark) 100%);
  color: var(--cream-light);
  text-align: center;
  box-shadow: 0 24px 48px -22px rgba(37, 0, 142, .75);
}
.wt-called-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .14); animation: wt-ring 1.4s var(--ease) 2; }
@keyframes wt-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
.wt-called-num { font-family: var(--font-display); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--lavender); }
.wt-called-title { color: var(--cream-light); font-size: clamp(30px, 8vw, 40px); }
.wt-called-text { font-size: 18px; color: var(--on-dark-2); max-width: 30ch; }
.wt-called-room { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .14); font-weight: 600; }
.wt-done { display: grid; gap: 8px; padding: 8px 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.wt-done-actions { display: grid; gap: 10px; padding: 0 20px 22px; }

/* ================================================================ QR poster /c/:slug/poster */
.wp { min-height: 100vh; min-height: 100dvh; padding: 0 16px 48px; background: var(--sand); }
.wp-toolbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 0;
  background: var(--sand);
}
.wp-toolbar-text { min-width: 0; }
.wp-toolbar-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.wp-toolbar-sub { font-size: 14px; color: var(--ink-2); }
.wp-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wp-sheet-slot { display: flex; justify-content: center; }
.wp-error { width: 100%; max-width: 560px; }
.wp-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 794px;
  aspect-ratio: 210 / 297;
  padding: clamp(20px, 5.4%, 48px);
  gap: clamp(14px, 3%, 28px);
  border-radius: 6px;
  background: var(--cream-light);
  box-shadow: 0 30px 60px -30px rgba(22, 0, 85, .35), 0 2px 6px rgba(22, 0, 85, .08);
  overflow: hidden;
  color: var(--ink);
}
.wp[data-size="letter"] .wp-sheet { aspect-ratio: 216 / 279; max-width: 816px; }
.wp-sheet-loading { padding: 32px; }
.wp-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 52%;
  background: var(--grad-hero);
  opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  pointer-events: none;
}
.wp-sheet > * { position: relative; }
.wp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.wp-clinic { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wp-mono {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(44px, 8vw, 64px);
  height: clamp(44px, 8vw, 64px);
  border-radius: 18px;
  background: var(--purple);
  color: var(--cream-light);
  font-family: var(--font-display);
  font-size: clamp(16px, 2.8vw, 24px);
  font-weight: 500;
}
.wp-clinic-text { min-width: 0; }
.wp-clinic-name { font-size: clamp(22px, 4.4vw, 38px); line-height: 1.05; }
.wp-clinic-sub { margin-top: 4px; font-size: clamp(11px, 1.7vw, 14px); color: var(--ink-2); }
.wp-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .6); color: var(--purple); font-size: clamp(10px, 1.6vw, 13px); font-weight: 600; }
.wp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 4%, 36px);
  padding: clamp(16px, 4%, 34px);
  border-radius: clamp(16px, 3vw, 28px);
  background: var(--surface);
  box-shadow: 0 20px 44px -26px rgba(22, 0, 85, .45);
}
.wp-hero-title { font-size: clamp(26px, 5.6vw, 50px); line-height: 1.02; letter-spacing: -0.03em; color: var(--purple); }
.wp-hero-sub { margin-top: 10px; font-size: clamp(12px, 2vw, 17px); color: var(--ink-2); line-height: 1.4; }
.wp-steps { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: clamp(11px, 1.8vw, 15px); font-weight: 600; }
.wp-steps li { display: inline-flex; align-items: center; gap: 6px; }
.wp-step-n { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--purple-tint); color: var(--purple); font-size: .9em; }
.wp-qr { display: grid; justify-items: center; gap: 8px; margin: 0; }
.wp-qr-img { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; padding: 8px; border-radius: 16px; background: var(--white); border: 2px solid var(--purple-soft); }
.wp-qr-cap { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(9px, 1.5vw, 12.5px); font-weight: 600; color: var(--purple); word-break: break-all; text-align: center; }
.wp-walk {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(14px, 4%, 36px);
  padding: clamp(16px, 4%, 30px);
  border-radius: clamp(16px, 3vw, 28px);
  background: var(--purple);
  color: var(--cream-light);
}
.wp-walk .wp-qr-img { max-width: 200px; border-color: transparent; }
.wp-walk .wp-qr-cap { color: var(--lavender); }
.wp-walk-title { color: var(--cream-light); font-size: clamp(22px, 4.6vw, 40px); line-height: 1.05; }
.wp-walk-sub { margin-top: 10px; color: var(--on-dark-2); font-size: clamp(12px, 2vw, 17px); line-height: 1.4; }
.wp-single .wp-hero { flex: 1; }
.wp-single .wp-qr-img { max-width: 320px; }
.wp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: clamp(8px, 2%, 16px); border-top: 1px solid var(--line); }
.wp-wa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wp-wa-icon { display: grid; place-items: center; flex: none; width: clamp(36px, 6vw, 48px); height: clamp(36px, 6vw, 48px); border-radius: 50%; background: var(--whatsapp); color: var(--whatsapp-ink); }
.wp-wa-label { font-size: clamp(10px, 1.6vw, 13px); color: var(--ink-2); }
.wp-wa-num { font-family: var(--font-display); font-size: clamp(16px, 3vw, 26px); font-weight: 500; letter-spacing: var(--track-tight); font-variant-numeric: tabular-nums; }
.wp-brand { display: grid; justify-items: end; gap: 4px; }
.wp-brand-label { font-size: clamp(9px, 1.4vw, 11px); color: var(--ink-2); }
@media (max-width: 559px) {
  .wp-hero, .wp-walk { grid-template-columns: minmax(0, 1fr); }
  .wp-sheet { aspect-ratio: auto; }
  .wp-walk .wp-qr { order: 2; }
}

@media print {
  html, body { background: #fff !important; }
  .wp { padding: 0; background: #fff; min-height: 0; }
  .wp-toolbar, .route-progress, .toast-stack { display: none !important; }
  .wp-sheet-slot { display: block; }
  .wp-sheet {
    width: 210mm;
    height: 296mm;
    max-width: none;
    aspect-ratio: auto;
    padding: 16mm 15mm 12mm;
    gap: 8mm;
    border-radius: 0;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    break-after: avoid;
    page-break-after: avoid;
  }
  .wp[data-size="letter"] .wp-sheet { width: 215.9mm; height: 278.5mm; padding: 14mm 15mm 10mm; }
  .wp-hero, .wp-walk { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 10mm; border-radius: 8mm; box-shadow: none; }
  .wp-walk { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .wp-walk .wp-qr { order: 0; }
  .wp-hero-title { font-size: 34pt; }
  .wp-hero-sub, .wp-walk-sub { font-size: 12.5pt; }
  .wp-walk-title { font-size: 28pt; }
  .wp-clinic-name { font-size: 26pt; }
  .wp-clinic-sub { font-size: 10pt; }
  .wp-steps { font-size: 11pt; }
  .wp-qr-img { max-width: 62mm; }
  .wp-walk .wp-qr-img { max-width: 48mm; }
  .wp-wa-num { font-size: 18pt; }
  .wp-mono { width: 16mm; height: 16mm; font-size: 16pt; }
}

/* ================================================================ staff board /app/walkins */
.wkb { display: grid; gap: var(--s-6); max-width: var(--content-w); }
.wkb .page-head { margin-bottom: 0; }
.wkb-head-text { min-width: 0; }
.wkb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .wkb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.wkb-stat-money { background: linear-gradient(160deg, #F2FCF8 0%, var(--surface) 70%); border-color: rgba(0, 189, 129, .22); }
.wkb-stat-money .stat-value { color: var(--success-ink); }
.wkb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (min-width: 1100px) { .wkb-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.wkb-main { display: grid; min-width: 0; }
.wkb-side { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1100px) { .wkb-side { position: sticky; top: calc(var(--topbar-h) + 20px); } }
.wkb-sec-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wkb-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--purple); color: var(--cream-light); font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.wkb-count.is-green { background: var(--success-tint); color: var(--success-ink); }
.wkb-count.is-muted { background: var(--sand); color: var(--ink-2); }
.wkb-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; color: var(--success-ink); letter-spacing: 0; }
.wkb-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: wt-pulse 2s infinite; }
.wkb-list { display: grid; gap: 12px; }
.wkb-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
  min-width: 0;
  animation: page-in var(--dur-3) var(--ease-out);
}
@media (min-width: 720px) { .wkb-card { padding: 18px 20px; } }
.wkb-card-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wkb-ticket {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 64px;
  height: 56px;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--purple-tint);
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.wkb-ticket.is-called { background: var(--success-tint); color: var(--success-ink); }
.wkb-ticket.is-small { min-width: 48px; height: 34px; border-radius: 10px; font-size: 16px; }
.wkb-who { flex: 1; min-width: 0; }
.wkb-name { font-weight: 600; font-size: 16.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wkb-reason { font-size: 14px; color: var(--ink-2); min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.wkb-reason .wkb-dot { margin-right: 6px; vertical-align: 1px; }
.wkb-waited { display: grid; justify-items: end; flex: none; text-align: right; }
.wkb-waited-n { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.05; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.wkb-waited-n small { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.wkb-waited-l { font-size: 12px; color: var(--ink-muted); }
.wkb-waited.is-mid .wkb-waited-n { color: var(--warning-ink); }
.wkb-waited.is-long .wkb-waited-n { color: var(--danger-ink); }
.wkb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.wkb-meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); }
.wkb-sugg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--purple-light);
  border: 1px solid rgba(37, 0, 142, .08);
  min-width: 0;
}
.wkb-sugg.is-late { background: var(--warning-tint); border-color: rgba(255, 166, 0, .28); }
.wkb-sugg.is-empty { background: var(--surface-2); border-style: dashed; border-color: var(--line-strong); }
.wkb-sugg-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--purple); }
.wkb-sugg.is-late .wkb-sugg-icon { color: var(--warning-ink); }
.wkb-sugg.is-empty .wkb-sugg-icon { color: var(--ink-muted); }
.wkb-sugg-body { flex: 1; min-width: 0; }
.wkb-sugg-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; min-width: 0; }
.wkb-sugg-title span:last-child { min-width: 0; }
.wkb-sugg-sub { font-size: 13px; color: var(--ink-2); }
.wkb-sugg-money { flex: none; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--success-tint); color: var(--success-ink); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wkb-dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--dot, var(--violet)); }
.wkb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wkb-actions .menu-pop { min-width: min(92vw, 340px); }
.wkb-left { margin-left: auto; color: var(--ink-2); }
.wkb-left:hover { color: var(--danger-ink); background: var(--danger-tint); }
.wkb-card-called .wkb-card-head > .badge { flex: none; }
.wkb-done { display: grid; margin: 0; padding: 0; list-style: none; }
.wkb-done-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
}
.wkb-done-row:first-child { border-top: 0; }
.wkb-done-name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wkb-done-meta { grid-column: 2; grid-row: 2; font-size: 12.5px; color: var(--ink-muted); }
.wkb-done-time { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wkb-done-row .wkb-ticket { grid-row: span 2; }
.wkb-kiosk { display: grid; gap: 12px; }
.wkb-kiosk-top { display: flex; align-items: center; gap: 10px; }
.wkb-kiosk-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--purple); color: var(--cream-light); }
.wkb-side-title { font-size: var(--fs-md); }
.wkb-side-text { font-size: 14px; color: var(--ink-2); }
.wkb-kiosk-qr { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.wkb-kiosk-qr img { flex: none; width: 88px; height: 88px; border-radius: 10px; background: var(--white); padding: 4px; }
.wkb-side-actions { display: grid; gap: 8px; }
.wkb-how { display: grid; gap: 10px; }
.wkb-how-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.wkb-how-list li { display: flex; align-items: flex-start; gap: 10px; }
.wkb-how-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--purple); }
.wkb-add { display: grid; gap: 16px; }
.wkb-add-reasons { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wkb-add-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 639px) {
  .wkb-head-kiosk { display: none; }
  .wkb-waited-n { font-size: 20px; }
  .wkb-ticket { min-width: 54px; height: 48px; font-size: 20px; }
  .wkb-sugg { flex-wrap: wrap; }
  .wkb-sugg-money { margin-left: 46px; }
}
