/* ديوانية الأربعاء, «زجاج فوق اللوحة» in daylight: the diwaniya painting stays behind everything and melts
   into the soft colours of its own evening sky; content sits on bright frosted glass. The share card takes
   the sky's sunset colours. Readex Pro throughout. */

@font-face { font-family: "Readex Pro"; src: url(/fonts/readex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; src: url(/fonts/readex-arabic-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; src: url(/fonts/readex-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Readex Pro"; src: url(/fonts/readex-latin-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --page: #fff5ee;
  --ink: #2a2233;
  --ink-2: #74697f;
  --line: rgba(42, 34, 51, .09);
  --glass: rgba(255, 255, 255, .64);
  --glass-2: rgba(255, 255, 255, .82);
  --edge: rgba(255, 255, 255, .85);
  --blur: blur(22px) saturate(160%);
  --lift: 0 1px 2px rgba(90, 50, 40, .05), 0 10px 28px rgba(110, 60, 70, .10);
  --sky: linear-gradient(140deg, #f4a06c 0%, #e0718e 48%, #7464c2 100%);
  --accent: #c2477a;
  --ok: #1e8a5b; --ok-tint: rgba(46, 160, 104, .14);
  --owe: #c4473a; --owe-tint: rgba(214, 84, 66, .12);
  --host: #a8701a; --host-tint: rgba(232, 170, 64, .2);
  --r: 22px;
  --tab-h: calc(70px + env(safe-area-inset-bottom));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: linear-gradient(180deg, #fff6ef 0%, #fdeef3 55%, #f1effc 100%) fixed var(--page); }
body { margin: 0; color: var(--ink); font: 400 16px/1.55 "Readex Pro", "Janna LT", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* The painting, fixed behind the page, melting into the sunset pastels further down. */
body::before, body::after { content: ""; position: fixed; inset: 0 0 auto; height: max(100vw, 540px); z-index: -1; pointer-events: none; }
body::before { background: url(/img/bg-640.jpg) center top / max(100vw, 540px) auto no-repeat;
  background-image: image-set(url(/img/bg-640.avif) type("image/avif") 1x, url(/img/bg-1000.avif) type("image/avif") 2x, url(/img/bg-640.webp) type("image/webp") 1x, url(/img/bg-1000.webp) type("image/webp") 2x, url(/img/bg-640.jpg) type("image/jpeg") 1x);
  -webkit-mask-image: linear-gradient(180deg, #000 42%, transparent 100%); mask-image: linear-gradient(180deg, #000 42%, transparent 100%); }
body::after { background: linear-gradient(180deg, rgba(255, 246, 239, 0) 32%, rgba(255, 246, 239, .5) 62%, rgba(255, 246, 239, 0) 100%); }
@media (min-width: 600px) { body::before, body::after { height: 600px; } body::before { background-size: 600px auto; } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
bdi, .num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--tab-h) + 20px); }
.loading { padding: 40vh 0 0; text-align: center; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small, .cap { font-size: 13.5px; }
.cap { color: var(--ink-2); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row.line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.row.line:last-child { border-bottom: 0; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline > input, .inline > select { flex: 1; min-width: 0; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 12px; }
.sec { margin: 18px 4px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.title { margin: 2px 0 0; font-size: 28px; font-weight: 600; line-height: 1.3; }

/* The painting shows through the top of every screen. Text never sits on its painted title. */
.hero { position: relative; height: 236px; }
.hero.tall { height: 250px; }
.hero.short { height: 200px; }
.round-btn { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--edge); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); display: grid; place-items: center; color: var(--ink); box-shadow: var(--lift); }
.round-btn .ic svg { width: 22px; height: 22px; display: block; }
.pad { padding: 0 16px; }
.pad.over { position: relative; }
.plain-head { margin: 0 16px 12px; padding: 14px 18px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--lift);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.plain-head .muted { margin: 4px 0 0; }

/* Glass */
.card, .list, .names button, .chips button, .btn, .tabs, .stats div, .step button, .keys button, .plain-head {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
/* The share card: the evening sky, still glass. */
.pass { border-radius: 26px; padding: 18px 20px 16px; color: #fff; background: var(--sky); border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 16px 36px rgba(196, 80, 120, .28); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pass .cap { color: rgba(255, 255, 255, .88); }
.pass .top { align-items: flex-start; margin-bottom: 10px; }
.pass-title { font-weight: 600; font-size: 19px; line-height: 1.35; }
.pass .chip { flex: none; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .24); font-size: 12.5px; font-weight: 600; }
.big { font-size: 50px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; margin: 2px 0; }
.big small { font-size: 17px; font-weight: 400; opacity: .82; margin-inline-start: 6px; letter-spacing: 0; }
.pass-note { margin: 4px 0; font-size: 15px; }
.paid-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; }
.paid-line .ic svg { width: 20px; height: 20px; display: block; }
.iban { width: 100%; margin-top: 12px; padding: 11px 13px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .2); color: #fff; display: flex; justify-content: space-between; align-items: center; text-align: start; }
.iban .num { direction: ltr; unicode-bidi: isolate; font-weight: 600; font-size: 14.5px; letter-spacing: .2px; white-space: nowrap; }
.iban .ic svg { width: 20px; height: 20px; display: block; }
.iban.muted-on { font-size: 14px; display: block; }
.card .iban, .sheet .iban { background: rgba(42, 34, 51, .05); color: var(--ink); }
.card .iban .cap, .sheet .iban .cap { color: var(--ink-2); }
.mine { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.stats div { background: rgba(255, 255, 255, .18); border-radius: 14px; padding: 8px 10px; }
.stats span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .88); }
.stats b { font-size: 18px; font-weight: 600; }
.bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .28); overflow: hidden; margin: 12px 0 6px; }
.bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }

/* Buttons: deep plum for the main action, glass for the rest */
.btn { border: 1px solid var(--edge); border-radius: 17px; padding: 12px 18px; min-height: 48px; font-size: 15.5px; font-weight: 600; background: var(--glass); color: var(--ink); box-shadow: var(--lift); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.soft { background: var(--glass-2); color: var(--ink); }
.btn.danger { background: var(--owe); border-color: var(--owe); color: #fff; }
.btn.wide { display: block; width: 100%; margin-top: 12px; }
.btn[hidden] { display: none; }
.pad > .btn.primary.wide { min-height: 56px; font-size: 17px; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 12px; box-shadow: none; }
.btn.link { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; min-height: 40px; padding: 6px 4px; color: var(--accent); }
.btn.link.on-pass { color: #fff; text-decoration: underline; min-height: 32px; }
.btn.link.pick-host { display: block; min-height: 40px; padding: 2px 0; font-size: 14px; font-weight: 600; opacity: .92; }
.btn.link.danger-text { color: var(--owe); }
.btn.icon { min-height: 36px; width: 36px; padding: 0; border-radius: 10px; box-shadow: none; }
.small-link { margin-top: 4px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
body.busy .btn.primary { opacity: .75; }

/* Cards */
.card { display: block; width: 100%; text-align: start; color: inherit; background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r); padding: 16px 18px; margin-top: 12px; box-shadow: var(--lift); }
.card.tap:active { transform: scale(.99); }
.card.accent { border-color: #f0a37d; background: rgba(255, 238, 226, .82); }
.card.empty { text-align: center; color: var(--ink-2); }
.ttl { font-weight: 600; font-size: 16px; }
.card input, .field input, .field select, .field textarea, .sheet select, .sheet input:not([type=checkbox]) {
  border: 1px solid rgba(42, 34, 51, .12); background: #fff; color: var(--ink); border-radius: 13px; padding: 12px; width: 100%; min-height: 46px; font-size: 16px; }
::placeholder { color: #a79fb0; }
.card .inline .btn { flex: none; }

.step { display: flex; align-items: center; gap: 10px; flex: none; }
.step button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1; box-shadow: 0 2px 8px rgba(110, 60, 70, .1); }
/* The round buttons stay small to the eye, but the finger gets at least 46 px. */
.step button { position: relative; }
.step button::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.step b { min-width: 18px; text-align: center; font-size: 18px; font-weight: 600; }

.av { display: flex; flex: none; }
.av i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600;
  margin-inline-start: -9px; border: 2px solid #fff; background: var(--c, #eee); color: #3a2f2a; }
.av i:first-child { margin-inline-start: 0; }
.av .more { background: var(--ink); color: #fff; font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chips button { border: 1px solid var(--edge); border-radius: 99px; padding: 8px 14px; min-height: 38px; font-size: 14px; background: var(--glass-2); color: var(--ink); position: relative; box-shadow: 0 2px 8px rgba(110, 60, 70, .08); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.scroll, .chips.weeks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 6px; }
.chips.scroll::-webkit-scrollbar, .chips.weeks::-webkit-scrollbar { display: none; }
.chips.scroll button, .chips.weeks button { flex: none; }
.chips.weeks { margin-top: 0; margin-bottom: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--owe); margin-inline-start: 6px; vertical-align: middle; }

.pill { display: inline-block; flex: none; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(42, 34, 51, .07); color: var(--ink-2); }
.pill.host { background: var(--host-tint); color: var(--host); }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.btn.small.skip-on { background: var(--owe-tint); color: var(--owe); border-color: transparent; }
.pill.back { background: rgba(116, 100, 194, .13); color: #5a4bb0; }
.pill.owe { background: var(--owe-tint); color: var(--owe); }
a.btn { text-decoration: none; }
.btn.share { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.share .ic { width: 19px; height: 19px; }
.pill-btn { border: 0; background: none; padding: 0; position: relative; }
.pill-btn::after { content: ''; position: absolute; inset: -9px -6px; }

/* Lists */
.list { background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; box-shadow: var(--lift); }
.person { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: start; }
.person:last-child { border-bottom: 0; }
.person.now { background: rgba(244, 160, 108, .14); }
.list.dim .person, .person.dim { opacity: .62; }
.num-col { width: 22px; color: var(--ink-2); font-size: 14px; }
.tick { width: 24px; height: 24px; border-radius: 50%; background: #2ea068; color: #fff; display: grid; place-items: center; flex: none; }
.tick svg { width: 14px; height: 14px; display: block; }
.ring { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(42, 34, 51, .18); flex: none; }
.voided { opacity: .5; text-decoration: line-through; }
.person .cap.late { color: var(--owe); font-weight: 600; }
.more.log .row.line { padding: 10px 16px; }
.person .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .pill-btn, .person .grow > .pill { margin-top: 3px; }

/* Name picker */
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.names button { border: 1px solid var(--edge); border-radius: 15px; min-height: 50px; padding: 6px; background: var(--glass); color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: var(--lift); }
.names button.on { background: var(--sky); color: #fff; border-color: transparent; }
.pick .pad { padding-top: 6px; }
.pick .title, .pick .pad > .muted { text-shadow: 0 1px 14px rgba(255, 246, 239, .95), 0 0 2px rgba(255, 246, 239, .9); }
.sticky-go { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(253, 238, 243, 0), rgba(253, 238, 243, .95) 35%); }
.sticky-go .btn.primary { min-height: 56px; font-size: 17px; }

/* Bottom tabs */
.tabs { position: fixed; inset-inline: 0; bottom: 0; height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .78); border-top: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 -6px 24px rgba(110, 60, 70, .08); z-index: 10; }
.tabs[hidden] { display: none; }
.tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: #a89eb2; }
.tabs button.on { color: var(--accent); }
.tabs svg { width: 25px; height: 25px; display: block; }
@media (min-width: 560px) { .tabs { max-width: 520px; margin: 0 auto; border-radius: 22px 22px 0 0; } }

/* Sheets */
.overlay { position: fixed; inset: 0; background: rgba(60, 40, 60, .28); display: flex; align-items: flex-end; justify-content: center; z-index: 30; animation: fade .15s ease-out; }
.sheet { background: rgba(255, 249, 246, .97); width: 100%; max-width: 520px; max-height: 92vh; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; box-shadow: 0 -10px 40px rgba(60, 30, 50, .18); }
.sheet:focus { outline: none; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: rgba(42, 34, 51, .16); margin: 9px auto 0; flex: none; }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 4px; flex: none; }
.sheet header h2 { margin: 0; font-size: 19px; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 4px 18px calc(22px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet .list { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
.sheet .card { -webkit-backdrop-filter: none; backdrop-filter: none; }
.sheet .step button { width: 34px; height: 34px; font-size: 19px; }
.sheet .step { gap: 8px; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .overlay, .sheet, .toast { animation: none; } }
.field { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; }
.field label { font-size: 13px; color: var(--ink-2); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1; }
details.more { margin-top: 12px; }
details.more > summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
details.more > summary::before { content: "‹ "; display: inline-block; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(-90deg); }
.err { background: var(--owe-tint); color: var(--owe); border-radius: 13px; padding: 10px 12px; font-size: 14px; }
.warn { background: var(--host-tint); color: #7a5410; border-radius: 13px; padding: 10px 12px; font-size: 14px; }
.codebox { background: #fff; border: 1px dashed var(--accent); border-radius: 13px; padding: 10px; word-break: break-all; font-family: ui-monospace, monospace; direction: ltr; margin: 10px 0; }
.toast { pointer-events: none; position: fixed; inset-inline: 16px; bottom: calc(var(--tab-h) + 14px); margin: 0 auto; max-width: 420px; background: var(--ink); color: #fff; border-radius: 15px; padding: 12px 16px; text-align: center; z-index: 50; animation: up .2s ease-out; box-shadow: 0 10px 30px rgba(60, 30, 50, .25); }

/* Calculator */
.calc-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 6px 0 4px; }
.calc-head b { font-size: 28px; font-weight: 600; }
.calc-head small { font-size: 14px; color: var(--ink-2); }
.calc-label { margin-top: 12px; }
.calc-display { direction: ltr; text-align: left; font-size: 34px; font-weight: 600; padding: 10px 2px 0; min-height: 54px; overflow-wrap: anywhere; }
.calc-result { min-height: 22px; font-size: 14px; color: var(--ink-2); }
.keys { direction: ltr; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.keys button { min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; font-weight: 600; }
.keys button.op { background: #fbe3ea; color: var(--accent); }
.keys button:active { background: #f3e8ef; }
.sheet .list .row.line { padding-inline: 14px; }

/* List import review (loaded on demand) */
.review-item { background: #fff; border-radius: 15px; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); }
.review-item.bad { border-color: var(--owe); }
.review-item .src { font-size: 12px; color: var(--ink-2); }
.review-item .issues { margin: 6px 0 0; padding: 0; list-style: none; }
.review-item .issues li { color: var(--owe); font-size: 13px; margin: 4px 0; }
.review-item input, .review-item select { border: 1px solid var(--line); background: var(--page); border-radius: 10px; padding: 8px 10px; width: 100%; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs img { height: 110px; border-radius: 10px; }
.progress { font-size: 14px; color: var(--ink-2); margin: 10px 0; }
.imgview { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 40; overflow: auto; display: flex; justify-content: center; }
.imgview img { max-width: 100%; height: auto; align-self: flex-start; }
.sticky-save { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); background: rgb(255, 249, 246); padding: 12px 0; display: flex; align-items: center; gap: 10px; }
.sticky-save .msg { flex: 1; font-size: 13px; color: var(--ink-2); }


/* A little life */
body::before { transform-origin: 50% 18%; animation: drift 40s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-1.2%, .8%, 0); } }
.greet { position: absolute; bottom: 14px; inset-inline-start: 20px; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); }
.when { display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .26); color: #fff; font-size: 12px; font-weight: 600; }
.enter .pad > *, .enter .plain-head, .enter .pick .pad > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
.enter .av i { animation: pop-in .4s cubic-bezier(.2, .8, .2, 1.4) both; }
.enter .av i:nth-child(2) { animation-delay: .32s; } .enter .av i:nth-child(3) { animation-delay: .38s; } .enter .av i:nth-child(4) { animation-delay: .44s; }
.enter .av i:nth-child(5) { animation-delay: .5s; } .enter .av i:nth-child(6) { animation-delay: .56s; } .enter .av i:first-child { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } }
.btn, .card.tap, .names button, .chips button, .step button, .keys button, .round-btn { transition: transform .12s ease, background-color .2s ease; }
.btn:active, .names button:active, .chips button:active, .step button:active, .keys button:active, .round-btn:active { transform: scale(.96); }
.bar i { transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.pop { animation: pop .45s cubic-bezier(.2, .8, .2, 1.5); }
@keyframes pop { 45% { transform: scale(1.18); } }
.celebrate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; align-content: center; gap: 14px; background: rgba(255, 240, 236, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s ease-out; pointer-events: none; }
.celebrate.out { opacity: 0; transition: opacity .35s ease; }
.celebrate .seal { width: 92px; height: 92px; border-radius: 50%; background: var(--sky); color: #fff; box-shadow: 0 14px 30px rgba(196, 80, 120, .3); display: grid; place-items: center; animation: seal .55s cubic-bezier(.2, .8, .2, 1.4) both; grid-area: 1 / 1; }
.celebrate .seal svg { width: 46px; height: 46px; display: block; }
.celebrate .seal path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .25s ease-out forwards; }
.celebrate p { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink); grid-area: 2 / 1; animation: rise .5s .2s both; }
.celebrate .burst { grid-area: 1 / 1; width: 0; height: 0; position: relative; }
.celebrate .burst i { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: var(--c); animation: fly .9s var(--d) cubic-bezier(.1, .7, .3, 1) both; }
.celebrate .burst i:nth-child(odd) { border-radius: 50%; }
@keyframes seal { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fly { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(200deg) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  body::before, .enter .pad > *, .enter .plain-head, .enter .av i, .pop, .celebrate, .celebrate * { animation: none !important; }
  .celebrate .seal path { stroke-dashoffset: 0; }
  .bar i { transition: none; }
}
/* Registration closed: members see this instead of the check-in buttons. */
.note-card { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--edge); color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.center { text-align: center; }
.close-row .btn.small { pointer-events: none; }
.field input[type=datetime-local] { min-height: 46px; text-align: start; }
