/* Material 3, Black + Champagne (owner-approved palette 2). */
:root {
  --primary: #d6ba82;
  --on-primary: #251d10;
  --primary-container: #4a3d27;
  --on-primary-container: #f3e2c4;
  --secondary-container: #3b3429;
  --on-secondary-container: #eee2cc;
  --tertiary: #c8a36a;
  --surface: #0e0e0f;
  --surface-dim: #080809;
  --surface-c-low: #202022;
  --surface-c: #252527;
  --surface-c-high: #2e2e31;
  --surface-c-highest: #39393c;
  --on-surface: #f4ede2;
  --on-surface-var: #c9c1b5;
  --outline: #a89b86;
  --outline-var: #514a3f;
  --error-container: #4a2024;
  --on-error-container: #ffdad6;
  --pending-container: #45381c;
  --on-pending-container: #eed79d;
  --success-container: #183b2b;
  --on-success-container: #b6dec4;
  --scrim: rgba(0, 0, 0, .6);

  --c-bdsm: #d98b96;
  --c-swing: #b9a18a;
  --c-mix: #d9a07b;
  --c-workshop: #81bdbb;
  --c-munch: #8bd88f;
  --c-other: #dbc079;

  --e1: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15);
  --e2: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px 2px rgba(0,0,0,.15);
  --e3: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.3);
  --e4: 0 6px 10px 4px rgba(0,0,0,.18), 0 2px 3px rgba(0,0,0,.3);
  --e5: 0 14px 28px 6px rgba(0,0,0,.28), 0 4px 6px rgba(0,0,0,.3);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring-fast: cubic-bezier(.34, 1.36, .64, 1);
  --spring: cubic-bezier(.34, 1.3, .64, 1);
  --ease-emph: cubic-bezier(.05, .7, .1, 1);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--surface); color: var(--on-surface); }
body {
  font: 400 15px/1.45 "Roboto Flex", "Heebo", system-ui, -apple-system, sans-serif;
  padding-bottom: calc(var(--nav-h) + 8px + var(--safe-b));
  min-height: 100vh; overflow-x: hidden;
}
html[lang="he"] body, [dir="rtl"] { font-family: "Heebo", "Roboto Flex", system-ui, sans-serif; }
html[lang="he"] .brand { font-family: "Roboto Flex", sans-serif; }
html[lang="he"] .kind, html[lang="he"] .day-pill small { letter-spacing: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--primary); }
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 400, "opsz" 24;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "opsz" 24; }
.ms.sm { font-size: 18px; }

/* state layer (M3 ripple substitute) */
.state { position: relative; overflow: hidden; isolation: isolate; }
.state::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; z-index: 1; }
.state:hover::after { opacity: .08; }
.state:active::after { opacity: .12; }

/* top app bar */
.appbar {
  position: sticky; top: 0; z-index: 20; height: calc(64px + var(--safe-t));
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--safe-t) 8px 0 20px;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(16px) saturate(1.4);
  transition: background .2s, box-shadow .2s;
}
.appbar.scrolled { background: color-mix(in srgb, var(--surface-c) 92%, transparent); box-shadow: var(--e2); }
.brand { min-width: 0; font-weight: 800; font-size: 22px; letter-spacing: .2px; font-variation-settings: "wdth" 110; }
.brand img { display: block; width: 132px; height: auto; max-width: 100%; }
.brand span { background: linear-gradient(100deg, var(--primary), var(--tertiary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .brand-two { background: none; color: #c8515c; -webkit-text-fill-color: #c8515c; }
.appbar-actions { display: flex; flex-shrink: 0; gap: 4px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--on-surface-var); }
.icon-btn:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.icon-btn.spin .ms { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main { max-width: 680px; margin: 0 auto; }

/* sticky filter area */
.filters {
  position: sticky; top: calc(64px + var(--safe-t)); z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px);
  padding: 2px 0 4px;
}
.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px; scroll-padding: 16px; }
.scroller::-webkit-scrollbar { display: none; }

/* M3 filter chips */
.chip {
  flex: 0 0 auto; height: 34px; padding: 0 14px 0 10px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--outline-var); color: var(--on-surface-var); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s, color .25s;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip.on { background: var(--secondary-container); border-color: transparent; color: var(--on-secondary-container); }
.chip.on .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }

/* date strip */
.days { padding-top: 4px; padding-bottom: 4px; align-items: flex-start; }
.day-pill {
  flex: 0 0 auto; width: 48px; height: 48px; padding: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--surface-c-low); color: var(--on-surface-var); box-shadow: var(--e1);
  transition: transform .3s var(--ease-emph), background .25s, box-shadow .3s;
}
.day-pill small { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.day-pill b { font-size: 17px; font-weight: 600; color: var(--on-surface); }
.day-pill.all { width: auto; min-width: 44px; padding: 0 12px; height: 48px; justify-content: center; flex-direction: row; gap: 4px; font-weight: 500; }
.day-pill.no-ev { opacity: .7; box-shadow: none; }
.day-pill.on { background: var(--primary); color: var(--on-primary); transform: translateY(-2px); box-shadow: var(--e3); }
.day-pill.on b { color: var(--on-primary); }
.dots { display: flex; gap: 3px; height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.days .dots { height: 4px; }
.days .dots i { width: 4px; height: 4px; }
.day-pill.on .dots i { box-shadow: 0 0 0 1.5px var(--primary); }

/* feed */
.feed { padding: 0 16px; }
.day-title { display: flex; align-items: baseline; gap: 8px; margin: 22px 4px 12px; font-size: 20px; font-weight: 600; }
.day-title small { font-size: 14px; color: var(--on-surface-var); font-weight: 400; }
.day-title .count { margin-inline-start: auto; font-size: 12px; color: var(--on-surface-var); }

/* floating cards */
.card {
  position: relative; margin-bottom: 20px; border-radius: 28px; overflow: hidden;
  background: var(--surface-c-low); box-shadow: var(--e2);
  transform: translateY(0); transition: transform .45s var(--ease-emph), box-shadow .45s var(--ease-emph);
  animation: rise .6s var(--ease-emph) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--e5); }
.card:active { transform: translateY(-2px) scale(.99); box-shadow: var(--e3); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); z-index: 2; }

.poster { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; background: var(--surface-c-high); overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), filter .3s; }
.card:hover .poster img { transform: scale(1.03); }
.blur .poster img, .blur .thumb img { filter: blur(24px) saturate(.7); }
.poster::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(14, 14, 15, .85)); }

.date-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; min-width: 58px; text-align: center;
  padding: 7px 10px 6px; border-radius: 16px; line-height: 1.1;
  background: color-mix(in srgb, var(--surface-c-highest) 82%, transparent); backdrop-filter: blur(10px); box-shadow: var(--e2);
}
.date-badge b { display: block; font-size: 22px; }
.date-badge span { font-size: 12px; color: var(--on-surface-var); }
.fab-fav {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface-c-highest) 82%, transparent); backdrop-filter: blur(10px); box-shadow: var(--e2); color: var(--on-surface);
  transition: transform .3s var(--ease-emph);
}
.fab-fav:active { transform: scale(.88); }
.fab-fav.on { color: var(--tertiary); }
.fab-fav.on .ms { font-variation-settings: "FILL" 1; animation: pop .4s var(--ease-emph); }
@keyframes pop { 50% { transform: scale(1.35); } }

.card-body { padding: 14px 18px 18px; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--c); }
.kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.card-title { margin: 6px 0 8px; font-size: 20px; line-height: 1.25; font-weight: 600; }
.info { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--on-surface-var); font-size: 14px; }
.info span { display: inline-flex; align-items: center; gap: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { height: 26px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 8px; font-size: 12px; background: var(--surface-c-high); color: var(--on-surface-var); }
.tag.hot { background: var(--error-container); color: var(--on-error-container); }
.card-actions { display: flex; gap: 8px; margin-top: 16px; }

/* M3 buttons */
.btn {
  height: 44px; padding: 0 20px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: .1px; text-decoration: none; white-space: nowrap;
  transition: box-shadow .2s, transform .2s var(--ease-emph);
}
.btn.filled { background: var(--primary); color: var(--on-primary); flex: 1; }
.btn.filled:hover { box-shadow: var(--e1); }
.btn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn.outlined { border: 1px solid var(--outline); color: var(--primary); }
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }

.empty { text-align: center; color: var(--on-surface-var); padding: 56px 24px; }
.empty .ms { font-size: 56px; color: var(--outline); display: block; margin: 0 auto 12px; }
.banner { margin: 12px 16px; padding: 12px 16px; border-radius: 16px; background: var(--error-container); color: var(--on-error-container); font-size: 14px; }
.updated { text-align: center; color: var(--outline); font-size: 12px; margin: 8px 0 24px; }
.skeleton { height: 420px; border-radius: 28px; margin: 16px; background: linear-gradient(100deg, var(--surface-c-low) 40%, var(--surface-c) 50%, var(--surface-c-low) 60%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* calendar */
.cal { margin: 8px 16px 0; padding: 12px 12px 16px; border-radius: 28px; background: var(--surface-c-low); box-shadow: var(--e2); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.cal-head h2 { margin: 0; font-size: 18px; font-weight: 600; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--on-surface-var); padding: 6px 0; }
.cal-day {
  aspect-ratio: 1 / 1.05; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 15px; color: var(--on-surface); transition: background .25s var(--ease), transform .3s var(--ease-emph);
}
.cal-day.out { color: var(--outline); }
.cal-day.past { color: var(--outline); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.cal-day.has { font-weight: 600; }
.cal-day.on { background: var(--primary); color: var(--on-primary); transform: scale(1.04); }
.cal-day .dots { height: 5px; }
.cal-day .dots i { width: 5px; height: 5px; }
.cal-day.on .dots i { box-shadow: 0 0 0 1px var(--primary); }
.cal-list { padding: 0 16px; }

/* compact (list) cards */
.row-card {
  display: flex; gap: 14px; padding: 10px; margin-bottom: 12px; border-radius: 22px; background: var(--surface-c-low); box-shadow: var(--e1);
  transition: transform .4s var(--ease-emph), box-shadow .4s var(--ease-emph); animation: rise .5s var(--ease-emph) both; animation-delay: calc(var(--i, 0) * 40ms);
  position: relative;
}
.row-card:hover { transform: translateY(-4px); box-shadow: var(--e4); }
.thumb { flex: 0 0 84px; height: 104px; border-radius: 16px; overflow: hidden; background: var(--surface-c-high); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.row-main .card-title { font-size: 16px; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-card .fav-mini { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-surface-var); }
.row-card .fav-mini.on { color: var(--tertiary); }
.row-card .fav-mini.on .ms { font-variation-settings: "FILL" 1; }

/* navigation bar */
.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; justify-content: space-around; align-items: center;
  background: color-mix(in srgb, var(--surface-c) 94%, transparent); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--outline-var);
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--on-surface-var); padding: 4px 0 6px; }
.nav-ind { width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .3s var(--ease); position: relative; }
.nav-item.on { color: var(--on-surface); }
.nav-item.on .nav-ind { background: var(--secondary-container); color: var(--on-secondary-container); }
.nav-item.on .ms { font-variation-settings: "FILL" 1; }
.nav-badge { position: absolute; top: 2px; right: 14px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--tertiary); color: var(--on-primary); font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* bottom sheet */
dialog.sheet {
  width: 100%; max-width: 680px; max-height: 94vh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 28px 28px 0 0; background: var(--surface-c-low); color: var(--on-surface); box-shadow: var(--e5);
  overscroll-behavior: contain;
}
dialog.sheet[open] { animation: sheet-in .45s var(--ease-emph); }
@keyframes sheet-in { from { transform: translateY(100%); } }
dialog.sheet::backdrop { background: var(--scrim); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.sheet-handle { position: sticky; top: 0; z-index: 3; display: flex; justify-content: center; height: 56px; padding-top: 10px; background: var(--surface-c-low); }
.sheet-handle i { width: 32px; height: 4px; border-radius: 2px; background: var(--outline); }
.sheet-close { position: absolute; top: 4px; inset-inline-end: 8px; }
.sheet-body { padding: 4px 20px calc(28px + var(--safe-b)); }
.sheet-body .poster { aspect-ratio: auto; max-height: none; border-radius: 22px; box-shadow: var(--e3); }
.sheet-body .poster::after { display: none; }
.sheet-body .poster img { height: auto; max-height: 64vh; object-fit: contain; background: #000; }
.sheet-title { font-size: 24px; line-height: 1.25; margin: 16px 0 6px; font-weight: 600; }
.list-item { display: flex; align-items: center; gap: 16px; padding: 10px 0; color: var(--on-surface); }
.list-item .ms { color: var(--on-surface-var); }
.list-item small { display: block; color: var(--on-surface-var); font-size: 13px; }
.facts { margin: 8px 0; padding: 4px 16px; border-radius: 20px; background: var(--surface-c); }
.facts .list-item + .list-item { border-top: 1px solid var(--outline-var); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.sheet-actions .btn.filled { grid-column: 1 / -1; height: 52px; font-size: 16px; border-radius: 26px; }
.desc { font-size: 15px; line-height: 1.6; padding: 16px; border-radius: 20px; background: var(--surface-c); overflow-wrap: anywhere; }
.section-label { font-size: 14px; font-weight: 600; color: var(--on-surface-var); margin: 20px 4px 8px; }

/* settings */
dialog.sheet.menu-drawer { margin: 0; width: min(360px, 92vw); max-width: 92vw; height: 100dvh; max-height: 100dvh; padding-top: var(--safe-t); }
dialog.sheet.menu-drawer[data-menu-side="left"] { --drawer-side: -1; inset: 0 auto 0 0; border-radius: 0 24px 24px 0; }
dialog.sheet.menu-drawer[data-menu-side="right"] { --drawer-side: 1; inset: 0 0 0 auto; border-radius: 24px 0 0 24px; }
.menu-drawer .sheet-handle { cursor: default; }
.menu-drawer .sheet-handle > i { display: none; }
.menu-drawer .sheet-body > * { animation: none; }
.menu-drawer .cat-grid { padding: 0; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 24px; }
.menu-drawer .chip { min-height: 48px; white-space: normal; }
.wedding-menu-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 12px 0 24px; padding: 24px; border: 1px solid var(--primary); border-radius: 24px; background: linear-gradient(140deg, var(--primary-container), var(--surface-c-low)); color: var(--on-surface); text-decoration: none; line-height: 1.6; }
.wedding-rings { width: 120px; height: 80px; align-self: center; stroke: var(--primary); stroke-width: 4; }
.wedding-menu-card strong { color: var(--primary); font-size: 27px; line-height: 1.2; }
.wedding-eyebrow { color: var(--on-surface-var); font-size: 13px; }
.wedding-cta { color: var(--primary); font-weight: 600; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.switch { appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--surface-c-highest); border: 2px solid var(--outline); position: relative; flex: 0 0 auto; transition: background .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--outline); transition: all .3s var(--ease-emph); }
.switch:checked { background: var(--primary); border-color: var(--primary); }
.switch:checked::after { left: 24px; top: 2px; width: 24px; height: 24px; background: var(--on-primary); }

/* forms (M3 outlined fields) */
.form { padding: 8px 16px 24px; }
.form h2 { font-size: 24px; font-weight: 600; margin: 12px 4px 4px; }
.form .hint { color: var(--on-surface-var); margin: 0 4px 12px; }
.field { display: block; position: relative; margin: 16px 0; }
.field span { position: absolute; top: -8px; inset-inline-start: 12px; padding: 0 4px; font-size: 12px; color: var(--on-surface-var); background: var(--surface); z-index: 1; }
.field input, .field select, .field textarea {
  display: block; width: 100%; padding: 16px; border-radius: 6px; font: inherit; font-size: 16px;
  background: transparent; border: 1px solid var(--outline); color: var(--on-surface); color-scheme: dark;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border: 2px solid var(--primary); padding: 15px; }
.field:focus-within span { color: var(--primary); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.form-actions .btn.filled { grid-column: 1 / -1; height: 52px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 720px) {
  .feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}

/* organizer entry */
.org-btn {
  height: 40px; padding: 0 16px 0 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; font-size: 14px; box-shadow: var(--e1);
}
.org-short { display: none; }
@media (max-width: 380px) { .org-long { display: none; } .org-short { display: inline; } }
body.organizer #organizer { visibility: hidden; }
.poster-pick {
  display: grid; place-items: center; min-height: 180px; margin: 8px 0 20px; border-radius: 22px; cursor: pointer;
  border: 2px dashed var(--outline); color: var(--on-surface-var); background: var(--surface-c-low);
}
.pick-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 500; }
.pick-empty .ms { font-size: 40px; }
.poster-pick img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 20px; }
.form-actions .btn.outlined { grid-column: auto; }

/* segmented button (language) */
.segmented { display: flex; border: 1px solid var(--outline); border-radius: 20px; overflow: hidden; margin-bottom: 8px; }
.seg { flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 500; font-size: 14px; color: var(--on-surface); }
.seg + .seg { border-inline-start: 1px solid var(--outline); }
.seg.on { background: var(--secondary-container); color: var(--on-secondary-container); }
/* RTL tweaks */
html[dir="rtl"] .nav-badge { right: auto; left: 14px; }

/* snackbar */
.snackbar {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 100; transform: translate(-50%, 20px);
  max-width: min(560px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px;
  background: var(--on-surface); color: var(--surface); font-weight: 500; box-shadow: var(--e3);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--ease-emph);
}
.snackbar.show { opacity: 1; transform: translate(-50%, 0); }

/* success + moderation */
.done { text-align: center; padding: 48px 24px; }
.done > .ms { font-size: 64px; color: var(--c-munch); }
.done h2 { margin: 12px 0 8px; }
.mod-card { border-radius: 24px; background: var(--surface-c-low); box-shadow: var(--e2); margin: 0 16px 16px; overflow: hidden; }
.mod-card .mod-body { padding: 14px 16px 16px; }
.mod-card img { width: 100%; max-height: 360px; object-fit: contain; background: #000; display: block; }
.mod-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: 14px; }
.mod-card dt { color: var(--on-surface-var); }
.mod-card dd { margin: 0; overflow-wrap: anywhere; }
.mod-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btn.danger { background: var(--error-container); color: var(--on-error-container); }
.status-pill { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface-c-high); }
.status-pill.pending { background: var(--pending-container); color: var(--on-pending-container); }
.status-pill.approved { background: var(--success-container); color: var(--on-success-container); }
.status-pill.rejected { background: var(--error-container); color: var(--on-error-container); }

/* ===== Motion: springs, press morph, ripple, transitions ===== */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-fast: linear(0, .03, .107, .215, .338, .466, .591, .706, .806, .892, .96, 1.013, 1.051, 1.075, 1.089, 1.095, 1.093, 1.087, 1.077, 1.065, 1.053, 1.041, 1.03, 1.02, 1.012, 1.005, 1, .996, .993, .992, .991, .991, .992, .992, .994, .995, .996, .997, .998, .999, 1);
    --spring: linear(0, .03, .107, .213, .335, .461, .584, .696, .795, .878, .946, .998, 1.036, 1.061, 1.076, 1.083, 1.083, 1.078, 1.07, 1.061, 1.05, 1.04, 1.03, 1.021, 1.014, 1.007, 1.002, .998, .996, .994, .993, .993, .993, .994, .995, .995, .996, .997, .998, .999, 1);
  }
}
/* ripple */
.btn, .chip, .day-pill, .cal-day, .nav-ind, .icon-btn, .org-btn, .seg, .fab-fav { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; pointer-events: none; z-index: 0; transform: scale(0); }
.btn > :not(.ripple), .chip > :not(.ripple), .org-btn > :not(.ripple) { position: relative; z-index: 1; }

/* M3 Expressive press: corners squish, element dips, springs back */
.btn, .chip, .org-btn, .seg, .icon-btn, .fab-fav, .day-pill, .cal-day {
  transition: transform .39s var(--spring-fast), border-radius .39s var(--spring-fast), background-color .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.96); border-radius: 12px; transition-duration: .12s; }
.chip:active, .seg:active { transform: scale(.95); border-radius: 6px; transition-duration: .12s; }
.org-btn:active { transform: scale(.95); border-radius: 12px; transition-duration: .12s; }
.icon-btn:active { transform: scale(.88); border-radius: 14px; transition-duration: .12s; }
.fab-fav:active { transform: scale(.86); border-radius: 24px; transition-duration: .12s; }
.day-pill:active { transform: scale(.93); border-radius: 12px; transition-duration: .12s; }
.day-pill.on { transition: transform .53s var(--spring), background-color .25s, box-shadow .3s; }
.cal-day:active { transform: scale(.86); transition-duration: .12s; }
.cal-day.on { animation: day-pick .53s var(--spring); }
@keyframes day-pick { from { transform: scale(.7); } to { transform: scale(1.04); } }
.chip.on .ms { animation: check-in .39s var(--spring-fast); }
@keyframes check-in { from { transform: scale(0) rotate(-45deg); opacity: 0; } }

/* cards: spring entrance + lift */
.card { animation: rise .62s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms); transition: transform .53s var(--spring), box-shadow .45s var(--ease); }
.row-card { animation: rise .53s var(--spring) both; animation-delay: calc(var(--i, 0) * 35ms); transition: transform .53s var(--spring), box-shadow .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.card:active { transform: translateY(-2px) scale(.985); transition-duration: .15s; }
.row-card:active { transform: scale(.98); transition-duration: .15s; }

/* nav: indicator pill grows from the center */
.nav-item.on .nav-ind { animation: ind-in .53s var(--spring); }
@keyframes ind-in { from { transform: scaleX(.3); opacity: .4; } }
.nav-item .ms { transition: transform .39s var(--spring-fast); }
.nav-item:active .ms { transform: scale(.85); }
.nav-badge { animation: badge-in .39s var(--spring-fast); }
@keyframes badge-in { from { transform: scale(0); } }

/* heart burst particles */
.burst { position: fixed; z-index: 200; width: 7px; height: 7px; border-radius: 50%; background: var(--tertiary); pointer-events: none; }

/* sheet: dim backdrop fades with the sheet */
dialog.sheet[open] { animation: none; }
dialog.sheet::backdrop { transition: opacity .28s; }
dialog.sheet.closing::backdrop { opacity: 0; }
.sheet-handle { cursor: grab; touch-action: none; }
.sheet-body > * { animation: sheet-item .53s var(--spring) both; }
.sheet-body > *:nth-child(2) { animation-delay: 40ms; } .sheet-body > *:nth-child(3) { animation-delay: 70ms; }
.sheet-body > *:nth-child(4) { animation-delay: 95ms; } .sheet-body > *:nth-child(5) { animation-delay: 115ms; }
.sheet-body > *:nth-child(n+6) { animation-delay: 135ms; }
@keyframes sheet-item { from { opacity: 0; transform: translateY(16px); } }
.sheet-body .poster { animation: none; }

/* snackbar spring */
.snackbar { transition: opacity .25s var(--ease), transform .53s var(--spring); }

/* view transitions between screens */
::view-transition-old(root) { animation: vt-out .22s cubic-bezier(.3, 0, .8, .15) both; }
::view-transition-new(root) { animation: vt-in .53s var(--spring) both; }
html[data-vt="up"]::view-transition-new(root) { animation-name: vt-up; }
@keyframes vt-out { to { opacity: 0; transform: translateX(calc(var(--vt-x, 48px) * -.5)); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(var(--vt-x, 48px)); } }
@keyframes vt-up { from { opacity: 0; transform: translateY(48px) scale(.98); } }
.appbar { view-transition-name: appbar; }
.navbar { view-transition-name: navbar; }
::view-transition-old(appbar), ::view-transition-new(appbar), ::view-transition-old(navbar), ::view-transition-new(navbar) { animation: none; }

/* calendar month slide */
.cal-grid.slide-next { animation: month-next .53s var(--spring); }
.cal-grid.slide-prev { animation: month-prev .53s var(--spring); }
@keyframes month-next { from { opacity: 0; transform: translateX(calc(40px * var(--dir, 1))); } }
@keyframes month-prev { from { opacity: 0; transform: translateX(calc(-40px * var(--dir, 1))); } }
html[dir="rtl"] .cal-grid { --dir: -1; }

/* poster image fade-in when loaded */
.poster img, .thumb img { opacity: 0; transition: opacity .4s var(--ease), transform .8s var(--ease), filter .3s; }
.poster img.loaded, .thumb img.loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .poster img, .thumb img { opacity: 1; }
}
/* keep absolutely placed controls absolute (the ripple rule above sets position: relative) */
.fab-fav, .sheet-close { position: absolute; }

/* ===== categories: wrapping grid of floating chips (no horizontal scroll) ===== */
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 8px; }
.cat-grid .chip {
  flex: 1 1 auto; justify-content: center; height: 40px; padding: 0 14px; border-radius: 14px;
  border: 0; background: var(--surface-c-low); color: var(--on-surface); box-shadow: var(--e2);
  transition: transform .53s var(--spring), box-shadow .4s var(--ease), background-color .25s, border-radius .39s var(--spring-fast);
}
.cat-grid .chip .dot { width: 9px; height: 9px; }
.cat-grid .chip:hover { transform: translateY(-2px); box-shadow: var(--e3); }
.cat-grid .chip.on {
  background: var(--secondary-container); color: var(--on-secondary-container);
  transform: translateY(-3px); box-shadow: var(--e4), 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent);
}
.cat-grid .chip:active { transform: scale(.95); border-radius: 10px; transition-duration: .12s; }

/* ===== ticket button with brand logo ===== */
.btn { min-width: 0; }
.btn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-ic {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--b); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.brand-ic svg { width: 15px; height: 15px; }
.card-actions .btn.filled { flex: 1.4; }

/* ===== poster placeholder ===== */
.poster.no-img { aspect-ratio: 16 / 9; }
.poster-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--c) 70%, #000) 0%, color-mix(in srgb, var(--c) 25%, var(--surface-c)) 55%, var(--surface-c-low) 100%);
}
.poster-ph .ms { font-size: 44px; opacity: .9; }
.poster-ph b { font-size: 20px; line-height: 1.25; max-width: 90%; text-wrap: balance; }
.thumb { position: relative; }
.thumb .poster-ph .ms { font-size: 30px; }

/* ===== poster framing: full poster + blurred fill ===== */
.card .poster.sq { aspect-ratio: 1 / 1; }
.card .poster.pt { aspect-ratio: 4 / 5; }
.card .poster.contain::before {
  content: ""; position: absolute; inset: -40px; z-index: 0;
  background: var(--img) center / cover no-repeat;
  filter: blur(30px) saturate(1.3) brightness(.55); transform: scale(1.1);
}
.card .poster.contain img { position: relative; z-index: 1; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
.card .poster.contain .date-badge, .card .poster.contain .fab-fav { z-index: 2; }
.card .poster.contain::after { z-index: 1; }
.blur .poster.contain::before { filter: blur(40px) brightness(.4); }
.card .poster.ls { aspect-ratio: 4 / 3; }
