:root {
  color-scheme: dark;
  --paper: #101110;
  --white: #191a17;
  --surface-raised: #20201b;
  --ink: #f1eadb;
  --muted: #b0aa9b;
  --subtle: #969387;
  --line: rgba(167, 138, 81, .26);
  --line-strong: rgba(167, 138, 81, .52);
  --gold: #c6a363;
  --gold-light: #29251b;
  --dark: #11110f;
  --green: #b3c69b;
  --red: #e3ac99;
  --radius: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: .64; }
button, a, input, textarea, select { outline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); }
a { color: inherit; }
button svg, a svg { flex: none; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: 28px; line-height: 1.18; letter-spacing: -.55px; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.25px; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
p { line-height: 1.6; }
small { font-size: 12px; }
::selection { color: #101110; background: #c6a363; }
.app-shell { display: flex; flex-direction: column; max-width: 520px; margin: auto; min-height: 100dvh; background: var(--paper); }
.brand-bar, #demo-banner { flex: none; }
.brand-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(167,138,81,.12); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-logo, .brand-mark { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #101110; }
.brand-logo img { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 50%; border: 1px solid rgba(167,138,81,.35); filter: brightness(2) contrast(1.1) saturate(1.05); }
.brand-bar .brand-logo { overflow: hidden; background: #1d1c19; }
.brand-bar .brand-logo img { width: 100%; height: 100%; object-fit: cover; border: 0; filter: none; }
.brand-mark { color: var(--gold); border: 1px solid var(--line-strong); font-family: Georgia, serif; font-size: 24px; letter-spacing: -3px; padding-right: 3px; }
.brand strong { display: block; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; color: #ddc189; font-size: clamp(17px,4.9vw,20px); line-height: 1.2; letter-spacing: 1.65px; font-weight: 400; white-space: nowrap; }
.brand small { display: block; color: var(--subtle); font-size: 10px; line-height: 1.4; letter-spacing: .1px; margin-top: 4px; }
.test-label { display: flex; align-items: center; gap: 5px; flex: none; padding: 6px 8px; max-width: 101px; border: 1px solid var(--line); border-radius: 6px; background: #171711; color: #c4ad7c; font-size: 9px; line-height: 1.4; font-weight: 500; }
.test-label span { width: 4px; height: 4px; flex: none; border-radius: 50%; background: var(--gold); }
#main { flex: 1 0 auto; padding: 16px 18px calc(96px + env(safe-area-inset-bottom)); min-height: 70dvh; outline: none; }
#main.client-card-view { display: flex; flex-direction: column; min-height: 0; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
#main.client-card-view > * { flex-shrink: 0; }
.page-heading { margin: 2px 0 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.7px; font-size: 10px; color: var(--gold); font-weight: 500; margin-bottom: 6px; }
.subheading { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.section-heading h2 { font-size: 20px; }
.surface { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 7px 22px rgba(0,0,0,.1); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.body-copy { font-size: 14px; line-height: 1.75; }
.stack { display: grid; gap: 9px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spread { justify-content: space-between; }
.card-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 12px; margin: 2px 0 16px; }
.card-heading .page-heading { display: contents; }
.card-heading h1 { grid-column: 1; grid-row: 1; min-width: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(20px,5.65vw,24px); font-style: italic; line-height: 1.3; letter-spacing: -.35px; color: var(--ink); white-space: normal; text-wrap: balance; }
.card-heading .subheading { grid-column: 1 / -1; grid-row: 2; margin: 0; }
.card-heading-actions { display: flex; align-items: center; gap: 3px; grid-column: 2; grid-row: 1; }
.bonus-balance { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #95804f; border-radius: 18px; padding: 15px 18px; background: linear-gradient(115deg,rgba(255,236,187,.075),transparent 34%,rgba(255,236,187,.025) 58%,transparent 76%),radial-gradient(ellipse at 100% 0%,rgba(178,148,80,.19),transparent 65%),linear-gradient(135deg,#30332a,#171c17 65%,#24271e); box-shadow: inset 0 1px 0 rgba(255,237,191,.24),inset 0 -1px 0 rgba(0,0,0,.55),0 2px 0 #10130e,0 3px 0 #494733,0 14px 28px rgba(0,0,0,.3); }
.bonus-balance::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(232,208,151,.1); border-top-color: rgba(255,237,191,.19); border-radius: 13px; background: linear-gradient(115deg,transparent 38%,rgba(255,244,214,.045) 45%,rgba(255,244,214,.015) 56%,transparent 63%); pointer-events: none; }
.bonus-balance > .bonus-card-watermark { position: absolute; z-index: 0; top: 42px; right: 19px; color: rgba(219,193,130,.065); font-family: "Palatino Linotype","Book Antiqua",Palatino,Georgia,serif; font-size: 106px; line-height: 1; letter-spacing: -8px; transform: rotate(-12deg); pointer-events: none; }
.bonus-balance > * { position: relative; z-index: 1; }
.bonus-card-brand strong { display: block; font-family: "Palatino Linotype","Book Antiqua",Palatino,Georgia,serif; font-size: 12px; line-height: 1.3; letter-spacing: 1.15px; font-weight: 400; color: #e3cd9b; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
.bonus-card-brand > span { display: block; margin-top: 3px; font-size: 8px; line-height: 1.4; letter-spacing: 1.15px; text-transform: uppercase; color: #b4ab8e; }
.bonus-label { color: #c2b28e; font-size: 11px; letter-spacing: .2px; font-weight: 500; }
.bonus-balance > .row > svg { color: var(--gold); width: 22px; height: 22px; }
.bonus-value { font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -1.5px; line-height: 1.15; color: #e9cf98; margin-top: 10px; overflow-wrap: anywhere; text-shadow: 0 1px 0 rgba(255,237,191,.14),0 -1px 0 rgba(0,0,0,.6); }
.bonus-value > span { display: inline-block; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 15px; letter-spacing: 0; margin-left: 8px; color: #c3b28b; font-weight: 400; }
.bonus-equivalent { font-size: 11px; color: var(--muted); margin-top: 4px; }
.bonus-rules-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.bonus-rules-grid > div { min-width: 0; border: 1px solid rgba(181,155,97,.54); border-radius: 9px; padding: 8px 10px; background: linear-gradient(135deg,rgba(12,17,12,.42),rgba(21,26,19,.72)); box-shadow: inset 0 1px 0 rgba(255,237,191,.045); }
.bonus-rules-grid span { display: block; font-size: 10px; line-height: 1.4; color: var(--muted); }
.bonus-rules-grid small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.bonus-rules-grid strong { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; font-weight: 500; color: #e0c48e; }
.bonus-earn-rate { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; }
.bonus-earn-rate strong, .bonus-earn-rate small { margin-top: 0; }
.bonus-earn-rate strong { flex: none; }
.bonus-earn-rate small { min-width: 0; }
.bonus-rates { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 25px; padding: 18px 0 20px; gap: 15px; }
.bonus-rates strong { display: block; font-size: 23px; color: var(--gold); font-weight: 400; letter-spacing: -.5px; }
.bonus-rates small { font-size: 10px; display: block; margin-top: 5px; color: #b7ae99; line-height: 1.55; }
.bonus-rates > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.bonus-history { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; margin: -5px -5px -5px 0; padding: 8px 5px; border-radius: 6px; background: transparent; color: #d0b77f; font-size: 12px; text-align: left; }
.bonus-history svg { width: 15px; height: 15px; }
.points-use { margin-top: 18px; }
.points-use > p { font-size: 11px; color: var(--muted); text-align: center; margin: 9px 0 0; }
.code-surface { margin-top: 14px; padding: 16px; border-radius: var(--radius); }
.code-surface:not(.code-ready) > .row + .primary { margin-top: 14px; }
.code-title { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 14px; font-weight: 550; letter-spacing: 0; }
.timer { display: flex; align-items: center; gap: 5px; color: var(--gold); font-size: 11px; font-variant-numeric: tabular-nums; background: var(--gold-light); border: 1px solid var(--line); border-radius: 20px; padding: 5px 8px; }
.timer svg { width: 12px; height: 12px; }
.code-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 15px 0 10px; }
.code { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: 2px; font-size: 27px; font-weight: 500; color: #e0c48e; white-space: nowrap; }
.code-ready { border-color: rgba(198,163,99,.52); background: radial-gradient(ellipse at 100% 0%,rgba(198,163,99,.13),transparent 65%),linear-gradient(135deg,#20231c,#171a15); box-shadow: inset 0 1px 0 rgba(228,197,138,.08),0 8px 22px rgba(0,0,0,.13); }
.code-brand-name { display: block; margin-bottom: 4px; font-family: "Palatino Linotype","Book Antiqua",Palatino,Georgia,serif; font-size: 12px; line-height: 1.3; letter-spacing: 1.1px; color: #e0c48e; }
.code-ready .code-title { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.code-presenter { display: grid; justify-items: center; gap: 12px; margin: 18px 0 14px; }
.customer-qr { width: 174px; height: 174px; flex: none; overflow: hidden; border-radius: 12px; background: #d0b276; box-shadow: 0 0 0 1px rgba(224,196,142,.45),0 8px 22px rgba(0,0,0,.16); }
.customer-qr svg { display: block; width: 100%; height: 100%; }
.code-ready .code-line { justify-content: center; flex-wrap: nowrap; margin: 14px 0 12px; padding: 17px 10px; border: 1px solid rgba(198,163,99,.38); border-radius: 11px; background: linear-gradient(135deg,rgba(198,163,99,.09),rgba(198,163,99,.025)); box-shadow: inset 0 1px 0 rgba(228,197,138,.055); }
.code-presenter .code-line { width: 100%; margin: 0; padding: 10px; }
.code-ready .code { font-size: 32px; line-height: 1.25; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.code-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code-help { min-width: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.code-renew { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 6px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(198,163,99,.045); color: #d0ba87; font-size: 11px; line-height: 1.4; }
.code-renew svg { width: 15px; height: 15px; }
.code-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 12px 0 15px; }
.lookup-form { gap: 12px; }
.lookup-scan svg { width: 20px; height: 20px; flex: none; }
.lookup-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.lookup-divider::before, .lookup-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lookup-form .code-input { text-align: center; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: 2px; text-transform: uppercase; }
@media (max-width: 360px) { .customer-qr { width: 145px; height: 145px; } .code-presenter { margin-top: 14px; gap: 10px; } }
.code-expired { color: var(--subtle); }
.permission-badge { display: inline-flex; padding: 5px 8px; border: 1px solid #444737; border-radius: 5px; background: #23251e; color: #c0c2aa; font-size: 10px; font-weight: 500; }
.permission-badge.allowed { background: #202a1e; border-color: #48573b; color: #bed09e; }
.code-revoke { margin-top: 16px; }
.code-revoke .secondary { font-size: 12px; min-height: 42px; }
.icon-button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); }
.icon-button.soft { background: var(--surface-raised); border-color: var(--line); color: var(--gold); }
.primary, .secondary, .quiet, .danger { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 11px; padding: 10px 13px; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.5; }
.primary { background: linear-gradient(120deg,#d0b276,#b79554); border-color: #d0b276; color: #15150f; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.primary.gold { background: var(--gold); color: #15150f; }
.secondary { background: #24251f; border-color: var(--line-strong); color: #e0c48e; }
.quiet { background: transparent; color: var(--muted); font-size: 12px; }
.danger { background: #30201b; border-color: #6e4435; color: #ecc0ac; }
.full { width: 100%; }
.action-row { display: flex; gap: 9px; }
.action-row > * { flex: 1; }
.hint-card { display: flex; align-items: center; gap: 13px; padding: 20px 3px 0; color: var(--muted); }
.hint-icon { width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 10px; color: #b2a17c; flex: none; }
.hint-icon svg { width: 17px; height: 17px; }
.hint-card p { font-size: 11px; line-height: 1.75; }
.link-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 66px; background: var(--white); padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); text-align: left; gap: 12px; color: var(--ink); transition: background .16s,border-color .16s; }
.link-row .row svg { color: var(--gold); width: 20px; height: 20px; }
.link-row .row > span { min-width: 0; }
.link-row p { font-size: 14px; font-weight: 500; }
.link-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.55; }
.link-row > svg { width: 16px; height: 16px; color: #b2a079; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,520px); height: calc(70px + env(safe-area-inset-bottom)); padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; background: rgba(17,18,15,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line-strong); z-index: 20; }
.bottom-nav[hidden] { display: none; }
.bottom-nav.work-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; border-radius: 10px; background: transparent; color: #a7a394; font-size: 10px; font-weight: 500; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item.active { color: #dbc087; background: rgba(167,138,81,.06); }
.nav-item.active svg { stroke-width: 2; }
.nav-item.active::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--gold); height: 2px; width: 27px; border-radius: 2px; }
.store-card { padding: 16px; margin-bottom: 12px; }
.store-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.store-number { color: var(--gold); font-size: 11px; font-weight: 500; letter-spacing: 1px; }
.store-address { font-size: 21px; line-height: 1.4; letter-spacing: -.25px; margin-top: 10px; }
.landmark { font-size: 12px; color: var(--muted); margin-top: 5px; }
.open-badge, .status-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 20px; padding: 5px 8px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.open-badge.open { background: #1d2b20; border-color: #3b4a31; color: #b3c69b; }
.open-badge.closed { background: #28241b; border-color: #51452c; color: #d2b983; }
.open-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.store-hours { font-size: 13px; color: #b9b3a2; line-height: 1.75; margin: 12px 0 15px; white-space: pre-line; }
.store-card .secondary { min-height: 43px; font-size: 12px; }
.store-card .secondary svg { width: 16px; height: 16px; }
.support-heading { font-size: clamp(20px,5.65vw,22px); line-height: 1.3; letter-spacing: -.35px; white-space: nowrap; }
.contact-name { font-size: 22px; line-height: 1.3; font-weight: 400; color: #e1c58e; overflow-wrap: anywhere; }
.contact-role { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.contact-intro { font-size: 13px; color: var(--muted); margin: 10px 0 20px; }
.contact-orbit { width: 41px; height: 41px; border: 1px solid var(--line); border-radius: 11px; background: var(--gold-light); color: var(--gold); display: grid; place-items: center; }
.contact-compact .contact-intro { margin: 5px 0 0; font-size: 12px; }
.contact-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.contact-actions > * { min-width: 0; min-height: 44px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #151611; }
.empty svg { width: 28px; height: 28px; margin-bottom: 10px; color: #baa16b; }
.ticket-row { display: block; width: 100%; text-align: left; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 11px; color: var(--ink); }
.ticket-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; font-size: 12px; font-weight: 600; }
.ticket-preview { font-size: 13px; color: #c3bdad; margin: 12px 0 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; }
.ticket-date { font-size: 11px; color: var(--subtle); }
.status-badge.new { background: #2e271b; border-color: #57462a; color: #dfbd7c; }
.status-badge.in_progress { background: #1d282e; border-color: #3e535d; color: #b2c7d4; }
.status-badge.closed { background: #1f2c21; border-color: #3c5037; color: #b3c69b; }
.profile-card { text-align: center; padding: 20px 16px; margin-bottom: 16px; }
.avatar { width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: #27251c; color: #d7b979; margin: 0 auto 12px; font-size: 26px; font-family: Georgia,serif; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-name { font-size: 23px; overflow-wrap: anywhere; }
.profile-detail { font-size: 12px; color: var(--muted); margin-top: 9px; }
.role-pill { display: inline-block; font-size: 10px; color: #d4b77d; border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 10px; margin-top: 14px; background: #232218; }
.profile-id { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 13px; font-size: 11px; color: var(--muted); }
.profile-id button { width: 30px; height: 30px; }
.profile-id svg { width: 14px; height: 14px; }
.profile-details { min-width: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.profile-details summary, .optional-fields summary { min-height: 44px; padding: 12px 0; color: #c6b087; font-size: 12px; line-height: 1.6; cursor: pointer; }
.profile-details summary:focus-visible, .optional-fields summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.profile-details .profile-id { flex-wrap: wrap; margin: 0 0 10px; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.section-label { color: #c2ab7c; font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; margin: 25px 0 13px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; background: transparent; color: #c3ae81; padding: 0; margin: 0 0 12px; font-size: 12px; }
.back-link svg { width: 15px; height: 15px; transform: rotate(180deg); }
.metric-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 16px; }
.metric-card > div { padding: 15px; min-width: 0; }
.metric-card > div + div { border-left: 1px solid var(--line); }
.metric-card small { display: block; color: var(--muted); font-size: 10px; }
.metric-card strong { display: block; margin-top: 9px; color: #dec48f; font-size: 23px; font-weight: 500; letter-spacing: -.5px; overflow-wrap: anywhere; }
.journal-row { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.journal-row:last-child { border: 0; }
.journal-row > div:first-child { min-width: 0; }
.journal-row h3 { font-size: 13px; overflow-wrap: anywhere; }
.journal-row p { font-size: 11px; line-height: 1.65; color: var(--muted); margin-top: 6px; }
.journal-total { flex: none; max-width: 47%; font-size: 14px; font-weight: 550; text-align: right; color: #e4cf9f; }
.journal-total small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.staff-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.staff-row:last-child { border-bottom: 0; }
.staff-row > div { min-width: 0; }
.staff-row strong { font-family: ui-monospace,monospace; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.staff-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.staff-row button { flex: none; font-size: 11px; min-height: 44px; padding: 8px 10px; }
.sheet { width: 100%; max-width: 520px; max-height: calc(100dvh - 20px - env(safe-area-inset-top)); position: fixed; inset: auto 0 0; margin: 0 auto; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 23px 23px 0 0; padding: 0 18px calc(22px + env(safe-area-inset-bottom)); background: #11120f; color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 -14px 70px rgba(0,0,0,.45); }
.sheet::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-handle { width: 34px; height: 3px; border-radius: 3px; background: #6f6041; margin: 11px auto 0; }
.sheet-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0 17px; background: #11120f; }
.sheet-header h2 { font-size: 23px; min-width: 0; overflow-wrap: anywhere; }
.sheet-close { width: 38px; height: 38px; border: 1px solid var(--line); background: #25251e; border-radius: 50%; color: #cab88f; }
.sheet-close svg { width: 15px; height: 15px; }
.sheet-body { padding-bottom: 4px; min-width: 0; }
.sheet-body h2 { overflow-wrap: anywhere; }
/* Space only adjacent modal blocks; form and action-grid gaps remain independent. */
.sheet-body > :is(.surface,.empty,.reply-bubble) + :is(.primary,.secondary,.quiet,.danger) { margin-top: 14px; }
.sheet-body > .form + :is(.primary,.secondary,.quiet,.danger),
.sheet-body > :is(.primary,.secondary,.quiet,.danger) + :is(.primary,.secondary,.quiet,.danger),
.sheet-body > .work-success > :is(.primary,.secondary,.quiet,.danger) + :is(.primary,.secondary,.quiet,.danger) { margin-top: 8px; }
.sheet-body > .work-success > .surface + :is(.primary,.secondary,.quiet,.danger) { margin-top: 0; }
.sheet-description { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.form { display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; gap: 14px; }
.field { display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; gap: 7px; font-size: 12px; font-weight: 500; color: #d0c7b3; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; border: 1px solid #7a6540; border-radius: 10px; background: #12140f; color: var(--ink); padding: 11px 12px; font-size: 16px; font-weight: 400; outline: none; accent-color: var(--gold); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 125px; line-height: 1.7; }
.field select { padding-right: 11px; }
.field select option { background: #191a17; color: var(--ink); }
.custom-select, .custom-select__label { min-width: 0; }
.custom-select { width: 100%; }
.custom-select__label { display: block; cursor: pointer; }
.custom-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #7a6540; border-radius: 10px; background: #12140f; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.5; text-align: left; }
.custom-select__value { display: block; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.custom-select__chevron { display: grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--gold); transform: rotate(90deg); transition: transform .16s ease; }
.custom-select__chevron svg { width: 18px; height: 18px; }
.custom-select.is-open .custom-select__trigger { border-color: var(--gold); background: #181b14; }
.custom-select.is-open .custom-select__chevron { transform: rotate(-90deg); }
.custom-select__trigger:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 3px; }
.custom-select__list { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; width: 100%; min-width: 0; margin-top: 8px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 11px; background: #1b1e17; box-shadow: inset 0 1px 0 rgba(228,197,138,.04); }
.custom-select__option { display: grid; grid-template-columns: minmax(0,1fr) 16px; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.custom-select__option > span { min-width: 0; }
.custom-select__option[aria-selected="true"] { border-color: rgba(167,138,81,.45); background: #2b2d21; color: #ecd5a2; }
.custom-select__option.is-active { border-color: var(--gold); background: #332f22; }
.custom-select__option:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.custom-select__check { display: grid; place-items: center; width: 16px; height: 16px; color: var(--gold); }
.custom-select__check svg { width: 16px; height: 16px; }
.custom-select__trigger:disabled, .custom-select__option:disabled, .custom-select__option[aria-disabled="true"] { color: #959486; cursor: not-allowed; opacity: .6; }
.custom-select__option:disabled, .custom-select__option[aria-disabled="true"] { border-color: transparent; background: transparent; }
.custom-select__native[hidden], .custom-select__list[hidden], .custom-select__option[hidden], .custom-select__check[hidden] { display: none !important; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,163,99,.15); }
.field input::placeholder, .field textarea::placeholder { color: #979181; opacity: 1; }
.field input:disabled { opacity: 1; color: #9b9d8c; border-style: dashed; border-color: #434735; background: #1c1f18; cursor: not-allowed; }
.code-input { font-family: ui-monospace,monospace; text-transform: uppercase; letter-spacing: 3px !important; font-size: 25px !important; text-align: center; }
.field-note { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.65; }
.optional-fields { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #171812; }
.optional-fields[open] { padding-bottom: 12px; }
.optional-fields .form, .optional-fields > .stack { gap: 12px; }
.optional-fields > .field + .field { margin-top: 12px; }
.privacy-note { font-size: 12px; color: var(--muted); line-height: 1.75; margin: 14px 0 17px; }
.preview-label { overflow-wrap: anywhere; font-size: 10px; color: #c6ae7c; text-transform: uppercase; letter-spacing: 1.1px; margin-bottom: 10px; line-height: 1.7; }
.preview-text { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.summary-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; padding: 10px 0; color: var(--muted); }
.summary-line > span { min-width: 0; }
.summary-line strong { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; font-weight: 500; text-align: right; }
.summary-line.total { border-top: 1px solid var(--line-strong); margin-top: 10px; padding-top: 14px; font-size: 16px; color: var(--ink); }
.summary-line.total strong { font-family: Georgia,serif; color: #e0c58f; font-size: 26px; font-weight: 400; }
.customer-summary { display: flex; align-items: center; gap: 12px; background: #23251c; border: 1px solid #5c563c; border-radius: 13px; padding: 13px; margin-bottom: 16px; }
.customer-summary > div { min-width: 0; overflow-wrap: anywhere; }
.customer-summary svg { color: #c5b77e; width: 24px; height: 24px; flex: none; }
.customer-summary strong { font-size: 13px; font-weight: 550; line-height: 1.6; }
.customer-summary p { font-size: 11px; color: #bbb59f; margin-top: 5px; line-height: 1.7; }
.reply-bubble { background: #22261c; border: 1px solid #414b33; border-radius: 13px 13px 13px 3px; padding: 17px; margin-top: 16px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-bubble small { display: block; color: #bdc49f; font-size: 10px; margin-bottom: 8px; }
.status-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.status-actions button { min-width: 0; font-size: 11px; padding: 8px 10px; min-height: 44px; }
.toast { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(12px); max-width: min(430px,88vw); background: #302b20; border: 1px solid #887044; color: #f1dfb8; padding: 13px 17px; border-radius: 12px; font-size: 12px; line-height: 1.65; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .2s,transform .2s; box-shadow: 0 7px 30px rgba(0,0,0,.36); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.inline-error { font-size: 12px; line-height: 1.7; color: var(--red); background: #2b1c18; border: 1px solid #6f4033; border-radius: 10px; padding: 13px 14px; margin: 15px 0; }
.success-illustration { display: grid; place-items: center; width: 66px; height: 66px; background: #242c1e; border: 1px solid #505e3a; color: #bdd29d; border-radius: 50%; margin: 4px auto 16px; }
.success-illustration svg { width: 31px; height: 31px; }
.points-history-overview { margin-bottom: 15px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: radial-gradient(ellipse at 100% 0%,rgba(198,163,99,.11),transparent 70%),linear-gradient(135deg,#23271e,#171c16); box-shadow: inset 0 1px 0 rgba(228,197,138,.08); }
.points-history-balance { margin-bottom: 15px; }
.points-history-balance > span { font-size: 12px; color: var(--muted); display: block; }
.points-history-balance > strong { font-family: Georgia,serif; color: #e0c58f; font-size: 30px; line-height: 1.25; letter-spacing: -.5px; font-weight: 400; margin-top: 6px; display: block; overflow-wrap: anywhere; }
.points-history-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); padding-top: 12px; gap: 12px; }
.points-history-totals > div { min-width: 0; }
.points-history-totals > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.points-history-totals span { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.points-history-totals strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.points-history-totals .earned { color: var(--green); }
.points-history-totals .redeemed { color: #d5b18b; }
.points-history-delta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; white-space: nowrap; }
.points-history-delta .earned, .journal-total.earned { color: var(--green); }
.points-history-delta .redeemed { color: #d5b18b; }
.points-history-delta small { display: block; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.4; white-space: normal; }
.points-history-delta > span { text-align: right; }
.journal-total.earned { font-size: 12px; }
.access-note { margin-top: 20px; }
.access-note h3 { font-size: 14px; }
.access-note p { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.75; }
.work-home .link-row { min-height: 52px; padding: 11px 14px; }
.work-home > .stack { margin-top: 14px; }
.work-checkout { min-width: 0; }
.work-checkout .form { margin-top: 14px; gap: 14px; }
.report-toolbar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.report-toolbar button { min-width: 0; padding: 9px 6px; font-size: 11px; gap: 5px; }
.report-toolbar button svg { width: 16px; height: 16px; }
.report-toolbar .selected { border-color: var(--gold); background: #302b1e; color: #eed9ad; }
.report-period { margin: 12px 0; font-size: 11px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.report-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.report-summary > div { min-width: 0; min-height: 75px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.report-summary span { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.report-summary strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1.35; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-summary .earned, .purchase-row-points .earned { color: var(--green); }
.report-summary .redeemed, .purchase-row-points .redeemed { color: #d5b18b; }
.purchase-row { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.purchase-row:first-child { padding-top: 0; }
.purchase-row:last-child { padding-bottom: 0; border-bottom: 0; }
.purchase-row-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.purchase-row-heading h3 { min-width: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.purchase-row-heading > strong { max-width: 50%; font-size: 16px; font-weight: 500; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.purchase-row p { color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.purchase-row .purchase-row-ref, .purchase-row-ref { color: #cbb17d; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 11px; line-height: 1.6; letter-spacing: .4px; margin: 3px 0; overflow-wrap: anywhere; }
.purchase-row-points { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; line-height: 1.6; }
.purchase-cash-reference, .purchase-row .purchase-cash-reference { margin: 8px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.purchase-row:last-child .purchase-cash-reference { margin-bottom: 0; }
.report-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.report-pagination button { flex: none; padding: 8px 11px; font-size: 11px; }
.report-pagination > span { min-width: 0; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.report-date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.report-date-fields .field, .report-date-fields input { min-width: 0; width: 100%; }
.purchase-sequence { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: #201f18; }
.purchase-sequence span { font-size: 12px; line-height: 1.5; color: var(--ink); }
.purchase-sequence small { color: #cbb17d; font-size: 11px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; }
.work-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.work-section-heading > h1, .work-section-heading > .page-heading { min-width: 0; margin-bottom: 0; }
.work-section-heading > .icon-button { flex: none; margin-top: 1px; }
#main > button[data-action="add-staff"] + :is(.surface,.empty,.skeleton) { margin-top: 14px; }
.work-history { min-width: 0; margin-top: 16px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.work-history summary { min-height: 44px; padding: 12px 0; font-size: 13px; line-height: 1.6; color: #c6b087; cursor: pointer; }
.work-history summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.work-history > .surface { margin: 0 0 14px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.work-history > .empty { margin: 0 0 14px; }
.work-success > p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 10px 0; }
.work-success > .surface { margin: 14px 0; }
.work-success > .primary { margin-top: 16px; }
.grant-amount, .work-success > .grant-amount { font-family: Georgia,serif; font-size: 30px; font-weight: 400; letter-spacing: -.5px; color: #e0c58f; margin: 14px 0 18px; }
.grant-reason { overflow-wrap: anywhere; max-width: 260px; line-height: 1.7 !important; }
.center { text-align: center; }
.loading-row { display: flex; justify-content: center; align-items: center; padding: 35px; gap: 10px; color: var(--muted); font-size: 12px; }
.initial-loading { padding: 100px 0; text-align: center; color: var(--muted); font-size: 12px; }
.initial-loading .spinner { display: inline-block; margin-bottom: 17px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(167,138,81,.28); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.error-screen, .landing { padding: 51px 0 20px; text-align: center; }
.error-screen p, .landing p { font-size: 13px; color: var(--muted); margin: 17px 0 26px; }
.landing .brand-logo, .landing .brand-mark { width: 64px; height: 64px; margin: 0 auto 28px; }
.landing .brand-logo img { width: 64px; height: 64px; }
.brand-logo-large, .landing .brand-logo-large { width: 88px; height: 88px; }
.brand-logo-large img, .landing .brand-logo-large img { width: 88px; height: 88px; }
.landing .brand-mark { font-size: 29px; }
.error-screen svg { width: 39px; height: 39px; color: var(--gold); margin-bottom: 23px; }
.landing .primary { margin-top: 18px; }
.demo-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; border-bottom: 1px solid #54452a; background: #211d14; color: #d5bd89; font-size: 9px; font-weight: 500; }
.demo-strip select { font-size: 11px; min-height: 32px; border: 1px solid #79623a; background: #151610; color: #e2c993; border-radius: 6px; padding: 4px 6px; max-width: 125px; }
.demo-strip > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.4; }
.demo-strip strong { font-size: 9px; letter-spacing: .8px; font-weight: 600; }
.demo-notice { font-size: 11px; color: #d0ba87; background: #221f16; border: 1px solid #55472b; padding: 12px 13px; border-radius: 10px; margin-top: 16px; line-height: 1.75; }
.legal-footer { text-align: center; font-size: 10px; line-height: 1.7; letter-spacing: .1px; color: var(--subtle); margin: 19px 0 0; }
.skeleton { height: 84px; background: linear-gradient(90deg,#1b1c17,#29291f,#1b1c17); background-size: 200% 100%; border: 1px solid var(--line); border-radius: 15px; animation: shimmer 1.2s infinite; }

.checkout-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.checkout-options > button { min-width: 0; min-height: 60px; flex-direction: column; gap: 3px; }
.checkout-options small { font-size: 10px; line-height: 1.4; font-weight: 400; }
.code-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.code-actions > button { min-width: 0; }
.code-secondary { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-width: 0; min-height: 44px; margin-top: 7px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.6; font-weight: 400; }
.code-actions .code-secondary { margin-top: 0; }
.code-empty-note { margin-top: 10px; }
.rules-access { display: flex; justify-content: center; margin-top: auto; padding-top: 20px; }
.rules-footer-link { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 44px; padding: 8px 6px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; text-align: center; text-decoration: underline; text-underline-offset: 3px; white-space: normal; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px; background: transparent; color: #c6b087; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-link svg { width: 16px; height: 16px; }
.rules-list { margin-bottom: 20px; }
.rules-list section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules-list section:first-child { padding-top: 0; }
.rules-list h3 { font-size: 14px; color: #e4c58a; }
.rules-list p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.demo-tools { margin: 16px 0; border: 1px solid var(--line); border-radius: 11px; background: #1d1c15; padding: 0 13px; font-size: 12px; }
.demo-tools summary { min-height: 44px; padding: 13px 0; color: #d0ba87; cursor: pointer; }
.demo-tools summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.demo-tools > p { font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 13px; }
.demo-tools .stack { padding-bottom: 13px; }

.hidden, [hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (hover:hover) {
  .custom-select__trigger:not(:disabled):hover { border-color: var(--gold); }
  .custom-select__option:not(:disabled):not([aria-disabled="true"]):hover { border-color: var(--gold); background: #332f22; }
  .link-row:hover, .ticket-row:hover { background: #22231d; border-color: var(--line-strong); }
  .primary:hover { filter: brightness(1.07); }
  .secondary:hover, .icon-button:hover { background: #302c20; color: #ead2a0; }
  .bonus-history:hover, .nav-item:hover { background-color: rgba(167,138,81,.12); }
  .quiet:hover, .back-link:hover { color: #e1c58e; }
}
@media (min-width:600px) {
  body { background: #0b0c0b; }
  .app-shell { box-shadow: 0 0 70px rgba(0,0,0,.36); border-left: 1px solid rgba(167,138,81,.1); border-right: 1px solid rgba(167,138,81,.1); }
  .sheet { bottom: 18px; border-bottom: 1px solid var(--line-strong); border-radius: 23px; max-height: 88dvh; padding-bottom: 27px; }
  .bottom-nav { border-radius: 16px 16px 0 0; }
  .brand-bar { padding-top: 16px; }
}
@media (max-width:359px) {
  .report-date-fields { grid-template-columns: 1fr; }
  .brand-bar { gap: 7px; padding: 12px 16px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 17px; letter-spacing: 1.2px; }
  .brand small { font-size: 9px; max-width: 128px; }
  .test-label { font-size: 8px; gap: 4px; padding: 5px 6px; max-width: 82px; }
  #main { padding: 14px 16px calc(94px + env(safe-area-inset-bottom)); }
  #main.client-card-view { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  h1 { font-size: 26px; }
  .surface, .store-card { padding: 14px; }
  .code { font-size: 24px; letter-spacing: 2px; }
  .code-ready .code { font-size: 29px; letter-spacing: 2px; }
  .bonus-balance { padding: 14px 12px; }
  .bonus-rules-grid > div { padding-left: 4px; padding-right: 4px; }
  .bonus-value { font-size: 44px; }
  .bonus-value > span { font-size: 15px; margin-left: 7px; }
  .code-actions { gap: 8px; }
  .code-actions > button { font-size: 12px; padding-left: 8px; padding-right: 8px; }
  .bonus-rates { gap: 10px; }
  .bonus-rates > div + div { padding-left: 14px; }
  .sheet { padding-left: 18px; padding-right: 18px; }
  .sheet-header h2 { font-size: 21px; }
  .journal-total { max-width: 45%; font-size: 12px; }
  .staff-row button { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.work-section-heading + .primary { margin-bottom: 14px; }
.profile-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 18px; }
.profile-heading > .page-heading { min-width: 0; margin: 0; }
.app-version { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
