/* Germini Origami UI: tokens (design/origami-tokens.css) + components for the dashboard and the client app.
   Themes: <html data-theme="light|dark|contrast">. Montserrat 500/700 (SIL OFL), served from /api/assets/fonts. */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/api/assets/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/api/assets/fonts/montserrat-700.woff2") format("woff2"); }

:root, [data-theme="light"] {
  color-scheme: light;
  --o-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --o-bg: #F6F4F1; --o-bg-2: #F0EEEA; --o-card: #FFFFFF; --o-card-2: #FAF8F5;
  --o-ink: #4F4C49; --o-ink-2: rgba(79, 76, 73, .78); --o-ink-3: #8A8681; --o-line: rgba(79, 76, 73, .12);
  --o-primary: #587397; --o-primary-ink: #FFFFFF; --o-primary-soft: rgba(88, 115, 151, .12);
  --o-amber: #C9A55C; --o-orange: #B27C43; --o-red: #A75050; --o-cyan: #668F90; --o-purple: #8C7185; --o-pink: #A3747C; --o-grey: #94928E;
  --o-ok: #587397; --o-warn: #B27C43; --o-bad: #A75050; --o-info: #668F90;
  --o-input: rgba(138, 122, 100, .07);
  --o-shadow: 0 0 0 .5px rgba(60, 50, 40, .08), 0 1px 2px rgba(60, 50, 40, .05), 0 4px 10px -4px rgba(60, 50, 40, .1);
  --o-shadow-lg: 0 0 0 .5px rgba(60, 50, 40, .08), 0 12px 32px -8px rgba(60, 50, 40, .22);
  --o-focus: 0 0 0 3px rgba(88, 115, 151, .45);
  --o-r-card: 22px; --o-r-tile: 14px; --o-r-pill: 999px; --o-border-w: 0px;
  --o-c1: #587397; --o-c2: #B27C43; --o-c3: #668F90; --o-c4: #8C7185; --o-c5: #C9A55C; --o-c6: #A3747C; --o-c7: #4A6B4F; --o-c8: #6E6A9C;
}
[data-theme="dark"] {
  color-scheme: dark;
  --o-bg: #181715; --o-bg-2: #22211F; --o-card: #2F2D2A; --o-card-2: #383632;
  --o-ink: #E5E3DD; --o-ink-2: rgba(229, 227, 221, .7); --o-ink-3: #8F8C86; --o-line: rgba(229, 227, 221, .1);
  --o-primary: #93ADCF; --o-primary-ink: #181715; --o-primary-soft: rgba(147, 173, 207, .14);
  --o-amber: #E6C68A; --o-orange: #EABA89; --o-red: #DA8282; --o-cyan: #A1C6C7; --o-purple: #C6ABBF; --o-pink: #D8A9B1; --o-grey: #888682;
  --o-ok: #93ADCF; --o-warn: #EABA89; --o-bad: #DA8282; --o-info: #A1C6C7;
  --o-input: rgba(229, 227, 221, .05);
  --o-shadow: inset 0 .5px 0 rgba(255, 255, 255, .06), 0 0 0 .5px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3), 0 6px 14px -6px rgba(0, 0, 0, .5);
  --o-shadow-lg: 0 0 0 .5px rgba(0, 0, 0, .4), 0 16px 40px -10px rgba(0, 0, 0, .7);
  --o-focus: 0 0 0 3px rgba(147, 173, 207, .5);
  --o-c1: #93ADCF; --o-c2: #EABA89; --o-c3: #A1C6C7; --o-c4: #C6ABBF; --o-c5: #E6C68A; --o-c6: #D8A9B1; --o-c7: #9CC3A0; --o-c8: #B4B0E0;
}
[data-theme="contrast"] {
  color-scheme: dark;
  --o-bg: #000000; --o-bg-2: #000000; --o-card: #0B0B0B; --o-card-2: #141414;
  --o-ink: #FFFFFF; --o-ink-2: #F0F0F0; --o-ink-3: #D6D6D6; --o-line: #FFFFFF;
  --o-primary: #FFD60A; --o-primary-ink: #000000; --o-primary-soft: rgba(255, 214, 10, .18);
  --o-amber: #FFD60A; --o-orange: #FFB15C; --o-red: #FF9B9B; --o-cyan: #7FDBFF; --o-purple: #D7B8FF; --o-pink: #FFB3C7; --o-grey: #D6D6D6;
  --o-ok: #7FDBFF; --o-warn: #FFD60A; --o-bad: #FF9B9B; --o-info: #7FDBFF;
  --o-input: #000000; --o-shadow: none; --o-shadow-lg: none;
  --o-focus: 0 0 0 3px #FFD60A, 0 0 0 5px #000000; --o-border-w: 2px;
  --o-c1: #7FDBFF; --o-c2: #FFD60A; --o-c3: #FFFFFF; --o-c4: #D7B8FF; --o-c5: #FFB15C; --o-c6: #FFB3C7; --o-c7: #B9F6CA; --o-c8: #C5CAFF;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--o-bg); color: var(--o-ink); font: 500 15px/1.5 var(--o-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--o-ink); }
h1 { font-size: clamp(24px, 3.2vw, 30px); line-height: 1.2; }
h2 { font-size: 19px; line-height: 1.3; }
h3 { font-size: 16px; line-height: 1.35; }
p { margin: 0; }
a { color: var(--o-primary); }
:focus-visible { outline: none; box-shadow: var(--o-focus); border-radius: 8px; }
.o-muted { color: var(--o-ink-2); }
.o-small { font-size: 13px; }
.o-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.o-i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- app shell: side bar on a computer, bottom tabs on a phone ---------- */
.o-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.o-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 22px 14px; background: var(--o-bg-2);
  border-right: var(--o-border-w) solid var(--o-line); }
.o-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; }
.o-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--o-primary); color: var(--o-primary-ink); font-weight: 700; letter-spacing: .02em; }
.o-brand b { display: block; font-size: 14px; line-height: 1.25; }
.o-brand span { font-size: 12px; color: var(--o-ink-2); }
.o-nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--o-ink-2); text-decoration: none; font-weight: 500;
  border: 0; background: none; font: inherit; cursor: pointer; width: 100%; text-align: left; min-height: 44px; }
.o-nav:hover { background: var(--o-primary-soft); color: var(--o-ink); }
.o-nav[aria-current="page"] { background: var(--o-primary-soft); color: var(--o-primary); font-weight: 700; }
[data-theme="contrast"] .o-nav[aria-current="page"] { outline: 2px solid var(--o-primary); }
.o-nav .o-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--o-warn); color: #fff; font-size: 12px; text-align: center; }
.o-side .o-grow { flex: 1; }
.o-main { min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 120px; max-width: 1180px; }
.o-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.o-top h1 { flex: 1; min-width: 200px; }
.o-tabs { display: none; }
@media (max-width: 900px) {
  .o-shell { grid-template-columns: 1fr; }
  .o-side { display: none; }
  .o-main { padding: 18px 16px 110px; }
  .o-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20;
    background: var(--o-card); border-radius: 20px; box-shadow: var(--o-shadow-lg); padding: 6px; border: var(--o-border-w) solid var(--o-line); }
  .o-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border: 0; background: none; color: var(--o-ink-2);
    font: 500 11px/1.2 var(--o-font); border-radius: 14px; cursor: pointer; min-height: 52px; }
  .o-tabs button[aria-current="page"] { color: var(--o-primary); background: var(--o-primary-soft); font-weight: 700; }
}

/* ---------- surfaces ---------- */
.o-card { background: var(--o-card); border-radius: var(--o-r-card); box-shadow: var(--o-shadow); padding: 20px; border: var(--o-border-w) solid var(--o-line); }
.o-card + .o-card, .o-stack > * + * { margin-top: 16px; }
.o-card h2 { margin-bottom: 4px; }
.o-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.o-card-head h2 { flex: 1; margin: 0; }
.o-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.o-grid-2 { display: grid; gap: 16px; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 1000px) { .o-grid-2 { grid-template-columns: 1fr; } }
.o-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.o-tile { background: var(--o-card); border-radius: var(--o-r-tile); box-shadow: var(--o-shadow); padding: 16px; border: var(--o-border-w) solid var(--o-line); }
.o-tile .o-tile-k { display: flex; align-items: center; gap: 8px; color: var(--o-ink-2); font-size: 13px; }
.o-tile .o-tile-v { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.o-tile .o-tile-s { font-size: 12px; color: var(--o-ink-2); }
.o-tile .o-dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--o-primary-soft); color: var(--o-primary); }
.o-empty { text-align: center; padding: 26px 10px; color: var(--o-ink-2); }

/* ---------- controls ---------- */
.o-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--o-r-pill);
  border: var(--o-border-w) solid var(--o-line); background: var(--o-card-2); color: var(--o-ink); font: 700 14px/1 var(--o-font); cursor: pointer; text-decoration: none;
  box-shadow: 0 0 0 .5px var(--o-line); transition: background .15s, transform .1s; white-space: nowrap; }
.o-btn:hover { background: var(--o-primary-soft); }
.o-btn:active { transform: scale(.98); }
.o-btn:disabled { opacity: .5; cursor: default; }
.o-btn.pri { background: var(--o-primary); color: var(--o-primary-ink); box-shadow: none; }
.o-btn.pri:hover { filter: brightness(1.06); }
.o-btn.warn { color: var(--o-bad); }
.o-btn.ghost { background: none; box-shadow: none; }
.o-btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.o-btn.icon { width: 42px; padding: 0; }
@media (max-width: 640px) { .o-btn, .o-btn.sm { min-height: 44px; } }
.o-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.o-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--o-ink-2); min-width: 0; }
.o-field > span { font-weight: 500; }
.o-in, .o-field input, .o-field select, .o-field textarea { font: 500 15px/1.4 var(--o-font); color: var(--o-ink); background: var(--o-input); border: 1px solid var(--o-line);
  border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
.o-field textarea { min-height: 88px; resize: vertical; }
.o-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.o-form .o-wide { grid-column: 1 / -1; }
.o-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.o-switch input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--o-grey); position: relative; cursor: pointer; transition: background .2s; margin: 0;
  border: var(--o-border-w) solid var(--o-line); flex: none; }
.o-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.o-switch input:checked { background: var(--o-primary); }
.o-switch input:checked::after { transform: translateX(18px); background: var(--o-primary-ink); }
.o-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--o-bg-2); border-radius: var(--o-r-pill); border: var(--o-border-w) solid var(--o-line); flex-wrap: wrap; }
.o-seg button { border: 0; background: none; color: var(--o-ink-2); font: 700 13px/1 var(--o-font); padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; display: inline-flex; gap: 6px; align-items: center; }
.o-seg button[aria-pressed="true"] { background: var(--o-card); color: var(--o-ink); box-shadow: var(--o-shadow); }
[data-theme="contrast"] .o-seg button[aria-pressed="true"] { background: var(--o-primary); color: #000; }

/* ---------- chips, avatars, lists ---------- */
.o-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--o-bg-2); color: var(--o-ink-2);
  border: var(--o-border-w) solid var(--o-line); white-space: nowrap; }
.o-chip.ok { background: color-mix(in srgb, var(--o-ok) 16%, transparent); color: var(--o-ok); }
.o-chip.warn { background: color-mix(in srgb, var(--o-warn) 18%, transparent); color: var(--o-warn); }
.o-chip.bad { background: color-mix(in srgb, var(--o-bad) 16%, transparent); color: var(--o-bad); }
.o-chip.info { background: color-mix(in srgb, var(--o-info) 16%, transparent); color: var(--o-info); }
[data-theme="contrast"] .o-chip.ok, [data-theme="contrast"] .o-chip.warn, [data-theme="contrast"] .o-chip.bad, [data-theme="contrast"] .o-chip.info { background: #000; }
.o-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.o-list { display: flex; flex-direction: column; }
.o-item { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--o-line); }
.o-item:first-child { border-top: 0; }
.o-item .o-item-b { flex: 1; min-width: 0; }
.o-item .o-item-t { font-weight: 700; overflow-wrap: anywhere; }
.o-item .o-item-s { font-size: 13px; color: var(--o-ink-2); overflow-wrap: anywhere; }
button.o-item { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
button.o-item:hover { background: var(--o-primary-soft); }

/* agenda: a time rail with coloured cards */
.o-agenda { display: flex; flex-direction: column; gap: 10px; }
.o-appt { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: start; padding: 14px; border-radius: 16px; background: var(--o-card-2);
  border-left: 5px solid var(--c, var(--o-primary)); border-top: var(--o-border-w) solid var(--o-line); border-right: var(--o-border-w) solid var(--o-line); border-bottom: var(--o-border-w) solid var(--o-line); }
.o-appt .o-when b { display: block; font-size: 16px; }
.o-appt .o-when span { font-size: 12px; color: var(--o-ink-2); }
.o-appt .o-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.o-appt.is-done { opacity: .78; }
.o-appt.is-cancelled { opacity: .55; }
.o-appt.is-cancelled .o-item-t { text-decoration: line-through; }
@media (max-width: 640px) { .o-appt { grid-template-columns: 1fr; } .o-appt .o-acts { justify-content: flex-start; } }
.o-day { font-weight: 700; font-size: 13px; color: var(--o-ink-2); margin: 18px 2px 4px; text-transform: none; }

/* sheets (dialogs) and toast */
dialog.o-sheet { border: var(--o-border-w) solid var(--o-line); border-radius: 26px; padding: 0; width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 40px);
  background: var(--o-card); color: var(--o-ink); box-shadow: var(--o-shadow-lg); }
dialog.o-sheet::backdrop { background: rgba(20, 18, 16, .45); backdrop-filter: blur(2px); }
.o-sheet .o-sh { padding: 22px; }
.o-sheet h3 { font-size: 19px; margin-bottom: 6px; }
.o-sheet .o-sh-b { color: var(--o-ink-2); margin-bottom: 16px; }
.o-sheet .o-sh-a { display: flex; flex-direction: column; gap: 8px; }
.o-sheet .o-sh-a .o-btn { width: 100%; min-height: 48px; }
@media (max-width: 640px) { dialog.o-sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); } }
dialog.o-drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(560px, 100%); background: var(--o-bg); color: var(--o-ink);
  box-shadow: var(--o-shadow-lg); border-left: var(--o-border-w) solid var(--o-line); }
dialog.o-drawer::backdrop { background: rgba(20, 18, 16, .4); }
.o-drawer .o-dr-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: var(--o-bg); border-bottom: 1px solid var(--o-line); }
.o-drawer .o-dr-head h2 { flex: 1; }
.o-drawer .o-dr-body { padding: 18px; }
#o-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 50; background: var(--o-ink); color: var(--o-bg);
  padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#o-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 901px) { #o-toast { bottom: 28px; } }

/* tables */
.o-table { width: 100%; border-collapse: collapse; }
.o-table th { text-align: left; font-size: 12px; color: var(--o-ink-2); font-weight: 700; padding: 8px 6px; }
.o-table td { padding: 8px 6px; border-top: 1px solid var(--o-line); vertical-align: middle; }
.o-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* loyalty stamp card */
.o-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 8px; margin-top: 10px; max-width: 420px; }
.o-stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed color-mix(in srgb, var(--c, var(--o-primary)) 55%, transparent); color: var(--o-ink-3); }
.o-stamp.on { border: 0; background: var(--c, var(--o-primary)); color: #fff; animation: o-pop .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
[data-theme="contrast"] .o-stamp.on { color: #000; }
.o-stamp svg { width: 60%; height: 60%; }
@keyframes o-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.o-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c, var(--o-primary)) calc(var(--p) * 1%), var(--o-bg-2) 0); }
.o-ring > span { width: 50px; height: 50px; border-radius: 50%; background: var(--o-card); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* badges */
.o-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.o-badge { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--o-card-2); border: var(--o-border-w) solid var(--o-line); }
.o-badge .o-bi { width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.o-badge.off .o-bi { background: var(--o-bg-2); color: var(--o-ink-3); }
.o-badge b { display: block; font-size: 12px; line-height: 1.25; }
.o-badge span { font-size: 11px; color: var(--o-ink-2); }

/* charts (inline SVG) */
.o-chart { width: 100%; height: auto; display: block; }
.o-chart text { fill: var(--o-ink-2); font: 500 11px var(--o-font); }
.o-heat { display: grid; grid-template-columns: 34px repeat(13, 1fr); gap: 3px; font-size: 11px; color: var(--o-ink-2); }
.o-heat i { display: block; aspect-ratio: 1.6; border-radius: 4px; background: color-mix(in srgb, var(--o-primary) calc(var(--v) * 1%), var(--o-bg-2)); }
.o-bar { height: 10px; border-radius: 999px; background: var(--o-bg-2); overflow: hidden; }
.o-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--o-primary)); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* EventCalendar follows the theme */
.ec { --ec-bg-color: var(--o-card); --ec-text-color: var(--o-ink); --ec-border-color: var(--o-line); --ec-accent-color: var(--o-primary);
  --ec-button-bg-color: var(--o-card-2); --ec-button-border-color: var(--o-line); --ec-button-text-color: var(--o-ink);
  --ec-button-active-bg-color: var(--o-primary); --ec-button-active-border-color: var(--o-primary); --ec-button-active-text-color: var(--o-primary-ink);
  --ec-today-bg-color: var(--o-primary-soft); --ec-highlight-color: var(--o-primary-soft); --ec-popup-bg-color: var(--o-card); --ec-now-indicator-color: var(--o-red);
  --ec-event-text-color: var(--o-card); --ec-bg-event-opacity: 1; font: 500 13px var(--o-font); }
.ec .ec-button { border-radius: 12px; font-weight: 700; min-height: 38px; }
.ec .ec-button-group .ec-button { border-radius: 0; }
.ec .ec-button-group .ec-button:first-child { border-radius: 12px 0 0 12px; }
.ec .ec-button-group .ec-button:last-child { border-radius: 0 12px 12px 0; }
.ec .ec-event { border-radius: 10px; box-shadow: none; font-weight: 700; padding: 3px 6px; cursor: pointer; }
.ec .ec-title { font-size: 17px; font-weight: 700; }
[data-theme="contrast"] .ec .ec-event { outline: 2px solid #000; color: #000 !important; }

/* ---------- client app ---------- */
.a-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  background: color-mix(in srgb, var(--o-bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: var(--o-border-w) solid var(--o-line); }
.a-brand { display: flex; align-items: center; gap: 10px; color: var(--o-ink); text-decoration: none; }
.a-brand .o-logo { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; background: var(--o-brand, var(--o-primary)); }
.a-main { max-width: 640px; margin: 0 auto; padding: 18px 16px 60px; }
.a-main > section { margin-top: 16px; }
.a-greet h1 { display: flex; align-items: center; gap: 8px; }
.a-wave { color: var(--o-brand, var(--o-amber)); display: inline-flex; animation: a-twinkle 2.4s ease-in-out infinite; }
.a-wave svg { width: 26px; height: 26px; }
@keyframes a-twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(18deg) scale(1.15); } }
.a-hero { text-align: left; margin-top: 8vh; position: relative; overflow: hidden; }
.a-float { position: absolute; right: -10px; top: -10px; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--o-brand, var(--o-primary)) 16%, transparent); color: var(--o-brand, var(--o-primary)); animation: a-bob 4s ease-in-out infinite; }
.a-float svg { width: 46px; height: 46px; }
@keyframes a-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.a-hero h1 { max-width: 80%; }
.a-next { background: linear-gradient(135deg, color-mix(in srgb, var(--o-brand, var(--o-primary)) 18%, var(--o-card)), var(--o-card) 70%); }
[data-theme="contrast"] .a-next { background: var(--o-card); }
.a-big { font-size: 18px; margin: 6px 0 16px; }
.a-big b { font-size: 30px; letter-spacing: -.02em; }
.a-cards { display: grid; gap: 14px; }
.a-loy { position: relative; overflow: hidden; }
.a-loy h3 { margin-bottom: 2px; }
.a-loy.ready { box-shadow: 0 0 0 2px var(--c), var(--o-shadow); }
.a-yay { color: var(--c); }
.a-confetti { position: absolute; inset: 0; pointer-events: none; }
.a-confetti i { position: absolute; top: -12px; left: calc(var(--j) * 7%); width: 8px; height: 14px; border-radius: 3px; opacity: .85;
  background: var(--o-c1); animation: a-fall 2.6s ease-in calc(var(--j) * 120ms) infinite; }
.a-confetti i:nth-child(3n) { background: var(--o-c5); } .a-confetti i:nth-child(3n+1) { background: var(--o-c6); } .a-confetti i:nth-child(4n) { background: var(--o-c3); }
@keyframes a-fall { from { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: .9; } to { transform: translateY(260px) rotate(320deg); opacity: 0; } }
.a-trophy { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c, var(--o-amber)) 20%, transparent); color: var(--c, var(--o-amber)); }
.a-trophy svg { width: 28px; height: 28px; }
.a-prize { border: 2px solid var(--o-amber); }
.a-prize .a-trophy { animation: a-twinkle 3s ease-in-out infinite; }
