/* Shared components — the app's shadcn-on-Base-UI recipes, rewritten as plain
   classes. Every colour is a token, so a theme reaches all of them. */

/* ===========================================================================
   Shell, navbar, footer
   ======================================================================== */
.shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  color: var(--foreground);
  transition: background-color 150ms, color 150ms;
}
.shell[data-event-theme] {
  /* Over an image backdrop, the shell's background is the readability overlay. */
  background-color: var(--page-scrim, var(--background));
}

/* Image backdrop (v2, js/theme/backdrop.js): under the shell's background. */
.theme-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  background-color: var(--bd-base);
}
.theme-backdrop[data-scroll='page'] {
  position: absolute;
}
.bd-stack {
  position: absolute;
  inset: calc(-1 * var(--bd-bleed, 0px));
  isolation: isolate;
  filter: var(--bd-filter);
  opacity: var(--bd-opacity);
  visibility: hidden;
}
.theme-backdrop[data-ready] .bd-stack {
  visibility: visible;
}
.bd-stack > * {
  position: absolute;
  inset: 0;
}
.bd-image,
.bd-original {
  background-image: var(--bd-image);
  background-size: var(--bd-size);
  background-repeat: var(--bd-repeat);
  background-position: var(--bd-position);
}
/* The colour layers only cover the image itself, so a transparent image's
   empty areas stay the page colour. */
.bd-duo-base,
.bd-duo-shadow,
.bd-tint {
  -webkit-mask-image: var(--bd-image);
  mask-image: var(--bd-image);
  -webkit-mask-size: var(--bd-size);
  mask-size: var(--bd-size);
  -webkit-mask-repeat: var(--bd-repeat);
  mask-repeat: var(--bd-repeat);
  -webkit-mask-position: var(--bd-position);
  mask-position: var(--bd-position);
}
/* Duotone: greyscale image × highlight, shadows lightened in, then the
   original over it at (1 − amount) so the amount dials it in. */
.bd-duo-base,
.bd-duo-shadow,
.bd-original {
  display: none;
}
.theme-backdrop[data-duotone] .bd-duo-base {
  display: block;
  background: var(--bd-duo-highlight);
}
.theme-backdrop[data-duotone] .bd-image {
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}
.theme-backdrop[data-duotone] .bd-duo-shadow {
  display: block;
  background: var(--bd-duo-shadow);
  mix-blend-mode: lighten;
}
.theme-backdrop[data-duotone] .bd-original {
  display: block;
  opacity: calc(1 - var(--bd-duo-amount));
}
/* Background shading (backdrop.js renderShade): over the whole picture,
   Fade and effects included; the shell's overlay takes its shape. */
.theme-backdrop > .bd-shade {
  position: absolute;
  inset: 0;
}
/* Tint: a colour blend keeps the image's light and dark, takes the hue. */
.bd-tint {
  display: none;
  background: var(--bd-tint);
  mix-blend-mode: color;
  opacity: var(--bd-tint-amount);
}
.theme-backdrop[data-tint] .bd-tint {
  display: block;
}
/* Ink: the (transparent) image as a mask over the theme's ink. */
.theme-backdrop[data-mode='ink'] .bd-image {
  background-image: none;
  background-color: var(--bd-ink);
  -webkit-mask-image: var(--bd-image);
  mask-image: var(--bd-image);
  -webkit-mask-size: var(--bd-size);
  mask-size: var(--bd-size);
  -webkit-mask-repeat: var(--bd-repeat);
  mask-repeat: var(--bd-repeat);
  -webkit-mask-position: var(--bd-position);
  mask-position: var(--bd-position);
}
/* Flowing gradient (v2, js/theme/shader-gradient.js): a canvas under the
   shell's background, like the image backdrop. Until it draws (or without
   WebGL) the preset's colours show as soft blobs. */
.theme-shader {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--shader-fallback);
}
.theme-shader canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.theme-shader[data-state='fallback'] canvas {
  visibility: hidden;
}
/* Floating emoji (v2, js/theme/floating.js): over the shell's background,
   under its content. Positioned without a z-index, the content paints after
   the canvas and creates no stacking context to trap its popovers. Text on
   the page gets a halo while they're on, and over a grainy flowing gradient. */
.theme-floating {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.shell:is([data-floating], [data-shader-grain]) > :is(.navbar, .page, .footer) {
  position: relative;
  /* A soft halo in the page colour keeps text readable as emoji pass behind it. */
  text-shadow:
    0 0 1px var(--background),
    0 0 2px var(--background),
    0 0 5px color-mix(in oklab, var(--background) 75%, transparent);
}
/* Browsers reset this on buttons, so text-style buttons need to ask for it. */
.shell:is([data-floating], [data-shader-grain]) button {
  text-shadow: inherit;
}
/* Surfaces already back their own text. */
.shell:is([data-floating], [data-shader-grain]) :is(
    .btn:not(.btn-ghost),
    .btn-panel,
    .top-pill,
    .panel,
    .date-card,
    .date-chip,
    .tab,
    .cal-day.has-event,
    .avatar,
    .org-logo,
    .map-placeholder,
    .cover-overlay,
    .floating,
    input,
    select,
    textarea
  ) {
  text-shadow: none;
}
/* <body> must not paint over the backdrop; <html> carries the page colour. */
html.has-backdrop body {
  position: relative;
  background-color: transparent !important;
}

.navbar {
  width: 100%;
}
.navbar-inner {
  display: flex;
  height: 3.5rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.wordmark {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  color: var(--foreground);
}
.logo-mark {
  height: calc(1.25rem * 114 / 149);
  width: auto;
}
.logo-mark .logo-e {
  opacity: var(--logo-events-opacity, 0.5);
}
[data-appearance='dark'] .logo-mark .logo-e {
  opacity: var(--logo-events-opacity, 0.65);
}
.beta-pill {
  display: inline-flex;
  align-items: center;
  height: calc(1.25rem * 0.7375);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 0.375rem;
  font-size: 10px;
  line-height: 1;
  color: var(--muted-foreground);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quiet-link {
  border-radius: var(--radius-md);
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 150ms;
}
.quiet-link:hover {
  color: var(--foreground);
}

.footer {
  margin-top: auto;
  width: 100%;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.footer a {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 150ms;
}
.footer a:hover {
  color: var(--foreground);
}
@media (min-width: 640px) {
  .navbar-inner,
  .footer-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--control-radius, var(--radius-md));
  height: 2.25rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  transition: background-color 150ms, color 150ms, box-shadow 150ms, opacity 150ms;
  outline: none;
  user-select: none;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.5;
}

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-default:hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
}
.btn-outline {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
[data-appearance='dark'] .btn-outline {
  border-color: var(--input);
  background: color-mix(in oklab, var(--input) 50%, transparent);
}
[data-appearance='dark'] .btn-outline:hover {
  background: color-mix(in oklab, var(--input) 70%, transparent);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover {
  background: color-mix(in oklab, var(--secondary) 80%, transparent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
[data-appearance='dark'] .btn-ghost:hover {
  background: color-mix(in oklab, var(--accent) 50%, transparent);
}
/* The composer's "panel" buttons: glass fill, muted hover wash. */
.btn-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
}
.btn-panel:hover {
  background: color-mix(in oklab, var(--muted) 40%, transparent);
}

.btn-sm {
  height: 2rem;
  gap: 0.375rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.btn-lg {
  height: 2.5rem;
  padding: 0 1.5rem;
}
.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}
.btn-icon-sm {
  width: 2rem;
  height: 2rem;
  padding: 0;
}
.btn-xs {
  height: 1.75rem;
  gap: 0.375rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}
.btn-xs:hover {
  color: var(--foreground);
}
.btn-xs svg {
  width: 0.75rem;
  height: 0.75rem;
}
.btn-block {
  width: 100%;
}

@media (max-width: 639.98px) {
  .btn .label-sm-hide {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .btn:has(.label-sm-hide) {
    width: 2rem;
    padding: 0;
  }
}

/* ===========================================================================
   Badge
   ======================================================================== */
.badge {
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge-outline {
  border-color: var(--border);
  color: var(--foreground);
}
.badge-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

/* ===========================================================================
   EventPanel — the glass section container (outer surfaces only)
   ======================================================================== */
.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
}
.panel-sm {
  padding: 0.75rem;
}
.panel-md {
  padding: 1rem;
}
.panel-head {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}
.panel-body {
  padding: 1.25rem;
}
.divide-y > * + * {
  border-top: 1px solid var(--border);
}

/* ===========================================================================
   Team strip (OrgViewBar)
   ======================================================================== */
.team-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  padding: 0.5rem 0.75rem;
}
.team-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===========================================================================
   Cover image + credit chip
   ======================================================================== */
.cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-square {
  aspect-ratio: 1 / 1;
}
.cover-banner {
  aspect-ratio: 3.5 / 1;
}
.credit-chip {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  color: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(4px);
}
.credit-chip svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* A stock photo background's credit (js/theme/backdrop.js): the same chip,
   in the background's bottom-left corner, over the content. */
.theme-credit {
  position: fixed;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 30;
}
.theme-credit[data-scroll='page'] {
  position: absolute;
}
.theme-credit .credit-chip {
  position: static;
  cursor: pointer;
  transition: background-color 150ms, color 150ms;
}
.theme-credit .credit-chip:hover,
.theme-credit[data-open] .credit-chip {
  background: rgb(0 0 0 / 0.6);
  color: rgb(255 255 255);
}
.theme-credit .credit-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}
.theme-credit-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.375rem);
  width: max-content;
  max-width: min(18rem, calc(100vw - 1rem));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--popover) 80%, transparent);
  color: var(--popover-foreground);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 150ms, transform 150ms, visibility 150ms;
}
.theme-credit[data-open] .theme-credit-popover {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.theme-credit-popover a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===========================================================================
   Organiser logo tile (a generated monogram stands in for an upload)
   ======================================================================== */
.org-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.org-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================================================
   Lockups (event page date / location / series rows)
   ======================================================================== */
.lockup {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.lockup-tile {
  display: flex;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
}
.lockup-tile svg {
  width: 1.25rem;
  height: 1.25rem;
}
.lockup-text {
  min-width: 0;
  padding-top: 0.125rem;
}
.lockup-title {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--foreground);
}
.lockup-sub {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
a.lockup:hover .lockup-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Month/day chip — the lockup tile, the timeline card's chip and the series
   tiles all share it. */
.date-chip {
  flex-direction: column;
  text-align: center;
}
.date-chip .dc-month {
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.date-chip .dc-day {
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--foreground);
}

/* ===========================================================================
   Tabs (Upcoming / Past)
   ======================================================================== */
.tabs-list {
  display: inline-flex;
  width: fit-content;
  height: 2.25rem;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: var(--muted);
  color: var(--muted-foreground);
}
.tab {
  display: inline-flex;
  height: 100%;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
  transition: color 150ms, background-color 150ms;
}
.tab:hover {
  color: var(--foreground);
}
.tab[aria-selected='true'] {
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
[data-appearance='dark'] .tab[aria-selected='true'] {
  border-color: var(--input);
  background: color-mix(in oklab, var(--input) 30%, transparent);
}

/* ===========================================================================
   Switch (40×24 on touch, shadcn's 32×18 with a mouse)
   ======================================================================== */
.switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  width: 2rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--input);
  box-shadow: var(--shadow-xs);
  transition: background-color 150ms;
}
[data-appearance='dark'] .switch {
  background: color-mix(in oklab, var(--input) 80%, transparent);
}
.switch::after {
  content: '';
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--background);
  transform: translateX(0);
  transition: transform 150ms;
}
[data-appearance='dark'] .switch::after {
  background: var(--foreground);
}
.switch[aria-checked='true'] {
  background: var(--primary);
}
.switch[aria-checked='true']::after {
  transform: translateX(calc(100% - 2px));
}
[data-appearance='dark'] .switch[aria-checked='true']::after {
  background: var(--primary-foreground);
}
.switch[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (pointer: coarse) {
  .switch {
    width: 2.5rem;
    height: 1.5rem;
  }
  .switch::after {
    width: 1.375rem;
    height: 1.375rem;
  }
}

/* ===========================================================================
   Inputs
   ======================================================================== */
.input {
  display: flex;
  height: 2.25rem;
  width: 100%;
  min-width: 0;
  border-radius: var(--control-radius, var(--radius-md));
  border: 1px solid var(--input);
  background: transparent;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-xs);
  outline: none;
}
[data-appearance='dark'] .input {
  background: color-mix(in oklab, var(--input) 30%, transparent);
}
.input::placeholder {
  color: var(--muted-foreground);
}
.input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

/* ===========================================================================
   Floating surfaces: menu / popover (glass), and the bottom drawer
   ======================================================================== */
.floating {
  position: absolute;
  z-index: 50;
  min-width: 8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--popover) 80%, transparent);
  color: var(--popover-foreground);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  padding: 0.25rem;
}
.floating.popover {
  border-radius: var(--radius-xl);
  padding: 1rem;
  width: 18rem;
}

/* The quiet `i` beside a label (the app's InfoPopover, iconOnly, in
   INFO_ADORNMENT_CLASSNAME): a step lighter than the text, darkening on hover
   or while its note is open, nudged to the text's optical centre. */
.info-adornment {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: 0.125rem;
  transform: translateY(1px);
  border-radius: var(--radius-sm);
  color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
  transition: color 150ms;
}
.info-adornment svg {
  width: 1rem;
  height: 1rem;
}
.info-adornment:hover,
.info-adornment[aria-expanded='true'] {
  color: var(--foreground);
}
.info-adornment:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}
/* tap-target: a 44px hit area on touch. */
@media (pointer: coarse) {
  .info-adornment {
    position: relative;
  }
  .info-adornment::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 2.75rem);
    height: max(100%, 2.75rem);
    transform: translate(-50%, -50%);
  }
}
/* Its note: the glass popover, w-80, a medium title over muted text. */
.floating.info-popover {
  width: 20rem;
  max-width: calc(100vw - 1rem);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.info-popover .info-title {
  font-weight: 500;
}
.info-popover .info-note {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
}
/* On touch: the note as a centred dialog (the app's Dialog, max-w-sm, p-5). */
.info-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(0 0 0 / 0.5);
}
.info-dialog {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 24rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
}
.info-dialog-title {
  padding-right: 1.5rem;
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 600;
}
.info-dialog-note {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}
.info-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: opacity 150ms;
}
.info-dialog-close:hover {
  opacity: 1;
}
.info-dialog-close:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.info-dialog-close svg {
  width: 1rem;
  height: 1rem;
}
.menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
}
.menu-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--accent);
  color: var(--accent-foreground);
  outline: none;
}
.menu-item.destructive {
  color: var(--destructive);
}
.menu-item.destructive svg {
  color: var(--destructive);
}
.menu-sep {
  height: 1px;
  margin: 0.25rem -0.25rem;
  background: var(--border);
}
.menu-label {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(0 0 0 / 0.2);
  opacity: 0;
  transition: opacity 200ms;
}
.scrim.open {
  opacity: 1;
}
/* The theme drawer leaves the page undimmed, so what you change shows true;
   its scrim only catches the click outside that closes it. */
.scrim-clear {
  background: transparent;
}
.drawer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-sheet);
  background: color-mix(in oklab, var(--background) 70%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--foreground);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}
.drawer.open {
  transform: translateY(0);
}
.drawer-handle {
  margin: 1rem auto 0;
  height: 0.5rem;
  width: 100px;
  flex-shrink: 0;
  border-radius: 999px;
  background: color-mix(in oklab, var(--foreground) 30%, transparent);
}
.drawer-inner {
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  max-width: 64rem;
}
.drawer-header {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .drawer-header {
    text-align: left;
  }
}
.drawer-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.25rem 1rem 1.5rem;
}
.drawer-body > * + * {
  margin-top: 0.75rem;
}

/* ===========================================================================
   Going crowd
   ======================================================================== */
.crowd {
  display: flex;
  align-items: center;
}
.avatar {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 0 2px var(--background);
}
.crowd .avatar + .avatar {
  margin-left: -0.5rem;
}

/* ===========================================================================
   Quantity stepper
   ======================================================================== */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.stepper-count {
  width: 2rem;
  text-align: center;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

/* ===========================================================================
   Toast
   ======================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  transform: translate(-50%, 1rem);
  opacity: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  transition: opacity 200ms, transform 200ms;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
