/* Bored Billionaires — banknote felt, paper bills, gold foil, a red rubber stamp. */
:root {
  /* BobWork design system (dialect A). The old names stay so every rule below keeps working; the values are the system's. */
  --felt: #F5F6FB; --felt-2: #FFFFFF; --felt-3: #EDF0FF;
  --paper: #FFFFFF; --paper-2: #F5F6FB; --paper-3: #E7E9F4; --paper-line: #E7E9F4;
  --ink: #16172E; --ink-2: #43466A; --ink-3: #43466A;
  --gold: #2F54FF; --gold-2: #1B34C7; --gold-3: #1B34C7;
  --stamp: #D34C47; --ok: #0E9E76;
  --cream: #16172E; --muted: #43466A; --muted-2: #43466A;
  --blue: #2F54FF; --blue-deep: #1B34C7; --blue-wash: #EDF0FF; --blue-border: #D9E0FF; --line: #E7E9F4; --line-soft: #EEF0F8; --line-strong: #C9CEEA;
  --green: #0E9E76; --green-ink: #0E7C5C; --green-wash: #E9F7F1; --amber: #B0700F; --amber-ink: #8F5A0B; --amber-wash: #FDF3E4; --red: #D34C47; --red-ink: #B3322D;
  --font-display: 'Bricolage Grotesque', 'Noto Sans HK', system-ui, sans-serif;
  --font-ui: 'IBM Plex Sans', 'Noto Sans HK', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans HK', monospace;
  --radius: 18px; --shadow: 0 18px 34px -26px rgba(22, 23, 46, .35);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--cream); font-family: var(--font-ui); font-size: 16px; line-height: 1.5;
  background: var(--felt);
  display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.grain {
  display: none;
  position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0) } 20% { transform: translate(-2%, 1%) } 40% { transform: translate(1%, -2%) } 60% { transform: translate(-1%, 2%) } 80% { transform: translate(2%, 1%) } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none } * { animation-duration: .01ms !important; transition-duration: .01ms !important } }

/* ---------- chrome ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; backdrop-filter: blur(14px); background: rgba(245, 246, 251, .88); border-bottom: 1px solid var(--line); border-bottom: 1px solid rgba(47, 84, 255, .14); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: block; border-radius: 9px; box-shadow: 0 10px 22px -12px rgba(47, 84, 255, .7); }
.brand-name { font-family: var(--font-display); font-size: 19px; letter-spacing: -.01em; }
.brand-name em { color: var(--gold); font-style: italic; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 13.5px; padding: 8px 11px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--cream); background: rgba(22, 23, 46, .05); }
.nav a.on { color: var(--felt); background: var(--gold); font-weight: 600; }
@media (max-width: 640px) { .top { padding: 10px 14px } .brand-name { display: none } .nav a { font-size: 12.5px; padding: 7px 9px } }
.app { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 22px 16px 40px; }
.app.wide { max-width: 1080px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 18px 20px 28px; font-size: 12px; color: var(--muted-2); border-top: 1px solid rgba(22, 23, 46, .05); }
.pill { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(47, 84, 255, .3); border-radius: 999px; color: var(--gold); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: .25s ease; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--stamp); color: #fff; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(40px, 7.5vw, 86px); }
h1 em, h2 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: 22px; }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 44ch; margin: 0; }
.mono { font-family: var(--font-mono); }
.small { font-size: 13px; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.reveal:nth-child(2) { animation-delay: .08s } .reveal:nth-child(3) { animation-delay: .16s } .reveal:nth-child(4) { animation-delay: .24s } .reveal:nth-child(5) { animation-delay: .32s } .reveal:nth-child(6) { animation-delay: .4s }
@keyframes reveal { to { opacity: 1; transform: none } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { background: var(--gold); color: var(--felt); box-shadow: 0 8px 24px -10px rgba(47, 84, 255, .7), inset 0 -2px 0 rgba(22, 23, 46, 0.09); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(22, 23, 46, .25); color: var(--cream); background: rgba(22, 23, 46, .03); }
.btn-ghost:hover { background: rgba(22, 23, 46, .08); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #43466A; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-stamp { background: var(--stamp); color: #fff; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-icon { width: 64px; height: 64px; border-radius: 50%; padding: 0; font-size: 24px; }

/* ---------- landing ---------- */
.hero { display: grid; gap: 26px; padding: clamp(22px, 5vw, 60px) 0 10px; }
.hero h1 { max-width: 14ch; }
.doors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 18px; }
.door { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 24px 24px; border-radius: 22px; text-decoration: none; min-height: 250px; overflow: hidden; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.door:hover { transform: translateY(-4px) rotate(-.4deg); }
.door .door-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.door h3 { font-size: clamp(28px, 3vw, 36px); }
.door p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 34ch; }
.door .door-cta { margin-top: auto; font-weight: 700; }
.door-paper { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 18px; }
.door-paper .door-k { color: var(--gold-3); }
.door-paper p { color: var(--ink-2); }
.door-rich { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.door-rich .door-k, .door-rich .door-cta { color: var(--gold); }
.door-rich p { color: var(--muted); }
.door-rich::after { content: '$'; position: absolute; right: -10px; bottom: -40px; font-family: var(--font-display); font-size: 220px; font-weight: 700; color: rgba(47, 84, 255, .07); line-height: 1; font-style: italic; }
.door-paper::after { display: none; }
.strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; padding: 18px 0; border-top: 1px solid rgba(47, 84, 255, .2); border-bottom: 1px solid rgba(47, 84, 255, .2); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.strip b { color: var(--gold); font-weight: 700; }
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 44px; }
.step .n { font-family: var(--font-display); font-size: 54px; color: var(--gold); line-height: 1; font-style: italic; }
.step h3 { margin-top: 8px; }
.step p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.rules { margin-top: 40px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 18px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; box-shadow: var(--shadow); }
.rules b { color: var(--stamp); }

/* ---------- paper bill card ---------- */
.paper { position: relative; background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 18px; }
.paper::before { display: none; }
.paper::after { display: none; }
.bill { padding: 26px 22px 24px; display: grid; gap: 10px; }
.bill-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.bill-title { font-family: var(--font-display); font-size: clamp(24px, 6vw, 30px); line-height: 1.05; font-weight: 500; letter-spacing: -.01em; }
.bill-sub { color: var(--ink-2); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border: 1px solid rgba(22, 23, 46, .25); border-radius: 999px; }
.bill-amt { font-family: var(--font-display); font-size: clamp(44px, 12vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.bill-amt small { font-size: .42em; font-weight: 500; color: var(--ink-2); margin-right: 6px; letter-spacing: 0; vertical-align: .55em; }
.bill-due { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.bill-due.soon { color: var(--stamp); font-weight: 700; }
.bill-story { font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--ink); margin: 4px 0 0; }
.bill-story::before { content: '“'; color: var(--gold-3); } .bill-story::after { content: '”'; color: var(--gold-3); }
.bill-img { position: relative; margin-top: 8px; border-radius: 10px; overflow: hidden; background: var(--paper-2); aspect-ratio: 16/8; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(22, 23, 46, .12); }
.bill-img img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(.8); transform: scale(1.08); transition: filter .35s, transform .35s; }
.bill-img.open img { filter: none; transform: none; object-fit: contain; background: #fff; }
.bill-img .veil { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: rgba(22, 23, 46, .35); pointer-events: none; }
.bill-img.open .veil { display: none; }
.bill-img .pdf { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); text-decoration: none; display: grid; place-items: center; gap: 6px; padding: 20px; }
.bill-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.prog { height: 6px; background: rgba(22, 23, 46, .12); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.prog > i { display: block; height: 100%; background: var(--gold-3); border-radius: 999px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }

/* ---------- swipe deck ---------- */
.deck-wrap { display: grid; gap: 18px; }
.deck-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.deck { position: relative; height: min(72dvh, 640px); min-height: 480px; perspective: 1200px; }
.deck .card { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.deck .card .paper { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.deck .card .bill { flex: 1; overflow: auto; }
.deck .card[data-depth="1"] { transform: translateY(14px) scale(.965); opacity: .9; }
.deck .card[data-depth="2"] { transform: translateY(28px) scale(.93); opacity: .7; }
.deck .card.dragging { transition: none; }
.deck .card.enter { animation: enter .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes enter { from { transform: translateX(120%) rotate(18deg); opacity: 0 } }
.lbl { position: absolute; top: 34px; padding: 8px 16px; border: 4px solid; border-radius: 8px; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; z-index: 2; }
.lbl-pay { left: 20px; color: var(--ok); border-color: var(--ok); transform: rotate(-14deg); }
.lbl-skip { right: 20px; color: var(--ink-3); border-color: var(--ink-3); transform: rotate(14deg); }
.deck-actions { display: flex; justify-content: center; gap: 22px; align-items: center; }
.deck-actions .hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.empty { display: grid; gap: 14px; place-items: center; text-align: center; padding: 60px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.empty h2 { font-size: 30px; }

/* ---------- bottom sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(5, 20, 14, .6); backdrop-filter: blur(6px); z-index: 30; animation: fade .25s; }
@keyframes fade { from { opacity: 0 } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 560px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 22px 22px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(22, 23, 46, 0.23); animation: up .35s cubic-bezier(.2, .7, .2, 1); display: grid; gap: 14px; max-height: 92dvh; overflow: auto; }
@keyframes up { from { transform: translateY(100%) } }
.sheet .grip { width: 44px; height: 5px; border-radius: 999px; background: rgba(22, 23, 46, .2); margin: 0 auto; }
.sheet h3 { font-size: 24px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(22, 23, 46, .08); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 11px; border-radius: 9px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--paper); }

/* ---------- forms (on paper) ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(22, 23, 46, .3); padding: 9px 2px; font-size: 17px; color: var(--ink); border-radius: 0; outline: none; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold-3); }
.field textarea { resize: vertical; min-height: 72px; font-family: var(--font-display); font-style: italic; font-size: 18px; }
.field .help { font-size: 12.5px; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-amt { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.amt-input { font-family: var(--font-display) !important; font-size: 34px !important; font-weight: 600; letter-spacing: -.02em; }
.steps-bar { display: flex; gap: 6px; }
.steps-bar i { flex: 1; height: 3px; border-radius: 999px; background: rgba(22, 23, 46, .18); }
.steps-bar i.on { background: var(--gold); }
.drop { border: 2px dashed rgba(22, 23, 46, .3); border-radius: 14px; padding: 34px 20px; text-align: center; display: grid; gap: 10px; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { background: rgba(47, 84, 255, .12); border-color: var(--gold-3); }
.drop .big { font-family: var(--font-display); font-size: 26px; }
.preview { position: relative; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgba(22, 23, 46, .15); }
.preview img { width: 100%; max-height: 300px; object-fit: contain; display: block; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: rgba(22, 23, 46, .06); }
.ai-note.ok { background: rgba(47, 125, 79, .12); color: var(--ok); }
.summary { display: grid; gap: 8px; font-size: 15px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.summary div span:first-child { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- receipt / stamp ---------- */
.receipt-wrap { display: grid; gap: 22px; }
.stamp-host { position: relative; }
.stamp { position: absolute; right: 18px; top: 14px; z-index: 3; padding: 6px 14px; border: 4px solid var(--green); color: var(--green); border-radius: 10px; background: rgba(255, 255, 255, .86); font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; transform: rotate(-12deg); mix-blend-mode: multiply; opacity: .92; mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); mask-size: 200px; -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); -webkit-mask-size: 200px; }
.stamp small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; font-weight: 700; text-align: center; margin-top: 2px; }
.stamp.slam { animation: slam .55s cubic-bezier(.2, 1.4, .4, 1) .35s both; }
@keyframes slam { 0% { transform: rotate(-30deg) scale(3.2); opacity: 0 } 60% { opacity: 1 } 100% { transform: rotate(-12deg) scale(1); opacity: .92 } }
.shake { animation: shake .4s ease .78s both; }
@keyframes shake { 0%, 100% { transform: none } 20% { transform: translate(-3px, 2px) rotate(-.4deg) } 40% { transform: translate(3px, -1px) rotate(.4deg) } 60% { transform: translate(-2px, 1px) } 80% { transform: translate(1px, -1px) } }
.receipt-line { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.receipt-line b { font-weight: 700; }
.receipt-line.total { border-bottom: 0; font-size: 15px; color: var(--ink); }
.quote { background: var(--wash); border-radius: 12px; padding: 4px 14px 10px; }
.quote .receipt-line:last-of-type { border-bottom: 0; }
.quote:empty { display: none; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row .btn { flex: 1; }

/* ---------- lists ---------- */
.list { display: grid; gap: 14px; }
.lb-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(22, 23, 46, .035); border: 1px solid rgba(47, 84, 255, .12); }
.lb-row .rank { font-family: var(--font-display); font-size: 26px; color: var(--gold); font-style: italic; }
.lb-row .name { font-weight: 600; }
.lb-row .tier { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.lb-row .totals { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.lb-row.me { border-color: var(--gold); }
.mine-card { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 18px 18px 16px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.mine-card .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mine-card .status { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(22, 23, 46, .08); }
.mine-card .status.paid { background: var(--stamp); color: #fff; }
.pay-list { display: grid; gap: 6px; font-size: 14px; }
.pay-list div { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.center { text-align: center; }
.stack-gap { display: grid; gap: 18px; }
.page-head { display: grid; gap: 8px; margin-bottom: 20px; }

/* BobWork grammar: headings never italic (Bricolage has none), the emphasised word is brand blue; figures and eyebrows are mono. */
h1 em, h2 em, h3 em, .brand em, .brand-name em { font-style: normal; color: var(--blue); }
.eyebrow { font-weight: 700; font-size: 10px; letter-spacing: 1.6px; color: var(--ink-2); }
.pill { font-weight: 700; background: var(--paper); border-color: var(--line); color: var(--ink); }
button.btn, .btn { box-shadow: 0 10px 22px -12px rgba(47, 84, 255, .7); }

.bill-due.soon { color: var(--amber-ink); }
.rules b { color: var(--ink-2); }

/* category chips: icon + mono label on the category's wash */
.msym { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 13px; line-height: 1; display: inline-block; vertical-align: -2px; margin-right: 4px; font-variation-settings: 'opsz' 20, 'wght' 500; }
.cat { display: inline-flex; align-items: center; padding: 3px 8px 3px 6px; border-radius: 6px; font: 600 9.5px var(--font-mono); letter-spacing: .6px; text-transform: uppercase; background: var(--blue-wash); color: var(--blue-deep); border: 0; }
.cat-utilities, .cat-debt { background: var(--amber-wash); color: var(--amber-ink); } .cat-debt, .cat-other { background: var(--line-soft); color: var(--ink-2); }
.cat-medical { background: #FBE7EF; color: #B02D5F; } .cat-school, .cat-shopping { background: #F1EBFC; color: #5B2FBF; } .cat-phone { background: #E3F4F6; color: #0C8599; } .cat-groceries { background: var(--green-wash); color: var(--green-ink); }

.credit { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px var(--font-mono); letter-spacing: .8px; color: var(--ink-2); text-transform: uppercase; } .credit img { width: 18px; height: 18px; }

.medal { width: 30px; height: 30px; display: block; }
