/* Member wallet only; staff and admin retain their shared styles. */
.wallet-body {
  --ink: #12305b;
  --paper: #f2f5fa;
  --line: #d5deeb;
  --blue: #184a86;
  --wallet-muted: #52647d;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
.wallet-body .shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #fff;
}
.wallet-body .wallet-brand { gap: 12px; margin: 0 0 36px; letter-spacing: 0; }
.wallet-brand-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: var(--ink); color: #fff; }
.wallet-body svg { width: 24px; height: 24px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wallet-brand strong { display: block; font-size: 15px; font-weight: 800; }
.wallet-brand div > span { display: block; margin-top: 2px; color: var(--wallet-muted); font-size: 12px; font-weight: 500; }
.wallet-body h1 { margin: 0; font-size: clamp(28px, 7vw, 36px); line-height: 1.3; letter-spacing: -.035em; }
.wallet-body .muted { color: var(--wallet-muted); }
.wallet-body p { line-height: 1.7; }
.wallet-body .panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.wallet-body .stack { gap: 20px; }
.wallet-body .primary, .wallet-body .secondary { min-height: 52px; border-radius: 12px; transition: background-color 120ms, opacity 120ms; }
.wallet-body .primary { background: var(--blue); }
.wallet-body .secondary { background: #eaf0f8; }
.wallet-body button:active:not(:disabled) { opacity: .8; }
.wallet-body .primary:disabled { opacity: .6; }
.wallet-body button:focus-visible, .wallet-body input:focus-visible, .wallet-body summary:focus-visible { outline: 3px solid #648dc4; outline-offset: 4px; }
.wallet-body .status-pill { flex-shrink: 0; padding: 5px 10px; font-size: 13px; line-height: 1.5; }
.ticket-status-neutral { background: #eaf0f8; color: #425772; }
.ticket-status-unavailable { background: var(--amber-soft); color: #6e3d00; }
.wallet-body #loading { padding: 24px 0; border: 0; }
.wallet-body #loading p { margin: 0; color: var(--wallet-muted); }
.wallet-body #login { flex: 1; }
.wallet-body .login-hero { padding: 24px 0 32px; }
.wallet-body .login-hero h1 { font-size: clamp(36px, 10vw, 48px); line-height: 1.3; }
.wallet-body .login-hero p { max-width: 30ch; margin: 20px 0 0; }
.wallet-body #login .panel { padding: 0; border: 0; }
.wallet-body #tickets { gap: 24px; align-content: start; }
.tickets-intro p { margin: 8px 0 0; font-size: 14px; }
.ticket-card h2, .ticket-card p { margin: 0; }
.ticket-card-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.wallet-body .ticket-card-heading h2 { font-size: 24px; line-height: 1.4; letter-spacing: -.03em; }
.wallet-body .ticket-card-annual {
  position: relative;
  gap: 20px;
  padding: 24px;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.ticket-category { display: flex; align-items: center; gap: 8px; color: #c5d7f0; font-size: 13px; }
.ticket-category svg { width: 20px; height: 20px; }
.wallet-body .ticket-card-annual .muted { color: #d7e3f5; font-size: 14px; }
.ticket-card-annual .ticket-card-heading { align-items: center; }
.ticket-card-annual .status-pill { background: #d8f5e8; color: #045c42; }
.ticket-card-annual .ticket-status-neutral { background: #eaf0f8; color: #425772; }
.ticket-card-annual .ticket-status-unavailable { background: var(--amber-soft); color: #6e3d00; }
.wallet-body #open-annual-ticket { background: #fff; color: var(--ink); margin-top: 4px; }
.ticket-card-annual::before, .ticket-card-annual::after { content: ""; position: absolute; top: 72px; width: 14px; height: 28px; background: #fff; }
.ticket-card-annual::before { left: 0; border-radius: 0 14px 14px 0; }
.ticket-card-annual::after { right: 0; border-radius: 14px 0 0 14px; }
.wallet-body .ticket-card-upcoming { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: #fff; border-radius: 14px; }
.coffee-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 44px; color: #52647d; }
.coffee-content { min-width: 0; flex: 1; }
.coffee-content .ticket-card-heading { gap: 8px; align-items: center; }
.wallet-body .coffee-content h2 { font-size: 18px; }
.coffee-content p { margin-top: 10px; font-size: 13px; }
.coffee-content .coffee-locations { margin-top: 8px; color: var(--wallet-muted); font-size: 12px; }
.wallet-use-note { display: flex; align-items: flex-start; gap: 10px; padding: 0 4px; color: #52647d; }
.wallet-use-note svg { margin-top: 2px; width: 20px; height: 20px; }
.wallet-use-note p { margin: 0; font-size: 13px; font-weight: 700; }
.wallet-use-note p span { font-weight: 400; }
.wallet-body .mode-back { display: flex; align-items: center; justify-content: flex-start; gap: 4px; min-height: 48px; padding: 8px 0; margin: -12px 0 16px; background: transparent; font-size: 14px; }
.wallet-body .mode-back svg { width: 20px; height: 20px; }
.wallet-body #claim { padding: 0; border: 0; }
.wallet-body #claim > div > p { font-size: 14px; margin: 12px 0 4px; }
.wallet-body .field { font-size: 14px; gap: 8px; }
.wallet-body .field input { min-height: 52px; padding: 14px; border-color: #b1bfd3; border-radius: 10px; font-size: 16px; background: #fff; }
.wallet-body #claim-code-options { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f5f8fc; }
.wallet-body summary { cursor: pointer; line-height: 1.6; font-size: 14px; font-weight: 700; }
.wallet-body #claim-code-options summary { min-height: 44px; display: list-item; align-content: center; }
.wallet-body #claim-code-options[open] .field { margin-top: 12px; }
.wallet-body #claim-prefilled { margin: 0; font-size: 14px; }
.wallet-body .ticket { overflow: visible; padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: none; }
.wallet-body .ticket::after { display: none; }
.wallet-body .ticket-head { flex-wrap: wrap; padding: 20px; border: 0; border-radius: 17px 17px 0 0; background: var(--ink); color: #fff; }
.wallet-body .ticket-head strong { font-size: 18px; }
.wallet-body .member { gap: 16px; padding: 24px 20px; margin: 0; }
.wallet-body .member .avatar { width: 64px; height: 64px; flex: 0 0 auto; border: 1px solid var(--line); }
.wallet-body .member > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.wallet-body .member-name { font-size: 24px; line-height: 1.5; }
.wallet-body #phone-view { color: var(--wallet-muted); font-size: 13px; }
.wallet-body .gate-checkin { gap: 14px; margin: 0 12px; padding: 20px 16px; background: #f0f4fa; border-radius: 12px; }
.wallet-body .gate-checkin h2 { font-size: 18px; }
.wallet-body .gate-checkin > p { font-size: 14px; }
.wallet-body .gate-checkin .secondary { background: transparent; border: 1px solid #bac9dc; min-height: 48px; font-size: 14px; }
.wallet-body .message { margin: 0; font-size: 14px; }
.wallet-body #redemption-message:empty { display: none; }
.wallet-body .ticket-backup { margin: 20px; }
.wallet-body .ticket-backup summary { min-height: 44px; align-content: center; }
.wallet-body .ticket-backup > p { color: var(--wallet-muted); font-size: 14px; }
.wallet-body .qr-wrap { min-width: 0; max-width: 100%; padding: 12px; border: 1px solid var(--line); }
.wallet-body .qr-wrap img, .wallet-body .qr-wrap canvas { max-width: 100%; }
.wallet-body .countdown { color: var(--wallet-muted); font-size: 13px; }
.wallet-body .ticket-meta { margin: 0; padding: 20px; border-top: 1px dashed #b9c8db; gap: 16px; font-size: 14px; }
.wallet-body .ticket-meta small { color: var(--wallet-muted); font-size: 12px; margin-bottom: 8px; }
.wallet-body .ticket-meta strong { overflow-wrap: anywhere; }
.wallet-body .redemption-dialog { max-height: calc(100dvh - 32px); padding: 24px; border-radius: 18px; }
.wallet-body .redemption-dialog h2 { font-size: 24px; }
.wallet-body .redemption-dialog > form > p { font-size: 14px; }
.wallet-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 40px; font-size: 12px; color: #61718a; }
@media (min-width: 601px) {
  .wallet-body .shell { padding: 36px; }
}
@media (max-width: 360px) {
  .wallet-body .shell { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .wallet-body .ticket-card-annual { padding: 24px 20px; }
  .wallet-body .ticket-card-heading h2 { font-size: 22px; }
  .wallet-body .ticket-card-upcoming { gap: 8px; padding: 16px; }
  .wallet-body .gate-checkin { margin: 0 8px; padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-body button { transition: none; }
}
